Class: Google::Apis::ServiceconsumermanagementV1beta1::SystemParameterRule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb,
generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb,
generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb

Overview

Define a system parameter rule mapping system parameter definitions to methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SystemParameterRule

Returns a new instance of SystemParameterRule.



2659
2660
2661
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2659

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#parametersArray<Google::Apis::ServiceconsumermanagementV1beta1::SystemParameter>

Define parameters. Multiple names may be defined for a parameter. For a given method call, only one of them should be used. If multiple names are used the behavior is implementation-dependent. If none of the specified names are present the behavior is parameter-dependent. Corresponds to the JSON property parameters



2651
2652
2653
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2651

def parameters
  @parameters
end

#selectorString

Selects the methods to which this rule applies. Use '*' to indicate all methods in all APIs. Refer to selector for syntax details. Corresponds to the JSON property selector

Returns:

  • (String)


2657
2658
2659
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2657

def selector
  @selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2664
2665
2666
2667
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2664

def update!(**args)
  @parameters = args[:parameters] if args.key?(:parameters)
  @selector = args[:selector] if args.key?(:selector)
end