Skip to content

Commit

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

The following keys were added:
- resources.organizations.resources.locations.resources.workloads.methods.enableResourceMonitoring (Total Keys: 11)
- schemas.GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Dec 7, 2023
1 parent f157365 commit f0d3b8d
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 6 deletions.
Expand Up @@ -94,6 +94,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. In addition to assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set permission on the deleted folder to remove Assured Workloads OrgPolicies.</p>
<p class="toc_element">
<code><a href="#enableResourceMonitoring">enableResourceMonitoring(name, x__xgafv=None)</a></code></p>
<p class="firstline">Enable resource violation monitoring for a workload.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets Assured Workload associated with a CRM Node</p>
Expand Down Expand Up @@ -305,6 +308,24 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="enableResourceMonitoring">enableResourceMonitoring(name, x__xgafv=None)</code>
<pre>Enable resource violation monitoring for a workload.

Args:
name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # Response for EnableResourceMonitoring endpoint.
}</pre>
</div>

<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets Assured Workload associated with a CRM Node
Expand Down
Expand Up @@ -99,7 +99,7 @@ <h3>Method Details</h3>
body: object, The request body.
The object takes the form of:

{ # Request for acknowledging the violation Next Id: 5
{ # Request for acknowledging the violation
&quot;acknowledgeType&quot;: &quot;A String&quot;, # Optional. Acknowledge type of specified violation.
&quot;comment&quot;: &quot;A String&quot;, # Required. Business justification explaining the need for violation acknowledgement
&quot;nonCompliantOrgPolicy&quot;: &quot;A String&quot;, # Optional. This field is deprecated and will be removed in future version of the API. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
Expand Down
Expand Up @@ -99,7 +99,7 @@ <h3>Method Details</h3>
body: object, The request body.
The object takes the form of:

{ # Request for acknowledging the violation Next Id: 5
{ # Request for acknowledging the violation
&quot;acknowledgeType&quot;: &quot;A String&quot;, # Optional. Acknowledge type of specified violation.
&quot;comment&quot;: &quot;A String&quot;, # Required. Business justification explaining the need for violation acknowledgement
&quot;nonCompliantOrgPolicy&quot;: &quot;A String&quot;, # Optional. This field is deprecated and will be removed in future version of the API. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
Expand Down
35 changes: 33 additions & 2 deletions googleapiclient/discovery_cache/documents/assuredworkloads.v1.json
Expand Up @@ -291,6 +291,31 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"enableResourceMonitoring": {
"description": "Enable resource violation monitoring for a workload.",
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:enableResourceMonitoring",
"httpMethod": "POST",
"id": "assuredworkloads.organizations.locations.workloads.enableResourceMonitoring",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}",
"location": "path",
"pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:enableResourceMonitoring",
"response": {
"$ref": "GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
"description": "Gets Assured Workload associated with a CRM Node",
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}",
Expand Down Expand Up @@ -566,11 +591,11 @@
}
}
},
"revision": "20231110",
"revision": "20231201",
"rootUrl": "https://assuredworkloads.googleapis.com/",
"schemas": {
"GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": {
"description": "Request for acknowledging the violation Next Id: 5",
"description": "Request for acknowledging the violation",
"id": "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest",
"properties": {
"acknowledgeType": {
Expand Down Expand Up @@ -711,6 +736,12 @@
},
"type": "object"
},
"GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse": {
"description": "Response for EnableResourceMonitoring endpoint.",
"id": "GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse",
"properties": {},
"type": "object"
},
"GoogleCloudAssuredworkloadsV1ListViolationsResponse": {
"description": "Response of ListViolations endpoint.",
"id": "GoogleCloudAssuredworkloadsV1ListViolationsResponse",
Expand Down
Expand Up @@ -563,11 +563,11 @@
}
}
},
"revision": "20231110",
"revision": "20231201",
"rootUrl": "https://assuredworkloads.googleapis.com/",
"schemas": {
"GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": {
"description": "Request for acknowledging the violation Next Id: 5",
"description": "Request for acknowledging the violation",
"id": "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest",
"properties": {
"acknowledgeType": {
Expand Down

0 comments on commit f0d3b8d

Please sign in to comment.