Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1PolicyInlineSource

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

Import data embedded in the request message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V1Beta1PolicyInlineSource

Returns a new instance of V1Beta1PolicyInlineSource.



3905
3906
3907
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3905

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

Instance Attribute Details

#policiesArray<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy>

The policies to create. Each policy must have a value for 'metric' and 'unit', to specify which metric and which limit the policy should be applied to. Corresponds to the JSON property policies



3903
3904
3905
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3903

def policies
  @policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3910
3911
3912
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3910

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