
target.apidocs.com.google.api.services.serviceusage.v1beta1.ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create.html Maven / Gradle / Ivy
ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create (Service Usage API v1beta1-rev20230412-2.0.0)
com.google.api.services.serviceusage.v1beta1
Class ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
-
- com.google.api.services.serviceusage.v1beta1.ServiceUsageRequest<Operation>
-
- com.google.api.services.serviceusage.v1beta1.ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create
-
- Enclosing class:
- ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides
public class ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create
extends ServiceUsageRequest<Operation>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Modifier
Constructor and Description
protected
Create(String parent,
QuotaOverride content)
Creates a consumer override.
-
Method Summary
-
Methods inherited from class com.google.api.services.serviceusage.v1beta1.ServiceUsageRequest
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
-
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
-
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Constructor Detail
-
Create
protected Create(String parent,
QuotaOverride content)
Creates a consumer override. A consumer override is applied to the consumer on its own
authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota
than would be allowed by admin overrides, producer overrides, or the default limit of the
service.
Create a request for the method "consumerOverrides.create".
This request holds the parameters needed by the the serviceusage server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
ServiceUsage.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
- Parameters:
parent
- The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or
GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.goog
leapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
content
- the QuotaOverride
- Since:
- 1.13
-
Method Detail
-
set$Xgafv
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create set$Xgafv(String $Xgafv)
Description copied from class: ServiceUsageRequest
V1 error format.
- Overrides:
set$Xgafv
in class ServiceUsageRequest<Operation>
-
setAccessToken
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setAccessToken(String accessToken)
Description copied from class: ServiceUsageRequest
OAuth access token.
- Overrides:
setAccessToken
in class ServiceUsageRequest<Operation>
-
setAlt
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setAlt(String alt)
Description copied from class: ServiceUsageRequest
Data format for response.
- Overrides:
setAlt
in class ServiceUsageRequest<Operation>
-
setCallback
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setCallback(String callback)
Description copied from class: ServiceUsageRequest
JSONP
- Overrides:
setCallback
in class ServiceUsageRequest<Operation>
-
setFields
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setFields(String fields)
Description copied from class: ServiceUsageRequest
Selector specifying which fields to include in a partial response.
- Overrides:
setFields
in class ServiceUsageRequest<Operation>
-
setKey
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setKey(String key)
Description copied from class: ServiceUsageRequest
API key. Your API key identifies your project and provides you with API access, quota, and
reports. Required unless you provide an OAuth 2.0 token.
- Overrides:
setKey
in class ServiceUsageRequest<Operation>
-
setOauthToken
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setOauthToken(String oauthToken)
Description copied from class: ServiceUsageRequest
OAuth 2.0 token for the current user.
- Overrides:
setOauthToken
in class ServiceUsageRequest<Operation>
-
setPrettyPrint
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setPrettyPrint(Boolean prettyPrint)
Description copied from class: ServiceUsageRequest
Returns response with indentations and line breaks.
- Overrides:
setPrettyPrint
in class ServiceUsageRequest<Operation>
-
setQuotaUser
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setQuotaUser(String quotaUser)
Description copied from class: ServiceUsageRequest
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.
- Overrides:
setQuotaUser
in class ServiceUsageRequest<Operation>
-
setUploadType
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setUploadType(String uploadType)
Description copied from class: ServiceUsageRequest
Legacy upload protocol for media (e.g. "media", "multipart").
- Overrides:
setUploadType
in class ServiceUsageRequest<Operation>
-
setUploadProtocol
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setUploadProtocol(String uploadProtocol)
Description copied from class: ServiceUsageRequest
Upload protocol for media (e.g. "raw", "multipart").
- Overrides:
setUploadProtocol
in class ServiceUsageRequest<Operation>
-
getParent
public String getParent()
The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or
GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.co
m/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
-
setParent
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setParent(String parent)
The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics
or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/comp
ute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproje
ct%2Fregion`
-
getForce
public Boolean getForce()
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.
-
setForce
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setForce(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.
-
getForceOnly
public List<String> getForceOnly()
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.
-
setForceOnly
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create setForceOnly(List<String> forceOnly)
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.
-
set
public ServiceUsage.Services.ConsumerQuotaMetrics.Limits.ConsumerOverrides.Create set(String parameterName,
Object value)
- Overrides:
set
in class ServiceUsageRequest<Operation>
Copyright © 2011–2023 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy