Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleFromRequestSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networksecurity_v1beta1/classes.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb

Overview

Describes the properties of a single source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthzPolicyAuthzRuleFromRequestSource

Returns a new instance of AuthzPolicyAuthzRuleFromRequestSource.



369
370
371
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 369

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#principalsArray<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>

Optional. A list of identities derived from the client's certificate. This field will not match on a request unless mutual TLS is enabled for the Forwarding rule or Gateway. Each identity is a string whose value is matched against the URI SAN, or DNS SAN or the subject field in the client's certificate. The match can be exact, prefix, suffix or a substring match. One of exact, prefix, suffix or contains must be specified. Limited to 5 principals. Corresponds to the JSON property principals



361
362
363
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 361

def principals
  @principals
end

#resourcesArray<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleRequestResource>

Optional. A list of resources to match against the resource of the source VM of a request. Limited to 5 resources. Corresponds to the JSON property resources



367
368
369
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 367

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



374
375
376
377
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 374

def update!(**args)
  @principals = args[:principals] if args.key?(:principals)
  @resources = args[:resources] if args.key?(:resources)
end