google-cloud-saas_platform-saas_service_mgmt-v1beta1 0.a → 0.1.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/bindings_override.rb +77 -0
  6. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/rest.rb +41 -0
  7. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/client.rb +3785 -0
  8. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/credentials.rb +49 -0
  9. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/paths.rb +185 -0
  10. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/client.rb +3557 -0
  11. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest/service_stub.rb +1925 -0
  12. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments/rest.rb +55 -0
  13. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_deployments.rb +57 -0
  14. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/client.rb +1517 -0
  15. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/credentials.rb +49 -0
  16. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/paths.rb +128 -0
  17. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/client.rb +1429 -0
  18. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub.rb +697 -0
  19. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest.rb +55 -0
  20. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts.rb +57 -0
  21. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1/version.rb +7 -2
  22. data/lib/google/cloud/saas_platform/saas_service_mgmt/v1beta1.rb +48 -0
  23. data/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/common_pb.rb +58 -0
  24. data/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources_pb.rb +73 -0
  25. data/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb.rb +89 -0
  26. data/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service_services_pb.rb +105 -0
  27. data/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources_pb.rb +60 -0
  28. data/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb.rb +65 -0
  29. data/lib/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_services_pb.rb +65 -0
  30. data/lib/google-cloud-saas_platform-saas_service_mgmt-v1beta1.rb +21 -0
  31. data/proto_docs/README.md +4 -0
  32. data/proto_docs/google/api/client.rb +473 -0
  33. data/proto_docs/google/api/field_behavior.rb +85 -0
  34. data/proto_docs/google/api/field_info.rb +88 -0
  35. data/proto_docs/google/api/launch_stage.rb +71 -0
  36. data/proto_docs/google/api/resource.rb +227 -0
  37. data/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.rb +231 -0
  38. data/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.rb +837 -0
  39. data/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.rb +976 -0
  40. data/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.rb +389 -0
  41. data/proto_docs/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.rb +344 -0
  42. data/proto_docs/google/protobuf/any.rb +145 -0
  43. data/proto_docs/google/protobuf/duration.rb +98 -0
  44. data/proto_docs/google/protobuf/empty.rb +34 -0
  45. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  46. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  47. metadata +94 -9
