generated/google-apis-serviceconsumermanagement_v1beta1/lib/google/apis/serviceconsumermanagement_v1beta1/service.rb
# Creates a producer override. A producer override is applied by the owner or
# administrator of a service to increase or decrease the amount of quota a
# consumer of the service is allowed to use. To create multiple overrides at
# once, use ImportProducerOverrides instead. If an override with the specified
# dimensions already exists, this call will fail. To overwrite an existing
# override if one is already present ("upsert" semantics), use
# ImportProducerOverrides instead.
# @param [String] parent
#   The resource name of the parent quota limit, returned by a
#   ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would
#   be: `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
#   googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride] v1_beta1_quota_override_object
# @param [Boolean] force
#   Whether to force the creation of the quota override. Setting the force
#   parameter to 'true' ignores all quota safety checks that would fail the
#   request. QuotaSafetyCheck lists all such validations.
# @param [Array<String>, String] force_only
#   The list of quota safety checks to ignore before the override mutation. Unlike
#   'force' field that ignores all the quota safety checks, the 'force_only' field
#   ignores only the specified checks; other checks are still enforced. The 'force'
#   and 'force_only' fields cannot both be set.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Creates a producer override. A producer override is applied by the owner or
administrator of a service to increase or decrease the amount of quota a
consumer of the service is allowed to use. To create multiple overrides at
once, use ImportProducerOverrides instead. If an override with the specified
dimensions already exists, this call will fail. To overwrite an existing
override if one is already present ("upsert" semantics), use
ImportProducerOverrides instead.
Creates a producer override . A producer override is applied by the owner or administrator of a service to increase or decrease the amount of quota a consumer of the service is allowed to use . To create multiple overrides at once use ImportProducerOverrides instead . If an override with the specified dimensions already exists this call will fail . To overwrite an existing override if one is already present ( " upsert " semantics ) use ImportProducerOverrides instead .
def create_service_consumer_quota_metric_limit_producer_override(parent, v1_beta1_quota_override_object = nil, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1beta1/{+parent}/producerOverrides', options)
          command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride::Representation
          command.request_object = v1_beta1_quota_override_object
          command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
          command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
          command.params['parent'] = parent unless parent.nil?
          command.query['force'] = force unless force.nil?
          command.query['forceOnly'] = force_only unless force_only.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def create_service_consumer_quota_metric_limit_producer_override ( parent , v1_beta1_quota_override_object = nil , force : nil , force_only : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :post , 'v1beta1/{+parent}/producerOverrides' , options ) command . request_representation = Google :: Apis :: ServiceconsumermanagementV1beta1 :: V1Beta1QuotaOverride :: Representation command . request_object = v1_beta1_quota_override_object command . response_representation = Google :: Apis :: ServiceconsumermanagementV1beta1 :: Operation :: Representation command . response_class = Google :: Apis :: ServiceconsumermanagementV1beta1 :: Operation command . params [ 'parent' ] = parent unless parent . nil? command . query [ 'force' ] = force unless force . nil? command . query [ 'forceOnly' ] = force_only unless force_only . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Creates a producer override.
Creates a producer override .
None
Google::Apis::ServiceconsumermanagementV1beta1::Operation
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
parent
v1_beta1_quota_override_object
force
force_only
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed