Class: Google::Apis::ServicenetworkingV1::AspectRule
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::AspectRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb
Overview
Rule-based configuration for an aspect.
Instance Attribute Summary collapse
-
#config ⇒ Hash<String,Object>
Required.
-
#selector ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AspectRule
constructor
A new instance of AspectRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AspectRule
Returns a new instance of AspectRule.
543 544 545 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 543 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Hash<String,Object>
Required. Rules of the configuration. The underlying schema should be defined
by Aspect owners as protobuf message under google/api/configaspects/proto.
Corresponds to the JSON property config
535 536 537 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 535 def config @config end |
#selector ⇒ String
Required. Selects the RPC methods to which this rule applies. Refer to
selector for syntax details.
Corresponds to the JSON property selector
541 542 543 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 541 def selector @selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
548 549 550 551 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 548 def update!(**args) @config = args[:config] if args.key?(:config) @selector = args[:selector] if args.key?(:selector) end |