@@ -0,0 +1,1925 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module SaasPlatform
24
+ module SaasServiceMgmt
25
+ module V1beta1
26
+ module SaasDeployments
27
+ module Rest
28
+ ##
29
+ # REST service stub for the SaasDeployments service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ # @private
35
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
36
+ # These require statements are intentionally placed here to initialize
37
+ # the REST modules only when it's required.
38
+ require "gapic/rest"
39
+
40
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
41
+ endpoint_template: endpoint_template,
42
+ universe_domain: universe_domain,
43
+ credentials: credentials,
44
+ numeric_enums: true,
45
+ service_name: self.class,
46
+ raise_faraday_errors: false,
47
+ logger: logger
48
+ end
49
+
50
+ ##
51
+ # The effective universe domain
52
+ #
53
+ # @return [String]
54
+ #
55
+ def universe_domain
56
+ @client_stub.universe_domain
57
+ end
58
+
59
+ ##
60
+ # The effective endpoint
61
+ #
62
+ # @return [String]
63
+ #
64
+ def endpoint
65
+ @client_stub.endpoint
66
+ end
67
+
68
+ ##
69
+ # The logger used for request/response debug logging.
70
+ #
71
+ # @return [Logger]
72
+ #
73
+ def logger stub: false
74
+ stub ? @client_stub.stub_logger : @client_stub.logger
75
+ end
76
+
77
+ ##
78
+ # Baseline implementation for the list_saas REST call
79
+ #
80
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest]
81
+ # A request object representing the call parameters. Required.
82
+ # @param options [::Gapic::CallOptions]
83
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
84
+ #
85
+ # @yield [result, operation] Access the result along with the TransportOperation object
86
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse]
87
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
88
+ #
89
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse]
90
+ # A result object deserialized from the server's reply
91
+ def list_saas request_pb, options = nil
92
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
93
+
94
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_saas_request request_pb
95
+ query_string_params = if query_string_params.any?
96
+ query_string_params.to_h { |p| p.split "=", 2 }
97
+ else
98
+ {}
99
+ end
100
+
101
+ response = @client_stub.make_http_request(
102
+ verb,
103
+ uri: uri,
104
+ body: body || "",
105
+ params: query_string_params,
106
+ method_name: "list_saas",
107
+ options: options
108
+ )
109
+ operation = ::Gapic::Rest::TransportOperation.new response
110
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasResponse.decode_json response.body, ignore_unknown_fields: true
111
+ catch :response do
112
+ yield result, operation if block_given?
113
+ result
114
+ end
115
+ end
116
+
117
+ ##
118
+ # Baseline implementation for the get_saas REST call
119
+ #
120
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest]
121
+ # A request object representing the call parameters. Required.
122
+ # @param options [::Gapic::CallOptions]
123
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
124
+ #
125
+ # @yield [result, operation] Access the result along with the TransportOperation object
126
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas]
127
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
128
+ #
129
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas]
130
+ # A result object deserialized from the server's reply
131
+ def get_saas request_pb, options = nil
132
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
133
+
134
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_saas_request request_pb
135
+ query_string_params = if query_string_params.any?
136
+ query_string_params.to_h { |p| p.split "=", 2 }
137
+ else
138
+ {}
139
+ end
140
+
141
+ response = @client_stub.make_http_request(
142
+ verb,
143
+ uri: uri,
144
+ body: body || "",
145
+ params: query_string_params,
146
+ method_name: "get_saas",
147
+ options: options
148
+ )
149
+ operation = ::Gapic::Rest::TransportOperation.new response
150
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true
151
+ catch :response do
152
+ yield result, operation if block_given?
153
+ result
154
+ end
155
+ end
156
+
157
+ ##
158
+ # Baseline implementation for the create_saas REST call
159
+ #
160
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas]
170
+ # A result object deserialized from the server's reply
171
+ def create_saas request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_saas_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ method_name: "create_saas",
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true
191
+ catch :response do
192
+ yield result, operation if block_given?
193
+ result
194
+ end
195
+ end
196
+
197
+ ##
198
+ # Baseline implementation for the update_saas REST call
199
+ #
200
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest]
201
+ # A request object representing the call parameters. Required.
202
+ # @param options [::Gapic::CallOptions]
203
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
204
+ #
205
+ # @yield [result, operation] Access the result along with the TransportOperation object
206
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas]
207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
208
+ #
209
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas]
210
+ # A result object deserialized from the server's reply
211
+ def update_saas request_pb, options = nil
212
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
213
+
214
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_saas_request request_pb
215
+ query_string_params = if query_string_params.any?
216
+ query_string_params.to_h { |p| p.split "=", 2 }
217
+ else
218
+ {}
219
+ end
220
+
221
+ response = @client_stub.make_http_request(
222
+ verb,
223
+ uri: uri,
224
+ body: body || "",
225
+ params: query_string_params,
226
+ method_name: "update_saas",
227
+ options: options
228
+ )
229
+ operation = ::Gapic::Rest::TransportOperation.new response
230
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Saas.decode_json response.body, ignore_unknown_fields: true
231
+ catch :response do
232
+ yield result, operation if block_given?
233
+ result
234
+ end
235
+ end
236
+
237
+ ##
238
+ # Baseline implementation for the delete_saas REST call
239
+ #
240
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest]
241
+ # A request object representing the call parameters. Required.
242
+ # @param options [::Gapic::CallOptions]
243
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
244
+ #
245
+ # @yield [result, operation] Access the result along with the TransportOperation object
246
+ # @yieldparam result [::Google::Protobuf::Empty]
247
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
248
+ #
249
+ # @return [::Google::Protobuf::Empty]
250
+ # A result object deserialized from the server's reply
251
+ def delete_saas request_pb, options = nil
252
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
253
+
254
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_saas_request request_pb
255
+ query_string_params = if query_string_params.any?
256
+ query_string_params.to_h { |p| p.split "=", 2 }
257
+ else
258
+ {}
259
+ end
260
+
261
+ response = @client_stub.make_http_request(
262
+ verb,
263
+ uri: uri,
264
+ body: body || "",
265
+ params: query_string_params,
266
+ method_name: "delete_saas",
267
+ options: options
268
+ )
269
+ operation = ::Gapic::Rest::TransportOperation.new response
270
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
271
+ catch :response do
272
+ yield result, operation if block_given?
273
+ result
274
+ end
275
+ end
276
+
277
+ ##
278
+ # Baseline implementation for the list_tenants REST call
279
+ #
280
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest]
281
+ # A request object representing the call parameters. Required.
282
+ # @param options [::Gapic::CallOptions]
283
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
284
+ #
285
+ # @yield [result, operation] Access the result along with the TransportOperation object
286
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse]
287
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
288
+ #
289
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse]
290
+ # A result object deserialized from the server's reply
291
+ def list_tenants request_pb, options = nil
292
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
293
+
294
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_tenants_request request_pb
295
+ query_string_params = if query_string_params.any?
296
+ query_string_params.to_h { |p| p.split "=", 2 }
297
+ else
298
+ {}
299
+ end
300
+
301
+ response = @client_stub.make_http_request(
302
+ verb,
303
+ uri: uri,
304
+ body: body || "",
305
+ params: query_string_params,
306
+ method_name: "list_tenants",
307
+ options: options
308
+ )
309
+ operation = ::Gapic::Rest::TransportOperation.new response
310
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsResponse.decode_json response.body, ignore_unknown_fields: true
311
+ catch :response do
312
+ yield result, operation if block_given?
313
+ result
314
+ end
315
+ end
316
+
317
+ ##
318
+ # Baseline implementation for the get_tenant REST call
319
+ #
320
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest]
321
+ # A request object representing the call parameters. Required.
322
+ # @param options [::Gapic::CallOptions]
323
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
324
+ #
325
+ # @yield [result, operation] Access the result along with the TransportOperation object
326
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant]
327
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
328
+ #
329
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant]
330
+ # A result object deserialized from the server's reply
331
+ def get_tenant request_pb, options = nil
332
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
333
+
334
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_tenant_request request_pb
335
+ query_string_params = if query_string_params.any?
336
+ query_string_params.to_h { |p| p.split "=", 2 }
337
+ else
338
+ {}
339
+ end
340
+
341
+ response = @client_stub.make_http_request(
342
+ verb,
343
+ uri: uri,
344
+ body: body || "",
345
+ params: query_string_params,
346
+ method_name: "get_tenant",
347
+ options: options
348
+ )
349
+ operation = ::Gapic::Rest::TransportOperation.new response
350
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true
351
+ catch :response do
352
+ yield result, operation if block_given?
353
+ result
354
+ end
355
+ end
356
+
357
+ ##
358
+ # Baseline implementation for the create_tenant REST call
359
+ #
360
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest]
361
+ # A request object representing the call parameters. Required.
362
+ # @param options [::Gapic::CallOptions]
363
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
364
+ #
365
+ # @yield [result, operation] Access the result along with the TransportOperation object
366
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant]
367
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
368
+ #
369
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant]
370
+ # A result object deserialized from the server's reply
371
+ def create_tenant request_pb, options = nil
372
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
373
+
374
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_tenant_request request_pb
375
+ query_string_params = if query_string_params.any?
376
+ query_string_params.to_h { |p| p.split "=", 2 }
377
+ else
378
+ {}
379
+ end
380
+
381
+ response = @client_stub.make_http_request(
382
+ verb,
383
+ uri: uri,
384
+ body: body || "",
385
+ params: query_string_params,
386
+ method_name: "create_tenant",
387
+ options: options
388
+ )
389
+ operation = ::Gapic::Rest::TransportOperation.new response
390
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true
391
+ catch :response do
392
+ yield result, operation if block_given?
393
+ result
394
+ end
395
+ end
396
+
397
+ ##
398
+ # Baseline implementation for the update_tenant REST call
399
+ #
400
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest]
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::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant]
407
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
408
+ #
409
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant]
410
+ # A result object deserialized from the server's reply
411
+ def update_tenant 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_update_tenant_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
+ method_name: "update_tenant",
427
+ options: options
428
+ )
429
+ operation = ::Gapic::Rest::TransportOperation.new response
430
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Tenant.decode_json response.body, ignore_unknown_fields: true
431
+ catch :response do
432
+ yield result, operation if block_given?
433
+ result
434
+ end
435
+ end
436
+
437
+ ##
438
+ # Baseline implementation for the delete_tenant REST call
439
+ #
440
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest]
441
+ # A request object representing the call parameters. Required.
442
+ # @param options [::Gapic::CallOptions]
443
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
444
+ #
445
+ # @yield [result, operation] Access the result along with the TransportOperation object
446
+ # @yieldparam result [::Google::Protobuf::Empty]
447
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
448
+ #
449
+ # @return [::Google::Protobuf::Empty]
450
+ # A result object deserialized from the server's reply
451
+ def delete_tenant request_pb, options = nil
452
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
453
+
454
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_tenant_request request_pb
455
+ query_string_params = if query_string_params.any?
456
+ query_string_params.to_h { |p| p.split "=", 2 }
457
+ else
458
+ {}
459
+ end
460
+
461
+ response = @client_stub.make_http_request(
462
+ verb,
463
+ uri: uri,
464
+ body: body || "",
465
+ params: query_string_params,
466
+ method_name: "delete_tenant",
467
+ options: options
468
+ )
469
+ operation = ::Gapic::Rest::TransportOperation.new response
470
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
471
+ catch :response do
472
+ yield result, operation if block_given?
473
+ result
474
+ end
475
+ end
476
+
477
+ ##
478
+ # Baseline implementation for the list_unit_kinds REST call
479
+ #
480
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest]
481
+ # A request object representing the call parameters. Required.
482
+ # @param options [::Gapic::CallOptions]
483
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
484
+ #
485
+ # @yield [result, operation] Access the result along with the TransportOperation object
486
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse]
487
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
488
+ #
489
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse]
490
+ # A result object deserialized from the server's reply
491
+ def list_unit_kinds request_pb, options = nil
492
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
493
+
494
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_unit_kinds_request request_pb
495
+ query_string_params = if query_string_params.any?
496
+ query_string_params.to_h { |p| p.split "=", 2 }
497
+ else
498
+ {}
499
+ end
500
+
501
+ response = @client_stub.make_http_request(
502
+ verb,
503
+ uri: uri,
504
+ body: body || "",
505
+ params: query_string_params,
506
+ method_name: "list_unit_kinds",
507
+ options: options
508
+ )
509
+ operation = ::Gapic::Rest::TransportOperation.new response
510
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsResponse.decode_json response.body, ignore_unknown_fields: true
511
+ catch :response do
512
+ yield result, operation if block_given?
513
+ result
514
+ end
515
+ end
516
+
517
+ ##
518
+ # Baseline implementation for the get_unit_kind REST call
519
+ #
520
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest]
521
+ # A request object representing the call parameters. Required.
522
+ # @param options [::Gapic::CallOptions]
523
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
524
+ #
525
+ # @yield [result, operation] Access the result along with the TransportOperation object
526
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind]
527
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
528
+ #
529
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind]
530
+ # A result object deserialized from the server's reply
531
+ def get_unit_kind request_pb, options = nil
532
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
533
+
534
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_kind_request request_pb
535
+ query_string_params = if query_string_params.any?
536
+ query_string_params.to_h { |p| p.split "=", 2 }
537
+ else
538
+ {}
539
+ end
540
+
541
+ response = @client_stub.make_http_request(
542
+ verb,
543
+ uri: uri,
544
+ body: body || "",
545
+ params: query_string_params,
546
+ method_name: "get_unit_kind",
547
+ options: options
548
+ )
549
+ operation = ::Gapic::Rest::TransportOperation.new response
550
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true
551
+ catch :response do
552
+ yield result, operation if block_given?
553
+ result
554
+ end
555
+ end
556
+
557
+ ##
558
+ # Baseline implementation for the create_unit_kind REST call
559
+ #
560
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest]
561
+ # A request object representing the call parameters. Required.
562
+ # @param options [::Gapic::CallOptions]
563
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
564
+ #
565
+ # @yield [result, operation] Access the result along with the TransportOperation object
566
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind]
567
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
568
+ #
569
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind]
570
+ # A result object deserialized from the server's reply
571
+ def create_unit_kind request_pb, options = nil
572
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
573
+
574
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_kind_request request_pb
575
+ query_string_params = if query_string_params.any?
576
+ query_string_params.to_h { |p| p.split "=", 2 }
577
+ else
578
+ {}
579
+ end
580
+
581
+ response = @client_stub.make_http_request(
582
+ verb,
583
+ uri: uri,
584
+ body: body || "",
585
+ params: query_string_params,
586
+ method_name: "create_unit_kind",
587
+ options: options
588
+ )
589
+ operation = ::Gapic::Rest::TransportOperation.new response
590
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true
591
+ catch :response do
592
+ yield result, operation if block_given?
593
+ result
594
+ end
595
+ end
596
+
597
+ ##
598
+ # Baseline implementation for the update_unit_kind REST call
599
+ #
600
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest]
601
+ # A request object representing the call parameters. Required.
602
+ # @param options [::Gapic::CallOptions]
603
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
604
+ #
605
+ # @yield [result, operation] Access the result along with the TransportOperation object
606
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind]
607
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
608
+ #
609
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind]
610
+ # A result object deserialized from the server's reply
611
+ def update_unit_kind request_pb, options = nil
612
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
613
+
614
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_kind_request request_pb
615
+ query_string_params = if query_string_params.any?
616
+ query_string_params.to_h { |p| p.split "=", 2 }
617
+ else
618
+ {}
619
+ end
620
+
621
+ response = @client_stub.make_http_request(
622
+ verb,
623
+ uri: uri,
624
+ body: body || "",
625
+ params: query_string_params,
626
+ method_name: "update_unit_kind",
627
+ options: options
628
+ )
629
+ operation = ::Gapic::Rest::TransportOperation.new response
630
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitKind.decode_json response.body, ignore_unknown_fields: true
631
+ catch :response do
632
+ yield result, operation if block_given?
633
+ result
634
+ end
635
+ end
636
+
637
+ ##
638
+ # Baseline implementation for the delete_unit_kind REST call
639
+ #
640
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest]
641
+ # A request object representing the call parameters. Required.
642
+ # @param options [::Gapic::CallOptions]
643
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
644
+ #
645
+ # @yield [result, operation] Access the result along with the TransportOperation object
646
+ # @yieldparam result [::Google::Protobuf::Empty]
647
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
648
+ #
649
+ # @return [::Google::Protobuf::Empty]
650
+ # A result object deserialized from the server's reply
651
+ def delete_unit_kind request_pb, options = nil
652
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
653
+
654
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_kind_request request_pb
655
+ query_string_params = if query_string_params.any?
656
+ query_string_params.to_h { |p| p.split "=", 2 }
657
+ else
658
+ {}
659
+ end
660
+
661
+ response = @client_stub.make_http_request(
662
+ verb,
663
+ uri: uri,
664
+ body: body || "",
665
+ params: query_string_params,
666
+ method_name: "delete_unit_kind",
667
+ options: options
668
+ )
669
+ operation = ::Gapic::Rest::TransportOperation.new response
670
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
671
+ catch :response do
672
+ yield result, operation if block_given?
673
+ result
674
+ end
675
+ end
676
+
677
+ ##
678
+ # Baseline implementation for the list_units REST call
679
+ #
680
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest]
681
+ # A request object representing the call parameters. Required.
682
+ # @param options [::Gapic::CallOptions]
683
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
684
+ #
685
+ # @yield [result, operation] Access the result along with the TransportOperation object
686
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse]
687
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
688
+ #
689
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse]
690
+ # A result object deserialized from the server's reply
691
+ def list_units request_pb, options = nil
692
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
693
+
694
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_units_request request_pb
695
+ query_string_params = if query_string_params.any?
696
+ query_string_params.to_h { |p| p.split "=", 2 }
697
+ else
698
+ {}
699
+ end
700
+
701
+ response = @client_stub.make_http_request(
702
+ verb,
703
+ uri: uri,
704
+ body: body || "",
705
+ params: query_string_params,
706
+ method_name: "list_units",
707
+ options: options
708
+ )
709
+ operation = ::Gapic::Rest::TransportOperation.new response
710
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsResponse.decode_json response.body, ignore_unknown_fields: true
711
+ catch :response do
712
+ yield result, operation if block_given?
713
+ result
714
+ end
715
+ end
716
+
717
+ ##
718
+ # Baseline implementation for the get_unit REST call
719
+ #
720
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest]
721
+ # A request object representing the call parameters. Required.
722
+ # @param options [::Gapic::CallOptions]
723
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
724
+ #
725
+ # @yield [result, operation] Access the result along with the TransportOperation object
726
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit]
727
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
728
+ #
729
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit]
730
+ # A result object deserialized from the server's reply
731
+ def get_unit request_pb, options = nil
732
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
733
+
734
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_request request_pb
735
+ query_string_params = if query_string_params.any?
736
+ query_string_params.to_h { |p| p.split "=", 2 }
737
+ else
738
+ {}
739
+ end
740
+
741
+ response = @client_stub.make_http_request(
742
+ verb,
743
+ uri: uri,
744
+ body: body || "",
745
+ params: query_string_params,
746
+ method_name: "get_unit",
747
+ options: options
748
+ )
749
+ operation = ::Gapic::Rest::TransportOperation.new response
750
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true
751
+ catch :response do
752
+ yield result, operation if block_given?
753
+ result
754
+ end
755
+ end
756
+
757
+ ##
758
+ # Baseline implementation for the create_unit REST call
759
+ #
760
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest]
761
+ # A request object representing the call parameters. Required.
762
+ # @param options [::Gapic::CallOptions]
763
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
764
+ #
765
+ # @yield [result, operation] Access the result along with the TransportOperation object
766
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit]
767
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
768
+ #
769
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit]
770
+ # A result object deserialized from the server's reply
771
+ def create_unit request_pb, options = nil
772
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
773
+
774
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_request request_pb
775
+ query_string_params = if query_string_params.any?
776
+ query_string_params.to_h { |p| p.split "=", 2 }
777
+ else
778
+ {}
779
+ end
780
+
781
+ response = @client_stub.make_http_request(
782
+ verb,
783
+ uri: uri,
784
+ body: body || "",
785
+ params: query_string_params,
786
+ method_name: "create_unit",
787
+ options: options
788
+ )
789
+ operation = ::Gapic::Rest::TransportOperation.new response
790
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true
791
+ catch :response do
792
+ yield result, operation if block_given?
793
+ result
794
+ end
795
+ end
796
+
797
+ ##
798
+ # Baseline implementation for the update_unit REST call
799
+ #
800
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest]
801
+ # A request object representing the call parameters. Required.
802
+ # @param options [::Gapic::CallOptions]
803
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
804
+ #
805
+ # @yield [result, operation] Access the result along with the TransportOperation object
806
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit]
807
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
808
+ #
809
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit]
810
+ # A result object deserialized from the server's reply
811
+ def update_unit request_pb, options = nil
812
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
813
+
814
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_request request_pb
815
+ query_string_params = if query_string_params.any?
816
+ query_string_params.to_h { |p| p.split "=", 2 }
817
+ else
818
+ {}
819
+ end
820
+
821
+ response = @client_stub.make_http_request(
822
+ verb,
823
+ uri: uri,
824
+ body: body || "",
825
+ params: query_string_params,
826
+ method_name: "update_unit",
827
+ options: options
828
+ )
829
+ operation = ::Gapic::Rest::TransportOperation.new response
830
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Unit.decode_json response.body, ignore_unknown_fields: true
831
+ catch :response do
832
+ yield result, operation if block_given?
833
+ result
834
+ end
835
+ end
836
+
837
+ ##
838
+ # Baseline implementation for the delete_unit REST call
839
+ #
840
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest]
841
+ # A request object representing the call parameters. Required.
842
+ # @param options [::Gapic::CallOptions]
843
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
844
+ #
845
+ # @yield [result, operation] Access the result along with the TransportOperation object
846
+ # @yieldparam result [::Google::Protobuf::Empty]
847
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
848
+ #
849
+ # @return [::Google::Protobuf::Empty]
850
+ # A result object deserialized from the server's reply
851
+ def delete_unit request_pb, options = nil
852
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
853
+
854
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_request request_pb
855
+ query_string_params = if query_string_params.any?
856
+ query_string_params.to_h { |p| p.split "=", 2 }
857
+ else
858
+ {}
859
+ end
860
+
861
+ response = @client_stub.make_http_request(
862
+ verb,
863
+ uri: uri,
864
+ body: body || "",
865
+ params: query_string_params,
866
+ method_name: "delete_unit",
867
+ options: options
868
+ )
869
+ operation = ::Gapic::Rest::TransportOperation.new response
870
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
871
+ catch :response do
872
+ yield result, operation if block_given?
873
+ result
874
+ end
875
+ end
876
+
877
+ ##
878
+ # Baseline implementation for the list_unit_operations REST call
879
+ #
880
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest]
881
+ # A request object representing the call parameters. Required.
882
+ # @param options [::Gapic::CallOptions]
883
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
884
+ #
885
+ # @yield [result, operation] Access the result along with the TransportOperation object
886
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse]
887
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
888
+ #
889
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse]
890
+ # A result object deserialized from the server's reply
891
+ def list_unit_operations request_pb, options = nil
892
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
893
+
894
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_unit_operations_request request_pb
895
+ query_string_params = if query_string_params.any?
896
+ query_string_params.to_h { |p| p.split "=", 2 }
897
+ else
898
+ {}
899
+ end
900
+
901
+ response = @client_stub.make_http_request(
902
+ verb,
903
+ uri: uri,
904
+ body: body || "",
905
+ params: query_string_params,
906
+ method_name: "list_unit_operations",
907
+ options: options
908
+ )
909
+ operation = ::Gapic::Rest::TransportOperation.new response
910
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsResponse.decode_json response.body, ignore_unknown_fields: true
911
+ catch :response do
912
+ yield result, operation if block_given?
913
+ result
914
+ end
915
+ end
916
+
917
+ ##
918
+ # Baseline implementation for the get_unit_operation REST call
919
+ #
920
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest]
921
+ # A request object representing the call parameters. Required.
922
+ # @param options [::Gapic::CallOptions]
923
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
924
+ #
925
+ # @yield [result, operation] Access the result along with the TransportOperation object
926
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation]
927
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
928
+ #
929
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation]
930
+ # A result object deserialized from the server's reply
931
+ def get_unit_operation request_pb, options = nil
932
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
933
+
934
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_unit_operation_request request_pb
935
+ query_string_params = if query_string_params.any?
936
+ query_string_params.to_h { |p| p.split "=", 2 }
937
+ else
938
+ {}
939
+ end
940
+
941
+ response = @client_stub.make_http_request(
942
+ verb,
943
+ uri: uri,
944
+ body: body || "",
945
+ params: query_string_params,
946
+ method_name: "get_unit_operation",
947
+ options: options
948
+ )
949
+ operation = ::Gapic::Rest::TransportOperation.new response
950
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true
951
+ catch :response do
952
+ yield result, operation if block_given?
953
+ result
954
+ end
955
+ end
956
+
957
+ ##
958
+ # Baseline implementation for the create_unit_operation REST call
959
+ #
960
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest]
961
+ # A request object representing the call parameters. Required.
962
+ # @param options [::Gapic::CallOptions]
963
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
964
+ #
965
+ # @yield [result, operation] Access the result along with the TransportOperation object
966
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation]
967
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
968
+ #
969
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation]
970
+ # A result object deserialized from the server's reply
971
+ def create_unit_operation request_pb, options = nil
972
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
973
+
974
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_unit_operation_request request_pb
975
+ query_string_params = if query_string_params.any?
976
+ query_string_params.to_h { |p| p.split "=", 2 }
977
+ else
978
+ {}
979
+ end
980
+
981
+ response = @client_stub.make_http_request(
982
+ verb,
983
+ uri: uri,
984
+ body: body || "",
985
+ params: query_string_params,
986
+ method_name: "create_unit_operation",
987
+ options: options
988
+ )
989
+ operation = ::Gapic::Rest::TransportOperation.new response
990
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true
991
+ catch :response do
992
+ yield result, operation if block_given?
993
+ result
994
+ end
995
+ end
996
+
997
+ ##
998
+ # Baseline implementation for the update_unit_operation REST call
999
+ #
1000
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest]
1001
+ # A request object representing the call parameters. Required.
1002
+ # @param options [::Gapic::CallOptions]
1003
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1004
+ #
1005
+ # @yield [result, operation] Access the result along with the TransportOperation object
1006
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation]
1007
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1008
+ #
1009
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation]
1010
+ # A result object deserialized from the server's reply
1011
+ def update_unit_operation request_pb, options = nil
1012
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1013
+
1014
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_unit_operation_request request_pb
1015
+ query_string_params = if query_string_params.any?
1016
+ query_string_params.to_h { |p| p.split "=", 2 }
1017
+ else
1018
+ {}
1019
+ end
1020
+
1021
+ response = @client_stub.make_http_request(
1022
+ verb,
1023
+ uri: uri,
1024
+ body: body || "",
1025
+ params: query_string_params,
1026
+ method_name: "update_unit_operation",
1027
+ options: options
1028
+ )
1029
+ operation = ::Gapic::Rest::TransportOperation.new response
1030
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UnitOperation.decode_json response.body, ignore_unknown_fields: true
1031
+ catch :response do
1032
+ yield result, operation if block_given?
1033
+ result
1034
+ end
1035
+ end
1036
+
1037
+ ##
1038
+ # Baseline implementation for the delete_unit_operation REST call
1039
+ #
1040
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest]
1041
+ # A request object representing the call parameters. Required.
1042
+ # @param options [::Gapic::CallOptions]
1043
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1044
+ #
1045
+ # @yield [result, operation] Access the result along with the TransportOperation object
1046
+ # @yieldparam result [::Google::Protobuf::Empty]
1047
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1048
+ #
1049
+ # @return [::Google::Protobuf::Empty]
1050
+ # A result object deserialized from the server's reply
1051
+ def delete_unit_operation request_pb, options = nil
1052
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1053
+
1054
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_unit_operation_request request_pb
1055
+ query_string_params = if query_string_params.any?
1056
+ query_string_params.to_h { |p| p.split "=", 2 }
1057
+ else
1058
+ {}
1059
+ end
1060
+
1061
+ response = @client_stub.make_http_request(
1062
+ verb,
1063
+ uri: uri,
1064
+ body: body || "",
1065
+ params: query_string_params,
1066
+ method_name: "delete_unit_operation",
1067
+ options: options
1068
+ )
1069
+ operation = ::Gapic::Rest::TransportOperation.new response
1070
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1071
+ catch :response do
1072
+ yield result, operation if block_given?
1073
+ result
1074
+ end
1075
+ end
1076
+
1077
+ ##
1078
+ # Baseline implementation for the list_releases REST call
1079
+ #
1080
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest]
1081
+ # A request object representing the call parameters. Required.
1082
+ # @param options [::Gapic::CallOptions]
1083
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1084
+ #
1085
+ # @yield [result, operation] Access the result along with the TransportOperation object
1086
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse]
1087
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1088
+ #
1089
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse]
1090
+ # A result object deserialized from the server's reply
1091
+ def list_releases request_pb, options = nil
1092
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1093
+
1094
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_releases_request request_pb
1095
+ query_string_params = if query_string_params.any?
1096
+ query_string_params.to_h { |p| p.split "=", 2 }
1097
+ else
1098
+ {}
1099
+ end
1100
+
1101
+ response = @client_stub.make_http_request(
1102
+ verb,
1103
+ uri: uri,
1104
+ body: body || "",
1105
+ params: query_string_params,
1106
+ method_name: "list_releases",
1107
+ options: options
1108
+ )
1109
+ operation = ::Gapic::Rest::TransportOperation.new response
1110
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesResponse.decode_json response.body, ignore_unknown_fields: true
1111
+ catch :response do
1112
+ yield result, operation if block_given?
1113
+ result
1114
+ end
1115
+ end
1116
+
1117
+ ##
1118
+ # Baseline implementation for the get_release REST call
1119
+ #
1120
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest]
1121
+ # A request object representing the call parameters. Required.
1122
+ # @param options [::Gapic::CallOptions]
1123
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1124
+ #
1125
+ # @yield [result, operation] Access the result along with the TransportOperation object
1126
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release]
1127
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1128
+ #
1129
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release]
1130
+ # A result object deserialized from the server's reply
1131
+ def get_release request_pb, options = nil
1132
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1133
+
1134
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_release_request request_pb
1135
+ query_string_params = if query_string_params.any?
1136
+ query_string_params.to_h { |p| p.split "=", 2 }
1137
+ else
1138
+ {}
1139
+ end
1140
+
1141
+ response = @client_stub.make_http_request(
1142
+ verb,
1143
+ uri: uri,
1144
+ body: body || "",
1145
+ params: query_string_params,
1146
+ method_name: "get_release",
1147
+ options: options
1148
+ )
1149
+ operation = ::Gapic::Rest::TransportOperation.new response
1150
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true
1151
+ catch :response do
1152
+ yield result, operation if block_given?
1153
+ result
1154
+ end
1155
+ end
1156
+
1157
+ ##
1158
+ # Baseline implementation for the create_release REST call
1159
+ #
1160
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest]
1161
+ # A request object representing the call parameters. Required.
1162
+ # @param options [::Gapic::CallOptions]
1163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1164
+ #
1165
+ # @yield [result, operation] Access the result along with the TransportOperation object
1166
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release]
1167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1168
+ #
1169
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release]
1170
+ # A result object deserialized from the server's reply
1171
+ def create_release request_pb, options = nil
1172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1173
+
1174
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_release_request request_pb
1175
+ query_string_params = if query_string_params.any?
1176
+ query_string_params.to_h { |p| p.split "=", 2 }
1177
+ else
1178
+ {}
1179
+ end
1180
+
1181
+ response = @client_stub.make_http_request(
1182
+ verb,
1183
+ uri: uri,
1184
+ body: body || "",
1185
+ params: query_string_params,
1186
+ method_name: "create_release",
1187
+ options: options
1188
+ )
1189
+ operation = ::Gapic::Rest::TransportOperation.new response
1190
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true
1191
+ catch :response do
1192
+ yield result, operation if block_given?
1193
+ result
1194
+ end
1195
+ end
1196
+
1197
+ ##
1198
+ # Baseline implementation for the update_release REST call
1199
+ #
1200
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest]
1201
+ # A request object representing the call parameters. Required.
1202
+ # @param options [::Gapic::CallOptions]
1203
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1204
+ #
1205
+ # @yield [result, operation] Access the result along with the TransportOperation object
1206
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release]
1207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1208
+ #
1209
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release]
1210
+ # A result object deserialized from the server's reply
1211
+ def update_release request_pb, options = nil
1212
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1213
+
1214
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_release_request request_pb
1215
+ query_string_params = if query_string_params.any?
1216
+ query_string_params.to_h { |p| p.split "=", 2 }
1217
+ else
1218
+ {}
1219
+ end
1220
+
1221
+ response = @client_stub.make_http_request(
1222
+ verb,
1223
+ uri: uri,
1224
+ body: body || "",
1225
+ params: query_string_params,
1226
+ method_name: "update_release",
1227
+ options: options
1228
+ )
1229
+ operation = ::Gapic::Rest::TransportOperation.new response
1230
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Release.decode_json response.body, ignore_unknown_fields: true
1231
+ catch :response do
1232
+ yield result, operation if block_given?
1233
+ result
1234
+ end
1235
+ end
1236
+
1237
+ ##
1238
+ # Baseline implementation for the delete_release REST call
1239
+ #
1240
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest]
1241
+ # A request object representing the call parameters. Required.
1242
+ # @param options [::Gapic::CallOptions]
1243
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1244
+ #
1245
+ # @yield [result, operation] Access the result along with the TransportOperation object
1246
+ # @yieldparam result [::Google::Protobuf::Empty]
1247
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1248
+ #
1249
+ # @return [::Google::Protobuf::Empty]
1250
+ # A result object deserialized from the server's reply
1251
+ def delete_release request_pb, options = nil
1252
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1253
+
1254
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_request request_pb
1255
+ query_string_params = if query_string_params.any?
1256
+ query_string_params.to_h { |p| p.split "=", 2 }
1257
+ else
1258
+ {}
1259
+ end
1260
+
1261
+ response = @client_stub.make_http_request(
1262
+ verb,
1263
+ uri: uri,
1264
+ body: body || "",
1265
+ params: query_string_params,
1266
+ method_name: "delete_release",
1267
+ options: options
1268
+ )
1269
+ operation = ::Gapic::Rest::TransportOperation.new response
1270
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1271
+ catch :response do
1272
+ yield result, operation if block_given?
1273
+ result
1274
+ end
1275
+ end
1276
+
1277
+ ##
1278
+ # @private
1279
+ #
1280
+ # GRPC transcoding helper method for the list_saas REST call
1281
+ #
1282
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListSaasRequest]
1283
+ # A request object representing the call parameters. Required.
1284
+ # @return [Array(String, [String, nil], Hash{String => String})]
1285
+ # Uri, Body, Query string parameters
1286
+ def self.transcode_list_saas_request request_pb
1287
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1288
+ .with_bindings(
1289
+ uri_method: :get,
1290
+ uri_template: "/v1beta1/{parent}/saas",
1291
+ matches: [
1292
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1293
+ ]
1294
+ )
1295
+ transcoder.transcode request_pb
1296
+ end
1297
+
1298
+ ##
1299
+ # @private
1300
+ #
1301
+ # GRPC transcoding helper method for the get_saas REST call
1302
+ #
1303
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetSaasRequest]
1304
+ # A request object representing the call parameters. Required.
1305
+ # @return [Array(String, [String, nil], Hash{String => String})]
1306
+ # Uri, Body, Query string parameters
1307
+ def self.transcode_get_saas_request request_pb
1308
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1309
+ .with_bindings(
1310
+ uri_method: :get,
1311
+ uri_template: "/v1beta1/{name}",
1312
+ matches: [
1313
+ ["name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false]
1314
+ ]
1315
+ )
1316
+ transcoder.transcode request_pb
1317
+ end
1318
+
1319
+ ##
1320
+ # @private
1321
+ #
1322
+ # GRPC transcoding helper method for the create_saas REST call
1323
+ #
1324
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateSaasRequest]
1325
+ # A request object representing the call parameters. Required.
1326
+ # @return [Array(String, [String, nil], Hash{String => String})]
1327
+ # Uri, Body, Query string parameters
1328
+ def self.transcode_create_saas_request request_pb
1329
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1330
+ .with_bindings(
1331
+ uri_method: :post,
1332
+ uri_template: "/v1beta1/{parent}/saas",
1333
+ body: "saas",
1334
+ matches: [
1335
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1336
+ ]
1337
+ )
1338
+ transcoder.transcode request_pb
1339
+ end
1340
+
1341
+ ##
1342
+ # @private
1343
+ #
1344
+ # GRPC transcoding helper method for the update_saas REST call
1345
+ #
1346
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateSaasRequest]
1347
+ # A request object representing the call parameters. Required.
1348
+ # @return [Array(String, [String, nil], Hash{String => String})]
1349
+ # Uri, Body, Query string parameters
1350
+ def self.transcode_update_saas_request request_pb
1351
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1352
+ .with_bindings(
1353
+ uri_method: :patch,
1354
+ uri_template: "/v1beta1/{saas.name}",
1355
+ body: "saas",
1356
+ matches: [
1357
+ ["saas.name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false]
1358
+ ]
1359
+ )
1360
+ transcoder.transcode request_pb
1361
+ end
1362
+
1363
+ ##
1364
+ # @private
1365
+ #
1366
+ # GRPC transcoding helper method for the delete_saas REST call
1367
+ #
1368
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteSaasRequest]
1369
+ # A request object representing the call parameters. Required.
1370
+ # @return [Array(String, [String, nil], Hash{String => String})]
1371
+ # Uri, Body, Query string parameters
1372
+ def self.transcode_delete_saas_request request_pb
1373
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1374
+ .with_bindings(
1375
+ uri_method: :delete,
1376
+ uri_template: "/v1beta1/{name}",
1377
+ matches: [
1378
+ ["name", %r{^projects/[^/]+/locations/[^/]+/saas/[^/]+/?$}, false]
1379
+ ]
1380
+ )
1381
+ transcoder.transcode request_pb
1382
+ end
1383
+
1384
+ ##
1385
+ # @private
1386
+ #
1387
+ # GRPC transcoding helper method for the list_tenants REST call
1388
+ #
1389
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListTenantsRequest]
1390
+ # A request object representing the call parameters. Required.
1391
+ # @return [Array(String, [String, nil], Hash{String => String})]
1392
+ # Uri, Body, Query string parameters
1393
+ def self.transcode_list_tenants_request request_pb
1394
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1395
+ .with_bindings(
1396
+ uri_method: :get,
1397
+ uri_template: "/v1beta1/{parent}/tenants",
1398
+ matches: [
1399
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1400
+ ]
1401
+ )
1402
+ transcoder.transcode request_pb
1403
+ end
1404
+
1405
+ ##
1406
+ # @private
1407
+ #
1408
+ # GRPC transcoding helper method for the get_tenant REST call
1409
+ #
1410
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetTenantRequest]
1411
+ # A request object representing the call parameters. Required.
1412
+ # @return [Array(String, [String, nil], Hash{String => String})]
1413
+ # Uri, Body, Query string parameters
1414
+ def self.transcode_get_tenant_request request_pb
1415
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1416
+ .with_bindings(
1417
+ uri_method: :get,
1418
+ uri_template: "/v1beta1/{name}",
1419
+ matches: [
1420
+ ["name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false]
1421
+ ]
1422
+ )
1423
+ transcoder.transcode request_pb
1424
+ end
1425
+
1426
+ ##
1427
+ # @private
1428
+ #
1429
+ # GRPC transcoding helper method for the create_tenant REST call
1430
+ #
1431
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateTenantRequest]
1432
+ # A request object representing the call parameters. Required.
1433
+ # @return [Array(String, [String, nil], Hash{String => String})]
1434
+ # Uri, Body, Query string parameters
1435
+ def self.transcode_create_tenant_request request_pb
1436
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1437
+ .with_bindings(
1438
+ uri_method: :post,
1439
+ uri_template: "/v1beta1/{parent}/tenants",
1440
+ body: "tenant",
1441
+ matches: [
1442
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1443
+ ]
1444
+ )
1445
+ transcoder.transcode request_pb
1446
+ end
1447
+
1448
+ ##
1449
+ # @private
1450
+ #
1451
+ # GRPC transcoding helper method for the update_tenant REST call
1452
+ #
1453
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateTenantRequest]
1454
+ # A request object representing the call parameters. Required.
1455
+ # @return [Array(String, [String, nil], Hash{String => String})]
1456
+ # Uri, Body, Query string parameters
1457
+ def self.transcode_update_tenant_request request_pb
1458
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1459
+ .with_bindings(
1460
+ uri_method: :patch,
1461
+ uri_template: "/v1beta1/{tenant.name}",
1462
+ body: "tenant",
1463
+ matches: [
1464
+ ["tenant.name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false]
1465
+ ]
1466
+ )
1467
+ transcoder.transcode request_pb
1468
+ end
1469
+
1470
+ ##
1471
+ # @private
1472
+ #
1473
+ # GRPC transcoding helper method for the delete_tenant REST call
1474
+ #
1475
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteTenantRequest]
1476
+ # A request object representing the call parameters. Required.
1477
+ # @return [Array(String, [String, nil], Hash{String => String})]
1478
+ # Uri, Body, Query string parameters
1479
+ def self.transcode_delete_tenant_request request_pb
1480
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1481
+ .with_bindings(
1482
+ uri_method: :delete,
1483
+ uri_template: "/v1beta1/{name}",
1484
+ matches: [
1485
+ ["name", %r{^projects/[^/]+/locations/[^/]+/tenants/[^/]+/?$}, false]
1486
+ ]
1487
+ )
1488
+ transcoder.transcode request_pb
1489
+ end
1490
+
1491
+ ##
1492
+ # @private
1493
+ #
1494
+ # GRPC transcoding helper method for the list_unit_kinds REST call
1495
+ #
1496
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitKindsRequest]
1497
+ # A request object representing the call parameters. Required.
1498
+ # @return [Array(String, [String, nil], Hash{String => String})]
1499
+ # Uri, Body, Query string parameters
1500
+ def self.transcode_list_unit_kinds_request request_pb
1501
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1502
+ .with_bindings(
1503
+ uri_method: :get,
1504
+ uri_template: "/v1beta1/{parent}/unitKinds",
1505
+ matches: [
1506
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1507
+ ]
1508
+ )
1509
+ transcoder.transcode request_pb
1510
+ end
1511
+
1512
+ ##
1513
+ # @private
1514
+ #
1515
+ # GRPC transcoding helper method for the get_unit_kind REST call
1516
+ #
1517
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitKindRequest]
1518
+ # A request object representing the call parameters. Required.
1519
+ # @return [Array(String, [String, nil], Hash{String => String})]
1520
+ # Uri, Body, Query string parameters
1521
+ def self.transcode_get_unit_kind_request request_pb
1522
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1523
+ .with_bindings(
1524
+ uri_method: :get,
1525
+ uri_template: "/v1beta1/{name}",
1526
+ matches: [
1527
+ ["name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false]
1528
+ ]
1529
+ )
1530
+ transcoder.transcode request_pb
1531
+ end
1532
+
1533
+ ##
1534
+ # @private
1535
+ #
1536
+ # GRPC transcoding helper method for the create_unit_kind REST call
1537
+ #
1538
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitKindRequest]
1539
+ # A request object representing the call parameters. Required.
1540
+ # @return [Array(String, [String, nil], Hash{String => String})]
1541
+ # Uri, Body, Query string parameters
1542
+ def self.transcode_create_unit_kind_request request_pb
1543
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1544
+ .with_bindings(
1545
+ uri_method: :post,
1546
+ uri_template: "/v1beta1/{parent}/unitKinds",
1547
+ body: "unit_kind",
1548
+ matches: [
1549
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1550
+ ]
1551
+ )
1552
+ transcoder.transcode request_pb
1553
+ end
1554
+
1555
+ ##
1556
+ # @private
1557
+ #
1558
+ # GRPC transcoding helper method for the update_unit_kind REST call
1559
+ #
1560
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitKindRequest]
1561
+ # A request object representing the call parameters. Required.
1562
+ # @return [Array(String, [String, nil], Hash{String => String})]
1563
+ # Uri, Body, Query string parameters
1564
+ def self.transcode_update_unit_kind_request request_pb
1565
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1566
+ .with_bindings(
1567
+ uri_method: :patch,
1568
+ uri_template: "/v1beta1/{unit_kind.name}",
1569
+ body: "unit_kind",
1570
+ matches: [
1571
+ ["unit_kind.name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false]
1572
+ ]
1573
+ )
1574
+ transcoder.transcode request_pb
1575
+ end
1576
+
1577
+ ##
1578
+ # @private
1579
+ #
1580
+ # GRPC transcoding helper method for the delete_unit_kind REST call
1581
+ #
1582
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitKindRequest]
1583
+ # A request object representing the call parameters. Required.
1584
+ # @return [Array(String, [String, nil], Hash{String => String})]
1585
+ # Uri, Body, Query string parameters
1586
+ def self.transcode_delete_unit_kind_request request_pb
1587
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1588
+ .with_bindings(
1589
+ uri_method: :delete,
1590
+ uri_template: "/v1beta1/{name}",
1591
+ matches: [
1592
+ ["name", %r{^projects/[^/]+/locations/[^/]+/unitKinds/[^/]+/?$}, false]
1593
+ ]
1594
+ )
1595
+ transcoder.transcode request_pb
1596
+ end
1597
+
1598
+ ##
1599
+ # @private
1600
+ #
1601
+ # GRPC transcoding helper method for the list_units REST call
1602
+ #
1603
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitsRequest]
1604
+ # A request object representing the call parameters. Required.
1605
+ # @return [Array(String, [String, nil], Hash{String => String})]
1606
+ # Uri, Body, Query string parameters
1607
+ def self.transcode_list_units_request request_pb
1608
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1609
+ .with_bindings(
1610
+ uri_method: :get,
1611
+ uri_template: "/v1beta1/{parent}/units",
1612
+ matches: [
1613
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1614
+ ]
1615
+ )
1616
+ transcoder.transcode request_pb
1617
+ end
1618
+
1619
+ ##
1620
+ # @private
1621
+ #
1622
+ # GRPC transcoding helper method for the get_unit REST call
1623
+ #
1624
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitRequest]
1625
+ # A request object representing the call parameters. Required.
1626
+ # @return [Array(String, [String, nil], Hash{String => String})]
1627
+ # Uri, Body, Query string parameters
1628
+ def self.transcode_get_unit_request request_pb
1629
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1630
+ .with_bindings(
1631
+ uri_method: :get,
1632
+ uri_template: "/v1beta1/{name}",
1633
+ matches: [
1634
+ ["name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false]
1635
+ ]
1636
+ )
1637
+ transcoder.transcode request_pb
1638
+ end
1639
+
1640
+ ##
1641
+ # @private
1642
+ #
1643
+ # GRPC transcoding helper method for the create_unit REST call
1644
+ #
1645
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitRequest]
1646
+ # A request object representing the call parameters. Required.
1647
+ # @return [Array(String, [String, nil], Hash{String => String})]
1648
+ # Uri, Body, Query string parameters
1649
+ def self.transcode_create_unit_request request_pb
1650
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1651
+ .with_bindings(
1652
+ uri_method: :post,
1653
+ uri_template: "/v1beta1/{parent}/units",
1654
+ body: "unit",
1655
+ matches: [
1656
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1657
+ ]
1658
+ )
1659
+ transcoder.transcode request_pb
1660
+ end
1661
+
1662
+ ##
1663
+ # @private
1664
+ #
1665
+ # GRPC transcoding helper method for the update_unit REST call
1666
+ #
1667
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitRequest]
1668
+ # A request object representing the call parameters. Required.
1669
+ # @return [Array(String, [String, nil], Hash{String => String})]
1670
+ # Uri, Body, Query string parameters
1671
+ def self.transcode_update_unit_request request_pb
1672
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1673
+ .with_bindings(
1674
+ uri_method: :patch,
1675
+ uri_template: "/v1beta1/{unit.name}",
1676
+ body: "unit",
1677
+ matches: [
1678
+ ["unit.name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false]
1679
+ ]
1680
+ )
1681
+ transcoder.transcode request_pb
1682
+ end
1683
+
1684
+ ##
1685
+ # @private
1686
+ #
1687
+ # GRPC transcoding helper method for the delete_unit REST call
1688
+ #
1689
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitRequest]
1690
+ # A request object representing the call parameters. Required.
1691
+ # @return [Array(String, [String, nil], Hash{String => String})]
1692
+ # Uri, Body, Query string parameters
1693
+ def self.transcode_delete_unit_request request_pb
1694
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1695
+ .with_bindings(
1696
+ uri_method: :delete,
1697
+ uri_template: "/v1beta1/{name}",
1698
+ matches: [
1699
+ ["name", %r{^projects/[^/]+/locations/[^/]+/units/[^/]+/?$}, false]
1700
+ ]
1701
+ )
1702
+ transcoder.transcode request_pb
1703
+ end
1704
+
1705
+ ##
1706
+ # @private
1707
+ #
1708
+ # GRPC transcoding helper method for the list_unit_operations REST call
1709
+ #
1710
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListUnitOperationsRequest]
1711
+ # A request object representing the call parameters. Required.
1712
+ # @return [Array(String, [String, nil], Hash{String => String})]
1713
+ # Uri, Body, Query string parameters
1714
+ def self.transcode_list_unit_operations_request request_pb
1715
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1716
+ .with_bindings(
1717
+ uri_method: :get,
1718
+ uri_template: "/v1beta1/{parent}/unitOperations",
1719
+ matches: [
1720
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1721
+ ]
1722
+ )
1723
+ transcoder.transcode request_pb
1724
+ end
1725
+
1726
+ ##
1727
+ # @private
1728
+ #
1729
+ # GRPC transcoding helper method for the get_unit_operation REST call
1730
+ #
1731
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetUnitOperationRequest]
1732
+ # A request object representing the call parameters. Required.
1733
+ # @return [Array(String, [String, nil], Hash{String => String})]
1734
+ # Uri, Body, Query string parameters
1735
+ def self.transcode_get_unit_operation_request request_pb
1736
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1737
+ .with_bindings(
1738
+ uri_method: :get,
1739
+ uri_template: "/v1beta1/{name}",
1740
+ matches: [
1741
+ ["name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false]
1742
+ ]
1743
+ )
1744
+ transcoder.transcode request_pb
1745
+ end
1746
+
1747
+ ##
1748
+ # @private
1749
+ #
1750
+ # GRPC transcoding helper method for the create_unit_operation REST call
1751
+ #
1752
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateUnitOperationRequest]
1753
+ # A request object representing the call parameters. Required.
1754
+ # @return [Array(String, [String, nil], Hash{String => String})]
1755
+ # Uri, Body, Query string parameters
1756
+ def self.transcode_create_unit_operation_request request_pb
1757
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1758
+ .with_bindings(
1759
+ uri_method: :post,
1760
+ uri_template: "/v1beta1/{parent}/unitOperations",
1761
+ body: "unit_operation",
1762
+ matches: [
1763
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1764
+ ]
1765
+ )
1766
+ transcoder.transcode request_pb
1767
+ end
1768
+
1769
+ ##
1770
+ # @private
1771
+ #
1772
+ # GRPC transcoding helper method for the update_unit_operation REST call
1773
+ #
1774
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateUnitOperationRequest]
1775
+ # A request object representing the call parameters. Required.
1776
+ # @return [Array(String, [String, nil], Hash{String => String})]
1777
+ # Uri, Body, Query string parameters
1778
+ def self.transcode_update_unit_operation_request request_pb
1779
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1780
+ .with_bindings(
1781
+ uri_method: :patch,
1782
+ uri_template: "/v1beta1/{unit_operation.name}",
1783
+ body: "unit_operation",
1784
+ matches: [
1785
+ ["unit_operation.name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false]
1786
+ ]
1787
+ )
1788
+ transcoder.transcode request_pb
1789
+ end
1790
+
1791
+ ##
1792
+ # @private
1793
+ #
1794
+ # GRPC transcoding helper method for the delete_unit_operation REST call
1795
+ #
1796
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteUnitOperationRequest]
1797
+ # A request object representing the call parameters. Required.
1798
+ # @return [Array(String, [String, nil], Hash{String => String})]
1799
+ # Uri, Body, Query string parameters
1800
+ def self.transcode_delete_unit_operation_request request_pb
1801
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1802
+ .with_bindings(
1803
+ uri_method: :delete,
1804
+ uri_template: "/v1beta1/{name}",
1805
+ matches: [
1806
+ ["name", %r{^projects/[^/]+/locations/[^/]+/unitOperations/[^/]+/?$}, false]
1807
+ ]
1808
+ )
1809
+ transcoder.transcode request_pb
1810
+ end
1811
+
1812
+ ##
1813
+ # @private
1814
+ #
1815
+ # GRPC transcoding helper method for the list_releases REST call
1816
+ #
1817
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListReleasesRequest]
1818
+ # A request object representing the call parameters. Required.
1819
+ # @return [Array(String, [String, nil], Hash{String => String})]
1820
+ # Uri, Body, Query string parameters
1821
+ def self.transcode_list_releases_request request_pb
1822
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1823
+ .with_bindings(
1824
+ uri_method: :get,
1825
+ uri_template: "/v1beta1/{parent}/releases",
1826
+ matches: [
1827
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1828
+ ]
1829
+ )
1830
+ transcoder.transcode request_pb
1831
+ end
1832
+
1833
+ ##
1834
+ # @private
1835
+ #
1836
+ # GRPC transcoding helper method for the get_release REST call
1837
+ #
1838
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetReleaseRequest]
1839
+ # A request object representing the call parameters. Required.
1840
+ # @return [Array(String, [String, nil], Hash{String => String})]
1841
+ # Uri, Body, Query string parameters
1842
+ def self.transcode_get_release_request request_pb
1843
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1844
+ .with_bindings(
1845
+ uri_method: :get,
1846
+ uri_template: "/v1beta1/{name}",
1847
+ matches: [
1848
+ ["name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false]
1849
+ ]
1850
+ )
1851
+ transcoder.transcode request_pb
1852
+ end
1853
+
1854
+ ##
1855
+ # @private
1856
+ #
1857
+ # GRPC transcoding helper method for the create_release REST call
1858
+ #
1859
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateReleaseRequest]
1860
+ # A request object representing the call parameters. Required.
1861
+ # @return [Array(String, [String, nil], Hash{String => String})]
1862
+ # Uri, Body, Query string parameters
1863
+ def self.transcode_create_release_request request_pb
1864
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1865
+ .with_bindings(
1866
+ uri_method: :post,
1867
+ uri_template: "/v1beta1/{parent}/releases",
1868
+ body: "release",
1869
+ matches: [
1870
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1871
+ ]
1872
+ )
1873
+ transcoder.transcode request_pb
1874
+ end
1875
+
1876
+ ##
1877
+ # @private
1878
+ #
1879
+ # GRPC transcoding helper method for the update_release REST call
1880
+ #
1881
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateReleaseRequest]
1882
+ # A request object representing the call parameters. Required.
1883
+ # @return [Array(String, [String, nil], Hash{String => String})]
1884
+ # Uri, Body, Query string parameters
1885
+ def self.transcode_update_release_request request_pb
1886
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1887
+ .with_bindings(
1888
+ uri_method: :patch,
1889
+ uri_template: "/v1beta1/{release.name}",
1890
+ body: "release",
1891
+ matches: [
1892
+ ["release.name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false]
1893
+ ]
1894
+ )
1895
+ transcoder.transcode request_pb
1896
+ end
1897
+
1898
+ ##
1899
+ # @private
1900
+ #
1901
+ # GRPC transcoding helper method for the delete_release REST call
1902
+ #
1903
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteReleaseRequest]
1904
+ # A request object representing the call parameters. Required.
1905
+ # @return [Array(String, [String, nil], Hash{String => String})]
1906
+ # Uri, Body, Query string parameters
1907
+ def self.transcode_delete_release_request request_pb
1908
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1909
+ .with_bindings(
1910
+ uri_method: :delete,
1911
+ uri_template: "/v1beta1/{name}",
1912
+ matches: [
1913
+ ["name", %r{^projects/[^/]+/locations/[^/]+/releases/[^/]+/?$}, false]
1914
+ ]
1915
+ )
1916
+ transcoder.transcode request_pb
1917
+ end
1918
+ end
1919
+ end
1920
+ end
1921
+ end
1922
+ end
1923
+ end
1924
+ end
1925
+ end