Debian Codegraph @

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

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="assuredworkloads_v1.html">Assured Workloads API</a> . <a href="assuredworkloads_v1.organizations.html">organizations</a> . <a href="assuredworkloads_v1.organizations.locations.html">locations</a> . <a href="assuredworkloads_v1.organizations.locations.workloads.html">workloads</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="assuredworkloads_v1.organizations.locations.workloads.updates.html">updates()</a></code>
79 </p>
80 <p class="firstline">Returns the updates Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="assuredworkloads_v1.organizations.locations.workloads.violations.html">violations()</a></code>
84 </p>
85 <p class="firstline">Returns the violations Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#analyzeWorkloadMove">analyzeWorkloadMove(target, assetTypes=None, pageSize=None, pageToken=None, project=None, x__xgafv=None)</a></code></p>
89 <p class="firstline">Analyzes a hypothetical move of a source resource to a target workload to surface compliance risks. The analysis is best effort and is not guaranteed to be exhaustive.</p>
90 <p class="toc_element">
91 <code><a href="#analyzeWorkloadMove_next">analyzeWorkloadMove_next()</a></code></p>
92 <p class="firstline">Retrieves the next page of results.</p>
93 <p class="toc_element">
94 <code><a href="#close">close()</a></code></p>
95 <p class="firstline">Close httplib2 connections.</p>
96 <p class="toc_element">
97 <code><a href="#create">create(parent, body=None, externalId=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Creates Assured Workload.</p>
99 <p class="toc_element">
100 <code><a href="#delete">delete(name, etag=None, x__xgafv=None)</a></code></p>
101 <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>
102 <p class="toc_element">
103 <code><a href="#enableComplianceUpdates">enableComplianceUpdates(name, x__xgafv=None)</a></code></p>
104 <p class="firstline">This endpoint enables Assured Workloads service to offer compliance updates for the folder based assured workload. It sets up an Assured Workloads Service Agent, having permissions to read compliance controls (for example: Org Policies) applied on the workload. The caller must have `resourcemanager.folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions on the assured workload folder.</p>
105 <p class="toc_element">
106 <code><a href="#enableResourceMonitoring">enableResourceMonitoring(name, x__xgafv=None)</a></code></p>
107 <p class="firstline">Enable resource violation monitoring for a workload.</p>
108 <p class="toc_element">
109 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
110 <p class="firstline">Gets Assured Workload associated with a CRM Node</p>
111 <p class="toc_element">
112 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
113 <p class="firstline">Lists Assured Workloads under a CRM Node.</p>
114 <p class="toc_element">
115 <code><a href="#list_next">list_next()</a></code></p>
116 <p class="firstline">Retrieves the next page of results.</p>
117 <p class="toc_element">
118 <code><a href="#mutatePartnerPermissions">mutatePartnerPermissions(name, body=None, x__xgafv=None)</a></code></p>
119 <p class="firstline">Update the permissions settings for an existing partner workload. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.</p>
120 <p class="toc_element">
121 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
122 <p class="firstline">Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.</p>
123 <p class="toc_element">
124 <code><a href="#restrictAllowedResources">restrictAllowedResources(name, body=None, x__xgafv=None)</a></code></p>
125 <p class="firstline">Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.</p>
126 <h3>Method Details</h3>
127 <div class="method">
128 <code class="details" id="analyzeWorkloadMove">analyzeWorkloadMove(target, assetTypes=None, pageSize=None, pageToken=None, project=None, x__xgafv=None)</code>
129 <pre>Analyzes a hypothetical move of a source resource to a target workload to surface compliance risks. The analysis is best effort and is not guaranteed to be exhaustive.
130
131 Args:
132 target: string, Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload&#x27;s relative resource name, formatted as: &quot;organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}&quot; For example: &quot;organizations/123/locations/us-east1/workloads/assured-workload-2&quot; (required)
133 assetTypes: string, Optional. List of asset types to be analyzed, including and under the source resource. If empty, all assets are analyzed. The complete list of asset types is available [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types). (repeated)
134 pageSize: integer, Optional. Page size. If a value is not specified, the default value of 10 is used. The maximum value is 50.
135 pageToken: string, Optional. The page token from the previous response. It needs to be passed in the second and following requests.
136 project: string, The source type is a project. Specify the project&#x27;s relative resource name, formatted as either a project number or a project ID: &quot;projects/{PROJECT_NUMBER}&quot; or &quot;projects/{PROJECT_ID}&quot; For example: &quot;projects/951040570662&quot; when specifying a project number, or &quot;projects/my-project-123&quot; when specifying a project ID.
137 x__xgafv: string, V1 error format.
138 Allowed values
139 1 - v1 error format
140 2 - v2 error format
141
142 Returns:
143 An object of the form:
144
145 { # Response containing the analysis results for the hypothetical resource move.
146 &quot;assetMoveAnalyses&quot;: [ # List of analysis results for each asset in scope.
147 { # Represents move analysis results for an asset.
148 &quot;analysisGroups&quot;: [ # List of eligible analyses performed for the asset.
149 { # Represents a logical group of checks performed for an asset. If successful, the group contains the analysis result, otherwise it contains an error with the failure reason.
150 &quot;analysisResult&quot;: { # Represents the successful move analysis results for a group. # Result of a successful analysis.
151 &quot;blockers&quot;: [ # List of blockers. If not resolved, these will result in compliance violations in the target.
152 { # Represents the impact of moving the asset to the target.
153 &quot;detail&quot;: &quot;A String&quot;, # Explanation of the impact.
154 },
155 ],
156 &quot;warnings&quot;: [ # List of warnings. These are risks that may or may not result in compliance violations.
157 { # Represents the impact of moving the asset to the target.
158 &quot;detail&quot;: &quot;A String&quot;, # Explanation of the impact.
159 },
160 ],
161 },
162 &quot;displayName&quot;: &quot;A String&quot;, # Name of the analysis group.
163 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Error details for a failed analysis.
164 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
165 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
166 {
167 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
168 },
169 ],
170 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
171 },
172 },
173 ],
174 &quot;asset&quot;: &quot;A String&quot;, # The full resource name of the asset being analyzed. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
175 &quot;assetType&quot;: &quot;A String&quot;, # Type of the asset being analyzed. Possible values will be among the ones listed [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
176 },
177 ],
178 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token. Is empty if the last page is reached.
179 }</pre>
180 </div>
181
182 <div class="method">
183 <code class="details" id="analyzeWorkloadMove_next">analyzeWorkloadMove_next()</code>
184 <pre>Retrieves the next page of results.
185
186 Args:
187 previous_request: The request for the previous page. (required)
188 previous_response: The response from the request for the previous page. (required)
189
190 Returns:
191 A request object that you can call &#x27;execute()&#x27; on to request the next
192 page. Returns None if there are no more items in the collection.
193 </pre>
194 </div>
195
196 <div class="method">
197 <code class="details" id="close">close()</code>
198 <pre>Close httplib2 connections.</pre>
199 </div>
200
201 <div class="method">
202 <code class="details" id="create">create(parent, body=None, externalId=None, x__xgafv=None)</code>
203 <pre>Creates Assured Workload.
204
205 Args:
206 parent: string, Required. The resource name of the new Workload&#x27;s parent. Must be of the form `organizations/{org_id}/locations/{location_id}`. (required)
207 body: object, The request body.
208 The object takes the form of:
209
210 { # A Workload object for managing highly regulated workloads of cloud customers.
211 &quot;billingAccount&quot;: &quot;A String&quot;, # Optional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
212 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
213 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
214 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
215 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
216 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
217 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
218 },
219 &quot;compliantButDisallowedServices&quot;: [ # Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment.
220 &quot;A String&quot;,
221 ],
222 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
223 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
224 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
225 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
226 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
227 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
228 },
229 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
230 &quot;etag&quot;: &quot;A String&quot;, # Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update &amp; Delete operations.
231 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
232 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
233 &quot;nextRotationTime&quot;: &quot;A String&quot;, # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
234 &quot;rotationPeriod&quot;: &quot;A String&quot;, # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
235 },
236 &quot;labels&quot;: { # Optional. Labels applied to the workload.
237 &quot;a_key&quot;: &quot;A String&quot;,
238 },
239 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
240 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
241 &quot;partnerPermissions&quot;: { # Permissions granted to the AW Partner SA account for the customer workload # Optional. Permissions granted to the AW Partner SA account for the customer workload
242 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
243 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
244 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
245 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
246 },
247 &quot;partnerServicesBillingAccount&quot;: &quot;A String&quot;, # Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner workloads. The caller should have &#x27;billing.resourceAssociations.create&#x27; IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC
248 &quot;provisionedResourcesParent&quot;: &quot;A String&quot;, # Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
249 &quot;resourceMonitoringEnabled&quot;: True or False, # Output only. Indicates whether resource monitoring is enabled for workload or not. It is true when Resource feed is subscribed to AWM topic and AWM Service Agent Role is binded to AW Service Account for resource Assured workload.
250 &quot;resourceSettings&quot;: [ # Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
251 { # Represent the custom settings for the resources to be created.
252 &quot;displayName&quot;: &quot;A String&quot;, # User-assigned resource display name. If not empty it will be used to create a resource with the specified name.
253 &quot;resourceId&quot;: &quot;A String&quot;, # Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don&#x27;t set this value as folder_id is assigned by Google.
254 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
255 },
256 ],
257 &quot;resources&quot;: [ # Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
258 { # Represent the resources that are children of this Workload.
259 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
260 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
261 },
262 ],
263 &quot;saaEnrollmentResponse&quot;: { # Signed Access Approvals (SAA) enrollment response. # Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
264 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
265 &quot;A String&quot;,
266 ],
267 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
268 },
269 &quot;violationNotificationsEnabled&quot;: True or False, # Optional. Indicates whether the e-mail notification for a violation is enabled for a workload. This value will be by default True, and if not present will be considered as true. This should only be updated via updateWorkload call. Any Changes to this field during the createWorkload call will not be honored. This will always be true while creating the workload.
270 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
271 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
272 },
273 }
274
275 externalId: string, Optional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.
276 x__xgafv: string, V1 error format.
277 Allowed values
278 1 - v1 error format
279 2 - v2 error format
280
281 Returns:
282 An object of the form:
283
284 { # This resource represents a long-running operation that is the result of a network API call.
285 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
286 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
287 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
288 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
289 {
290 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
291 },
292 ],
293 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
294 },
295 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
297 },
298 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
299 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
300 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
301 },
302 }</pre>
303 </div>
304
305 <div class="method">
306 <code class="details" id="delete">delete(name, etag=None, x__xgafv=None)</code>
307 <pre>Deletes the workload. Make sure that workload&#x27;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.
308
309 Args:
310 name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
311 etag: string, Optional. The etag of the workload. If this is provided, it must match the server&#x27;s etag.
312 x__xgafv: string, V1 error format.
313 Allowed values
314 1 - v1 error format
315 2 - v2 error format
316
317 Returns:
318 An object of the form:
319
320 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
321 }</pre>
322 </div>
323
324 <div class="method">
325 <code class="details" id="enableComplianceUpdates">enableComplianceUpdates(name, x__xgafv=None)</code>
326 <pre>This endpoint enables Assured Workloads service to offer compliance updates for the folder based assured workload. It sets up an Assured Workloads Service Agent, having permissions to read compliance controls (for example: Org Policies) applied on the workload. The caller must have `resourcemanager.folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions on the assured workload folder.
327
328 Args:
329 name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
330 x__xgafv: string, V1 error format.
331 Allowed values
332 1 - v1 error format
333 2 - v2 error format
334
335 Returns:
336 An object of the form:
337
338 { # Response for EnableComplianceUpdates endpoint.
339 }</pre>
340 </div>
341
342 <div class="method">
343 <code class="details" id="enableResourceMonitoring">enableResourceMonitoring(name, x__xgafv=None)</code>
344 <pre>Enable resource violation monitoring for a workload.
345
346 Args:
347 name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
348 x__xgafv: string, V1 error format.
349 Allowed values
350 1 - v1 error format
351 2 - v2 error format
352
353 Returns:
354 An object of the form:
355
356 { # Response for EnableResourceMonitoring endpoint.
357 }</pre>
358 </div>
359
360 <div class="method">
361 <code class="details" id="get">get(name, x__xgafv=None)</code>
362 <pre>Gets Assured Workload associated with a CRM Node
363
364 Args:
365 name: string, Required. The resource name of the Workload to fetch. This is the workloads&#x27;s relative path in the API, formatted as &quot;organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}&quot;. For example, &quot;organizations/123/locations/us-east1/workloads/assured-workload-1&quot;. (required)
366 x__xgafv: string, V1 error format.
367 Allowed values
368 1 - v1 error format
369 2 - v2 error format
370
371 Returns:
372 An object of the form:
373
374 { # A Workload object for managing highly regulated workloads of cloud customers.
375 &quot;billingAccount&quot;: &quot;A String&quot;, # Optional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
376 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
377 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
378 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
379 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
380 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
381 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
382 },
383 &quot;compliantButDisallowedServices&quot;: [ # Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment.
384 &quot;A String&quot;,
385 ],
386 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
387 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
388 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
389 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
390 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
391 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
392 },
393 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
394 &quot;etag&quot;: &quot;A String&quot;, # Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update &amp; Delete operations.
395 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
396 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
397 &quot;nextRotationTime&quot;: &quot;A String&quot;, # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
398 &quot;rotationPeriod&quot;: &quot;A String&quot;, # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
399 },
400 &quot;labels&quot;: { # Optional. Labels applied to the workload.
401 &quot;a_key&quot;: &quot;A String&quot;,
402 },
403 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
404 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
405 &quot;partnerPermissions&quot;: { # Permissions granted to the AW Partner SA account for the customer workload # Optional. Permissions granted to the AW Partner SA account for the customer workload
406 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
407 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
408 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
409 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
410 },
411 &quot;partnerServicesBillingAccount&quot;: &quot;A String&quot;, # Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner workloads. The caller should have &#x27;billing.resourceAssociations.create&#x27; IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC
412 &quot;provisionedResourcesParent&quot;: &quot;A String&quot;, # Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
413 &quot;resourceMonitoringEnabled&quot;: True or False, # Output only. Indicates whether resource monitoring is enabled for workload or not. It is true when Resource feed is subscribed to AWM topic and AWM Service Agent Role is binded to AW Service Account for resource Assured workload.
414 &quot;resourceSettings&quot;: [ # Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
415 { # Represent the custom settings for the resources to be created.
416 &quot;displayName&quot;: &quot;A String&quot;, # User-assigned resource display name. If not empty it will be used to create a resource with the specified name.
417 &quot;resourceId&quot;: &quot;A String&quot;, # Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don&#x27;t set this value as folder_id is assigned by Google.
418 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
419 },
420 ],
421 &quot;resources&quot;: [ # Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
422 { # Represent the resources that are children of this Workload.
423 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
424 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
425 },
426 ],
427 &quot;saaEnrollmentResponse&quot;: { # Signed Access Approvals (SAA) enrollment response. # Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
428 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
429 &quot;A String&quot;,
430 ],
431 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
432 },
433 &quot;violationNotificationsEnabled&quot;: True or False, # Optional. Indicates whether the e-mail notification for a violation is enabled for a workload. This value will be by default True, and if not present will be considered as true. This should only be updated via updateWorkload call. Any Changes to this field during the createWorkload call will not be honored. This will always be true while creating the workload.
434 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
435 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
436 },
437 }</pre>
438 </div>
439
440 <div class="method">
441 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
442 <pre>Lists Assured Workloads under a CRM Node.
443
444 Args:
445 parent: string, Required. Parent Resource to list workloads from. Must be of the form `organizations/{org_id}/locations/{location}`. (required)
446 filter: string, A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.
447 pageSize: integer, Page size.
448 pageToken: string, Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.
449 x__xgafv: string, V1 error format.
450 Allowed values
451 1 - v1 error format
452 2 - v2 error format
453
454 Returns:
455 An object of the form:
456
457 { # Response of ListWorkloads endpoint.
458 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token. Return empty if reached the last page.
459 &quot;workloads&quot;: [ # List of Workloads under a given parent.
460 { # A Workload object for managing highly regulated workloads of cloud customers.
461 &quot;billingAccount&quot;: &quot;A String&quot;, # Optional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
462 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
463 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
464 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
465 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
466 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
467 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
468 },
469 &quot;compliantButDisallowedServices&quot;: [ # Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment.
470 &quot;A String&quot;,
471 ],
472 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
473 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
474 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
475 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
476 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
477 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
478 },
479 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
480 &quot;etag&quot;: &quot;A String&quot;, # Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update &amp; Delete operations.
481 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
482 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
483 &quot;nextRotationTime&quot;: &quot;A String&quot;, # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
484 &quot;rotationPeriod&quot;: &quot;A String&quot;, # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
485 },
486 &quot;labels&quot;: { # Optional. Labels applied to the workload.
487 &quot;a_key&quot;: &quot;A String&quot;,
488 },
489 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
490 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
491 &quot;partnerPermissions&quot;: { # Permissions granted to the AW Partner SA account for the customer workload # Optional. Permissions granted to the AW Partner SA account for the customer workload
492 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
493 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
494 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
495 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
496 },
497 &quot;partnerServicesBillingAccount&quot;: &quot;A String&quot;, # Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner workloads. The caller should have &#x27;billing.resourceAssociations.create&#x27; IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC
498 &quot;provisionedResourcesParent&quot;: &quot;A String&quot;, # Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
499 &quot;resourceMonitoringEnabled&quot;: True or False, # Output only. Indicates whether resource monitoring is enabled for workload or not. It is true when Resource feed is subscribed to AWM topic and AWM Service Agent Role is binded to AW Service Account for resource Assured workload.
500 &quot;resourceSettings&quot;: [ # Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
501 { # Represent the custom settings for the resources to be created.
502 &quot;displayName&quot;: &quot;A String&quot;, # User-assigned resource display name. If not empty it will be used to create a resource with the specified name.
503 &quot;resourceId&quot;: &quot;A String&quot;, # Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don&#x27;t set this value as folder_id is assigned by Google.
504 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
505 },
506 ],
507 &quot;resources&quot;: [ # Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
508 { # Represent the resources that are children of this Workload.
509 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
510 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
511 },
512 ],
513 &quot;saaEnrollmentResponse&quot;: { # Signed Access Approvals (SAA) enrollment response. # Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
514 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
515 &quot;A String&quot;,
516 ],
517 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
518 },
519 &quot;violationNotificationsEnabled&quot;: True or False, # Optional. Indicates whether the e-mail notification for a violation is enabled for a workload. This value will be by default True, and if not present will be considered as true. This should only be updated via updateWorkload call. Any Changes to this field during the createWorkload call will not be honored. This will always be true while creating the workload.
520 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
521 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
522 },
523 },
524 ],
525 }</pre>
526 </div>
527
528 <div class="method">
529 <code class="details" id="list_next">list_next()</code>
530 <pre>Retrieves the next page of results.
531
532 Args:
533 previous_request: The request for the previous page. (required)
534 previous_response: The response from the request for the previous page. (required)
535
536 Returns:
537 A request object that you can call &#x27;execute()&#x27; on to request the next
538 page. Returns None if there are no more items in the collection.
539 </pre>
540 </div>
541
542 <div class="method">
543 <code class="details" id="mutatePartnerPermissions">mutatePartnerPermissions(name, body=None, x__xgafv=None)</code>
544 <pre>Update the permissions settings for an existing partner workload. For force updates don&#x27;t set etag field in the Workload. Only one update operation per workload can be in progress.
545
546 Args:
547 name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
548 body: object, The request body.
549 The object takes the form of:
550
551 { # Request for updating permission settings for a partner workload.
552 &quot;etag&quot;: &quot;A String&quot;, # Optional. The etag of the workload. If this is provided, it must match the server&#x27;s etag.
553 &quot;partnerPermissions&quot;: { # Permissions granted to the AW Partner SA account for the customer workload # Required. The partner permissions to be updated.
554 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
555 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
556 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
557 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
558 },
559 &quot;updateMask&quot;: &quot;A String&quot;, # Required. The list of fields to be updated. E.g. update_mask { paths: &quot;partner_permissions.data_logs_viewer&quot;}
560 }
561
562 x__xgafv: string, V1 error format.
563 Allowed values
564 1 - v1 error format
565 2 - v2 error format
566
567 Returns:
568 An object of the form:
569
570 { # A Workload object for managing highly regulated workloads of cloud customers.
571 &quot;billingAccount&quot;: &quot;A String&quot;, # Optional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
572 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
573 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
574 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
575 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
576 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
577 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
578 },
579 &quot;compliantButDisallowedServices&quot;: [ # Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment.
580 &quot;A String&quot;,
581 ],
582 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
583 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
584 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
585 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
586 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
587 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
588 },
589 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
590 &quot;etag&quot;: &quot;A String&quot;, # Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update &amp; Delete operations.
591 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
592 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
593 &quot;nextRotationTime&quot;: &quot;A String&quot;, # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
594 &quot;rotationPeriod&quot;: &quot;A String&quot;, # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
595 },
596 &quot;labels&quot;: { # Optional. Labels applied to the workload.
597 &quot;a_key&quot;: &quot;A String&quot;,
598 },
599 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
600 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
601 &quot;partnerPermissions&quot;: { # Permissions granted to the AW Partner SA account for the customer workload # Optional. Permissions granted to the AW Partner SA account for the customer workload
602 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
603 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
604 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
605 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
606 },
607 &quot;partnerServicesBillingAccount&quot;: &quot;A String&quot;, # Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner workloads. The caller should have &#x27;billing.resourceAssociations.create&#x27; IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC
608 &quot;provisionedResourcesParent&quot;: &quot;A String&quot;, # Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
609 &quot;resourceMonitoringEnabled&quot;: True or False, # Output only. Indicates whether resource monitoring is enabled for workload or not. It is true when Resource feed is subscribed to AWM topic and AWM Service Agent Role is binded to AW Service Account for resource Assured workload.
610 &quot;resourceSettings&quot;: [ # Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
611 { # Represent the custom settings for the resources to be created.
612 &quot;displayName&quot;: &quot;A String&quot;, # User-assigned resource display name. If not empty it will be used to create a resource with the specified name.
613 &quot;resourceId&quot;: &quot;A String&quot;, # Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don&#x27;t set this value as folder_id is assigned by Google.
614 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
615 },
616 ],
617 &quot;resources&quot;: [ # Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
618 { # Represent the resources that are children of this Workload.
619 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
620 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
621 },
622 ],
623 &quot;saaEnrollmentResponse&quot;: { # Signed Access Approvals (SAA) enrollment response. # Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
624 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
625 &quot;A String&quot;,
626 ],
627 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
628 },
629 &quot;violationNotificationsEnabled&quot;: True or False, # Optional. Indicates whether the e-mail notification for a violation is enabled for a workload. This value will be by default True, and if not present will be considered as true. This should only be updated via updateWorkload call. Any Changes to this field during the createWorkload call will not be honored. This will always be true while creating the workload.
630 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
631 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
632 },
633 }</pre>
634 </div>
635
636 <div class="method">
637 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
638 <pre>Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don&#x27;t set etag field in the Workload. Only one update operation per workload can be in progress.
639
640 Args:
641 name: string, Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only. (required)
642 body: object, The request body.
643 The object takes the form of:
644
645 { # A Workload object for managing highly regulated workloads of cloud customers.
646 &quot;billingAccount&quot;: &quot;A String&quot;, # Optional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
647 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
648 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
649 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
650 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
651 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
652 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
653 },
654 &quot;compliantButDisallowedServices&quot;: [ # Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment.
655 &quot;A String&quot;,
656 ],
657 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
658 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
659 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
660 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
661 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
662 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
663 },
664 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
665 &quot;etag&quot;: &quot;A String&quot;, # Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update &amp; Delete operations.
666 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
667 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
668 &quot;nextRotationTime&quot;: &quot;A String&quot;, # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
669 &quot;rotationPeriod&quot;: &quot;A String&quot;, # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
670 },
671 &quot;labels&quot;: { # Optional. Labels applied to the workload.
672 &quot;a_key&quot;: &quot;A String&quot;,
673 },
674 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
675 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
676 &quot;partnerPermissions&quot;: { # Permissions granted to the AW Partner SA account for the customer workload # Optional. Permissions granted to the AW Partner SA account for the customer workload
677 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
678 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
679 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
680 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
681 },
682 &quot;partnerServicesBillingAccount&quot;: &quot;A String&quot;, # Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner workloads. The caller should have &#x27;billing.resourceAssociations.create&#x27; IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC
683 &quot;provisionedResourcesParent&quot;: &quot;A String&quot;, # Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
684 &quot;resourceMonitoringEnabled&quot;: True or False, # Output only. Indicates whether resource monitoring is enabled for workload or not. It is true when Resource feed is subscribed to AWM topic and AWM Service Agent Role is binded to AW Service Account for resource Assured workload.
685 &quot;resourceSettings&quot;: [ # Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
686 { # Represent the custom settings for the resources to be created.
687 &quot;displayName&quot;: &quot;A String&quot;, # User-assigned resource display name. If not empty it will be used to create a resource with the specified name.
688 &quot;resourceId&quot;: &quot;A String&quot;, # Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don&#x27;t set this value as folder_id is assigned by Google.
689 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
690 },
691 ],
692 &quot;resources&quot;: [ # Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
693 { # Represent the resources that are children of this Workload.
694 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
695 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
696 },
697 ],
698 &quot;saaEnrollmentResponse&quot;: { # Signed Access Approvals (SAA) enrollment response. # Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
699 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
700 &quot;A String&quot;,
701 ],
702 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
703 },
704 &quot;violationNotificationsEnabled&quot;: True or False, # Optional. Indicates whether the e-mail notification for a violation is enabled for a workload. This value will be by default True, and if not present will be considered as true. This should only be updated via updateWorkload call. Any Changes to this field during the createWorkload call will not be honored. This will always be true while creating the workload.
705 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
706 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
707 },
708 }
709
710 updateMask: string, Required. The list of fields to be updated.
711 x__xgafv: string, V1 error format.
712 Allowed values
713 1 - v1 error format
714 2 - v2 error format
715
716 Returns:
717 An object of the form:
718
719 { # A Workload object for managing highly regulated workloads of cloud customers.
720 &quot;billingAccount&quot;: &quot;A String&quot;, # Optional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
721 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
722 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
723 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
724 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
725 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
726 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
727 },
728 &quot;compliantButDisallowedServices&quot;: [ # Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment.
729 &quot;A String&quot;,
730 ],
731 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
732 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
733 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
734 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
735 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
736 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
737 },
738 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
739 &quot;etag&quot;: &quot;A String&quot;, # Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update &amp; Delete operations.
740 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
741 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
742 &quot;nextRotationTime&quot;: &quot;A String&quot;, # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
743 &quot;rotationPeriod&quot;: &quot;A String&quot;, # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
744 },
745 &quot;labels&quot;: { # Optional. Labels applied to the workload.
746 &quot;a_key&quot;: &quot;A String&quot;,
747 },
748 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
749 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
750 &quot;partnerPermissions&quot;: { # Permissions granted to the AW Partner SA account for the customer workload # Optional. Permissions granted to the AW Partner SA account for the customer workload
751 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
752 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
753 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
754 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
755 },
756 &quot;partnerServicesBillingAccount&quot;: &quot;A String&quot;, # Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner workloads. The caller should have &#x27;billing.resourceAssociations.create&#x27; IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC
757 &quot;provisionedResourcesParent&quot;: &quot;A String&quot;, # Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
758 &quot;resourceMonitoringEnabled&quot;: True or False, # Output only. Indicates whether resource monitoring is enabled for workload or not. It is true when Resource feed is subscribed to AWM topic and AWM Service Agent Role is binded to AW Service Account for resource Assured workload.
759 &quot;resourceSettings&quot;: [ # Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
760 { # Represent the custom settings for the resources to be created.
761 &quot;displayName&quot;: &quot;A String&quot;, # User-assigned resource display name. If not empty it will be used to create a resource with the specified name.
762 &quot;resourceId&quot;: &quot;A String&quot;, # Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don&#x27;t set this value as folder_id is assigned by Google.
763 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
764 },
765 ],
766 &quot;resources&quot;: [ # Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
767 { # Represent the resources that are children of this Workload.
768 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
769 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
770 },
771 ],
772 &quot;saaEnrollmentResponse&quot;: { # Signed Access Approvals (SAA) enrollment response. # Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
773 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
774 &quot;A String&quot;,
775 ],
776 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
777 },
778 &quot;violationNotificationsEnabled&quot;: True or False, # Optional. Indicates whether the e-mail notification for a violation is enabled for a workload. This value will be by default True, and if not present will be considered as true. This should only be updated via updateWorkload call. Any Changes to this field during the createWorkload call will not be honored. This will always be true while creating the workload.
779 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
780 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
781 },
782 }</pre>
783 </div>
784
785 <div class="method">
786 <code class="details" id="restrictAllowedResources">restrictAllowedResources(name, body=None, x__xgafv=None)</code>
787 <pre>Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.
788
789 Args:
790 name: string, Required. The resource name of the Workload. This is the workloads&#x27;s relative path in the API, formatted as &quot;organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}&quot;. For example, &quot;organizations/123/locations/us-east1/workloads/assured-workload-1&quot;. (required)
791 body: object, The request body.
792 The object takes the form of:
793
794 { # Request for restricting list of available resources in Workload environment.
795 &quot;restrictionType&quot;: &quot;A String&quot;, # Required. The type of restriction for using gcp products in the Workload environment.
796 }
797
798 x__xgafv: string, V1 error format.
799 Allowed values
800 1 - v1 error format
801 2 - v2 error format
802
803 Returns:
804 An object of the form:
805
806 { # Response for restricting the list of allowed resources.
807 }</pre>
808 </div>
809
810 </body></html>