google-apis-migrationcenter_v1alpha1 0.25.0 → 0.26.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/migrationcenter_v1alpha1/classes.rb +173 -0
- data/lib/google/apis/migrationcenter_v1alpha1/gem_version.rb +2 -2
- data/lib/google/apis/migrationcenter_v1alpha1/representations.rb +60 -0
- data/lib/google/apis/migrationcenter_v1alpha1/service.rb +257 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d1374b11a91458fc1df84c3b42bb33968d17391a8b806698d72aa0fb777dc59
|
4
|
+
data.tar.gz: 1b19de1b9b901b04f7ec44b6579f33c38e56a91f3a11ed1fb0d186efb8f20529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe1c1cf955803fcd68161d54e1b0b90b50cdd1574bb6da0611ae2c2f29871096e74032ca1ac3b46141b387cc9431ed892bd5d1a9ba53a11f866d61d2583eda29
|
7
|
+
data.tar.gz: efcf77c0c7b1da05cbb61ef5cad3e3012ede432fb1a76c483afc62833f3a18f5e0730412593c26a507a6419c3962ee7b93fb56a51674daa3c208130cd764b7bb
|
data/CHANGELOG.md
CHANGED
@@ -483,6 +483,12 @@ module Google
|
|
483
483
|
# @return [Hash<String,String>]
|
484
484
|
attr_accessor :attributes
|
485
485
|
|
486
|
+
# Optional. Frame collection type, if not specified the collection type will be
|
487
|
+
# based on the source type of the source the frame was reported on.
|
488
|
+
# Corresponds to the JSON property `collectionType`
|
489
|
+
# @return [String]
|
490
|
+
attr_accessor :collection_type
|
491
|
+
|
486
492
|
# Labels as key value pairs.
|
487
493
|
# Corresponds to the JSON property `labels`
|
488
494
|
# @return [Hash<String,String>]
|
@@ -517,6 +523,7 @@ module Google
|
|
517
523
|
# Update properties of this object
|
518
524
|
def update!(**args)
|
519
525
|
@attributes = args[:attributes] if args.key?(:attributes)
|
526
|
+
@collection_type = args[:collection_type] if args.key?(:collection_type)
|
520
527
|
@labels = args[:labels] if args.key?(:labels)
|
521
528
|
@performance_samples = args[:performance_samples] if args.key?(:performance_samples)
|
522
529
|
@report_time = args[:report_time] if args.key?(:report_time)
|
@@ -1234,6 +1241,115 @@ module Google
|
|
1234
1241
|
end
|
1235
1242
|
end
|
1236
1243
|
|
1244
|
+
# Represents an installed Migration Center Discovery Client instance.
|
1245
|
+
class DiscoveryClient
|
1246
|
+
include Google::Apis::Core::Hashable
|
1247
|
+
|
1248
|
+
# Output only. Time when the discovery client was first created.
|
1249
|
+
# Corresponds to the JSON property `createTime`
|
1250
|
+
# @return [String]
|
1251
|
+
attr_accessor :create_time
|
1252
|
+
|
1253
|
+
# Optional. Free text description. Maximum length is 1000 characters.
|
1254
|
+
# Corresponds to the JSON property `description`
|
1255
|
+
# @return [String]
|
1256
|
+
attr_accessor :description
|
1257
|
+
|
1258
|
+
# Optional. Free text display name. Maximum length is 63 characters.
|
1259
|
+
# Corresponds to the JSON property `displayName`
|
1260
|
+
# @return [String]
|
1261
|
+
attr_accessor :display_name
|
1262
|
+
|
1263
|
+
# Output only. Errors affecting client functionality.
|
1264
|
+
# Corresponds to the JSON property `errors`
|
1265
|
+
# @return [Array<Google::Apis::MigrationcenterV1alpha1::Status>]
|
1266
|
+
attr_accessor :errors
|
1267
|
+
|
1268
|
+
# Optional. Client expiration time in UTC. If specified, the backend will not
|
1269
|
+
# accept new frames after this time.
|
1270
|
+
# Corresponds to the JSON property `expireTime`
|
1271
|
+
# @return [String]
|
1272
|
+
attr_accessor :expire_time
|
1273
|
+
|
1274
|
+
# Output only. Last heartbeat time. Healthy clients are expected to send
|
1275
|
+
# heartbeats regularly (normally every few minutes).
|
1276
|
+
# Corresponds to the JSON property `heartbeatTime`
|
1277
|
+
# @return [String]
|
1278
|
+
attr_accessor :heartbeat_time
|
1279
|
+
|
1280
|
+
# Optional. Labels as key value pairs.
|
1281
|
+
# Corresponds to the JSON property `labels`
|
1282
|
+
# @return [Hash<String,String>]
|
1283
|
+
attr_accessor :labels
|
1284
|
+
|
1285
|
+
# Output only. Identifier. Full name of this discovery client.
|
1286
|
+
# Corresponds to the JSON property `name`
|
1287
|
+
# @return [String]
|
1288
|
+
attr_accessor :name
|
1289
|
+
|
1290
|
+
# Required. Service account used by the discovery client for various operation.
|
1291
|
+
# Corresponds to the JSON property `serviceAccount`
|
1292
|
+
# @return [String]
|
1293
|
+
attr_accessor :service_account
|
1294
|
+
|
1295
|
+
# Output only. This field is intended for internal use.
|
1296
|
+
# Corresponds to the JSON property `signalsEndpoint`
|
1297
|
+
# @return [String]
|
1298
|
+
attr_accessor :signals_endpoint
|
1299
|
+
|
1300
|
+
# Required. Full name of the source object associated with this discovery client.
|
1301
|
+
# Corresponds to the JSON property `source`
|
1302
|
+
# @return [String]
|
1303
|
+
attr_accessor :source
|
1304
|
+
|
1305
|
+
# Output only. Current state of the discovery client.
|
1306
|
+
# Corresponds to the JSON property `state`
|
1307
|
+
# @return [String]
|
1308
|
+
attr_accessor :state
|
1309
|
+
|
1310
|
+
# Optional. Input only. Client time-to-live. If specified, the backend will not
|
1311
|
+
# accept new frames after this time. This field is input only. The derived
|
1312
|
+
# expiration time is provided as output through the `expire_time` field.
|
1313
|
+
# Corresponds to the JSON property `ttl`
|
1314
|
+
# @return [String]
|
1315
|
+
attr_accessor :ttl
|
1316
|
+
|
1317
|
+
# Output only. Time when the discovery client was last updated. This value is
|
1318
|
+
# not updated by heartbeats, to view the last heartbeat time please refer to the
|
1319
|
+
# `heartbeat_time` field.
|
1320
|
+
# Corresponds to the JSON property `updateTime`
|
1321
|
+
# @return [String]
|
1322
|
+
attr_accessor :update_time
|
1323
|
+
|
1324
|
+
# Output only. Client version, as reported in recent heartbeat.
|
1325
|
+
# Corresponds to the JSON property `version`
|
1326
|
+
# @return [String]
|
1327
|
+
attr_accessor :version
|
1328
|
+
|
1329
|
+
def initialize(**args)
|
1330
|
+
update!(**args)
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
# Update properties of this object
|
1334
|
+
def update!(**args)
|
1335
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1336
|
+
@description = args[:description] if args.key?(:description)
|
1337
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1338
|
+
@errors = args[:errors] if args.key?(:errors)
|
1339
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
1340
|
+
@heartbeat_time = args[:heartbeat_time] if args.key?(:heartbeat_time)
|
1341
|
+
@labels = args[:labels] if args.key?(:labels)
|
1342
|
+
@name = args[:name] if args.key?(:name)
|
1343
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
1344
|
+
@signals_endpoint = args[:signals_endpoint] if args.key?(:signals_endpoint)
|
1345
|
+
@source = args[:source] if args.key?(:source)
|
1346
|
+
@state = args[:state] if args.key?(:state)
|
1347
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
1348
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1349
|
+
@version = args[:version] if args.key?(:version)
|
1350
|
+
end
|
1351
|
+
end
|
1352
|
+
|
1237
1353
|
# Single disk entry.
|
1238
1354
|
class DiskEntry
|
1239
1355
|
include Google::Apis::Core::Hashable
|
@@ -2380,6 +2496,38 @@ module Google
|
|
2380
2496
|
end
|
2381
2497
|
end
|
2382
2498
|
|
2499
|
+
# Response message for listing discovery clients.
|
2500
|
+
class ListDiscoveryClientsResponse
|
2501
|
+
include Google::Apis::Core::Hashable
|
2502
|
+
|
2503
|
+
# List of discovery clients.
|
2504
|
+
# Corresponds to the JSON property `discoveryClients`
|
2505
|
+
# @return [Array<Google::Apis::MigrationcenterV1alpha1::DiscoveryClient>]
|
2506
|
+
attr_accessor :discovery_clients
|
2507
|
+
|
2508
|
+
# A token that can be sent as `page_token` to retrieve the next page. If this
|
2509
|
+
# field is omitted, there are no subsequent pages.
|
2510
|
+
# Corresponds to the JSON property `nextPageToken`
|
2511
|
+
# @return [String]
|
2512
|
+
attr_accessor :next_page_token
|
2513
|
+
|
2514
|
+
# Locations that could not be reached.
|
2515
|
+
# Corresponds to the JSON property `unreachable`
|
2516
|
+
# @return [Array<String>]
|
2517
|
+
attr_accessor :unreachable
|
2518
|
+
|
2519
|
+
def initialize(**args)
|
2520
|
+
update!(**args)
|
2521
|
+
end
|
2522
|
+
|
2523
|
+
# Update properties of this object
|
2524
|
+
def update!(**args)
|
2525
|
+
@discovery_clients = args[:discovery_clients] if args.key?(:discovery_clients)
|
2526
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2527
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2528
|
+
end
|
2529
|
+
end
|
2530
|
+
|
2383
2531
|
# A response for listing error frames.
|
2384
2532
|
class ListErrorFramesResponse
|
2385
2533
|
include Google::Apis::Core::Hashable
|
@@ -4547,6 +4695,31 @@ module Google
|
|
4547
4695
|
end
|
4548
4696
|
end
|
4549
4697
|
|
4698
|
+
# A request to send a discovery client heartbeat.
|
4699
|
+
class SendDiscoveryClientHeartbeatRequest
|
4700
|
+
include Google::Apis::Core::Hashable
|
4701
|
+
|
4702
|
+
# Optional. Errors affecting client functionality.
|
4703
|
+
# Corresponds to the JSON property `errors`
|
4704
|
+
# @return [Array<Google::Apis::MigrationcenterV1alpha1::Status>]
|
4705
|
+
attr_accessor :errors
|
4706
|
+
|
4707
|
+
# Optional. Client application version.
|
4708
|
+
# Corresponds to the JSON property `version`
|
4709
|
+
# @return [String]
|
4710
|
+
attr_accessor :version
|
4711
|
+
|
4712
|
+
def initialize(**args)
|
4713
|
+
update!(**args)
|
4714
|
+
end
|
4715
|
+
|
4716
|
+
# Update properties of this object
|
4717
|
+
def update!(**args)
|
4718
|
+
@errors = args[:errors] if args.key?(:errors)
|
4719
|
+
@version = args[:version] if args.key?(:version)
|
4720
|
+
end
|
4721
|
+
end
|
4722
|
+
|
4550
4723
|
# Describes the Migration Center settings related to the project.
|
4551
4724
|
class Settings
|
4552
4725
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MigrationcenterV1alpha1
|
18
18
|
# Version of the google-apis-migrationcenter_v1alpha1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240321"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -262,6 +262,12 @@ module Google
|
|
262
262
|
include Google::Apis::Core::JsonObjectSupport
|
263
263
|
end
|
264
264
|
|
265
|
+
class DiscoveryClient
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
265
271
|
class DiskEntry
|
266
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
273
|
|
@@ -466,6 +472,12 @@ module Google
|
|
466
472
|
include Google::Apis::Core::JsonObjectSupport
|
467
473
|
end
|
468
474
|
|
475
|
+
class ListDiscoveryClientsResponse
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
|
+
|
478
|
+
include Google::Apis::Core::JsonObjectSupport
|
479
|
+
end
|
480
|
+
|
469
481
|
class ListErrorFramesResponse
|
470
482
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
483
|
|
@@ -844,6 +856,12 @@ module Google
|
|
844
856
|
include Google::Apis::Core::JsonObjectSupport
|
845
857
|
end
|
846
858
|
|
859
|
+
class SendDiscoveryClientHeartbeatRequest
|
860
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
|
+
|
862
|
+
include Google::Apis::Core::JsonObjectSupport
|
863
|
+
end
|
864
|
+
|
847
865
|
class Settings
|
848
866
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
849
867
|
|
@@ -1123,6 +1141,7 @@ module Google
|
|
1123
1141
|
# @private
|
1124
1142
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1125
1143
|
hash :attributes, as: 'attributes'
|
1144
|
+
property :collection_type, as: 'collectionType'
|
1126
1145
|
hash :labels, as: 'labels'
|
1127
1146
|
collection :performance_samples, as: 'performanceSamples', class: Google::Apis::MigrationcenterV1alpha1::PerformanceSample, decorator: Google::Apis::MigrationcenterV1alpha1::PerformanceSample::Representation
|
1128
1147
|
|
@@ -1351,6 +1370,28 @@ module Google
|
|
1351
1370
|
end
|
1352
1371
|
end
|
1353
1372
|
|
1373
|
+
class DiscoveryClient
|
1374
|
+
# @private
|
1375
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1376
|
+
property :create_time, as: 'createTime'
|
1377
|
+
property :description, as: 'description'
|
1378
|
+
property :display_name, as: 'displayName'
|
1379
|
+
collection :errors, as: 'errors', class: Google::Apis::MigrationcenterV1alpha1::Status, decorator: Google::Apis::MigrationcenterV1alpha1::Status::Representation
|
1380
|
+
|
1381
|
+
property :expire_time, as: 'expireTime'
|
1382
|
+
property :heartbeat_time, as: 'heartbeatTime'
|
1383
|
+
hash :labels, as: 'labels'
|
1384
|
+
property :name, as: 'name'
|
1385
|
+
property :service_account, as: 'serviceAccount'
|
1386
|
+
property :signals_endpoint, as: 'signalsEndpoint'
|
1387
|
+
property :source, as: 'source'
|
1388
|
+
property :state, as: 'state'
|
1389
|
+
property :ttl, as: 'ttl'
|
1390
|
+
property :update_time, as: 'updateTime'
|
1391
|
+
property :version, as: 'version'
|
1392
|
+
end
|
1393
|
+
end
|
1394
|
+
|
1354
1395
|
class DiskEntry
|
1355
1396
|
# @private
|
1356
1397
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1707,6 +1748,16 @@ module Google
|
|
1707
1748
|
end
|
1708
1749
|
end
|
1709
1750
|
|
1751
|
+
class ListDiscoveryClientsResponse
|
1752
|
+
# @private
|
1753
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1754
|
+
collection :discovery_clients, as: 'discoveryClients', class: Google::Apis::MigrationcenterV1alpha1::DiscoveryClient, decorator: Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
|
1755
|
+
|
1756
|
+
property :next_page_token, as: 'nextPageToken'
|
1757
|
+
collection :unreachable, as: 'unreachable'
|
1758
|
+
end
|
1759
|
+
end
|
1760
|
+
|
1710
1761
|
class ListErrorFramesResponse
|
1711
1762
|
# @private
|
1712
1763
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2363,6 +2414,15 @@ module Google
|
|
2363
2414
|
end
|
2364
2415
|
end
|
2365
2416
|
|
2417
|
+
class SendDiscoveryClientHeartbeatRequest
|
2418
|
+
# @private
|
2419
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2420
|
+
collection :errors, as: 'errors', class: Google::Apis::MigrationcenterV1alpha1::Status, decorator: Google::Apis::MigrationcenterV1alpha1::Status::Representation
|
2421
|
+
|
2422
|
+
property :version, as: 'version'
|
2423
|
+
end
|
2424
|
+
end
|
2425
|
+
|
2366
2426
|
class Settings
|
2367
2427
|
# @private
|
2368
2428
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -519,6 +519,263 @@ module Google
|
|
519
519
|
execute_or_queue_command(command, &block)
|
520
520
|
end
|
521
521
|
|
522
|
+
# Creates a new discovery client.
|
523
|
+
# @param [String] parent
|
524
|
+
# Required. Parent resource.
|
525
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient] discovery_client_object
|
526
|
+
# @param [String] discovery_client_id
|
527
|
+
# Required. User specified ID for the discovery client. It will become the last
|
528
|
+
# component of the discovery client name. The ID must be unique within the
|
529
|
+
# project, is restricted to lower-cased letters and has a maximum length of 63
|
530
|
+
# characters. The ID must match the regular expression: `[a-z]([a-z0-9-]`0,61`[a-
|
531
|
+
# z0-9])?`.
|
532
|
+
# @param [String] request_id
|
533
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
534
|
+
# request ID so that if you must retry your request, the server will know to
|
535
|
+
# ignore the request if it has already been completed. The server will guarantee
|
536
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
537
|
+
# situation where you make an initial request and the request times out. If you
|
538
|
+
# make the request again with the same request ID, the server can check if
|
539
|
+
# original operation with the same request ID was received, and if so, will
|
540
|
+
# ignore the second request. This prevents clients from accidentally creating
|
541
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
542
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
543
|
+
# @param [String] fields
|
544
|
+
# Selector specifying which fields to include in a partial response.
|
545
|
+
# @param [String] quota_user
|
546
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
547
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
548
|
+
# @param [Google::Apis::RequestOptions] options
|
549
|
+
# Request-specific options
|
550
|
+
#
|
551
|
+
# @yield [result, err] Result & error if block supplied
|
552
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
553
|
+
# @yieldparam err [StandardError] error object if request failed
|
554
|
+
#
|
555
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
556
|
+
#
|
557
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
558
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
559
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
560
|
+
def create_project_location_discovery_client(parent, discovery_client_object = nil, discovery_client_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
561
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/discoveryClients', options)
|
562
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
|
563
|
+
command.request_object = discovery_client_object
|
564
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
565
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
566
|
+
command.params['parent'] = parent unless parent.nil?
|
567
|
+
command.query['discoveryClientId'] = discovery_client_id unless discovery_client_id.nil?
|
568
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
569
|
+
command.query['fields'] = fields unless fields.nil?
|
570
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
571
|
+
execute_or_queue_command(command, &block)
|
572
|
+
end
|
573
|
+
|
574
|
+
# Deletes a discovery client.
|
575
|
+
# @param [String] name
|
576
|
+
# Required. The discovery client name.
|
577
|
+
# @param [String] request_id
|
578
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
579
|
+
# request ID so that if you must retry your request, the server will know to
|
580
|
+
# ignore the request if it has already been completed. The server will guarantee
|
581
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
582
|
+
# situation where you make an initial request and the request times out. If you
|
583
|
+
# make the request again with the same request ID, the server can check if
|
584
|
+
# original operation with the same request ID was received, and if so, will
|
585
|
+
# ignore the second request. This prevents clients from accidentally creating
|
586
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
587
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
588
|
+
# @param [String] fields
|
589
|
+
# Selector specifying which fields to include in a partial response.
|
590
|
+
# @param [String] quota_user
|
591
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
592
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
593
|
+
# @param [Google::Apis::RequestOptions] options
|
594
|
+
# Request-specific options
|
595
|
+
#
|
596
|
+
# @yield [result, err] Result & error if block supplied
|
597
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
598
|
+
# @yieldparam err [StandardError] error object if request failed
|
599
|
+
#
|
600
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
601
|
+
#
|
602
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
603
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
604
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
605
|
+
def delete_project_location_discovery_client(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
606
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
607
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
608
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
609
|
+
command.params['name'] = name unless name.nil?
|
610
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
611
|
+
command.query['fields'] = fields unless fields.nil?
|
612
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
613
|
+
execute_or_queue_command(command, &block)
|
614
|
+
end
|
615
|
+
|
616
|
+
# Gets the details of a discovery client.
|
617
|
+
# @param [String] name
|
618
|
+
# Required. The discovery client name.
|
619
|
+
# @param [String] fields
|
620
|
+
# Selector specifying which fields to include in a partial response.
|
621
|
+
# @param [String] quota_user
|
622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
624
|
+
# @param [Google::Apis::RequestOptions] options
|
625
|
+
# Request-specific options
|
626
|
+
#
|
627
|
+
# @yield [result, err] Result & error if block supplied
|
628
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient] parsed result object
|
629
|
+
# @yieldparam err [StandardError] error object if request failed
|
630
|
+
#
|
631
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient]
|
632
|
+
#
|
633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
636
|
+
def get_project_location_discovery_client(name, fields: nil, quota_user: nil, options: nil, &block)
|
637
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
638
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
|
639
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient
|
640
|
+
command.params['name'] = name unless name.nil?
|
641
|
+
command.query['fields'] = fields unless fields.nil?
|
642
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
643
|
+
execute_or_queue_command(command, &block)
|
644
|
+
end
|
645
|
+
|
646
|
+
# Lists all the discovery clients in a given project and location.
|
647
|
+
# @param [String] parent
|
648
|
+
# Required. Parent resource.
|
649
|
+
# @param [String] filter
|
650
|
+
# Optional. Filter expression to filter results by.
|
651
|
+
# @param [String] order_by
|
652
|
+
# Optional. Field to sort by.
|
653
|
+
# @param [Fixnum] page_size
|
654
|
+
# Optional. The maximum number of items to return. The server may return fewer
|
655
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
656
|
+
# default value.
|
657
|
+
# @param [String] page_token
|
658
|
+
# Optional. A page token, received from a previous `ListDiscoveryClients` call.
|
659
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
660
|
+
# parameters provided to `ListDiscoveryClients` must match the call that
|
661
|
+
# provided the page token.
|
662
|
+
# @param [String] fields
|
663
|
+
# Selector specifying which fields to include in a partial response.
|
664
|
+
# @param [String] quota_user
|
665
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
666
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
667
|
+
# @param [Google::Apis::RequestOptions] options
|
668
|
+
# Request-specific options
|
669
|
+
#
|
670
|
+
# @yield [result, err] Result & error if block supplied
|
671
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse] parsed result object
|
672
|
+
# @yieldparam err [StandardError] error object if request failed
|
673
|
+
#
|
674
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse]
|
675
|
+
#
|
676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
679
|
+
def list_project_location_discovery_clients(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
680
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/discoveryClients', options)
|
681
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse::Representation
|
682
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::ListDiscoveryClientsResponse
|
683
|
+
command.params['parent'] = parent unless parent.nil?
|
684
|
+
command.query['filter'] = filter unless filter.nil?
|
685
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
686
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
687
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
688
|
+
command.query['fields'] = fields unless fields.nil?
|
689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
690
|
+
execute_or_queue_command(command, &block)
|
691
|
+
end
|
692
|
+
|
693
|
+
# Updates a discovery client.
|
694
|
+
# @param [String] name
|
695
|
+
# Output only. Identifier. Full name of this discovery client.
|
696
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::DiscoveryClient] discovery_client_object
|
697
|
+
# @param [String] request_id
|
698
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
699
|
+
# request ID so that if you must retry your request, the server will know to
|
700
|
+
# ignore the request if it has already been completed. The server will guarantee
|
701
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
702
|
+
# situation where you make an initial request and the request times out. If you
|
703
|
+
# make the request again with the same request ID, the server can check if
|
704
|
+
# original operation with the same request ID was received, and if so, will
|
705
|
+
# ignore the second request. This prevents clients from accidentally creating
|
706
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
707
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
708
|
+
# @param [String] update_mask
|
709
|
+
# Required. Update mask is used to specify the fields to be overwritten in the `
|
710
|
+
# DiscoveryClient` resource by the update. The values specified in the `
|
711
|
+
# update_mask` field are relative to the resource, not the full request. A field
|
712
|
+
# will be overwritten if it is in the mask. A single * value in the mask lets
|
713
|
+
# you to overwrite all fields.
|
714
|
+
# @param [String] fields
|
715
|
+
# Selector specifying which fields to include in a partial response.
|
716
|
+
# @param [String] quota_user
|
717
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
718
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
719
|
+
# @param [Google::Apis::RequestOptions] options
|
720
|
+
# Request-specific options
|
721
|
+
#
|
722
|
+
# @yield [result, err] Result & error if block supplied
|
723
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
724
|
+
# @yieldparam err [StandardError] error object if request failed
|
725
|
+
#
|
726
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
727
|
+
#
|
728
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
729
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
730
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
731
|
+
def patch_project_location_discovery_client(name, discovery_client_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
732
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
733
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::DiscoveryClient::Representation
|
734
|
+
command.request_object = discovery_client_object
|
735
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
736
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
737
|
+
command.params['name'] = name unless name.nil?
|
738
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
739
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
740
|
+
command.query['fields'] = fields unless fields.nil?
|
741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
742
|
+
execute_or_queue_command(command, &block)
|
743
|
+
end
|
744
|
+
|
745
|
+
# Sends a discovery client heartbeat. Healthy clients are expected to send
|
746
|
+
# heartbeats regularly (normally every few minutes).
|
747
|
+
# @param [String] name
|
748
|
+
# Required. The discovery client name.
|
749
|
+
# @param [Google::Apis::MigrationcenterV1alpha1::SendDiscoveryClientHeartbeatRequest] send_discovery_client_heartbeat_request_object
|
750
|
+
# @param [String] fields
|
751
|
+
# Selector specifying which fields to include in a partial response.
|
752
|
+
# @param [String] quota_user
|
753
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
754
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
755
|
+
# @param [Google::Apis::RequestOptions] options
|
756
|
+
# Request-specific options
|
757
|
+
#
|
758
|
+
# @yield [result, err] Result & error if block supplied
|
759
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1alpha1::Operation] parsed result object
|
760
|
+
# @yieldparam err [StandardError] error object if request failed
|
761
|
+
#
|
762
|
+
# @return [Google::Apis::MigrationcenterV1alpha1::Operation]
|
763
|
+
#
|
764
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
765
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
766
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
767
|
+
def send_project_location_discovery_client_heartbeat(name, send_discovery_client_heartbeat_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
768
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}:sendHeartbeat', options)
|
769
|
+
command.request_representation = Google::Apis::MigrationcenterV1alpha1::SendDiscoveryClientHeartbeatRequest::Representation
|
770
|
+
command.request_object = send_discovery_client_heartbeat_request_object
|
771
|
+
command.response_representation = Google::Apis::MigrationcenterV1alpha1::Operation::Representation
|
772
|
+
command.response_class = Google::Apis::MigrationcenterV1alpha1::Operation
|
773
|
+
command.params['name'] = name unless name.nil?
|
774
|
+
command.query['fields'] = fields unless fields.nil?
|
775
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
776
|
+
execute_or_queue_command(command, &block)
|
777
|
+
end
|
778
|
+
|
522
779
|
# Adds assets to a group.
|
523
780
|
# @param [String] group
|
524
781
|
# Required. Group reference.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-migrationcenter_v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-migrationcenter_v1alpha1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1alpha1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1alpha1/v0.26.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-migrationcenter_v1alpha1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|