Network Security V1beta1 API - Class Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy (v0.1.2)

Reference documentation and code samples for the Network Security V1beta1 API class Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy.

AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action

def action() -> ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Action
Returns

#action=

def action=(value) -> ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Action
Parameter
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. Free-text description of the resource.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. Free-text description of the resource.
Returns
  • (::String) — Optional. Free-text description of the resource.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the AuthorizationPolicy resource.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the AuthorizationPolicy resource.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the AuthorizationPolicy resource.

#name

def name() -> ::String
Returns
  • (::String) — Required. Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>.
Returns
  • (::String) — Required. Name of the AuthorizationPolicy resource. It matches pattern projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>.

#rules

def rules() -> ::Array<::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule>
Returns
  • (::Array<::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule>) — Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the action field will be applied on every request.

#rules=

def rules=(value) -> ::Array<::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule>
Parameter
  • value (::Array<::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule>) — Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the action field will be applied on every request.
Returns
  • (::Array<::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule>) — Optional. List of rules to match. Note that at least one of the rules must match in order for the action specified in the 'action' field to be taken. A rule is a match if there is a matching source and destination. If left blank, the action specified in the action field will be applied on every request.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns