Class: Google::Apis::ServiceconsumermanagementV1::Control

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

Overview

Selects and configures the service controller used by the service. Example: control: environment: servicecontrol.googleapis.com

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Control

Returns a new instance of Control.



819
820
821
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 819

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

Instance Attribute Details

#environmentString

The service controller environment to use. If empty, no control plane feature ( like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com Corresponds to the JSON property environment

Returns:

  • (String)


812
813
814
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 812

def environment
  @environment
end

#method_policiesArray<Google::Apis::ServiceconsumermanagementV1::MethodPolicy>

Defines policies applying to the API methods of the service. Corresponds to the JSON property methodPolicies



817
818
819
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 817

def method_policies
  @method_policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



824
825
826
827
# File 'lib/google/apis/serviceconsumermanagement_v1/classes.rb', line 824

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