google-apis-vmmigration_v1 0.65.0 → 0.66.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d829be144d5d23a19b0abfc20a275b31b80810b25d51c581f8d9dd64f5c3517f
4
- data.tar.gz: 37e6b3451950fa9be00a2655e1bbe38958e6009fe3c80354b4021f61618dcc96
3
+ metadata.gz: ec6d56a30b4a2f465b615bd4b5560003a10b3cedf1cac602e50caad41784b563
4
+ data.tar.gz: c405b76a91354d9d97d88acef6263cd6214e6ecc6a3407c25a5e8a909bd3416e
5
5
  SHA512:
6
- metadata.gz: de5f07c64ca680f5faa1a055fdb13d25b42ae99353c7b6016cf689de4b7cdbc60b7a7c02989f2f26d33e3ef6aa8803ea7330ae01fcfa01b513309eb783bb45ba
7
- data.tar.gz: 4913f56ba58d1589a45456852bdf2f332b681b74747b249e48c0bc06c8c3d7e3ec35ab1641e54b9a84b5cb7c004fe34a5b8b8204a05360c2ca9dafb1eba9f235
6
+ metadata.gz: 82b434cd42d526ee8f8045428d142a386a8468e61db09416aa0a71b0fb50f08497c35f01e49e94b87e1a54dac4d9c54f91df2306e5f45cbb8c993fe4efaf65e8
7
+ data.tar.gz: eb202f49b74625b165f7075115135439e001a8f3844f0a158c6725b2489182b29efcaa2fc8b0d29505950537e181913961e279306bc44779c892bd669dc50e24
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-vmmigration_v1
2
2
 
3
+ ### v0.66.0 (2025-08-31)
4
+
5
+ * Regenerated from discovery document revision 20250824
6
+
3
7
  ### v0.65.0 (2025-08-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20250817
@@ -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
@@ -1006,6 +1056,48 @@ module Google
1006
1056
  end
1007
1057
  end
1008
1058
 
1059
+ # Compute Engine disk target details.
1060
+ class ComputeEngineDisk
1061
+ include Google::Apis::Core::Hashable
1062
+
1063
+ # Optional. Target Compute Engine Disk ID. This is the resource ID segment of
1064
+ # the Compute Engine Disk to create. In the resource name compute/v1/projects/`
1065
+ # project`/zones/`zone`/disks/disk1 "disk1" is the resource ID for the disk.
1066
+ # Corresponds to the JSON property `diskId`
1067
+ # @return [String]
1068
+ attr_accessor :disk_id
1069
+
1070
+ # Required. The disk type to use.
1071
+ # Corresponds to the JSON property `diskType`
1072
+ # @return [String]
1073
+ attr_accessor :disk_type
1074
+
1075
+ # Optional. Replication zones of the regional disk. Should be of the form:
1076
+ # projects/`target-project`/locations/`replica-zone` Currently only one replica
1077
+ # zone is supported.
1078
+ # Corresponds to the JSON property `replicaZones`
1079
+ # @return [Array<String>]
1080
+ attr_accessor :replica_zones
1081
+
1082
+ # Required. The Compute Engine zone in which to create the disk. Should be of
1083
+ # the form: projects/`target-project`/locations/`zone`
1084
+ # Corresponds to the JSON property `zone`
1085
+ # @return [String]
1086
+ attr_accessor :zone
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @disk_id = args[:disk_id] if args.key?(:disk_id)
1095
+ @disk_type = args[:disk_type] if args.key?(:disk_type)
1096
+ @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
1097
+ @zone = args[:zone] if args.key?(:zone)
1098
+ end
1099
+ end
1100
+
1009
1101
  # ComputeEngineDisksTargetDefaults is a collection of details for creating
1010
1102
  # Persistent Disks in a target Compute Engine project.
1011
1103
  class ComputeEngineDisksTargetDefaults
@@ -1463,6 +1555,19 @@ module Google
1463
1555
  end
1464
1556
  end
1465
1557
 
1558
+ # CopyingSourceDiskSnapshotStep contains specific step details.
1559
+ class CopyingSourceDiskSnapshotStep
1560
+ include Google::Apis::Core::Hashable
1561
+
1562
+ def initialize(**args)
1563
+ update!(**args)
1564
+ end
1565
+
1566
+ # Update properties of this object
1567
+ def update!(**args)
1568
+ end
1569
+ end
1570
+
1466
1571
  # CreatingImageStep contains specific step details.
