google-apis-migrationcenter_v1 0.9.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf70507196bc4d4bf3bf1b977d3743dd37a6ccde5952cfd4013f509a67206baf
4
- data.tar.gz: 638cf2114d2d3a86fe548497c70e34effaa5738e0ee8746e5cb7bad6711fb347
3
+ metadata.gz: 92baafac6b9cc822e7796dbbdbeff8ed1acd5e1bfbfff956e43230885fabfb1c
4
+ data.tar.gz: ec0aa5425909089b4f396d78966969774bb02c4b9592a19b644a7b7b75877a28
5
5
  SHA512:
6
- metadata.gz: 0b5bfdcb3935cfed376a2f75d5d54e71ce026cc5216b13f78dcabd347a57b29835832caab45679345194b1f70f50d11540545f132f2a40e83416ec1cee2f5688
7
- data.tar.gz: a3ff964ae6e3f8f291330016aa3a9715b9d34b26b4b60bf537ed4c5a3ee7b68821d08479cab6ec707ee0df4d36044ec2e83d6e8f0b281042fcaa861e44758377
6
+ metadata.gz: 7b603d5fd3b0543054d84b82b284f6da49dd7e4e9ffd7bc5cda9bad8972c7d1f7ffff188016349ff10afd3f8c795d969700e85963a6789c5e37146a87a5ea483
7
+ data.tar.gz: 6999e590f2391878d9a5acbdc87f713d31903db4f4ac27fe4bb46b6323e6b2705091010a5cf8521dc1e071702a309ae2dbbf0146f8c5364813d758dc62674857
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-migrationcenter_v1
2
2
 
3
+ ### v0.11.0 (2024-04-21)
4
+
5
+ * Regenerated from discovery document revision 20240411
6
+
7
+ ### v0.10.0 (2024-03-31)
8
+
9
+ * Regenerated from discovery document revision 20240321
10
+
3
11
  ### v0.9.0 (2024-02-24)
4
12
 
5
13
  * Regenerated using generator version 0.14.0
@@ -75,7 +75,8 @@ module Google
75
75
  # @return [Array<Google::Apis::MigrationcenterV1::Aggregation>]
76
76
  attr_accessor :aggregations
77
77
 
78
- # The aggregation will be performed on assets that match the provided filter.
78
+ # Optional. The aggregation will be performed on assets that match the provided
79
+ # filter.
79
80
  # Corresponds to the JSON property `filter`
80
81
  # @return [String]
81
82
  attr_accessor :filter
@@ -456,6 +457,12 @@ module Google
456
457
  # @return [Hash<String,String>]
457
458
  attr_accessor :attributes
458
459
 
460
+ # Optional. Frame collection type, if not specified the collection type will be
461
+ # based on the source type of the source the frame was reported on.
462
+ # Corresponds to the JSON property `collectionType`
463
+ # @return [String]
464
+ attr_accessor :collection_type
465
+
459
466
  # Labels as key value pairs.
460
467
  # Corresponds to the JSON property `labels`
461
468
  # @return [Hash<String,String>]
@@ -490,6 +497,7 @@ module Google
490
497
  # Update properties of this object
491
498
  def update!(**args)
492
499
  @attributes = args[:attributes] if args.key?(:attributes)
500
+ @collection_type = args[:collection_type] if args.key?(:collection_type)
493
501
  @labels = args[:labels] if args.key?(:labels)
494
502
  @machine_details = args[:machine_details] if args.key?(:machine_details)
495
503
  @performance_samples = args[:performance_samples] if args.key?(:performance_samples)
@@ -1092,6 +1100,116 @@ module Google
1092
1100
  end
1093
1101
  end
1094
1102
 
