Skip to content

Commit 044918f

Browse files
feat: Automated regeneration of vmmigration v1 client (googleapis#23284)
Auto-created at 2025-06-01 09:52:27 +0000 using the toys pull request generator.
1 parent 19afee4 commit 044918f

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
@@ -365600,6 +365600,11 @@
365600365600
"/vmmigration:v1/Empty": empty
365601365601
"/vmmigration:v1/Encryption": encryption
365602365602
"/vmmigration:v1/Encryption/kmsKey": kms_key
365603+
"/vmmigration:v1/Expiration": expiration
365604+
"/vmmigration:v1/Expiration/expireTime": expire_time
365605+
"/vmmigration:v1/Expiration/extendable": extendable
365606+
"/vmmigration:v1/Expiration/extensionCount": extension_count
365607+
"/vmmigration:v1/ExtendMigrationRequest": extend_migration_request
365603365608
"/vmmigration:v1/FetchInventoryResponse": fetch_inventory_response
365604365609
"/vmmigration:v1/FetchInventoryResponse/awsVms": aws_vms
365605365610
"/vmmigration:v1/FetchInventoryResponse/azureVms": azure_vms
@@ -365775,6 +365780,7 @@
365775365780
"/vmmigration:v1/MigratingVm/description": description
365776365781
"/vmmigration:v1/MigratingVm/displayName": display_name
365777365782
"/vmmigration:v1/MigratingVm/error": error
365783+
"/vmmigration:v1/MigratingVm/expiration": expiration
365778365784
"/vmmigration:v1/MigratingVm/group": group
365779365785
"/vmmigration:v1/MigratingVm/labels": labels
365780365786
"/vmmigration:v1/MigratingVm/labels/label": label
@@ -366166,6 +366172,8 @@
366166366172
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list/parent": parent
366167366173
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.delete": delete_project_location_source_migrating_vm
366168366174
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.delete/name": name
366175+
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.extendMigration": extend_migrating_vm_migration
366176+
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.extendMigration/migratingVm": migrating_vm
366169366177
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.finalizeMigration": finalize_migrating_vm_migration
366170366178
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.finalizeMigration/migratingVm": migrating_vm
366171366179
"/vmmigration:v1/vmmigration.projects.locations.sources.migratingVms.get": get_project_location_source_migrating_vm

generated/google-apis-vmmigration_v1/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_v1
22

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

510
* Regenerated using generator version 0.17.0

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,51 @@ def update!(**args)
21062106
end
21072107
end
21082108

2109+
# Expiration holds information about the expiration of a MigratingVm.
2110+
class Expiration
2111+
include Google::Apis::Core::Hashable
2112+
2113+
# Output only. Timestamp of when this resource is considered expired.
2114+
# Corresponds to the JSON property `expireTime`
2115+
# @return [String]
2116+
attr_accessor :expire_time
2117+
2118+
# Output only. Describes whether the expiration can be extended.
2119+
# Corresponds to the JSON property `extendable`
2120+
# @return [Boolean]
2121+
attr_accessor :extendable
2122+
alias_method :extendable?, :extendable
2123+
2124+
# Output only. The number of times expiration was extended.
2125+
# Corresponds to the JSON property `extensionCount`
2126+
# @return [Fixnum]
2127+
attr_accessor :extension_count
2128+
2129+
def initialize(**args)
2130+
update!(**args)
2131+
end
2132+
2133+
# Update properties of this object
2134+
def update!(**args)
2135+
@expire_time = args[:expire_time] if args.key?(:expire_time)
2136+
@extendable = args[:extendable] if args.key?(:extendable)
2137+
@extension_count = args[:extension_count] if args.key?(:extension_count)
2138+
end
2139+
end
2140+
2141+
# Request message for 'ExtendMigrationRequest' request.
2142+
class ExtendMigrationRequest
2143+
include Google::Apis::Core::Hashable
2144+
2145+
def initialize(**args)
2146+
update!(**args)
2147+
end
2148+
2149+
# Update properties of this object
2150+
def update!(**args)
2151+
end
2152+
end
2153+
21092154
# Response message for fetchInventory.
21102155
class FetchInventoryResponse
21112156
include Google::Apis::Core::Hashable
@@ -3193,6 +3238,11 @@ class MigratingVm
31933238
# @return [Google::Apis::VmmigrationV1::Status]
31943239
attr_accessor :error
31953240

3241+
# Expiration holds information about the expiration of a MigratingVm.
3242+
# Corresponds to the JSON property `expiration`
3243+
# @return [Google::Apis::VmmigrationV1::Expiration]
3244+
attr_accessor :expiration
3245+
31963246
# Output only. The group this migrating vm is included in, if any. The group is
31973247
# represented by the full path of the appropriate Group resource.
31983248
# Corresponds to the JSON property `group`
@@ -3284,6 +3334,7 @@ def update!(**args)
32843334
@description = args[:description] if args.key?(:description)
32853335
@display_name = args[:display_name] if args.key?(:display_name)
32863336
@error = args[:error] if args.key?(:error)
3337+
@expiration = args[:expiration] if args.key?(:expiration)
32873338
@group = args[:group] if args.key?(:group)
32883339
@labels = args[:labels] if args.key?(:labels)
32893340
@last_replication_cycle = args[:last_replication_cycle] if args.key?(:last_replication_cycle)

generated/google-apis-vmmigration_v1/lib/google/apis/vmmigration_v1/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 VmmigrationV1
1818
# Version of the google-apis-vmmigration_v1 gem
19-
GEM_VERSION = "0.58.0"
19+
GEM_VERSION = "0.59.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_v1/lib/google/apis/vmmigration_v1/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

@@ -1284,6 +1296,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
12841296
end
12851297
end
12861298

1299+
class Expiration
1300+
# @private
1301+
class Representation < Google::Apis::Core::JsonRepresentation
1302+
property :expire_time, as: 'expireTime'
1303+
property :extendable, as: 'extendable'
1304+
property :extension_count, as: 'extensionCount'
1305+
end
1306+
end
1307+
1308+
class ExtendMigrationRequest
1309+
# @private
1310+
class Representation < Google::Apis::Core::JsonRepresentation
1311+
end
1312+
end
1313+
12871314
class FetchInventoryResponse
12881315
# @private
12891316
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1613,6 +1640,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
16131640
property :display_name, as: 'displayName'
16141641
property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
16151642

1643+
property :expiration, as: 'expiration', class: Google::Apis::VmmigrationV1::Expiration, decorator: Google::Apis::VmmigrationV1::Expiration::Representation
1644+
16161645
property :group, as: 'group'
16171646
hash :labels, as: 'labels'
16181647
property :last_replication_cycle, as: 'lastReplicationCycle', class: Google::Apis::VmmigrationV1::ReplicationCycle, decorator: Google::Apis::VmmigrationV1::ReplicationCycle::Representation

generated/google-apis-vmmigration_v1/lib/google/apis/vmmigration_v1/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::VmmigrationV1::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::VmmigrationV1::Operation] parsed result object
1403+
# @yieldparam err [StandardError] error object if request failed
1404+
#
1405+
# @return [Google::Apis::VmmigrationV1::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, 'v1/{+migratingVm}:extendMigration', options)
1412+
command.request_representation = Google::Apis::VmmigrationV1::ExtendMigrationRequest::Representation
1413+
command.request_object = extend_migration_request_object
1414+
command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation
1415+
command.response_class = Google::Apis::VmmigrationV1::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)