google-apis-vmmigration_v1alpha1 0.60.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/vmmigration_v1alpha1/classes.rb +373 -0
- data/lib/google/apis/vmmigration_v1alpha1/gem_version.rb +2 -2
- data/lib/google/apis/vmmigration_v1alpha1/representations.rb +200 -0
- data/lib/google/apis/vmmigration_v1alpha1/service.rb +330 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d6cf289f53338b859948f3d66577de76d6d2f671c03c824effbfc23eccc26bb
|
4
|
+
data.tar.gz: e8c06d68de416b9e9ffcd16de43528179e45b698e0200bdf07a2bb478ccc2721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c85bb6c116d7a3151081fc98b0ea7b125ce20d4bee69ecaffe16add0be819ecc3cbaf8fb476bcf1a6e46fa145d2db531d309b6db83790484159b559d8642881
|
7
|
+
data.tar.gz: ae8478c50f38750cf8b28e2763655d693f2c8da667a8437211b8cf7f3616937a79e371bfb18940bcf7ae39aec9882b4a81de86dfe0e79201f4db908ad02a464e
|
data/CHANGELOG.md
CHANGED
@@ -300,6 +300,43 @@ module Google
|
|
300
300
|
end
|
301
301
|
end
|
302
302
|
|
303
|
+
# Represents the source AWS Disk details.
|
304
|
+
class AwsSourceDiskDetails
|
305
|
+
include Google::Apis::Core::Hashable
|
306
|
+
|
307
|
+
# Optional. Output only. Disk type.
|
308
|
+
# Corresponds to the JSON property `diskType`
|
309
|
+
# @return [String]
|
310
|
+
attr_accessor :disk_type
|
311
|
+
|
312
|
+
# Output only. Size in GiB.
|
313
|
+
# Corresponds to the JSON property `sizeGib`
|
314
|
+
# @return [Fixnum]
|
315
|
+
attr_accessor :size_gib
|
316
|
+
|
317
|
+
# Optional. Output only. A map of AWS volume tags.
|
318
|
+
# Corresponds to the JSON property `tags`
|
319
|
+
# @return [Hash<String,String>]
|
320
|
+
attr_accessor :tags
|
321
|
+
|
322
|
+
# Required. AWS volume ID.
|
323
|
+
# Corresponds to the JSON property `volumeId`
|
324
|
+
# @return [String]
|
325
|
+
attr_accessor :volume_id
|
326
|
+
|
327
|
+
def initialize(**args)
|
328
|
+
update!(**args)
|
329
|
+
end
|
330
|
+
|
331
|
+
# Update properties of this object
|
332
|
+
def update!(**args)
|
333
|
+
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
334
|
+
@size_gib = args[:size_gib] if args.key?(:size_gib)
|
335
|
+
@tags = args[:tags] if args.key?(:tags)
|
336
|
+
@volume_id = args[:volume_id] if args.key?(:volume_id)
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
303
340
|
# Represent the source AWS VM details.
|
304
341
|
class AwsSourceVmDetails
|
305
342
|
include Google::Apis::Core::Hashable
|
@@ -823,6 +860,19 @@ module Google
|
|
823
860
|
end
|
824
861
|
end
|
825
862
|
|
863
|
+
# Request message for 'CancelDiskMigrationJob' request.
|
864
|
+
class CancelDiskMigrationJobRequest
|
865
|
+
include Google::Apis::Core::Hashable
|
866
|
+
|
867
|
+
def initialize(**args)
|
868
|
+
update!(**args)
|
869
|
+
end
|
870
|
+
|
871
|
+
# Update properties of this object
|
872
|
+
def update!(**args)
|
873
|
+
end
|
874
|
+
end
|
875
|
+
|
826
876
|
# Request message for 'CancelImageImportJob' request.
|
827
877
|
class CancelImageImportJobRequest
|
828
878
|
include Google::Apis::Core::Hashable
|
@@ -1020,6 +1070,48 @@ module Google
|
|
1020
1070
|
end
|
1021
1071
|
end
|
1022
1072
|
|
1073
|
+
# Compute Engine disk target details.
|
1074
|
+
class ComputeEngineDisk
|
1075
|
+
include Google::Apis::Core::Hashable
|
1076
|
+
|
1077
|
+
# Optional. Target Compute Engine Disk ID. This is the resource ID segment of
|
1078
|
+
# the Compute Engine Disk to create. In the resource name compute/v1/projects/`
|
1079
|
+
# project`/zones/`zone`/disks/disk1 "disk1" is the resource ID for the disk.
|
1080
|
+
# Corresponds to the JSON property `diskId`
|
1081
|
+
# @return [String]
|
1082
|
+
attr_accessor :disk_id
|
1083
|
+
|
1084
|
+
# Required. The disk type to use.
|
1085
|
+
# Corresponds to the JSON property `diskType`
|
1086
|
+
# @return [String]
|
1087
|
+
attr_accessor :disk_type
|
1088
|
+
|
1089
|
+
# Optional. Replication zones of the regional disk. Should be of the form:
|
1090
|
+
# projects/`target-project`/locations/`replica-zone` Currently only one replica
|
1091
|
+
# zone is supported.
|
1092
|
+
# Corresponds to the JSON property `replicaZones`
|
1093
|
+
# @return [Array<String>]
|
1094
|
+
attr_accessor :replica_zones
|
1095
|
+
|
1096
|
+
# Required. The Compute Engine zone in which to create the disk. Should be of
|
1097
|
+
# the form: projects/`target-project`/locations/`zone`
|
1098
|
+
# Corresponds to the JSON property `zone`
|
1099
|
+
# @return [String]
|
1100
|
+
attr_accessor :zone
|
1101
|
+
|
1102
|
+
def initialize(**args)
|
1103
|
+
update!(**args)
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# Update properties of this object
|
1107
|
+
def update!(**args)
|
1108
|
+
@disk_id = args[:disk_id] if args.key?(:disk_id)
|
1109
|
+
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
1110
|
+
@replica_zones = args[:replica_zones] if args.key?(:replica_zones)
|
1111
|
+
@zone = args[:zone] if args.key?(:zone)
|
1112
|
+
end
|
1113
|
+
end
|
1114
|
+
|
1023
1115
|
# ComputeEngineDisksTargetDefaults is a collection of details for creating
|
1024
1116
|
# Persistent Disks in a target Compute Engine project.
|
1025
1117
|
class ComputeEngineDisksTargetDefaults
|
@@ -1484,6 +1576,19 @@ module Google
|
|
1484
1576
|
end
|
1485
1577
|
end
|
1486
1578
|
|
1579
|
+
# CopyingSourceDiskSnapshotStep contains specific step details.
|
1580
|
+
class CopyingSourceDiskSnapshotStep
|
1581
|
+
include Google::Apis::Core::Hashable
|
1582
|
+
|
1583
|
+
def initialize(**args)
|
1584
|
+
update!(**args)
|
1585
|
+
end
|
1586
|
+
|
1587
|
+
# Update properties of this object
|
1588
|
+
def update!(**args)
|
1589
|
+
end
|
1590
|
+
end
|
1591
|
+
|
1487
1592
|
# CreatingImageStep contains specific step details.
|
1488
1593
|
class CreatingImageStep
|
1489
1594
|
include Google::Apis::Core::Hashable
|
@@ -1497,6 +1602,19 @@ module Google
|
|
1497
1602
|
end
|
1498
1603
|
end
|
1499
1604
|
|
1605
|
+
# CreatingSourceDiskSnapshotStep contains specific step details.
|
1606
|
+
class CreatingSourceDiskSnapshotStep
|
1607
|
+
include Google::Apis::Core::Hashable
|
1608
|
+
|
1609
|
+
def initialize(**args)
|
1610
|
+
update!(**args)
|
1611
|
+
end
|
1612
|
+
|
1613
|
+
# Update properties of this object
|
1614
|
+
def update!(**args)
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
|
1500
1618
|
# CutoverForecast holds information about future CutoverJobs of a MigratingVm.
|
1501
1619
|
class CutoverForecast
|
1502
1620
|
include Google::Apis::Core::Hashable
|
@@ -1983,6 +2101,151 @@ module Google
|
|
1983
2101
|
end
|
1984
2102
|
end
|
1985
2103
|
|
2104
|
+
# Describes the disk which will be migrated from the source environment. The
|
2105
|
+
# source disk has to be unattached.
|
2106
|
+
class DiskMigrationJob
|
2107
|
+
include Google::Apis::Core::Hashable
|
2108
|
+
|
2109
|
+
# Represents the source AWS Disk details.
|
2110
|
+
# Corresponds to the JSON property `awsSourceDiskDetails`
|
2111
|
+
# @return [Google::Apis::VmmigrationV1alpha1::AwsSourceDiskDetails]
|
2112
|
+
attr_accessor :aws_source_disk_details
|
2113
|
+
|
2114
|
+
# Output only. The time the DiskMigrationJob resource was created.
|
2115
|
+
# Corresponds to the JSON property `createTime`
|
2116
|
+
# @return [String]
|
2117
|
+
attr_accessor :create_time
|
2118
|
+
|
2119
|
+
# Output only. Provides details on the errors that led to the disk migration job'
|
2120
|
+
# s state in case of an error.
|
2121
|
+
# Corresponds to the JSON property `errors`
|
2122
|
+
# @return [Array<Google::Apis::VmmigrationV1alpha1::Status>]
|
2123
|
+
attr_accessor :errors
|
2124
|
+
|
2125
|
+
# Output only. Identifier. The identifier of the DiskMigrationJob.
|
2126
|
+
# Corresponds to the JSON property `name`
|
2127
|
+
# @return [String]
|
2128
|
+
attr_accessor :name
|
2129
|
+
|
2130
|
+
# Output only. State of the DiskMigrationJob.
|
2131
|
+
# Corresponds to the JSON property `state`
|
2132
|
+
# @return [String]
|
2133
|
+
attr_accessor :state
|
2134
|
+
|
2135
|
+
# Output only. The disk migration steps list representing its progress.
|
2136
|
+
# Corresponds to the JSON property `steps`
|
2137
|
+
# @return [Array<Google::Apis::VmmigrationV1alpha1::DiskMigrationStep>]
|
2138
|
+
attr_accessor :steps
|
2139
|
+
|
2140
|
+
# Details of the target disk in Compute Engine.
|
2141
|
+
# Corresponds to the JSON property `targetDetails`
|
2142
|
+
# @return [Google::Apis::VmmigrationV1alpha1::DiskMigrationJobTargetDetails]
|
2143
|
+
attr_accessor :target_details
|
2144
|
+
|
2145
|
+
# Output only. The last time the DiskMigrationJob resource was updated.
|
2146
|
+
# Corresponds to the JSON property `updateTime`
|
2147
|
+
# @return [String]
|
2148
|
+
attr_accessor :update_time
|
2149
|
+
|
2150
|
+
def initialize(**args)
|
2151
|
+
update!(**args)
|
2152
|
+
end
|
2153
|
+
|
2154
|
+
# Update properties of this object
|
2155
|
+
def update!(**args)
|
2156
|
+
@aws_source_disk_details = args[:aws_source_disk_details] if args.key?(:aws_source_disk_details)
|
2157
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2158
|
+
@errors = args[:errors] if args.key?(:errors)
|
2159
|
+
@name = args[:name] if args.key?(:name)
|
2160
|
+
@state = args[:state] if args.key?(:state)
|
2161
|
+
@steps = args[:steps] if args.key?(:steps)
|
2162
|
+
@target_details = args[:target_details] if args.key?(:target_details)
|
2163
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2164
|
+
end
|
2165
|
+
end
|
2166
|
+
|
2167
|
+
# Details of the target disk in Compute Engine.
|
2168
|
+
class DiskMigrationJobTargetDetails
|
2169
|
+
include Google::Apis::Core::Hashable
|
2170
|
+
|
2171
|
+
# Encryption message describes the details of the applied encryption.
|
2172
|
+
# Corresponds to the JSON property `encryption`
|
2173
|
+
# @return [Google::Apis::VmmigrationV1alpha1::Encryption]
|
2174
|
+
attr_accessor :encryption
|
2175
|
+
|
2176
|
+
# Optional. A map of labels to associate with the disk.
|
2177
|
+
# Corresponds to the JSON property `labels`
|
2178
|
+
# @return [Hash<String,String>]
|
2179
|
+
attr_accessor :labels
|
2180
|
+
|
2181
|
+
# Compute Engine disk target details.
|
2182
|
+
# Corresponds to the JSON property `targetDisk`
|
2183
|
+
# @return [Google::Apis::VmmigrationV1alpha1::ComputeEngineDisk]
|
2184
|
+
attr_accessor :target_disk
|
2185
|
+
|
2186
|
+
# Required. The name of the resource of type TargetProject which represents the
|
2187
|
+
# Compute Engine project in which to create the disk. Should be of the form:
|
2188
|
+
# projects/`project`/locations/global/targetProjects/`target-project`
|
2189
|
+
# Corresponds to the JSON property `targetProject`
|
2190
|
+
# @return [String]
|
2191
|
+
attr_accessor :target_project
|
2192
|
+
|
2193
|
+
def initialize(**args)
|
2194
|
+
update!(**args)
|
2195
|
+
end
|
2196
|
+
|
2197
|
+
# Update properties of this object
|
2198
|
+
def update!(**args)
|
2199
|
+
@encryption = args[:encryption] if args.key?(:encryption)
|
2200
|
+
@labels = args[:labels] if args.key?(:labels)
|
2201
|
+
@target_disk = args[:target_disk] if args.key?(:target_disk)
|
2202
|
+
@target_project = args[:target_project] if args.key?(:target_project)
|
2203
|
+
end
|
2204
|
+
end
|
2205
|
+
|
2206
|
+
# DiskMigrationStep holds information about the disk migration step progress.
|
2207
|
+
class DiskMigrationStep
|
2208
|
+
include Google::Apis::Core::Hashable
|
2209
|
+
|
2210
|
+
# CopyingSourceDiskSnapshotStep contains specific step details.
|
2211
|
+
# Corresponds to the JSON property `copyingSourceDiskSnapshot`
|
2212
|
+
# @return [Google::Apis::VmmigrationV1alpha1::CopyingSourceDiskSnapshotStep]
|
2213
|
+
attr_accessor :copying_source_disk_snapshot
|
2214
|
+
|
2215
|
+
# CreatingSourceDiskSnapshotStep contains specific step details.
|
2216
|
+
# Corresponds to the JSON property `creatingSourceDiskSnapshot`
|
2217
|
+
# @return [Google::Apis::VmmigrationV1alpha1::CreatingSourceDiskSnapshotStep]
|
2218
|
+
attr_accessor :creating_source_disk_snapshot
|
2219
|
+
|
2220
|
+
# Output only. The time the step has ended.
|
2221
|
+
# Corresponds to the JSON property `endTime`
|
2222
|
+
# @return [String]
|
2223
|
+
attr_accessor :end_time
|
2224
|
+
|
2225
|
+
# ProvisioningTargetDiskStep contains specific step details.
|
2226
|
+
# Corresponds to the JSON property `provisioningTargetDisk`
|
2227
|
+
# @return [Google::Apis::VmmigrationV1alpha1::ProvisioningTargetDiskStep]
|
2228
|
+
attr_accessor :provisioning_target_disk
|
2229
|
+
|
2230
|
+
# Output only. The time the step has started.
|
2231
|
+
# Corresponds to the JSON property `startTime`
|
2232
|
+
# @return [String]
|
2233
|
+
attr_accessor :start_time
|
2234
|
+
|
2235
|
+
def initialize(**args)
|
2236
|
+
update!(**args)
|
2237
|
+
end
|
2238
|
+
|
2239
|
+
# Update properties of this object
|
2240
|
+
def update!(**args)
|
2241
|
+
@copying_source_disk_snapshot = args[:copying_source_disk_snapshot] if args.key?(:copying_source_disk_snapshot)
|
2242
|
+
@creating_source_disk_snapshot = args[:creating_source_disk_snapshot] if args.key?(:creating_source_disk_snapshot)
|
2243
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
2244
|
+
@provisioning_target_disk = args[:provisioning_target_disk] if args.key?(:provisioning_target_disk)
|
2245
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
2246
|
+
end
|
2247
|
+
end
|
2248
|
+
|
1986
2249
|
# Details for a disk only migration.
|
1987
2250
|
class DisksMigrationDisksTargetDefaults
|
1988
2251
|
include Google::Apis::Core::Hashable
|
@@ -2268,6 +2531,39 @@ module Google
|
|
2268
2531
|
end
|
2269
2532
|
end
|
2270
2533
|
|
2534
|
+
# Response message for fetchStorageInventory.
|
2535
|
+
class FetchStorageInventoryResponse
|
2536
|
+
include Google::Apis::Core::Hashable
|
2537
|
+
|
2538
|
+
# Output only. A token, which can be sent as `page_token` to retrieve the next
|
2539
|
+
# page. If this field is omitted, there are no subsequent pages.
|
2540
|
+
# Corresponds to the JSON property `nextPageToken`
|
2541
|
+
# @return [String]
|
2542
|
+
attr_accessor :next_page_token
|
2543
|
+
|
2544
|
+
# The list of storage resources in the source.
|
2545
|
+
# Corresponds to the JSON property `resources`
|
2546
|
+
# @return [Array<Google::Apis::VmmigrationV1alpha1::SourceStorageResource>]
|
2547
|
+
attr_accessor :resources
|
2548
|
+
|
2549
|
+
# Output only. The timestamp when the source was last queried (if the result is
|
2550
|
+
# from the cache).
|
2551
|
+
# Corresponds to the JSON property `updateTime`
|
2552
|
+
# @return [String]
|
2553
|
+
attr_accessor :update_time
|
2554
|
+
|
2555
|
+
def initialize(**args)
|
2556
|
+
update!(**args)
|
2557
|
+
end
|
2558
|
+
|
2559
|
+
# Update properties of this object
|
2560
|
+
def update!(**args)
|
2561
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2562
|
+
@resources = args[:resources] if args.key?(:resources)
|
2563
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
2564
|
+
end
|
2565
|
+
end
|
2566
|
+
|
2271
2567
|
# Request message for 'FinalizeMigration' request.
|
2272
2568
|
class FinalizeMigrationRequest
|
2273
2569
|
include Google::Apis::Core::Hashable
|
@@ -2723,6 +3019,38 @@ module Google
|
|
2723
3019
|
end
|
2724
3020
|
end
|
2725
3021
|
|
3022
|
+
# Response message for 'ListDiskMigrationJobs' request.
|
3023
|
+
class ListDiskMigrationJobsResponse
|
3024
|
+
include Google::Apis::Core::Hashable
|
3025
|
+
|
3026
|
+
# Output only. The list of the disk migration jobs.
|
3027
|
+
# Corresponds to the JSON property `diskMigrationJobs`
|
3028
|
+
# @return [Array<Google::Apis::VmmigrationV1alpha1::DiskMigrationJob>]
|
3029
|
+
attr_accessor :disk_migration_jobs
|
3030
|
+
|
3031
|
+
# Optional. Output only. A token, which can be sent as `page_token` to retrieve
|
3032
|
+
# the next page. If this field is omitted, there are no subsequent pages.
|
3033
|
+
# Corresponds to the JSON property `nextPageToken`
|
3034
|
+
# @return [String]
|
3035
|
+
attr_accessor :next_page_token
|
3036
|
+
|
3037
|
+
# Output only. Locations that could not be reached.
|
3038
|
+
# Corresponds to the JSON property `unreachable`
|
3039
|
+
# @return [Array<String>]
|
3040
|
+
attr_accessor :unreachable
|
3041
|
+
|
3042
|
+
def initialize(**args)
|
3043
|
+
update!(**args)
|
3044
|
+
end
|
3045
|
+
|
3046
|
+
# Update properties of this object
|
3047
|
+
def update!(**args)
|
3048
|
+
@disk_migration_jobs = args[:disk_migration_jobs] if args.key?(:disk_migration_jobs)
|
3049
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3050
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
3051
|
+
end
|
3052
|
+
end
|
3053
|
+
|
2726
3054
|
# Response message for 'ListGroups' request.
|
2727
3055
|
class ListGroupsResponse
|
2728
3056
|
include Google::Apis::Core::Hashable
|
@@ -3882,6 +4210,19 @@ module Google
|
|
3882
4210
|
end
|
3883
4211
|
end
|
3884
4212
|
|
4213
|
+
# ProvisioningTargetDiskStep contains specific step details.
|
4214
|
+
class ProvisioningTargetDiskStep
|
4215
|
+
include Google::Apis::Core::Hashable
|
4216
|
+
|
4217
|
+
def initialize(**args)
|
4218
|
+
update!(**args)
|
4219
|
+
end
|
4220
|
+
|
4221
|
+
# Update properties of this object
|
4222
|
+
def update!(**args)
|
4223
|
+
end
|
4224
|
+
end
|
4225
|
+
|
3885
4226
|
# Request message for 'RemoveMigration' request.
|
3886
4227
|
class RemoveGroupMigrationRequest
|
3887
4228
|
include Google::Apis::Core::Hashable
|
@@ -4056,6 +4397,19 @@ module Google
|
|
4056
4397
|
end
|
4057
4398
|
end
|
4058
4399
|
|
4400
|
+
# Request message for 'RunDiskMigrationJobRequest' request.
|
4401
|
+
class RunDiskMigrationJobRequest
|
4402
|
+
include Google::Apis::Core::Hashable
|
4403
|
+
|
4404
|
+
def initialize(**args)
|
4405
|
+
update!(**args)
|
4406
|
+
end
|
4407
|
+
|
4408
|
+
# Update properties of this object
|
4409
|
+
def update!(**args)
|
4410
|
+
end
|
4411
|
+
end
|
4412
|
+
|
4059
4413
|
# A policy for scheduling replications.
|
4060
4414
|
class SchedulePolicy
|
4061
4415
|
include Google::Apis::Core::Hashable
|
@@ -4287,6 +4641,25 @@ module Google
|
|
4287
4641
|
end
|
4288
4642
|
end
|
4289
4643
|
|
4644
|
+
# SourceStorageResource describes a storage resource in the source.
|
4645
|
+
class SourceStorageResource
|
4646
|
+
include Google::Apis::Core::Hashable
|
4647
|
+
|
4648
|
+
# Represents the source AWS Disk details.
|
4649
|
+
# Corresponds to the JSON property `awsDiskDetails`
|
4650
|
+
# @return [Google::Apis::VmmigrationV1alpha1::AwsSourceDiskDetails]
|
4651
|
+
attr_accessor :aws_disk_details
|
4652
|
+
|
4653
|
+
def initialize(**args)
|
4654
|
+
update!(**args)
|
4655
|
+
end
|
4656
|
+
|
4657
|
+
# Update properties of this object
|
4658
|
+
def update!(**args)
|
4659
|
+
@aws_disk_details = args[:aws_disk_details] if args.key?(:aws_disk_details)
|
4660
|
+
end
|
4661
|
+
end
|
4662
|
+
|
4290
4663
|
# Request message for 'StartMigrationRequest' request.
|
4291
4664
|
class StartMigrationRequest
|
4292
4665
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module VmmigrationV1alpha1
|
18
18
|
# Version of the google-apis-vmmigration_v1alpha1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.61.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250824"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,12 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class AwsSourceDiskDetails
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
79
85
|
class AwsSourceVmDetails
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
@@ -142,6 +148,12 @@ module Google
|
|
142
148
|
include Google::Apis::Core::JsonObjectSupport
|
143
149
|
end
|
144
150
|
|
151
|
+
class CancelDiskMigrationJobRequest
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
145
157
|
class CancelImageImportJobRequest
|
146
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
159
|
|
@@ -172,6 +184,12 @@ module Google
|
|
172
184
|
include Google::Apis::Core::JsonObjectSupport
|
173
185
|
end
|
174
186
|
|
187
|
+
class ComputeEngineDisk
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
175
193
|
class ComputeEngineDisksTargetDefaults
|
176
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
195
|
|
@@ -202,12 +220,24 @@ module Google
|
|
202
220
|
include Google::Apis::Core::JsonObjectSupport
|
203
221
|
end
|
204
222
|
|
223
|
+
class CopyingSourceDiskSnapshotStep
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
205
229
|
class CreatingImageStep
|
206
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
231
|
|
208
232
|
include Google::Apis::Core::JsonObjectSupport
|
209
233
|
end
|
210
234
|
|
235
|
+
class CreatingSourceDiskSnapshotStep
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
211
241
|
class CutoverForecast
|
212
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
243
|
|
@@ -262,6 +292,24 @@ module Google
|
|
262
292
|
include Google::Apis::Core::JsonObjectSupport
|
263
293
|
end
|
264
294
|
|
295
|
+
class DiskMigrationJob
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
301
|
+
class DiskMigrationJobTargetDetails
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
+
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
305
|
+
end
|
306
|
+
|
307
|
+
class DiskMigrationStep
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
265
313
|
class DisksMigrationDisksTargetDefaults
|
266
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
315
|
|
@@ -316,6 +364,12 @@ module Google
|
|
316
364
|
include Google::Apis::Core::JsonObjectSupport
|
317
365
|
end
|
318
366
|
|
367
|
+
class FetchStorageInventoryResponse
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
319
373
|
class FinalizeMigrationRequest
|
320
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
375
|
|
@@ -394,6 +448,12 @@ module Google
|
|
394
448
|
include Google::Apis::Core::JsonObjectSupport
|
395
449
|
end
|
396
450
|
|
451
|
+
class ListDiskMigrationJobsResponse
|
452
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
|
+
|
454
|
+
include Google::Apis::Core::JsonObjectSupport
|
455
|
+
end
|
456
|
+
|
397
457
|
class ListGroupsResponse
|
398
458
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
459
|
|
@@ -562,6 +622,12 @@ module Google
|
|
562
622
|
include Google::Apis::Core::JsonObjectSupport
|
563
623
|
end
|
564
624
|
|
625
|
+
class ProvisioningTargetDiskStep
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
627
|
+
|
628
|
+
include Google::Apis::Core::JsonObjectSupport
|
629
|
+
end
|
630
|
+
|
565
631
|
class RemoveGroupMigrationRequest
|
566
632
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
633
|
|
@@ -592,6 +658,12 @@ module Google
|
|
592
658
|
include Google::Apis::Core::JsonObjectSupport
|
593
659
|
end
|
594
660
|
|
661
|
+
class RunDiskMigrationJobRequest
|
662
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
663
|
+
|
664
|
+
include Google::Apis::Core::JsonObjectSupport
|
665
|
+
end
|
666
|
+
|
595
667
|
class SchedulePolicy
|
596
668
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
669
|
|
@@ -634,6 +706,12 @@ module Google
|
|
634
706
|
include Google::Apis::Core::JsonObjectSupport
|
635
707
|
end
|
636
708
|
|
709
|
+
class SourceStorageResource
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
637
715
|
class StartMigrationRequest
|
638
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
639
717
|
|
@@ -820,6 +898,16 @@ module Google
|
|
820
898
|
end
|
821
899
|
end
|
822
900
|
|
901
|
+
class AwsSourceDiskDetails
|
902
|
+
# @private
|
903
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
904
|
+
property :disk_type, as: 'diskType'
|
905
|
+
property :size_gib, :numeric_string => true, as: 'sizeGib'
|
906
|
+
hash :tags, as: 'tags'
|
907
|
+
property :volume_id, as: 'volumeId'
|
908
|
+
end
|
909
|
+
end
|
910
|
+
|
823
911
|
class AwsSourceVmDetails
|
824
912
|
# @private
|
825
913
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -960,6 +1048,12 @@ module Google
|
|
960
1048
|
end
|
961
1049
|
end
|
962
1050
|
|
1051
|
+
class CancelDiskMigrationJobRequest
|
1052
|
+
# @private
|
1053
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1054
|
+
end
|
1055
|
+
end
|
1056
|
+
|
963
1057
|
class CancelImageImportJobRequest
|
964
1058
|
# @private
|
965
1059
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1018,6 +1112,16 @@ module Google
|
|
1018
1112
|
end
|
1019
1113
|
end
|
1020
1114
|
|
1115
|
+
class ComputeEngineDisk
|
1116
|
+
# @private
|
1117
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1118
|
+
property :disk_id, as: 'diskId'
|
1119
|
+
property :disk_type, as: 'diskType'
|
1120
|
+
collection :replica_zones, as: 'replicaZones'
|
1121
|
+
property :zone, as: 'zone'
|
1122
|
+
end
|
1123
|
+
end
|
1124
|
+
|
1021
1125
|
class ComputeEngineDisksTargetDefaults
|
1022
1126
|
# @private
|
1023
1127
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1122,12 +1226,24 @@ module Google
|
|
1122
1226
|
end
|
1123
1227
|
end
|
1124
1228
|
|
1229
|
+
class CopyingSourceDiskSnapshotStep
|
1230
|
+
# @private
|
1231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1232
|
+
end
|
1233
|
+
end
|
1234
|
+
|
1125
1235
|
class CreatingImageStep
|
1126
1236
|
# @private
|
1127
1237
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1128
1238
|
end
|
1129
1239
|
end
|
1130
1240
|
|
1241
|
+
class CreatingSourceDiskSnapshotStep
|
1242
|
+
# @private
|
1243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1244
|
+
end
|
1245
|
+
end
|
1246
|
+
|
1131
1247
|
class CutoverForecast
|
1132
1248
|
# @private
|
1133
1249
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1257,6 +1373,50 @@ module Google
|
|
1257
1373
|
end
|
1258
1374
|
end
|
1259
1375
|
|
1376
|
+
class DiskMigrationJob
|
1377
|
+
# @private
|
1378
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1379
|
+
property :aws_source_disk_details, as: 'awsSourceDiskDetails', class: Google::Apis::VmmigrationV1alpha1::AwsSourceDiskDetails, decorator: Google::Apis::VmmigrationV1alpha1::AwsSourceDiskDetails::Representation
|
1380
|
+
|
1381
|
+
property :create_time, as: 'createTime'
|
1382
|
+
collection :errors, as: 'errors', class: Google::Apis::VmmigrationV1alpha1::Status, decorator: Google::Apis::VmmigrationV1alpha1::Status::Representation
|
1383
|
+
|
1384
|
+
property :name, as: 'name'
|
1385
|
+
property :state, as: 'state'
|
1386
|
+
collection :steps, as: 'steps', class: Google::Apis::VmmigrationV1alpha1::DiskMigrationStep, decorator: Google::Apis::VmmigrationV1alpha1::DiskMigrationStep::Representation
|
1387
|
+
|
1388
|
+
property :target_details, as: 'targetDetails', class: Google::Apis::VmmigrationV1alpha1::DiskMigrationJobTargetDetails, decorator: Google::Apis::VmmigrationV1alpha1::DiskMigrationJobTargetDetails::Representation
|
1389
|
+
|
1390
|
+
property :update_time, as: 'updateTime'
|
1391
|
+
end
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
class DiskMigrationJobTargetDetails
|
1395
|
+
# @private
|
1396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1397
|
+
property :encryption, as: 'encryption', class: Google::Apis::VmmigrationV1alpha1::Encryption, decorator: Google::Apis::VmmigrationV1alpha1::Encryption::Representation
|
1398
|
+
|
1399
|
+
hash :labels, as: 'labels'
|
1400
|
+
property :target_disk, as: 'targetDisk', class: Google::Apis::VmmigrationV1alpha1::ComputeEngineDisk, decorator: Google::Apis::VmmigrationV1alpha1::ComputeEngineDisk::Representation
|
1401
|
+
|
1402
|
+
property :target_project, as: 'targetProject'
|
1403
|
+
end
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
class DiskMigrationStep
|
1407
|
+
# @private
|
1408
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1409
|
+
property :copying_source_disk_snapshot, as: 'copyingSourceDiskSnapshot', class: Google::Apis::VmmigrationV1alpha1::CopyingSourceDiskSnapshotStep, decorator: Google::Apis::VmmigrationV1alpha1::CopyingSourceDiskSnapshotStep::Representation
|
1410
|
+
|
1411
|
+
property :creating_source_disk_snapshot, as: 'creatingSourceDiskSnapshot', class: Google::Apis::VmmigrationV1alpha1::CreatingSourceDiskSnapshotStep, decorator: Google::Apis::VmmigrationV1alpha1::CreatingSourceDiskSnapshotStep::Representation
|
1412
|
+
|
1413
|
+
property :end_time, as: 'endTime'
|
1414
|
+
property :provisioning_target_disk, as: 'provisioningTargetDisk', class: Google::Apis::VmmigrationV1alpha1::ProvisioningTargetDiskStep, decorator: Google::Apis::VmmigrationV1alpha1::ProvisioningTargetDiskStep::Representation
|
1415
|
+
|
1416
|
+
property :start_time, as: 'startTime'
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
|
1260
1420
|
class DisksMigrationDisksTargetDefaults
|
1261
1421
|
# @private
|
1262
1422
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1344,6 +1504,16 @@ module Google
|
|
1344
1504
|
end
|
1345
1505
|
end
|
1346
1506
|
|
1507
|
+
class FetchStorageInventoryResponse
|
1508
|
+
# @private
|
1509
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1510
|
+
property :next_page_token, as: 'nextPageToken'
|
1511
|
+
collection :resources, as: 'resources', class: Google::Apis::VmmigrationV1alpha1::SourceStorageResource, decorator: Google::Apis::VmmigrationV1alpha1::SourceStorageResource::Representation
|
1512
|
+
|
1513
|
+
property :update_time, as: 'updateTime'
|
1514
|
+
end
|
1515
|
+
end
|
1516
|
+
|
1347
1517
|
class FinalizeMigrationRequest
|
1348
1518
|
# @private
|
1349
1519
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1482,6 +1652,16 @@ module Google
|
|
1482
1652
|
end
|
1483
1653
|
end
|
1484
1654
|
|
1655
|
+
class ListDiskMigrationJobsResponse
|
1656
|
+
# @private
|
1657
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1658
|
+
collection :disk_migration_jobs, as: 'diskMigrationJobs', class: Google::Apis::VmmigrationV1alpha1::DiskMigrationJob, decorator: Google::Apis::VmmigrationV1alpha1::DiskMigrationJob::Representation
|
1659
|
+
|
1660
|
+
property :next_page_token, as: 'nextPageToken'
|
1661
|
+
collection :unreachable, as: 'unreachable'
|
1662
|
+
end
|
1663
|
+
end
|
1664
|
+
|
1485
1665
|
class ListGroupsResponse
|
1486
1666
|
# @private
|
1487
1667
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1810,6 +1990,12 @@ module Google
|
|
1810
1990
|
end
|
1811
1991
|
end
|
1812
1992
|
|
1993
|
+
class ProvisioningTargetDiskStep
|
1994
|
+
# @private
|
1995
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1996
|
+
end
|
1997
|
+
end
|
1998
|
+
|
1813
1999
|
class RemoveGroupMigrationRequest
|
1814
2000
|
# @private
|
1815
2001
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1860,6 +2046,12 @@ module Google
|
|
1860
2046
|
end
|
1861
2047
|
end
|
1862
2048
|
|
2049
|
+
class RunDiskMigrationJobRequest
|
2050
|
+
# @private
|
2051
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2052
|
+
end
|
2053
|
+
end
|
2054
|
+
|
1863
2055
|
class SchedulePolicy
|
1864
2056
|
# @private
|
1865
2057
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1927,6 +2119,14 @@ module Google
|
|
1927
2119
|
end
|
1928
2120
|
end
|
1929
2121
|
|
2122
|
+
class SourceStorageResource
|
2123
|
+
# @private
|
2124
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2125
|
+
property :aws_disk_details, as: 'awsDiskDetails', class: Google::Apis::VmmigrationV1alpha1::AwsSourceDiskDetails, decorator: Google::Apis::VmmigrationV1alpha1::AwsSourceDiskDetails::Representation
|
2126
|
+
|
2127
|
+
end
|
2128
|
+
end
|
2129
|
+
|
1930
2130
|
class StartMigrationRequest
|
1931
2131
|
# @private
|
1932
2132
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -85,8 +85,8 @@ module Google
|
|
85
85
|
# @param [String] name
|
86
86
|
# The resource that owns the locations collection, if applicable.
|
87
87
|
# @param [Array<String>, String] extra_location_types
|
88
|
-
# Optional.
|
89
|
-
#
|
88
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
89
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
90
90
|
# @param [String] filter
|
91
91
|
# A filter to narrow down results to a preferred subset. The filtering language
|
92
92
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -977,6 +977,57 @@ module Google
|
|
977
977
|
execute_or_queue_command(command, &block)
|
978
978
|
end
|
979
979
|
|
980
|
+
# List remote source's inventory of storage resources. The remote source is
|
981
|
+
# another cloud vendor (e.g. AWS, Azure). The inventory describes the list of
|
982
|
+
# existing storage resources in that source. Note that this operation lists the
|
983
|
+
# resources on the remote source, as opposed to listing the MigratingVms
|
984
|
+
# resources in the vmmigration service.
|
985
|
+
# @param [String] source
|
986
|
+
# Required. The name of the Source.
|
987
|
+
# @param [Boolean] force_refresh
|
988
|
+
# Optional. If this flag is set to true, the source will be queried instead of
|
989
|
+
# using cached results. Using this flag will make the call slower.
|
990
|
+
# @param [Fixnum] page_size
|
991
|
+
# Optional. The maximum number of VMs to return. The service may return fewer
|
992
|
+
# than this value.
|
993
|
+
# @param [String] page_token
|
994
|
+
# Optional. A page token, received from a previous `FetchStorageInventory` call.
|
995
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
996
|
+
# parameters provided to `FetchStorageInventory` must match the call that
|
997
|
+
# provided the page token.
|
998
|
+
# @param [String] type
|
999
|
+
# Required. The type of the storage inventory to fetch.
|
1000
|
+
# @param [String] fields
|
1001
|
+
# Selector specifying which fields to include in a partial response.
|
1002
|
+
# @param [String] quota_user
|
1003
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1004
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1005
|
+
# @param [Google::Apis::RequestOptions] options
|
1006
|
+
# Request-specific options
|
1007
|
+
#
|
1008
|
+
# @yield [result, err] Result & error if block supplied
|
1009
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::FetchStorageInventoryResponse] parsed result object
|
1010
|
+
# @yieldparam err [StandardError] error object if request failed
|
1011
|
+
#
|
1012
|
+
# @return [Google::Apis::VmmigrationV1alpha1::FetchStorageInventoryResponse]
|
1013
|
+
#
|
1014
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1015
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1016
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1017
|
+
def fetch_project_location_source_storage_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1018
|
+
command = make_simple_command(:get, 'v1alpha1/{+source}:fetchStorageInventory', options)
|
1019
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::FetchStorageInventoryResponse::Representation
|
1020
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::FetchStorageInventoryResponse
|
1021
|
+
command.params['source'] = source unless source.nil?
|
1022
|
+
command.query['forceRefresh'] = force_refresh unless force_refresh.nil?
|
1023
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1024
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1025
|
+
command.query['type'] = type unless type.nil?
|
1026
|
+
command.query['fields'] = fields unless fields.nil?
|
1027
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1028
|
+
execute_or_queue_command(command, &block)
|
1029
|
+
end
|
1030
|
+
|
980
1031
|
# Gets details of a single Source.
|
981
1032
|
# @param [String] name
|
982
1033
|
# Required. The Source name.
|
@@ -1308,6 +1359,283 @@ module Google
|
|
1308
1359
|
execute_or_queue_command(command, &block)
|
1309
1360
|
end
|
1310
1361
|
|
1362
|
+
# Cancels the disk migration job.
|
1363
|
+
# @param [String] name
|
1364
|
+
# Required. The name of the DiskMigrationJob.
|
1365
|
+
# @param [Google::Apis::VmmigrationV1alpha1::CancelDiskMigrationJobRequest] cancel_disk_migration_job_request_object
|
1366
|
+
# @param [String] fields
|
1367
|
+
# Selector specifying which fields to include in a partial response.
|
1368
|
+
# @param [String] quota_user
|
1369
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1370
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1371
|
+
# @param [Google::Apis::RequestOptions] options
|
1372
|
+
# Request-specific options
|
1373
|
+
#
|
1374
|
+
# @yield [result, err] Result & error if block supplied
|
1375
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::Operation] parsed result object
|
1376
|
+
# @yieldparam err [StandardError] error object if request failed
|
1377
|
+
#
|
1378
|
+
# @return [Google::Apis::VmmigrationV1alpha1::Operation]
|
1379
|
+
#
|
1380
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1381
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1382
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1383
|
+
def cancel_disk_migration_job(name, cancel_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1384
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
|
1385
|
+
command.request_representation = Google::Apis::VmmigrationV1alpha1::CancelDiskMigrationJobRequest::Representation
|
1386
|
+
command.request_object = cancel_disk_migration_job_request_object
|
1387
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation
|
1388
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::Operation
|
1389
|
+
command.params['name'] = name unless name.nil?
|
1390
|
+
command.query['fields'] = fields unless fields.nil?
|
1391
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1392
|
+
execute_or_queue_command(command, &block)
|
1393
|
+
end
|
1394
|
+
|
1395
|
+
# Creates a new disk migration job in a given Source.
|
1396
|
+
# @param [String] parent
|
1397
|
+
# Required. The DiskMigrationJob's parent.
|
1398
|
+
# @param [Google::Apis::VmmigrationV1alpha1::DiskMigrationJob] disk_migration_job_object
|
1399
|
+
# @param [String] disk_migration_job_id
|
1400
|
+
# Required. The DiskMigrationJob identifier. The maximum length of this value is
|
1401
|
+
# 63 characters. Valid characters are lower case Latin letters, digits and
|
1402
|
+
# hyphen. It must start with a Latin letter and must not end with a hyphen.
|
1403
|
+
# @param [String] request_id
|
1404
|
+
# Optional. A request ID to identify requests. Specify a unique request ID so
|
1405
|
+
# that if you must retry your request, the server will know to ignore the
|
1406
|
+
# request if it has already been completed. The server will guarantee that for
|
1407
|
+
# at least 60 minutes since the first request. For example, consider a situation
|
1408
|
+
# where you make an initial request and the request timed out. If you make the
|
1409
|
+
# request again with the same request ID, the server can check if original
|
1410
|
+
# operation with the same request ID was received, and if so, will ignore the
|
1411
|
+
# second request. This prevents clients from accidentally creating duplicate
|
1412
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1413
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1414
|
+
# @param [String] fields
|
1415
|
+
# Selector specifying which fields to include in a partial response.
|
1416
|
+
# @param [String] quota_user
|
1417
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1418
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1419
|
+
# @param [Google::Apis::RequestOptions] options
|
1420
|
+
# Request-specific options
|
1421
|
+
#
|
1422
|
+
# @yield [result, err] Result & error if block supplied
|
1423
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::Operation] parsed result object
|
1424
|
+
# @yieldparam err [StandardError] error object if request failed
|
1425
|
+
#
|
1426
|
+
# @return [Google::Apis::VmmigrationV1alpha1::Operation]
|
1427
|
+
#
|
1428
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1429
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1430
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1431
|
+
def create_project_location_source_disk_migration_job(parent, disk_migration_job_object = nil, disk_migration_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1432
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/diskMigrationJobs', options)
|
1433
|
+
command.request_representation = Google::Apis::VmmigrationV1alpha1::DiskMigrationJob::Representation
|
1434
|
+
command.request_object = disk_migration_job_object
|
1435
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation
|
1436
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::Operation
|
1437
|
+
command.params['parent'] = parent unless parent.nil?
|
1438
|
+
command.query['diskMigrationJobId'] = disk_migration_job_id unless disk_migration_job_id.nil?
|
1439
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1440
|
+
command.query['fields'] = fields unless fields.nil?
|
1441
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1442
|
+
execute_or_queue_command(command, &block)
|
1443
|
+
end
|
1444
|
+
|
1445
|
+
# Deletes a single DiskMigrationJob.
|
1446
|
+
# @param [String] name
|
1447
|
+
# Required. The name of the DiskMigrationJob.
|
1448
|
+
# @param [String] fields
|
1449
|
+
# Selector specifying which fields to include in a partial response.
|
1450
|
+
# @param [String] quota_user
|
1451
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1452
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1453
|
+
# @param [Google::Apis::RequestOptions] options
|
1454
|
+
# Request-specific options
|
1455
|
+
#
|
1456
|
+
# @yield [result, err] Result & error if block supplied
|
1457
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::Operation] parsed result object
|
1458
|
+
# @yieldparam err [StandardError] error object if request failed
|
1459
|
+
#
|
1460
|
+
# @return [Google::Apis::VmmigrationV1alpha1::Operation]
|
1461
|
+
#
|
1462
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1463
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1464
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1465
|
+
def delete_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1466
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
1467
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation
|
1468
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::Operation
|
1469
|
+
command.params['name'] = name unless name.nil?
|
1470
|
+
command.query['fields'] = fields unless fields.nil?
|
1471
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1472
|
+
execute_or_queue_command(command, &block)
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
# Gets details of a single DiskMigrationJob.
|
1476
|
+
# @param [String] name
|
1477
|
+
# Required. The name of the DiskMigrationJob.
|
1478
|
+
# @param [String] fields
|
1479
|
+
# Selector specifying which fields to include in a partial response.
|
1480
|
+
# @param [String] quota_user
|
1481
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1482
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1483
|
+
# @param [Google::Apis::RequestOptions] options
|
1484
|
+
# Request-specific options
|
1485
|
+
#
|
1486
|
+
# @yield [result, err] Result & error if block supplied
|
1487
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::DiskMigrationJob] parsed result object
|
1488
|
+
# @yieldparam err [StandardError] error object if request failed
|
1489
|
+
#
|
1490
|
+
# @return [Google::Apis::VmmigrationV1alpha1::DiskMigrationJob]
|
1491
|
+
#
|
1492
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1493
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1494
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1495
|
+
def get_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1496
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
1497
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::DiskMigrationJob::Representation
|
1498
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::DiskMigrationJob
|
1499
|
+
command.params['name'] = name unless name.nil?
|
1500
|
+
command.query['fields'] = fields unless fields.nil?
|
1501
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1502
|
+
execute_or_queue_command(command, &block)
|
1503
|
+
end
|
1504
|
+
|
1505
|
+
# Lists DiskMigrationJobs in a given Source.
|
1506
|
+
# @param [String] parent
|
1507
|
+
# Required. The parent, which owns this collection of DiskMigrationJobs.
|
1508
|
+
# @param [String] filter
|
1509
|
+
# Optional. The filter request (according to AIP-160).
|
1510
|
+
# @param [String] order_by
|
1511
|
+
# Optional. Ordering of the result list.
|
1512
|
+
# @param [Fixnum] page_size
|
1513
|
+
# Optional. The maximum number of disk migration jobs to return. The service may
|
1514
|
+
# return fewer than this value. If unspecified, at most 500 disk migration jobs
|
1515
|
+
# will be returned. The maximum value is 1000; values above 1000 will be coerced
|
1516
|
+
# to 1000.
|
1517
|
+
# @param [String] page_token
|
1518
|
+
# Optional. A page token, received from a previous `ListDiskMigrationJobs` call.
|
1519
|
+
# Provide this to retrieve the subsequent page. When paginating, all parameters
|
1520
|
+
# provided to `ListDiskMigrationJobs` except `page_size` must match the call
|
1521
|
+
# that provided the page token.
|
1522
|
+
# @param [String] fields
|
1523
|
+
# Selector specifying which fields to include in a partial response.
|
1524
|
+
# @param [String] quota_user
|
1525
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1526
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1527
|
+
# @param [Google::Apis::RequestOptions] options
|
1528
|
+
# Request-specific options
|
1529
|
+
#
|
1530
|
+
# @yield [result, err] Result & error if block supplied
|
1531
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::ListDiskMigrationJobsResponse] parsed result object
|
1532
|
+
# @yieldparam err [StandardError] error object if request failed
|
1533
|
+
#
|
1534
|
+
# @return [Google::Apis::VmmigrationV1alpha1::ListDiskMigrationJobsResponse]
|
1535
|
+
#
|
1536
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1537
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1538
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1539
|
+
def list_project_location_source_disk_migration_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1540
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/diskMigrationJobs', options)
|
1541
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::ListDiskMigrationJobsResponse::Representation
|
1542
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::ListDiskMigrationJobsResponse
|
1543
|
+
command.params['parent'] = parent unless parent.nil?
|
1544
|
+
command.query['filter'] = filter unless filter.nil?
|
1545
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1546
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1547
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1548
|
+
command.query['fields'] = fields unless fields.nil?
|
1549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1550
|
+
execute_or_queue_command(command, &block)
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
# Updates the parameters of a single DiskMigrationJob.
|
1554
|
+
# @param [String] name
|
1555
|
+
# Output only. Identifier. The identifier of the DiskMigrationJob.
|
1556
|
+
# @param [Google::Apis::VmmigrationV1alpha1::DiskMigrationJob] disk_migration_job_object
|
1557
|
+
# @param [String] request_id
|
1558
|
+
# Optional. A request ID to identify requests. Specify a unique request ID so
|
1559
|
+
# that if you must retry your request, the server will know to ignore the
|
1560
|
+
# request if it has already been completed. The server will guarantee that for
|
1561
|
+
# at least 60 minutes since the first request. For example, consider a situation
|
1562
|
+
# where you make an initial request and the request timed out. If you make the
|
1563
|
+
# request again with the same request ID, the server can check if original
|
1564
|
+
# operation with the same request ID was received, and if so, will ignore the
|
1565
|
+
# second request. This prevents clients from accidentally creating duplicate
|
1566
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
1567
|
+
# UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1568
|
+
# @param [String] update_mask
|
1569
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1570
|
+
# DiskMigrationJob resource by the update. The fields specified in the
|
1571
|
+
# update_mask are relative to the resource, not the full request. A field will
|
1572
|
+
# be overwritten if it is in the mask. If the user does not provide a mask, then
|
1573
|
+
# a mask equivalent to all fields that are populated (have a non-empty value),
|
1574
|
+
# will be implied.
|
1575
|
+
# @param [String] fields
|
1576
|
+
# Selector specifying which fields to include in a partial response.
|
1577
|
+
# @param [String] quota_user
|
1578
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1579
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1580
|
+
# @param [Google::Apis::RequestOptions] options
|
1581
|
+
# Request-specific options
|
1582
|
+
#
|
1583
|
+
# @yield [result, err] Result & error if block supplied
|
1584
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::Operation] parsed result object
|
1585
|
+
# @yieldparam err [StandardError] error object if request failed
|
1586
|
+
#
|
1587
|
+
# @return [Google::Apis::VmmigrationV1alpha1::Operation]
|
1588
|
+
#
|
1589
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1590
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1591
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1592
|
+
def patch_project_location_source_disk_migration_job(name, disk_migration_job_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1593
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
1594
|
+
command.request_representation = Google::Apis::VmmigrationV1alpha1::DiskMigrationJob::Representation
|
1595
|
+
command.request_object = disk_migration_job_object
|
1596
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation
|
1597
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::Operation
|
1598
|
+
command.params['name'] = name unless name.nil?
|
1599
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1600
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1601
|
+
command.query['fields'] = fields unless fields.nil?
|
1602
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1603
|
+
execute_or_queue_command(command, &block)
|
1604
|
+
end
|
1605
|
+
|
1606
|
+
# Runs the disk migration job.
|
1607
|
+
# @param [String] name
|
1608
|
+
# Required. The name of the DiskMigrationJob.
|
1609
|
+
# @param [Google::Apis::VmmigrationV1alpha1::RunDiskMigrationJobRequest] run_disk_migration_job_request_object
|
1610
|
+
# @param [String] fields
|
1611
|
+
# Selector specifying which fields to include in a partial response.
|
1612
|
+
# @param [String] quota_user
|
1613
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1614
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1615
|
+
# @param [Google::Apis::RequestOptions] options
|
1616
|
+
# Request-specific options
|
1617
|
+
#
|
1618
|
+
# @yield [result, err] Result & error if block supplied
|
1619
|
+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::Operation] parsed result object
|
1620
|
+
# @yieldparam err [StandardError] error object if request failed
|
1621
|
+
#
|
1622
|
+
# @return [Google::Apis::VmmigrationV1alpha1::Operation]
|
1623
|
+
#
|
1624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1627
|
+
def run_disk_migration_job(name, run_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1628
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:run', options)
|
1629
|
+
command.request_representation = Google::Apis::VmmigrationV1alpha1::RunDiskMigrationJobRequest::Representation
|
1630
|
+
command.request_object = run_disk_migration_job_request_object
|
1631
|
+
command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation
|
1632
|
+
command.response_class = Google::Apis::VmmigrationV1alpha1::Operation
|
1633
|
+
command.params['name'] = name unless name.nil?
|
1634
|
+
command.query['fields'] = fields unless fields.nil?
|
1635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1636
|
+
execute_or_queue_command(command, &block)
|
1637
|
+
end
|
1638
|
+
|
1311
1639
|
# Creates a new MigratingVm in a given Source.
|
1312
1640
|
# @param [String] parent
|
1313
1641
|
# Required. The MigratingVm's parent.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-vmmigration_v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.61.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vmmigration_v1alpha1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1alpha1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1alpha1/v0.61.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vmmigration_v1alpha1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|