Skip to content

Commit

Permalink
feat(serviceconsumermanagement): update the api
Browse files Browse the repository at this point in the history
#### serviceconsumermanagement:v1beta1

The following keys were added:
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.producerOverrides.methods.create.parameters.forceJustification (Total Keys: 2)
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.producerOverrides.methods.delete.parameters.forceJustification (Total Keys: 2)
- resources.services.resources.consumerQuotaMetrics.resources.limits.resources.producerOverrides.methods.patch.parameters.forceJustification (Total Keys: 2)
- schemas.V1Beta1ImportProducerOverridesRequest.properties.forceJustification.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed May 14, 2024
1 parent 0e4a264 commit 83acd84
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ <h3>Method Details</h3>
The object takes the form of:

{ # Request message for ImportProducerOverrides
&quot;force&quot;: True or False, # Whether to force the creation of the quota overrides. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request.
&quot;forceOnly&quot;: [ # The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set. If force_only is specified, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request.
&quot;force&quot;: True or False, # Whether to force the creation of the quota overrides. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
&quot;forceJustification&quot;: &quot;A String&quot;, # If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.
&quot;forceOnly&quot;: [ # The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set.
&quot;A String&quot;,
],
&quot;inlineSource&quot;: { # Import data embedded in the request message # The import data is specified in the request message itself
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, force=None, forceOnly=None, x__xgafv=None)</a></code></p>
<code><a href="#create">create(parent, body=None, force=None, forceJustification=None, forceOnly=None, x__xgafv=None)</a></code></p>
<p class="firstline">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.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, force=None, forceOnly=None, x__xgafv=None)</a></code></p>
<code><a href="#delete">delete(name, force=None, forceJustification=None, forceOnly=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a producer override.</p>
<p class="toc_element">
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Expand All @@ -90,7 +90,7 @@ <h2>Instance Methods</h2>
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, force=None, forceOnly=None, updateMask=None, x__xgafv=None)</a></code></p>
<code><a href="#patch">patch(name, body=None, force=None, forceJustification=None, forceOnly=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates a producer override.</p>
<h3>Method Details</h3>
<div class="method">
Expand All @@ -99,7 +99,7 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="create">create(parent, body=None, force=None, forceOnly=None, x__xgafv=None)</code>
<code class="details" id="create">create(parent, body=None, force=None, forceJustification=None, forceOnly=None, x__xgafv=None)</code>
<pre>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 (&quot;upsert&quot; semantics), use ImportProducerOverrides instead.

Args:
Expand All @@ -118,8 +118,9 @@ <h3>Method Details</h3>
&quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.
}

force: boolean, Whether to force the creation of the quota override. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request.
forceOnly: string, The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set. If force_only is specified, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request. (repeated)
force: boolean, Whether to force the creation of the quota override. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
forceJustification: string, If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.
forceOnly: string, The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set. (repeated)
Allowed values
QUOTA_SAFETY_CHECK_UNSPECIFIED - Unspecified quota safety check.
LIMIT_DECREASE_BELOW_USAGE - Validates that a quota mutation would not cause the consumer&#x27;s effective limit to be lower than the consumer&#x27;s quota usage.
Expand Down Expand Up @@ -154,13 +155,14 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="delete">delete(name, force=None, forceOnly=None, x__xgafv=None)</code>
<code class="details" id="delete">delete(name, force=None, forceJustification=None, forceOnly=None, x__xgafv=None)</code>
<pre>Deletes a producer override.

Args:
name: string, The resource name of the override to delete. An example name would be: `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d` (required)
force: boolean, Whether to force the deletion of the quota override. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request.
forceOnly: string, The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set. If force_only is specified, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request. (repeated)
force: boolean, Whether to force the deletion of the quota override. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
forceJustification: string, If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.
forceOnly: string, The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set. (repeated)
Allowed values
QUOTA_SAFETY_CHECK_UNSPECIFIED - Unspecified quota safety check.
LIMIT_DECREASE_BELOW_USAGE - Validates that a quota mutation would not cause the consumer&#x27;s effective limit to be lower than the consumer&#x27;s quota usage.
Expand Down Expand Up @@ -242,7 +244,7 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="patch">patch(name, body=None, force=None, forceOnly=None, updateMask=None, x__xgafv=None)</code>
<code class="details" id="patch">patch(name, body=None, force=None, forceJustification=None, forceOnly=None, updateMask=None, x__xgafv=None)</code>
<pre>Updates a producer override.

Args:
Expand All @@ -261,8 +263,9 @@ <h3>Method Details</h3>
&quot;unit&quot;: &quot;A String&quot;, # The limit unit of the limit to which this override applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur in the string.
}