1467
1572
  class CreatingImageStep
1468
1573
  include Google::Apis::Core::Hashable
@@ -1476,6 +1581,19 @@ module Google
1476
1581
  end
1477
1582
  end
1478
1583
 
1584
+ # CreatingSourceDiskSnapshotStep contains specific step details.
1585
+ class CreatingSourceDiskSnapshotStep
1586
+ include Google::Apis::Core::Hashable
1587
+
1588
+ def initialize(**args)
1589
+ update!(**args)
1590
+ end
1591
+
1592
+ # Update properties of this object
1593
+ def update!(**args)
1594
+ end
1595
+ end
1596
+
1479
1597
  # CutoverForecast holds information about future CutoverJobs of a MigratingVm.
1480
1598
  class CutoverForecast
1481
1599
  include Google::Apis::Core::Hashable
@@ -1942,6 +2060,151 @@ module Google
1942
2060
  end
1943
2061
  end
1944
2062
 
2063
+ # Describes the disk which will be migrated from the source environment. The
2064
+ # source disk has to be unattached.
2065
+ class DiskMigrationJob
2066
+ include Google::Apis::Core::Hashable
2067
+
2068
+ # Represents the source AWS Disk details.
2069
+ # Corresponds to the JSON property `awsSourceDiskDetails`
2070
+ # @return [Google::Apis::VmmigrationV1::AwsSourceDiskDetails]
2071
+ attr_accessor :aws_source_disk_details
2072
+
2073
+ # Output only. The time the DiskMigrationJob resource was created.
2074
+ # Corresponds to the JSON property `createTime`
2075
+ # @return [String]
2076
+ attr_accessor :create_time
2077
+
2078
+ # Output only. Provides details on the errors that led to the disk migration job'
2079
+ # s state in case of an error.
2080
+ # Corresponds to the JSON property `errors`
2081
+ # @return [Array<Google::Apis::VmmigrationV1::Status>]
2082
+ attr_accessor :errors
2083
+
2084
+ # Output only. Identifier. The identifier of the DiskMigrationJob.
2085
+ # Corresponds to the JSON property `name`
2086
+ # @return [String]
2087
+ attr_accessor :name
2088
+
2089
+ # Output only. State of the DiskMigrationJob.
2090
+ # Corresponds to the JSON property `state`
2091
+ # @return [String]
2092
+ attr_accessor :state
2093
+
2094
+ # Output only. The disk migration steps list representing its progress.
2095
+ # Corresponds to the JSON property `steps`
2096
+ # @return [Array<Google::Apis::VmmigrationV1::DiskMigrationStep>]
2097
+ attr_accessor :steps
2098
+
2099
+ # Details of the target disk in Compute Engine.
2100
+ # Corresponds to the JSON property `targetDetails`
2101
+ # @return [Google::Apis::VmmigrationV1::DiskMigrationJobTargetDetails]
2102
+ attr_accessor :target_details
2103
+
2104
+ # Output only. The last time the DiskMigrationJob resource was updated.
2105
+ # Corresponds to the JSON property `updateTime`
2106
+ # @return [String]
2107
+ attr_accessor :update_time
2108
+
2109
+ def initialize(**args)
2110
+ update!(**args)
2111
+ end
2112
+
2113
+ # Update properties of this object
2114
+ def update!(**args)
2115
+ @aws_source_disk_details = args[:aws_source_disk_details] if args.key?(:aws_source_disk_details)
2116
+ @create_time = args[:create_time] if args.key?(:create_time)
2117
+ @errors = args[:errors] if args.key?(:errors)
2118
+ @name = args[:name] if args.key?(:name)
2119
+ @state = args[:state] if args.key?(:state)
2120
+ @steps = args[:steps] if args.key?(:steps)
2121
+ @target_details = args[:target_details] if args.key?(:target_details)
2122
+ @update_time = args[:update_time] if args.key?(:update_time)
2123
+ end
2124
+ end
2125
+
2126
+ # Details of the target disk in Compute Engine.
2127
+ class DiskMigrationJobTargetDetails
2128
+ include Google::Apis::Core::Hashable
2129
+
2130
+ # Encryption message describes the details of the applied encryption.
2131
+ # Corresponds to the JSON property `encryption`
2132
+ # @return [Google::Apis::VmmigrationV1::Encryption]
2133
+ attr_accessor :encryption
2134
+
2135
+ # Optional. A map of labels to associate with the disk.
2136
+ # Corresponds to the JSON property `labels`
2137
+ # @return [Hash<String,String>]
2138
+ attr_accessor :labels
2139
+
2140
+ # Compute Engine disk target details.
2141
+ # Corresponds to the JSON property `targetDisk`
2142
+ # @return [Google::Apis::VmmigrationV1::ComputeEngineDisk]
2143
+ attr_accessor :target_disk
2144
+
2145
+ # Required. The name of the resource of type TargetProject which represents the
2146
+ # Compute Engine project in which to create the disk. Should be of the form:
2147
+ # projects/`project`/locations/global/targetProjects/`target-project`
2148
+ # Corresponds to the JSON property `targetProject`
2149
+ # @return [String]
2150
+ attr_accessor :target_project
2151
+
2152
+ def initialize(**args)
2153
+ update!(**args)
2154
+ end
2155
+
2156
+ # Update properties of this object
2157
+ def update!(**args)
2158
+ @encryption = args[:encryption] if args.key?(:encryption)
2159
+ @labels = args[:labels] if args.key?(:labels)
2160
+ @target_disk = args[:target_disk] if args.key?(:target_disk)
2161
+ @target_project = args[:target_project] if args.key?(:target_project)
2162
+ end
2163
+ end
2164
+
2165
+ # DiskMigrationStep holds information about the disk migration step progress.
2166
+ class DiskMigrationStep
2167
+ include Google::Apis::Core::Hashable
2168
+
2169
+ # CopyingSourceDiskSnapshotStep contains specific step details.
2170
+ # Corresponds to the JSON property `copyingSourceDiskSnapshot`
2171
+ # @return [Google::Apis::VmmigrationV1::CopyingSourceDiskSnapshotStep]
2172
+ attr_accessor :copying_source_disk_snapshot
2173
+
2174
+ # CreatingSourceDiskSnapshotStep contains specific step details.
2175
+ # Corresponds to the JSON property `creatingSourceDiskSnapshot`
2176
+ # @return [Google::Apis::VmmigrationV1::CreatingSourceDiskSnapshotStep]
2177
+ attr_accessor :creating_source_disk_snapshot
2178
+
2179
+ # Output only. The time the step has ended.
2180
+ # Corresponds to the JSON property `endTime`
2181
+ # @return [String]
2182
+ attr_accessor :end_time
2183
+
2184
+ # ProvisioningTargetDiskStep contains specific step details.
2185
+ # Corresponds to the JSON property `provisioningTargetDisk`
2186
+ # @return [Google::Apis::VmmigrationV1::ProvisioningTargetDiskStep]
2187
+ attr_accessor :provisioning_target_disk
2188
+
2189
+ # Output only. The time the step has started.
2190
+ # Corresponds to the JSON property `startTime`
2191
+ # @return [String]
2192
+ attr_accessor :start_time
2193
+
2194
+ def initialize(**args)
2195
+ update!(**args)
2196
+ end
2197
+
2198
+ # Update properties of this object
2199
+ def update!(**args)
2200
+ @copying_source_disk_snapshot = args[:copying_source_disk_snapshot] if args.key?(:copying_source_disk_snapshot)
2201
+ @creating_source_disk_snapshot = args[:creating_source_disk_snapshot] if args.key?(:creating_source_disk_snapshot)
2202
+ @end_time = args[:end_time] if args.key?(:end_time)
2203
+ @provisioning_target_disk = args[:provisioning_target_disk] if args.key?(:provisioning_target_disk)
2204
+ @start_time = args[:start_time] if args.key?(:start_time)
2205
+ end
2206
+ end
2207
+
1945
2208
  # Details for a disk only migration.