1103
+ # Represents an installed Migration Center Discovery Client instance.
1104
+ class DiscoveryClient
1105
+ include Google::Apis::Core::Hashable
1106
+
1107
+ # Output only. Time when the discovery client was first created.
1108
+ # Corresponds to the JSON property `createTime`
1109
+ # @return [String]
1110
+ attr_accessor :create_time
1111
+
1112
+ # Optional. Free text description. Maximum length is 1000 characters.
1113
+ # Corresponds to the JSON property `description`
1114
+ # @return [String]
1115
+ attr_accessor :description
1116
+
1117
+ # Optional. Free text display name. Maximum length is 63 characters.
1118
+ # Corresponds to the JSON property `displayName`
1119
+ # @return [String]
1120
+ attr_accessor :display_name
1121
+
1122
+ # Output only. Errors affecting client functionality.
1123
+ # Corresponds to the JSON property `errors`
1124
+ # @return [Array<Google::Apis::MigrationcenterV1::Status>]
1125
+ attr_accessor :errors
1126
+
1127
+ # Optional. Client expiration time in UTC. If specified, the backend will not
1128
+ # accept new frames after this time.
1129
+ # Corresponds to the JSON property `expireTime`
1130
+ # @return [String]
1131
+ attr_accessor :expire_time
1132
+
1133
+ # Output only. Last heartbeat time. Healthy clients are expected to send
1134
+ # heartbeats regularly (normally every few minutes).
1135
+ # Corresponds to the JSON property `heartbeatTime`
1136
+ # @return [String]
1137
+ attr_accessor :heartbeat_time
1138
+
1139
+ # Optional. Labels as key value pairs.
1140
+ # Corresponds to the JSON property `labels`
1141
+ # @return [Hash<String,String>]
1142
+ attr_accessor :labels
1143
+
1144
+ # Output only. Identifier. Full name of this discovery client.
1145
+ # Corresponds to the JSON property `name`
1146
+ # @return [String]
1147
+ attr_accessor :name
1148
+
1149
+ # Required. Service account used by the discovery client for various operation.
1150
+ # Corresponds to the JSON property `serviceAccount`
1151
+ # @return [String]
1152
+ attr_accessor :service_account
1153
+
1154
+ # Output only. This field is intended for internal use.
1155
+ # Corresponds to the JSON property `signalsEndpoint`
1156
+ # @return [String]
1157
+ attr_accessor :signals_endpoint
1158
+
1159
+ # Required. Immutable. Full name of the source object associated with this
1160
+ # discovery client.
1161
+ # Corresponds to the JSON property `source`
1162
+ # @return [String]
1163
+ attr_accessor :source
1164
+
1165
+ # Output only. Current state of the discovery client.
1166
+ # Corresponds to the JSON property `state`
1167
+ # @return [String]
1168
+ attr_accessor :state
1169
+
1170
+ # Optional. Input only. Client time-to-live. If specified, the backend will not
1171
+ # accept new frames after this time. This field is input only. The derived
1172
+ # expiration time is provided as output through the `expire_time` field.
1173
+ # Corresponds to the JSON property `ttl`
1174
+ # @return [String]
1175
+ attr_accessor :ttl
1176
+
1177
+ # Output only. Time when the discovery client was last updated. This value is
1178
+ # not updated by heartbeats, to view the last heartbeat time please refer to the
1179
+ # `heartbeat_time` field.
1180
+ # Corresponds to the JSON property `updateTime`
1181
+ # @return [String]
1182
+ attr_accessor :update_time
1183
+
1184
+ # Output only. Client version, as reported in recent heartbeat.
1185
+ # Corresponds to the JSON property `version`
1186
+ # @return [String]
1187
+ attr_accessor :version
1188
+
1189
+ def initialize(**args)
1190
+ update!(**args)
1191
+ end
1192
+
1193
+ # Update properties of this object
1194
+ def update!(**args)
1195
+ @create_time = args[:create_time] if args.key?(:create_time)
1196
+ @description = args[:description] if args.key?(:description)
1197
+ @display_name = args[:display_name] if args.key?(:display_name)
1198
+ @errors = args[:errors] if args.key?(:errors)
1199
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1200
+ @heartbeat_time = args[:heartbeat_time] if args.key?(:heartbeat_time)
1201
+ @labels = args[:labels] if args.key?(:labels)
1202
+ @name = args[:name] if args.key?(:name)
1203
+ @service_account = args[:service_account] if args.key?(:service_account)
1204
+ @signals_endpoint = args[:signals_endpoint] if args.key?(:signals_endpoint)
1205
+ @source = args[:source] if args.key?(:source)
1206
+ @state = args[:state] if args.key?(:state)
1207
+ @ttl = args[:ttl] if args.key?(:ttl)
1208
+ @update_time = args[:update_time] if args.key?(:update_time)
1209
+ @version = args[:version] if args.key?(:version)
1210
+ end
1211
+ end
1212
+
1095
1213
  # Single disk entry.
1096
1214
  class DiskEntry
1097
1215
  include Google::Apis::Core::Hashable
@@ -2152,6 +2270,38 @@ module Google
2152
2270
  end
2153
2271
  end
2154
2272
 
