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> . <a href="vmmigration_v1.projects.locations.sources.utilizationReports.html">utilizationReports</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, body=None, requestId=None, utilizationReportId=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Creates a new UtilizationReport.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a single Utilization Report.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets a single Utilization Report.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Lists Utilization Reports of the given Source.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="close">close()</code> 98 <pre>Close httplib2 connections.</pre> 99</div> 100 101<div class="method"> 102 <code class="details" id="create">create(parent, body=None, requestId=None, utilizationReportId=None, x__xgafv=None)</code> 103 <pre>Creates a new UtilizationReport. 104 105Args: 106 parent: string, Required. The Utilization Report's parent. (required) 107 body: object, The request body. 108 The object takes the form of: 109 110{ # Utilization report details the utilization (CPU, memory, etc.) of selected source VMs. 111 "createTime": "A String", # Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed). 112 "displayName": "A String", # The report display name, as assigned by the user. 113 "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). # Output only. Provides details on the state of the report in case of an error. 114 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 115 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 116 { 117 "a_key": "", # Properties of the object. Contains field @type with type URL. 118 }, 119 ], 120 "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. 121 }, 122 "frameEndTime": "A String", # Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14. 123 "name": "A String", # Output only. The report unique name. 124 "state": "A String", # Output only. Current state of the report. 125 "stateTime": "A String", # Output only. The time the state was last set. 126 "timeFrame": "A String", # Time frame of the report. 127 "vmCount": 42, # Output only. Total number of VMs included in the report. 128 "vms": [ # List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored. 129 { # Utilization information of a single VM. 130 "utilization": { # Utilization metrics values for a single VM. # Utilization metrics for this VM. 131 "cpuAveragePercent": 42, # Average CPU usage, percent. 132 "cpuMaxPercent": 42, # Max CPU usage, percent. 133 "diskIoRateAverageKbps": "A String", # Average disk IO rate, in kilobytes per second. 134 "diskIoRateMaxKbps": "A String", # Max disk IO rate, in kilobytes per second. 135 "memoryAveragePercent": 42, # Average memory usage, percent. 136 "memoryMaxPercent": 42, # Max memory usage, percent. 137 "networkThroughputAverageKbps": "A String", # Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second. 138 "networkThroughputMaxKbps": "A String", # Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second. 139 }, 140 "vmId": "A String", # The VM's ID in the source. 141 "vmwareVmDetails": { # VmwareVmDetails describes a VM in vCenter. # The description of the VM in a Source of type Vmware. 142 "bootOption": "A String", # Output only. The VM Boot Option. 143 "committedStorageMb": "A String", # The total size of the storage allocated to the VM in MB. 144 "cpuCount": 42, # The number of cpus in the VM. 145 "datacenterDescription": "A String", # The descriptive name of the vCenter's datacenter this VM is contained in. 146 "datacenterId": "A String", # The id of the vCenter's datacenter this VM is contained in. 147 "diskCount": 42, # The number of disks the VM has. 148 "displayName": "A String", # The display name of the VM. Note that this is not necessarily unique. 149 "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. 150 "memoryMb": 42, # The size of the memory of the VM in MB. 151 "powerState": "A String", # The power state of the VM at the moment list was taken. 152 "uuid": "A String", # The unique identifier of the VM in vCenter. 153 "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. 154 }, 155 }, 156 ], 157} 158 159 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). 160 utilizationReportId: string, Required. The ID to use for the report, which will become the final component of the reports's resource name. This value maximum length is 63 characters, and valid characters are /a-z-/. It must start with an english letter and must not end with a hyphen. 161 x__xgafv: string, V1 error format. 162 Allowed values 163 1 - v1 error format 164 2 - v2 error format 165 166Returns: 167 An object of the form: 168 169 { # This resource represents a long-running operation that is the result of a network API call. 170 "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. 171 "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. 172 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 173 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 174 { 175 "a_key": "", # Properties of the object. Contains field @type with type URL. 176 }, 177 ], 178 "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. 179 }, 180 "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. 181 "a_key": "", # Properties of the object. Contains field @type with type URL. 182 }, 183 "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}`. 184 "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`. 185 "a_key": "", # Properties of the object. Contains field @type with type URL. 186 }, 187}</pre> 188</div> 189 190<div class="method"> 191 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code> 192 <pre>Deletes a single Utilization Report. 193 194Args: 195 name: string, Required. The Utilization Report name. (required) 196 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). 197 x__xgafv: string, V1 error format. 198 Allowed values 199 1 - v1 error format 200 2 - v2 error format 201 202Returns: 203 An object of the form: 204 205 { # This resource represents a long-running operation that is the result of a network API call. 206 "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. 207 "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. 208 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 209 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 210 { 211 "a_key": "", # Properties of the object. Contains field @type with type URL. 212 }, 213 ], 214 "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. 215 }, 216 "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. 217 "a_key": "", # Properties of the object. Contains field @type with type URL. 218 }, 219 "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}`. 220 "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`. 221 "a_key": "", # Properties of the object. Contains field @type with type URL. 222 }, 223}</pre> 224</div> 225 226<div class="method"> 227 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code> 228 <pre>Gets a single Utilization Report. 229 230Args: 231 name: string, Required. The Utilization Report name. (required) 232 view: string, Optional. The level of details of the report. Defaults to FULL 233 Allowed values 234 UTILIZATION_REPORT_VIEW_UNSPECIFIED - The default / unset value. The API will default to FULL on single report request and BASIC for multiple reports request. 235 BASIC - Get the report metadata, without the list of VMs and their utilization info. 236 FULL - Include everything. 237 x__xgafv: string, V1 error format. 238 Allowed values 239 1 - v1 error format 240 2 - v2 error format 241 242Returns: 243 An object of the form: 244 245 { # Utilization report details the utilization (CPU, memory, etc.) of selected source VMs. 246 "createTime": "A String", # Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed). 247 "displayName": "A String", # The report display name, as assigned by the user. 248 "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). # Output only. Provides details on the state of the report in case of an error. 249 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 250 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 251 { 252 "a_key": "", # Properties of the object. Contains field @type with type URL. 253 }, 254 ], 255 "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. 256 }, 257 "frameEndTime": "A String", # Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14. 258 "name": "A String", # Output only. The report unique name. 259 "state": "A String", # Output only. Current state of the report. 260 "stateTime": "A String", # Output only. The time the state was last set. 261 "timeFrame": "A String", # Time frame of the report. 262 "vmCount": 42, # Output only. Total number of VMs included in the report. 263 "vms": [ # List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored. 264 { # Utilization information of a single VM. 265 "utilization": { # Utilization metrics values for a single VM. # Utilization metrics for this VM. 266 "cpuAveragePercent": 42, # Average CPU usage, percent. 267 "cpuMaxPercent": 42, # Max CPU usage, percent. 268 "diskIoRateAverageKbps": "A String", # Average disk IO rate, in kilobytes per second. 269 "diskIoRateMaxKbps": "A String", # Max disk IO rate, in kilobytes per second. 270 "memoryAveragePercent": 42, # Average memory usage, percent. 271 "memoryMaxPercent": 42, # Max memory usage, percent. 272 "networkThroughputAverageKbps": "A String", # Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second. 273 "networkThroughputMaxKbps": "A String", # Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second. 274 }, 275 "vmId": "A String", # The VM's ID in the source. 276 "vmwareVmDetails": { # VmwareVmDetails describes a VM in vCenter. # The description of the VM in a Source of type Vmware. 277 "bootOption": "A String", # Output only. The VM Boot Option. 278 "committedStorageMb": "A String", # The total size of the storage allocated to the VM in MB. 279 "cpuCount": 42, # The number of cpus in the VM. 280 "datacenterDescription": "A String", # The descriptive name of the vCenter's datacenter this VM is contained in. 281 "datacenterId": "A String", # The id of the vCenter's datacenter this VM is contained in. 282 "diskCount": 42, # The number of disks the VM has. 283 "displayName": "A String", # The display name of the VM. Note that this is not necessarily unique. 284 "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. 285 "memoryMb": 42, # The size of the memory of the VM in MB. 286 "powerState": "A String", # The power state of the VM at the moment list was taken. 287 "uuid": "A String", # The unique identifier of the VM in vCenter. 288 "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. 289 }, 290 }, 291 ], 292}</pre> 293</div> 294 295<div class="method"> 296 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code> 297 <pre>Lists Utilization Reports of the given Source. 298 299Args: 300 parent: string, Required. The Utilization Reports parent. (required) 301 filter: string, Optional. The filter request. 302 orderBy: string, Optional. the order by fields for the result. 303 pageSize: integer, Optional. The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 500 reports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. 304 pageToken: string, Required. A page token, received from a previous `ListUtilizationReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUtilizationReports` must match the call that provided the page token. 305 view: string, Optional. The level of details of each report. Defaults to BASIC. 306 Allowed values 307 UTILIZATION_REPORT_VIEW_UNSPECIFIED - The default / unset value. The API will default to FULL on single report request and BASIC for multiple reports request. 308 BASIC - Get the report metadata, without the list of VMs and their utilization info. 309 FULL - Include everything. 310 x__xgafv: string, V1 error format. 311 Allowed values 312 1 - v1 error format 313 2 - v2 error format 314 315Returns: 316 An object of the form: 317 318 { # Response message for 'ListUtilizationReports' request. 319 "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. 320 "unreachable": [ # Output only. Locations that could not be reached. 321 "A String", 322 ], 323 "utilizationReports": [ # Output only. The list of reports. 324 { # Utilization report details the utilization (CPU, memory, etc.) of selected source VMs. 325 "createTime": "A String", # Output only. The time the report was created (this refers to the time of the request, not the time the report creation completed). 326 "displayName": "A String", # The report display name, as assigned by the user. 327 "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). # Output only. Provides details on the state of the report in case of an error. 328 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 329 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 330 { 331 "a_key": "", # Properties of the object. Contains field @type with type URL. 332 }, 333 ], 334 "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. 335 }, 336 "frameEndTime": "A String", # Output only. The point in time when the time frame ends. Notice that the time frame is counted backwards. For instance if the "frame_end_time" value is 2021/01/20 and the time frame is WEEK then the report covers the week between 2021/01/20 and 2021/01/14. 337 "name": "A String", # Output only. The report unique name. 338 "state": "A String", # Output only. Current state of the report. 339 "stateTime": "A String", # Output only. The time the state was last set. 340 "timeFrame": "A String", # Time frame of the report. 341 "vmCount": 42, # Output only. Total number of VMs included in the report. 342 "vms": [ # List of utilization information per VM. When sent as part of the request, the "vm_id" field is used in order to specify which VMs to include in the report. In that case all other fields are ignored. 343 { # Utilization information of a single VM. 344 "utilization": { # Utilization metrics values for a single VM. # Utilization metrics for this VM. 345 "cpuAveragePercent": 42, # Average CPU usage, percent. 346 "cpuMaxPercent": 42, # Max CPU usage, percent. 347 "diskIoRateAverageKbps": "A String", # Average disk IO rate, in kilobytes per second. 348 "diskIoRateMaxKbps": "A String", # Max disk IO rate, in kilobytes per second. 349 "memoryAveragePercent": 42, # Average memory usage, percent. 350 "memoryMaxPercent": 42, # Max memory usage, percent. 351 "networkThroughputAverageKbps": "A String", # Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second. 352 "networkThroughputMaxKbps": "A String", # Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second. 353 }, 354 "vmId": "A String", # The VM's ID in the source. 355 "vmwareVmDetails": { # VmwareVmDetails describes a VM in vCenter. # The description of the VM in a Source of type Vmware. 356 "bootOption": "A String", # Output only. The VM Boot Option. 357 "committedStorageMb": "A String", # The total size of the storage allocated to the VM in MB. 358 "cpuCount": 42, # The number of cpus in the VM. 359 "datacenterDescription": "A String", # The descriptive name of the vCenter's datacenter this VM is contained in. 360 "datacenterId": "A String", # The id of the vCenter's datacenter this VM is contained in. 361 "diskCount": 42, # The number of disks the VM has. 362 "displayName": "A String", # The display name of the VM. Note that this is not necessarily unique. 363 "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. 364 "memoryMb": 42, # The size of the memory of the VM in MB. 365 "powerState": "A String", # The power state of the VM at the moment list was taken. 366 "uuid": "A String", # The unique identifier of the VM in vCenter. 367 "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. 368 }, 369 }, 370 ], 371 }, 372 ], 373}</pre> 374</div> 375 376<div class="method"> 377 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 378 <pre>Retrieves the next page of results. 379 380Args: 381 previous_request: The request for the previous page. (required) 382 previous_response: The response from the request for the previous page. (required) 383 384Returns: 385 A request object that you can call 'execute()' on to request the next 386 page. Returns None if there are no more items in the collection. 387 </pre> 388</div> 389 390</body></html>