1946
2209
  class DisksMigrationDisksTargetDefaults
1947
2210
  include Google::Apis::Core::Hashable
@@ -2227,6 +2490,39 @@ module Google
2227
2490
  end
2228
2491
  end
2229
2492
 
2493
+ # Response message for fetchStorageInventory.
2494
+ class FetchStorageInventoryResponse
2495
+ include Google::Apis::Core::Hashable
2496
+
2497
+ # Output only. A token, which can be sent as `page_token` to retrieve the next
2498
+ # page. If this field is omitted, there are no subsequent pages.
2499
+ # Corresponds to the JSON property `nextPageToken`
2500
+ # @return [String]
2501
+ attr_accessor :next_page_token
2502
+
2503
+ # The list of storage resources in the source.
2504
+ # Corresponds to the JSON property `resources`
2505
+ # @return [Array<Google::Apis::VmmigrationV1::SourceStorageResource>]
2506
+ attr_accessor :resources
2507
+
2508
+ # Output only. The timestamp when the source was last queried (if the result is
2509
+ # from the cache).
2510
+ # Corresponds to the JSON property `updateTime`
2511
+ # @return [String]
2512
+ attr_accessor :update_time
2513
+
2514
+ def initialize(**args)
2515
+ update!(**args)
2516
+ end
2517
+
2518
+ # Update properties of this object
2519
+ def update!(**args)
2520
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2521
+ @resources = args[:resources] if args.key?(:resources)
2522
+ @update_time = args[:update_time] if args.key?(:update_time)
2523
+ end
2524
+ end
2525
+
2230
2526
  # Request message for 'FinalizeMigration' request.
