Debian Codegraph @

docs/dyn/apphub_v1.projects.locations.applications.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="apphub_v1.html">App Hub API</a> . <a href="apphub_v1.projects.html">projects</a> . <a href="apphub_v1.projects.locations.html">locations</a> . <a href="apphub_v1.projects.locations.applications.html">applications</a> . <a href="apphub_v1.projects.locations.applications.workloads.html">workloads</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, requestId=None, workloadId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a Workload in an Application.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a Workload from an Application.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a Workload in an Application.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists Workloads in an Application.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a Workload in an Application.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, requestId=None, workloadId=None, x__xgafv=None)</code>
106 <pre>Creates a Workload in an Application.
107
108 Args:
109 parent: string, Required. Fully qualified name of the Application to create Workload in. Expected format: `projects/{project}/locations/{location}/applications/{application}`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.
114 &quot;attributes&quot;: { # Consumer provided attributes. # Optional. Consumer provided attributes.
115 &quot;businessOwners&quot;: [ # Optional. Business team that ensures user needs are met and value is delivered
116 { # Contact information of stakeholders.
117 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
118 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
119 },
120 ],
121 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
122 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
123 },
124 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
125 { # Contact information of stakeholders.
126 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
127 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
128 },
129 ],
130 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
131 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
132 },
133 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
134 { # Contact information of stakeholders.
135 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
136 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
137 },
138 ],
139 },
140 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
141 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
142 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
143 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
144 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Workload. Format: `&quot;projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}&quot;`
145 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
146 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
147 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
148 &quot;workloadProperties&quot;: { # Properties of an underlying compute resource represented by the Workload. # Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
149 &quot;extendedMetadata&quot;: { # Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType}`
150 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
151 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
153 },
154 },
155 },
156 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
157 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
158 },
159 &quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.
160 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
161 &quot;principal&quot;: &quot;A String&quot;, # Output only. The principal of the identity. Supported formats: * `sa://my-sa@PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID` for Managed Workload Identity
162 },
163 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
164 &quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
165 },
166 &quot;workloadReference&quot;: { # Reference of an underlying compute resource represented by the Workload. # Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
167 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
168 },
169 }
170
171 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
172 workloadId: string, Required. The Workload identifier. Must contain only lowercase letters, numbers or hyphens, with the first character a letter, the last a letter or a number, and a 63 character maximum.
173 x__xgafv: string, V1 error format.
174 Allowed values
175 1 - v1 error format
176 2 - v2 error format
177
178 Returns:
179 An object of the form:
180
181 { # This resource represents a long-running operation that is the result of a network API call.
182 &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.
183 &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.
184 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
185 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
186 {
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
189 ],
190 &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.
191 },
192 &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.
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195 &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}`.
196 &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`.
197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
198 },
199 }</pre>
200 </div>
201
202 <div class="method">
203 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
204 <pre>Deletes a Workload from an Application.
205
206 Args:
207 name: string, Required. Fully qualified name of the Workload to delete from an Application. Expected format: `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. (required)
208 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214 Returns:
215 An object of the form:
216
217 { # This resource represents a long-running operation that is the result of a network API call.
218 &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.
219 &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.
220 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
221 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
222 {
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 ],
226 &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.
227 },
228 &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.
229 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
230 },
231 &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}`.
232 &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`.
233 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
234 },
235 }</pre>
236 </div>
237
238 <div class="method">
239 <code class="details" id="get">get(name, x__xgafv=None)</code>
240 <pre>Gets a Workload in an Application.
241
242 Args:
243 name: string, Required. Fully qualified name of the Workload to fetch. Expected format: `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. (required)
244 x__xgafv: string, V1 error format.
245 Allowed values
246 1 - v1 error format
247 2 - v2 error format
248
249 Returns:
250 An object of the form:
251
252 { # Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.
253 &quot;attributes&quot;: { # Consumer provided attributes. # Optional. Consumer provided attributes.
254 &quot;businessOwners&quot;: [ # Optional. Business team that ensures user needs are met and value is delivered
255 { # Contact information of stakeholders.
256 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
257 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
258 },
259 ],
260 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
261 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
262 },
263 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
264 { # Contact information of stakeholders.
265 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
266 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
267 },
268 ],
269 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
270 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
271 },
272 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
273 { # Contact information of stakeholders.
274 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
275 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
276 },
277 ],
278 },
279 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
280 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
281 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
282 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
283 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Workload. Format: `&quot;projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}&quot;`
284 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
285 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
286 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
287 &quot;workloadProperties&quot;: { # Properties of an underlying compute resource represented by the Workload. # Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
288 &quot;extendedMetadata&quot;: { # Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType}`
289 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
290 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
291 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
292 },
293 },
294 },
295 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
296 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
297 },
298 &quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.
299 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
300 &quot;principal&quot;: &quot;A String&quot;, # Output only. The principal of the identity. Supported formats: * `sa://my-sa@PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID` for Managed Workload Identity
301 },
302 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
303 &quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
304 },
305 &quot;workloadReference&quot;: { # Reference of an underlying compute resource represented by the Workload. # Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
306 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
307 },
308 }</pre>
309 </div>
310
311 <div class="method">
312 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
313 <pre>Lists Workloads in an Application.
314
315 Args:
316 parent: string, Required. Fully qualified name of the parent Application to list Workloads for. Expected format: `projects/{project}/locations/{location}/applications/{application}`. (required)
317 filter: string, Optional. Filtering results.
318 orderBy: string, Optional. Hint for how to order the results.
319 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
320 pageToken: string, Optional. A token identifying a page of results the server should return.
321 x__xgafv: string, V1 error format.
322 Allowed values
323 1 - v1 error format
324 2 - v2 error format
325
326 Returns:
327 An object of the form:
328
329 { # Response for ListWorkloads.
330 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
331 &quot;unreachable&quot;: [ # Locations that could not be reached.
332 &quot;A String&quot;,
333 ],
334 &quot;workloads&quot;: [ # List of Workloads.
335 { # Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.
336 &quot;attributes&quot;: { # Consumer provided attributes. # Optional. Consumer provided attributes.
337 &quot;businessOwners&quot;: [ # Optional. Business team that ensures user needs are met and value is delivered
338 { # Contact information of stakeholders.
339 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
340 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
341 },
342 ],
343 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
344 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
345 },
346 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
347 { # Contact information of stakeholders.
348 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
349 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
350 },
351 ],
352 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
353 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
354 },
355 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
356 { # Contact information of stakeholders.
357 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
358 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
359 },
360 ],
361 },
362 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
363 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
364 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
365 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
366 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Workload. Format: `&quot;projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}&quot;`
367 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
368 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
369 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
370 &quot;workloadProperties&quot;: { # Properties of an underlying compute resource represented by the Workload. # Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
371 &quot;extendedMetadata&quot;: { # Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType}`
372 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
373 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
374 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
375 },
376 },
377 },
378 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
379 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
380 },
381 &quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.
382 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
383 &quot;principal&quot;: &quot;A String&quot;, # Output only. The principal of the identity. Supported formats: * `sa://my-sa@PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID` for Managed Workload Identity
384 },
385 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
386 &quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
387 },
388 &quot;workloadReference&quot;: { # Reference of an underlying compute resource represented by the Workload. # Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
389 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
390 },
391 },
392 ],
393 }</pre>
394 </div>
395
396 <div class="method">
397 <code class="details" id="list_next">list_next()</code>
398 <pre>Retrieves the next page of results.
399
400 Args:
401 previous_request: The request for the previous page. (required)
402 previous_response: The response from the request for the previous page. (required)
403
404 Returns:
405 A request object that you can call &#x27;execute()&#x27; on to request the next
406 page. Returns None if there are no more items in the collection.
407 </pre>
408 </div>
409
410 <div class="method">
411 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
412 <pre>Updates a Workload in an Application.
413
414 Args:
415 name: string, Identifier. The resource name of the Workload. Format: `&quot;projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}&quot;` (required)
416 body: object, The request body.
417 The object takes the form of:
418
419 { # Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.
420 &quot;attributes&quot;: { # Consumer provided attributes. # Optional. Consumer provided attributes.
421 &quot;businessOwners&quot;: [ # Optional. Business team that ensures user needs are met and value is delivered
422 { # Contact information of stakeholders.
423 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
424 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
425 },
426 ],
427 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
428 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
429 },
430 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
431 { # Contact information of stakeholders.
432 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
433 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
434 },
435 ],
436 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
437 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
438 },
439 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
440 { # Contact information of stakeholders.
441 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
442 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
443 },
444 ],
445 },
446 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
447 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
448 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
449 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
450 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Workload. Format: `&quot;projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}&quot;`
451 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
452 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
453 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
454 &quot;workloadProperties&quot;: { # Properties of an underlying compute resource represented by the Workload. # Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
455 &quot;extendedMetadata&quot;: { # Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType}`
456 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
457 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
458 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
459 },
460 },
461 },
462 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
463 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
464 },
465 &quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.
466 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
467 &quot;principal&quot;: &quot;A String&quot;, # Output only. The principal of the identity. Supported formats: * `sa://my-sa@PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal://POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID` for Managed Workload Identity
468 },
469 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
470 &quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).
471 },
472 &quot;workloadReference&quot;: { # Reference of an underlying compute resource represented by the Workload. # Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
473 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
474 },
475 }
476
477 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
478 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the Workload resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. The API changes the values of the fields as specified in the update_mask. The API ignores the values of all fields not covered by the update_mask. You can also unset a field by not specifying it in the updated message, but adding the field to the mask. This clears whatever value the field previously had.
479 x__xgafv: string, V1 error format.
480 Allowed values
481 1 - v1 error format
482 2 - v2 error format
483
484 Returns:
485 An object of the form:
486
487 { # This resource represents a long-running operation that is the result of a network API call.
488 &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.
489 &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.
490 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
491 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
492 {
493 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
494 },
495 ],
496 &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.
497 },
498 &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.
499 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
500 },
501 &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}`.
502 &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`.
503 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
504 },
505 }</pre>
506 </div>
507
508 </body></html>