Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleFromRequestSource
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleFromRequestSource
- 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
-
#principals ⇒ Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>
Optional.
-
#resources ⇒ Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleRequestResource>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthzPolicyAuthzRuleFromRequestSource
constructor
A new instance of AuthzPolicyAuthzRuleFromRequestSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#principals ⇒ Array<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 |
#resources ⇒ Array<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 |