Debian Codegraph @

docs/dyn/apphub_v1alpha.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_v1alpha.html">App Hub API</a> . <a href="apphub_v1alpha.projects.html">projects</a> . <a href="apphub_v1alpha.projects.locations.html">locations</a> . <a href="apphub_v1alpha.projects.locations.applications.html">applications</a> . <a href="apphub_v1alpha.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;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
118 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
119 },
120 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
121 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
122 },
123 ],
124 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
125 &quot;level&quot;: &quot;A String&quot;, # Optional. Criticality level. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
126 &quot;missionCritical&quot;: True or False, # Optional. Indicates mission-critical Application, Service, or Workload. Deprecated: Please refer to type instead.
127 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
128 },
129 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
130 { # Contact information of stakeholders.
131 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
132 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
133 },
134 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
135 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
136 },
137 ],
138 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
139 &quot;environment&quot;: &quot;A String&quot;, # Optional. Environment name. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
140 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
141 },
142 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
143 { # Contact information of stakeholders.
144 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
145 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
146 },
147 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
148 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
149 },
150 ],
151 },
152 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
153 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
154 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
155 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
156 &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;`
157 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
158 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
159 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
160 &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.
161 &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}`
162 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
163 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
165 },
166 },
167 },
168 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
169 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
170 },
171 &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.
172 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
173 &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
174 },
175 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
176 &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).
177 },
178 &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.
179 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
180 },
181 }
182
183 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).
184 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.
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190 Returns:
191 An object of the form:
192
193 { # This resource represents a long-running operation that is the result of a network API call.
194 &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.
195 &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.
196 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
197 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
198 {
199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
200 },
201 ],
202 &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.
203 },
204 &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.
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 &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}`.
208 &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`.
209 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
210 },
211 }</pre>
212 </div>
213
214 <div class="method">
215 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
216 <pre>Deletes a Workload from an Application.
217
218 Args:
219 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)
220 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).
221 x__xgafv: string, V1 error format.
222 Allowed values
223 1 - v1 error format
224 2 - v2 error format
225
226 Returns:
227 An object of the form:
228
229 { # This resource represents a long-running operation that is the result of a network API call.
230 &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.
231 &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.
232 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
233 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
234 {
235 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
236 },
237 ],
238 &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.
239 },
240 &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.
241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
242 },
243 &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}`.
244 &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`.
245 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
246 },
247 }</pre>
248 </div>
249
250 <div class="method">
251 <code class="details" id="get">get(name, x__xgafv=None)</code>
252 <pre>Gets a Workload in an Application.
253
254 Args:
255 name: string, Required. Fully qualified name of the Workload to fetch. Expected format: `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. (required)
256 x__xgafv: string, V1 error format.
257 Allowed values
258 1 - v1 error format
259 2 - v2 error format
260
261 Returns:
262 An object of the form:
263
264 { # 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.
265 &quot;attributes&quot;: { # Consumer provided attributes. # Optional. Consumer provided attributes.
266 &quot;businessOwners&quot;: [ # Optional. Business team that ensures user needs are met and value is delivered
267 { # Contact information of stakeholders.
268 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
269 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
270 },
271 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
272 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
273 },
274 ],
275 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
276 &quot;level&quot;: &quot;A String&quot;, # Optional. Criticality level. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
277 &quot;missionCritical&quot;: True or False, # Optional. Indicates mission-critical Application, Service, or Workload. Deprecated: Please refer to type instead.
278 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
279 },
280 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
281 { # Contact information of stakeholders.
282 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
283 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
284 },
285 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
286 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
287 },
288 ],
289 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
290 &quot;environment&quot;: &quot;A String&quot;, # Optional. Environment name. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
291 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
292 },
293 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
294 { # Contact information of stakeholders.
295 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
296 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
297 },
298 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
299 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
300 },
301 ],
302 },
303 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
304 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
305 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
306 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
307 &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;`
308 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
309 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
310 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
311 &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.
312 &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}`
313 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
314 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
316 },
317 },
318 },
319 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
320 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
321 },
322 &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.
323 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
324 &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
325 },
326 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
327 &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).
328 },
329 &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.
330 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
331 },
332 }</pre>
333 </div>
334
335 <div class="method">
336 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
337 <pre>Lists Workloads in an Application.
338
339 Args:
340 parent: string, Required. Fully qualified name of the parent Application to list Workloads for. Expected format: `projects/{project}/locations/{location}/applications/{application}`. (required)
341 filter: string, Optional. Filtering results.
342 orderBy: string, Optional. Hint for how to order the results.
343 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
344 pageToken: string, Optional. A token identifying a page of results the server should return.
345 x__xgafv: string, V1 error format.
346 Allowed values
347 1 - v1 error format
348 2 - v2 error format
349
350 Returns:
351 An object of the form:
352
353 { # Response for ListWorkloads.
354 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
355 &quot;unreachable&quot;: [ # Locations that could not be reached.
356 &quot;A String&quot;,
357 ],
358 &quot;workloads&quot;: [ # List of Workloads.
359 { # 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.
360 &quot;attributes&quot;: { # Consumer provided attributes. # Optional. Consumer provided attributes.
361 &quot;businessOwners&quot;: [ # Optional. Business team that ensures user needs are met and value is delivered
362 { # Contact information of stakeholders.
363 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
364 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
365 },
366 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
367 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
368 },
369 ],
370 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
371 &quot;level&quot;: &quot;A String&quot;, # Optional. Criticality level. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
372 &quot;missionCritical&quot;: True or False, # Optional. Indicates mission-critical Application, Service, or Workload. Deprecated: Please refer to type instead.
373 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
374 },
375 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
376 { # Contact information of stakeholders.
377 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
378 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
379 },
380 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
381 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
382 },
383 ],
384 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
385 &quot;environment&quot;: &quot;A String&quot;, # Optional. Environment name. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
386 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
387 },
388 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
389 { # Contact information of stakeholders.
390 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
391 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
392 },
393 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
394 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
395 },
396 ],
397 },
398 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
399 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
400 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
401 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
402 &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;`
403 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
404 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
405 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
406 &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.
407 &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}`
408 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
409 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
410 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
411 },
412 },
413 },
414 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
415 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
416 },
417 &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.
418 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
419 &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
420 },
421 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
422 &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).
423 },
424 &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.
425 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
426 },
427 },
428 ],
429 }</pre>
430 </div>
431
432 <div class="method">
433 <code class="details" id="list_next">list_next()</code>
434 <pre>Retrieves the next page of results.
435
436 Args:
437 previous_request: The request for the previous page. (required)
438 previous_response: The response from the request for the previous page. (required)
439
440 Returns:
441 A request object that you can call &#x27;execute()&#x27; on to request the next
442 page. Returns None if there are no more items in the collection.
443 </pre>
444 </div>
445
446 <div class="method">
447 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
448 <pre>Updates a Workload in an Application.
449
450 Args:
451 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)
452 body: object, The request body.
453 The object takes the form of:
454
455 { # 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.
456 &quot;attributes&quot;: { # Consumer provided attributes. # Optional. Consumer provided attributes.
457 &quot;businessOwners&quot;: [ # Optional. Business team that ensures user needs are met and value is delivered
458 { # Contact information of stakeholders.
459 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
460 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
461 },
462 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
463 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
464 },
465 ],
466 &quot;criticality&quot;: { # Criticality of the Application, Service, or Workload # Optional. User-defined criticality information.
467 &quot;level&quot;: &quot;A String&quot;, # Optional. Criticality level. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
468 &quot;missionCritical&quot;: True or False, # Optional. Indicates mission-critical Application, Service, or Workload. Deprecated: Please refer to type instead.
469 &quot;type&quot;: &quot;A String&quot;, # Required. Criticality Type.
470 },
471 &quot;developerOwners&quot;: [ # Optional. Developer team that owns development and coding.
472 { # Contact information of stakeholders.
473 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
474 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
475 },
476 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
477 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
478 },
479 ],
480 &quot;environment&quot;: { # Environment of the Application, Service, or Workload # Optional. User-defined environment information.
481 &quot;environment&quot;: &quot;A String&quot;, # Optional. Environment name. Can contain only lowercase letters, numeric characters, underscores, and dashes. Can have a maximum length of 63 characters. Deprecated: Please refer to type instead.
482 &quot;type&quot;: &quot;A String&quot;, # Required. Environment Type.
483 },
484 &quot;operatorOwners&quot;: [ # Optional. Operator team that ensures runtime and operations.
485 { # Contact information of stakeholders.
486 &quot;channel&quot;: { # Separate message to accommodate custom formats across IRC and Slack. # Optional. Communication channel of the contacts.
487 &quot;uri&quot;: &quot;A String&quot;, # Required. URI of the channel.
488 },
489 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Contact&#x27;s name. Can have a maximum length of 63 characters.
490 &quot;email&quot;: &quot;A String&quot;, # Required. Email address of the contacts.
491 },
492 ],
493 },
494 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
495 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.
496 &quot;discoveredWorkload&quot;: &quot;A String&quot;, # Required. Immutable. The resource name of the original discovered workload.
497 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.
498 &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;`
499 &quot;state&quot;: &quot;A String&quot;, # Output only. Workload state.
500 &quot;uid&quot;: &quot;A String&quot;, # Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.
501 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
502 &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.
503 &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}`
504 &quot;a_key&quot;: { # Additional metadata for a Service or Workload.
505 &quot;metadataStruct&quot;: { # Output only. The metadata contents.
506 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
507 },
508 },
509 },
510 &quot;functionalType&quot;: { # The functional type of a service or workload. # Output only. The type of the workload.
511 &quot;type&quot;: &quot;A String&quot;, # Output only. The functional type of a service or workload.
512 },
513 &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.
514 &quot;identity&quot;: { # The identity associated with a service or workload. # Output only. The identity associated with the workload.
515 &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
516 },
517 &quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (for example, us-west1).
518 &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).
519 },
520 &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.
521 &quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
522 },
523 }
524
525 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).
526 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.
527 x__xgafv: string, V1 error format.
528 Allowed values
529 1 - v1 error format
530 2 - v2 error format
531
532 Returns:
533 An object of the form:
534
535 { # This resource represents a long-running operation that is the result of a network API call.
536 &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.
537 &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.
538 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
539 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
540 {
541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
542 },
543 ],
544 &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.
545 },
546 &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.
547 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
548 },
549 &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}`.
550 &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`.
551 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
552 },
553 }</pre>
554 </div>
555
556 </body></html>