1<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></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="vmmigration_v1.projects.locations.sources.datacenterConnectors.html">datacenterConnectors()</a></code> 79</p> 80<p class="firstline">Returns the datacenterConnectors Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="vmmigration_v1.projects.locations.sources.migratingVms.html">migratingVms()</a></code> 84</p> 85<p class="firstline">Returns the migratingVms Resource.</p> 86 87<p class="toc_element"> 88 <code><a href="vmmigration_v1.projects.locations.sources.utilizationReports.html">utilizationReports()</a></code> 89</p> 90<p class="firstline">Returns the utilizationReports Resource.</p> 91 92<p class="toc_element"> 93 <code><a href="#close">close()</a></code></p> 94<p class="firstline">Close httplib2 connections.</p> 95<p class="toc_element"> 96 <code><a href="#create">create(parent, body=None, requestId=None, sourceId=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Creates a new Source in a given project and location.</p> 98<p class="toc_element"> 99 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Deletes a single Source.</p> 101<p class="toc_element"> 102 <code><a href="#fetchInventory">fetchInventory(source, forceRefresh=None, x__xgafv=None)</a></code></p> 103<p class="firstline">List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.</p> 104<p class="toc_element"> 105 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 106<p class="firstline">Gets details of a single Source.</p> 107<p class="toc_element"> 108 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 109<p class="firstline">Lists Sources in a given project and location.</p> 110<p class="toc_element"> 111 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 112<p class="firstline">Retrieves the next page of results.</p> 113<p class="toc_element"> 114 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p> 115<p class="firstline">Updates the parameters of a single Source.</p> 116<h3>Method Details</h3> 117<div class="method"> 118 <code class="details" id="close">close()</code> 119 <pre>Close httplib2 connections.</pre> 120</div> 121 122<div class="method"> 123 <code class="details" id="create">create(parent, body=None, requestId=None, sourceId=None, x__xgafv=None)</code> 124 <pre>Creates a new Source in a given project and location. 125 126Args: 127 parent: string, Required. The Source's parent. (required) 128 body: object, The request body. 129 The object takes the form of: 130 131{ # Source message describes a specific vm migration Source resource. It contains the source environment information. 132 "createTime": "A String", # Output only. The create time timestamp. 133 "description": "A String", # User-provided description of the source. 134 "labels": { # The labels of the source. 135 "a_key": "A String", 136 }, 137 "name": "A String", # Output only. The Source name. 138 "updateTime": "A String", # Output only. The update time timestamp. 139 "vmware": { # VmwareSourceDetails message describes a specific source details for the vmware source type. # Vmware type source details. 140 "password": "A String", # Input only. The credentials password. This is write only and can not be read in a GET operation. 141 "thumbprint": "A String", # The thumbprint representing the certificate for the vcenter. 142 "username": "A String", # The credentials username. 143 "vcenterIp": "A String", # The ip address of the vcenter this Source represents. 144 }, 145} 146 147 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). 148 sourceId: string, Required. The source identifier. 149 x__xgafv: string, V1 error format. 150 Allowed values 151 1 - v1 error format 152 2 - v2 error format 153 154Returns: 155 An object of the form: 156 157 { # This resource represents a long-running operation that is the result of a network API call. 158 "done": 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. 159 "error": { # 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. 160 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 161 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 162 { 163 "a_key": "", # Properties of the object. Contains field @type with type URL. 164 }, 165 ], 166 "message": "A String", # 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. 167 }, 168 "metadata": { # 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. 169 "a_key": "", # Properties of the object. Contains field @type with type URL. 170 }, 171 "name": "A String", # 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}`. 172 "response": { # 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`. 173 "a_key": "", # Properties of the object. Contains field @type with type URL. 174 }, 175}</pre> 176</div> 177 178<div class="method"> 179 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code> 180 <pre>Deletes a single Source. 181 182Args: 183 name: string, Required. The Source name. (required) 184 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after 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). 185 x__xgafv: string, V1 error format. 186 Allowed values 187 1 - v1 error format 188 2 - v2 error format 189 190Returns: 191 An object of the form: 192 193 { # This resource represents a long-running operation that is the result of a network API call. 194 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 195 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 196 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 197 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 198 { 199 "a_key": "", # Properties of the object. Contains field @type with type URL. 200 }, 201 ], 202 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 203 }, 204 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 205 "a_key": "", # Properties of the object. Contains field @type with type URL. 206 }, 207 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 208 "response": { # 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`. 209 "a_key": "", # Properties of the object. Contains field @type with type URL. 210 }, 211}</pre> 212</div> 213 214<div class="method"> 215 <code class="details" id="fetchInventory">fetchInventory(source, forceRefresh=None, x__xgafv=None)</code> 216 <pre>List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service. 217 218Args: 219 source: string, Required. The name of the Source. (required) 220 forceRefresh: boolean, If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower. 221 x__xgafv: string, V1 error format. 222 Allowed values 223 1 - v1 error format 224 2 - v2 error format 225 226Returns: 227 An object of the form: 228 229 { # Response message for fetchInventory. 230 "updateTime": "A String", # Output only. The timestamp when the source was last queried (if the result is from the cache). 231 "vmwareVms": { # VmwareVmsDetails describes VMs in vCenter. # Output only. The description of the VMs in a Source of type Vmware. 232 "details": [ # The details of the vmware VMs. 233 { # VmwareVmDetails describes a VM in vCenter. 234 "bootOption": "A String", # Output only. The VM Boot Option. 235 "committedStorageMb": "A String", # The total size of the storage allocated to the VM in MB. 236 "cpuCount": 42, # The number of cpus in the VM. 237 "datacenterDescription": "A String", # The descriptive name of the vCenter's datacenter this VM is contained in. 238 "datacenterId": "A String", # The id of the vCenter's datacenter this VM is contained in. 239 "diskCount": 42, # The number of disks the VM has. 240 "displayName": "A String", # The display name of the VM. Note that this is not necessarily unique. 241 "guestDescription": "A String", # The VM's OS. See for example https://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold. 242 "memoryMb": 42, # The size of the memory of the VM in MB. 243 "powerState": "A String", # The power state of the VM at the moment list was taken. 244 "uuid": "A String", # The unique identifier of the VM in vCenter. 245 "vmId": "A String", # The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM. 246 }, 247 ], 248 }, 249}</pre> 250</div> 251 252<div class="method"> 253 <code class="details" id="get">get(name, x__xgafv=None)</code> 254 <pre>Gets details of a single Source. 255 256Args: 257 name: string, Required. The Source name. (required) 258 x__xgafv: string, V1 error format. 259 Allowed values 260 1 - v1 error format 261 2 - v2 error format 262 263Returns: 264 An object of the form: 265 266 { # Source message describes a specific vm migration Source resource. It contains the source environment information. 267 "createTime": "A String", # Output only. The create time timestamp. 268 "description": "A String", # User-provided description of the source. 269 "labels": { # The labels of the source. 270 "a_key": "A String", 271 }, 272 "name": "A String", # Output only. The Source name. 273 "updateTime": "A String", # Output only. The update time timestamp. 274 "vmware": { # VmwareSourceDetails message describes a specific source details for the vmware source type. # Vmware type source details. 275 "password": "A String", # Input only. The credentials password. This is write only and can not be read in a GET operation. 276 "thumbprint": "A String", # The thumbprint representing the certificate for the vcenter. 277 "username": "A String", # The credentials username. 278 "vcenterIp": "A String", # The ip address of the vcenter this Source represents. 279 }, 280}</pre> 281</div> 282 283<div class="method"> 284 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 285 <pre>Lists Sources in a given project and location. 286 287Args: 288 parent: string, Required. The parent, which owns this collection of sources. (required) 289 filter: string, Optional. The filter request. 290 orderBy: string, Optional. the order by fields for the result. 291 pageSize: integer, Optional. The maximum number of sources to return. The service may return fewer than this value. If unspecified, at most 500 sources will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. 292 pageToken: string, Required. A page token, received from a previous `ListSources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSources` must match the call that provided the page token. 293 x__xgafv: string, V1 error format. 294 Allowed values 295 1 - v1 error format 296 2 - v2 error format 297 298Returns: 299 An object of the form: 300 301 { # Response message for 'ListSources' request. 302 "nextPageToken": "A String", # 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. 303 "sources": [ # Output only. The list of sources response. 304 { # Source message describes a specific vm migration Source resource. It contains the source environment information. 305 "createTime": "A String", # Output only. The create time timestamp. 306 "description": "A String", # User-provided description of the source. 307 "labels": { # The labels of the source. 308 "a_key": "A String", 309 }, 310 "name": "A String", # Output only. The Source name. 311 "updateTime": "A String", # Output only. The update time timestamp. 312 "vmware": { # VmwareSourceDetails message describes a specific source details for the vmware source type. # Vmware type source details. 313 "password": "A String", # Input only. The credentials password. This is write only and can not be read in a GET operation. 314 "thumbprint": "A String", # The thumbprint representing the certificate for the vcenter. 315 "username": "A String", # The credentials username. 316 "vcenterIp": "A String", # The ip address of the vcenter this Source represents. 317 }, 318 }, 319 ], 320 "unreachable": [ # Output only. Locations that could not be reached. 321 "A String", 322 ], 323}</pre> 324</div> 325 326<div class="method"> 327 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 328 <pre>Retrieves the next page of results. 329 330Args: 331 previous_request: The request for the previous page. (required) 332 previous_response: The response from the request for the previous page. (required) 333 334Returns: 335 A request object that you can call 'execute()' on to request the next 336 page. Returns None if there are no more items in the collection. 337 </pre> 338</div> 339 340<div class="method"> 341 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code> 342 <pre>Updates the parameters of a single Source. 343 344Args: 345 name: string, Output only. The Source name. (required) 346 body: object, The request body. 347 The object takes the form of: 348 349{ # Source message describes a specific vm migration Source resource. It contains the source environment information. 350 "createTime": "A String", # Output only. The create time timestamp. 351 "description": "A String", # User-provided description of the source. 352 "labels": { # The labels of the source. 353 "a_key": "A String", 354 }, 355 "name": "A String", # Output only. The Source name. 356 "updateTime": "A String", # Output only. The update time timestamp. 357 "vmware": { # VmwareSourceDetails message describes a specific source details for the vmware source type. # Vmware type source details. 358 "password": "A String", # Input only. The credentials password. This is write only and can not be read in a GET operation. 359 "thumbprint": "A String", # The thumbprint representing the certificate for the vcenter. 360 "username": "A String", # The credentials username. 361 "vcenterIp": "A String", # The ip address of the vcenter this Source represents. 362 }, 363} 364 365 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). 366 updateMask: string, Field mask is used to specify the fields to be overwritten in the Source 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. 367 x__xgafv: string, V1 error format. 368 Allowed values 369 1 - v1 error format 370 2 - v2 error format 371 372Returns: 373 An object of the form: 374 375 { # This resource represents a long-running operation that is the result of a network API call. 376 "done": 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. 377 "error": { # 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. 378 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 379 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 380 { 381 "a_key": "", # Properties of the object. Contains field @type with type URL. 382 }, 383 ], 384 "message": "A String", # 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. 385 }, 386 "metadata": { # 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. 387 "a_key": "", # Properties of the object. Contains field @type with type URL. 388 }, 389 "name": "A String", # 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}`. 390 "response": { # 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`. 391 "a_key": "", # Properties of the object. Contains field @type with type URL. 392 }, 393}</pre> 394</div> 395 396</body></html>