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.



4296
4297
4298
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 4296

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



4294
4295
4296
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 4294

def policies
  @policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4301
4302
4303
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 4301

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