force: boolean, Whether to force the update of the quota override. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request.
forceOnly: string, The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set. If force_only is specified, it is recommended to include a case id in &quot;X-Goog-Request-Reason&quot; header when sending the request. (repeated)
force: boolean, Whether to force the update of the quota override. Setting the force parameter to &#x27;true&#x27; ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
forceJustification: string, If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.
forceOnly: string, The list of quota safety checks to ignore before the override mutation. Unlike &#x27;force&#x27; field that ignores all the quota safety checks, the &#x27;force_only&#x27; field ignores only the specified checks; other checks are still enforced. The &#x27;force&#x27; and &#x27;force_only&#x27; fields cannot both be set. (repeated)
Allowed values
QUOTA_SAFETY_CHECK_UNSPECIFIED - Unspecified quota safety check.
LIMIT_DECREASE_BELOW_USAGE - Validates that a quota mutation would not cause the consumer&#x27;s effective limit to be lower than the consumer&#x27;s quota usage.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
}
}
},
"revision": "20240505",
"revision": "20240512",
"rootUrl": "https://serviceconsumermanagement.googleapis.com/",
"schemas": {
"AddTenantProjectRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,17 @@
],
"parameters": {
"force": {
"description": "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. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "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.",
"location": "query",
"type": "boolean"
},
"forceJustification": {
"description": "If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.",
"location": "query",
"type": "string"
},
"forceOnly": {
"description": "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. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "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.",
"enum": [
"QUOTA_SAFETY_CHECK_UNSPECIFIED",
"LIMIT_DECREASE_BELOW_USAGE",
Expand Down Expand Up @@ -364,12 +369,17 @@
],
"parameters": {
"force": {
"description": "Whether to force the deletion 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. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "Whether to force the deletion 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.",
"location": "query",
"type": "boolean"
},
"forceJustification": {
"description": "If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.",
"location": "query",
"type": "string"
},
"forceOnly": {
"description": "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. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "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.",
"enum": [
"QUOTA_SAFETY_CHECK_UNSPECIFIED",
"LIMIT_DECREASE_BELOW_USAGE",
Expand Down Expand Up @@ -446,12 +456,17 @@
],
"parameters": {
"force": {
"description": "Whether to force the update 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. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "Whether to force the update 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.",
"location": "query",
"type": "boolean"
},
"forceJustification": {
"description": "If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.",
"location": "query",
"type": "string"
},
"forceOnly": {
"description": "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. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "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.",
"enum": [
"QUOTA_SAFETY_CHECK_UNSPECIFIED",
"LIMIT_DECREASE_BELOW_USAGE",
Expand Down Expand Up @@ -500,7 +515,7 @@
}
}
},
"revision": "20240505",
"revision": "20240512",
"rootUrl": "https://serviceconsumermanagement.googleapis.com/",
"schemas": {
"Api": {
Expand Down Expand Up @@ -2695,11 +2710,15 @@
"id": "V1Beta1ImportProducerOverridesRequest",
"properties": {
"force": {
"description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.",
"type": "boolean"
},
"forceJustification": {
"description": "If force option is set to true, force_justification is suggested to be set to log the reason in audit logs.",
"type": "string"
},
"forceOnly": {
"description": "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. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.",
"description": "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.",
"items": {
"enum": [
"QUOTA_SAFETY_CHECK_UNSPECIFIED",
Expand Down

0 comments on commit 83acd84

Please sign in to comment.