google-apis-managedkafka_v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7923abf278ee372a6a36ddbb2a59b0332f305155ca5499e9bd68a8cbb4adbc58
|
4
|
+
data.tar.gz: fedadaf02b56a176a48fbc2e17e86966ccd7de0e78650749ca6554051c9b50dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2e7cbef4a18edfe9d996d2ca451f6704cf10b7bddc5822137fef784c327c073d7d572d91fe4d514745b828be1b1320e0f053786cdbfca8b747d2abb619ff7d7
|
7
|
+
data.tar.gz: 35f69404cb482b463ae9a7fbc4c63fc5f35ae981de4f544f09ad5359debadd937a99d6fc995367f3e85da922ef51531fade8e7d25fef18e9bb7e516f5a4e7fee
|
data/CHANGELOG.md
CHANGED
@@ -158,6 +158,216 @@ module Google
|
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
161
|
+
# The configuration of access to the Kafka Connect cluster.
|
162
|
+
class ConnectAccessConfig
|
163
|
+
include Google::Apis::Core::Hashable
|
164
|
+
|
165
|
+
# Required. Virtual Private Cloud (VPC) networks that must be granted direct
|
166
|
+
# access to the Kafka Connect cluster. Minimum of 1 network is required. Maximum
|
167
|
+
# 10 networks can be specified.
|
168
|
+
# Corresponds to the JSON property `networkConfigs`
|
169
|
+
# @return [Array<Google::Apis::ManagedkafkaV1::ConnectNetworkConfig>]
|
170
|
+
attr_accessor :network_configs
|
171
|
+
|
172
|
+
def initialize(**args)
|
173
|
+
update!(**args)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Update properties of this object
|
177
|
+
def update!(**args)
|
178
|
+
@network_configs = args[:network_configs] if args.key?(:network_configs)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# An Apache Kafka Connect cluster deployed in a location.
|
183
|
+
class ConnectCluster
|
184
|
+
include Google::Apis::Core::Hashable
|
185
|
+
|
186
|
+
# A capacity configuration of a Kafka cluster.
|
187
|
+
# Corresponds to the JSON property `capacityConfig`
|
188
|
+
# @return [Google::Apis::ManagedkafkaV1::CapacityConfig]
|
189
|
+
attr_accessor :capacity_config
|
190
|
+
|
191
|
+
# Optional. Configurations for the worker that are overridden from the defaults.
|
192
|
+
# The key of the map is a Kafka Connect worker property name, for example: `
|
193
|
+
# exactly.once.source.support`.
|
194
|
+
# Corresponds to the JSON property `config`
|
195
|
+
# @return [Hash<String,String>]
|
196
|
+
attr_accessor :config
|
197
|
+
|
198
|
+
# Output only. The time when the cluster was created.
|
199
|
+
# Corresponds to the JSON property `createTime`
|
200
|
+
# @return [String]
|
201
|
+
attr_accessor :create_time
|
202
|
+
|
203
|
+
# Configuration properties for a Kafka Connect cluster deployed to Google Cloud
|
204
|
+
# Platform.
|
205
|
+
# Corresponds to the JSON property `gcpConfig`
|
206
|
+
# @return [Google::Apis::ManagedkafkaV1::ConnectGcpConfig]
|
207
|
+
attr_accessor :gcp_config
|
208
|
+
|
209
|
+
# Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster
|
210
|
+
# is attached to. Structured like: projects/`project`/locations/`location`/
|
211
|
+
# clusters/`cluster`
|
212
|
+
# Corresponds to the JSON property `kafkaCluster`
|
213
|
+
# @return [String]
|
214
|
+
attr_accessor :kafka_cluster
|
215
|
+
|
216
|
+
# Optional. Labels as key value pairs.
|
217
|
+
# Corresponds to the JSON property `labels`
|
218
|
+
# @return [Hash<String,String>]
|
219
|
+
attr_accessor :labels
|
220
|
+
|
221
|
+
# Identifier. The name of the Kafka Connect cluster. Structured like: projects/`
|
222
|
+
# project_number`/locations/`location`/connectClusters/`connect_cluster_id`
|
223
|
+
# Corresponds to the JSON property `name`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :name
|
226
|
+
|
227
|
+
# Output only. The current state of the cluster.
|
228
|
+
# Corresponds to the JSON property `state`
|
229
|
+
# @return [String]
|
230
|
+
attr_accessor :state
|
231
|
+
|
232
|
+
# Output only. The time when the cluster was last updated.
|
233
|
+
# Corresponds to the JSON property `updateTime`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :update_time
|
236
|
+
|
237
|
+
def initialize(**args)
|
238
|
+
update!(**args)
|
239
|
+
end
|
240
|
+
|
241
|
+
# Update properties of this object
|
242
|
+
def update!(**args)
|
243
|
+
@capacity_config = args[:capacity_config] if args.key?(:capacity_config)
|
244
|
+
@config = args[:config] if args.key?(:config)
|
245
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
246
|
+
@gcp_config = args[:gcp_config] if args.key?(:gcp_config)
|
247
|
+
@kafka_cluster = args[:kafka_cluster] if args.key?(:kafka_cluster)
|
248
|
+
@labels = args[:labels] if args.key?(:labels)
|
249
|
+
@name = args[:name] if args.key?(:name)
|
250
|
+
@state = args[:state] if args.key?(:state)
|
251
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
# Configuration properties for a Kafka Connect cluster deployed to Google Cloud
|
256
|
+
# Platform.
|
257
|
+
class ConnectGcpConfig
|
258
|
+
include Google::Apis::Core::Hashable
|
259
|
+
|
260
|
+
# The configuration of access to the Kafka Connect cluster.
|
261
|
+
# Corresponds to the JSON property `accessConfig`
|
262
|
+
# @return [Google::Apis::ManagedkafkaV1::ConnectAccessConfig]
|
263
|
+
attr_accessor :access_config
|
264
|
+
|
265
|
+
# Optional. Secrets to load into workers. Exact SecretVersions from Secret
|
266
|
+
# Manager must be provided -- aliases are not supported. Up to 32 secrets may be
|
267
|
+
# loaded into one cluster. Format: projects//secrets//versions/
|
268
|
+
# Corresponds to the JSON property `secretPaths`
|
269
|
+
# @return [Array<String>]
|
270
|
+
attr_accessor :secret_paths
|
271
|
+
|
272
|
+
def initialize(**args)
|
273
|
+
update!(**args)
|
274
|
+
end
|
275
|
+
|
276
|
+
# Update properties of this object
|
277
|
+
def update!(**args)
|
278
|
+
@access_config = args[:access_config] if args.key?(:access_config)
|
279
|
+
@secret_paths = args[:secret_paths] if args.key?(:secret_paths)
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# The configuration of a Virtual Private Cloud (VPC) network that can access the
|
284
|
+
# Kafka Connect cluster.
|
285
|
+
class ConnectNetworkConfig
|
286
|
+
include Google::Apis::Core::Hashable
|
287
|
+
|
288
|
+
# Optional. Additional subnets may be specified. They may be in another region,
|
289
|
+
# but must be in the same VPC network. The Connect workers can communicate with
|
290
|
+
# network endpoints in either the primary or additional subnets.
|
291
|
+
# Corresponds to the JSON property `additionalSubnets`
|
292
|
+
# @return [Array<String>]
|
293
|
+
attr_accessor :additional_subnets
|
294
|
+
|
295
|
+
# Optional. Additional DNS domain names from the subnet's network to be made
|
296
|
+
# visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add
|
297
|
+
# the bootstrap address's dns domain name of the target cluster to make it
|
298
|
+
# visible to the connector. For example: my-kafka-cluster.us-central1.
|
299
|
+
# managedkafka.my-project.cloud.goog
|
300
|
+
# Corresponds to the JSON property `dnsDomainNames`
|
301
|
+
# @return [Array<String>]
|
302
|
+
attr_accessor :dns_domain_names
|
303
|
+
|
304
|
+
# Required. VPC subnet to make available to the Kafka Connect cluster.
|
305
|
+
# Structured like: projects/`project`/regions/`region`/subnetworks/`subnet_id`
|
306
|
+
# It is used to create a Private Service Connect (PSC) interface for the Kafka
|
307
|
+
# Connect workers. It must be located in the same region as the Kafka Connect
|
308
|
+
# cluster. The CIDR range of the subnet must be within the IPv4 address ranges
|
309
|
+
# for private networks, as specified in RFC 1918. The primary subnet CIDR range
|
310
|
+
# must have a minimum size of /22 (1024 addresses).
|
311
|
+
# Corresponds to the JSON property `primarySubnet`
|
312
|
+
# @return [String]
|
313
|
+
attr_accessor :primary_subnet
|
314
|
+
|
315
|
+
def initialize(**args)
|
316
|
+
update!(**args)
|
317
|
+
end
|
318
|
+
|
319
|
+
# Update properties of this object
|
320
|
+
def update!(**args)
|
321
|
+
@additional_subnets = args[:additional_subnets] if args.key?(:additional_subnets)
|
322
|
+
@dns_domain_names = args[:dns_domain_names] if args.key?(:dns_domain_names)
|
323
|
+
@primary_subnet = args[:primary_subnet] if args.key?(:primary_subnet)
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# A Kafka Connect connector in a given ConnectCluster.
|
328
|
+
class Connector
|
329
|
+
include Google::Apis::Core::Hashable
|
330
|
+
|
331
|
+
# Optional. Connector config as keys/values. The keys of the map are connector
|
332
|
+
# property names, for example: `connector.class`, `tasks.max`, `key.converter`.
|
333
|
+
# Corresponds to the JSON property `configs`
|
334
|
+
# @return [Hash<String,String>]
|
335
|
+
attr_accessor :configs
|
336
|
+
|
337
|
+
# Identifier. The name of the connector. Structured like: projects/`project`/
|
338
|
+
# locations/`location`/connectClusters/`connect_cluster`/connectors/`connector`
|
339
|
+
# Corresponds to the JSON property `name`
|
340
|
+
# @return [String]
|
341
|
+
attr_accessor :name
|
342
|
+
|
343
|
+
# Output only. The current state of the connector.
|
344
|
+
# Corresponds to the JSON property `state`
|
345
|
+
# @return [String]
|
346
|
+
attr_accessor :state
|
347
|
+
|
348
|
+
# Task Retry Policy is implemented on a best-effort basis. Retry delay will be
|
349
|
+
# exponential based on provided minimum and maximum backoffs. https://en.
|
350
|
+
# wikipedia.org/wiki/Exponential_backoff. Note that the delay between
|
351
|
+
# consecutive task restarts may not always precisely match the configured
|
352
|
+
# settings. This can happen when the ConnectCluster is in rebalancing state or
|
353
|
+
# if the ConnectCluster is unresponsive etc.
|
354
|
+
# Corresponds to the JSON property `taskRestartPolicy`
|
355
|
+
# @return [Google::Apis::ManagedkafkaV1::TaskRetryPolicy]
|
356
|
+
attr_accessor :task_restart_policy
|
357
|
+
|
358
|
+
def initialize(**args)
|
359
|
+
update!(**args)
|
360
|
+
end
|
361
|
+
|
362
|
+
# Update properties of this object
|
363
|
+
def update!(**args)
|
364
|
+
@configs = args[:configs] if args.key?(:configs)
|
365
|
+
@name = args[:name] if args.key?(:name)
|
366
|
+
@state = args[:state] if args.key?(:state)
|
367
|
+
@task_restart_policy = args[:task_restart_policy] if args.key?(:task_restart_policy)
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
161
371
|
# A Kafka consumer group in a given cluster.
|
162
372
|
class ConsumerGroup
|
163
373
|
include Google::Apis::Core::Hashable
|
@@ -311,6 +521,64 @@ module Google
|
|
311
521
|
end
|
312
522
|
end
|
313
523
|
|
524
|
+
# Response for ListConnectClusters.
|
525
|
+
class ListConnectClustersResponse
|
526
|
+
include Google::Apis::Core::Hashable
|
527
|
+
|
528
|
+
# The list of Connect clusters in the requested parent.
|
529
|
+
# Corresponds to the JSON property `connectClusters`
|
530
|
+
# @return [Array<Google::Apis::ManagedkafkaV1::ConnectCluster>]
|
531
|
+
attr_accessor :connect_clusters
|
532
|
+
|
533
|
+
# A token that can be sent as `page_token` to retrieve the next page of results.
|
534
|
+
# If this field is omitted, there are no more results.
|
535
|
+
# Corresponds to the JSON property `nextPageToken`
|
536
|
+
# @return [String]
|
537
|
+
attr_accessor :next_page_token
|
538
|
+
|
539
|
+
# Locations that could not be reached.
|
540
|
+
# Corresponds to the JSON property `unreachable`
|
541
|
+
# @return [Array<String>]
|
542
|
+
attr_accessor :unreachable
|
543
|
+
|
544
|
+
def initialize(**args)
|
545
|
+
update!(**args)
|
546
|
+
end
|
547
|
+
|
548
|
+
# Update properties of this object
|
549
|
+
def update!(**args)
|
550
|
+
@connect_clusters = args[:connect_clusters] if args.key?(:connect_clusters)
|
551
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
552
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
556
|
+
# Response for ListConnectors.
|
557
|
+
class ListConnectorsResponse
|
558
|
+
include Google::Apis::Core::Hashable
|
559
|
+
|
560
|
+
# The list of connectors in the requested parent.
|
561
|
+
# Corresponds to the JSON property `connectors`
|
562
|
+
# @return [Array<Google::Apis::ManagedkafkaV1::Connector>]
|
563
|
+
attr_accessor :connectors
|
564
|
+
|
565
|
+
# A token that can be sent as `page_token` to retrieve the next page of results.
|
566
|
+
# If this field is omitted, there are no more results.
|
567
|
+
# Corresponds to the JSON property `nextPageToken`
|
568
|
+
# @return [String]
|
569
|
+
attr_accessor :next_page_token
|
570
|
+
|
571
|
+
def initialize(**args)
|
572
|
+
update!(**args)
|
573
|
+
end
|
574
|
+
|
575
|
+
# Update properties of this object
|
576
|
+
def update!(**args)
|
577
|
+
@connectors = args[:connectors] if args.key?(:connectors)
|
578
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
314
582
|
# Response for ListConsumerGroups.
|
315
583
|
class ListConsumerGroupsResponse
|
316
584
|
include Google::Apis::Core::Hashable
|
@@ -607,6 +875,32 @@ module Google
|
|
607
875
|
end
|
608
876
|
end
|
609
877
|
|
878
|
+
# Request for PauseConnector.
|
879
|
+
class PauseConnectorRequest
|
880
|
+
include Google::Apis::Core::Hashable
|
881
|
+
|
882
|
+
def initialize(**args)
|
883
|
+
update!(**args)
|
884
|
+
end
|
885
|
+
|
886
|
+
# Update properties of this object
|
887
|
+
def update!(**args)
|
888
|
+
end
|
889
|
+
end
|
890
|
+
|
891
|
+
# Response for PauseConnector.
|
892
|
+
class PauseConnectorResponse
|
893
|
+
include Google::Apis::Core::Hashable
|
894
|
+
|
895
|
+
def initialize(**args)
|
896
|
+
update!(**args)
|
897
|
+
end
|
898
|
+
|
899
|
+
# Update properties of this object
|
900
|
+
def update!(**args)
|
901
|
+
end
|
902
|
+
end
|
903
|
+
|
610
904
|
# Defines rebalancing behavior of a Kafka cluster.
|
611
905
|
class RebalanceConfig
|
612
906
|
include Google::Apis::Core::Hashable
|
@@ -627,6 +921,58 @@ module Google
|
|
627
921
|
end
|
628
922
|
end
|
629
923
|
|
924
|
+
# Request for RestartConnector.
|
925
|
+
class RestartConnectorRequest
|
926
|
+
include Google::Apis::Core::Hashable
|
927
|
+
|
928
|
+
def initialize(**args)
|
929
|
+
update!(**args)
|
930
|
+
end
|
931
|
+
|
932
|
+
# Update properties of this object
|
933
|
+
def update!(**args)
|
934
|
+
end
|
935
|
+
end
|
936
|
+
|
937
|
+
# Response for RestartConnector.
|
938
|
+
class RestartConnectorResponse
|
939
|
+
include Google::Apis::Core::Hashable
|
940
|
+
|
941
|
+
def initialize(**args)
|
942
|
+
update!(**args)
|
943
|
+
end
|
944
|
+
|
945
|
+
# Update properties of this object
|
946
|
+
def update!(**args)
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
# Request for ResumeConnector.
|
951
|
+
class ResumeConnectorRequest
|
952
|
+
include Google::Apis::Core::Hashable
|
953
|
+
|
954
|
+
def initialize(**args)
|
955
|
+
update!(**args)
|
956
|
+
end
|
957
|
+
|
958
|
+
# Update properties of this object
|
959
|
+
def update!(**args)
|
960
|
+
end
|
961
|
+
end
|
962
|
+
|
963
|
+
# Response for ResumeConnector.
|
964
|
+
class ResumeConnectorResponse
|
965
|
+
include Google::Apis::Core::Hashable
|
966
|
+
|
967
|
+
def initialize(**args)
|
968
|
+
update!(**args)
|
969
|
+
end
|
970
|
+
|
971
|
+
# Update properties of this object
|
972
|
+
def update!(**args)
|
973
|
+
end
|
974
|
+
end
|
975
|
+
|
630
976
|
# The `Status` type defines a logical error model that is suitable for different
|
631
977
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
632
978
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -666,6 +1012,64 @@ module Google
|
|
666
1012
|
end
|
667
1013
|
end
|
668
1014
|
|
1015
|
+
# Request for StopConnector.
|
1016
|
+
class StopConnectorRequest
|
1017
|
+
include Google::Apis::Core::Hashable
|
1018
|
+
|
1019
|
+
def initialize(**args)
|
1020
|
+
update!(**args)
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
# Update properties of this object
|
1024
|
+
def update!(**args)
|
1025
|
+
end
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Response for StopConnector.
|
1029
|
+
class StopConnectorResponse
|
1030
|
+
include Google::Apis::Core::Hashable
|
1031
|
+
|
1032
|
+
def initialize(**args)
|
1033
|
+
update!(**args)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Update properties of this object
|
1037
|
+
def update!(**args)
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
# Task Retry Policy is implemented on a best-effort basis. Retry delay will be
|
1042
|
+
# exponential based on provided minimum and maximum backoffs. https://en.
|
1043
|
+
# wikipedia.org/wiki/Exponential_backoff. Note that the delay between
|
1044
|
+
# consecutive task restarts may not always precisely match the configured
|
1045
|
+
# settings. This can happen when the ConnectCluster is in rebalancing state or
|
1046
|
+
# if the ConnectCluster is unresponsive etc.
|
1047
|
+
class TaskRetryPolicy
|
1048
|
+
include Google::Apis::Core::Hashable
|
1049
|
+
|
1050
|
+
# Optional. The maximum amount of time to wait before retrying a failed task.
|
1051
|
+
# This sets an upper bound for the backoff delay.
|
1052
|
+
# Corresponds to the JSON property `maximumBackoff`
|
1053
|
+
# @return [String]
|
1054
|
+
attr_accessor :maximum_backoff
|
1055
|
+
|
1056
|
+
# Optional. The minimum amount of time to wait before retrying a failed task.
|
1057
|
+
# This sets a lower bound for the backoff delay.
|
1058
|
+
# Corresponds to the JSON property `minimumBackoff`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :minimum_backoff
|
1061
|
+
|
1062
|
+
def initialize(**args)
|
1063
|
+
update!(**args)
|
1064
|
+
end
|
1065
|
+
|
1066
|
+
# Update properties of this object
|
1067
|
+
def update!(**args)
|
1068
|
+
@maximum_backoff = args[:maximum_backoff] if args.key?(:maximum_backoff)
|
1069
|
+
@minimum_backoff = args[:minimum_backoff] if args.key?(:minimum_backoff)
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
|
669
1073
|
# A Kafka topic in a given cluster.
|
670
1074
|
class Topic
|
671
1075
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ManagedkafkaV1
|
18
18
|
# Version of the google-apis-managedkafka_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250313"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,36 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class ConnectAccessConfig
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ConnectCluster
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ConnectGcpConfig
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class ConnectNetworkConfig
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Connector
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
49
79
|
class ConsumerGroup
|
50
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
81
|
|
@@ -82,6 +112,18 @@ module Google
|
|
82
112
|
include Google::Apis::Core::JsonObjectSupport
|
83
113
|
end
|
84
114
|
|
115
|
+
class ListConnectClustersResponse
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ListConnectorsResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
85
127
|
class ListConsumerGroupsResponse
|
86
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
129
|
|
@@ -130,18 +172,72 @@ module Google
|
|
130
172
|
include Google::Apis::Core::JsonObjectSupport
|
131
173
|
end
|
132
174
|
|
175
|
+
class PauseConnectorRequest
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class PauseConnectorResponse
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
133
187
|
class RebalanceConfig
|
134
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
189
|
|
136
190
|
include Google::Apis::Core::JsonObjectSupport
|
137
191
|
end
|
138
192
|
|
193
|
+
class RestartConnectorRequest
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class RestartConnectorResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
|
+
class ResumeConnectorRequest
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class ResumeConnectorResponse
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
139
217
|
class Status
|
140
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
219
|
|
142
220
|
include Google::Apis::Core::JsonObjectSupport
|
143
221
|
end
|
144
222
|
|
223
|
+
class StopConnectorRequest
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
229
|
+
class StopConnectorResponse
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
235
|
+
class TaskRetryPolicy
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
145
241
|
class Topic
|
146
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
243
|
|
@@ -189,6 +285,60 @@ module Google
|
|
189
285
|
end
|
190
286
|
end
|
191
287
|
|
288
|
+
class ConnectAccessConfig
|
289
|
+
# @private
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
291
|
+
collection :network_configs, as: 'networkConfigs', class: Google::Apis::ManagedkafkaV1::ConnectNetworkConfig, decorator: Google::Apis::ManagedkafkaV1::ConnectNetworkConfig::Representation
|
292
|
+
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
class ConnectCluster
|
297
|
+
# @private
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
property :capacity_config, as: 'capacityConfig', class: Google::Apis::ManagedkafkaV1::CapacityConfig, decorator: Google::Apis::ManagedkafkaV1::CapacityConfig::Representation
|
300
|
+
|
301
|
+
hash :config, as: 'config'
|
302
|
+
property :create_time, as: 'createTime'
|
303
|
+
property :gcp_config, as: 'gcpConfig', class: Google::Apis::ManagedkafkaV1::ConnectGcpConfig, decorator: Google::Apis::ManagedkafkaV1::ConnectGcpConfig::Representation
|
304
|
+
|
305
|
+
property :kafka_cluster, as: 'kafkaCluster'
|
306
|
+
hash :labels, as: 'labels'
|
307
|
+
property :name, as: 'name'
|
308
|
+
property :state, as: 'state'
|
309
|
+
property :update_time, as: 'updateTime'
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
class ConnectGcpConfig
|
314
|
+
# @private
|
315
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
+
property :access_config, as: 'accessConfig', class: Google::Apis::ManagedkafkaV1::ConnectAccessConfig, decorator: Google::Apis::ManagedkafkaV1::ConnectAccessConfig::Representation
|
317
|
+
|
318
|
+
collection :secret_paths, as: 'secretPaths'
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
class ConnectNetworkConfig
|
323
|
+
# @private
|
324
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
325
|
+
collection :additional_subnets, as: 'additionalSubnets'
|
326
|
+
collection :dns_domain_names, as: 'dnsDomainNames'
|
327
|
+
property :primary_subnet, as: 'primarySubnet'
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
class Connector
|
332
|
+
# @private
|
333
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
334
|
+
hash :configs, as: 'configs'
|
335
|
+
property :name, as: 'name'
|
336
|
+
property :state, as: 'state'
|
337
|
+
property :task_restart_policy, as: 'taskRestartPolicy', class: Google::Apis::ManagedkafkaV1::TaskRetryPolicy, decorator: Google::Apis::ManagedkafkaV1::TaskRetryPolicy::Representation
|
338
|
+
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
192
342
|
class ConsumerGroup
|
193
343
|
# @private
|
194
344
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -239,6 +389,25 @@ module Google
|
|
239
389
|
end
|
240
390
|
end
|
241
391
|
|
392
|
+
class ListConnectClustersResponse
|
393
|
+
# @private
|
394
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
395
|
+
collection :connect_clusters, as: 'connectClusters', class: Google::Apis::ManagedkafkaV1::ConnectCluster, decorator: Google::Apis::ManagedkafkaV1::ConnectCluster::Representation
|
396
|
+
|
397
|
+
property :next_page_token, as: 'nextPageToken'
|
398
|
+
collection :unreachable, as: 'unreachable'
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
class ListConnectorsResponse
|
403
|
+
# @private
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
405
|
+
collection :connectors, as: 'connectors', class: Google::Apis::ManagedkafkaV1::Connector, decorator: Google::Apis::ManagedkafkaV1::Connector::Representation
|
406
|
+
|
407
|
+
property :next_page_token, as: 'nextPageToken'
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
242
411
|
class ListConsumerGroupsResponse
|
243
412
|
# @private
|
244
413
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -318,6 +487,18 @@ module Google
|
|
318
487
|
end
|
319
488
|
end
|
320
489
|
|
490
|
+
class PauseConnectorRequest
|
491
|
+
# @private
|
492
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
493
|
+
end
|
494
|
+
end
|
495
|
+
|
496
|
+
class PauseConnectorResponse
|
497
|
+
# @private
|
498
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
499
|
+
end
|
500
|
+
end
|
501
|
+
|
321
502
|
class RebalanceConfig
|
322
503
|
# @private
|
323
504
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -325,6 +506,30 @@ module Google
|
|
325
506
|
end
|
326
507
|
end
|
327
508
|
|
509
|
+
class RestartConnectorRequest
|
510
|
+
# @private
|
511
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
512
|
+
end
|
513
|
+
end
|
514
|
+
|
515
|
+
class RestartConnectorResponse
|
516
|
+
# @private
|
517
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
521
|
+
class ResumeConnectorRequest
|
522
|
+
# @private
|
523
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
527
|
+
class ResumeConnectorResponse
|
528
|
+
# @private
|
529
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
328
533
|
class Status
|
329
534
|
# @private
|
330
535
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -334,6 +539,26 @@ module Google
|
|
334
539
|
end
|
335
540
|
end
|
336
541
|
|
542
|
+
class StopConnectorRequest
|
543
|
+
# @private
|
544
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
class StopConnectorResponse
|
549
|
+
# @private
|
550
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
551
|
+
end
|
552
|
+
end
|
553
|
+
|
554
|
+
class TaskRetryPolicy
|
555
|
+
# @private
|
556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
557
|
+
property :maximum_backoff, as: 'maximumBackoff'
|
558
|
+
property :minimum_backoff, as: 'minimumBackoff'
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
337
562
|
class Topic
|
338
563
|
# @private
|
339
564
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -677,6 +677,562 @@ module Google
|
|
677
677
|
execute_or_queue_command(command, &block)
|
678
678
|
end
|
679
679
|
|
680
|
+
# Creates a new Kafka Connect cluster in a given project and location.
|
681
|
+
# @param [String] parent
|
682
|
+
# Required. The parent project/location in which to create the Kafka Connect
|
683
|
+
# cluster. Structured like `projects/`project`/locations/`location`/`.
|
684
|
+
# @param [Google::Apis::ManagedkafkaV1::ConnectCluster] connect_cluster_object
|
685
|
+
# @param [String] connect_cluster_id
|
686
|
+
# Required. The ID to use for the Connect cluster, which will become the final
|
687
|
+
# component of the cluster's name. The ID must be 1-63 characters long, and
|
688
|
+
# match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC
|
689
|
+
# 1035. This value is structured like: `my-cluster-id`.
|
690
|
+
# @param [String] request_id
|
691
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
692
|
+
# request ID to avoid duplication of requests. If a request times out or fails,
|
693
|
+
# retrying with the same ID allows the server to recognize the previous attempt.
|
694
|
+
# For at least 60 minutes, the server ignores duplicate requests bearing the
|
695
|
+
# same ID. For example, consider a situation where you make an initial request
|
696
|
+
# and the request times out. If you make the request again with the same request
|
697
|
+
# ID within 60 minutes of the last request, the server checks if an original
|
698
|
+
# operation with the same request ID was received. If so, the server ignores the
|
699
|
+
# second request. The request ID must be a valid UUID. A zero UUID is not
|
700
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
701
|
+
# @param [String] fields
|
702
|
+
# Selector specifying which fields to include in a partial response.
|
703
|
+
# @param [String] quota_user
|
704
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
705
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
706
|
+
# @param [Google::Apis::RequestOptions] options
|
707
|
+
# Request-specific options
|
708
|
+
#
|
709
|
+
# @yield [result, err] Result & error if block supplied
|
710
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::Operation] parsed result object
|
711
|
+
# @yieldparam err [StandardError] error object if request failed
|
712
|
+
#
|
713
|
+
# @return [Google::Apis::ManagedkafkaV1::Operation]
|
714
|
+
#
|
715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
718
|
+
def create_project_location_connect_cluster(parent, connect_cluster_object = nil, connect_cluster_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
719
|
+
command = make_simple_command(:post, 'v1/{+parent}/connectClusters', options)
|
720
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::ConnectCluster::Representation
|
721
|
+
command.request_object = connect_cluster_object
|
722
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::Operation::Representation
|
723
|
+
command.response_class = Google::Apis::ManagedkafkaV1::Operation
|
724
|
+
command.params['parent'] = parent unless parent.nil?
|
725
|
+
command.query['connectClusterId'] = connect_cluster_id unless connect_cluster_id.nil?
|
726
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
727
|
+
command.query['fields'] = fields unless fields.nil?
|
728
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
729
|
+
execute_or_queue_command(command, &block)
|
730
|
+
end
|
731
|
+
|
732
|
+
# Deletes a single Connect cluster.
|
733
|
+
# @param [String] name
|
734
|
+
# Required. The name of the Kafka Connect cluster to delete. Structured like `
|
735
|
+
# projects/`project`/locations/`location`/connectClusters/`connect_cluster_id``.
|
736
|
+
# @param [String] request_id
|
737
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
738
|
+
# request ID to avoid duplication of requests. If a request times out or fails,
|
739
|
+
# retrying with the same ID allows the server to recognize the previous attempt.
|
740
|
+
# For at least 60 minutes, the server ignores duplicate requests bearing the
|
741
|
+
# same ID. For example, consider a situation where you make an initial request
|
742
|
+
# and the request times out. If you make the request again with the same request
|
743
|
+
# ID within 60 minutes of the last request, the server checks if an original
|
744
|
+
# operation with the same request ID was received. If so, the server ignores the
|
745
|
+
# second request. The request ID must be a valid UUID. A zero UUID is not
|
746
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
747
|
+
# @param [String] fields
|
748
|
+
# Selector specifying which fields to include in a partial response.
|
749
|
+
# @param [String] quota_user
|
750
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
751
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
752
|
+
# @param [Google::Apis::RequestOptions] options
|
753
|
+
# Request-specific options
|
754
|
+
#
|
755
|
+
# @yield [result, err] Result & error if block supplied
|
756
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::Operation] parsed result object
|
757
|
+
# @yieldparam err [StandardError] error object if request failed
|
758
|
+
#
|
759
|
+
# @return [Google::Apis::ManagedkafkaV1::Operation]
|
760
|
+
#
|
761
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
762
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
763
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
764
|
+
def delete_project_location_connect_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
765
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
766
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::Operation::Representation
|
767
|
+
command.response_class = Google::Apis::ManagedkafkaV1::Operation
|
768
|
+
command.params['name'] = name unless name.nil?
|
769
|
+
command.query['requestId'] = request_id unless request_id.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
|
+
|
775
|
+
# Returns the properties of a single Kafka Connect cluster.
|
776
|
+
# @param [String] name
|
777
|
+
# Required. The name of the Kafka Connect cluster whose configuration to return.
|
778
|
+
# Structured like `projects/`project`/locations/`location`/connectClusters/`
|
779
|
+
# connect_cluster_id``.
|
780
|
+
# @param [String] fields
|
781
|
+
# Selector specifying which fields to include in a partial response.
|
782
|
+
# @param [String] quota_user
|
783
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
784
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
785
|
+
# @param [Google::Apis::RequestOptions] options
|
786
|
+
# Request-specific options
|
787
|
+
#
|
788
|
+
# @yield [result, err] Result & error if block supplied
|
789
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::ConnectCluster] parsed result object
|
790
|
+
# @yieldparam err [StandardError] error object if request failed
|
791
|
+
#
|
792
|
+
# @return [Google::Apis::ManagedkafkaV1::ConnectCluster]
|
793
|
+
#
|
794
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
795
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
796
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
797
|
+
def get_project_location_connect_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
798
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
799
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::ConnectCluster::Representation
|
800
|
+
command.response_class = Google::Apis::ManagedkafkaV1::ConnectCluster
|
801
|
+
command.params['name'] = name unless name.nil?
|
802
|
+
command.query['fields'] = fields unless fields.nil?
|
803
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
804
|
+
execute_or_queue_command(command, &block)
|
805
|
+
end
|
806
|
+
|
807
|
+
# Lists the Kafka Connect clusters in a given project and location.
|
808
|
+
# @param [String] parent
|
809
|
+
# Required. The parent project/location whose Connect clusters are to be listed.
|
810
|
+
# Structured like `projects/`project`/locations/`location``.
|
811
|
+
# @param [String] filter
|
812
|
+
# Optional. Filter expression for the result.
|
813
|
+
# @param [String] order_by
|
814
|
+
# Optional. Order by fields for the result.
|
815
|
+
# @param [Fixnum] page_size
|
816
|
+
# Optional. The maximum number of Connect clusters to return. The service may
|
817
|
+
# return fewer than this value. If unspecified, server will pick an appropriate
|
818
|
+
# default.
|
819
|
+
# @param [String] page_token
|
820
|
+
# Optional. A page token, received from a previous `ListConnectClusters` call.
|
821
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
822
|
+
# parameters provided to `ListConnectClusters` must match the call that provided
|
823
|
+
# the page token.
|
824
|
+
# @param [String] fields
|
825
|
+
# Selector specifying which fields to include in a partial response.
|
826
|
+
# @param [String] quota_user
|
827
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
828
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
829
|
+
# @param [Google::Apis::RequestOptions] options
|
830
|
+
# Request-specific options
|
831
|
+
#
|
832
|
+
# @yield [result, err] Result & error if block supplied
|
833
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::ListConnectClustersResponse] parsed result object
|
834
|
+
# @yieldparam err [StandardError] error object if request failed
|
835
|
+
#
|
836
|
+
# @return [Google::Apis::ManagedkafkaV1::ListConnectClustersResponse]
|
837
|
+
#
|
838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
841
|
+
def list_project_location_connect_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
842
|
+
command = make_simple_command(:get, 'v1/{+parent}/connectClusters', options)
|
843
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::ListConnectClustersResponse::Representation
|
844
|
+
command.response_class = Google::Apis::ManagedkafkaV1::ListConnectClustersResponse
|
845
|
+
command.params['parent'] = parent unless parent.nil?
|
846
|
+
command.query['filter'] = filter unless filter.nil?
|
847
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
848
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
849
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
850
|
+
command.query['fields'] = fields unless fields.nil?
|
851
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
852
|
+
execute_or_queue_command(command, &block)
|
853
|
+
end
|
854
|
+
|
855
|
+
# Updates the properties of a single Kafka Connect cluster.
|
856
|
+
# @param [String] name
|
857
|
+
# Identifier. The name of the Kafka Connect cluster. Structured like: projects/`
|
858
|
+
# project_number`/locations/`location`/connectClusters/`connect_cluster_id`
|
859
|
+
# @param [Google::Apis::ManagedkafkaV1::ConnectCluster] connect_cluster_object
|
860
|
+
# @param [String] request_id
|
861
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
862
|
+
# request ID to avoid duplication of requests. If a request times out or fails,
|
863
|
+
# retrying with the same ID allows the server to recognize the previous attempt.
|
864
|
+
# For at least 60 minutes, the server ignores duplicate requests bearing the
|
865
|
+
# same ID. For example, consider a situation where you make an initial request
|
866
|
+
# and the request times out. If you make the request again with the same request
|
867
|
+
# ID within 60 minutes of the last request, the server checks if an original
|
868
|
+
# operation with the same request ID was received. If so, the server ignores the
|
869
|
+
# second request. The request ID must be a valid UUID. A zero UUID is not
|
870
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
871
|
+
# @param [String] update_mask
|
872
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
873
|
+
# cluster resource by the update. The fields specified in the update_mask are
|
874
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
875
|
+
# it is in the mask. The mask is required and a value of * will update all
|
876
|
+
# fields.
|
877
|
+
# @param [String] fields
|
878
|
+
# Selector specifying which fields to include in a partial response.
|
879
|
+
# @param [String] quota_user
|
880
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
881
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
882
|
+
# @param [Google::Apis::RequestOptions] options
|
883
|
+
# Request-specific options
|
884
|
+
#
|
885
|
+
# @yield [result, err] Result & error if block supplied
|
886
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::Operation] parsed result object
|
887
|
+
# @yieldparam err [StandardError] error object if request failed
|
888
|
+
#
|
889
|
+
# @return [Google::Apis::ManagedkafkaV1::Operation]
|
890
|
+
#
|
891
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
892
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
893
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
894
|
+
def patch_project_location_connect_cluster(name, connect_cluster_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
895
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
896
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::ConnectCluster::Representation
|
897
|
+
command.request_object = connect_cluster_object
|
898
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::Operation::Representation
|
899
|
+
command.response_class = Google::Apis::ManagedkafkaV1::Operation
|
900
|
+
command.params['name'] = name unless name.nil?
|
901
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
902
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
903
|
+
command.query['fields'] = fields unless fields.nil?
|
904
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
905
|
+
execute_or_queue_command(command, &block)
|
906
|
+
end
|
907
|
+
|
908
|
+
# Creates a new connector in a given Connect cluster.
|
909
|
+
# @param [String] parent
|
910
|
+
# Required. The parent Connect cluster in which to create the connector.
|
911
|
+
# Structured like `projects/`project`/locations/`location`/connectClusters/`
|
912
|
+
# connect_cluster_id``.
|
913
|
+
# @param [Google::Apis::ManagedkafkaV1::Connector] connector_object
|
914
|
+
# @param [String] connector_id
|
915
|
+
# Required. The ID to use for the connector, which will become the final
|
916
|
+
# component of the connector's name. The ID must be 1-63 characters long, and
|
917
|
+
# match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with RFC
|
918
|
+
# 1035. This value is structured like: `my-connector-id`.
|
919
|
+
# @param [String] fields
|
920
|
+
# Selector specifying which fields to include in a partial response.
|
921
|
+
# @param [String] quota_user
|
922
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
923
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
924
|
+
# @param [Google::Apis::RequestOptions] options
|
925
|
+
# Request-specific options
|
926
|
+
#
|
927
|
+
# @yield [result, err] Result & error if block supplied
|
928
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::Connector] parsed result object
|
929
|
+
# @yieldparam err [StandardError] error object if request failed
|
930
|
+
#
|
931
|
+
# @return [Google::Apis::ManagedkafkaV1::Connector]
|
932
|
+
#
|
933
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
934
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
935
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
936
|
+
def create_project_location_connect_cluster_connector(parent, connector_object = nil, connector_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
937
|
+
command = make_simple_command(:post, 'v1/{+parent}/connectors', options)
|
938
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::Connector::Representation
|
939
|
+
command.request_object = connector_object
|
940
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::Connector::Representation
|
941
|
+
command.response_class = Google::Apis::ManagedkafkaV1::Connector
|
942
|
+
command.params['parent'] = parent unless parent.nil?
|
943
|
+
command.query['connectorId'] = connector_id unless connector_id.nil?
|
944
|
+
command.query['fields'] = fields unless fields.nil?
|
945
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
946
|
+
execute_or_queue_command(command, &block)
|
947
|
+
end
|
948
|
+
|
949
|
+
# Deletes a connector.
|
950
|
+
# @param [String] name
|
951
|
+
# Required. The name of the connector to delete. Structured like: projects/`
|
952
|
+
# project`/locations/`location`/connectClusters/`connectCluster`/connectors/`
|
953
|
+
# connector`
|
954
|
+
# @param [String] fields
|
955
|
+
# Selector specifying which fields to include in a partial response.
|
956
|
+
# @param [String] quota_user
|
957
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
958
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
959
|
+
# @param [Google::Apis::RequestOptions] options
|
960
|
+
# Request-specific options
|
961
|
+
#
|
962
|
+
# @yield [result, err] Result & error if block supplied
|
963
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::Empty] parsed result object
|
964
|
+
# @yieldparam err [StandardError] error object if request failed
|
965
|
+
#
|
966
|
+
# @return [Google::Apis::ManagedkafkaV1::Empty]
|
967
|
+
#
|
968
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
969
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
970
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
971
|
+
def delete_project_location_connect_cluster_connector(name, fields: nil, quota_user: nil, options: nil, &block)
|
972
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
973
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::Empty::Representation
|
974
|
+
command.response_class = Google::Apis::ManagedkafkaV1::Empty
|
975
|
+
command.params['name'] = name unless name.nil?
|
976
|
+
command.query['fields'] = fields unless fields.nil?
|
977
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
978
|
+
execute_or_queue_command(command, &block)
|
979
|
+
end
|
980
|
+
|
981
|
+
# Returns the properties of a single connector.
|
982
|
+
# @param [String] name
|
983
|
+
# Required. The name of the connector whose configuration to return. Structured
|
984
|
+
# like: projects/`project`/locations/`location`/connectClusters/`connectCluster`/
|
985
|
+
# connectors/`connector`
|
986
|
+
# @param [String] fields
|
987
|
+
# Selector specifying which fields to include in a partial response.
|
988
|
+
# @param [String] quota_user
|
989
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
990
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
991
|
+
# @param [Google::Apis::RequestOptions] options
|
992
|
+
# Request-specific options
|
993
|
+
#
|
994
|
+
# @yield [result, err] Result & error if block supplied
|
995
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::Connector] parsed result object
|
996
|
+
# @yieldparam err [StandardError] error object if request failed
|
997
|
+
#
|
998
|
+
# @return [Google::Apis::ManagedkafkaV1::Connector]
|
999
|
+
#
|
1000
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1001
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1002
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1003
|
+
def get_project_location_connect_cluster_connector(name, fields: nil, quota_user: nil, options: nil, &block)
|
1004
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1005
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::Connector::Representation
|
1006
|
+
command.response_class = Google::Apis::ManagedkafkaV1::Connector
|
1007
|
+
command.params['name'] = name unless name.nil?
|
1008
|
+
command.query['fields'] = fields unless fields.nil?
|
1009
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1010
|
+
execute_or_queue_command(command, &block)
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
# Lists the connectors in a given Connect cluster.
|
1014
|
+
# @param [String] parent
|
1015
|
+
# Required. The parent Connect cluster whose connectors are to be listed.
|
1016
|
+
# Structured like `projects/`project`/locations/`location`/connectClusters/`
|
1017
|
+
# connect_cluster_id``.
|
1018
|
+
# @param [Fixnum] page_size
|
1019
|
+
# Optional. The maximum number of connectors to return. The service may return
|
1020
|
+
# fewer than this value. If unspecified, server will pick an appropriate default.
|
1021
|
+
# @param [String] page_token
|
1022
|
+
# Optional. A page token, received from a previous `ListConnectors` call.
|
1023
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
1024
|
+
# parameters provided to `ListConnectors` must match the call that provided the
|
1025
|
+
# page token.
|
1026
|
+
# @param [String] fields
|
1027
|
+
# Selector specifying which fields to include in a partial response.
|
1028
|
+
# @param [String] quota_user
|
1029
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1030
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1031
|
+
# @param [Google::Apis::RequestOptions] options
|
1032
|
+
# Request-specific options
|
1033
|
+
#
|
1034
|
+
# @yield [result, err] Result & error if block supplied
|
1035
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::ListConnectorsResponse] parsed result object
|
1036
|
+
# @yieldparam err [StandardError] error object if request failed
|
1037
|
+
#
|
1038
|
+
# @return [Google::Apis::ManagedkafkaV1::ListConnectorsResponse]
|
1039
|
+
#
|
1040
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1041
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1042
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1043
|
+
def list_project_location_connect_cluster_connectors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1044
|
+
command = make_simple_command(:get, 'v1/{+parent}/connectors', options)
|
1045
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::ListConnectorsResponse::Representation
|
1046
|
+
command.response_class = Google::Apis::ManagedkafkaV1::ListConnectorsResponse
|
1047
|
+
command.params['parent'] = parent unless parent.nil?
|
1048
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1049
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1050
|
+
command.query['fields'] = fields unless fields.nil?
|
1051
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1052
|
+
execute_or_queue_command(command, &block)
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
# Updates the properties of a connector.
|
1056
|
+
# @param [String] name
|
1057
|
+
# Identifier. The name of the connector. Structured like: projects/`project`/
|
1058
|
+
# locations/`location`/connectClusters/`connect_cluster`/connectors/`connector`
|
1059
|
+
# @param [Google::Apis::ManagedkafkaV1::Connector] connector_object
|
1060
|
+
# @param [String] update_mask
|
1061
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
1062
|
+
# cluster resource by the update. The fields specified in the update_mask are
|
1063
|
+
# relative to the resource, not the full request. A field will be overwritten if
|
1064
|
+
# it is in the mask. The mask is required and a value of * will update all
|
1065
|
+
# fields.
|
1066
|
+
# @param [String] fields
|
1067
|
+
# Selector specifying which fields to include in a partial response.
|
1068
|
+
# @param [String] quota_user
|
1069
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1070
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1071
|
+
# @param [Google::Apis::RequestOptions] options
|
1072
|
+
# Request-specific options
|
1073
|
+
#
|
1074
|
+
# @yield [result, err] Result & error if block supplied
|
1075
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::Connector] parsed result object
|
1076
|
+
# @yieldparam err [StandardError] error object if request failed
|
1077
|
+
#
|
1078
|
+
# @return [Google::Apis::ManagedkafkaV1::Connector]
|
1079
|
+
#
|
1080
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1081
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1082
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1083
|
+
def patch_project_location_connect_cluster_connector(name, connector_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1084
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1085
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::Connector::Representation
|
1086
|
+
command.request_object = connector_object
|
1087
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::Connector::Representation
|
1088
|
+
command.response_class = Google::Apis::ManagedkafkaV1::Connector
|
1089
|
+
command.params['name'] = name unless name.nil?
|
1090
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1091
|
+
command.query['fields'] = fields unless fields.nil?
|
1092
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1093
|
+
execute_or_queue_command(command, &block)
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
# Pauses the connector and its tasks.
|
1097
|
+
# @param [String] name
|
1098
|
+
# Required. The name of the connector to pause. Structured like: projects/`
|
1099
|
+
# project`/locations/`location`/connectClusters/`connectCluster`/connectors/`
|
1100
|
+
# connector`
|
1101
|
+
# @param [Google::Apis::ManagedkafkaV1::PauseConnectorRequest] pause_connector_request_object
|
1102
|
+
# @param [String] fields
|
1103
|
+
# Selector specifying which fields to include in a partial response.
|
1104
|
+
# @param [String] quota_user
|
1105
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1106
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1107
|
+
# @param [Google::Apis::RequestOptions] options
|
1108
|
+
# Request-specific options
|
1109
|
+
#
|
1110
|
+
# @yield [result, err] Result & error if block supplied
|
1111
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::PauseConnectorResponse] parsed result object
|
1112
|
+
# @yieldparam err [StandardError] error object if request failed
|
1113
|
+
#
|
1114
|
+
# @return [Google::Apis::ManagedkafkaV1::PauseConnectorResponse]
|
1115
|
+
#
|
1116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1119
|
+
def pause_connector(name, pause_connector_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1120
|
+
command = make_simple_command(:post, 'v1/{+name}:pause', options)
|
1121
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::PauseConnectorRequest::Representation
|
1122
|
+
command.request_object = pause_connector_request_object
|
1123
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::PauseConnectorResponse::Representation
|
1124
|
+
command.response_class = Google::Apis::ManagedkafkaV1::PauseConnectorResponse
|
1125
|
+
command.params['name'] = name unless name.nil?
|
1126
|
+
command.query['fields'] = fields unless fields.nil?
|
1127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1128
|
+
execute_or_queue_command(command, &block)
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# Restarts the connector.
|
1132
|
+
# @param [String] name
|
1133
|
+
# Required. The name of the connector to restart. Structured like: projects/`
|
1134
|
+
# project`/locations/`location`/connectClusters/`connectCluster`/connectors/`
|
1135
|
+
# connector`
|
1136
|
+
# @param [Google::Apis::ManagedkafkaV1::RestartConnectorRequest] restart_connector_request_object
|
1137
|
+
# @param [String] fields
|
1138
|
+
# Selector specifying which fields to include in a partial response.
|
1139
|
+
# @param [String] quota_user
|
1140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1142
|
+
# @param [Google::Apis::RequestOptions] options
|
1143
|
+
# Request-specific options
|
1144
|
+
#
|
1145
|
+
# @yield [result, err] Result & error if block supplied
|
1146
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::RestartConnectorResponse] parsed result object
|
1147
|
+
# @yieldparam err [StandardError] error object if request failed
|
1148
|
+
#
|
1149
|
+
# @return [Google::Apis::ManagedkafkaV1::RestartConnectorResponse]
|
1150
|
+
#
|
1151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1154
|
+
def restart_connector(name, restart_connector_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1155
|
+
command = make_simple_command(:post, 'v1/{+name}:restart', options)
|
1156
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::RestartConnectorRequest::Representation
|
1157
|
+
command.request_object = restart_connector_request_object
|
1158
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::RestartConnectorResponse::Representation
|
1159
|
+
command.response_class = Google::Apis::ManagedkafkaV1::RestartConnectorResponse
|
1160
|
+
command.params['name'] = name unless name.nil?
|
1161
|
+
command.query['fields'] = fields unless fields.nil?
|
1162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1163
|
+
execute_or_queue_command(command, &block)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# Resumes the connector and its tasks.
|
1167
|
+
# @param [String] name
|
1168
|
+
# Required. The name of the connector to pause. Structured like: projects/`
|
1169
|
+
# project`/locations/`location`/connectClusters/`connectCluster`/connectors/`
|
1170
|
+
# connector`
|
1171
|
+
# @param [Google::Apis::ManagedkafkaV1::ResumeConnectorRequest] resume_connector_request_object
|
1172
|
+
# @param [String] fields
|
1173
|
+
# Selector specifying which fields to include in a partial response.
|
1174
|
+
# @param [String] quota_user
|
1175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1177
|
+
# @param [Google::Apis::RequestOptions] options
|
1178
|
+
# Request-specific options
|
1179
|
+
#
|
1180
|
+
# @yield [result, err] Result & error if block supplied
|
1181
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::ResumeConnectorResponse] parsed result object
|
1182
|
+
# @yieldparam err [StandardError] error object if request failed
|
1183
|
+
#
|
1184
|
+
# @return [Google::Apis::ManagedkafkaV1::ResumeConnectorResponse]
|
1185
|
+
#
|
1186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1189
|
+
def resume_connector(name, resume_connector_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1190
|
+
command = make_simple_command(:post, 'v1/{+name}:resume', options)
|
1191
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::ResumeConnectorRequest::Representation
|
1192
|
+
command.request_object = resume_connector_request_object
|
1193
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::ResumeConnectorResponse::Representation
|
1194
|
+
command.response_class = Google::Apis::ManagedkafkaV1::ResumeConnectorResponse
|
1195
|
+
command.params['name'] = name unless name.nil?
|
1196
|
+
command.query['fields'] = fields unless fields.nil?
|
1197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1198
|
+
execute_or_queue_command(command, &block)
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
# Stops the connector.
|
1202
|
+
# @param [String] name
|
1203
|
+
# Required. The name of the connector to stop. Structured like: projects/`
|
1204
|
+
# project`/locations/`location`/connectClusters/`connectCluster`/connectors/`
|
1205
|
+
# connector`
|
1206
|
+
# @param [Google::Apis::ManagedkafkaV1::StopConnectorRequest] stop_connector_request_object
|
1207
|
+
# @param [String] fields
|
1208
|
+
# Selector specifying which fields to include in a partial response.
|
1209
|
+
# @param [String] quota_user
|
1210
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1211
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1212
|
+
# @param [Google::Apis::RequestOptions] options
|
1213
|
+
# Request-specific options
|
1214
|
+
#
|
1215
|
+
# @yield [result, err] Result & error if block supplied
|
1216
|
+
# @yieldparam result [Google::Apis::ManagedkafkaV1::StopConnectorResponse] parsed result object
|
1217
|
+
# @yieldparam err [StandardError] error object if request failed
|
1218
|
+
#
|
1219
|
+
# @return [Google::Apis::ManagedkafkaV1::StopConnectorResponse]
|
1220
|
+
#
|
1221
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1222
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1223
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1224
|
+
def stop_connector(name, stop_connector_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1225
|
+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
|
1226
|
+
command.request_representation = Google::Apis::ManagedkafkaV1::StopConnectorRequest::Representation
|
1227
|
+
command.request_object = stop_connector_request_object
|
1228
|
+
command.response_representation = Google::Apis::ManagedkafkaV1::StopConnectorResponse::Representation
|
1229
|
+
command.response_class = Google::Apis::ManagedkafkaV1::StopConnectorResponse
|
1230
|
+
command.params['name'] = name unless name.nil?
|
1231
|
+
command.query['fields'] = fields unless fields.nil?
|
1232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1233
|
+
execute_or_queue_command(command, &block)
|
1234
|
+
end
|
1235
|
+
|
680
1236
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
681
1237
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
682
1238
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-managedkafka_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedkafka_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-managedkafka_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-managedkafka_v1/v0.2.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedkafka_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|