google-cloud-gke_multi_cloud-v1 0.6.0 → 0.8.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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -99
  3. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/client.rb +157 -12
  4. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/operations.rb +28 -6
  5. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/client.rb +1354 -0
  6. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/operations.rb +895 -0
  7. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest/service_stub.rb +595 -0
  8. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters/rest.rb +55 -0
  9. data/lib/google/cloud/gke_multi_cloud/v1/attached_clusters.rb +6 -0
  10. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +492 -10
  11. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +28 -6
  12. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/client.rb +2122 -0
  13. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/operations.rb +895 -0
  14. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest/service_stub.rb +1010 -0
  15. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/rest.rb +54 -0
  16. data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters.rb +6 -0
  17. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +356 -10
  18. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +28 -6
  19. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/client.rb +2430 -0
  20. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/operations.rb +895 -0
  21. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest/service_stub.rb +1187 -0
  22. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/rest.rb +54 -0
  23. data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters.rb +6 -0
  24. data/lib/google/cloud/gke_multi_cloud/v1/rest.rb +39 -0
  25. data/lib/google/cloud/gke_multi_cloud/v1/version.rb +1 -1
  26. data/lib/google/cloud/gke_multi_cloud/v1.rb +5 -0
  27. data/lib/google/cloud/gkemulticloud/v1/attached_resources_pb.rb +4 -1
  28. data/lib/google/cloud/gkemulticloud/v1/attached_service_pb.rb +6 -2
  29. data/lib/google/cloud/gkemulticloud/v1/attached_service_services_pb.rb +2 -0
  30. data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +10 -1
  31. data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +8 -1
  32. data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +18 -0
  33. data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +7 -1
  34. data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +7 -1
  35. data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +11 -0
  36. data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +4 -1
  37. data/proto_docs/google/api/client.rb +14 -0
  38. data/proto_docs/google/cloud/gkemulticloud/v1/attached_resources.rb +48 -2
  39. data/proto_docs/google/cloud/gkemulticloud/v1/attached_service.rb +55 -2
  40. data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +181 -6
  41. data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +117 -0
  42. data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +103 -6
  43. data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +80 -4
  44. data/proto_docs/google/cloud/gkemulticloud/v1/common_resources.rb +56 -0
  45. data/proto_docs/google/type/date.rb +53 -0
  46. metadata +19 -5
