Class: Google::Apis::ServiceconsumermanagementV1beta1::AspectRule
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1beta1::AspectRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb,
lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb,
lib/google/apis/serviceconsumermanagement_v1beta1/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.
159 160 161 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 159 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
151 152 153 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 151 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
157 158 159 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 157 def selector @selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
164 165 166 167 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 164 def update!(**args) @config = args[:config] if args.key?(:config) @selector = args[:selector] if args.key?(:selector) end |