Class: Google::Apis::ServiceconsumermanagementV1beta1::AspectRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#configHash<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

Returns:

  • (Hash<String,Object>)


151
152
153
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 151

def config
  @config
end

#selectorString

Required. Selects the RPC methods to which this rule applies. Refer to selector for syntax details. Corresponds to the JSON property selector

Returns:

  • (String)


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