Class: Google::Apis::ServicemanagementV1::AspectRule
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::AspectRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicemanagement_v1/classes.rb,
lib/google/apis/servicemanagement_v1/representations.rb,
lib/google/apis/servicemanagement_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.
180 181 182 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 180 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
172 173 174 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 172 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
178 179 180 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 178 def selector @selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
185 186 187 188 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 185 def update!(**args) @config = args[:config] if args.key?(:config) @selector = args[:selector] if args.key?(:selector) end |