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,697 @@
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/rollouts_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module SaasPlatform
24
+ module SaasServiceMgmt
25
+ module V1beta1
26
+ module SaasRollouts
27
+ module Rest
28
+ ##
29
+ # REST service stub for the SaasRollouts 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_rollouts REST call
79
+ #
80
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest]
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::ListRolloutsResponse]
87
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
88
+ #
89
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse]
90
+ # A result object deserialized from the server's reply
91
+ def list_rollouts 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_rollouts_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_rollouts",
107
+ options: options
108
+ )
109
+ operation = ::Gapic::Rest::TransportOperation.new response
110
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsResponse.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_rollout REST call
119
+ #
120
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest]
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::Rollout]
127
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
128
+ #
129
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
130
+ # A result object deserialized from the server's reply
131
+ def get_rollout 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_rollout_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_rollout",
147
+ options: options
148
+ )
149
+ operation = ::Gapic::Rest::TransportOperation.new response
150
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.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_rollout REST call
159
+ #
160
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest]
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::Rollout]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
170
+ # A result object deserialized from the server's reply
171
+ def create_rollout 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_rollout_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_rollout",
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.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_rollout REST call
199
+ #
200
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest]
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::Rollout]
207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
208
+ #
209
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
210
+ # A result object deserialized from the server's reply
211
+ def update_rollout 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_rollout_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_rollout",
227
+ options: options
228
+ )
229
+ operation = ::Gapic::Rest::TransportOperation.new response
230
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.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_rollout REST call
239
+ #
240
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest]
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_rollout 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_rollout_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_rollout",
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_rollout_kinds REST call
279
+ #
280
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest]
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::ListRolloutKindsResponse]
287
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
288
+ #
289
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse]
290
+ # A result object deserialized from the server's reply
291
+ def list_rollout_kinds 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_rollout_kinds_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_rollout_kinds",
307
+ options: options
308
+ )
309
+ operation = ::Gapic::Rest::TransportOperation.new response
310
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsResponse.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_rollout_kind REST call
319
+ #
320
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest]
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::RolloutKind]
327
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
328
+ #
329
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
330
+ # A result object deserialized from the server's reply
331
+ def get_rollout_kind 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_rollout_kind_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_rollout_kind",
347
+ options: options
348
+ )
349
+ operation = ::Gapic::Rest::TransportOperation.new response
350
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.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_rollout_kind REST call
359
+ #
360
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest]
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::RolloutKind]
367
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
368
+ #
369
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
370
+ # A result object deserialized from the server's reply
371
+ def create_rollout_kind 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_rollout_kind_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_rollout_kind",
387
+ options: options
388
+ )
389
+ operation = ::Gapic::Rest::TransportOperation.new response
390
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.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_rollout_kind REST call
399
+ #
400
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest]
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::RolloutKind]
407
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
408
+ #
409
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
410
+ # A result object deserialized from the server's reply
411
+ def update_rollout_kind 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_rollout_kind_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_rollout_kind",
427
+ options: options
428
+ )
429
+ operation = ::Gapic::Rest::TransportOperation.new response
430
+ result = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.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_rollout_kind REST call
439
+ #
440
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest]
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_rollout_kind 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_rollout_kind_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_rollout_kind",
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
+ # @private
479
+ #
480
+ # GRPC transcoding helper method for the list_rollouts REST call
481
+ #
482
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest]
483
+ # A request object representing the call parameters. Required.
484
+ # @return [Array(String, [String, nil], Hash{String => String})]
485
+ # Uri, Body, Query string parameters
486
+ def self.transcode_list_rollouts_request request_pb
487
+ transcoder = Gapic::Rest::GrpcTranscoder.new
488
+ .with_bindings(
489
+ uri_method: :get,
490
+ uri_template: "/v1beta1/{parent}/rollouts",
491
+ matches: [
492
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
493
+ ]
494
+ )
495
+ transcoder.transcode request_pb
496
+ end
497
+
498
+ ##
499
+ # @private
500
+ #
501
+ # GRPC transcoding helper method for the get_rollout REST call
502
+ #
503
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest]
504
+ # A request object representing the call parameters. Required.
505
+ # @return [Array(String, [String, nil], Hash{String => String})]
506
+ # Uri, Body, Query string parameters
507
+ def self.transcode_get_rollout_request request_pb
508
+ transcoder = Gapic::Rest::GrpcTranscoder.new
509
+ .with_bindings(
510
+ uri_method: :get,
511
+ uri_template: "/v1beta1/{name}",
512
+ matches: [
513
+ ["name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false]
514
+ ]
515
+ )
516
+ transcoder.transcode request_pb
517
+ end
518
+
519
+ ##
520
+ # @private
521
+ #
522
+ # GRPC transcoding helper method for the create_rollout REST call
523
+ #
524
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest]
525
+ # A request object representing the call parameters. Required.
526
+ # @return [Array(String, [String, nil], Hash{String => String})]
527
+ # Uri, Body, Query string parameters
528
+ def self.transcode_create_rollout_request request_pb
529
+ transcoder = Gapic::Rest::GrpcTranscoder.new
530
+ .with_bindings(
531
+ uri_method: :post,
532
+ uri_template: "/v1beta1/{parent}/rollouts",
533
+ body: "rollout",
534
+ matches: [
535
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
536
+ ]
537
+ )
538
+ transcoder.transcode request_pb
539
+ end
540
+
541
+ ##
542
+ # @private
543
+ #
544
+ # GRPC transcoding helper method for the update_rollout REST call
545
+ #
546
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest]
547
+ # A request object representing the call parameters. Required.
548
+ # @return [Array(String, [String, nil], Hash{String => String})]
549
+ # Uri, Body, Query string parameters
550
+ def self.transcode_update_rollout_request request_pb
551
+ transcoder = Gapic::Rest::GrpcTranscoder.new
552
+ .with_bindings(
553
+ uri_method: :patch,
554
+ uri_template: "/v1beta1/{rollout.name}",
555
+ body: "rollout",
556
+ matches: [
557
+ ["rollout.name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false]
558
+ ]
559
+ )
560
+ transcoder.transcode request_pb
561
+ end
562
+
563
+ ##
564
+ # @private
565
+ #
566
+ # GRPC transcoding helper method for the delete_rollout REST call
567
+ #
568
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest]
569
+ # A request object representing the call parameters. Required.
570
+ # @return [Array(String, [String, nil], Hash{String => String})]
571
+ # Uri, Body, Query string parameters
572
+ def self.transcode_delete_rollout_request request_pb
573
+ transcoder = Gapic::Rest::GrpcTranscoder.new
574
+ .with_bindings(
575
+ uri_method: :delete,
576
+ uri_template: "/v1beta1/{name}",
577
+ matches: [
578
+ ["name", %r{^projects/[^/]+/locations/[^/]+/rollouts/[^/]+/?$}, false]
579
+ ]
580
+ )
581
+ transcoder.transcode request_pb
582
+ end
583
+
584
+ ##
585
+ # @private
586
+ #
587
+ # GRPC transcoding helper method for the list_rollout_kinds REST call
588
+ #
589
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest]
590
+ # A request object representing the call parameters. Required.
591
+ # @return [Array(String, [String, nil], Hash{String => String})]
592
+ # Uri, Body, Query string parameters
593
+ def self.transcode_list_rollout_kinds_request request_pb
594
+ transcoder = Gapic::Rest::GrpcTranscoder.new
595
+ .with_bindings(
596
+ uri_method: :get,
597
+ uri_template: "/v1beta1/{parent}/rolloutKinds",
598
+ matches: [
599
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
600
+ ]
601
+ )
602
+ transcoder.transcode request_pb
603
+ end
604
+
605
+ ##
606
+ # @private
607
+ #
608
+ # GRPC transcoding helper method for the get_rollout_kind REST call
609
+ #
610
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest]
611
+ # A request object representing the call parameters. Required.
612
+ # @return [Array(String, [String, nil], Hash{String => String})]
613
+ # Uri, Body, Query string parameters
614
+ def self.transcode_get_rollout_kind_request request_pb
615
+ transcoder = Gapic::Rest::GrpcTranscoder.new
616
+ .with_bindings(
617
+ uri_method: :get,
618
+ uri_template: "/v1beta1/{name}",
619
+ matches: [
620
+ ["name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false]
621
+ ]
622
+ )
623
+ transcoder.transcode request_pb
624
+ end
625
+
626
+ ##
627
+ # @private
628
+ #
629
+ # GRPC transcoding helper method for the create_rollout_kind REST call
630
+ #
631
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest]
632
+ # A request object representing the call parameters. Required.
633
+ # @return [Array(String, [String, nil], Hash{String => String})]
634
+ # Uri, Body, Query string parameters
635
+ def self.transcode_create_rollout_kind_request request_pb
636
+ transcoder = Gapic::Rest::GrpcTranscoder.new
637
+ .with_bindings(
638
+ uri_method: :post,
639
+ uri_template: "/v1beta1/{parent}/rolloutKinds",
640
+ body: "rollout_kind",
641
+ matches: [
642
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
643
+ ]
644
+ )
645
+ transcoder.transcode request_pb
646
+ end
647
+
648
+ ##
649
+ # @private
650
+ #
651
+ # GRPC transcoding helper method for the update_rollout_kind REST call
652
+ #
653
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest]
654
+ # A request object representing the call parameters. Required.
655
+ # @return [Array(String, [String, nil], Hash{String => String})]
656
+ # Uri, Body, Query string parameters
657
+ def self.transcode_update_rollout_kind_request request_pb
658
+ transcoder = Gapic::Rest::GrpcTranscoder.new
659
+ .with_bindings(
660
+ uri_method: :patch,
661
+ uri_template: "/v1beta1/{rollout_kind.name}",
662
+ body: "rollout_kind",
663
+ matches: [
664
+ ["rollout_kind.name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false]
665
+ ]
666
+ )
667
+ transcoder.transcode request_pb
668
+ end
669
+
670
+ ##
671
+ # @private
672
+ #
673
+ # GRPC transcoding helper method for the delete_rollout_kind REST call
674
+ #
675
+ # @param request_pb [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest]
676
+ # A request object representing the call parameters. Required.
677
+ # @return [Array(String, [String, nil], Hash{String => String})]
678
+ # Uri, Body, Query string parameters
679
+ def self.transcode_delete_rollout_kind_request request_pb
680
+ transcoder = Gapic::Rest::GrpcTranscoder.new
681
+ .with_bindings(
682
+ uri_method: :delete,
683
+ uri_template: "/v1beta1/{name}",
684
+ matches: [
685
+ ["name", %r{^projects/[^/]+/locations/[^/]+/rolloutKinds/[^/]+/?$}, false]
686
+ ]
687
+ )
688
+ transcoder.transcode request_pb
689
+ end
690
+ end
691
+ end
692
+ end
693
+ end
694
+ end
695
+ end
696
+ end
697
+ end