@@ -0,0 +1,1010 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/gkemulticloud/v1/aws_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module GkeMultiCloud
24
+ module V1
25
+ module AwsClusters
26
+ module Rest
27
+ ##
28
+ # REST service stub for the AwsClusters service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
42
+ numeric_enums: false,
43
+ raise_faraday_errors: false
44
+ end
45
+
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
55
+ ##
56
+ # Baseline implementation for the create_aws_cluster REST call
57
+ #
58
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAwsClusterRequest]
59
+ # A request object representing the call parameters. Required.
60
+ # @param options [::Gapic::CallOptions]
61
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
62
+ #
63
+ # @yield [result, operation] Access the result along with the TransportOperation object
64
+ # @yieldparam result [::Google::Longrunning::Operation]
65
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
66
+ #
67
+ # @return [::Google::Longrunning::Operation]
68
+ # A result object deserialized from the server's reply
69
+ def create_aws_cluster request_pb, options = nil
70
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
71
+
72
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_aws_cluster_request request_pb
73
+ query_string_params = if query_string_params.any?
74
+ query_string_params.to_h { |p| p.split "=", 2 }
75
+ else
76
+ {}
77
+ end
78
+
79
+ response = @client_stub.make_http_request(
80
+ verb,
81
+ uri: uri,
82
+ body: body || "",
83
+ params: query_string_params,
84
+ options: options
85
+ )
86
+ operation = ::Gapic::Rest::TransportOperation.new response
87
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
88
+
89
+ yield result, operation if block_given?
90
+ result
91
+ end
92
+
93
+ ##
94
+ # Baseline implementation for the update_aws_cluster REST call
95
+ #
96
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAwsClusterRequest]
97
+ # A request object representing the call parameters. Required.
98
+ # @param options [::Gapic::CallOptions]
99
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
100
+ #
101
+ # @yield [result, operation] Access the result along with the TransportOperation object
102
+ # @yieldparam result [::Google::Longrunning::Operation]
103
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
104
+ #
105
+ # @return [::Google::Longrunning::Operation]
106
+ # A result object deserialized from the server's reply
107
+ def update_aws_cluster request_pb, options = nil
108
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
109
+
110
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_aws_cluster_request request_pb
111
+ query_string_params = if query_string_params.any?
112
+ query_string_params.to_h { |p| p.split "=", 2 }
113
+ else
114
+ {}
115
+ end
116
+
117
+ response = @client_stub.make_http_request(
118
+ verb,
119
+ uri: uri,
120
+ body: body || "",
121
+ params: query_string_params,
122
+ options: options
123
+ )
124
+ operation = ::Gapic::Rest::TransportOperation.new response
125
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
126
+
127
+ yield result, operation if block_given?
128
+ result
129
+ end
130
+
131
+ ##
132
+ # Baseline implementation for the get_aws_cluster REST call
133
+ #
134
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsClusterRequest]
135
+ # A request object representing the call parameters. Required.
136
+ # @param options [::Gapic::CallOptions]
137
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
138
+ #
139
+ # @yield [result, operation] Access the result along with the TransportOperation object
140
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AwsCluster]
141
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
142
+ #
143
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AwsCluster]
144
+ # A result object deserialized from the server's reply
145
+ def get_aws_cluster request_pb, options = nil
146
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
147
+
148
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_aws_cluster_request request_pb
149
+ query_string_params = if query_string_params.any?
150
+ query_string_params.to_h { |p| p.split "=", 2 }
151
+ else
152
+ {}
153
+ end
154
+
155
+ response = @client_stub.make_http_request(
156
+ verb,
157
+ uri: uri,
158
+ body: body || "",
159
+ params: query_string_params,
160
+ options: options
161
+ )
162
+ operation = ::Gapic::Rest::TransportOperation.new response
163
+ result = ::Google::Cloud::GkeMultiCloud::V1::AwsCluster.decode_json response.body, ignore_unknown_fields: true
164
+
165
+ yield result, operation if block_given?
166
+ result
167
+ end
168
+
169
+ ##
170
+ # Baseline implementation for the list_aws_clusters REST call
171
+ #
172
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAwsClustersRequest]
173
+ # A request object representing the call parameters. Required.
174
+ # @param options [::Gapic::CallOptions]
175
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
176
+ #
177
+ # @yield [result, operation] Access the result along with the TransportOperation object
178
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::ListAwsClustersResponse]
179
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
180
+ #
181
+ # @return [::Google::Cloud::GkeMultiCloud::V1::ListAwsClustersResponse]
182
+ # A result object deserialized from the server's reply
183
+ def list_aws_clusters request_pb, options = nil
184
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
185
+
186
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_aws_clusters_request request_pb
187
+ query_string_params = if query_string_params.any?
188
+ query_string_params.to_h { |p| p.split "=", 2 }
189
+ else
190
+ {}
191
+ end
192
+
193
+ response = @client_stub.make_http_request(
194
+ verb,
195
+ uri: uri,
196
+ body: body || "",
197
+ params: query_string_params,
198
+ options: options
199
+ )
200
+ operation = ::Gapic::Rest::TransportOperation.new response
201
+ result = ::Google::Cloud::GkeMultiCloud::V1::ListAwsClustersResponse.decode_json response.body, ignore_unknown_fields: true
202
+
203
+ yield result, operation if block_given?
204
+ result
205
+ end
206
+
207
+ ##
208
+ # Baseline implementation for the delete_aws_cluster REST call
209
+ #
210
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAwsClusterRequest]
211
+ # A request object representing the call parameters. Required.
212
+ # @param options [::Gapic::CallOptions]
213
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
214
+ #
215
+ # @yield [result, operation] Access the result along with the TransportOperation object
216
+ # @yieldparam result [::Google::Longrunning::Operation]
217
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
218
+ #
219
+ # @return [::Google::Longrunning::Operation]
220
+ # A result object deserialized from the server's reply
221
+ def delete_aws_cluster request_pb, options = nil
222
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
223
+
224
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_aws_cluster_request request_pb
225
+ query_string_params = if query_string_params.any?
226
+ query_string_params.to_h { |p| p.split "=", 2 }
227
+ else
228
+ {}
229
+ end
230
+
231
+ response = @client_stub.make_http_request(
232
+ verb,
233
+ uri: uri,
234
+ body: body || "",
235
+ params: query_string_params,
236
+ options: options
237
+ )
238
+ operation = ::Gapic::Rest::TransportOperation.new response
239
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
240
+
241
+ yield result, operation if block_given?
242
+ result
243
+ end
244
+
245
+ ##
246
+ # Baseline implementation for the generate_aws_cluster_agent_token REST call
247
+ #
248
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsClusterAgentTokenRequest]
249
+ # A request object representing the call parameters. Required.
250
+ # @param options [::Gapic::CallOptions]
251
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
252
+ #
253
+ # @yield [result, operation] Access the result along with the TransportOperation object
254
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsClusterAgentTokenResponse]
255
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
256
+ #
257
+ # @return [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsClusterAgentTokenResponse]
258
+ # A result object deserialized from the server's reply
259
+ def generate_aws_cluster_agent_token request_pb, options = nil
260
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
261
+
262
+ verb, uri, query_string_params, body = ServiceStub.transcode_generate_aws_cluster_agent_token_request request_pb
263
+ query_string_params = if query_string_params.any?
264
+ query_string_params.to_h { |p| p.split "=", 2 }
265
+ else
266
+ {}
267
+ end
268
+
269
+ response = @client_stub.make_http_request(
270
+ verb,
271
+ uri: uri,
272
+ body: body || "",
273
+ params: query_string_params,
274
+ options: options
275
+ )
276
+ operation = ::Gapic::Rest::TransportOperation.new response
277
+ result = ::Google::Cloud::GkeMultiCloud::V1::GenerateAwsClusterAgentTokenResponse.decode_json response.body, ignore_unknown_fields: true
278
+
279
+ yield result, operation if block_given?
280
+ result
281
+ end
282
+
283
+ ##
284
+ # Baseline implementation for the generate_aws_access_token REST call
285
+ #
286
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsAccessTokenRequest]
287
+ # A request object representing the call parameters. Required.
288
+ # @param options [::Gapic::CallOptions]
289
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
290
+ #
291
+ # @yield [result, operation] Access the result along with the TransportOperation object
292
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsAccessTokenResponse]
293
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
294
+ #
295
+ # @return [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsAccessTokenResponse]
296
+ # A result object deserialized from the server's reply
297
+ def generate_aws_access_token request_pb, options = nil
298
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
299
+
300
+ verb, uri, query_string_params, body = ServiceStub.transcode_generate_aws_access_token_request request_pb
301
+ query_string_params = if query_string_params.any?
302
+ query_string_params.to_h { |p| p.split "=", 2 }
303
+ else
304
+ {}
305
+ end
306
+
307
+ response = @client_stub.make_http_request(
308
+ verb,
309
+ uri: uri,
310
+ body: body || "",
311
+ params: query_string_params,
312
+ options: options
313
+ )
314
+ operation = ::Gapic::Rest::TransportOperation.new response
315
+ result = ::Google::Cloud::GkeMultiCloud::V1::GenerateAwsAccessTokenResponse.decode_json response.body, ignore_unknown_fields: true
316
+
317
+ yield result, operation if block_given?
318
+ result
319
+ end
320
+
321
+ ##
322
+ # Baseline implementation for the create_aws_node_pool REST call
323
+ #
324
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAwsNodePoolRequest]
325
+ # A request object representing the call parameters. Required.
326
+ # @param options [::Gapic::CallOptions]
327
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
328
+ #
329
+ # @yield [result, operation] Access the result along with the TransportOperation object
330
+ # @yieldparam result [::Google::Longrunning::Operation]
331
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
332
+ #
333
+ # @return [::Google::Longrunning::Operation]
334
+ # A result object deserialized from the server's reply
335
+ def create_aws_node_pool request_pb, options = nil
336
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
337
+
338
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_aws_node_pool_request request_pb
339
+ query_string_params = if query_string_params.any?
340
+ query_string_params.to_h { |p| p.split "=", 2 }
341
+ else
342
+ {}
343
+ end
344
+
345
+ response = @client_stub.make_http_request(
346
+ verb,
347
+ uri: uri,
348
+ body: body || "",
349
+ params: query_string_params,
350
+ options: options
351
+ )
352
+ operation = ::Gapic::Rest::TransportOperation.new response
353
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
354
+
355
+ yield result, operation if block_given?
356
+ result
357
+ end
358
+
359
+ ##
360
+ # Baseline implementation for the update_aws_node_pool REST call
361
+ #
362
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAwsNodePoolRequest]
363
+ # A request object representing the call parameters. Required.
364
+ # @param options [::Gapic::CallOptions]
365
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
366
+ #
367
+ # @yield [result, operation] Access the result along with the TransportOperation object
368
+ # @yieldparam result [::Google::Longrunning::Operation]
369
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
370
+ #
371
+ # @return [::Google::Longrunning::Operation]
372
+ # A result object deserialized from the server's reply
373
+ def update_aws_node_pool request_pb, options = nil
374
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
375
+
376
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_aws_node_pool_request request_pb
377
+ query_string_params = if query_string_params.any?
378
+ query_string_params.to_h { |p| p.split "=", 2 }
379
+ else
380
+ {}
381
+ end
382
+
383
+ response = @client_stub.make_http_request(
384
+ verb,
385
+ uri: uri,
386
+ body: body || "",
387
+ params: query_string_params,
388
+ options: options
389
+ )
390
+ operation = ::Gapic::Rest::TransportOperation.new response
391
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
392
+
393
+ yield result, operation if block_given?
394
+ result
395
+ end
396
+
397
+ ##
398
+ # Baseline implementation for the rollback_aws_node_pool_update REST call
399
+ #
400
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::RollbackAwsNodePoolUpdateRequest]
401
+ # A request object representing the call parameters. Required.
402
+ # @param options [::Gapic::CallOptions]
403
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
404
+ #
405
+ # @yield [result, operation] Access the result along with the TransportOperation object
406
+ # @yieldparam result [::Google::Longrunning::Operation]
407
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
408
+ #
409
+ # @return [::Google::Longrunning::Operation]
410
+ # A result object deserialized from the server's reply
411
+ def rollback_aws_node_pool_update request_pb, options = nil
412
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
413
+
414
+ verb, uri, query_string_params, body = ServiceStub.transcode_rollback_aws_node_pool_update_request request_pb
415
+ query_string_params = if query_string_params.any?
416
+ query_string_params.to_h { |p| p.split "=", 2 }
417
+ else
418
+ {}
419
+ end
420
+
421
+ response = @client_stub.make_http_request(
422
+ verb,
423
+ uri: uri,
424
+ body: body || "",
425
+ params: query_string_params,
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
430
+
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+
435
+ ##
436
+ # Baseline implementation for the get_aws_node_pool REST call
437
+ #
438
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsNodePoolRequest]
439
+ # A request object representing the call parameters. Required.
440
+ # @param options [::Gapic::CallOptions]
441
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
442
+ #
443
+ # @yield [result, operation] Access the result along with the TransportOperation object
444
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AwsNodePool]
445
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
446
+ #
447
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AwsNodePool]
448
+ # A result object deserialized from the server's reply
449
+ def get_aws_node_pool request_pb, options = nil
450
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
451
+
452
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_aws_node_pool_request request_pb
453
+ query_string_params = if query_string_params.any?
454
+ query_string_params.to_h { |p| p.split "=", 2 }
455
+ else
456
+ {}
457
+ end
458
+
459
+ response = @client_stub.make_http_request(
460
+ verb,
461
+ uri: uri,
462
+ body: body || "",
463
+ params: query_string_params,
464
+ options: options
465
+ )
466
+ operation = ::Gapic::Rest::TransportOperation.new response
467
+ result = ::Google::Cloud::GkeMultiCloud::V1::AwsNodePool.decode_json response.body, ignore_unknown_fields: true
468
+
469
+ yield result, operation if block_given?
470
+ result
471
+ end
472
+
473
+ ##
474
+ # Baseline implementation for the list_aws_node_pools REST call
475
+ #
476
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAwsNodePoolsRequest]
477
+ # A request object representing the call parameters. Required.
478
+ # @param options [::Gapic::CallOptions]
479
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
480
+ #
481
+ # @yield [result, operation] Access the result along with the TransportOperation object
482
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::ListAwsNodePoolsResponse]
483
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
484
+ #
485
+ # @return [::Google::Cloud::GkeMultiCloud::V1::ListAwsNodePoolsResponse]
486
+ # A result object deserialized from the server's reply
487
+ def list_aws_node_pools request_pb, options = nil
488
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
489
+
490
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_aws_node_pools_request request_pb
491
+ query_string_params = if query_string_params.any?
492
+ query_string_params.to_h { |p| p.split "=", 2 }
493
+ else
494
+ {}
495
+ end
496
+
497
+ response = @client_stub.make_http_request(
498
+ verb,
499
+ uri: uri,
500
+ body: body || "",
501
+ params: query_string_params,
502
+ options: options
503
+ )
504
+ operation = ::Gapic::Rest::TransportOperation.new response
505
+ result = ::Google::Cloud::GkeMultiCloud::V1::ListAwsNodePoolsResponse.decode_json response.body, ignore_unknown_fields: true
506
+
507
+ yield result, operation if block_given?
508
+ result
509
+ end
510
+
511
+ ##
512
+ # Baseline implementation for the delete_aws_node_pool REST call
513
+ #
514
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAwsNodePoolRequest]
515
+ # A request object representing the call parameters. Required.
516
+ # @param options [::Gapic::CallOptions]
517
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
518
+ #
519
+ # @yield [result, operation] Access the result along with the TransportOperation object
520
+ # @yieldparam result [::Google::Longrunning::Operation]
521
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
522
+ #
523
+ # @return [::Google::Longrunning::Operation]
524
+ # A result object deserialized from the server's reply
525
+ def delete_aws_node_pool request_pb, options = nil
526
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
527
+
528
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_aws_node_pool_request request_pb
529
+ query_string_params = if query_string_params.any?
530
+ query_string_params.to_h { |p| p.split "=", 2 }
531
+ else
532
+ {}
533
+ end
534
+
535
+ response = @client_stub.make_http_request(
536
+ verb,
537
+ uri: uri,
538
+ body: body || "",
539
+ params: query_string_params,
540
+ options: options
541
+ )
542
+ operation = ::Gapic::Rest::TransportOperation.new response
543
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
544
+
545
+ yield result, operation if block_given?
546
+ result
547
+ end
548
+
549
+ ##
550
+ # Baseline implementation for the get_aws_open_id_config REST call
551
+ #
552
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsOpenIdConfigRequest]
553
+ # A request object representing the call parameters. Required.
554
+ # @param options [::Gapic::CallOptions]
555
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
556
+ #
557
+ # @yield [result, operation] Access the result along with the TransportOperation object
558
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AwsOpenIdConfig]
559
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
560
+ #
561
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AwsOpenIdConfig]
562
+ # A result object deserialized from the server's reply
563
+ def get_aws_open_id_config request_pb, options = nil
564
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
565
+
566
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_aws_open_id_config_request request_pb
567
+ query_string_params = if query_string_params.any?
568
+ query_string_params.to_h { |p| p.split "=", 2 }
569
+ else
570
+ {}
571
+ end
572
+
573
+ response = @client_stub.make_http_request(
574
+ verb,
575
+ uri: uri,
576
+ body: body || "",
577
+ params: query_string_params,
578
+ options: options
579
+ )
580
+ operation = ::Gapic::Rest::TransportOperation.new response
581
+ result = ::Google::Cloud::GkeMultiCloud::V1::AwsOpenIdConfig.decode_json response.body, ignore_unknown_fields: true
582
+
583
+ yield result, operation if block_given?
584
+ result
585
+ end
586
+
587
+ ##
588
+ # Baseline implementation for the get_aws_json_web_keys REST call
589
+ #
590
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsJsonWebKeysRequest]
591
+ # A request object representing the call parameters. Required.
592
+ # @param options [::Gapic::CallOptions]
593
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
594
+ #
595
+ # @yield [result, operation] Access the result along with the TransportOperation object
596
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AwsJsonWebKeys]
597
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
598
+ #
599
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AwsJsonWebKeys]
600
+ # A result object deserialized from the server's reply
601
+ def get_aws_json_web_keys request_pb, options = nil
602
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
603
+
604
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_aws_json_web_keys_request request_pb
605
+ query_string_params = if query_string_params.any?
606
+ query_string_params.to_h { |p| p.split "=", 2 }
607
+ else
608
+ {}
609
+ end
610
+
611
+ response = @client_stub.make_http_request(
612
+ verb,
613
+ uri: uri,
614
+ body: body || "",
615
+ params: query_string_params,
616
+ options: options
617
+ )
618
+ operation = ::Gapic::Rest::TransportOperation.new response
619
+ result = ::Google::Cloud::GkeMultiCloud::V1::AwsJsonWebKeys.decode_json response.body, ignore_unknown_fields: true
620
+
621
+ yield result, operation if block_given?
622
+ result
623
+ end
624
+
625
+ ##
626
+ # Baseline implementation for the get_aws_server_config REST call
627
+ #
628
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsServerConfigRequest]
629
+ # A request object representing the call parameters. Required.
630
+ # @param options [::Gapic::CallOptions]
631
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
632
+ #
633
+ # @yield [result, operation] Access the result along with the TransportOperation object
634
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AwsServerConfig]
635
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
636
+ #
637
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AwsServerConfig]
638
+ # A result object deserialized from the server's reply
639
+ def get_aws_server_config request_pb, options = nil
640
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
641
+
642
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_aws_server_config_request request_pb
643
+ query_string_params = if query_string_params.any?
644
+ query_string_params.to_h { |p| p.split "=", 2 }
645
+ else
646
+ {}
647
+ end
648
+
649
+ response = @client_stub.make_http_request(
650
+ verb,
651
+ uri: uri,
652
+ body: body || "",
653
+ params: query_string_params,
654
+ options: options
655
+ )
656
+ operation = ::Gapic::Rest::TransportOperation.new response
657
+ result = ::Google::Cloud::GkeMultiCloud::V1::AwsServerConfig.decode_json response.body, ignore_unknown_fields: true
658
+
659
+ yield result, operation if block_given?
660
+ result
661
+ end
662
+
663
+ ##
664
+ # @private
665
+ #
666
+ # GRPC transcoding helper method for the create_aws_cluster REST call
667
+ #
668
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAwsClusterRequest]
669
+ # A request object representing the call parameters. Required.
670
+ # @return [Array(String, [String, nil], Hash{String => String})]
671
+ # Uri, Body, Query string parameters
672
+ def self.transcode_create_aws_cluster_request request_pb
673
+ transcoder = Gapic::Rest::GrpcTranscoder.new
674
+ .with_bindings(
675
+ uri_method: :post,
676
+ uri_template: "/v1/{parent}/awsClusters",
677
+ body: "aws_cluster",
678
+ matches: [
679
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
680
+ ]
681
+ )
682
+ transcoder.transcode request_pb
683
+ end
684
+
685
+ ##
686
+ # @private
687
+ #
688
+ # GRPC transcoding helper method for the update_aws_cluster REST call
689
+ #
690
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAwsClusterRequest]
691
+ # A request object representing the call parameters. Required.
692
+ # @return [Array(String, [String, nil], Hash{String => String})]
693
+ # Uri, Body, Query string parameters
694
+ def self.transcode_update_aws_cluster_request request_pb
695
+ transcoder = Gapic::Rest::GrpcTranscoder.new
696
+ .with_bindings(
697
+ uri_method: :patch,
698
+ uri_template: "/v1/{aws_cluster.name}",
699
+ body: "aws_cluster",
700
+ matches: [
701
+ ["aws_cluster.name", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
702
+ ]
703
+ )
704
+ transcoder.transcode request_pb
705
+ end
706
+
707
+ ##
708
+ # @private
709
+ #
710
+ # GRPC transcoding helper method for the get_aws_cluster REST call
711
+ #
712
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsClusterRequest]
713
+ # A request object representing the call parameters. Required.
714
+ # @return [Array(String, [String, nil], Hash{String => String})]
715
+ # Uri, Body, Query string parameters
716
+ def self.transcode_get_aws_cluster_request request_pb
717
+ transcoder = Gapic::Rest::GrpcTranscoder.new
718
+ .with_bindings(
719
+ uri_method: :get,
720
+ uri_template: "/v1/{name}",
721
+ matches: [
722
+ ["name", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
723
+ ]
724
+ )
725
+ transcoder.transcode request_pb
726
+ end
727
+
728
+ ##
729
+ # @private
730
+ #
731
+ # GRPC transcoding helper method for the list_aws_clusters REST call
732
+ #
733
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAwsClustersRequest]
734
+ # A request object representing the call parameters. Required.
735
+ # @return [Array(String, [String, nil], Hash{String => String})]
736
+ # Uri, Body, Query string parameters
737
+ def self.transcode_list_aws_clusters_request request_pb
738
+ transcoder = Gapic::Rest::GrpcTranscoder.new
739
+ .with_bindings(
740
+ uri_method: :get,
741
+ uri_template: "/v1/{parent}/awsClusters",
742
+ matches: [
743
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
744
+ ]
745
+ )
746
+ transcoder.transcode request_pb
747
+ end
748
+
749
+ ##
750
+ # @private
751
+ #
752
+ # GRPC transcoding helper method for the delete_aws_cluster REST call
753
+ #
754
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAwsClusterRequest]
755
+ # A request object representing the call parameters. Required.
756
+ # @return [Array(String, [String, nil], Hash{String => String})]
757
+ # Uri, Body, Query string parameters
758
+ def self.transcode_delete_aws_cluster_request request_pb
759
+ transcoder = Gapic::Rest::GrpcTranscoder.new
760
+ .with_bindings(
761
+ uri_method: :delete,
762
+ uri_template: "/v1/{name}",
763
+ matches: [
764
+ ["name", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
765
+ ]
766
+ )
767
+ transcoder.transcode request_pb
768
+ end
769
+
770
+ ##
771
+ # @private
772
+ #
773
+ # GRPC transcoding helper method for the generate_aws_cluster_agent_token REST call
774
+ #
775
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsClusterAgentTokenRequest]
776
+ # A request object representing the call parameters. Required.
777
+ # @return [Array(String, [String, nil], Hash{String => String})]
778
+ # Uri, Body, Query string parameters
779
+ def self.transcode_generate_aws_cluster_agent_token_request request_pb
780
+ transcoder = Gapic::Rest::GrpcTranscoder.new
781
+ .with_bindings(
782
+ uri_method: :post,
783
+ uri_template: "/v1/{aws_cluster}:generateAwsClusterAgentToken",
784
+ body: "*",
785
+ matches: [
786
+ ["aws_cluster", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
787
+ ]
788
+ )
789
+ transcoder.transcode request_pb
790
+ end
791
+
792
+ ##
793
+ # @private
794
+ #
795
+ # GRPC transcoding helper method for the generate_aws_access_token REST call
796
+ #
797
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAwsAccessTokenRequest]
798
+ # A request object representing the call parameters. Required.
799
+ # @return [Array(String, [String, nil], Hash{String => String})]
800
+ # Uri, Body, Query string parameters
801
+ def self.transcode_generate_aws_access_token_request request_pb
802
+ transcoder = Gapic::Rest::GrpcTranscoder.new
803
+ .with_bindings(
804
+ uri_method: :get,
805
+ uri_template: "/v1/{aws_cluster}:generateAwsAccessToken",
806
+ matches: [
807
+ ["aws_cluster", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
808
+ ]
809
+ )
810
+ transcoder.transcode request_pb
811
+ end
812
+
813
+ ##
814
+ # @private
815
+ #
816
+ # GRPC transcoding helper method for the create_aws_node_pool REST call
817
+ #
818
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAwsNodePoolRequest]
819
+ # A request object representing the call parameters. Required.
820
+ # @return [Array(String, [String, nil], Hash{String => String})]
821
+ # Uri, Body, Query string parameters
822
+ def self.transcode_create_aws_node_pool_request request_pb
823
+ transcoder = Gapic::Rest::GrpcTranscoder.new
824
+ .with_bindings(
825
+ uri_method: :post,
826
+ uri_template: "/v1/{parent}/awsNodePools",
827
+ body: "aws_node_pool",
828
+ matches: [
829
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
830
+ ]
831
+ )
832
+ transcoder.transcode request_pb
833
+ end
834
+
835
+ ##
836
+ # @private
837
+ #
838
+ # GRPC transcoding helper method for the update_aws_node_pool REST call
839
+ #
840
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAwsNodePoolRequest]
841
+ # A request object representing the call parameters. Required.
842
+ # @return [Array(String, [String, nil], Hash{String => String})]
843
+ # Uri, Body, Query string parameters
844
+ def self.transcode_update_aws_node_pool_request request_pb
845
+ transcoder = Gapic::Rest::GrpcTranscoder.new
846
+ .with_bindings(
847
+ uri_method: :patch,
848
+ uri_template: "/v1/{aws_node_pool.name}",
849
+ body: "aws_node_pool",
850
+ matches: [
851
+ ["aws_node_pool.name", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/awsNodePools/[^/]+/?$}, false]
852
+ ]
853
+ )
854
+ transcoder.transcode request_pb
855
+ end
856
+
857
+ ##
858
+ # @private
859
+ #
860
+ # GRPC transcoding helper method for the rollback_aws_node_pool_update REST call
861
+ #
862
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::RollbackAwsNodePoolUpdateRequest]
863
+ # A request object representing the call parameters. Required.
864
+ # @return [Array(String, [String, nil], Hash{String => String})]
865
+ # Uri, Body, Query string parameters
866
+ def self.transcode_rollback_aws_node_pool_update_request request_pb
867
+ transcoder = Gapic::Rest::GrpcTranscoder.new
868
+ .with_bindings(
869
+ uri_method: :post,
870
+ uri_template: "/v1/{name}:rollback",
871
+ body: "*",
872
+ matches: [
873
+ ["name", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/awsNodePools/[^/]+/?$}, false]
874
+ ]
875
+ )
876
+ transcoder.transcode request_pb
877
+ end
878
+
879
+ ##
880
+ # @private
881
+ #
882
+ # GRPC transcoding helper method for the get_aws_node_pool REST call
883
+ #
884
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsNodePoolRequest]
885
+ # A request object representing the call parameters. Required.
886
+ # @return [Array(String, [String, nil], Hash{String => String})]
887
+ # Uri, Body, Query string parameters
888
+ def self.transcode_get_aws_node_pool_request request_pb
889
+ transcoder = Gapic::Rest::GrpcTranscoder.new
890
+ .with_bindings(
891
+ uri_method: :get,
892
+ uri_template: "/v1/{name}",
893
+ matches: [
894
+ ["name", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/awsNodePools/[^/]+/?$}, false]
895
+ ]
896
+ )
897
+ transcoder.transcode request_pb
898
+ end
899
+
900
+ ##
901
+ # @private
902
+ #
903
+ # GRPC transcoding helper method for the list_aws_node_pools REST call
904
+ #
905
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAwsNodePoolsRequest]
906
+ # A request object representing the call parameters. Required.
907
+ # @return [Array(String, [String, nil], Hash{String => String})]
908
+ # Uri, Body, Query string parameters
909
+ def self.transcode_list_aws_node_pools_request request_pb
910
+ transcoder = Gapic::Rest::GrpcTranscoder.new
911
+ .with_bindings(
912
+ uri_method: :get,
913
+ uri_template: "/v1/{parent}/awsNodePools",
914
+ matches: [
915
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
916
+ ]
917
+ )
918
+ transcoder.transcode request_pb
919
+ end
920
+
921
+ ##
922
+ # @private
923
+ #
924
+ # GRPC transcoding helper method for the delete_aws_node_pool REST call
925
+ #
926
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAwsNodePoolRequest]
927
+ # A request object representing the call parameters. Required.
928
+ # @return [Array(String, [String, nil], Hash{String => String})]
929
+ # Uri, Body, Query string parameters
930
+ def self.transcode_delete_aws_node_pool_request request_pb
931
+ transcoder = Gapic::Rest::GrpcTranscoder.new
932
+ .with_bindings(
933
+ uri_method: :delete,
934
+ uri_template: "/v1/{name}",
935
+ matches: [
936
+ ["name", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/awsNodePools/[^/]+/?$}, false]
937
+ ]
938
+ )
939
+ transcoder.transcode request_pb
940
+ end
941
+
942
+ ##
943
+ # @private
944
+ #
945
+ # GRPC transcoding helper method for the get_aws_open_id_config REST call
946
+ #
947
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsOpenIdConfigRequest]
948
+ # A request object representing the call parameters. Required.
949
+ # @return [Array(String, [String, nil], Hash{String => String})]
950
+ # Uri, Body, Query string parameters
951
+ def self.transcode_get_aws_open_id_config_request request_pb
952
+ transcoder = Gapic::Rest::GrpcTranscoder.new
953
+ .with_bindings(
954
+ uri_method: :get,
955
+ uri_template: "/v1/{aws_cluster}/.well-known/openid-configuration",
956
+ matches: [
957
+ ["aws_cluster", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
958
+ ]
959
+ )
960
+ transcoder.transcode request_pb
961
+ end
962
+
963
+ ##
964
+ # @private
965
+ #
966
+ # GRPC transcoding helper method for the get_aws_json_web_keys REST call
967
+ #
968
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsJsonWebKeysRequest]
969
+ # A request object representing the call parameters. Required.
970
+ # @return [Array(String, [String, nil], Hash{String => String})]
971
+ # Uri, Body, Query string parameters
972
+ def self.transcode_get_aws_json_web_keys_request request_pb
973
+ transcoder = Gapic::Rest::GrpcTranscoder.new
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/v1/{aws_cluster}/jwks",
977
+ matches: [
978
+ ["aws_cluster", %r{^projects/[^/]+/locations/[^/]+/awsClusters/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ transcoder.transcode request_pb
982
+ end
983
+
984
+ ##
985
+ # @private
986
+ #
987
+ # GRPC transcoding helper method for the get_aws_server_config REST call
988
+ #
989
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAwsServerConfigRequest]
990
+ # A request object representing the call parameters. Required.
991
+ # @return [Array(String, [String, nil], Hash{String => String})]
992
+ # Uri, Body, Query string parameters
993
+ def self.transcode_get_aws_server_config_request request_pb
994
+ transcoder = Gapic::Rest::GrpcTranscoder.new
995
+ .with_bindings(
996
+ uri_method: :get,
997
+ uri_template: "/v1/{name}",
998
+ matches: [
999
+ ["name", %r{^projects/[^/]+/locations/[^/]+/awsServerConfig/?$}, false]
1000
+ ]
1001
+ )
1002
+ transcoder.transcode request_pb
1003
+ end
1004
+ end
1005
+ end
1006
+ end
1007
+ end
1008
+ end
1009
+ end
1010
+ end