2231
2527
  class FinalizeMigrationRequest
2232
2528
  include Google::Apis::Core::Hashable
@@ -2682,6 +2978,38 @@ module Google
2682
2978
  end
2683
2979
  end
2684
2980
 
2981
+ # Response message for 'ListDiskMigrationJobs' request.
2982
+ class ListDiskMigrationJobsResponse
2983
+ include Google::Apis::Core::Hashable
2984
+
2985
+ # Output only. The list of the disk migration jobs.
2986
+ # Corresponds to the JSON property `diskMigrationJobs`
2987
+ # @return [Array<Google::Apis::VmmigrationV1::DiskMigrationJob>]
2988
+ attr_accessor :disk_migration_jobs
2989
+
2990
+ # Optional. Output only. A token, which can be sent as `page_token` to retrieve
2991
+ # the next page. If this field is omitted, there are no subsequent pages.
2992
+ # Corresponds to the JSON property `nextPageToken`
2993
+ # @return [String]
2994
+ attr_accessor :next_page_token
2995
+
2996
+ # Output only. Locations that could not be reached.
2997
+ # Corresponds to the JSON property `unreachable`
2998
+ # @return [Array<String>]
2999
+ attr_accessor :unreachable
3000
+
3001
+ def initialize(**args)
3002
+ update!(**args)
3003
+ end
3004
+
3005
+ # Update properties of this object
3006
+ def update!(**args)
3007
+ @disk_migration_jobs = args[:disk_migration_jobs] if args.key?(:disk_migration_jobs)
3008
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3009
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
3010
+ end
3011
+ end
3012
+
2685
3013
  # Response message for 'ListGroups' request.
2686
3014
  class ListGroupsResponse
2687
3015
  include Google::Apis::Core::Hashable
@@ -3827,6 +4155,19 @@ module Google
3827
4155
  end
3828
4156
  end
3829
4157
 
4158
+ # ProvisioningTargetDiskStep contains specific step details.
4159
+ class ProvisioningTargetDiskStep
4160
+ include Google::Apis::Core::Hashable
4161
+
4162
+ def initialize(**args)
4163
+ update!(**args)
4164
+ end
4165
+
4166
+ # Update properties of this object
4167
+ def update!(**args)
4168
+ end
4169
+ end
4170
+
3830
4171
  # Request message for 'RemoveMigration' request.
3831
4172
  class RemoveGroupMigrationRequest
3832
4173
  include Google::Apis::Core::Hashable
@@ -3995,6 +4336,19 @@ module Google
3995
4336
  end
3996
4337
  end
3997
4338
 
4339
+ # Request message for 'RunDiskMigrationJobRequest' request.
4340
+ class RunDiskMigrationJobRequest
4341
+ include Google::Apis::Core::Hashable
4342
+
4343
+ def initialize(**args)
4344
+ update!(**args)
4345
+ end
4346
+
4347
+ # Update properties of this object
4348
+ def update!(**args)
4349
+ end
4350
+ end
4351
+
3998
4352
  # A policy for scheduling replications.
3999
4353
  class SchedulePolicy
