Skip to content

Commit de73fe2

Browse files
feat: Automated regeneration of vmmigration v1alpha1 client (googleapis#23299)
Auto-created at 2025-06-01 10:25:17 +0000 using the toys pull request generator.
1 parent 442d06a commit de73fe2

File tree

6 files changed

+129
-3
lines changed

6 files changed

+129
-3
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366781,6 +366781,11 @@
366781366781
"/vmmigration:v1alpha1/Empty": empty
366782366782
"/vmmigration:v1alpha1/Encryption": encryption
366783366783
"/vmmigration:v1alpha1/Encryption/kmsKey": kms_key
366784+
"/vmmigration:v1alpha1/Expiration": expiration
366785+
"/vmmigration:v1alpha1/Expiration/expireTime": expire_time
366786+
"/vmmigration:v1alpha1/Expiration/extendable": extendable
366787+
"/vmmigration:v1alpha1/Expiration/extensionCount": extension_count
366788+
"/vmmigration:v1alpha1/ExtendMigrationRequest": extend_migration_request
366784366789
"/vmmigration:v1alpha1/FetchInventoryResponse": fetch_inventory_response
366785366790
"/vmmigration:v1alpha1/FetchInventoryResponse/awsVms": aws_vms
366786366791
"/vmmigration:v1alpha1/FetchInventoryResponse/azureVms": azure_vms
@@ -366956,6 +366961,7 @@
366956366961
"/vmmigration:v1alpha1/MigratingVm/description": description
366957366962
"/vmmigration:v1alpha1/MigratingVm/displayName": display_name
366958366963
"/vmmigration:v1alpha1/MigratingVm/error": error
366964+
"/vmmigration:v1alpha1/MigratingVm/expiration": expiration
366959366965
"/vmmigration:v1alpha1/MigratingVm/group": group
366960366966
"/vmmigration:v1alpha1/MigratingVm/labels": labels
366961366967
"/vmmigration:v1alpha1/MigratingVm/labels/label": label
@@ -367360,6 +367366,8 @@
367360367366
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list/parent": parent
367361367367
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.delete": delete_project_location_source_migrating_vm
367362367368
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.delete/name": name
367369+
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.extendMigration": extend_migrating_vm_migration
367370+
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.extendMigration/migratingVm": migrating_vm
367363367371
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.finalizeMigration": finalize_migrating_vm_migration
367364367372
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.finalizeMigration/migratingVm": migrating_vm
367365367373
"/vmmigration:v1alpha1/vmmigration.projects.locations.sources.migratingVms.get": get_project_location_source_migrating_vm

generated/google-apis-vmmigration_v1alpha1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-vmmigration_v1alpha1
22

3+
### v0.56.0 (2025-06-01)
4+
5+
* Regenerated from discovery document revision 20250521
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.55.0 (2025-05-04)
49

510
* Regenerated using generator version 0.17.0

generated/google-apis-vmmigration_v1alpha1/lib/google/apis/vmmigration_v1alpha1/classes.rb

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,51 @@ def update!(**args)
21472147
end
21482148
end
21492149

2150+
# Expiration holds information about the expiration of a MigratingVm.
2151+
class Expiration
2152+
include Google::Apis::Core::Hashable
2153+
2154+
# Output only. Timestamp of when this resource is considered expired.
2155+
# Corresponds to the JSON property `expireTime`
2156+
# @return [String]
2157+
attr_accessor :expire_time
2158+
2159+
# Output only. Describes whether the expiration can be extended.
2160+
# Corresponds to the JSON property `extendable`
2161+
# @return [Boolean]
2162+
attr_accessor :extendable
2163+
alias_method :extendable?, :extendable
2164+
2165+
# Output only. The number of times expiration was extended.
2166+
# Corresponds to the JSON property `extensionCount`
2167+
# @return [Fixnum]
2168+
attr_accessor :extension_count
2169+
2170+
def initialize(**args)
2171+
update!(**args)
2172+
end
2173+
2174+
# Update properties of this object
2175+
def update!(**args)
2176+
@expire_time = args[:expire_time] if args.key?(:expire_time)
2177+
@extendable = args[:extendable] if args.key?(:extendable)
2178+
@extension_count = args[:extension_count] if args.key?(:extension_count)
2179+
end
2180+
end
2181+
2182+
# Request message for 'ExtendMigrationRequest' request.
2183+
class ExtendMigrationRequest
2184+
include Google::Apis::Core::Hashable
2185+
2186+
def initialize(**args)
2187+
update!(**args)
2188+
end
2189+
2190+
# Update properties of this object
2191+
def update!(**args)
2192+
end
2193+
end
2194+
21502195
# Response message for fetchInventory.
21512196
class FetchInventoryResponse
21522197
include Google::Apis::Core::Hashable
@@ -3240,6 +3285,11 @@ class MigratingVm
32403285
# @return [Google::Apis::VmmigrationV1alpha1::Status]
32413286
attr_accessor :error
32423287

3288+
# Expiration holds information about the expiration of a MigratingVm.
3289+
# Corresponds to the JSON property `expiration`
3290+
# @return [Google::Apis::VmmigrationV1alpha1::Expiration]
3291+
attr_accessor :expiration
3292+
32433293
# Output only. The group this migrating vm is included in, if any. The group is
32443294
# represented by the full path of the appropriate Group resource.
32453295
# Corresponds to the JSON property `group`
@@ -3338,6 +3388,7 @@ def update!(**args)
33383388
@description = args[:description] if args.key?(:description)
33393389
@display_name = args[:display_name] if args.key?(:display_name)
33403390
@error = args[:error] if args.key?(:error)
3391+
@expiration = args[:expiration] if args.key?(:expiration)
33413392
@group = args[:group] if args.key?(:group)
33423393
@labels = args[:labels] if args.key?(:labels)
33433394
@last_replication_cycle = args[:last_replication_cycle] if args.key?(:last_replication_cycle)

generated/google-apis-vmmigration_v1alpha1/lib/google/apis/vmmigration_v1alpha1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module VmmigrationV1alpha1
1818
# Version of the google-apis-vmmigration_v1alpha1 gem
19-
GEM_VERSION = "0.55.0"
19+
GEM_VERSION = "0.56.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250321"
25+
REVISION = "20250521"
2626
end
2727
end
2828
end

generated/google-apis-vmmigration_v1alpha1/lib/google/apis/vmmigration_v1alpha1/representations.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
298298
include Google::Apis::Core::JsonObjectSupport
299299
end
300300

301+
class Expiration
302+
class Representation < Google::Apis::Core::JsonRepresentation; end
303+
304+
include Google::Apis::Core::JsonObjectSupport
305+
end
306+
307+
class ExtendMigrationRequest
308+
class Representation < Google::Apis::Core::JsonRepresentation; end
309+
310+
include Google::Apis::Core::JsonObjectSupport
311+
end
312+
301313
class FetchInventoryResponse
302314
class Representation < Google::Apis::Core::JsonRepresentation; end
303315

@@ -1300,6 +1312,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
13001312
end
13011313
end
13021314

1315+
class Expiration
1316+
# @private
1317+
class Representation < Google::Apis::Core::JsonRepresentation
1318+
property :expire_time, as: 'expireTime'
1319+
property :extendable, as: 'extendable'
1320+
property :extension_count, as: 'extensionCount'
1321+
end
1322+
end
1323+
1324+
class ExtendMigrationRequest
1325+
# @private
1326+
class Representation < Google::Apis::Core::JsonRepresentation
1327+
end
1328+
end
1329+
13031330
class FetchInventoryResponse
13041331
# @private
13051332
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1631,6 +1658,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
16311658
property :display_name, as: 'displayName'
16321659
property :error, as: 'error', class: Google::Apis::VmmigrationV1alpha1::Status, decorator: Google::Apis::VmmigrationV1alpha1::Status::Representation
16331660

1661+
property :expiration, as: 'expiration', class: Google::Apis::VmmigrationV1alpha1::Expiration, decorator: Google::Apis::VmmigrationV1alpha1::Expiration::Representation
1662+
16341663
property :group, as: 'group'
16351664
hash :labels, as: 'labels'
16361665
property :last_replication_cycle, as: 'lastReplicationCycle', class: Google::Apis::VmmigrationV1alpha1::ReplicationCycle, decorator: Google::Apis::VmmigrationV1alpha1::ReplicationCycle::Representation

generated/google-apis-vmmigration_v1alpha1/lib/google/apis/vmmigration_v1alpha1/service.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,39 @@ def delete_project_location_source_migrating_vm(name, fields: nil, quota_user: n
13861386
execute_or_queue_command(command, &block)
13871387
end
13881388

1389+
# Extend the migrating VM time to live.
1390+
# @param [String] migrating_vm
1391+
# Required. The name of the MigratingVm.
1392+
# @param [Google::Apis::VmmigrationV1alpha1::ExtendMigrationRequest] extend_migration_request_object
1393+
# @param [String] fields
1394+
# Selector specifying which fields to include in a partial response.
1395+
# @param [String] quota_user
1396+
# Available to use for quota purposes for server-side applications. Can be any
1397+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1398+
# @param [Google::Apis::RequestOptions] options
1399+
# Request-specific options
1400+
#
1401+
# @yield [result, err] Result & error if block supplied
1402+
# @yieldparam result [Google::Apis::VmmigrationV1alpha1::Operation] parsed result object
1403+
# @yieldparam err [StandardError] error object if request failed
1404+
#
1405+
# @return [Google::Apis::VmmigrationV1alpha1::Operation]
1406+
#
1407+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1408+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1409+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1410+
def extend_migrating_vm_migration(migrating_vm, extend_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1411+
command = make_simple_command(:post, 'v1alpha1/{+migratingVm}:extendMigration', options)
1412+
command.request_representation = Google::Apis::VmmigrationV1alpha1::ExtendMigrationRequest::Representation
1413+
command.request_object = extend_migration_request_object
1414+
command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation
1415+
command.response_class = Google::Apis::VmmigrationV1alpha1::Operation
1416+
command.params['migratingVm'] = migrating_vm unless migrating_vm.nil?
1417+
command.query['fields'] = fields unless fields.nil?
1418+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1419+
execute_or_queue_command(command, &block)
1420+
end
1421+
13891422
# Marks a migration as completed, deleting migration resources that are no
13901423
# longer being used. Only applicable after cutover is done.
13911424
# @param [String] migrating_vm

0 commit comments

Comments
 (0)