get method
Gets details of a single MigratingVm.
Request parameters:
name
- Required. The name of the MigratingVm.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/sources/\[^/\]+/migratingVms/\[^/\]+$
.
view
- Optional. The level of details of the migrating VM.
Possible string values are:
- "MIGRATING_VM_VIEW_UNSPECIFIED" : View is unspecified. The API will fallback to the default value.
- "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.
- "MIGRATING_VM_VIEW_FULL" : Include everything.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a MigratingVm.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<MigratingVm> get(
core.String name, {
core.String? view,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (view != null) 'view': [view],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$name');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return MigratingVm.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}