4000
4354
  include Google::Apis::Core::Hashable
@@ -4215,6 +4569,25 @@ module Google
4215
4569
  end
4216
4570
  end
4217
4571
 
4572
+ # SourceStorageResource describes a storage resource in the source.
4573
+ class SourceStorageResource
4574
+ include Google::Apis::Core::Hashable
4575
+
4576
+ # Represents the source AWS Disk details.
4577
+ # Corresponds to the JSON property `awsDiskDetails`
4578
+ # @return [Google::Apis::VmmigrationV1::AwsSourceDiskDetails]
4579
+ attr_accessor :aws_disk_details
4580
+
4581
+ def initialize(**args)
4582
+ update!(**args)
4583
+ end
4584
+
4585
+ # Update properties of this object
4586
+ def update!(**args)
4587
+ @aws_disk_details = args[:aws_disk_details] if args.key?(:aws_disk_details)
4588
+ end
4589
+ end
4590
+
4218
4591
  # Request message for 'StartMigrationRequest' request.
4219
4592
  class StartMigrationRequest
4220
4593
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module VmmigrationV1
18
18
  # Version of the google-apis-vmmigration_v1 gem
19
- GEM_VERSION = "0.65.0"
19
+ GEM_VERSION = "0.66.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 = "20250817"
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
 
@@ -814,6 +892,16 @@ module Google
814
892
  end
815
893
  end
816
894
 
895
+ class AwsSourceDiskDetails
896
+ # @private
897
+ class Representation < Google::Apis::Core::JsonRepresentation
898
+ property :disk_type, as: 'diskType'
899
+ property :size_gib, :numeric_string => true, as: 'sizeGib'
900
+ hash :tags, as: 'tags'
901
+ property :volume_id, as: 'volumeId'
902
+ end
903
+ end
904
+
817
905
  class AwsSourceVmDetails
818
906
  # @private
819
907
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -954,6 +1042,12 @@ module Google
954
1042
  end
955
1043
  end
956
1044
 
1045
+ class CancelDiskMigrationJobRequest
1046
+ # @private
1047
+ class Representation < Google::Apis::Core::JsonRepresentation
1048
+ end
1049
+ end
1050
+
957
1051
  class CancelImageImportJobRequest
958
1052
  # @private
959
1053
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1008,6 +1102,16 @@ module Google
1008
1102
  end
1009
1103
  end
1010
1104
 
1105
+ class ComputeEngineDisk
1106
+ # @private
1107
+ class Representation < Google::Apis::Core::JsonRepresentation
1108
+ property :disk_id, as: 'diskId'
1109
+ property :disk_type, as: 'diskType'
1110
+ collection :replica_zones, as: 'replicaZones'
1111
+ property :zone, as: 'zone'
1112
+ end
1113
+ end
1114
+
1011
1115
  class ComputeEngineDisksTargetDefaults
1012
1116
  # @private
1013
1117
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1111,12 +1215,24 @@ module Google
1111
1215
  end
1112
1216
  end
1113
1217
 
1218
+ class CopyingSourceDiskSnapshotStep
1219
+ # @private
1220
+ class Representation < Google::Apis::Core::JsonRepresentation
1221
+ end
1222
+ end
1223
+
1114
1224
  class CreatingImageStep
1115
1225
  # @private
1116
1226
  class Representation < Google::Apis::Core::JsonRepresentation
1117
1227
  end
1118
1228
  end
1119
1229
 
1230
+ class CreatingSourceDiskSnapshotStep
1231
+ # @private
1232
+ class Representation < Google::Apis::Core::JsonRepresentation
1233
+ end
1234
+ end
1235
+
1120
1236
  class CutoverForecast
1121
1237
  # @private
1122
1238
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1241,6 +1357,50 @@ module Google
1241
1357
  end
1242
1358
  end
1243
1359
 
