blob: 8132611c3fc5937c8cec93c91a2b247fb356912a [file] [log] [blame]
yoshi-code-botf4773f62021-10-19 00:22:31 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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.migratingVms.html">migratingVms</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="vmmigration_v1.projects.locations.sources.migratingVms.cloneJobs.html">cloneJobs()</a></code>
79</p>
80<p class="firstline">Returns the cloneJobs Resource.</p>
81
82<p class="toc_element">
83 <code><a href="vmmigration_v1.projects.locations.sources.migratingVms.cutoverJobs.html">cutoverJobs()</a></code>
84</p>
85<p class="firstline">Returns the cutoverJobs Resource.</p>
86
87<p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89<p class="firstline">Close httplib2 connections.</p>
90<p class="toc_element">
91 <code><a href="#create">create(parent, body=None, migratingVmId=None, requestId=None, x__xgafv=None)</a></code></p>
92<p class="firstline">Creates a new MigratingVm in a given Source.</p>
93<p class="toc_element">
94 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
95<p class="firstline">Deletes a single MigratingVm.</p>
96<p class="toc_element">
97 <code><a href="#finalizeMigration">finalizeMigration(migratingVm, body=None, x__xgafv=None)</a></code></p>
98<p class="firstline">Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.</p>
99<p class="toc_element">
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800100 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
yoshi-code-botf4773f62021-10-19 00:22:31 -0700101<p class="firstline">Gets details of a single MigratingVm.</p>
102<p class="toc_element">
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800103 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
yoshi-code-botf4773f62021-10-19 00:22:31 -0700104<p class="firstline">Lists MigratingVms in a given Source.</p>
105<p class="toc_element">
106 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
107<p class="firstline">Retrieves the next page of results.</p>
108<p class="toc_element">
109 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
110<p class="firstline">Updates the parameters of a single MigratingVm.</p>
111<p class="toc_element">
112 <code><a href="#pauseMigration">pauseMigration(migratingVm, body=None, x__xgafv=None)</a></code></p>
113<p class="firstline">Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.</p>
114<p class="toc_element">
115 <code><a href="#resumeMigration">resumeMigration(migratingVm, body=None, x__xgafv=None)</a></code></p>
116<p class="firstline">Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.</p>
117<p class="toc_element">
118 <code><a href="#startMigration">startMigration(migratingVm, body=None, x__xgafv=None)</a></code></p>
119<p class="firstline">Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.</p>
120<h3>Method Details</h3>
121<div class="method">
122 <code class="details" id="close">close()</code>
123 <pre>Close httplib2 connections.</pre>
124</div>
125
126<div class="method">
127 <code class="details" id="create">create(parent, body=None, migratingVmId=None, requestId=None, x__xgafv=None)</code>
128 <pre>Creates a new MigratingVm in a given Source.
129
130Args:
131 parent: string, Required. The MigratingVm&#x27;s parent. (required)
132 body: object, The request body.
133 The object takes the form of:
134
135{ # MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
136 &quot;computeEngineTargetDefaults&quot;: { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800137 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
138 &quot;A String&quot;,
139 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -0700140 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # Output only. The OS license returned from the adaptation module report.
141 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
142 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
143 },
144 &quot;bootOption&quot;: &quot;A String&quot;, # Output only. The VM Boot Option, as set in the source vm.
145 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
146 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
147 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
148 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
149 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
150 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
151 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
152 &quot;A String&quot;,
153 ],
154 },
155 ],
156 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
157 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
158 },
159 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
160 &quot;labels&quot;: { # A map of labels to associate with the VM.
161 &quot;a_key&quot;: &quot;A String&quot;,
162 },
163 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
164 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
165 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
166 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
167 &quot;a_key&quot;: &quot;A String&quot;,
168 },
169 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
170 { # NetworkInterface represents a NIC of a VM.
171 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
172 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
173 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
174 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
175 },
176 ],
177 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
178 &quot;A String&quot;,
179 ],
180 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
181 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
182 &quot;targetProject&quot;: &quot;A String&quot;, # The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
183 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
184 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
185 },
186 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the migrating VM was created (this refers to this resource and not to the time it was installed in the source).
187 &quot;currentSyncInfo&quot;: { # ReplicationCycle contains information about the current replication cycle status. # Output only. The percentage progress of the current running replication cycle.
188 &quot;progressPercent&quot;: 42, # The current progress in percentage of this cycle.
189 &quot;startTime&quot;: &quot;A String&quot;, # The time the replication cycle has started.
190 },
191 &quot;description&quot;: &quot;A String&quot;, # The description attached to the migrating VM by the user.
192 &quot;displayName&quot;: &quot;A String&quot;, # The display name attached to the MigratingVm by the user.
193 &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). # Output only. Provides details on the state of the Migrating VM in case of an error in replication.
194 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
195 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
196 {
197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
198 },
199 ],
200 &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.
201 },
202 &quot;group&quot;: &quot;A String&quot;, # Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.
203 &quot;labels&quot;: { # The labels of the migrating VM.
204 &quot;a_key&quot;: &quot;A String&quot;,
205 },
206 &quot;lastSync&quot;: { # ReplicationSync contain information about the last replica sync to the cloud. # Output only. The most updated snapshot created time in the source that finished replication.
207 &quot;lastSyncTime&quot;: &quot;A String&quot;, # The most updated snapshot created time in the source that finished replication.
208 },
209 &quot;name&quot;: &quot;A String&quot;, # Output only. The identifier of the MigratingVm.
210 &quot;policy&quot;: { # A policy for scheduling replications. # The replication schedule policy.
211 &quot;idleDuration&quot;: &quot;A String&quot;, # The idle duration between replication stages.
212 &quot;skipOsAdaptation&quot;: True or False, # A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM&#x27;s operating system undergoes changes and adaptations to fully function on Compute Engine.
213 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800214 &quot;recentCloneJobs&quot;: [ # Output only. The recent clone jobs performed on the migrating VM. This field holds the vm&#x27;s last completed clone job and the vm&#x27;s running clone job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
215 { # CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.
216 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800217 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
218 &quot;A String&quot;,
219 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800220 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
221 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
222 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
223 },
224 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
225 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
226 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
227 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
228 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
229 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
230 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
231 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
232 &quot;A String&quot;,
233 ],
234 },
235 ],
236 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
237 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
238 },
239 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
240 &quot;labels&quot;: { # A map of labels to associate with the VM.
241 &quot;a_key&quot;: &quot;A String&quot;,
242 },
243 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
244 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
245 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
246 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
247 &quot;a_key&quot;: &quot;A String&quot;,
248 },
249 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
250 { # NetworkInterface represents a NIC of a VM.
251 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
252 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
253 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
254 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
255 },
256 ],
257 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
258 &quot;A String&quot;,
259 ],
260 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
261 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
262 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
263 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
264 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
265 },
266 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the clone job was created (as an API call, not when it was actually created in the target).
267 &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). # Output only. Provides details for the errors that led to the Clone Job&#x27;s state.
268 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
269 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
270 {
271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
272 },
273 ],
274 &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.
275 },
276 &quot;name&quot;: &quot;A String&quot;, # The name of the clone.
277 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the clone job.
278 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
279 },
280 ],
281 &quot;recentCutoverJobs&quot;: [ # Output only. The recent cutover jobs performed on the migrating VM. This field holds the vm&#x27;s last completed cutover job and the vm&#x27;s running cutover job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
282 { # CutoverJob message describes a cutover of a migrating VM. The CutoverJob is the operation of shutting down the VM, creating a snapshot and clonning the VM using the replicated snapshot.
283 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800284 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
285 &quot;A String&quot;,
286 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800287 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
288 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
289 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
290 },
291 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
292 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
293 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
294 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
295 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
296 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
297 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
298 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
299 &quot;A String&quot;,
300 ],
301 },
302 ],
303 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
304 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
305 },
306 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
307 &quot;labels&quot;: { # A map of labels to associate with the VM.
308 &quot;a_key&quot;: &quot;A String&quot;,
309 },
310 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
311 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
312 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
313 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
314 &quot;a_key&quot;: &quot;A String&quot;,
315 },
316 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
317 { # NetworkInterface represents a NIC of a VM.
318 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
319 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
320 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
321 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
322 },
323 ],
324 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
325 &quot;A String&quot;,
326 ],
327 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
328 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
329 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
330 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
331 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
332 },
333 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the cutover job was created (as an API call, not when it was actually created in the target).
334 &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). # Output only. Provides details for the errors that led to the Cutover Job&#x27;s state.
335 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
336 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
337 {
338 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
339 },
340 ],
341 &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.
342 },
343 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the cutover job.
344 &quot;progressPercent&quot;: 42, # Output only. The current progress in percentage of the cutover job.
345 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the cutover job.
346 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A message providing possible extra details about the current state.
347 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
348 },
349 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -0700350 &quot;sourceVmId&quot;: &quot;A String&quot;, # The unique ID of the VM in the source. The VM&#x27;s name in vSphere can be changed, so this is not the VM&#x27;s name but rather its moRef id. This id is of the form vm-.
351 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the MigratingVm.
352 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM state was updated.
353 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM resource was updated.
354}
355
356 migratingVmId: string, Required. The migratingVm identifier.
357 requestId: string, 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 t he 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).
358 x__xgafv: string, V1 error format.
359 Allowed values
360 1 - v1 error format
361 2 - v2 error format
362
363Returns:
364 An object of the form:
365
366 { # This resource represents a long-running operation that is the result of a network API call.
367 &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.
368 &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.
369 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
370 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
371 {
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 ],
375 &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.
376 },
377 &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.
378 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
379 },
380 &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}`.
381 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
382 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
383 },
384}</pre>
385</div>
386
387<div class="method">
388 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
389 <pre>Deletes a single MigratingVm.
390
391Args:
392 name: string, Required. The name of the MigratingVm. (required)
393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
397
398Returns:
399 An object of the form:
400
401 { # This resource represents a long-running operation that is the result of a network API call.
402 &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.
403 &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.
404 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
405 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
406 {
407 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
408 },
409 ],
410 &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.
411 },
412 &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.
413 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
414 },
415 &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}`.
416 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
417 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
418 },
419}</pre>
420</div>
421
422<div class="method">
423 <code class="details" id="finalizeMigration">finalizeMigration(migratingVm, body=None, x__xgafv=None)</code>
424 <pre>Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
425
426Args:
427 migratingVm: string, Required. The name of the MigratingVm. (required)
428 body: object, The request body.
429 The object takes the form of:
430
431{ # Request message for &#x27;FinalizeMigration&#x27; request.
432}
433
434 x__xgafv: string, V1 error format.
435 Allowed values
436 1 - v1 error format
437 2 - v2 error format
438
439Returns:
440 An object of the form:
441
442 { # This resource represents a long-running operation that is the result of a network API call.
443 &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.
444 &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.
445 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
446 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
447 {
448 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
449 },
450 ],
451 &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.
452 },
453 &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.
454 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
455 },
456 &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}`.
457 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
458 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
459 },
460}</pre>
461</div>
462
463<div class="method">
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800464 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
yoshi-code-botf4773f62021-10-19 00:22:31 -0700465 <pre>Gets details of a single MigratingVm.
466
467Args:
468 name: string, Required. The name of the MigratingVm. (required)
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800469 view: string, Optional. The level of details of the migrating VM.
470 Allowed values
471 MIGRATING_VM_VIEW_UNSPECIFIED - View is unspecified. The API will fallback to the default value.
472 MIGRATING_VM_VIEW_BASIC - Get the migrating VM basic details. The basic details do not include the recent clone jobs and recent cutover jobs lists.
473 MIGRATING_VM_VIEW_FULL - Include everything.
yoshi-code-botf4773f62021-10-19 00:22:31 -0700474 x__xgafv: string, V1 error format.
475 Allowed values
476 1 - v1 error format
477 2 - v2 error format
478
479Returns:
480 An object of the form:
481
482 { # MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
483 &quot;computeEngineTargetDefaults&quot;: { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800484 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
485 &quot;A String&quot;,
486 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -0700487 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # Output only. The OS license returned from the adaptation module report.
488 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
489 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
490 },
491 &quot;bootOption&quot;: &quot;A String&quot;, # Output only. The VM Boot Option, as set in the source vm.
492 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
493 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
494 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
495 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
496 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
497 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
498 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
499 &quot;A String&quot;,
500 ],
501 },
502 ],
503 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
504 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
505 },
506 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
507 &quot;labels&quot;: { # A map of labels to associate with the VM.
508 &quot;a_key&quot;: &quot;A String&quot;,
509 },
510 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
511 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
512 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
513 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
514 &quot;a_key&quot;: &quot;A String&quot;,
515 },
516 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
517 { # NetworkInterface represents a NIC of a VM.
518 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
519 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
520 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
521 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
522 },
523 ],
524 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
525 &quot;A String&quot;,
526 ],
527 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
528 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
529 &quot;targetProject&quot;: &quot;A String&quot;, # The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
530 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
531 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
532 },
533 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the migrating VM was created (this refers to this resource and not to the time it was installed in the source).
534 &quot;currentSyncInfo&quot;: { # ReplicationCycle contains information about the current replication cycle status. # Output only. The percentage progress of the current running replication cycle.
535 &quot;progressPercent&quot;: 42, # The current progress in percentage of this cycle.
536 &quot;startTime&quot;: &quot;A String&quot;, # The time the replication cycle has started.
537 },
538 &quot;description&quot;: &quot;A String&quot;, # The description attached to the migrating VM by the user.
539 &quot;displayName&quot;: &quot;A String&quot;, # The display name attached to the MigratingVm by the user.
540 &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). # Output only. Provides details on the state of the Migrating VM in case of an error in replication.
541 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
542 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
543 {
544 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
545 },
546 ],
547 &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.
548 },
549 &quot;group&quot;: &quot;A String&quot;, # Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.
550 &quot;labels&quot;: { # The labels of the migrating VM.
551 &quot;a_key&quot;: &quot;A String&quot;,
552 },
553 &quot;lastSync&quot;: { # ReplicationSync contain information about the last replica sync to the cloud. # Output only. The most updated snapshot created time in the source that finished replication.
554 &quot;lastSyncTime&quot;: &quot;A String&quot;, # The most updated snapshot created time in the source that finished replication.
555 },
556 &quot;name&quot;: &quot;A String&quot;, # Output only. The identifier of the MigratingVm.
557 &quot;policy&quot;: { # A policy for scheduling replications. # The replication schedule policy.
558 &quot;idleDuration&quot;: &quot;A String&quot;, # The idle duration between replication stages.
559 &quot;skipOsAdaptation&quot;: True or False, # A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM&#x27;s operating system undergoes changes and adaptations to fully function on Compute Engine.
560 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800561 &quot;recentCloneJobs&quot;: [ # Output only. The recent clone jobs performed on the migrating VM. This field holds the vm&#x27;s last completed clone job and the vm&#x27;s running clone job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
562 { # CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.
563 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800564 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
565 &quot;A String&quot;,
566 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800567 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
568 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
569 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
570 },
571 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
572 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
573 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
574 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
575 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
576 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
577 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
578 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
579 &quot;A String&quot;,
580 ],
581 },
582 ],
583 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
584 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
585 },
586 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
587 &quot;labels&quot;: { # A map of labels to associate with the VM.
588 &quot;a_key&quot;: &quot;A String&quot;,
589 },
590 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
591 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
592 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
593 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
594 &quot;a_key&quot;: &quot;A String&quot;,
595 },
596 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
597 { # NetworkInterface represents a NIC of a VM.
598 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
599 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
600 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
601 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
602 },
603 ],
604 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
605 &quot;A String&quot;,
606 ],
607 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
608 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
609 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
610 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
611 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
612 },
613 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the clone job was created (as an API call, not when it was actually created in the target).
614 &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). # Output only. Provides details for the errors that led to the Clone Job&#x27;s state.
615 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
616 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
617 {
618 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
619 },
620 ],
621 &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.
622 },
623 &quot;name&quot;: &quot;A String&quot;, # The name of the clone.
624 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the clone job.
625 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
626 },
627 ],
628 &quot;recentCutoverJobs&quot;: [ # Output only. The recent cutover jobs performed on the migrating VM. This field holds the vm&#x27;s last completed cutover job and the vm&#x27;s running cutover job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
629 { # CutoverJob message describes a cutover of a migrating VM. The CutoverJob is the operation of shutting down the VM, creating a snapshot and clonning the VM using the replicated snapshot.
630 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800631 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
632 &quot;A String&quot;,
633 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800634 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
635 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
636 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
637 },
638 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
639 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
640 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
641 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
642 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
643 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
644 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
645 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
646 &quot;A String&quot;,
647 ],
648 },
649 ],
650 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
651 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
652 },
653 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
654 &quot;labels&quot;: { # A map of labels to associate with the VM.
655 &quot;a_key&quot;: &quot;A String&quot;,
656 },
657 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
658 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
659 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
660 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
661 &quot;a_key&quot;: &quot;A String&quot;,
662 },
663 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
664 { # NetworkInterface represents a NIC of a VM.
665 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
666 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
667 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
668 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
669 },
670 ],
671 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
672 &quot;A String&quot;,
673 ],
674 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
675 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
676 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
677 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
678 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
679 },
680 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the cutover job was created (as an API call, not when it was actually created in the target).
681 &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). # Output only. Provides details for the errors that led to the Cutover Job&#x27;s state.
682 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
683 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
684 {
685 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
686 },
687 ],
688 &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.
689 },
690 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the cutover job.
691 &quot;progressPercent&quot;: 42, # Output only. The current progress in percentage of the cutover job.
692 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the cutover job.
693 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A message providing possible extra details about the current state.
694 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
695 },
696 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -0700697 &quot;sourceVmId&quot;: &quot;A String&quot;, # The unique ID of the VM in the source. The VM&#x27;s name in vSphere can be changed, so this is not the VM&#x27;s name but rather its moRef id. This id is of the form vm-.
698 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the MigratingVm.
699 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM state was updated.
700 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM resource was updated.
701}</pre>
702</div>
703
704<div class="method">
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800705 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
yoshi-code-botf4773f62021-10-19 00:22:31 -0700706 <pre>Lists MigratingVms in a given Source.
707
708Args:
709 parent: string, Required. The parent, which owns this collection of MigratingVms. (required)
710 filter: string, Optional. The filter request.
711 orderBy: string, Optional. the order by fields for the result.
712 pageSize: integer, Optional. The maximum number of migrating VMs to return. The service may return fewer than this value. If unspecified, at most 500 migrating VMs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
713 pageToken: string, Required. A page token, received from a previous `ListMigratingVms` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMigratingVms` must match the call that provided the page token.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800714 view: string, Optional. The level of details of each migrating VM.
715 Allowed values
716 MIGRATING_VM_VIEW_UNSPECIFIED - View is unspecified. The API will fallback to the default value.
717 MIGRATING_VM_VIEW_BASIC - Get the migrating VM basic details. The basic details do not include the recent clone jobs and recent cutover jobs lists.
718 MIGRATING_VM_VIEW_FULL - Include everything.
yoshi-code-botf4773f62021-10-19 00:22:31 -0700719 x__xgafv: string, V1 error format.
720 Allowed values
721 1 - v1 error format
722 2 - v2 error format
723
724Returns:
725 An object of the form:
726
727 { # Response message for &#x27;ListMigratingVms&#x27; request.
728 &quot;migratingVms&quot;: [ # Output only. The list of Migrating VMs response.
729 { # MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
730 &quot;computeEngineTargetDefaults&quot;: { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800731 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
732 &quot;A String&quot;,
733 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -0700734 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # Output only. The OS license returned from the adaptation module report.
735 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
736 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
737 },
738 &quot;bootOption&quot;: &quot;A String&quot;, # Output only. The VM Boot Option, as set in the source vm.
739 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
740 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
741 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
742 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
743 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
744 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
745 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
746 &quot;A String&quot;,
747 ],
748 },
749 ],
750 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
751 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
752 },
753 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
754 &quot;labels&quot;: { # A map of labels to associate with the VM.
755 &quot;a_key&quot;: &quot;A String&quot;,
756 },
757 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
758 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
759 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
760 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
761 &quot;a_key&quot;: &quot;A String&quot;,
762 },
763 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
764 { # NetworkInterface represents a NIC of a VM.
765 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
766 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
767 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
768 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
769 },
770 ],
771 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
772 &quot;A String&quot;,
773 ],
774 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
775 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
776 &quot;targetProject&quot;: &quot;A String&quot;, # The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
777 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
778 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
779 },
780 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the migrating VM was created (this refers to this resource and not to the time it was installed in the source).
781 &quot;currentSyncInfo&quot;: { # ReplicationCycle contains information about the current replication cycle status. # Output only. The percentage progress of the current running replication cycle.
782 &quot;progressPercent&quot;: 42, # The current progress in percentage of this cycle.
783 &quot;startTime&quot;: &quot;A String&quot;, # The time the replication cycle has started.
784 },
785 &quot;description&quot;: &quot;A String&quot;, # The description attached to the migrating VM by the user.
786 &quot;displayName&quot;: &quot;A String&quot;, # The display name attached to the MigratingVm by the user.
787 &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). # Output only. Provides details on the state of the Migrating VM in case of an error in replication.
788 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
789 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
790 {
791 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
792 },
793 ],
794 &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.
795 },
796 &quot;group&quot;: &quot;A String&quot;, # Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.
797 &quot;labels&quot;: { # The labels of the migrating VM.
798 &quot;a_key&quot;: &quot;A String&quot;,
799 },
800 &quot;lastSync&quot;: { # ReplicationSync contain information about the last replica sync to the cloud. # Output only. The most updated snapshot created time in the source that finished replication.
801 &quot;lastSyncTime&quot;: &quot;A String&quot;, # The most updated snapshot created time in the source that finished replication.
802 },
803 &quot;name&quot;: &quot;A String&quot;, # Output only. The identifier of the MigratingVm.
804 &quot;policy&quot;: { # A policy for scheduling replications. # The replication schedule policy.
805 &quot;idleDuration&quot;: &quot;A String&quot;, # The idle duration between replication stages.
806 &quot;skipOsAdaptation&quot;: True or False, # A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM&#x27;s operating system undergoes changes and adaptations to fully function on Compute Engine.
807 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800808 &quot;recentCloneJobs&quot;: [ # Output only. The recent clone jobs performed on the migrating VM. This field holds the vm&#x27;s last completed clone job and the vm&#x27;s running clone job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
809 { # CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.
810 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800811 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
812 &quot;A String&quot;,
813 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800814 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
815 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
816 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
817 },
818 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
819 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
820 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
821 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
822 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
823 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
824 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
825 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
826 &quot;A String&quot;,
827 ],
828 },
829 ],
830 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
831 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
832 },
833 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
834 &quot;labels&quot;: { # A map of labels to associate with the VM.
835 &quot;a_key&quot;: &quot;A String&quot;,
836 },
837 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
838 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
839 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
840 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
841 &quot;a_key&quot;: &quot;A String&quot;,
842 },
843 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
844 { # NetworkInterface represents a NIC of a VM.
845 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
846 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
847 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
848 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
849 },
850 ],
851 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
852 &quot;A String&quot;,
853 ],
854 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
855 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
856 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
857 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
858 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
859 },
860 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the clone job was created (as an API call, not when it was actually created in the target).
861 &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). # Output only. Provides details for the errors that led to the Clone Job&#x27;s state.
862 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
863 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
864 {
865 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
866 },
867 ],
868 &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.
869 },
870 &quot;name&quot;: &quot;A String&quot;, # The name of the clone.
871 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the clone job.
872 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
873 },
874 ],
875 &quot;recentCutoverJobs&quot;: [ # Output only. The recent cutover jobs performed on the migrating VM. This field holds the vm&#x27;s last completed cutover job and the vm&#x27;s running cutover job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
876 { # CutoverJob message describes a cutover of a migrating VM. The CutoverJob is the operation of shutting down the VM, creating a snapshot and clonning the VM using the replicated snapshot.
877 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800878 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
879 &quot;A String&quot;,
880 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800881 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
882 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
883 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
884 },
885 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
886 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
887 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
888 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
889 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
890 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
891 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
892 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
893 &quot;A String&quot;,
894 ],
895 },
896 ],
897 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
898 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
899 },
900 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
901 &quot;labels&quot;: { # A map of labels to associate with the VM.
902 &quot;a_key&quot;: &quot;A String&quot;,
903 },
904 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
905 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
906 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
907 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
908 &quot;a_key&quot;: &quot;A String&quot;,
909 },
910 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
911 { # NetworkInterface represents a NIC of a VM.
912 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
913 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
914 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
915 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
916 },
917 ],
918 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
919 &quot;A String&quot;,
920 ],
921 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
922 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
923 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
924 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
925 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
926 },
927 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the cutover job was created (as an API call, not when it was actually created in the target).
928 &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). # Output only. Provides details for the errors that led to the Cutover Job&#x27;s state.
929 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
930 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
931 {
932 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
933 },
934 ],
935 &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.
936 },
937 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the cutover job.
938 &quot;progressPercent&quot;: 42, # Output only. The current progress in percentage of the cutover job.
939 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the cutover job.
940 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A message providing possible extra details about the current state.
941 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
942 },
943 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -0700944 &quot;sourceVmId&quot;: &quot;A String&quot;, # The unique ID of the VM in the source. The VM&#x27;s name in vSphere can be changed, so this is not the VM&#x27;s name but rather its moRef id. This id is of the form vm-.
945 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the MigratingVm.
946 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM state was updated.
947 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM resource was updated.
948 },
949 ],
950 &quot;nextPageToken&quot;: &quot;A String&quot;, # 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.
951 &quot;unreachable&quot;: [ # Output only. Locations that could not be reached.
952 &quot;A String&quot;,
953 ],
954}</pre>
955</div>
956
957<div class="method">
958 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
959 <pre>Retrieves the next page of results.
960
961Args:
962 previous_request: The request for the previous page. (required)
963 previous_response: The response from the request for the previous page. (required)
964
965Returns:
966 A request object that you can call &#x27;execute()&#x27; on to request the next
967 page. Returns None if there are no more items in the collection.
968 </pre>
969</div>
970
971<div class="method">
972 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
973 <pre>Updates the parameters of a single MigratingVm.
974
975Args:
976 name: string, Output only. The identifier of the MigratingVm. (required)
977 body: object, The request body.
978 The object takes the form of:
979
980{ # MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
981 &quot;computeEngineTargetDefaults&quot;: { # ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project. # Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -0800982 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
983 &quot;A String&quot;,
984 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -0700985 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # Output only. The OS license returned from the adaptation module report.
986 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
987 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
988 },
989 &quot;bootOption&quot;: &quot;A String&quot;, # Output only. The VM Boot Option, as set in the source vm.
990 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
991 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
992 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
993 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
994 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
995 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
996 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
997 &quot;A String&quot;,
998 ],
999 },
1000 ],
1001 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
1002 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
1003 },
1004 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
1005 &quot;labels&quot;: { # A map of labels to associate with the VM.
1006 &quot;a_key&quot;: &quot;A String&quot;,
1007 },
1008 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
1009 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
1010 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
1011 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
1012 &quot;a_key&quot;: &quot;A String&quot;,
1013 },
1014 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
1015 { # NetworkInterface represents a NIC of a VM.
1016 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
1017 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
1018 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
1019 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
1020 },
1021 ],
1022 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
1023 &quot;A String&quot;,
1024 ],
1025 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
1026 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
1027 &quot;targetProject&quot;: &quot;A String&quot;, # The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
1028 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
1029 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
1030 },
1031 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the migrating VM was created (this refers to this resource and not to the time it was installed in the source).
1032 &quot;currentSyncInfo&quot;: { # ReplicationCycle contains information about the current replication cycle status. # Output only. The percentage progress of the current running replication cycle.
1033 &quot;progressPercent&quot;: 42, # The current progress in percentage of this cycle.
1034 &quot;startTime&quot;: &quot;A String&quot;, # The time the replication cycle has started.
1035 },
1036 &quot;description&quot;: &quot;A String&quot;, # The description attached to the migrating VM by the user.
1037 &quot;displayName&quot;: &quot;A String&quot;, # The display name attached to the MigratingVm by the user.
1038 &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). # Output only. Provides details on the state of the Migrating VM in case of an error in replication.
1039 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1040 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1041 {
1042 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1043 },
1044 ],
1045 &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.
1046 },
1047 &quot;group&quot;: &quot;A String&quot;, # Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.
1048 &quot;labels&quot;: { # The labels of the migrating VM.
1049 &quot;a_key&quot;: &quot;A String&quot;,
1050 },
1051 &quot;lastSync&quot;: { # ReplicationSync contain information about the last replica sync to the cloud. # Output only. The most updated snapshot created time in the source that finished replication.
1052 &quot;lastSyncTime&quot;: &quot;A String&quot;, # The most updated snapshot created time in the source that finished replication.
1053 },
1054 &quot;name&quot;: &quot;A String&quot;, # Output only. The identifier of the MigratingVm.
1055 &quot;policy&quot;: { # A policy for scheduling replications. # The replication schedule policy.
1056 &quot;idleDuration&quot;: &quot;A String&quot;, # The idle duration between replication stages.
1057 &quot;skipOsAdaptation&quot;: True or False, # A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM&#x27;s operating system undergoes changes and adaptations to fully function on Compute Engine.
1058 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001059 &quot;recentCloneJobs&quot;: [ # Output only. The recent clone jobs performed on the migrating VM. This field holds the vm&#x27;s last completed clone job and the vm&#x27;s running clone job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
1060 { # CloneJob describes the process of creating a clone of a MigratingVM to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.
1061 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -08001062 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
1063 &quot;A String&quot;,
1064 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001065 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
1066 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
1067 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
1068 },
1069 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
1070 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
1071 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
1072 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
1073 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
1074 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
1075 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
1076 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
1077 &quot;A String&quot;,
1078 ],
1079 },
1080 ],
1081 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
1082 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
1083 },
1084 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
1085 &quot;labels&quot;: { # A map of labels to associate with the VM.
1086 &quot;a_key&quot;: &quot;A String&quot;,
1087 },
1088 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
1089 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
1090 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
1091 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
1092 &quot;a_key&quot;: &quot;A String&quot;,
1093 },
1094 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
1095 { # NetworkInterface represents a NIC of a VM.
1096 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
1097 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
1098 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
1099 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
1100 },
1101 ],
1102 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
1103 &quot;A String&quot;,
1104 ],
1105 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
1106 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
1107 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
1108 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
1109 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
1110 },
1111 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the clone job was created (as an API call, not when it was actually created in the target).
1112 &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). # Output only. Provides details for the errors that led to the Clone Job&#x27;s state.
1113 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1114 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1115 {
1116 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1117 },
1118 ],
1119 &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.
1120 },
1121 &quot;name&quot;: &quot;A String&quot;, # The name of the clone.
1122 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the clone job.
1123 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
1124 },
1125 ],
1126 &quot;recentCutoverJobs&quot;: [ # Output only. The recent cutover jobs performed on the migrating VM. This field holds the vm&#x27;s last completed cutover job and the vm&#x27;s running cutover job, if one exists. Note: To have this field populated you need to explicitly request it via the &quot;view&quot; parameter of the Get/List request.
1127 { # CutoverJob message describes a cutover of a migrating VM. The CutoverJob is the operation of shutting down the VM, creating a snapshot and clonning the VM using the replicated snapshot.
1128 &quot;computeEngineTargetDetails&quot;: { # ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. # Output only. Details of the target VM in Compute Engine.
yoshi-code-bot278a4902021-12-14 03:32:50 -08001129 &quot;additionalLicenses&quot;: [ # Additional licenses to assign to the VM.
1130 &quot;A String&quot;,
1131 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001132 &quot;appliedLicense&quot;: { # AppliedLicense holds the license data returned by adaptation module report. # The OS license returned from the adaptation module report.
1133 &quot;osLicense&quot;: &quot;A String&quot;, # The OS license returned from the adaptation module&#x27;s report.
1134 &quot;type&quot;: &quot;A String&quot;, # The license type that was used in OS adaptation.
1135 },
1136 &quot;bootOption&quot;: &quot;A String&quot;, # The VM Boot Option, as set in the source vm.
1137 &quot;computeScheduling&quot;: { # Scheduling information for VM on maintenance/restart behaviour and node allocation in sole tenant nodes. # Compute instance scheduling information (if empty default is used).
1138 &quot;minNodeCpus&quot;: 42, # The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
1139 &quot;nodeAffinities&quot;: [ # A set of node affinity and anti-affinity configurations for sole tenant nodes.
1140 { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. Based on https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling
1141 &quot;key&quot;: &quot;A String&quot;, # The label key of Node resource to reference.
1142 &quot;operator&quot;: &quot;A String&quot;, # The operator to use for the node resources specified in the `values` parameter.
1143 &quot;values&quot;: [ # Corresponds to the label values of Node resource.
1144 &quot;A String&quot;,
1145 ],
1146 },
1147 ],
1148 &quot;onHostMaintenance&quot;: &quot;A String&quot;, # How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
1149 &quot;restartType&quot;: &quot;A String&quot;, # Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to `automaticRestart` field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
1150 },
1151 &quot;diskType&quot;: &quot;A String&quot;, # The disk type to use in the VM.
1152 &quot;labels&quot;: { # A map of labels to associate with the VM.
1153 &quot;a_key&quot;: &quot;A String&quot;,
1154 },
1155 &quot;licenseType&quot;: &quot;A String&quot;, # The license type to use in OS adaptation.
1156 &quot;machineType&quot;: &quot;A String&quot;, # The machine type to create the VM with.
1157 &quot;machineTypeSeries&quot;: &quot;A String&quot;, # The machine type series to create the VM with.
1158 &quot;metadata&quot;: { # The metadata key/value pairs to assign to the VM.
1159 &quot;a_key&quot;: &quot;A String&quot;,
1160 },
1161 &quot;networkInterfaces&quot;: [ # List of NICs connected to this VM.
1162 { # NetworkInterface represents a NIC of a VM.
1163 &quot;externalIp&quot;: &quot;A String&quot;, # The external IP to define in the NIC.
1164 &quot;internalIp&quot;: &quot;A String&quot;, # The internal IP to define in the NIC. The formats accepted are: `ephemeral` \ ipv4 address \ a named address resource full path.
1165 &quot;network&quot;: &quot;A String&quot;, # The network to connect the NIC to.
1166 &quot;subnetwork&quot;: &quot;A String&quot;, # The subnetwork to connect the NIC to.
1167 },
1168 ],
1169 &quot;networkTags&quot;: [ # A map of network tags to associate with the VM.
1170 &quot;A String&quot;,
1171 ],
1172 &quot;project&quot;: &quot;A String&quot;, # The GCP target project ID or project name.
1173 &quot;secureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.
1174 &quot;serviceAccount&quot;: &quot;A String&quot;, # The service account to associate the VM with.
1175 &quot;vmName&quot;: &quot;A String&quot;, # The name of the VM to create.
1176 &quot;zone&quot;: &quot;A String&quot;, # The zone in which to create the VM.
1177 },
1178 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the cutover job was created (as an API call, not when it was actually created in the target).
1179 &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). # Output only. Provides details for the errors that led to the Cutover Job&#x27;s state.
1180 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1181 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1182 {
1183 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1184 },
1185 ],
1186 &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.
1187 },
1188 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the cutover job.
1189 &quot;progressPercent&quot;: 42, # Output only. The current progress in percentage of the cutover job.
1190 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the cutover job.
1191 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. A message providing possible extra details about the current state.
1192 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The time the state was last updated.
1193 },
1194 ],
yoshi-code-botf4773f62021-10-19 00:22:31 -07001195 &quot;sourceVmId&quot;: &quot;A String&quot;, # The unique ID of the VM in the source. The VM&#x27;s name in vSphere can be changed, so this is not the VM&#x27;s name but rather its moRef id. This id is of the form vm-.
1196 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the MigratingVm.
1197 &quot;stateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM state was updated.
1198 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last time the migrating VM resource was updated.
1199}
1200
1201 requestId: string, 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 t he 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).
1202 updateMask: string, Field mask is used to specify the fields to be overwritten in the MigratingVm 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 all fields will be overwritten.
1203 x__xgafv: string, V1 error format.
1204 Allowed values
1205 1 - v1 error format
1206 2 - v2 error format
1207
1208Returns:
1209 An object of the form:
1210
1211 { # This resource represents a long-running operation that is the result of a network API call.
1212 &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.
1213 &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.
1214 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1215 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1216 {
1217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1218 },
1219 ],
1220 &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.
1221 },
1222 &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.
1223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1224 },
1225 &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}`.
1226 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
1227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1228 },
1229}</pre>
1230</div>
1231
1232<div class="method">
1233 <code class="details" id="pauseMigration">pauseMigration(migratingVm, body=None, x__xgafv=None)</code>
1234 <pre>Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.
1235
1236Args:
1237 migratingVm: string, Required. The name of the MigratingVm. (required)
1238 body: object, The request body.
1239 The object takes the form of:
1240
1241{ # Request message for &#x27;PauseMigration&#x27; request.
1242}
1243
1244 x__xgafv: string, V1 error format.
1245 Allowed values
1246 1 - v1 error format
1247 2 - v2 error format
1248
1249Returns:
1250 An object of the form:
1251
1252 { # This resource represents a long-running operation that is the result of a network API call.
1253 &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.
1254 &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.
1255 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1256 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1257 {
1258 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1259 },
1260 ],
1261 &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.
1262 },
1263 &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.
1264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1265 },
1266 &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}`.
1267 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
1268 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1269 },
1270}</pre>
1271</div>
1272
1273<div class="method">
1274 <code class="details" id="resumeMigration">resumeMigration(migratingVm, body=None, x__xgafv=None)</code>
1275 <pre>Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.
1276
1277Args:
1278 migratingVm: string, Required. The name of the MigratingVm. (required)
1279 body: object, The request body.
1280 The object takes the form of:
1281
1282{ # Request message for &#x27;ResumeMigration&#x27; request.
1283}
1284
1285 x__xgafv: string, V1 error format.
1286 Allowed values
1287 1 - v1 error format
1288 2 - v2 error format
1289
1290Returns:
1291 An object of the form:
1292
1293 { # This resource represents a long-running operation that is the result of a network API call.
1294 &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.
1295 &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.
1296 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1297 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1298 {
1299 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1300 },
1301 ],
1302 &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.
1303 },
1304 &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.
1305 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1306 },
1307 &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}`.
1308 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
1309 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1310 },
1311}</pre>
1312</div>
1313
1314<div class="method">
1315 <code class="details" id="startMigration">startMigration(migratingVm, body=None, x__xgafv=None)</code>
1316 <pre>Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
1317
1318Args:
1319 migratingVm: string, Required. The name of the MigratingVm. (required)
1320 body: object, The request body.
1321 The object takes the form of:
1322
1323{ # Request message for &#x27;StartMigrationRequest&#x27; request.
1324}
1325
1326 x__xgafv: string, V1 error format.
1327 Allowed values
1328 1 - v1 error format
1329 2 - v2 error format
1330
1331Returns:
1332 An object of the form:
1333
1334 { # This resource represents a long-running operation that is the result of a network API call.
1335 &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.
1336 &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.
1337 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1338 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1339 {
1340 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1341 },
1342 ],
1343 &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.
1344 },
1345 &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.
1346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1347 },
1348 &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}`.
1349 &quot;response&quot;: { # The normal response of the operation in case of success. 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`.
1350 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1351 },
1352}</pre>
1353</div>
1354
1355</body></html>