class Google::Apis::NetworksecurityV1beta1::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.
Attributes
Required. The action to take when a rule match is found. Possible values are “ ALLOW” or “DENY”. Corresponds to the JSON property `action` @return [String]
Output only. The timestamp when the resource was created. Corresponds to the JSON property `createTime` @return [String]
Optional. Free-text description of the resource. Corresponds to the JSON property `description` @return [String]
Optional. Set of label tags associated with the AuthorizationPolicy
resource. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Required. Name of the AuthorizationPolicy
resource. It matches pattern ` projects/`project`/locations/`location`/authorizationPolicies/`. Corresponds to the JSON property `name` @return [String]
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. Corresponds to the JSON property `rules` @return [Array<Google::Apis::NetworksecurityV1beta1::Rule>]
Output only. The timestamp when the resource was updated. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/networksecurity_v1beta1/classes.rb, line 72 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/networksecurity_v1beta1/classes.rb, line 77 def update!(**args) @action = args[:action] if args.key?(:action) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @rules = args[:rules] if args.key?(:rules) @update_time = args[:update_time] if args.key?(:update_time) end