Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleToRequestOperation
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleToRequestOperation
- 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 properties of one or more targets of a request.
Instance Attribute Summary collapse
-
#header_set ⇒ Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleToRequestOperationHeaderSet
Describes a set of HTTP headers to match against.
-
#hosts ⇒ Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>
Optional.
-
#methods_prop ⇒ Array<String>
Optional.
-
#paths ⇒ Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthzPolicyAuthzRuleToRequestOperation
constructor
A new instance of AuthzPolicyAuthzRuleToRequestOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthzPolicyAuthzRuleToRequestOperation
Returns a new instance of AuthzPolicyAuthzRuleToRequestOperation.
572 573 574 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 572 def initialize(**args) update!(**args) end |
Instance Attribute Details
#header_set ⇒ Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleToRequestOperationHeaderSet
Describes a set of HTTP headers to match against.
Corresponds to the JSON property headerSet
547 548 549 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 547 def header_set @header_set end |
#hosts ⇒ Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>
Optional. A list of HTTP Hosts to match against. The match can be one of exact,
prefix, suffix, or contains (substring match). Matches are always case
sensitive unless the ignoreCase is set. Limited to 5 matches.
Corresponds to the JSON property hosts
554 555 556 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 554 def hosts @hosts end |
#methods_prop ⇒ Array<String>
Optional. A list of HTTP methods to match against. Each entry must be a valid
HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only
allows exact match and is always case sensitive.
Corresponds to the JSON property methods
561 562 563 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 561 def methods_prop @methods_prop end |
#paths ⇒ Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>
Optional. A list of paths to match against. The match can be one of exact,
prefix, suffix, or contains (substring match). Matches are always case
sensitive unless the ignoreCase is set. Limited to 5 matches. Note that this
path match includes the query parameters. For gRPC services, this should be a
fully-qualified name of the form /package.service/method.
Corresponds to the JSON property paths
570 571 572 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 570 def paths @paths end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
577 578 579 580 581 582 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 577 def update!(**args) @header_set = args[:header_set] if args.key?(:header_set) @hosts = args[:hosts] if args.key?(:hosts) @methods_prop = args[:methods_prop] if args.key?(:methods_prop) @paths = args[:paths] if args.key?(:paths) end |