Debian Codegraph @

docs/dyn/vmmigration_v1.projects.locations.sources.diskMigrationJobs.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="vmmigration_v1.html">VM Migration API</a> . <a href="vmmigration_v1.projects.html">projects</a> . <a href="vmmigration_v1.projects.locations.html">locations</a> . <a href="vmmigration_v1.projects.locations.sources.html">sources</a> . <a href="vmmigration_v1.projects.locations.sources.diskMigrationJobs.html">diskMigrationJobs</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Cancels the disk migration job.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#create">create(parent, body=None, diskMigrationJobId=None, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Creates a new disk migration job in a given Source.</p>
86 <p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Deletes a single DiskMigrationJob.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Gets details of a single DiskMigrationJob.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists DiskMigrationJobs in a given Source.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates the parameters of a single DiskMigrationJob.</p>
101 <p class="toc_element">
102 <code><a href="#run">run(name, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Runs the disk migration job.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code>
107 <pre>Cancels the disk migration job.
108
109 Args:
110 name: string, Required. The name of the DiskMigrationJob. (required)
111 body: object, The request body.
112 The object takes the form of:
113
114 { # Request message for &#x27;CancelDiskMigrationJob&#x27; request.
115 }
116
117 x__xgafv: string, V1 error format.
118 Allowed values
119 1 - v1 error format
120 2 - v2 error format
121
122 Returns:
123 An object of the form:
124
125 { # This resource represents a long-running operation that is the result of a network API call.
126 &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.
127 &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.
128 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
129 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
130 {
131 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
132 },
133 ],
134 &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.
135 },
136 &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.
137 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
138 },
139 &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}`.
140 &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`.
141 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
142 },
143 }</pre>
144 </div>
145
146 <div class="method">
147 <code class="details" id="close">close()</code>
148 <pre>Close httplib2 connections.</pre>
149 </div>
150
151 <div class="method">
152 <code class="details" id="create">create(parent, body=None, diskMigrationJobId=None, requestId=None, x__xgafv=None)</code>
153 <pre>Creates a new disk migration job in a given Source.
154
155 Args:
156 parent: string, Required. The DiskMigrationJob&#x27;s parent. (required)
157 body: object, The request body.
158 The object takes the form of:
159
160 { # Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
161 &quot;awsSourceDiskDetails&quot;: { # Represents the source AWS Disk details. # Details of the unattached AWS source disk.
162 &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. Disk type.
163 &quot;sizeGib&quot;: &quot;A String&quot;, # Output only. Size in GiB.
164 &quot;tags&quot;: { # Optional. Output only. A map of AWS volume tags.
165 &quot;a_key&quot;: &quot;A String&quot;,
166 },
167 &quot;volumeId&quot;: &quot;A String&quot;, # Required. AWS volume ID.
168 },
169 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the DiskMigrationJob resource was created.
170 &quot;errors&quot;: [ # Output only. Provides details on the errors that led to the disk migration job&#x27;s state in case of an error.
171 { # 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).
172 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
173 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
174 {
175 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
176 },
177 ],
178 &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.
179 },
180 ],
181 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The identifier of the DiskMigrationJob.
182 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the DiskMigrationJob.
183 &quot;steps&quot;: [ # Output only. The disk migration steps list representing its progress.
184 { # DiskMigrationStep holds information about the disk migration step progress.
185 &quot;copyingSourceDiskSnapshot&quot;: { # CopyingSourceDiskSnapshotStep contains specific step details. # Copying source disk snapshot step.
186 },
187 &quot;creatingSourceDiskSnapshot&quot;: { # CreatingSourceDiskSnapshotStep contains specific step details. # Creating source disk snapshot step.
188 },
189 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the step has ended.
190 &quot;provisioningTargetDisk&quot;: { # ProvisioningTargetDiskStep contains specific step details. # Creating target disk step.
191 },
192 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the step has started.
193 },
194 ],
195 &quot;targetDetails&quot;: { # Details of the target disk in Compute Engine. # Required. Details of the target Disk in Compute Engine.
196 &quot;encryption&quot;: { # Encryption message describes the details of the applied encryption. # Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
197 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. The name of the encryption key that is stored in Google Cloud KMS.
198 },
199 &quot;labels&quot;: { # Optional. A map of labels to associate with the disk.
200 &quot;a_key&quot;: &quot;A String&quot;,
201 },
202 &quot;targetDisk&quot;: { # Compute Engine disk target details. # Required. The target disk.
203 &quot;diskId&quot;: &quot;A String&quot;, # Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 &quot;disk1&quot; is the resource ID for the disk.
204 &quot;diskType&quot;: &quot;A String&quot;, # Required. The disk type to use.
205 &quot;replicaZones&quot;: [ # Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
206 &quot;A String&quot;,
207 ],
208 &quot;zone&quot;: &quot;A String&quot;, # Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
209 },
210 &quot;targetProject&quot;: &quot;A String&quot;, # Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
211 },
212 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the DiskMigrationJob resource was updated.
213 }
214
215 diskMigrationJobId: string, Required. The DiskMigrationJob identifier. The maximum length of this value is 63 characters. Valid characters are lower case Latin letters, digits and hyphen. It must start with a Latin letter and must not end with a hyphen.
216 requestId: string, Optional. A 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 timed 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).
217 x__xgafv: string, V1 error format.
218 Allowed values
219 1 - v1 error format
220 2 - v2 error format
221
222 Returns:
223 An object of the form:
224
225 { # This resource represents a long-running operation that is the result of a network API call.
226 &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.
227 &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.
228 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
229 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
230 {
231 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
232 },
233 ],
234 &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.
235 },
236 &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.
237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
238 },
239 &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}`.
240 &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`.
241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
242 },
243 }</pre>
244 </div>
245
246 <div class="method">
247 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
248 <pre>Deletes a single DiskMigrationJob.
249
250 Args:
251 name: string, Required. The name of the DiskMigrationJob. (required)
252 x__xgafv: string, V1 error format.
253 Allowed values
254 1 - v1 error format
255 2 - v2 error format
256
257 Returns:
258 An object of the form:
259
260 { # This resource represents a long-running operation that is the result of a network API call.
261 &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.
262 &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.
263 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
264 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
265 {
266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
267 },
268 ],
269 &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.
270 },
271 &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.
272 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
273 },
274 &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}`.
275 &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`.
276 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
277 },
278 }</pre>
279 </div>
280
281 <div class="method">
282 <code class="details" id="get">get(name, x__xgafv=None)</code>
283 <pre>Gets details of a single DiskMigrationJob.
284
285 Args:
286 name: string, Required. The name of the DiskMigrationJob. (required)
287 x__xgafv: string, V1 error format.
288 Allowed values
289 1 - v1 error format
290 2 - v2 error format
291
292 Returns:
293 An object of the form:
294
295 { # Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
296 &quot;awsSourceDiskDetails&quot;: { # Represents the source AWS Disk details. # Details of the unattached AWS source disk.
297 &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. Disk type.
298 &quot;sizeGib&quot;: &quot;A String&quot;, # Output only. Size in GiB.
299 &quot;tags&quot;: { # Optional. Output only. A map of AWS volume tags.
300 &quot;a_key&quot;: &quot;A String&quot;,
301 },
302 &quot;volumeId&quot;: &quot;A String&quot;, # Required. AWS volume ID.
303 },
304 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the DiskMigrationJob resource was created.
305 &quot;errors&quot;: [ # Output only. Provides details on the errors that led to the disk migration job&#x27;s state in case of an error.
306 { # 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).
307 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
308 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
309 {
310 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
311 },
312 ],
313 &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.
314 },
315 ],
316 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The identifier of the DiskMigrationJob.
317 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the DiskMigrationJob.
318 &quot;steps&quot;: [ # Output only. The disk migration steps list representing its progress.
319 { # DiskMigrationStep holds information about the disk migration step progress.
320 &quot;copyingSourceDiskSnapshot&quot;: { # CopyingSourceDiskSnapshotStep contains specific step details. # Copying source disk snapshot step.
321 },
322 &quot;creatingSourceDiskSnapshot&quot;: { # CreatingSourceDiskSnapshotStep contains specific step details. # Creating source disk snapshot step.
323 },
324 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the step has ended.
325 &quot;provisioningTargetDisk&quot;: { # ProvisioningTargetDiskStep contains specific step details. # Creating target disk step.
326 },
327 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the step has started.
328 },
329 ],
330 &quot;targetDetails&quot;: { # Details of the target disk in Compute Engine. # Required. Details of the target Disk in Compute Engine.
331 &quot;encryption&quot;: { # Encryption message describes the details of the applied encryption. # Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
332 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. The name of the encryption key that is stored in Google Cloud KMS.
333 },
334 &quot;labels&quot;: { # Optional. A map of labels to associate with the disk.
335 &quot;a_key&quot;: &quot;A String&quot;,
336 },
337 &quot;targetDisk&quot;: { # Compute Engine disk target details. # Required. The target disk.
338 &quot;diskId&quot;: &quot;A String&quot;, # Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 &quot;disk1&quot; is the resource ID for the disk.
339 &quot;diskType&quot;: &quot;A String&quot;, # Required. The disk type to use.
340 &quot;replicaZones&quot;: [ # Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
341 &quot;A String&quot;,
342 ],
343 &quot;zone&quot;: &quot;A String&quot;, # Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
344 },
345 &quot;targetProject&quot;: &quot;A String&quot;, # Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
346 },
347 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the DiskMigrationJob resource was updated.
348 }</pre>
349 </div>
350
351 <div class="method">
352 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
353 <pre>Lists DiskMigrationJobs in a given Source.
354
355 Args:
356 parent: string, Required. The parent, which owns this collection of DiskMigrationJobs. (required)
357 filter: string, Optional. The filter request (according to AIP-160).
358 orderBy: string, Optional. Ordering of the result list.
359 pageSize: integer, Optional. The maximum number of disk migration jobs to return. The service may return fewer than this value. If unspecified, at most 500 disk migration jobs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
360 pageToken: string, Optional. A page token, received from a previous `ListDiskMigrationJobs` call. Provide this to retrieve the subsequent page. When paginating, all parameters provided to `ListDiskMigrationJobs` except `page_size` must match the call that provided the page token.
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
365
366 Returns:
367 An object of the form:
368
369 { # Response message for &#x27;ListDiskMigrationJobs&#x27; request.
370 &quot;diskMigrationJobs&quot;: [ # Output only. The list of the disk migration jobs.
371 { # Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
372 &quot;awsSourceDiskDetails&quot;: { # Represents the source AWS Disk details. # Details of the unattached AWS source disk.
373 &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. Disk type.
374 &quot;sizeGib&quot;: &quot;A String&quot;, # Output only. Size in GiB.
375 &quot;tags&quot;: { # Optional. Output only. A map of AWS volume tags.
376 &quot;a_key&quot;: &quot;A String&quot;,
377 },
378 &quot;volumeId&quot;: &quot;A String&quot;, # Required. AWS volume ID.
379 },
380 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the DiskMigrationJob resource was created.
381 &quot;errors&quot;: [ # Output only. Provides details on the errors that led to the disk migration job&#x27;s state in case of an error.
382 { # 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).
383 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
384 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
385 {
386 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
387 },
388 ],
389 &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.
390 },
391 ],
392 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The identifier of the DiskMigrationJob.
393 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the DiskMigrationJob.
394 &quot;steps&quot;: [ # Output only. The disk migration steps list representing its progress.
395 { # DiskMigrationStep holds information about the disk migration step progress.
396 &quot;copyingSourceDiskSnapshot&quot;: { # CopyingSourceDiskSnapshotStep contains specific step details. # Copying source disk snapshot step.
397 },
398 &quot;creatingSourceDiskSnapshot&quot;: { # CreatingSourceDiskSnapshotStep contains specific step details. # Creating source disk snapshot step.
399 },
400 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the step has ended.
401 &quot;provisioningTargetDisk&quot;: { # ProvisioningTargetDiskStep contains specific step details. # Creating target disk step.
402 },
403 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the step has started.
404 },
405 ],
406 &quot;targetDetails&quot;: { # Details of the target disk in Compute Engine. # Required. Details of the target Disk in Compute Engine.
407 &quot;encryption&quot;: { # Encryption message describes the details of the applied encryption. # Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
408 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. The name of the encryption key that is stored in Google Cloud KMS.
409 },
410 &quot;labels&quot;: { # Optional. A map of labels to associate with the disk.
411 &quot;a_key&quot;: &quot;A String&quot;,
412 },
413 &quot;targetDisk&quot;: { # Compute Engine disk target details. # Required. The target disk.
414 &quot;diskId&quot;: &quot;A String&quot;, # Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 &quot;disk1&quot; is the resource ID for the disk.
415 &quot;diskType&quot;: &quot;A String&quot;, # Required. The disk type to use.
416 &quot;replicaZones&quot;: [ # Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
417 &quot;A String&quot;,
418 ],
419 &quot;zone&quot;: &quot;A String&quot;, # Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
420 },
421 &quot;targetProject&quot;: &quot;A String&quot;, # Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
422 },
423 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the DiskMigrationJob resource was updated.
424 },
425 ],
426 &quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
427 &quot;unreachable&quot;: [ # Output only. Locations that could not be reached.
428 &quot;A String&quot;,
429 ],
430 }</pre>
431 </div>
432
433 <div class="method">
434 <code class="details" id="list_next">list_next()</code>
435 <pre>Retrieves the next page of results.
436
437 Args:
438 previous_request: The request for the previous page. (required)
439 previous_response: The response from the request for the previous page. (required)
440
441 Returns:
442 A request object that you can call &#x27;execute()&#x27; on to request the next
443 page. Returns None if there are no more items in the collection.
444 </pre>
445 </div>
446
447 <div class="method">
448 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
449 <pre>Updates the parameters of a single DiskMigrationJob.
450
451 Args:
452 name: string, Output only. Identifier. The identifier of the DiskMigrationJob. (required)
453 body: object, The request body.
454 The object takes the form of:
455
456 { # Describes the disk which will be migrated from the source environment. The source disk has to be unattached.
457 &quot;awsSourceDiskDetails&quot;: { # Represents the source AWS Disk details. # Details of the unattached AWS source disk.
458 &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. Disk type.
459 &quot;sizeGib&quot;: &quot;A String&quot;, # Output only. Size in GiB.
460 &quot;tags&quot;: { # Optional. Output only. A map of AWS volume tags.
461 &quot;a_key&quot;: &quot;A String&quot;,
462 },
463 &quot;volumeId&quot;: &quot;A String&quot;, # Required. AWS volume ID.
464 },
465 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the DiskMigrationJob resource was created.
466 &quot;errors&quot;: [ # Output only. Provides details on the errors that led to the disk migration job&#x27;s state in case of an error.
467 { # 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).
468 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
469 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
470 {
471 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
472 },
473 ],
474 &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.
475 },
476 ],
477 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The identifier of the DiskMigrationJob.
478 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the DiskMigrationJob.
479 &quot;steps&quot;: [ # Output only. The disk migration steps list representing its progress.
480 { # DiskMigrationStep holds information about the disk migration step progress.
481 &quot;copyingSourceDiskSnapshot&quot;: { # CopyingSourceDiskSnapshotStep contains specific step details. # Copying source disk snapshot step.
482 },
483 &quot;creatingSourceDiskSnapshot&quot;: { # CreatingSourceDiskSnapshotStep contains specific step details. # Creating source disk snapshot step.
484 },
485 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the step has ended.
486 &quot;provisioningTargetDisk&quot;: { # ProvisioningTargetDiskStep contains specific step details. # Creating target disk step.
487 },
488 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the step has started.
489 },
490 ],
491 &quot;targetDetails&quot;: { # Details of the target disk in Compute Engine. # Required. Details of the target Disk in Compute Engine.
492 &quot;encryption&quot;: { # Encryption message describes the details of the applied encryption. # Optional. The encryption to apply to the disk. If the DiskMigrationJob parent Source resource has an encryption, this field must be set to the same encryption key.
493 &quot;kmsKey&quot;: &quot;A String&quot;, # Required. The name of the encryption key that is stored in Google Cloud KMS.
494 },
495 &quot;labels&quot;: { # Optional. A map of labels to associate with the disk.
496 &quot;a_key&quot;: &quot;A String&quot;,
497 },
498 &quot;targetDisk&quot;: { # Compute Engine disk target details. # Required. The target disk.
499 &quot;diskId&quot;: &quot;A String&quot;, # Optional. Target Compute Engine Disk ID. This is the resource ID segment of the Compute Engine Disk to create. In the resource name compute/v1/projects/{project}/zones/{zone}/disks/disk1 &quot;disk1&quot; is the resource ID for the disk.
500 &quot;diskType&quot;: &quot;A String&quot;, # Required. The disk type to use.
501 &quot;replicaZones&quot;: [ # Optional. Replication zones of the regional disk. Should be of the form: projects/{target-project}/locations/{replica-zone} Currently only one replica zone is supported.
502 &quot;A String&quot;,
503 ],
504 &quot;zone&quot;: &quot;A String&quot;, # Required. The Compute Engine zone in which to create the disk. Should be of the form: projects/{target-project}/locations/{zone}
505 },
506 &quot;targetProject&quot;: &quot;A String&quot;, # Required. The name of the resource of type TargetProject which represents the Compute Engine project in which to create the disk. Should be of the form: projects/{project}/locations/global/targetProjects/{target-project}
507 },
508 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the DiskMigrationJob resource was updated.
509 }
510
511 requestId: string, Optional. A 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 timed 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).
512 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the DiskMigrationJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask, then a mask equivalent to all fields that are populated (have a non-empty value), will be implied.
513 x__xgafv: string, V1 error format.
514 Allowed values
515 1 - v1 error format
516 2 - v2 error format
517
518 Returns:
519 An object of the form:
520
521 { # This resource represents a long-running operation that is the result of a network API call.
522 &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.
523 &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.
524 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
525 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
526 {
527 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
528 },
529 ],
530 &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.
531 },
532 &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.
533 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
534 },
535 &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}`.
536 &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`.
537 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
538 },
539 }</pre>
540 </div>
541
542 <div class="method">
543 <code class="details" id="run">run(name, body=None, x__xgafv=None)</code>
544 <pre>Runs the disk migration job.
545
546 Args:
547 name: string, Required. The name of the DiskMigrationJob. (required)
548 body: object, The request body.
549 The object takes the form of:
550
551 { # Request message for &#x27;RunDiskMigrationJobRequest&#x27; request.
552 }
553
554 x__xgafv: string, V1 error format.
555 Allowed values
556 1 - v1 error format
557 2 - v2 error format
558
559 Returns:
560 An object of the form:
561
562 { # This resource represents a long-running operation that is the result of a network API call.
563 &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.
564 &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.
565 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
566 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
567 {
568 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
569 },
570 ],
571 &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.
572 },
573 &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.
574 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
575 },
576 &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}`.
577 &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`.
578 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
579 },
580 }</pre>
581 </div>
582
583 </body></html>