Skip to content

Commit f0d3b8d

Browse files
feat(assuredworkloads): update the api
#### assuredworkloads:v1 The following keys were added: - resources.organizations.resources.locations.resources.workloads.methods.enableResourceMonitoring (Total Keys: 11) - schemas.GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse (Total Keys: 2)
1 parent f157365 commit f0d3b8d

5 files changed

+58
-6
lines changed

docs/dyn/assuredworkloads_v1.organizations.locations.workloads.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ <h2>Instance Methods</h2>
9494
<p class="toc_element">
9595
<code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
9696
<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>
97+
<p class="toc_element">
98+
<code><a href="#enableResourceMonitoring">enableResourceMonitoring(name, x__xgafv=None)</a></code></p>
99+
<p class="firstline">Enable resource violation monitoring for a workload.</p>
97100
<p class="toc_element">
98101
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
99102
<p class="firstline">Gets Assured Workload associated with a CRM Node</p>
@@ -305,6 +308,24 @@ <h3>Method Details</h3>
305308
}</pre>
306309
</div>
307310

311+
<div class="method">
312+
<code class="details" id="enableResourceMonitoring">enableResourceMonitoring(name, x__xgafv=None)</code>
313+
<pre>Enable resource violation monitoring for a workload.
314+
315+
Args:
316+
name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
317+
x__xgafv: string, V1 error format.
318+
Allowed values
319+
1 - v1 error format
320+
2 - v2 error format
321+
322+
Returns:
323+
An object of the form:
324+
325+
{ # Response for EnableResourceMonitoring endpoint.
326+
}</pre>
327+
</div>
328+
308329
<div class="method">
309330
<code class="details" id="get">get(name, x__xgafv=None)</code>
310331
<pre>Gets Assured Workload associated with a CRM Node

docs/dyn/assuredworkloads_v1.organizations.locations.workloads.violations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h3>Method Details</h3>
9999
body: object, The request body.
100100
The object takes the form of:
101101

102-
{ # Request for acknowledging the violation Next Id: 5
102+
{ # Request for acknowledging the violation
103103
&quot;acknowledgeType&quot;: &quot;A String&quot;, # Optional. Acknowledge type of specified violation.
104104
&quot;comment&quot;: &quot;A String&quot;, # Required. Business justification explaining the need for violation acknowledgement
105105
&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}

docs/dyn/assuredworkloads_v1beta1.organizations.locations.workloads.violations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h3>Method Details</h3>
9999
body: object, The request body.
100100
The object takes the form of:
101101

102-
{ # Request for acknowledging the violation Next Id: 5
102+
{ # Request for acknowledging the violation
103103
&quot;acknowledgeType&quot;: &quot;A String&quot;, # Optional. Acknowledge type of specified violation.
104104
&quot;comment&quot;: &quot;A String&quot;, # Required. Business justification explaining the need for violation acknowledgement
105105
&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}

googleapiclient/discovery_cache/documents/assuredworkloads.v1.json

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,31 @@
291291
"https://www.googleapis.com/auth/cloud-platform"
292292
]
293293
},
294+
"enableResourceMonitoring": {
295+
"description": "Enable resource violation monitoring for a workload.",
296+
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:enableResourceMonitoring",
297+
"httpMethod": "POST",
298+
"id": "assuredworkloads.organizations.locations.workloads.enableResourceMonitoring",
299+
"parameterOrder": [
300+
"name"
301+
],
302+
"parameters": {
303+
"name": {
304+
"description": "Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}",
305+
"location": "path",
306+
"pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$",
307+
"required": true,
308+
"type": "string"
309+
}
310+
},
311+
"path": "v1/{+name}:enableResourceMonitoring",
312+
"response": {
313+
"$ref": "GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse"
314+
},
315+
"scopes": [
316+
"https://www.googleapis.com/auth/cloud-platform"
317+
]
318+
},
294319
"get": {
295320
"description": "Gets Assured Workload associated with a CRM Node",
296321
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}",
@@ -566,11 +591,11 @@
566591
}
567592
}
568593
},
569-
"revision": "20231110",
594+
"revision": "20231201",
570595
"rootUrl": "https://assuredworkloads.googleapis.com/",
571596
"schemas": {
572597
"GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": {
573-
"description": "Request for acknowledging the violation Next Id: 5",
598+
"description": "Request for acknowledging the violation",
574599
"id": "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest",
575600
"properties": {
576601
"acknowledgeType": {
@@ -711,6 +736,12 @@
711736
},
712737
"type": "object"
713738
},
739+
"GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse": {
740+
"description": "Response for EnableResourceMonitoring endpoint.",
741+
"id": "GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse",
742+
"properties": {},
743+
"type": "object"
744+
},
714745
"GoogleCloudAssuredworkloadsV1ListViolationsResponse": {
715746
"description": "Response of ListViolations endpoint.",
716747
"id": "GoogleCloudAssuredworkloadsV1ListViolationsResponse",

googleapiclient/discovery_cache/documents/assuredworkloads.v1beta1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,11 @@
563563
}
564564
}
565565
},
566-
"revision": "20231110",
566+
"revision": "20231201",
567567
"rootUrl": "https://assuredworkloads.googleapis.com/",
568568
"schemas": {
569569
"GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": {
570-
"description": "Request for acknowledging the violation Next Id: 5",
570+
"description": "Request for acknowledging the violation",
571571
"id": "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest",
572572
"properties": {
573573
"acknowledgeType": {

0 commit comments

Comments
 (0)