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,1187 @@
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/azure_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module GkeMultiCloud
24
+ module V1
25
+ module AzureClusters
26
+ module Rest
27
+ ##
28
+ # REST service stub for the AzureClusters 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_azure_client REST call
57
+ #
58
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAzureClientRequest]
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_azure_client 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_azure_client_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 get_azure_client REST call
95
+ #
96
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureClientRequest]
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::Cloud::GkeMultiCloud::V1::AzureClient]
103
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
104
+ #
105
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AzureClient]
106
+ # A result object deserialized from the server's reply
107
+ def get_azure_client 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_get_azure_client_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::Cloud::GkeMultiCloud::V1::AzureClient.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 list_azure_clients REST call
133
+ #
134
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAzureClientsRequest]
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::ListAzureClientsResponse]
141
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
142
+ #
143
+ # @return [::Google::Cloud::GkeMultiCloud::V1::ListAzureClientsResponse]
144
+ # A result object deserialized from the server's reply
145
+ def list_azure_clients 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_list_azure_clients_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::ListAzureClientsResponse.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 delete_azure_client REST call
171
+ #
172
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAzureClientRequest]
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::Longrunning::Operation]
179
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
180
+ #
181
+ # @return [::Google::Longrunning::Operation]
182
+ # A result object deserialized from the server's reply
183
+ def delete_azure_client 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_delete_azure_client_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::Longrunning::Operation.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 create_azure_cluster REST call
209
+ #
210
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAzureClusterRequest]
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 create_azure_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_create_azure_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 update_azure_cluster REST call
247
+ #
248
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAzureClusterRequest]
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::Longrunning::Operation]
255
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
256
+ #
257
+ # @return [::Google::Longrunning::Operation]
258
+ # A result object deserialized from the server's reply
259
+ def update_azure_cluster 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_update_azure_cluster_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::Longrunning::Operation.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 get_azure_cluster REST call
285
+ #
286
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureClusterRequest]
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::AzureCluster]
293
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
294
+ #
295
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AzureCluster]
296
+ # A result object deserialized from the server's reply
297
+ def get_azure_cluster 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_get_azure_cluster_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::AzureCluster.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 list_azure_clusters REST call
323
+ #
324
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAzureClustersRequest]
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::Cloud::GkeMultiCloud::V1::ListAzureClustersResponse]
331
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
332
+ #
333
+ # @return [::Google::Cloud::GkeMultiCloud::V1::ListAzureClustersResponse]
334
+ # A result object deserialized from the server's reply
335
+ def list_azure_clusters 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_list_azure_clusters_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::Cloud::GkeMultiCloud::V1::ListAzureClustersResponse.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 delete_azure_cluster REST call
361
+ #
362
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAzureClusterRequest]
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 delete_azure_cluster 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_delete_azure_cluster_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 generate_azure_cluster_agent_token REST call
399
+ #
400
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAzureClusterAgentTokenRequest]
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::Cloud::GkeMultiCloud::V1::GenerateAzureClusterAgentTokenResponse]
407
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
408
+ #
409
+ # @return [::Google::Cloud::GkeMultiCloud::V1::GenerateAzureClusterAgentTokenResponse]
410
+ # A result object deserialized from the server's reply
411
+ def generate_azure_cluster_agent_token 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_generate_azure_cluster_agent_token_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::Cloud::GkeMultiCloud::V1::GenerateAzureClusterAgentTokenResponse.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 generate_azure_access_token REST call
437
+ #
438
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAzureAccessTokenRequest]
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::GenerateAzureAccessTokenResponse]
445
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
446
+ #
447
+ # @return [::Google::Cloud::GkeMultiCloud::V1::GenerateAzureAccessTokenResponse]
448
+ # A result object deserialized from the server's reply
449
+ def generate_azure_access_token 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_generate_azure_access_token_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::GenerateAzureAccessTokenResponse.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 create_azure_node_pool REST call
475
+ #
476
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAzureNodePoolRequest]
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::Longrunning::Operation]
483
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
484
+ #
485
+ # @return [::Google::Longrunning::Operation]
486
+ # A result object deserialized from the server's reply
487
+ def create_azure_node_pool 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_create_azure_node_pool_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::Longrunning::Operation.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 update_azure_node_pool REST call
513
+ #
514
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAzureNodePoolRequest]
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 update_azure_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_update_azure_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_azure_node_pool REST call
551
+ #
552
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureNodePoolRequest]
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::AzureNodePool]
559
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
560
+ #
561
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AzureNodePool]
562
+ # A result object deserialized from the server's reply
563
+ def get_azure_node_pool 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_azure_node_pool_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::AzureNodePool.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 list_azure_node_pools REST call
589
+ #
590
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAzureNodePoolsRequest]
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::ListAzureNodePoolsResponse]
597
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
598
+ #
599
+ # @return [::Google::Cloud::GkeMultiCloud::V1::ListAzureNodePoolsResponse]
600
+ # A result object deserialized from the server's reply
601
+ def list_azure_node_pools 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_list_azure_node_pools_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::ListAzureNodePoolsResponse.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 delete_azure_node_pool REST call
627
+ #
628
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAzureNodePoolRequest]
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::Longrunning::Operation]
635
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
636
+ #
637
+ # @return [::Google::Longrunning::Operation]
638
+ # A result object deserialized from the server's reply
639
+ def delete_azure_node_pool 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_delete_azure_node_pool_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::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
658
+
659
+ yield result, operation if block_given?
660
+ result
661
+ end
662
+
663
+ ##
664
+ # Baseline implementation for the get_azure_open_id_config REST call
665
+ #
666
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureOpenIdConfigRequest]
667
+ # A request object representing the call parameters. Required.
668
+ # @param options [::Gapic::CallOptions]
669
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
670
+ #
671
+ # @yield [result, operation] Access the result along with the TransportOperation object
672
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AzureOpenIdConfig]
673
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
674
+ #
675
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AzureOpenIdConfig]
676
+ # A result object deserialized from the server's reply
677
+ def get_azure_open_id_config request_pb, options = nil
678
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
679
+
680
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_azure_open_id_config_request request_pb
681
+ query_string_params = if query_string_params.any?
682
+ query_string_params.to_h { |p| p.split "=", 2 }
683
+ else
684
+ {}
685
+ end
686
+
687
+ response = @client_stub.make_http_request(
688
+ verb,
689
+ uri: uri,
690
+ body: body || "",
691
+ params: query_string_params,
692
+ options: options
693
+ )
694
+ operation = ::Gapic::Rest::TransportOperation.new response
695
+ result = ::Google::Cloud::GkeMultiCloud::V1::AzureOpenIdConfig.decode_json response.body, ignore_unknown_fields: true
696
+
697
+ yield result, operation if block_given?
698
+ result
699
+ end
700
+
701
+ ##
702
+ # Baseline implementation for the get_azure_json_web_keys REST call
703
+ #
704
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureJsonWebKeysRequest]
705
+ # A request object representing the call parameters. Required.
706
+ # @param options [::Gapic::CallOptions]
707
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
708
+ #
709
+ # @yield [result, operation] Access the result along with the TransportOperation object
710
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AzureJsonWebKeys]
711
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
712
+ #
713
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AzureJsonWebKeys]
714
+ # A result object deserialized from the server's reply
715
+ def get_azure_json_web_keys request_pb, options = nil
716
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
717
+
718
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_azure_json_web_keys_request request_pb
719
+ query_string_params = if query_string_params.any?
720
+ query_string_params.to_h { |p| p.split "=", 2 }
721
+ else
722
+ {}
723
+ end
724
+
725
+ response = @client_stub.make_http_request(
726
+ verb,
727
+ uri: uri,
728
+ body: body || "",
729
+ params: query_string_params,
730
+ options: options
731
+ )
732
+ operation = ::Gapic::Rest::TransportOperation.new response
733
+ result = ::Google::Cloud::GkeMultiCloud::V1::AzureJsonWebKeys.decode_json response.body, ignore_unknown_fields: true
734
+
735
+ yield result, operation if block_given?
736
+ result
737
+ end
738
+
739
+ ##
740
+ # Baseline implementation for the get_azure_server_config REST call
741
+ #
742
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureServerConfigRequest]
743
+ # A request object representing the call parameters. Required.
744
+ # @param options [::Gapic::CallOptions]
745
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
746
+ #
747
+ # @yield [result, operation] Access the result along with the TransportOperation object
748
+ # @yieldparam result [::Google::Cloud::GkeMultiCloud::V1::AzureServerConfig]
749
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
750
+ #
751
+ # @return [::Google::Cloud::GkeMultiCloud::V1::AzureServerConfig]
752
+ # A result object deserialized from the server's reply
753
+ def get_azure_server_config request_pb, options = nil
754
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
755
+
756
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_azure_server_config_request request_pb
757
+ query_string_params = if query_string_params.any?
758
+ query_string_params.to_h { |p| p.split "=", 2 }
759
+ else
760
+ {}
761
+ end
762
+
763
+ response = @client_stub.make_http_request(
764
+ verb,
765
+ uri: uri,
766
+ body: body || "",
767
+ params: query_string_params,
768
+ options: options
769
+ )
770
+ operation = ::Gapic::Rest::TransportOperation.new response
771
+ result = ::Google::Cloud::GkeMultiCloud::V1::AzureServerConfig.decode_json response.body, ignore_unknown_fields: true
772
+
773
+ yield result, operation if block_given?
774
+ result
775
+ end
776
+
777
+ ##
778
+ # @private
779
+ #
780
+ # GRPC transcoding helper method for the create_azure_client REST call
781
+ #
782
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAzureClientRequest]
783
+ # A request object representing the call parameters. Required.
784
+ # @return [Array(String, [String, nil], Hash{String => String})]
785
+ # Uri, Body, Query string parameters
786
+ def self.transcode_create_azure_client_request request_pb
787
+ transcoder = Gapic::Rest::GrpcTranscoder.new
788
+ .with_bindings(
789
+ uri_method: :post,
790
+ uri_template: "/v1/{parent}/azureClients",
791
+ body: "azure_client",
792
+ matches: [
793
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
794
+ ]
795
+ )
796
+ transcoder.transcode request_pb
797
+ end
798
+
799
+ ##
800
+ # @private
801
+ #
802
+ # GRPC transcoding helper method for the get_azure_client REST call
803
+ #
804
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureClientRequest]
805
+ # A request object representing the call parameters. Required.
806
+ # @return [Array(String, [String, nil], Hash{String => String})]
807
+ # Uri, Body, Query string parameters
808
+ def self.transcode_get_azure_client_request request_pb
809
+ transcoder = Gapic::Rest::GrpcTranscoder.new
810
+ .with_bindings(
811
+ uri_method: :get,
812
+ uri_template: "/v1/{name}",
813
+ matches: [
814
+ ["name", %r{^projects/[^/]+/locations/[^/]+/azureClients/[^/]+/?$}, false]
815
+ ]
816
+ )
817
+ transcoder.transcode request_pb
818
+ end
819
+
820
+ ##
821
+ # @private
822
+ #
823
+ # GRPC transcoding helper method for the list_azure_clients REST call
824
+ #
825
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAzureClientsRequest]
826
+ # A request object representing the call parameters. Required.
827
+ # @return [Array(String, [String, nil], Hash{String => String})]
828
+ # Uri, Body, Query string parameters
829
+ def self.transcode_list_azure_clients_request request_pb
830
+ transcoder = Gapic::Rest::GrpcTranscoder.new
831
+ .with_bindings(
832
+ uri_method: :get,
833
+ uri_template: "/v1/{parent}/azureClients",
834
+ matches: [
835
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
836
+ ]
837
+ )
838
+ transcoder.transcode request_pb
839
+ end
840
+
841
+ ##
842
+ # @private
843
+ #
844
+ # GRPC transcoding helper method for the delete_azure_client REST call
845
+ #
846
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAzureClientRequest]
847
+ # A request object representing the call parameters. Required.
848
+ # @return [Array(String, [String, nil], Hash{String => String})]
849
+ # Uri, Body, Query string parameters
850
+ def self.transcode_delete_azure_client_request request_pb
851
+ transcoder = Gapic::Rest::GrpcTranscoder.new
852
+ .with_bindings(
853
+ uri_method: :delete,
854
+ uri_template: "/v1/{name}",
855
+ matches: [
856
+ ["name", %r{^projects/[^/]+/locations/[^/]+/azureClients/[^/]+/?$}, false]
857
+ ]
858
+ )
859
+ transcoder.transcode request_pb
860
+ end
861
+
862
+ ##
863
+ # @private
864
+ #
865
+ # GRPC transcoding helper method for the create_azure_cluster REST call
866
+ #
867
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAzureClusterRequest]
868
+ # A request object representing the call parameters. Required.
869
+ # @return [Array(String, [String, nil], Hash{String => String})]
870
+ # Uri, Body, Query string parameters
871
+ def self.transcode_create_azure_cluster_request request_pb
872
+ transcoder = Gapic::Rest::GrpcTranscoder.new
873
+ .with_bindings(
874
+ uri_method: :post,
875
+ uri_template: "/v1/{parent}/azureClusters",
876
+ body: "azure_cluster",
877
+ matches: [
878
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
879
+ ]
880
+ )
881
+ transcoder.transcode request_pb
882
+ end
883
+
884
+ ##
885
+ # @private
886
+ #
887
+ # GRPC transcoding helper method for the update_azure_cluster REST call
888
+ #
889
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAzureClusterRequest]
890
+ # A request object representing the call parameters. Required.
891
+ # @return [Array(String, [String, nil], Hash{String => String})]
892
+ # Uri, Body, Query string parameters
893
+ def self.transcode_update_azure_cluster_request request_pb
894
+ transcoder = Gapic::Rest::GrpcTranscoder.new
895
+ .with_bindings(
896
+ uri_method: :patch,
897
+ uri_template: "/v1/{azure_cluster.name}",
898
+ body: "azure_cluster",
899
+ matches: [
900
+ ["azure_cluster.name", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
901
+ ]
902
+ )
903
+ transcoder.transcode request_pb
904
+ end
905
+
906
+ ##
907
+ # @private
908
+ #
909
+ # GRPC transcoding helper method for the get_azure_cluster REST call
910
+ #
911
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureClusterRequest]
912
+ # A request object representing the call parameters. Required.
913
+ # @return [Array(String, [String, nil], Hash{String => String})]
914
+ # Uri, Body, Query string parameters
915
+ def self.transcode_get_azure_cluster_request request_pb
916
+ transcoder = Gapic::Rest::GrpcTranscoder.new
917
+ .with_bindings(
918
+ uri_method: :get,
919
+ uri_template: "/v1/{name}",
920
+ matches: [
921
+ ["name", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
922
+ ]
923
+ )
924
+ transcoder.transcode request_pb
925
+ end
926
+
927
+ ##
928
+ # @private
929
+ #
930
+ # GRPC transcoding helper method for the list_azure_clusters REST call
931
+ #
932
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAzureClustersRequest]
933
+ # A request object representing the call parameters. Required.
934
+ # @return [Array(String, [String, nil], Hash{String => String})]
935
+ # Uri, Body, Query string parameters
936
+ def self.transcode_list_azure_clusters_request request_pb
937
+ transcoder = Gapic::Rest::GrpcTranscoder.new
938
+ .with_bindings(
939
+ uri_method: :get,
940
+ uri_template: "/v1/{parent}/azureClusters",
941
+ matches: [
942
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
943
+ ]
944
+ )
945
+ transcoder.transcode request_pb
946
+ end
947
+
948
+ ##
949
+ # @private
950
+ #
951
+ # GRPC transcoding helper method for the delete_azure_cluster REST call
952
+ #
953
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAzureClusterRequest]
954
+ # A request object representing the call parameters. Required.
955
+ # @return [Array(String, [String, nil], Hash{String => String})]
956
+ # Uri, Body, Query string parameters
957
+ def self.transcode_delete_azure_cluster_request request_pb
958
+ transcoder = Gapic::Rest::GrpcTranscoder.new
959
+ .with_bindings(
960
+ uri_method: :delete,
961
+ uri_template: "/v1/{name}",
962
+ matches: [
963
+ ["name", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
964
+ ]
965
+ )
966
+ transcoder.transcode request_pb
967
+ end
968
+
969
+ ##
970
+ # @private
971
+ #
972
+ # GRPC transcoding helper method for the generate_azure_cluster_agent_token REST call
973
+ #
974
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAzureClusterAgentTokenRequest]
975
+ # A request object representing the call parameters. Required.
976
+ # @return [Array(String, [String, nil], Hash{String => String})]
977
+ # Uri, Body, Query string parameters
978
+ def self.transcode_generate_azure_cluster_agent_token_request request_pb
979
+ transcoder = Gapic::Rest::GrpcTranscoder.new
980
+ .with_bindings(
981
+ uri_method: :post,
982
+ uri_template: "/v1/{azure_cluster}:generateAzureClusterAgentToken",
983
+ body: "*",
984
+ matches: [
985
+ ["azure_cluster", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
986
+ ]
987
+ )
988
+ transcoder.transcode request_pb
989
+ end
990
+
991
+ ##
992
+ # @private
993
+ #
994
+ # GRPC transcoding helper method for the generate_azure_access_token REST call
995
+ #
996
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GenerateAzureAccessTokenRequest]
997
+ # A request object representing the call parameters. Required.
998
+ # @return [Array(String, [String, nil], Hash{String => String})]
999
+ # Uri, Body, Query string parameters
1000
+ def self.transcode_generate_azure_access_token_request request_pb
1001
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1002
+ .with_bindings(
1003
+ uri_method: :get,
1004
+ uri_template: "/v1/{azure_cluster}:generateAzureAccessToken",
1005
+ matches: [
1006
+ ["azure_cluster", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
1007
+ ]
1008
+ )
1009
+ transcoder.transcode request_pb
1010
+ end
1011
+
1012
+ ##
1013
+ # @private
1014
+ #
1015
+ # GRPC transcoding helper method for the create_azure_node_pool REST call
1016
+ #
1017
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::CreateAzureNodePoolRequest]
1018
+ # A request object representing the call parameters. Required.
1019
+ # @return [Array(String, [String, nil], Hash{String => String})]
1020
+ # Uri, Body, Query string parameters
1021
+ def self.transcode_create_azure_node_pool_request request_pb
1022
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1023
+ .with_bindings(
1024
+ uri_method: :post,
1025
+ uri_template: "/v1/{parent}/azureNodePools",
1026
+ body: "azure_node_pool",
1027
+ matches: [
1028
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
1029
+ ]
1030
+ )
1031
+ transcoder.transcode request_pb
1032
+ end
1033
+
1034
+ ##
1035
+ # @private
1036
+ #
1037
+ # GRPC transcoding helper method for the update_azure_node_pool REST call
1038
+ #
1039
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::UpdateAzureNodePoolRequest]
1040
+ # A request object representing the call parameters. Required.
1041
+ # @return [Array(String, [String, nil], Hash{String => String})]
1042
+ # Uri, Body, Query string parameters
1043
+ def self.transcode_update_azure_node_pool_request request_pb
1044
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1045
+ .with_bindings(
1046
+ uri_method: :patch,
1047
+ uri_template: "/v1/{azure_node_pool.name}",
1048
+ body: "azure_node_pool",
1049
+ matches: [
1050
+ ["azure_node_pool.name", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/azureNodePools/[^/]+/?$}, false]
1051
+ ]
1052
+ )
1053
+ transcoder.transcode request_pb
1054
+ end
1055
+
1056
+ ##
1057
+ # @private
1058
+ #
1059
+ # GRPC transcoding helper method for the get_azure_node_pool REST call
1060
+ #
1061
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureNodePoolRequest]
1062
+ # A request object representing the call parameters. Required.
1063
+ # @return [Array(String, [String, nil], Hash{String => String})]
1064
+ # Uri, Body, Query string parameters
1065
+ def self.transcode_get_azure_node_pool_request request_pb
1066
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1067
+ .with_bindings(
1068
+ uri_method: :get,
1069
+ uri_template: "/v1/{name}",
1070
+ matches: [
1071
+ ["name", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/azureNodePools/[^/]+/?$}, false]
1072
+ ]
1073
+ )
1074
+ transcoder.transcode request_pb
1075
+ end
1076
+
1077
+ ##
1078
+ # @private
1079
+ #
1080
+ # GRPC transcoding helper method for the list_azure_node_pools REST call
1081
+ #
1082
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::ListAzureNodePoolsRequest]
1083
+ # A request object representing the call parameters. Required.
1084
+ # @return [Array(String, [String, nil], Hash{String => String})]
1085
+ # Uri, Body, Query string parameters
1086
+ def self.transcode_list_azure_node_pools_request request_pb
1087
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1088
+ .with_bindings(
1089
+ uri_method: :get,
1090
+ uri_template: "/v1/{parent}/azureNodePools",
1091
+ matches: [
1092
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
1093
+ ]
1094
+ )
1095
+ transcoder.transcode request_pb
1096
+ end
1097
+
1098
+ ##
1099
+ # @private
1100
+ #
1101
+ # GRPC transcoding helper method for the delete_azure_node_pool REST call
1102
+ #
1103
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::DeleteAzureNodePoolRequest]
1104
+ # A request object representing the call parameters. Required.
1105
+ # @return [Array(String, [String, nil], Hash{String => String})]
1106
+ # Uri, Body, Query string parameters
1107
+ def self.transcode_delete_azure_node_pool_request request_pb
1108
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1109
+ .with_bindings(
1110
+ uri_method: :delete,
1111
+ uri_template: "/v1/{name}",
1112
+ matches: [
1113
+ ["name", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/azureNodePools/[^/]+/?$}, false]
1114
+ ]
1115
+ )
1116
+ transcoder.transcode request_pb
1117
+ end
1118
+
1119
+ ##
1120
+ # @private
1121
+ #
1122
+ # GRPC transcoding helper method for the get_azure_open_id_config REST call
1123
+ #
1124
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureOpenIdConfigRequest]
1125
+ # A request object representing the call parameters. Required.
1126
+ # @return [Array(String, [String, nil], Hash{String => String})]
1127
+ # Uri, Body, Query string parameters
1128
+ def self.transcode_get_azure_open_id_config_request request_pb
1129
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1130
+ .with_bindings(
1131
+ uri_method: :get,
1132
+ uri_template: "/v1/{azure_cluster}/.well-known/openid-configuration",
1133
+ matches: [
1134
+ ["azure_cluster", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
1135
+ ]
1136
+ )
1137
+ transcoder.transcode request_pb
1138
+ end
1139
+
1140
+ ##
1141
+ # @private
1142
+ #
1143
+ # GRPC transcoding helper method for the get_azure_json_web_keys REST call
1144
+ #
1145
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureJsonWebKeysRequest]
1146
+ # A request object representing the call parameters. Required.
1147
+ # @return [Array(String, [String, nil], Hash{String => String})]
1148
+ # Uri, Body, Query string parameters
1149
+ def self.transcode_get_azure_json_web_keys_request request_pb
1150
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1151
+ .with_bindings(
1152
+ uri_method: :get,
1153
+ uri_template: "/v1/{azure_cluster}/jwks",
1154
+ matches: [
1155
+ ["azure_cluster", %r{^projects/[^/]+/locations/[^/]+/azureClusters/[^/]+/?$}, false]
1156
+ ]
1157
+ )
1158
+ transcoder.transcode request_pb
1159
+ end
1160
+
1161
+ ##
1162
+ # @private
1163
+ #
1164
+ # GRPC transcoding helper method for the get_azure_server_config REST call
1165
+ #
1166
+ # @param request_pb [::Google::Cloud::GkeMultiCloud::V1::GetAzureServerConfigRequest]
1167
+ # A request object representing the call parameters. Required.
1168
+ # @return [Array(String, [String, nil], Hash{String => String})]
1169
+ # Uri, Body, Query string parameters
1170
+ def self.transcode_get_azure_server_config_request request_pb
1171
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1172
+ .with_bindings(
1173
+ uri_method: :get,
1174
+ uri_template: "/v1/{name}",
1175
+ matches: [
1176
+ ["name", %r{^projects/[^/]+/locations/[^/]+/azureServerConfig/?$}, false]
1177
+ ]
1178
+ )
1179
+ transcoder.transcode request_pb
1180
+ end
1181
+ end
1182
+ end
1183
+ end
1184
+ end
1185
+ end
1186
+ end
1187
+ end