google-apis-vmmigration_v1 0.58.0 → 0.59.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: 57b8f4cce7f26d0fcc8151decfa8f24a339a260cea021582ebb2f1d55aa731f0
4
- data.tar.gz: 2dbe669f13e5ecc134c22de7fcfb37a58cba31999bd23562606e867289612c5c
3
+ metadata.gz: 5905297580a0c556fc1674a8c8b011a66c6f4550aaa6d6860bc6942d0d7867c3
4
+ data.tar.gz: bc64bac2d193e5c1bbe83b052b1f3b310ed1ce43a412475bcfacc7bf339569aa
5
5
  SHA512:
6
- metadata.gz: 04741b5a2aaba46d5e3085e1ba593bc73ec32ca6201889fdf1098d49b175f908f8d6b64ec78e1b079ba9a04b7014972a1087999b42383ecc56dc6029abb9ed08
7
- data.tar.gz: 63976a995d1f3448bc0d59ee51060dd066d9607b8e66dc80414bf64762e80f94a8fbf0a6cb49ef280ef7e2cff8b20d2876cd892ccba19551b06a030c23d618f9
6
+ metadata.gz: 91bd8ca6c4345ce06546b00377219916a42c0503c8d5ab9e7595c5fe1e97faefc10bec209badaf380f6a3f788d87425aab8eb6f9c0ccf60d4b8520bff347917d
7
+ data.tar.gz: 967c4e082f3aeb4c19a54cd9fa28aac2112a232dade35d6456a34bd73f496461452d1d5bf54ba1fb872fd8653a76e72ed5276f9d60767290abd0df0d403376b2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-vmmigration_v1
2
2
 
3
+ ### v0.59.0 (2025-06-01)
4
+
5
+ * Regenerated from discovery document revision 20250521
6
+ * Regenerated using generator version 0.18.0
7
+
3
8
  ### v0.58.0 (2025-05-04)
4
9
 
5
10
  * Regenerated using generator version 0.17.0
@@ -2106,6 +2106,51 @@ module Google
2106
2106
  end
2107
2107
  end
2108
2108
 
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
+
2109
2154
  # Response message for fetchInventory.
2110
2155
  class FetchInventoryResponse
2111
2156
  include Google::Apis::Core::Hashable
@@ -3193,6 +3238,11 @@ module Google
3193
3238
  # @return [Google::Apis::VmmigrationV1::Status]
3194
3239
  attr_accessor :error
3195
3240
 
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
+
3196
3246
  # Output only. The group this migrating vm is included in, if any. The group is
3197
3247
  # represented by the full path of the appropriate Group resource.
3198
3248
  # Corresponds to the JSON property `group`
@@ -3284,6 +3334,7 @@ module Google
3284
3334
  @description = args[:description] if args.key?(:description)
3285
3335
  @display_name = args[:display_name] if args.key?(:display_name)
3286
3336
  @error = args[:error] if args.key?(:error)
3337
+ @expiration = args[:expiration] if args.key?(:expiration)
3287
3338
  @group = args[:group] if args.key?(:group)
3288
3339
  @labels = args[:labels] if args.key?(:labels)
3289
3340
  @last_replication_cycle = args[:last_replication_cycle] if args.key?(:last_replication_cycle)
@@ -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.58.0"
19
+ GEM_VERSION = "0.59.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250321"
25
+ REVISION = "20250521"
26
26
  end
27
27
  end
28
28
  end
@@ -298,6 +298,18 @@ module Google
298
298
  include Google::Apis::Core::JsonObjectSupport
299
299
  end
300
300
 
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
+
301
313
  class FetchInventoryResponse
302
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
315
 
@@ -1284,6 +1296,21 @@ module Google
1284
1296
  end
1285
1297
  end
1286
1298
 
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
+
1287
1314
  class FetchInventoryResponse
1288
1315
  # @private
1289
1316
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1613,6 +1640,8 @@ module Google
1613
1640
  property :display_name, as: 'displayName'
1614
1641
  property :error, as: 'error', class: Google::Apis::VmmigrationV1::Status, decorator: Google::Apis::VmmigrationV1::Status::Representation
1615
1642
 
1643
+ property :expiration, as: 'expiration', class: Google::Apis::VmmigrationV1::Expiration, decorator: Google::Apis::VmmigrationV1::Expiration::Representation
1644
+
1616
1645
  property :group, as: 'group'
1617
1646
  hash :labels, as: 'labels'
1618
1647
  property :last_replication_cycle, as: 'lastReplicationCycle', class: Google::Apis::VmmigrationV1::ReplicationCycle, decorator: Google::Apis::VmmigrationV1::ReplicationCycle::Representation
@@ -1386,6 +1386,39 @@ module Google
1386
1386
  execute_or_queue_command(command, &block)
1387
1387
  end
1388
1388
 
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
+
1389
1422
  # Marks a migration as completed, deleting migration resources that are no
1390
1423
  # longer being used. Only applicable after cutover is done.
1391
1424
  # @param [String] migrating_vm
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.58.0
4
+ version: 0.59.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.58.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-vmmigration_v1/v0.59.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:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for VM Migration API V1
79
79
  test_files: []