Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1PolicyInlineSource
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1PolicyInlineSource
- 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
-
#policies ⇒ Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy>
The policies to create.
Instance Method Summary collapse
-
#initialize(**args) ⇒ V1Beta1PolicyInlineSource
constructor
A new instance of V1Beta1PolicyInlineSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ V1Beta1PolicyInlineSource
Returns a new instance of V1Beta1PolicyInlineSource.
3997 3998 3999 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policies ⇒ Array<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
3995 3996 3997 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 3995 def policies @policies end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4002 4003 4004 |
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 4002 def update!(**args) @policies = args[:policies] if args.key?(:policies) end |