2273
+ # Response message for listing discovery clients.
2274
+ class ListDiscoveryClientsResponse
2275
+ include Google::Apis::Core::Hashable
2276
+
2277
+ # List of discovery clients.
2278
+ # Corresponds to the JSON property `discoveryClients`
2279
+ # @return [Array<Google::Apis::MigrationcenterV1::DiscoveryClient>]
2280
+ attr_accessor :discovery_clients
2281
+
2282
+ # A token that can be sent as `page_token` to retrieve the next page. If this
2283
+ # field is omitted, there are no subsequent pages.
2284
+ # Corresponds to the JSON property `nextPageToken`
2285
+ # @return [String]
2286
+ attr_accessor :next_page_token
2287
+
2288
+ # Locations that could not be reached.
2289
+ # Corresponds to the JSON property `unreachable`
2290
+ # @return [Array<String>]
2291
+ attr_accessor :unreachable
2292
+
2293
+ def initialize(**args)
2294
+ update!(**args)
2295
+ end
2296
+
2297
+ # Update properties of this object
2298
+ def update!(**args)
2299
+ @discovery_clients = args[:discovery_clients] if args.key?(:discovery_clients)
2300
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2301
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2302
+ end
2303
+ end
2304
+
2155
2305
  # A response for listing error frames.
2156
2306
  class ListErrorFramesResponse
2157
2307
  include Google::Apis::Core::Hashable
@@ -2729,13 +2879,16 @@ module Google
2729
2879
  end
2730
2880
  end
2731
2881
 
2732
- # A Compute Engine machine series.
2882
+ # A machine series, for a target product (e.g. Compute Engine, Google Cloud
2883
+ # VMware Engine).
2733
2884
  class MachineSeries
2734
2885
  include Google::Apis::Core::Hashable
2735
2886
 
2736
- # Code to identify a Compute Engine machine series. Consult https://cloud.google.
2737
- # com/compute/docs/machine-resource#machine_type_comparison for more details on
2738
- # the available series.
2887
+ # Code to identify a machine series. Consult this for more details on the
2888
+ # available series for Compute Engine: https://cloud.google.com/compute/docs/
2889
+ # machine-resource#machine_type_comparison Consult this for more details on the
2890
+ # available series for Google Cloud VMware Engine: https://cloud.google.com/
2891
+ # vmware-engine/pricing
2739
2892
  # Corresponds to the JSON property `code`
2740
2893
  # @return [String]
2741
2894
  attr_accessor :code
@@ -4027,7 +4180,8 @@ module Google
4027
4180
  # @return [Fixnum]
4028
4181
  attr_accessor :allocated_asset_count
4029
4182
 
4030
- # A Compute Engine machine series.
4183
+ # A machine series, for a target product (e.g. Compute Engine, Google Cloud
4184
+ # VMware Engine).
4031
4185
  # Corresponds to the JSON property `machineSeries`
4032
4186
  # @return [Google::Apis::MigrationcenterV1::MachineSeries]
4033
4187
  attr_accessor :machine_series
@@ -4397,6 +4551,31 @@ module Google
4397
4551
  end
4398
4552
  end
4399
4553
 
4554
+ # A request to send a discovery client heartbeat.
4555
+ class SendDiscoveryClientHeartbeatRequest
4556
+ include Google::Apis::Core::Hashable
4557
+
4558
+ # Optional. Errors affecting client functionality.
4559
+ # Corresponds to the JSON property `errors`
4560
+ # @return [Array<Google::Apis::MigrationcenterV1::Status>]
4561
+ attr_accessor :errors
4562
+
4563
+ # Optional. Client application version.
4564
+ # Corresponds to the JSON property `version`
4565
+ # @return [String]
4566
+ attr_accessor :version
4567
+
4568
+ def initialize(**args)
4569
+ update!(**args)
4570
+ end
4571
+
4572
+ # Update properties of this object
4573
+ def update!(**args)
4574
+ @errors = args[:errors] if args.key?(:errors)
4575
+ @version = args[:version] if args.key?(:version)
4576
+ end
4577
+ end
4578
+
4400
4579
  # Describes the Migration Center settings related to the project.
4401
4580
  class Settings
4402
4581
  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.9.0"
19
+ GEM_VERSION = "0.11.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 = "20240104"
25
+ REVISION = "20240411"
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.9.0
4
+ version: 0.11.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-02-25 00:00:00.000000000 Z
11
+ date: 2024-04-21 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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-migrationcenter_v1/v0.11.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: []