google-cloud-saas_platform-saas_service_mgmt-v1beta1 0.a → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,1429 @@
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/errors"
20
+ require "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service_pb"
21
+ require "google/cloud/saas_platform/saas_service_mgmt/v1beta1/saas_rollouts/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module SaasPlatform
27
+ module SaasServiceMgmt
28
+ module V1beta1
29
+ module SaasRollouts
30
+ module Rest
31
+ ##
32
+ # REST client for the SaasRollouts service.
33
+ #
34
+ # Manages the rollout of SaaS services.
35
+ #
36
+ class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "saasservicemgmt.$UNIVERSE_DOMAIN$"
42
+
43
+ include Paths
44
+
45
+ # @private
46
+ attr_reader :saas_rollouts_stub
47
+
48
+ ##
49
+ # Configure the SaasRollouts Client class.
50
+ #
51
+ # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration}
52
+ # for a description of the configuration fields.
53
+ #
54
+ # @example
55
+ #
56
+ # # Modify the configuration for all SaasRollouts clients
57
+ # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.configure do |config|
58
+ # config.timeout = 10.0
59
+ # end
60
+ #
61
+ # @yield [config] Configure the Client client.
62
+ # @yieldparam config [Client::Configuration]
63
+ #
64
+ # @return [Client::Configuration]
65
+ #
66
+ def self.configure
67
+ @configure ||= begin
68
+ namespace = ["Google", "Cloud", "SaasPlatform", "SaasServiceMgmt", "V1beta1"]
69
+ parent_config = while namespace.any?
70
+ parent_name = namespace.join "::"
71
+ parent_const = const_get parent_name
72
+ break parent_const.configure if parent_const.respond_to? :configure
73
+ namespace.pop
74
+ end
75
+ default_config = Client::Configuration.new parent_config
76
+
77
+ default_config.rpcs.list_rollouts.timeout = 60.0
78
+ default_config.rpcs.list_rollouts.retry_policy = {
79
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
80
+ }
81
+
82
+ default_config.rpcs.get_rollout.timeout = 60.0
83
+ default_config.rpcs.get_rollout.retry_policy = {
84
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
85
+ }
86
+
87
+ default_config.rpcs.create_rollout.timeout = 60.0
88
+
89
+ default_config.rpcs.update_rollout.timeout = 60.0
90
+
91
+ default_config.rpcs.delete_rollout.timeout = 540.0
92
+ default_config.rpcs.delete_rollout.retry_policy = {
93
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
94
+ }
95
+
96
+ default_config.rpcs.list_rollout_kinds.timeout = 60.0
97
+ default_config.rpcs.list_rollout_kinds.retry_policy = {
98
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
99
+ }
100
+
101
+ default_config.rpcs.get_rollout_kind.timeout = 60.0
102
+ default_config.rpcs.get_rollout_kind.retry_policy = {
103
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
104
+ }
105
+
106
+ default_config.rpcs.create_rollout_kind.timeout = 60.0
107
+
108
+ default_config.rpcs.update_rollout_kind.timeout = 60.0
109
+
110
+ default_config.rpcs.delete_rollout_kind.timeout = 60.0
111
+ default_config.rpcs.delete_rollout_kind.retry_policy = {
112
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
113
+ }
114
+
115
+ default_config
116
+ end
117
+ yield @configure if block_given?
118
+ @configure
119
+ end
120
+
121
+ ##
122
+ # Configure the SaasRollouts Client instance.
123
+ #
124
+ # The configuration is set to the derived mode, meaning that values can be changed,
125
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
126
+ # should be made on {Client.configure}.
127
+ #
128
+ # See {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration}
129
+ # for a description of the configuration fields.
130
+ #
131
+ # @yield [config] Configure the Client client.
132
+ # @yieldparam config [Client::Configuration]
133
+ #
134
+ # @return [Client::Configuration]
135
+ #
136
+ def configure
137
+ yield @config if block_given?
138
+ @config
139
+ end
140
+
141
+ ##
142
+ # The effective universe domain
143
+ #
144
+ # @return [String]
145
+ #
146
+ def universe_domain
147
+ @saas_rollouts_stub.universe_domain
148
+ end
149
+
150
+ ##
151
+ # Create a new SaasRollouts REST client object.
152
+ #
153
+ # @example
154
+ #
155
+ # # Create a client using the default configuration
156
+ # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
157
+ #
158
+ # # Create a client using a custom configuration
159
+ # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config|
160
+ # config.timeout = 10.0
161
+ # end
162
+ #
163
+ # @yield [config] Configure the SaasRollouts client.
164
+ # @yieldparam config [Client::Configuration]
165
+ #
166
+ def initialize
167
+ # Create the configuration object
168
+ @config = Configuration.new Client.configure
169
+
170
+ # Yield the configuration if needed
171
+ yield @config if block_given?
172
+
173
+ # Create credentials
174
+ credentials = @config.credentials
175
+ # Use self-signed JWT if the endpoint is unchanged from default,
176
+ # but only if the default endpoint does not have a region prefix.
177
+ enable_self_signed_jwt = @config.endpoint.nil? ||
178
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
179
+ !@config.endpoint.split(".").first.include?("-"))
180
+ credentials ||= Credentials.default scope: @config.scope,
181
+ enable_self_signed_jwt: enable_self_signed_jwt
182
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
183
+ credentials = Credentials.new credentials, scope: @config.scope
184
+ end
185
+
186
+ @quota_project_id = @config.quota_project
187
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
188
+
189
+ @saas_rollouts_stub = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::ServiceStub.new(
190
+ endpoint: @config.endpoint,
191
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
192
+ universe_domain: @config.universe_domain,
193
+ credentials: credentials,
194
+ logger: @config.logger
195
+ )
196
+
197
+ @saas_rollouts_stub.logger(stub: true)&.info do |entry|
198
+ entry.set_system_name
199
+ entry.set_service
200
+ entry.message = "Created client for #{entry.service}"
201
+ entry.set_credentials_fields credentials
202
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
203
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
204
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
205
+ end
206
+
207
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
208
+ config.credentials = credentials
209
+ config.quota_project = @quota_project_id
210
+ config.endpoint = @saas_rollouts_stub.endpoint
211
+ config.universe_domain = @saas_rollouts_stub.universe_domain
212
+ config.bindings_override = @config.bindings_override
213
+ config.logger = @saas_rollouts_stub.logger if config.respond_to? :logger=
214
+ end
215
+ end
216
+
217
+ ##
218
+ # Get the associated client for mix-in of the Locations.
219
+ #
220
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
221
+ #
222
+ attr_reader :location_client
223
+
224
+ ##
225
+ # The logger used for request/response debug logging.
226
+ #
227
+ # @return [Logger]
228
+ #
229
+ def logger
230
+ @saas_rollouts_stub.logger
231
+ end
232
+
233
+ # Service calls
234
+
235
+ ##
236
+ # Retrieve a collection of rollouts.
237
+ #
238
+ # @overload list_rollouts(request, options = nil)
239
+ # Pass arguments to `list_rollouts` via a request object, either of type
240
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest} or an equivalent Hash.
241
+ #
242
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest, ::Hash]
243
+ # A request object representing the call parameters. Required. To specify no
244
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
245
+ # @param options [::Gapic::CallOptions, ::Hash]
246
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
247
+ #
248
+ # @overload list_rollouts(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
249
+ # Pass arguments to `list_rollouts` via keyword arguments. Note that at
250
+ # least one keyword argument is required. To specify no parameters, or to keep all
251
+ # the default parameter values, pass an empty Hash as a request object (see above).
252
+ #
253
+ # @param parent [::String]
254
+ # Required. The parent of the rollout.
255
+ # @param page_size [::Integer]
256
+ # The maximum number of rollouts to send per page.
257
+ # @param page_token [::String]
258
+ # The page token: If the next_page_token from a previous response
259
+ # is provided, this request will send the subsequent page.
260
+ # @param filter [::String]
261
+ # Filter the list as specified in https://google.aip.dev/160.
262
+ # @param order_by [::String]
263
+ # Order results as specified in https://google.aip.dev/132.
264
+ # @yield [result, operation] Access the result along with the TransportOperation object
265
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>]
266
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
267
+ #
268
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>]
269
+ #
270
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
271
+ #
272
+ # @example Basic example
273
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
274
+ #
275
+ # # Create a client object. The client can be reused for multiple calls.
276
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
277
+ #
278
+ # # Create a request. To set request fields, pass in keyword arguments.
279
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest.new
280
+ #
281
+ # # Call the list_rollouts method.
282
+ # result = client.list_rollouts request
283
+ #
284
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
285
+ # # over elements, and API calls will be issued to fetch pages as needed.
286
+ # result.each do |item|
287
+ # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.
288
+ # p item
289
+ # end
290
+ #
291
+ def list_rollouts request, options = nil
292
+ raise ::ArgumentError, "request must be provided" if request.nil?
293
+
294
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutsRequest
295
+
296
+ # Converts hash and nil to an options object
297
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
298
+
299
+ # Customize the options with defaults
300
+ call_metadata = @config.rpcs.list_rollouts.metadata.to_h
301
+
302
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
303
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
304
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
305
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
306
+ transports_version_send: [:rest]
307
+
308
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
309
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
310
+
311
+ options.apply_defaults timeout: @config.rpcs.list_rollouts.timeout,
312
+ metadata: call_metadata,
313
+ retry_policy: @config.rpcs.list_rollouts.retry_policy
314
+
315
+ options.apply_defaults timeout: @config.timeout,
316
+ metadata: @config.metadata,
317
+ retry_policy: @config.retry_policy
318
+
319
+ @saas_rollouts_stub.list_rollouts request, options do |result, operation|
320
+ result = ::Gapic::Rest::PagedEnumerable.new @saas_rollouts_stub, :list_rollouts, "rollouts", request, result, options
321
+ yield result, operation if block_given?
322
+ throw :response, result
323
+ end
324
+ rescue ::Gapic::Rest::Error => e
325
+ raise ::Google::Cloud::Error.from_error(e)
326
+ end
327
+
328
+ ##
329
+ # Retrieve a single rollout.
330
+ #
331
+ # @overload get_rollout(request, options = nil)
332
+ # Pass arguments to `get_rollout` via a request object, either of type
333
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest} or an equivalent Hash.
334
+ #
335
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest, ::Hash]
336
+ # A request object representing the call parameters. Required. To specify no
337
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
338
+ # @param options [::Gapic::CallOptions, ::Hash]
339
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
340
+ #
341
+ # @overload get_rollout(name: nil)
342
+ # Pass arguments to `get_rollout` via keyword arguments. Note that at
343
+ # least one keyword argument is required. To specify no parameters, or to keep all
344
+ # the default parameter values, pass an empty Hash as a request object (see above).
345
+ #
346
+ # @param name [::String]
347
+ # Required. The resource name of the resource within a service.
348
+ # @yield [result, operation] Access the result along with the TransportOperation object
349
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
350
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
351
+ #
352
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
353
+ #
354
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
355
+ #
356
+ # @example Basic example
357
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
358
+ #
359
+ # # Create a client object. The client can be reused for multiple calls.
360
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
361
+ #
362
+ # # Create a request. To set request fields, pass in keyword arguments.
363
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest.new
364
+ #
365
+ # # Call the get_rollout method.
366
+ # result = client.get_rollout request
367
+ #
368
+ # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.
369
+ # p result
370
+ #
371
+ def get_rollout request, options = nil
372
+ raise ::ArgumentError, "request must be provided" if request.nil?
373
+
374
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutRequest
375
+
376
+ # Converts hash and nil to an options object
377
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
378
+
379
+ # Customize the options with defaults
380
+ call_metadata = @config.rpcs.get_rollout.metadata.to_h
381
+
382
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
383
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
384
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
385
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
386
+ transports_version_send: [:rest]
387
+
388
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
389
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
390
+
391
+ options.apply_defaults timeout: @config.rpcs.get_rollout.timeout,
392
+ metadata: call_metadata,
393
+ retry_policy: @config.rpcs.get_rollout.retry_policy
394
+
395
+ options.apply_defaults timeout: @config.timeout,
396
+ metadata: @config.metadata,
397
+ retry_policy: @config.retry_policy
398
+
399
+ @saas_rollouts_stub.get_rollout request, options do |result, operation|
400
+ yield result, operation if block_given?
401
+ end
402
+ rescue ::Gapic::Rest::Error => e
403
+ raise ::Google::Cloud::Error.from_error(e)
404
+ end
405
+
406
+ ##
407
+ # Create a new rollout.
408
+ #
409
+ # @overload create_rollout(request, options = nil)
410
+ # Pass arguments to `create_rollout` via a request object, either of type
411
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest} or an equivalent Hash.
412
+ #
413
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest, ::Hash]
414
+ # A request object representing the call parameters. Required. To specify no
415
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
416
+ # @param options [::Gapic::CallOptions, ::Hash]
417
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
418
+ #
419
+ # @overload create_rollout(parent: nil, rollout_id: nil, rollout: nil, validate_only: nil, request_id: nil)
420
+ # Pass arguments to `create_rollout` via keyword arguments. Note that at
421
+ # least one keyword argument is required. To specify no parameters, or to keep all
422
+ # the default parameter values, pass an empty Hash as a request object (see above).
423
+ #
424
+ # @param parent [::String]
425
+ # Required. The parent of the rollout.
426
+ # @param rollout_id [::String]
427
+ # Required. The ID value for the new rollout.
428
+ # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash]
429
+ # Required. The desired state for the rollout.
430
+ # @param validate_only [::Boolean]
431
+ # If "validate_only" is set to true, the service will try to validate
432
+ # that this request would succeed, but will not actually make changes.
433
+ # @param request_id [::String]
434
+ # An optional request ID to identify requests. Specify a unique request ID
435
+ # so that if you must retry your request, the server will know to ignore
436
+ # the request if it has already been completed. The server will guarantee
437
+ # that for at least 60 minutes since the first request.
438
+ #
439
+ # For example, consider a situation where you make an initial request and the
440
+ # request times out. If you make the request again with the same request
441
+ # ID, the server can check if original operation with the same request ID
442
+ # was received, and if so, will ignore the second request. This prevents
443
+ # clients from accidentally creating duplicate commitments.
444
+ #
445
+ # The request ID must be a valid UUID with the exception that zero UUID is
446
+ # not supported (00000000-0000-0000-0000-000000000000).
447
+ # @yield [result, operation] Access the result along with the TransportOperation object
448
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
449
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
450
+ #
451
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
452
+ #
453
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
454
+ #
455
+ # @example Basic example
456
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
457
+ #
458
+ # # Create a client object. The client can be reused for multiple calls.
459
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
460
+ #
461
+ # # Create a request. To set request fields, pass in keyword arguments.
462
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest.new
463
+ #
464
+ # # Call the create_rollout method.
465
+ # result = client.create_rollout request
466
+ #
467
+ # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.
468
+ # p result
469
+ #
470
+ def create_rollout request, options = nil
471
+ raise ::ArgumentError, "request must be provided" if request.nil?
472
+
473
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutRequest
474
+
475
+ # Converts hash and nil to an options object
476
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
477
+
478
+ # Customize the options with defaults
479
+ call_metadata = @config.rpcs.create_rollout.metadata.to_h
480
+
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
482
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
484
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
485
+ transports_version_send: [:rest]
486
+
487
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
488
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
489
+
490
+ options.apply_defaults timeout: @config.rpcs.create_rollout.timeout,
491
+ metadata: call_metadata,
492
+ retry_policy: @config.rpcs.create_rollout.retry_policy
493
+
494
+ options.apply_defaults timeout: @config.timeout,
495
+ metadata: @config.metadata,
496
+ retry_policy: @config.retry_policy
497
+
498
+ @saas_rollouts_stub.create_rollout request, options do |result, operation|
499
+ yield result, operation if block_given?
500
+ end
501
+ rescue ::Gapic::Rest::Error => e
502
+ raise ::Google::Cloud::Error.from_error(e)
503
+ end
504
+
505
+ ##
506
+ # Update a single rollout.
507
+ #
508
+ # @overload update_rollout(request, options = nil)
509
+ # Pass arguments to `update_rollout` via a request object, either of type
510
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest} or an equivalent Hash.
511
+ #
512
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest, ::Hash]
513
+ # A request object representing the call parameters. Required. To specify no
514
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
515
+ # @param options [::Gapic::CallOptions, ::Hash]
516
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
517
+ #
518
+ # @overload update_rollout(rollout: nil, validate_only: nil, request_id: nil, update_mask: nil)
519
+ # Pass arguments to `update_rollout` via keyword arguments. Note that at
520
+ # least one keyword argument is required. To specify no parameters, or to keep all
521
+ # the default parameter values, pass an empty Hash as a request object (see above).
522
+ #
523
+ # @param rollout [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout, ::Hash]
524
+ # Required. The desired state for the rollout.
525
+ # @param validate_only [::Boolean]
526
+ # If "validate_only" is set to true, the service will try to validate
527
+ # that this request would succeed, but will not actually make changes.
528
+ # @param request_id [::String]
529
+ # An optional request ID to identify requests. Specify a unique request ID
530
+ # so that if you must retry your request, the server will know to ignore
531
+ # the request if it has already been completed. The server will guarantee
532
+ # that for at least 60 minutes since the first request.
533
+ #
534
+ # For example, consider a situation where you make an initial request and the
535
+ # request times out. If you make the request again with the same request
536
+ # ID, the server can check if original operation with the same request ID
537
+ # was received, and if so, will ignore the second request. This prevents
538
+ # clients from accidentally creating duplicate commitments.
539
+ #
540
+ # The request ID must be a valid UUID with the exception that zero UUID is
541
+ # not supported (00000000-0000-0000-0000-000000000000).
542
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
543
+ # Field mask is used to specify the fields to be overwritten in the
544
+ # Rollout resource by the update.
545
+ #
546
+ # The fields specified in the update_mask are relative to the resource, not
547
+ # the full request. A field will be overwritten if it is in the mask.
548
+ #
549
+ # If the user does not provide a mask then all fields in the
550
+ # Rollout will be overwritten.
551
+ # @yield [result, operation] Access the result along with the TransportOperation object
552
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
553
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
554
+ #
555
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
556
+ #
557
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
558
+ #
559
+ # @example Basic example
560
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
561
+ #
562
+ # # Create a client object. The client can be reused for multiple calls.
563
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
564
+ #
565
+ # # Create a request. To set request fields, pass in keyword arguments.
566
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest.new
567
+ #
568
+ # # Call the update_rollout method.
569
+ # result = client.update_rollout request
570
+ #
571
+ # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout.
572
+ # p result
573
+ #
574
+ def update_rollout request, options = nil
575
+ raise ::ArgumentError, "request must be provided" if request.nil?
576
+
577
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutRequest
578
+
579
+ # Converts hash and nil to an options object
580
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
581
+
582
+ # Customize the options with defaults
583
+ call_metadata = @config.rpcs.update_rollout.metadata.to_h
584
+
585
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
586
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
587
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
588
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
589
+ transports_version_send: [:rest]
590
+
591
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
592
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
593
+
594
+ options.apply_defaults timeout: @config.rpcs.update_rollout.timeout,
595
+ metadata: call_metadata,
596
+ retry_policy: @config.rpcs.update_rollout.retry_policy
597
+
598
+ options.apply_defaults timeout: @config.timeout,
599
+ metadata: @config.metadata,
600
+ retry_policy: @config.retry_policy
601
+
602
+ @saas_rollouts_stub.update_rollout request, options do |result, operation|
603
+ yield result, operation if block_given?
604
+ end
605
+ rescue ::Gapic::Rest::Error => e
606
+ raise ::Google::Cloud::Error.from_error(e)
607
+ end
608
+
609
+ ##
610
+ # Delete a single rollout.
611
+ #
612
+ # @overload delete_rollout(request, options = nil)
613
+ # Pass arguments to `delete_rollout` via a request object, either of type
614
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest} or an equivalent Hash.
615
+ #
616
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest, ::Hash]
617
+ # A request object representing the call parameters. Required. To specify no
618
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
619
+ # @param options [::Gapic::CallOptions, ::Hash]
620
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
621
+ #
622
+ # @overload delete_rollout(name: nil, etag: nil, validate_only: nil, request_id: nil)
623
+ # Pass arguments to `delete_rollout` via keyword arguments. Note that at
624
+ # least one keyword argument is required. To specify no parameters, or to keep all
625
+ # the default parameter values, pass an empty Hash as a request object (see above).
626
+ #
627
+ # @param name [::String]
628
+ # Required. The resource name of the resource within a service.
629
+ # @param etag [::String]
630
+ # The etag known to the client for the expected state of the rollout. This is
631
+ # used with state-changing methods to prevent accidental overwrites when
632
+ # multiple user agents might be acting in parallel on the same resource.
633
+ #
634
+ # An etag wildcard provide optimistic concurrency based on the expected
635
+ # existence of the rollout. The Any wildcard (`*`) requires that the resource
636
+ # must already exists, and the Not Any wildcard (`!*`) requires that it must
637
+ # not.
638
+ # @param validate_only [::Boolean]
639
+ # If "validate_only" is set to true, the service will try to validate
640
+ # that this request would succeed, but will not actually make changes.
641
+ # @param request_id [::String]
642
+ # An optional request ID to identify requests. Specify a unique request ID
643
+ # so that if you must retry your request, the server will know to ignore
644
+ # the request if it has already been completed. The server will guarantee
645
+ # that for at least 60 minutes since the first request.
646
+ #
647
+ # For example, consider a situation where you make an initial request and the
648
+ # request times out. If you make the request again with the same request
649
+ # ID, the server can check if original operation with the same request ID
650
+ # was received, and if so, will ignore the second request. This prevents
651
+ # clients from accidentally creating duplicate commitments.
652
+ #
653
+ # The request ID must be a valid UUID with the exception that zero UUID is
654
+ # not supported (00000000-0000-0000-0000-000000000000).
655
+ # @yield [result, operation] Access the result along with the TransportOperation object
656
+ # @yieldparam result [::Google::Protobuf::Empty]
657
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
658
+ #
659
+ # @return [::Google::Protobuf::Empty]
660
+ #
661
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
662
+ #
663
+ # @example Basic example
664
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
665
+ #
666
+ # # Create a client object. The client can be reused for multiple calls.
667
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
668
+ #
669
+ # # Create a request. To set request fields, pass in keyword arguments.
670
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest.new
671
+ #
672
+ # # Call the delete_rollout method.
673
+ # result = client.delete_rollout request
674
+ #
675
+ # # The returned object is of type Google::Protobuf::Empty.
676
+ # p result
677
+ #
678
+ def delete_rollout request, options = nil
679
+ raise ::ArgumentError, "request must be provided" if request.nil?
680
+
681
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutRequest
682
+
683
+ # Converts hash and nil to an options object
684
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
685
+
686
+ # Customize the options with defaults
687
+ call_metadata = @config.rpcs.delete_rollout.metadata.to_h
688
+
689
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
690
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
691
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
692
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
693
+ transports_version_send: [:rest]
694
+
695
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
696
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
697
+
698
+ options.apply_defaults timeout: @config.rpcs.delete_rollout.timeout,
699
+ metadata: call_metadata,
700
+ retry_policy: @config.rpcs.delete_rollout.retry_policy
701
+
702
+ options.apply_defaults timeout: @config.timeout,
703
+ metadata: @config.metadata,
704
+ retry_policy: @config.retry_policy
705
+
706
+ @saas_rollouts_stub.delete_rollout request, options do |result, operation|
707
+ yield result, operation if block_given?
708
+ end
709
+ rescue ::Gapic::Rest::Error => e
710
+ raise ::Google::Cloud::Error.from_error(e)
711
+ end
712
+
713
+ ##
714
+ # Retrieve a collection of rollout kinds.
715
+ #
716
+ # @overload list_rollout_kinds(request, options = nil)
717
+ # Pass arguments to `list_rollout_kinds` via a request object, either of type
718
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest} or an equivalent Hash.
719
+ #
720
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest, ::Hash]
721
+ # A request object representing the call parameters. Required. To specify no
722
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
723
+ # @param options [::Gapic::CallOptions, ::Hash]
724
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
725
+ #
726
+ # @overload list_rollout_kinds(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
727
+ # Pass arguments to `list_rollout_kinds` via keyword arguments. Note that at
728
+ # least one keyword argument is required. To specify no parameters, or to keep all
729
+ # the default parameter values, pass an empty Hash as a request object (see above).
730
+ #
731
+ # @param parent [::String]
732
+ # Required. The parent of the rollout kind.
733
+ # @param page_size [::Integer]
734
+ # The maximum number of rollout kinds to send per page.
735
+ # @param page_token [::String]
736
+ # The page token: If the next_page_token from a previous response
737
+ # is provided, this request will send the subsequent page.
738
+ # @param filter [::String]
739
+ # Filter the list as specified in https://google.aip.dev/160.
740
+ # @param order_by [::String]
741
+ # Order results as specified in https://google.aip.dev/132.
742
+ # @yield [result, operation] Access the result along with the TransportOperation object
743
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>]
744
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
745
+ #
746
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>]
747
+ #
748
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
749
+ #
750
+ # @example Basic example
751
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
752
+ #
753
+ # # Create a client object. The client can be reused for multiple calls.
754
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
755
+ #
756
+ # # Create a request. To set request fields, pass in keyword arguments.
757
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest.new
758
+ #
759
+ # # Call the list_rollout_kinds method.
760
+ # result = client.list_rollout_kinds request
761
+ #
762
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
763
+ # # over elements, and API calls will be issued to fetch pages as needed.
764
+ # result.each do |item|
765
+ # # Each element is of type ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.
766
+ # p item
767
+ # end
768
+ #
769
+ def list_rollout_kinds request, options = nil
770
+ raise ::ArgumentError, "request must be provided" if request.nil?
771
+
772
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ListRolloutKindsRequest
773
+
774
+ # Converts hash and nil to an options object
775
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
776
+
777
+ # Customize the options with defaults
778
+ call_metadata = @config.rpcs.list_rollout_kinds.metadata.to_h
779
+
780
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
781
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
782
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
783
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
784
+ transports_version_send: [:rest]
785
+
786
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
787
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
788
+
789
+ options.apply_defaults timeout: @config.rpcs.list_rollout_kinds.timeout,
790
+ metadata: call_metadata,
791
+ retry_policy: @config.rpcs.list_rollout_kinds.retry_policy
792
+
793
+ options.apply_defaults timeout: @config.timeout,
794
+ metadata: @config.metadata,
795
+ retry_policy: @config.retry_policy
796
+
797
+ @saas_rollouts_stub.list_rollout_kinds request, options do |result, operation|
798
+ result = ::Gapic::Rest::PagedEnumerable.new @saas_rollouts_stub, :list_rollout_kinds, "rollout_kinds", request, result, options
799
+ yield result, operation if block_given?
800
+ throw :response, result
801
+ end
802
+ rescue ::Gapic::Rest::Error => e
803
+ raise ::Google::Cloud::Error.from_error(e)
804
+ end
805
+
806
+ ##
807
+ # Retrieve a single rollout kind.
808
+ #
809
+ # @overload get_rollout_kind(request, options = nil)
810
+ # Pass arguments to `get_rollout_kind` via a request object, either of type
811
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest} or an equivalent Hash.
812
+ #
813
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest, ::Hash]
814
+ # A request object representing the call parameters. Required. To specify no
815
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
816
+ # @param options [::Gapic::CallOptions, ::Hash]
817
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
818
+ #
819
+ # @overload get_rollout_kind(name: nil)
820
+ # Pass arguments to `get_rollout_kind` via keyword arguments. Note that at
821
+ # least one keyword argument is required. To specify no parameters, or to keep all
822
+ # the default parameter values, pass an empty Hash as a request object (see above).
823
+ #
824
+ # @param name [::String]
825
+ # Required. The resource name of the resource within a service.
826
+ # @yield [result, operation] Access the result along with the TransportOperation object
827
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
828
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
829
+ #
830
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
831
+ #
832
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
833
+ #
834
+ # @example Basic example
835
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
836
+ #
837
+ # # Create a client object. The client can be reused for multiple calls.
838
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
839
+ #
840
+ # # Create a request. To set request fields, pass in keyword arguments.
841
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest.new
842
+ #
843
+ # # Call the get_rollout_kind method.
844
+ # result = client.get_rollout_kind request
845
+ #
846
+ # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.
847
+ # p result
848
+ #
849
+ def get_rollout_kind request, options = nil
850
+ raise ::ArgumentError, "request must be provided" if request.nil?
851
+
852
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::GetRolloutKindRequest
853
+
854
+ # Converts hash and nil to an options object
855
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
856
+
857
+ # Customize the options with defaults
858
+ call_metadata = @config.rpcs.get_rollout_kind.metadata.to_h
859
+
860
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
861
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
862
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
863
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
864
+ transports_version_send: [:rest]
865
+
866
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
867
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
868
+
869
+ options.apply_defaults timeout: @config.rpcs.get_rollout_kind.timeout,
870
+ metadata: call_metadata,
871
+ retry_policy: @config.rpcs.get_rollout_kind.retry_policy
872
+
873
+ options.apply_defaults timeout: @config.timeout,
874
+ metadata: @config.metadata,
875
+ retry_policy: @config.retry_policy
876
+
877
+ @saas_rollouts_stub.get_rollout_kind request, options do |result, operation|
878
+ yield result, operation if block_given?
879
+ end
880
+ rescue ::Gapic::Rest::Error => e
881
+ raise ::Google::Cloud::Error.from_error(e)
882
+ end
883
+
884
+ ##
885
+ # Create a new rollout kind.
886
+ #
887
+ # @overload create_rollout_kind(request, options = nil)
888
+ # Pass arguments to `create_rollout_kind` via a request object, either of type
889
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest} or an equivalent Hash.
890
+ #
891
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest, ::Hash]
892
+ # A request object representing the call parameters. Required. To specify no
893
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
894
+ # @param options [::Gapic::CallOptions, ::Hash]
895
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
896
+ #
897
+ # @overload create_rollout_kind(parent: nil, rollout_kind_id: nil, rollout_kind: nil, validate_only: nil, request_id: nil)
898
+ # Pass arguments to `create_rollout_kind` via keyword arguments. Note that at
899
+ # least one keyword argument is required. To specify no parameters, or to keep all
900
+ # the default parameter values, pass an empty Hash as a request object (see above).
901
+ #
902
+ # @param parent [::String]
903
+ # Required. The parent of the rollout kind.
904
+ # @param rollout_kind_id [::String]
905
+ # Required. The ID value for the new rollout kind.
906
+ # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash]
907
+ # Required. The desired state for the rollout kind.
908
+ # @param validate_only [::Boolean]
909
+ # If "validate_only" is set to true, the service will try to validate
910
+ # that this request would succeed, but will not actually make changes.
911
+ # @param request_id [::String]
912
+ # An optional request ID to identify requests. Specify a unique request ID
913
+ # so that if you must retry your request, the server will know to ignore
914
+ # the request if it has already been completed. The server will guarantee
915
+ # that for at least 60 minutes since the first request.
916
+ #
917
+ # For example, consider a situation where you make an initial request and the
918
+ # request times out. If you make the request again with the same request
919
+ # ID, the server can check if original operation with the same request ID
920
+ # was received, and if so, will ignore the second request. This prevents
921
+ # clients from accidentally creating duplicate commitments.
922
+ #
923
+ # The request ID must be a valid UUID with the exception that zero UUID is
924
+ # not supported (00000000-0000-0000-0000-000000000000).
925
+ # @yield [result, operation] Access the result along with the TransportOperation object
926
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
927
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
928
+ #
929
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
930
+ #
931
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
932
+ #
933
+ # @example Basic example
934
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
935
+ #
936
+ # # Create a client object. The client can be reused for multiple calls.
937
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
938
+ #
939
+ # # Create a request. To set request fields, pass in keyword arguments.
940
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest.new
941
+ #
942
+ # # Call the create_rollout_kind method.
943
+ # result = client.create_rollout_kind request
944
+ #
945
+ # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.
946
+ # p result
947
+ #
948
+ def create_rollout_kind request, options = nil
949
+ raise ::ArgumentError, "request must be provided" if request.nil?
950
+
951
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::CreateRolloutKindRequest
952
+
953
+ # Converts hash and nil to an options object
954
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
955
+
956
+ # Customize the options with defaults
957
+ call_metadata = @config.rpcs.create_rollout_kind.metadata.to_h
958
+
959
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
960
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
961
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
962
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
963
+ transports_version_send: [:rest]
964
+
965
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
966
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
967
+
968
+ options.apply_defaults timeout: @config.rpcs.create_rollout_kind.timeout,
969
+ metadata: call_metadata,
970
+ retry_policy: @config.rpcs.create_rollout_kind.retry_policy
971
+
972
+ options.apply_defaults timeout: @config.timeout,
973
+ metadata: @config.metadata,
974
+ retry_policy: @config.retry_policy
975
+
976
+ @saas_rollouts_stub.create_rollout_kind request, options do |result, operation|
977
+ yield result, operation if block_given?
978
+ end
979
+ rescue ::Gapic::Rest::Error => e
980
+ raise ::Google::Cloud::Error.from_error(e)
981
+ end
982
+
983
+ ##
984
+ # Update a single rollout kind.
985
+ #
986
+ # @overload update_rollout_kind(request, options = nil)
987
+ # Pass arguments to `update_rollout_kind` via a request object, either of type
988
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest} or an equivalent Hash.
989
+ #
990
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest, ::Hash]
991
+ # A request object representing the call parameters. Required. To specify no
992
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
993
+ # @param options [::Gapic::CallOptions, ::Hash]
994
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
995
+ #
996
+ # @overload update_rollout_kind(rollout_kind: nil, validate_only: nil, request_id: nil, update_mask: nil)
997
+ # Pass arguments to `update_rollout_kind` via keyword arguments. Note that at
998
+ # least one keyword argument is required. To specify no parameters, or to keep all
999
+ # the default parameter values, pass an empty Hash as a request object (see above).
1000
+ #
1001
+ # @param rollout_kind [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind, ::Hash]
1002
+ # Required. The desired state for the rollout kind.
1003
+ # @param validate_only [::Boolean]
1004
+ # If "validate_only" is set to true, the service will try to validate
1005
+ # that this request would succeed, but will not actually make changes.
1006
+ # @param request_id [::String]
1007
+ # An optional request ID to identify requests. Specify a unique request ID
1008
+ # so that if you must retry your request, the server will know to ignore
1009
+ # the request if it has already been completed. The server will guarantee
1010
+ # that for at least 60 minutes since the first request.
1011
+ #
1012
+ # For example, consider a situation where you make an initial request and the
1013
+ # request times out. If you make the request again with the same request
1014
+ # ID, the server can check if original operation with the same request ID
1015
+ # was received, and if so, will ignore the second request. This prevents
1016
+ # clients from accidentally creating duplicate commitments.
1017
+ #
1018
+ # The request ID must be a valid UUID with the exception that zero UUID is
1019
+ # not supported (00000000-0000-0000-0000-000000000000).
1020
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1021
+ # Field mask is used to specify the fields to be overwritten in the
1022
+ # RolloutKind resource by the update.
1023
+ #
1024
+ # The fields specified in the update_mask are relative to the resource, not
1025
+ # the full request. A field will be overwritten if it is in the mask.
1026
+ #
1027
+ # If the user does not provide a mask then all fields in the
1028
+ # RolloutKind will be overwritten.
1029
+ # @yield [result, operation] Access the result along with the TransportOperation object
1030
+ # @yieldparam result [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
1031
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1032
+ #
1033
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
1034
+ #
1035
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1036
+ #
1037
+ # @example Basic example
1038
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
1039
+ #
1040
+ # # Create a client object. The client can be reused for multiple calls.
1041
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
1042
+ #
1043
+ # # Create a request. To set request fields, pass in keyword arguments.
1044
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest.new
1045
+ #
1046
+ # # Call the update_rollout_kind method.
1047
+ # result = client.update_rollout_kind request
1048
+ #
1049
+ # # The returned object is of type Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind.
1050
+ # p result
1051
+ #
1052
+ def update_rollout_kind request, options = nil
1053
+ raise ::ArgumentError, "request must be provided" if request.nil?
1054
+
1055
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::UpdateRolloutKindRequest
1056
+
1057
+ # Converts hash and nil to an options object
1058
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1059
+
1060
+ # Customize the options with defaults
1061
+ call_metadata = @config.rpcs.update_rollout_kind.metadata.to_h
1062
+
1063
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1064
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1065
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1066
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
1067
+ transports_version_send: [:rest]
1068
+
1069
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1070
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1071
+
1072
+ options.apply_defaults timeout: @config.rpcs.update_rollout_kind.timeout,
1073
+ metadata: call_metadata,
1074
+ retry_policy: @config.rpcs.update_rollout_kind.retry_policy
1075
+
1076
+ options.apply_defaults timeout: @config.timeout,
1077
+ metadata: @config.metadata,
1078
+ retry_policy: @config.retry_policy
1079
+
1080
+ @saas_rollouts_stub.update_rollout_kind request, options do |result, operation|
1081
+ yield result, operation if block_given?
1082
+ end
1083
+ rescue ::Gapic::Rest::Error => e
1084
+ raise ::Google::Cloud::Error.from_error(e)
1085
+ end
1086
+
1087
+ ##
1088
+ # Delete a single rollout kind.
1089
+ #
1090
+ # @overload delete_rollout_kind(request, options = nil)
1091
+ # Pass arguments to `delete_rollout_kind` via a request object, either of type
1092
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest} or an equivalent Hash.
1093
+ #
1094
+ # @param request [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest, ::Hash]
1095
+ # A request object representing the call parameters. Required. To specify no
1096
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1097
+ # @param options [::Gapic::CallOptions, ::Hash]
1098
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1099
+ #
1100
+ # @overload delete_rollout_kind(name: nil, etag: nil, validate_only: nil, request_id: nil)
1101
+ # Pass arguments to `delete_rollout_kind` via keyword arguments. Note that at
1102
+ # least one keyword argument is required. To specify no parameters, or to keep all
1103
+ # the default parameter values, pass an empty Hash as a request object (see above).
1104
+ #
1105
+ # @param name [::String]
1106
+ # Required. The resource name of the resource within a service.
1107
+ # @param etag [::String]
1108
+ # The etag known to the client for the expected state of the rollout kind.
1109
+ # This is used with state-changing methods to prevent accidental overwrites
1110
+ # when multiple user agents might be acting in parallel on the same resource.
1111
+ #
1112
+ # An etag wildcard provide optimistic concurrency based on the expected
1113
+ # existence of the rollout kind. The Any wildcard (`*`) requires that the
1114
+ # resource must already exists, and the Not Any wildcard (`!*`) requires that
1115
+ # it must not.
1116
+ # @param validate_only [::Boolean]
1117
+ # If "validate_only" is set to true, the service will try to validate
1118
+ # that this request would succeed, but will not actually make changes.
1119
+ # @param request_id [::String]
1120
+ # An optional request ID to identify requests. Specify a unique request ID
1121
+ # so that if you must retry your request, the server will know to ignore
1122
+ # the request if it has already been completed. The server will guarantee
1123
+ # that for at least 60 minutes since the first request.
1124
+ #
1125
+ # For example, consider a situation where you make an initial request and the
1126
+ # request times out. If you make the request again with the same request
1127
+ # ID, the server can check if original operation with the same request ID
1128
+ # was received, and if so, will ignore the second request. This prevents
1129
+ # clients from accidentally creating duplicate commitments.
1130
+ #
1131
+ # The request ID must be a valid UUID with the exception that zero UUID is
1132
+ # not supported (00000000-0000-0000-0000-000000000000).
1133
+ # @yield [result, operation] Access the result along with the TransportOperation object
1134
+ # @yieldparam result [::Google::Protobuf::Empty]
1135
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1136
+ #
1137
+ # @return [::Google::Protobuf::Empty]
1138
+ #
1139
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1140
+ #
1141
+ # @example Basic example
1142
+ # require "google/cloud/saas_platform/saas_service_mgmt/v1beta1"
1143
+ #
1144
+ # # Create a client object. The client can be reused for multiple calls.
1145
+ # client = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new
1146
+ #
1147
+ # # Create a request. To set request fields, pass in keyword arguments.
1148
+ # request = Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest.new
1149
+ #
1150
+ # # Call the delete_rollout_kind method.
1151
+ # result = client.delete_rollout_kind request
1152
+ #
1153
+ # # The returned object is of type Google::Protobuf::Empty.
1154
+ # p result
1155
+ #
1156
+ def delete_rollout_kind request, options = nil
1157
+ raise ::ArgumentError, "request must be provided" if request.nil?
1158
+
1159
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::DeleteRolloutKindRequest
1160
+
1161
+ # Converts hash and nil to an options object
1162
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1163
+
1164
+ # Customize the options with defaults
1165
+ call_metadata = @config.rpcs.delete_rollout_kind.metadata.to_h
1166
+
1167
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1168
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1169
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1170
+ gapic_version: ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::VERSION,
1171
+ transports_version_send: [:rest]
1172
+
1173
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1174
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1175
+
1176
+ options.apply_defaults timeout: @config.rpcs.delete_rollout_kind.timeout,
1177
+ metadata: call_metadata,
1178
+ retry_policy: @config.rpcs.delete_rollout_kind.retry_policy
1179
+
1180
+ options.apply_defaults timeout: @config.timeout,
1181
+ metadata: @config.metadata,
1182
+ retry_policy: @config.retry_policy
1183
+
1184
+ @saas_rollouts_stub.delete_rollout_kind request, options do |result, operation|
1185
+ yield result, operation if block_given?
1186
+ end
1187
+ rescue ::Gapic::Rest::Error => e
1188
+ raise ::Google::Cloud::Error.from_error(e)
1189
+ end
1190
+
1191
+ ##
1192
+ # Configuration class for the SaasRollouts REST API.
1193
+ #
1194
+ # This class represents the configuration for SaasRollouts REST,
1195
+ # providing control over timeouts, retry behavior, logging, transport
1196
+ # parameters, and other low-level controls. Certain parameters can also be
1197
+ # applied individually to specific RPCs. See
1198
+ # {::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client::Configuration::Rpcs}
1199
+ # for a list of RPCs that can be configured independently.
1200
+ #
1201
+ # Configuration can be applied globally to all clients, or to a single client
1202
+ # on construction.
1203
+ #
1204
+ # @example
1205
+ #
1206
+ # # Modify the global config, setting the timeout for
1207
+ # # list_rollouts to 20 seconds,
1208
+ # # and all remaining timeouts to 10 seconds.
1209
+ # ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.configure do |config|
1210
+ # config.timeout = 10.0
1211
+ # config.rpcs.list_rollouts.timeout = 20.0
1212
+ # end
1213
+ #
1214
+ # # Apply the above configuration only to a new client.
1215
+ # client = ::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::SaasRollouts::Rest::Client.new do |config|
1216
+ # config.timeout = 10.0
1217
+ # config.rpcs.list_rollouts.timeout = 20.0
1218
+ # end
1219
+ #
1220
+ # @!attribute [rw] endpoint
1221
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1222
+ # nil, indicating to use the default endpoint in the current universe domain.
1223
+ # @return [::String,nil]
1224
+ # @!attribute [rw] credentials
1225
+ # Credentials to send with calls. You may provide any of the following types:
1226
+ # * (`String`) The path to a service account key file in JSON format
1227
+ # * (`Hash`) A service account key as a Hash
1228
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1229
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1230
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1231
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1232
+ # * (`nil`) indicating no credentials
1233
+ #
1234
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1235
+ # external source for authentication to Google Cloud, you must validate it before
1236
+ # providing it to a Google API client library. Providing an unvalidated credential
1237
+ # configuration to Google APIs can compromise the security of your systems and data.
1238
+ # For more information, refer to [Validate credential configurations from external
1239
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1240
+ # @return [::Object]
1241
+ # @!attribute [rw] scope
1242
+ # The OAuth scopes
1243
+ # @return [::Array<::String>]
1244
+ # @!attribute [rw] lib_name
1245
+ # The library name as recorded in instrumentation and logging
1246
+ # @return [::String]
1247
+ # @!attribute [rw] lib_version
1248
+ # The library version as recorded in instrumentation and logging
1249
+ # @return [::String]
1250
+ # @!attribute [rw] timeout
1251
+ # The call timeout in seconds.
1252
+ # @return [::Numeric]
1253
+ # @!attribute [rw] metadata
1254
+ # Additional headers to be sent with the call.
1255
+ # @return [::Hash{::Symbol=>::String}]
1256
+ # @!attribute [rw] retry_policy
1257
+ # The retry policy. The value is a hash with the following keys:
1258
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1259
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1260
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1261
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1262
+ # trigger a retry.
1263
+ # @return [::Hash]
1264
+ # @!attribute [rw] quota_project
1265
+ # A separate project against which to charge quota.
1266
+ # @return [::String]
1267
+ # @!attribute [rw] universe_domain
1268
+ # The universe domain within which to make requests. This determines the
1269
+ # default endpoint URL. The default value of nil uses the environment
1270
+ # universe (usually the default "googleapis.com" universe).
1271
+ # @return [::String,nil]
1272
+ # @!attribute [rw] logger
1273
+ # A custom logger to use for request/response debug logging, or the value
1274
+ # `:default` (the default) to construct a default logger, or `nil` to
1275
+ # explicitly disable logging.
1276
+ # @return [::Logger,:default,nil]
1277
+ #
1278
+ class Configuration
1279
+ extend ::Gapic::Config
1280
+
1281
+ # @private
1282
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1283
+ DEFAULT_ENDPOINT = "saasservicemgmt.googleapis.com"
1284
+
1285
+ config_attr :endpoint, nil, ::String, nil
1286
+ config_attr :credentials, nil do |value|
1287
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1288
+ allowed.any? { |klass| klass === value }
1289
+ end
1290
+ config_attr :scope, nil, ::String, ::Array, nil
1291
+ config_attr :lib_name, nil, ::String, nil
1292
+ config_attr :lib_version, nil, ::String, nil
1293
+ config_attr :timeout, nil, ::Numeric, nil
1294
+ config_attr :metadata, nil, ::Hash, nil
1295
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1296
+ config_attr :quota_project, nil, ::String, nil
1297
+ config_attr :universe_domain, nil, ::String, nil
1298
+
1299
+ # @private
1300
+ # Overrides for http bindings for the RPCs of this service
1301
+ # are only used when this service is used as mixin, and only
1302
+ # by the host service.
1303
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1304
+ config_attr :bindings_override, {}, ::Hash, nil
1305
+ config_attr :logger, :default, ::Logger, nil, :default
1306
+
1307
+ # @private
1308
+ def initialize parent_config = nil
1309
+ @parent_config = parent_config unless parent_config.nil?
1310
+
1311
+ yield self if block_given?
1312
+ end
1313
+
1314
+ ##
1315
+ # Configurations for individual RPCs
1316
+ # @return [Rpcs]
1317
+ #
1318
+ def rpcs
1319
+ @rpcs ||= begin
1320
+ parent_rpcs = nil
1321
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1322
+ Rpcs.new parent_rpcs
1323
+ end
1324
+ end
1325
+
1326
+ ##
1327
+ # Configuration RPC class for the SaasRollouts API.
1328
+ #
1329
+ # Includes fields providing the configuration for each RPC in this service.
1330
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1331
+ # the following configuration fields:
1332
+ #
1333
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1334
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1335
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1336
+ # include the following keys:
1337
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1338
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1339
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1340
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1341
+ # trigger a retry.
1342
+ #
1343
+ class Rpcs
1344
+ ##
1345
+ # RPC-specific configuration for `list_rollouts`
1346
+ # @return [::Gapic::Config::Method]
1347
+ #
1348
+ attr_reader :list_rollouts
1349
+ ##
1350
+ # RPC-specific configuration for `get_rollout`
1351
+ # @return [::Gapic::Config::Method]
1352
+ #
1353
+ attr_reader :get_rollout
1354
+ ##
1355
+ # RPC-specific configuration for `create_rollout`
1356
+ # @return [::Gapic::Config::Method]
1357
+ #
1358
+ attr_reader :create_rollout
1359
+ ##
1360
+ # RPC-specific configuration for `update_rollout`
1361
+ # @return [::Gapic::Config::Method]
1362
+ #
1363
+ attr_reader :update_rollout
1364
+ ##
1365
+ # RPC-specific configuration for `delete_rollout`
1366
+ # @return [::Gapic::Config::Method]
1367
+ #
1368
+ attr_reader :delete_rollout
1369
+ ##
1370
+ # RPC-specific configuration for `list_rollout_kinds`
1371
+ # @return [::Gapic::Config::Method]
1372
+ #
1373
+ attr_reader :list_rollout_kinds
1374
+ ##
1375
+ # RPC-specific configuration for `get_rollout_kind`
1376
+ # @return [::Gapic::Config::Method]
1377
+ #
1378
+ attr_reader :get_rollout_kind
1379
+ ##
1380
+ # RPC-specific configuration for `create_rollout_kind`
1381
+ # @return [::Gapic::Config::Method]
1382
+ #
1383
+ attr_reader :create_rollout_kind
1384
+ ##
1385
+ # RPC-specific configuration for `update_rollout_kind`
1386
+ # @return [::Gapic::Config::Method]
1387
+ #
1388
+ attr_reader :update_rollout_kind
1389
+ ##
1390
+ # RPC-specific configuration for `delete_rollout_kind`
1391
+ # @return [::Gapic::Config::Method]
1392
+ #
1393
+ attr_reader :delete_rollout_kind
1394
+
1395
+ # @private
1396
+ def initialize parent_rpcs = nil
1397
+ list_rollouts_config = parent_rpcs.list_rollouts if parent_rpcs.respond_to? :list_rollouts
1398
+ @list_rollouts = ::Gapic::Config::Method.new list_rollouts_config
1399
+ get_rollout_config = parent_rpcs.get_rollout if parent_rpcs.respond_to? :get_rollout
1400
+ @get_rollout = ::Gapic::Config::Method.new get_rollout_config
1401
+ create_rollout_config = parent_rpcs.create_rollout if parent_rpcs.respond_to? :create_rollout
1402
+ @create_rollout = ::Gapic::Config::Method.new create_rollout_config
1403
+ update_rollout_config = parent_rpcs.update_rollout if parent_rpcs.respond_to? :update_rollout
1404
+ @update_rollout = ::Gapic::Config::Method.new update_rollout_config
1405
+ delete_rollout_config = parent_rpcs.delete_rollout if parent_rpcs.respond_to? :delete_rollout
1406
+ @delete_rollout = ::Gapic::Config::Method.new delete_rollout_config
1407
+ list_rollout_kinds_config = parent_rpcs.list_rollout_kinds if parent_rpcs.respond_to? :list_rollout_kinds
1408
+ @list_rollout_kinds = ::Gapic::Config::Method.new list_rollout_kinds_config
1409
+ get_rollout_kind_config = parent_rpcs.get_rollout_kind if parent_rpcs.respond_to? :get_rollout_kind
1410
+ @get_rollout_kind = ::Gapic::Config::Method.new get_rollout_kind_config
1411
+ create_rollout_kind_config = parent_rpcs.create_rollout_kind if parent_rpcs.respond_to? :create_rollout_kind
1412
+ @create_rollout_kind = ::Gapic::Config::Method.new create_rollout_kind_config
1413
+ update_rollout_kind_config = parent_rpcs.update_rollout_kind if parent_rpcs.respond_to? :update_rollout_kind
1414
+ @update_rollout_kind = ::Gapic::Config::Method.new update_rollout_kind_config
1415
+ delete_rollout_kind_config = parent_rpcs.delete_rollout_kind if parent_rpcs.respond_to? :delete_rollout_kind
1416
+ @delete_rollout_kind = ::Gapic::Config::Method.new delete_rollout_kind_config
1417
+
1418
+ yield self if block_given?
1419
+ end
1420
+ end
1421
+ end
1422
+ end
1423
+ end
1424
+ end
1425
+ end
1426
+ end
1427
+ end
1428
+ end
1429
+ end