Class: Google::Apis::ServicemanagementV1::SystemParameterRule

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SystemParameterRule

Returns a new instance of SystemParameterRule



3335
3336
3337
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3335

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

Instance Attribute Details

#parametersArray<Google::Apis::ServicemanagementV1::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



3333
3334
3335
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3333

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)


3324
3325
3326
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3324

def selector
  @selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3340
3341
3342
3343
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3340

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