1360
+ class DiskMigrationJob
1361
+ # @private
1362
+ class Representation < Google::Apis::Core::JsonRepresentation
1363
+ property :aws_source_disk_details, as: 'awsSourceDiskDetails', class: Google::Apis::VmmigrationV1::AwsSourceDiskDetails, decorator: Google::Apis::VmmigrationV1::AwsSourceDiskDetails::Representation
1364
+
1365
+ property :create_time, as: 'createTime'
1366
+ collection :errors, as: 'errors', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
1367
+
1368
+ property :name, as: 'name'
1369
+ property :state, as: 'state'
1370
+ collection :steps, as: 'steps', class: Google::Apis::VmmigrationV1::DiskMigrationStep, decorator: Google::Apis::VmmigrationV1::DiskMigrationStep::Representation
1371
+
1372
+ property :target_details, as: 'targetDetails', class: Google::Apis::VmmigrationV1::DiskMigrationJobTargetDetails, decorator: Google::Apis::VmmigrationV1::DiskMigrationJobTargetDetails::Representation
1373
+
1374
+ property :update_time, as: 'updateTime'
1375
+ end
1376
+ end
1377
+
1378
+ class DiskMigrationJobTargetDetails
1379
+ # @private
1380
+ class Representation < Google::Apis::Core::JsonRepresentation
1381
+ property :encryption, as: 'encryption', class: Google::Apis::VmmigrationV1::Encryption, decorator: Google::Apis::VmmigrationV1::Encryption::Representation
1382
+
1383
+ hash :labels, as: 'labels'
1384
+ property :target_disk, as: 'targetDisk', class: Google::Apis::VmmigrationV1::ComputeEngineDisk, decorator: Google::Apis::VmmigrationV1::ComputeEngineDisk::Representation
1385
+
1386
+ property :target_project, as: 'targetProject'
1387
+ end
1388
+ end
1389
+
1390
+ class DiskMigrationStep
1391
+ # @private
1392
+ class Representation < Google::Apis::Core::JsonRepresentation
1393
+ property :copying_source_disk_snapshot, as: 'copyingSourceDiskSnapshot', class: Google::Apis::VmmigrationV1::CopyingSourceDiskSnapshotStep, decorator: Google::Apis::VmmigrationV1::CopyingSourceDiskSnapshotStep::Representation
1394
+
1395
+ property :creating_source_disk_snapshot, as: 'creatingSourceDiskSnapshot', class: Google::Apis::VmmigrationV1::CreatingSourceDiskSnapshotStep, decorator: Google::Apis::VmmigrationV1::CreatingSourceDiskSnapshotStep::Representation
1396
+
1397
+ property :end_time, as: 'endTime'
1398
+ property :provisioning_target_disk, as: 'provisioningTargetDisk', class: Google::Apis::VmmigrationV1::ProvisioningTargetDiskStep, decorator: Google::Apis::VmmigrationV1::ProvisioningTargetDiskStep::Representation
1399
+
1400
+ property :start_time, as: 'startTime'
1401
+ end
1402
+ end
1403
+
1244
1404
  class DisksMigrationDisksTargetDefaults
1245
1405
  # @private
1246
1406
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1328,6 +1488,16 @@ module Google
1328
1488
  end
1329
1489
  end
1330
1490
 
1491
+ class FetchStorageInventoryResponse
1492
+ # @private
1493
+ class Representation < Google::Apis::Core::JsonRepresentation
1494
+ property :next_page_token, as: 'nextPageToken'
1495
+ collection :resources, as: 'resources', class: Google::Apis::VmmigrationV1::SourceStorageResource, decorator: Google::Apis::VmmigrationV1::SourceStorageResource::Representation
1496
+
1497
+ property :update_time, as: 'updateTime'
1498
+ end
1499
+ end
1500
+
1331
1501
  class FinalizeMigrationRequest
1332
1502
  # @private
1333
1503
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1466,6 +1636,16 @@ module Google
1466
1636
  end
1467
1637
  end
1468
1638
 
1639
+ class ListDiskMigrationJobsResponse
1640
+ # @private
1641
+ class Representation < Google::Apis::Core::JsonRepresentation
1642
+ collection :disk_migration_jobs, as: 'diskMigrationJobs', class: Google::Apis::VmmigrationV1::DiskMigrationJob, decorator: Google::Apis::VmmigrationV1::DiskMigrationJob::Representation
1643
+
1644
+ property :next_page_token, as: 'nextPageToken'
1645
+ collection :unreachable, as: 'unreachable'
1646
+ end
1647
+ end
1648
+
1469
1649
  class ListGroupsResponse
1470
1650
  # @private
1471
1651
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1790,6 +1970,12 @@ module Google
1790
1970
  end
1791
1971
  end
1792
1972
 
