google-apis-migrationcenter_v1 0.9.0 → 0.10.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_v1/classes.rb +174 -0
- data/lib/google/apis/migrationcenter_v1/gem_version.rb +2 -2
- data/lib/google/apis/migrationcenter_v1/representations.rb +60 -0
- data/lib/google/apis/migrationcenter_v1/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: e7dc79b164074205be7effed0d0f29c14a4c2a71ef0ff207e39b4f40be036ea4
|
4
|
+
data.tar.gz: 8492349039794f0da3eafb4bed5117eb1919b26f0e0730fcd03816ec4284a0b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91f010df732b794a06fe48464ca3cc4de803c001e013fe09983762ea14a51ce7601adf9e932af61e7680fb3da6655672fc67916950a7c82b55d52df44a44b857
|
7
|
+
data.tar.gz: 696fedc1ead389d9c64048b1393675443fcbe18339173ac72ddf8761e02d1e4da5d84e9ff26cbd10f5d878e14ace0a1581aa9a2273998720eff4ba634b4f324a
|
data/CHANGELOG.md
CHANGED
@@ -456,6 +456,12 @@ module Google
|
|
456
456
|
# @return [Hash<String,String>]
|
457
457
|
attr_accessor :attributes
|
458
458
|
|
459
|
+
# Optional. Frame collection type, if not specified the collection type will be
|
460
|
+
# based on the source type of the source the frame was reported on.
|
461
|
+
# Corresponds to the JSON property `collectionType`
|
462
|
+
# @return [String]
|
463
|
+
attr_accessor :collection_type
|
464
|
+
|
459
465
|
# Labels as key value pairs.
|
460
466
|
# Corresponds to the JSON property `labels`
|
461
467
|
# @return [Hash<String,String>]
|
@@ -490,6 +496,7 @@ module Google
|
|
490
496
|
# Update properties of this object
|
491
497
|
def update!(**args)
|
492
498
|
@attributes = args[:attributes] if args.key?(:attributes)
|
499
|
+
@collection_type = args[:collection_type] if args.key?(:collection_type)
|
493
500
|
@labels = args[:labels] if args.key?(:labels)
|
494
501
|
@machine_details = args[:machine_details] if args.key?(:machine_details)
|
495
502
|
@performance_samples = args[:performance_samples] if args.key?(:performance_samples)
|
@@ -1092,6 +1099,116 @@ module Google
|
|
1092
1099
|
end
|
1093
1100
|
end
|
1094
1101
|
|
1102
|
+
# Represents an installed Migration Center Discovery Client instance.
|
1103
|
+
class DiscoveryClient
|
1104
|
+
include Google::Apis::Core::Hashable
|
1105
|
+
|
1106
|
+
# Output only. Time when the discovery client was first created.
|
1107
|
+
# Corresponds to the JSON property `createTime`
|
1108
|
+
# @return [String]
|
1109
|
+
attr_accessor :create_time
|
1110
|
+
|
1111
|
+
# Optional. Free text description. Maximum length is 1000 characters.
|
1112
|
+
# Corresponds to the JSON property `description`
|
1113
|
+
# @return [String]
|
1114
|
+
attr_accessor :description
|
1115
|
+
|
1116
|
+
# Optional. Free text display name. Maximum length is 63 characters.
|
1117
|
+
# Corresponds to the JSON property `displayName`
|
1118
|
+
# @return [String]
|
1119
|
+
attr_accessor :display_name
|
1120
|
+
|
1121
|
+
# Output only. Errors affecting client functionality.
|
1122
|
+
# Corresponds to the JSON property `errors`
|
1123
|
+
# @return [Array<Google::Apis::MigrationcenterV1::Status>]
|
1124
|
+
attr_accessor :errors
|
1125
|
+
|
1126
|
+
# Optional. Client expiration time in UTC. If specified, the backend will not
|
1127
|
+
# accept new frames after this time.
|
1128
|
+
# Corresponds to the JSON property `expireTime`
|
1129
|
+
# @return [String]
|
1130
|
+
attr_accessor :expire_time
|
1131
|
+
|
1132
|
+
# Output only. Last heartbeat time. Healthy clients are expected to send
|
1133
|
+
# heartbeats regularly (normally every few minutes).
|
1134
|
+
# Corresponds to the JSON property `heartbeatTime`
|
1135
|
+
# @return [String]
|
1136
|
+
attr_accessor :heartbeat_time
|
1137
|
+
|
1138
|
+
# Optional. Labels as key value pairs.
|
1139
|
+
# Corresponds to the JSON property `labels`
|
1140
|
+
# @return [Hash<String,String>]
|
1141
|
+
attr_accessor :labels
|
1142
|
+
|
1143
|
+
# Output only. Identifier. Full name of this discovery client.
|
1144
|
+
# Corresponds to the JSON property `name`
|
1145
|
+
# @return [String]
|
1146
|
+
attr_accessor :name
|
1147
|
+
|
1148
|
+
# Required. Service account used by the discovery client for various operation.
|
1149
|
+
# Corresponds to the JSON property `serviceAccount`
|
1150
|
+
# @return [String]
|
1151
|
+
attr_accessor :service_account
|
1152
|
+
|
1153
|
+
# Output only. This field is intended for internal use.
|
1154
|
+
# Corresponds to the JSON property `signalsEndpoint`
|
1155
|
+
# @return [String]
|
1156
|
+
attr_accessor :signals_endpoint
|
1157
|
+
|
1158
|
+
# Required. Immutable. Full name of the source object associated with this
|
1159
|
+
# discovery client.
|
1160
|
+
# Corresponds to the JSON property `source`
|
1161
|
+
# @return [String]
|
1162
|
+
attr_accessor :source
|
1163
|
+
|
1164
|
+
# Output only. Current state of the discovery client.
|
1165
|
+
# Corresponds to the JSON property `state`
|
1166
|
+
# @return [String]
|
1167
|
+
attr_accessor :state
|
1168
|
+
|
1169
|
+
# Optional. Input only. Client time-to-live. If specified, the backend will not
|
1170
|
+
# accept new frames after this time. This field is input only. The derived
|
1171
|
+
# expiration time is provided as output through the `expire_time` field.
|
1172
|
+
# Corresponds to the JSON property `ttl`
|
1173
|
+
# @return [String]
|
1174
|
+
attr_accessor :ttl
|
1175
|
+
|
1176
|
+
# Output only. Time when the discovery client was last updated. This value is
|
1177
|
+
# not updated by heartbeats, to view the last heartbeat time please refer to the
|
1178
|
+
# `heartbeat_time` field.
|
1179
|
+
# Corresponds to the JSON property `updateTime`
|
1180
|
+
# @return [String]
|
1181
|
+
attr_accessor :update_time
|
1182
|
+
|
1183
|
+
# Output only. Client version, as reported in recent heartbeat.
|
1184
|
+
# Corresponds to the JSON property `version`
|
1185
|
+
# @return [String]
|
1186
|
+
attr_accessor :version
|
1187
|
+
|
1188
|
+
def initialize(**args)
|
1189
|
+
update!(**args)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# Update properties of this object
|
1193
|
+
def update!(**args)
|
1194
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1195
|
+
@description = args[:description] if args.key?(:description)
|
1196
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1197
|
+
@errors = args[:errors] if args.key?(:errors)
|
1198
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
1199
|
+
@heartbeat_time = args[:heartbeat_time] if args.key?(:heartbeat_time)
|
1200
|
+
@labels = args[:labels] if args.key?(:labels)
|
1201
|
+
@name = args[:name] if args.key?(:name)
|
1202
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
1203
|
+
@signals_endpoint = args[:signals_endpoint] if args.key?(:signals_endpoint)
|
1204
|
+
@source = args[:source] if args.key?(:source)
|
1205
|
+
@state = args[:state] if args.key?(:state)
|
1206
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
1207
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1208
|
+
@version = args[:version] if args.key?(:version)
|
1209
|
+
end
|
1210
|
+
end
|
1211
|
+
|
1095
1212
|
# Single disk entry.
|
1096
1213
|
class DiskEntry
|
1097
1214
|
include Google::Apis::Core::Hashable
|
@@ -2152,6 +2269,38 @@ module Google
|
|
2152
2269
|
end
|
2153
2270
|
end
|
2154
2271
|
|
2272
|
+
# Response message for listing discovery clients.
|
2273
|
+
class ListDiscoveryClientsResponse
|
2274
|
+
include Google::Apis::Core::Hashable
|
2275
|
+
|
2276
|
+
# List of discovery clients.
|
2277
|
+
# Corresponds to the JSON property `discoveryClients`
|
2278
|
+
# @return [Array<Google::Apis::MigrationcenterV1::DiscoveryClient>]
|
2279
|
+
attr_accessor :discovery_clients
|
2280
|
+
|
2281
|
+
# A token that can be sent as `page_token` to retrieve the next page. If this
|
2282
|
+
# field is omitted, there are no subsequent pages.
|
2283
|
+
# Corresponds to the JSON property `nextPageToken`
|
2284
|
+
# @return [String]
|
2285
|
+
attr_accessor :next_page_token
|
2286
|
+
|
2287
|
+
# Locations that could not be reached.
|
2288
|
+
# Corresponds to the JSON property `unreachable`
|
2289
|
+
# @return [Array<String>]
|
2290
|
+
attr_accessor :unreachable
|
2291
|
+
|
2292
|
+
def initialize(**args)
|
2293
|
+
update!(**args)
|
2294
|
+
end
|
2295
|
+
|
2296
|
+
# Update properties of this object
|
2297
|
+
def update!(**args)
|
2298
|
+
@discovery_clients = args[:discovery_clients] if args.key?(:discovery_clients)
|
2299
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2300
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2301
|
+
end
|
2302
|
+
end
|
2303
|
+
|
2155
2304
|
# A response for listing error frames.
|
2156
2305
|
class ListErrorFramesResponse
|
2157
2306
|
include Google::Apis::Core::Hashable
|
@@ -4397,6 +4546,31 @@ module Google
|
|
4397
4546
|
end
|
4398
4547
|
end
|
4399
4548
|
|
4549
|
+
# A request to send a discovery client heartbeat.
|
4550
|
+
class SendDiscoveryClientHeartbeatRequest
|
4551
|
+
include Google::Apis::Core::Hashable
|
4552
|
+
|
4553
|
+
# Optional. Errors affecting client functionality.
|
4554
|
+
# Corresponds to the JSON property `errors`
|
4555
|
+
# @return [Array<Google::Apis::MigrationcenterV1::Status>]
|
4556
|
+
attr_accessor :errors
|
4557
|
+
|
4558
|
+
# Optional. Client application version.
|
4559
|
+
# Corresponds to the JSON property `version`
|
4560
|
+
# @return [String]
|
4561
|
+
attr_accessor :version
|
4562
|
+
|
4563
|
+
def initialize(**args)
|
4564
|
+
update!(**args)
|
4565
|
+
end
|
4566
|
+
|
4567
|
+
# Update properties of this object
|
4568
|
+
def update!(**args)
|
4569
|
+
@errors = args[:errors] if args.key?(:errors)
|
4570
|
+
@version = args[:version] if args.key?(:version)
|
4571
|
+
end
|
4572
|
+
end
|
4573
|
+
|
4400
4574
|
# Describes the Migration Center settings related to the project.
|
4401
4575
|
class Settings
|
4402
4576
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MigrationcenterV1
|
18
18
|
# Version of the google-apis-migrationcenter_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.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
|
@@ -244,6 +244,12 @@ module Google
|
|
244
244
|
include Google::Apis::Core::JsonObjectSupport
|
245
245
|
end
|
246
246
|
|
247
|
+
class DiscoveryClient
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
247
253
|
class DiskEntry
|
248
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
255
|
|
@@ -430,6 +436,12 @@ module Google
|
|
430
436
|
include Google::Apis::Core::JsonObjectSupport
|
431
437
|
end
|
432
438
|
|
439
|
+
class ListDiscoveryClientsResponse
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
433
445
|
class ListErrorFramesResponse
|
434
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
447
|
|
@@ -820,6 +832,12 @@ module Google
|
|
820
832
|
include Google::Apis::Core::JsonObjectSupport
|
821
833
|
end
|
822
834
|
|
835
|
+
class SendDiscoveryClientHeartbeatRequest
|
836
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
837
|
+
|
838
|
+
include Google::Apis::Core::JsonObjectSupport
|
839
|
+
end
|
840
|
+
|
823
841
|
class Settings
|
824
842
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
843
|
|
@@ -1041,6 +1059,7 @@ module Google
|
|
1041
1059
|
# @private
|
1042
1060
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1043
1061
|
hash :attributes, as: 'attributes'
|
1062
|
+
property :collection_type, as: 'collectionType'
|
1044
1063
|
hash :labels, as: 'labels'
|
1045
1064
|
property :machine_details, as: 'machineDetails', class: Google::Apis::MigrationcenterV1::MachineDetails, decorator: Google::Apis::MigrationcenterV1::MachineDetails::Representation
|
1046
1065
|
|
@@ -1241,6 +1260,28 @@ module Google
|
|
1241
1260
|
end
|
1242
1261
|
end
|
1243
1262
|
|
1263
|
+
class DiscoveryClient
|
1264
|
+
# @private
|
1265
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1266
|
+
property :create_time, as: 'createTime'
|
1267
|
+
property :description, as: 'description'
|
1268
|
+
property :display_name, as: 'displayName'
|
1269
|
+
collection :errors, as: 'errors', class: Google::Apis::MigrationcenterV1::Status, decorator: Google::Apis::MigrationcenterV1::Status::Representation
|
1270
|
+
|
1271
|
+
property :expire_time, as: 'expireTime'
|
1272
|
+
property :heartbeat_time, as: 'heartbeatTime'
|
1273
|
+
hash :labels, as: 'labels'
|
1274
|
+
property :name, as: 'name'
|
1275
|
+
property :service_account, as: 'serviceAccount'
|
1276
|
+
property :signals_endpoint, as: 'signalsEndpoint'
|
1277
|
+
property :source, as: 'source'
|
1278
|
+
property :state, as: 'state'
|
1279
|
+
property :ttl, as: 'ttl'
|
1280
|
+
property :update_time, as: 'updateTime'
|
1281
|
+
property :version, as: 'version'
|
1282
|
+
end
|
1283
|
+
end
|
1284
|
+
|
1244
1285
|
class DiskEntry
|
1245
1286
|
# @private
|
1246
1287
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1566,6 +1607,16 @@ module Google
|
|
1566
1607
|
end
|
1567
1608
|
end
|
1568
1609
|
|
1610
|
+
class ListDiscoveryClientsResponse
|
1611
|
+
# @private
|
1612
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1613
|
+
collection :discovery_clients, as: 'discoveryClients', class: Google::Apis::MigrationcenterV1::DiscoveryClient, decorator: Google::Apis::MigrationcenterV1::DiscoveryClient::Representation
|
1614
|
+
|
1615
|
+
property :next_page_token, as: 'nextPageToken'
|
1616
|
+
collection :unreachable, as: 'unreachable'
|
1617
|
+
end
|
1618
|
+
end
|
1619
|
+
|
1569
1620
|
class ListErrorFramesResponse
|
1570
1621
|
# @private
|
1571
1622
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2246,6 +2297,15 @@ module Google
|
|
2246
2297
|
end
|
2247
2298
|
end
|
2248
2299
|
|
2300
|
+
class SendDiscoveryClientHeartbeatRequest
|
2301
|
+
# @private
|
2302
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2303
|
+
collection :errors, as: 'errors', class: Google::Apis::MigrationcenterV1::Status, decorator: Google::Apis::MigrationcenterV1::Status::Representation
|
2304
|
+
|
2305
|
+
property :version, as: 'version'
|
2306
|
+
end
|
2307
|
+
end
|
2308
|
+
|
2249
2309
|
class Settings
|
2250
2310
|
# @private
|
2251
2311
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -515,6 +515,263 @@ module Google
|
|
515
515
|
execute_or_queue_command(command, &block)
|
516
516
|
end
|
517
517
|
|
518
|
+
# Creates a new discovery client.
|
519
|
+
# @param [String] parent
|
520
|
+
# Required. Parent resource.
|
521
|
+
# @param [Google::Apis::MigrationcenterV1::DiscoveryClient] discovery_client_object
|
522
|
+
# @param [String] discovery_client_id
|
523
|
+
# Required. User specified ID for the discovery client. It will become the last
|
524
|
+
# component of the discovery client name. The ID must be unique within the
|
525
|
+
# project, is restricted to lower-cased letters and has a maximum length of 63
|
526
|
+
# characters. The ID must match the regular expression: `[a-z]([a-z0-9-]`0,61`[a-
|
527
|
+
# z0-9])?`.
|
528
|
+
# @param [String] request_id
|
529
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
530
|
+
# request ID so that if you must retry your request, the server will know to
|
531
|
+
# ignore the request if it has already been completed. The server will guarantee
|
532
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
533
|
+
# situation where you make an initial request and the request times out. If you
|
534
|
+
# make the request again with the same request ID, the server can check if
|
535
|
+
# original operation with the same request ID was received, and if so, will
|
536
|
+
# ignore the second request. This prevents clients from accidentally creating
|
537
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
538
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
539
|
+
# @param [String] fields
|
540
|
+
# Selector specifying which fields to include in a partial response.
|
541
|
+
# @param [String] quota_user
|
542
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
543
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
544
|
+
# @param [Google::Apis::RequestOptions] options
|
545
|
+
# Request-specific options
|
546
|
+
#
|
547
|
+
# @yield [result, err] Result & error if block supplied
|
548
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1::Operation] parsed result object
|
549
|
+
# @yieldparam err [StandardError] error object if request failed
|
550
|
+
#
|
551
|
+
# @return [Google::Apis::MigrationcenterV1::Operation]
|
552
|
+
#
|
553
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
554
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
555
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
556
|
+
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)
|
557
|
+
command = make_simple_command(:post, 'v1/{+parent}/discoveryClients', options)
|
558
|
+
command.request_representation = Google::Apis::MigrationcenterV1::DiscoveryClient::Representation
|
559
|
+
command.request_object = discovery_client_object
|
560
|
+
command.response_representation = Google::Apis::MigrationcenterV1::Operation::Representation
|
561
|
+
command.response_class = Google::Apis::MigrationcenterV1::Operation
|
562
|
+
command.params['parent'] = parent unless parent.nil?
|
563
|
+
command.query['discoveryClientId'] = discovery_client_id unless discovery_client_id.nil?
|
564
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
567
|
+
execute_or_queue_command(command, &block)
|
568
|
+
end
|
569
|
+
|
570
|
+
# Deletes a discovery client.
|
571
|
+
# @param [String] name
|
572
|
+
# Required. The discovery client name.
|
573
|
+
# @param [String] request_id
|
574
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
575
|
+
# request ID so that if you must retry your request, the server will know to
|
576
|
+
# ignore the request if it has already been completed. The server will guarantee
|
577
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
578
|
+
# situation where you make an initial request and the request times out. If you
|
579
|
+
# make the request again with the same request ID, the server can check if
|
580
|
+
# original operation with the same request ID was received, and if so, will
|
581
|
+
# ignore the second request. This prevents clients from accidentally creating
|
582
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
583
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
584
|
+
# @param [String] fields
|
585
|
+
# Selector specifying which fields to include in a partial response.
|
586
|
+
# @param [String] quota_user
|
587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
589
|
+
# @param [Google::Apis::RequestOptions] options
|
590
|
+
# Request-specific options
|
591
|
+
#
|
592
|
+
# @yield [result, err] Result & error if block supplied
|
593
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1::Operation] parsed result object
|
594
|
+
# @yieldparam err [StandardError] error object if request failed
|
595
|
+
#
|
596
|
+
# @return [Google::Apis::MigrationcenterV1::Operation]
|
597
|
+
#
|
598
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
599
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
600
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
601
|
+
def delete_project_location_discovery_client(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
602
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
603
|
+
command.response_representation = Google::Apis::MigrationcenterV1::Operation::Representation
|
604
|
+
command.response_class = Google::Apis::MigrationcenterV1::Operation
|
605
|
+
command.params['name'] = name unless name.nil?
|
606
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
607
|
+
command.query['fields'] = fields unless fields.nil?
|
608
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
609
|
+
execute_or_queue_command(command, &block)
|
610
|
+
end
|
611
|
+
|
612
|
+
# Gets the details of a discovery client.
|
613
|
+
# @param [String] name
|
614
|
+
# Required. The discovery client name.
|
615
|
+
# @param [String] fields
|
616
|
+
# Selector specifying which fields to include in a partial response.
|
617
|
+
# @param [String] quota_user
|
618
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
619
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
620
|
+
# @param [Google::Apis::RequestOptions] options
|
621
|
+
# Request-specific options
|
622
|
+
#
|
623
|
+
# @yield [result, err] Result & error if block supplied
|
624
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1::DiscoveryClient] parsed result object
|
625
|
+
# @yieldparam err [StandardError] error object if request failed
|
626
|
+
#
|
627
|
+
# @return [Google::Apis::MigrationcenterV1::DiscoveryClient]
|
628
|
+
#
|
629
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
630
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
631
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
632
|
+
def get_project_location_discovery_client(name, fields: nil, quota_user: nil, options: nil, &block)
|
633
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
634
|
+
command.response_representation = Google::Apis::MigrationcenterV1::DiscoveryClient::Representation
|
635
|
+
command.response_class = Google::Apis::MigrationcenterV1::DiscoveryClient
|
636
|
+
command.params['name'] = name unless name.nil?
|
637
|
+
command.query['fields'] = fields unless fields.nil?
|
638
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
639
|
+
execute_or_queue_command(command, &block)
|
640
|
+
end
|
641
|
+
|
642
|
+
# Lists all the discovery clients in a given project and location.
|
643
|
+
# @param [String] parent
|
644
|
+
# Required. Parent resource.
|
645
|
+
# @param [String] filter
|
646
|
+
# Optional. Filter expression to filter results by.
|
647
|
+
# @param [String] order_by
|
648
|
+
# Optional. Field to sort by.
|
649
|
+
# @param [Fixnum] page_size
|
650
|
+
# Optional. The maximum number of items to return. The server may return fewer
|
651
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
652
|
+
# default value.
|
653
|
+
# @param [String] page_token
|
654
|
+
# Optional. A page token, received from a previous `ListDiscoveryClients` call.
|
655
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
656
|
+
# parameters provided to `ListDiscoveryClients` must match the call that
|
657
|
+
# provided the page token.
|
658
|
+
# @param [String] fields
|
659
|
+
# Selector specifying which fields to include in a partial response.
|
660
|
+
# @param [String] quota_user
|
661
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
662
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
663
|
+
# @param [Google::Apis::RequestOptions] options
|
664
|
+
# Request-specific options
|
665
|
+
#
|
666
|
+
# @yield [result, err] Result & error if block supplied
|
667
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1::ListDiscoveryClientsResponse] parsed result object
|
668
|
+
# @yieldparam err [StandardError] error object if request failed
|
669
|
+
#
|
670
|
+
# @return [Google::Apis::MigrationcenterV1::ListDiscoveryClientsResponse]
|
671
|
+
#
|
672
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
673
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
674
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
675
|
+
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)
|
676
|
+
command = make_simple_command(:get, 'v1/{+parent}/discoveryClients', options)
|
677
|
+
command.response_representation = Google::Apis::MigrationcenterV1::ListDiscoveryClientsResponse::Representation
|
678
|
+
command.response_class = Google::Apis::MigrationcenterV1::ListDiscoveryClientsResponse
|
679
|
+
command.params['parent'] = parent unless parent.nil?
|
680
|
+
command.query['filter'] = filter unless filter.nil?
|
681
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
682
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
683
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
684
|
+
command.query['fields'] = fields unless fields.nil?
|
685
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
686
|
+
execute_or_queue_command(command, &block)
|
687
|
+
end
|
688
|
+
|
689
|
+
# Updates a discovery client.
|
690
|
+
# @param [String] name
|
691
|
+
# Output only. Identifier. Full name of this discovery client.
|
692
|
+
# @param [Google::Apis::MigrationcenterV1::DiscoveryClient] discovery_client_object
|
693
|
+
# @param [String] request_id
|
694
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
695
|
+
# request ID so that if you must retry your request, the server will know to
|
696
|
+
# ignore the request if it has already been completed. The server will guarantee
|
697
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
698
|
+
# situation where you make an initial request and the request times out. If you
|
699
|
+
# make the request again with the same request ID, the server can check if
|
700
|
+
# original operation with the same request ID was received, and if so, will
|
701
|
+
# ignore the second request. This prevents clients from accidentally creating
|
702
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
703
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
704
|
+
# @param [String] update_mask
|
705
|
+
# Required. Update mask is used to specify the fields to be overwritten in the `
|
706
|
+
# DiscoveryClient` resource by the update. The values specified in the `
|
707
|
+
# update_mask` field are relative to the resource, not the full request. A field
|
708
|
+
# will be overwritten if it is in the mask. A single * value in the mask lets
|
709
|
+
# you to overwrite all fields.
|
710
|
+
# @param [String] fields
|
711
|
+
# Selector specifying which fields to include in a partial response.
|
712
|
+
# @param [String] quota_user
|
713
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
714
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
715
|
+
# @param [Google::Apis::RequestOptions] options
|
716
|
+
# Request-specific options
|
717
|
+
#
|
718
|
+
# @yield [result, err] Result & error if block supplied
|
719
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1::Operation] parsed result object
|
720
|
+
# @yieldparam err [StandardError] error object if request failed
|
721
|
+
#
|
722
|
+
# @return [Google::Apis::MigrationcenterV1::Operation]
|
723
|
+
#
|
724
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
725
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
726
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
727
|
+
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)
|
728
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
729
|
+
command.request_representation = Google::Apis::MigrationcenterV1::DiscoveryClient::Representation
|
730
|
+
command.request_object = discovery_client_object
|
731
|
+
command.response_representation = Google::Apis::MigrationcenterV1::Operation::Representation
|
732
|
+
command.response_class = Google::Apis::MigrationcenterV1::Operation
|
733
|
+
command.params['name'] = name unless name.nil?
|
734
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
735
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
736
|
+
command.query['fields'] = fields unless fields.nil?
|
737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
738
|
+
execute_or_queue_command(command, &block)
|
739
|
+
end
|
740
|
+
|
741
|
+
# Sends a discovery client heartbeat. Healthy clients are expected to send
|
742
|
+
# heartbeats regularly (normally every few minutes).
|
743
|
+
# @param [String] name
|
744
|
+
# Required. The discovery client name.
|
745
|
+
# @param [Google::Apis::MigrationcenterV1::SendDiscoveryClientHeartbeatRequest] send_discovery_client_heartbeat_request_object
|
746
|
+
# @param [String] fields
|
747
|
+
# Selector specifying which fields to include in a partial response.
|
748
|
+
# @param [String] quota_user
|
749
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
750
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
751
|
+
# @param [Google::Apis::RequestOptions] options
|
752
|
+
# Request-specific options
|
753
|
+
#
|
754
|
+
# @yield [result, err] Result & error if block supplied
|
755
|
+
# @yieldparam result [Google::Apis::MigrationcenterV1::Operation] parsed result object
|
756
|
+
# @yieldparam err [StandardError] error object if request failed
|
757
|
+
#
|
758
|
+
# @return [Google::Apis::MigrationcenterV1::Operation]
|
759
|
+
#
|
760
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
761
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
762
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
763
|
+
def send_project_location_discovery_client_heartbeat(name, send_discovery_client_heartbeat_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
764
|
+
command = make_simple_command(:post, 'v1/{+name}:sendHeartbeat', options)
|
765
|
+
command.request_representation = Google::Apis::MigrationcenterV1::SendDiscoveryClientHeartbeatRequest::Representation
|
766
|
+
command.request_object = send_discovery_client_heartbeat_request_object
|
767
|
+
command.response_representation = Google::Apis::MigrationcenterV1::Operation::Representation
|
768
|
+
command.response_class = Google::Apis::MigrationcenterV1::Operation
|
769
|
+
command.params['name'] = name unless name.nil?
|
770
|
+
command.query['fields'] = fields unless fields.nil?
|
771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
772
|
+
execute_or_queue_command(command, &block)
|
773
|
+
end
|
774
|
+
|
518
775
|
# Adds assets to a group.
|
519
776
|
# @param [String] group
|
520
777
|
# Required. Group reference.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-migrationcenter_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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-
|
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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1/v0.10.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-migrationcenter_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|