Debian Codegraph @

docs/dyn/assuredworkloads_v1beta1.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_v1beta1.html">Assured Workloads API</a> . <a href="assuredworkloads_v1beta1.organizations.html">organizations</a> . <a href="assuredworkloads_v1beta1.organizations.locations.html">locations</a> . <a href="assuredworkloads_v1beta1.organizations.locations.workloads.html">workloads</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="assuredworkloads_v1beta1.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_v1beta1.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="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
119 <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>
120 <p class="toc_element">
121 <code><a href="#restrictAllowedResources">restrictAllowedResources(name, body=None, x__xgafv=None)</a></code></p>
122 <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>
123 <h3>Method Details</h3>
124 <div class="method">
125 <code class="details" id="analyzeWorkloadMove">analyzeWorkloadMove(target, assetTypes=None, pageSize=None, pageToken=None, project=None, x__xgafv=None)</code>
126 <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.
127
128 Args:
129 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)
130 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)
131 pageSize: integer, Optional. Page size. If a value is not specified, the default value of 10 is used. The maximum value is 50.
132 pageToken: string, Optional. The page token from the previous response. It needs to be passed in the second and following requests.
133 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.
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138
139 Returns:
140 An object of the form:
141
142 { # Response containing the analysis results for the hypothetical resource move.
143 &quot;assetMoveAnalyses&quot;: [ # List of analysis results for each asset in scope.
144 { # Represents move analysis results for an asset.
145 &quot;analysisGroups&quot;: [ # List of eligible analyses performed for the asset.
146 { # 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.
147 &quot;analysisResult&quot;: { # Represents the successful move analysis results for a group. # Result of a successful analysis.
148 &quot;blockers&quot;: [ # List of blockers. If not resolved, these will result in compliance violations in the target.
149 { # Represents the impact of moving the asset to the target.
150 &quot;detail&quot;: &quot;A String&quot;, # Explanation of the impact.
151 },
152 ],
153 &quot;warnings&quot;: [ # List of warnings. These are risks that may or may not result in compliance violations.
154 { # Represents the impact of moving the asset to the target.
155 &quot;detail&quot;: &quot;A String&quot;, # Explanation of the impact.
156 },
157 ],
158 },
159 &quot;displayName&quot;: &quot;A String&quot;, # Name of the analysis group.
160 &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.
161 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
162 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
163 {
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
165 },
166 ],
167 &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.
168 },
169 },
170 ],
171 &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
172 &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).
173 },
174 ],
175 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token. Is empty if the last page is reached.
176 }</pre>
177 </div>
178
179 <div class="method">
180 <code class="details" id="analyzeWorkloadMove_next">analyzeWorkloadMove_next()</code>
181 <pre>Retrieves the next page of results.
182
183 Args:
184 previous_request: The request for the previous page. (required)
185 previous_response: The response from the request for the previous page. (required)
186
187 Returns:
188 A request object that you can call &#x27;execute()&#x27; on to request the next
189 page. Returns None if there are no more items in the collection.
190 </pre>
191 </div>
192
193 <div class="method">
194 <code class="details" id="close">close()</code>
195 <pre>Close httplib2 connections.</pre>
196 </div>
197
198 <div class="method">
199 <code class="details" id="create">create(parent, body=None, externalId=None, x__xgafv=None)</code>
200 <pre>Creates Assured Workload.
201
202 Args:
203 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)
204 body: object, The request body.
205 The object takes the form of:
206
207 { # A Workload object for managing highly regulated workloads of cloud customers.
208 &quot;availableUpdates&quot;: 42, # Output only. The number of updates available for the workload.
209 &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`.
210 &quot;cjisSettings&quot;: { # Settings specific to resources needed for CJIS. # Input only. Immutable. Settings specific to resources needed for CJIS.
211 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
212 &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.
213 &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.
214 },
215 },
216 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
217 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
218 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
219 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
220 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
221 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
222 },
223 &quot;complianceUpdatesEnabled&quot;: True or False, # Output only. Indicates whether the compliance updates feature is enabled for a workload. The compliance updates feature can be enabled via the EnableComplianceUpdates endpoint.
224 &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.
225 &quot;A String&quot;,
226 ],
227 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
228 &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
229 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
230 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
231 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
232 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
233 },
234 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
235 &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.
236 &quot;fedrampHighSettings&quot;: { # Settings specific to resources needed for FedRAMP High. # Input only. Immutable. Settings specific to resources needed for FedRAMP High.
237 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
238 &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.
239 &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.
240 },
241 },
242 &quot;fedrampModerateSettings&quot;: { # Settings specific to resources needed for FedRAMP Moderate. # Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
243 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
244 &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.
245 &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.
246 },
247 },
248 &quot;il4Settings&quot;: { # Settings specific to resources needed for IL4. # Input only. Immutable. Settings specific to resources needed for IL4.
249 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
250 &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.
251 &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.
252 },
253 },
254 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
255 &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.
256 &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.
257 &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.
258 },
259 &quot;labels&quot;: { # Optional. Labels applied to the workload.
260 &quot;a_key&quot;: &quot;A String&quot;,
261 },
262 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
263 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
264 &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
265 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
266 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
267 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
268 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
269 },
270 &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
271 &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}
272 &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.
273 &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.
274 { # Represent the custom settings for the resources to be created.
275 &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.
276 &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.
277 &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)
278 },
279 ],
280 &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.
281 { # Represent the resources that are children of this Workload.
282 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
283 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
284 },
285 ],
286 &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.
287 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
288 &quot;A String&quot;,
289 ],
290 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
291 },
292 &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.
293 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
294 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
295 },
296 }
297
298 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.
299 x__xgafv: string, V1 error format.
300 Allowed values
301 1 - v1 error format
302 2 - v2 error format
303
304 Returns:
305 An object of the form:
306
307 { # This resource represents a long-running operation that is the result of a network API call.
308 &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.
309 &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.
310 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
311 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
312 {
313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
314 },
315 ],
316 &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.
317 },
318 &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.
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
320 },
321 &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}`.
322 &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`.
323 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
324 },
325 }</pre>
326 </div>
327
328 <div class="method">
329 <code class="details" id="delete">delete(name, etag=None, x__xgafv=None)</code>
330 <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.
331
332 Args:
333 name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
334 etag: string, Optional. The etag of the workload. If this is provided, it must match the server&#x27;s etag.
335 x__xgafv: string, V1 error format.
336 Allowed values
337 1 - v1 error format
338 2 - v2 error format
339
340 Returns:
341 An object of the form:
342
343 { # 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); }
344 }</pre>
345 </div>
346
347 <div class="method">
348 <code class="details" id="enableComplianceUpdates">enableComplianceUpdates(name, x__xgafv=None)</code>
349 <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.
350
351 Args:
352 name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
353 x__xgafv: string, V1 error format.
354 Allowed values
355 1 - v1 error format
356 2 - v2 error format
357
358 Returns:
359 An object of the form:
360
361 { # Response for EnableComplianceUpdates endpoint.
362 }</pre>
363 </div>
364
365 <div class="method">
366 <code class="details" id="enableResourceMonitoring">enableResourceMonitoring(name, x__xgafv=None)</code>
367 <pre>Enable resource violation monitoring for a workload.
368
369 Args:
370 name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
371 x__xgafv: string, V1 error format.
372 Allowed values
373 1 - v1 error format
374 2 - v2 error format
375
376 Returns:
377 An object of the form:
378
379 { # Response for EnableResourceMonitoring endpoint.
380 }</pre>
381 </div>
382
383 <div class="method">
384 <code class="details" id="get">get(name, x__xgafv=None)</code>
385 <pre>Gets Assured Workload associated with a CRM Node
386
387 Args:
388 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)
389 x__xgafv: string, V1 error format.
390 Allowed values
391 1 - v1 error format
392 2 - v2 error format
393
394 Returns:
395 An object of the form:
396
397 { # A Workload object for managing highly regulated workloads of cloud customers.
398 &quot;availableUpdates&quot;: 42, # Output only. The number of updates available for the workload.
399 &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`.
400 &quot;cjisSettings&quot;: { # Settings specific to resources needed for CJIS. # Input only. Immutable. Settings specific to resources needed for CJIS.
401 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
402 &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.
403 &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.
404 },
405 },
406 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
407 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
408 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
409 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
410 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
411 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
412 },
413 &quot;complianceUpdatesEnabled&quot;: True or False, # Output only. Indicates whether the compliance updates feature is enabled for a workload. The compliance updates feature can be enabled via the EnableComplianceUpdates endpoint.
414 &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.
415 &quot;A String&quot;,
416 ],
417 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
418 &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
419 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
420 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
421 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
422 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
423 },
424 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
425 &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.
426 &quot;fedrampHighSettings&quot;: { # Settings specific to resources needed for FedRAMP High. # Input only. Immutable. Settings specific to resources needed for FedRAMP High.
427 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
428 &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.
429 &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.
430 },
431 },
432 &quot;fedrampModerateSettings&quot;: { # Settings specific to resources needed for FedRAMP Moderate. # Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
433 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
434 &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.
435 &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.
436 },
437 },
438 &quot;il4Settings&quot;: { # Settings specific to resources needed for IL4. # Input only. Immutable. Settings specific to resources needed for IL4.
439 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
440 &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.
441 &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.
442 },
443 },
444 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
445 &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.
446 &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.
447 &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.
448 },
449 &quot;labels&quot;: { # Optional. Labels applied to the workload.
450 &quot;a_key&quot;: &quot;A String&quot;,
451 },
452 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
453 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
454 &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
455 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
456 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
457 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
458 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
459 },
460 &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
461 &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}
462 &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.
463 &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.
464 { # Represent the custom settings for the resources to be created.
465 &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.
466 &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.
467 &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)
468 },
469 ],
470 &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.
471 { # Represent the resources that are children of this Workload.
472 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
473 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
474 },
475 ],
476 &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.
477 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
478 &quot;A String&quot;,
479 ],
480 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
481 },
482 &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.
483 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
484 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
485 },
486 }</pre>
487 </div>
488
489 <div class="method">
490 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
491 <pre>Lists Assured Workloads under a CRM Node.
492
493 Args:
494 parent: string, Required. Parent Resource to list workloads from. Must be of the form `organizations/{org_id}/locations/{location}`. (required)
495 filter: string, A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.
496 pageSize: integer, Page size.
497 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.
498 x__xgafv: string, V1 error format.
499 Allowed values
500 1 - v1 error format
501 2 - v2 error format
502
503 Returns:
504 An object of the form:
505
506 { # Response of ListWorkloads endpoint.
507 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token. Return empty if reached the last page.
508 &quot;workloads&quot;: [ # List of Workloads under a given parent.
509 { # A Workload object for managing highly regulated workloads of cloud customers.
510 &quot;availableUpdates&quot;: 42, # Output only. The number of updates available for the workload.
511 &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`.
512 &quot;cjisSettings&quot;: { # Settings specific to resources needed for CJIS. # Input only. Immutable. Settings specific to resources needed for CJIS.
513 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
514 &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.
515 &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.
516 },
517 },
518 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
519 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
520 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
521 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
522 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
523 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
524 },
525 &quot;complianceUpdatesEnabled&quot;: True or False, # Output only. Indicates whether the compliance updates feature is enabled for a workload. The compliance updates feature can be enabled via the EnableComplianceUpdates endpoint.
526 &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.
527 &quot;A String&quot;,
528 ],
529 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
530 &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
531 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
532 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
533 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
534 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
535 },
536 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
537 &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.
538 &quot;fedrampHighSettings&quot;: { # Settings specific to resources needed for FedRAMP High. # Input only. Immutable. Settings specific to resources needed for FedRAMP High.
539 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
540 &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.
541 &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.
542 },
543 },
544 &quot;fedrampModerateSettings&quot;: { # Settings specific to resources needed for FedRAMP Moderate. # Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
545 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
546 &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.
547 &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.
548 },
549 },
550 &quot;il4Settings&quot;: { # Settings specific to resources needed for IL4. # Input only. Immutable. Settings specific to resources needed for IL4.
551 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
552 &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.
553 &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.
554 },
555 },
556 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
557 &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.
558 &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.
559 &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.
560 },
561 &quot;labels&quot;: { # Optional. Labels applied to the workload.
562 &quot;a_key&quot;: &quot;A String&quot;,
563 },
564 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
565 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
566 &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
567 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
568 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
569 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
570 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
571 },
572 &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
573 &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}
574 &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.
575 &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.
576 { # Represent the custom settings for the resources to be created.
577 &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.
578 &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.
579 &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)
580 },
581 ],
582 &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.
583 { # Represent the resources that are children of this Workload.
584 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
585 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
586 },
587 ],
588 &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.
589 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
590 &quot;A String&quot;,
591 ],
592 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
593 },
594 &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.
595 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
596 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
597 },
598 },
599 ],
600 }</pre>
601 </div>
602
603 <div class="method">
604 <code class="details" id="list_next">list_next()</code>
605 <pre>Retrieves the next page of results.
606
607 Args:
608 previous_request: The request for the previous page. (required)
609 previous_response: The response from the request for the previous page. (required)
610
611 Returns:
612 A request object that you can call &#x27;execute()&#x27; on to request the next
613 page. Returns None if there are no more items in the collection.
614 </pre>
615 </div>
616
617 <div class="method">
618 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
619 <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.
620
621 Args:
622 name: string, Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only. (required)
623 body: object, The request body.
624 The object takes the form of:
625
626 { # A Workload object for managing highly regulated workloads of cloud customers.
627 &quot;availableUpdates&quot;: 42, # Output only. The number of updates available for the workload.
628 &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`.
629 &quot;cjisSettings&quot;: { # Settings specific to resources needed for CJIS. # Input only. Immutable. Settings specific to resources needed for CJIS.
630 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
631 &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.
632 &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.
633 },
634 },
635 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
636 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
637 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
638 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
639 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
640 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
641 },
642 &quot;complianceUpdatesEnabled&quot;: True or False, # Output only. Indicates whether the compliance updates feature is enabled for a workload. The compliance updates feature can be enabled via the EnableComplianceUpdates endpoint.
643 &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.
644 &quot;A String&quot;,
645 ],
646 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
647 &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
648 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
649 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
650 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
651 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
652 },
653 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
654 &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.
655 &quot;fedrampHighSettings&quot;: { # Settings specific to resources needed for FedRAMP High. # Input only. Immutable. Settings specific to resources needed for FedRAMP High.
656 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
657 &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.
658 &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.
659 },
660 },
661 &quot;fedrampModerateSettings&quot;: { # Settings specific to resources needed for FedRAMP Moderate. # Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
662 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
663 &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.
664 &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.
665 },
666 },
667 &quot;il4Settings&quot;: { # Settings specific to resources needed for IL4. # Input only. Immutable. Settings specific to resources needed for IL4.
668 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
669 &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.
670 &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.
671 },
672 },
673 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
674 &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.
675 &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.
676 &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.
677 },
678 &quot;labels&quot;: { # Optional. Labels applied to the workload.
679 &quot;a_key&quot;: &quot;A String&quot;,
680 },
681 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
682 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
683 &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
684 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
685 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
686 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
687 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
688 },
689 &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
690 &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}
691 &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.
692 &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.
693 { # Represent the custom settings for the resources to be created.
694 &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.
695 &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.
696 &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)
697 },
698 ],
699 &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.
700 { # Represent the resources that are children of this Workload.
701 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
702 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
703 },
704 ],
705 &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.
706 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
707 &quot;A String&quot;,
708 ],
709 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
710 },
711 &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.
712 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
713 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
714 },
715 }
716
717 updateMask: string, Required. The list of fields to be updated.
718 x__xgafv: string, V1 error format.
719 Allowed values
720 1 - v1 error format
721 2 - v2 error format
722
723 Returns:
724 An object of the form:
725
726 { # A Workload object for managing highly regulated workloads of cloud customers.
727 &quot;availableUpdates&quot;: 42, # Output only. The number of updates available for the workload.
728 &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`.
729 &quot;cjisSettings&quot;: { # Settings specific to resources needed for CJIS. # Input only. Immutable. Settings specific to resources needed for CJIS.
730 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
731 &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.
732 &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.
733 },
734 },
735 &quot;complianceRegime&quot;: &quot;A String&quot;, # Required. Immutable. Compliance Regime associated with this workload.
736 &quot;complianceStatus&quot;: { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
737 &quot;acknowledgedResourceViolationCount&quot;: 42, # Number of current resource violations which are not acknowledged.
738 &quot;acknowledgedViolationCount&quot;: 42, # Number of current orgPolicy violations which are acknowledged.
739 &quot;activeResourceViolationCount&quot;: 42, # Number of current resource violations which are acknowledged.
740 &quot;activeViolationCount&quot;: 42, # Number of current orgPolicy violations which are not acknowledged.
741 },
742 &quot;complianceUpdatesEnabled&quot;: True or False, # Output only. Indicates whether the compliance updates feature is enabled for a workload. The compliance updates feature can be enabled via the EnableComplianceUpdates endpoint.
743 &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.
744 &quot;A String&quot;,
745 ],
746 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Immutable. The Workload creation timestamp.
747 &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
748 &quot;ekmProvisioningResponse&quot;: { # External key management systems(EKM) Provisioning response # Output only. Represents the Ekm Provisioning State of the given workload.
749 &quot;ekmProvisioningErrorDomain&quot;: &quot;A String&quot;, # Indicates Ekm provisioning error if any.
750 &quot;ekmProvisioningErrorMapping&quot;: &quot;A String&quot;, # Detailed error message if Ekm provisioning fails
751 &quot;ekmProvisioningState&quot;: &quot;A String&quot;, # Output only. Indicates Ekm enrollment Provisioning of a given workload.
752 },
753 &quot;enableSovereignControls&quot;: True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
754 &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.
755 &quot;fedrampHighSettings&quot;: { # Settings specific to resources needed for FedRAMP High. # Input only. Immutable. Settings specific to resources needed for FedRAMP High.
756 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
757 &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.
758 &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.
759 },
760 },
761 &quot;fedrampModerateSettings&quot;: { # Settings specific to resources needed for FedRAMP Moderate. # Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
762 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
763 &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.
764 &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.
765 },
766 },
767 &quot;il4Settings&quot;: { # Settings specific to resources needed for IL4. # Input only. Immutable. Settings specific to resources needed for IL4.
768 &quot;kmsSettings&quot;: { # Settings specific to the Key Management Service. # Input only. Immutable. Settings used to create a CMEK crypto key.
769 &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.
770 &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.
771 },
772 },
773 &quot;kajEnrollmentState&quot;: &quot;A String&quot;, # Output only. Represents the KAJ enrollment state of the given workload.
774 &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.
775 &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.
776 &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.
777 },
778 &quot;labels&quot;: { # Optional. Labels applied to the workload.
779 &quot;a_key&quot;: &quot;A String&quot;,
780 },
781 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
782 &quot;partner&quot;: &quot;A String&quot;, # Optional. Partner regime associated with this workload.
783 &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
784 &quot;accessTransparencyLogsSupportCaseViewer&quot;: True or False, # Optional. Allow partner to view support case details for an AXT log
785 &quot;assuredWorkloadsMonitoring&quot;: True or False, # Optional. Allow partner to view violation alerts.
786 &quot;dataLogsViewer&quot;: True or False, # Optional. Allow the partner to view inspectability logs and monitoring violations.
787 &quot;serviceAccessApprover&quot;: True or False, # Optional. Allow partner to view access approval logs.
788 },
789 &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
790 &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}
791 &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.
792 &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.
793 { # Represent the custom settings for the resources to be created.
794 &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.
795 &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.
796 &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)
797 },
798 ],
799 &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.
800 { # Represent the resources that are children of this Workload.
801 &quot;resourceId&quot;: &quot;A String&quot;, # Output only. Resource identifier. For a project this represents project_number.
802 &quot;resourceType&quot;: &quot;A String&quot;, # Indicates the type of resource.
803 },
804 ],
805 &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.
806 &quot;setupErrors&quot;: [ # Indicates SAA enrollment setup error if any.
807 &quot;A String&quot;,
808 ],
809 &quot;setupStatus&quot;: &quot;A String&quot;, # Output only. Indicates SAA enrollment status of a given workload.
810 },
811 &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.
812 &quot;workloadOptions&quot;: { # Options to be set for the given created workload. # Optional. Options to be set for the given created workload.
813 &quot;kajEnrollmentType&quot;: &quot;A String&quot;, # Optional. Specifies type of KAJ Enrollment if provided.
814 },
815 }</pre>
816 </div>
817
818 <div class="method">
819 <code class="details" id="restrictAllowedResources">restrictAllowedResources(name, body=None, x__xgafv=None)</code>
820 <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.
821
822 Args:
823 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)
824 body: object, The request body.
825 The object takes the form of:
826
827 { # Request for restricting list of available resources in Workload environment.
828 &quot;restrictionType&quot;: &quot;A String&quot;, # Required. The type of restriction for using gcp products in the Workload environment.
829 }
830
831 x__xgafv: string, V1 error format.
832 Allowed values
833 1 - v1 error format
834 2 - v2 error format
835
836 Returns:
837 An object of the form:
838
839 { # Response for restricting the list of allowed resources.
840 }</pre>
841 </div>
842
843 </body></html>