1973
+ class ProvisioningTargetDiskStep
1974
+ # @private
1975
+ class Representation < Google::Apis::Core::JsonRepresentation
1976
+ end
1977
+ end
1978
+
1793
1979
  class RemoveGroupMigrationRequest
1794
1980
  # @private
1795
1981
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1839,6 +2025,12 @@ module Google
1839
2025
  end
1840
2026
  end
1841
2027
 
2028
+ class RunDiskMigrationJobRequest
2029
+ # @private
2030
+ class Representation < Google::Apis::Core::JsonRepresentation
2031
+ end
2032
+ end
2033
+
1842
2034
  class SchedulePolicy
1843
2035
  # @private
1844
2036
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1904,6 +2096,14 @@ module Google
1904
2096
  end
1905
2097
  end
1906
2098
 
2099
+ class SourceStorageResource
2100
+ # @private
2101
+ class Representation < Google::Apis::Core::JsonRepresentation
2102
+ property :aws_disk_details, as: 'awsDiskDetails', class: Google::Apis::VmmigrationV1::AwsSourceDiskDetails, decorator: Google::Apis::VmmigrationV1::AwsSourceDiskDetails::Representation
2103
+
2104
+ end
2105
+ end
2106
+
1907
2107
  class StartMigrationRequest
1908
2108
  # @private
1909
2109
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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::VmmigrationV1::FetchStorageInventoryResponse] parsed result object
1010
+ # @yieldparam err [StandardError] error object if request failed
1011
+ #
1012
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+source}:fetchStorageInventory', options)
1019
+ command.response_representation = Google::Apis::VmmigrationV1::FetchStorageInventoryResponse::Representation
1020
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::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::VmmigrationV1::Operation] parsed result object
1376
+ # @yieldparam err [StandardError] error object if request failed
1377
+ #
1378
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+name}:cancel', options)
1385
+ command.request_representation = Google::Apis::VmmigrationV1::CancelDiskMigrationJobRequest::Representation
1386
+ command.request_object = cancel_disk_migration_job_request_object
1387
+ command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation
1388
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::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::VmmigrationV1::Operation] parsed result object
1424
+ # @yieldparam err [StandardError] error object if request failed
1425
+ #
1426
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+parent}/diskMigrationJobs', options)
1433
+ command.request_representation = Google::Apis::VmmigrationV1::DiskMigrationJob::Representation
1434
+ command.request_object = disk_migration_job_object
1435
+ command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation
1436
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::Operation] parsed result object
1458
+ # @yieldparam err [StandardError] error object if request failed
1459
+ #
1460
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+name}', options)
1467
+ command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation
1468
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::DiskMigrationJob] parsed result object
1488
+ # @yieldparam err [StandardError] error object if request failed
1489
+ #
1490
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+name}', options)
1497
+ command.response_representation = Google::Apis::VmmigrationV1::DiskMigrationJob::Representation
1498
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::ListDiskMigrationJobsResponse] parsed result object
1532
+ # @yieldparam err [StandardError] error object if request failed
1533
+ #
1534
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+parent}/diskMigrationJobs', options)
1541
+ command.response_representation = Google::Apis::VmmigrationV1::ListDiskMigrationJobsResponse::Representation
1542
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::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::VmmigrationV1::Operation] parsed result object
1585
+ # @yieldparam err [StandardError] error object if request failed
1586
+ #
1587
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+name}', options)
1594
+ command.request_representation = Google::Apis::VmmigrationV1::DiskMigrationJob::Representation
1595
+ command.request_object = disk_migration_job_object
1596
+ command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation
1597
+ command.response_class = Google::Apis::VmmigrationV1::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::VmmigrationV1::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::VmmigrationV1::Operation] parsed result object
1620
+ # @yieldparam err [StandardError] error object if request failed
1621
+ #
1622
+ # @return [Google::Apis::VmmigrationV1::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, 'v1/{+name}:run', options)
1629
+ command.request_representation = Google::Apis::VmmigrationV1::RunDiskMigrationJobRequest::Representation
1630
+ command.request_object = run_disk_migration_job_request_object
1631
+ command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation
1632
+ command.response_class = Google::Apis::VmmigrationV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.66.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_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1/v0.65.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1/v0.66.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-vmmigration_v1
62
62
  rdoc_options: []
63
63
  require_paths: