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,389 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module SaasPlatform
23
+ module SaasServiceMgmt
24
+ module V1beta1
25
+ # Represents a single rollout execution and its results
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Identifier. The resource name (full URI of the resource) following the
29
+ # standard naming scheme:
30
+ #
31
+ # "projects/\\{project}/locations/\\{location}/rollout/\\{rollout_id}"
32
+ # @!attribute [rw] release
33
+ # @return [::String]
34
+ # Optional. Immutable. Name of the Release that gets rolled out to target
35
+ # Units. Required if no other type of release is specified.
36
+ # @!attribute [r] start_time
37
+ # @return [::Google::Protobuf::Timestamp]
38
+ # Optional. Output only. The time when the rollout started executing. Will be
39
+ # empty if the rollout hasn't started yet.
40
+ # @!attribute [r] end_time
41
+ # @return [::Google::Protobuf::Timestamp]
42
+ # Optional. Output only. The time when the rollout finished execution
43
+ # (regardless of success, failure, or cancellation). Will be empty if the
44
+ # rollout hasn't finished yet. Once set, the rollout is in terminal state and
45
+ # all the results are final.
46
+ # @!attribute [r] state
47
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout::RolloutState]
48
+ # Output only. Current state of the rollout.
49
+ # @!attribute [r] state_message
50
+ # @return [::String]
51
+ # Output only. Human readable message indicating details about the last state
52
+ # transition.
53
+ # @!attribute [r] state_transition_time
54
+ # @return [::Google::Protobuf::Timestamp]
55
+ # Optional. Output only. The time when the rollout transitioned into its
56
+ # current state.
57
+ # @!attribute [r] root_rollout
58
+ # @return [::String]
59
+ # Optional. Output only. The root rollout that this rollout is stemming from.
60
+ # The resource name (full URI of the resource) following the standard naming
61
+ # scheme:
62
+ #
63
+ # "projects/\\{project}/locations/\\{location}/rollouts/\\{rollout_id}"
64
+ # @!attribute [r] parent_rollout
65
+ # @return [::String]
66
+ # Optional. Output only. The direct parent rollout that this rollout is
67
+ # stemming from. The resource name (full URI of the resource) following the
68
+ # standard naming scheme:
69
+ #
70
+ # "projects/\\{project}/locations/\\{location}/rollouts/\\{rollout_id}"
71
+ # @!attribute [rw] rollout_orchestration_strategy
72
+ # @return [::String]
73
+ # Optional. The strategy used for executing this Rollout.
74
+ # This strategy will override whatever strategy is specified in the
75
+ # RolloutType. If not specified on creation, the
76
+ # strategy from RolloutType will be used.
77
+ #
78
+ # There are two supported values strategies which are used to control
79
+ # - "Google.Cloud.Simple.AllAtOnce"
80
+ # - "Google.Cloud.Simple.OneLocationAtATime"
81
+ #
82
+ # A rollout with one of these simple strategies will rollout across
83
+ # all locations defined in the targeted UnitKind's Saas Locations.
84
+ # @!attribute [rw] unit_filter
85
+ # @return [::String]
86
+ # Optional. CEL(https://github.com/google/cel-spec) formatted filter string
87
+ # against Unit. The filter will be applied to determine the eligible unit
88
+ # population. This filter can only reduce, but not expand the scope of the
89
+ # rollout. If not provided, the unit_filter from the RolloutType will be
90
+ # used.
91
+ # @!attribute [rw] rollout_kind
92
+ # @return [::String]
93
+ # Optional. Immutable. Name of the RolloutKind this rollout is stemming from
94
+ # and adhering to.
95
+ # @!attribute [r] stats
96
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutStats]
97
+ # Optional. Output only. Details about the progress of the rollout.
98
+ # @!attribute [rw] control
99
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutControl]
100
+ # Optional. Requested change to the execution of this rollout.
101
+ # Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
102
+ # the rollout will be executed to completion while progressing through
103
+ # all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
104
+ # FAILED). Requests can only be made when the Rollout is in a non-terminal
105
+ # state.
106
+ # @!attribute [rw] labels
107
+ # @return [::Google::Protobuf::Map{::String => ::String}]
108
+ # Optional. The labels on the resource, which can be used for categorization.
109
+ # similar to Kubernetes resource labels.
110
+ # @!attribute [rw] annotations
111
+ # @return [::Google::Protobuf::Map{::String => ::String}]
112
+ # Optional. Annotations is an unstructured key-value map stored with a
113
+ # resource that may be set by external tools to store and retrieve arbitrary
114
+ # metadata. They are not queryable and should be preserved when modifying
115
+ # objects.
116
+ #
117
+ # More info: https://kubernetes.io/docs/user-guide/annotations
118
+ # @!attribute [r] uid
119
+ # @return [::String]
120
+ # Output only. The unique identifier of the resource. UID is unique in the
121
+ # time and space for this resource within the scope of the service. It is
122
+ # typically generated by the server on successful creation of a resource
123
+ # and must not be changed. UID is used to uniquely identify resources
124
+ # with resource name reuses. This should be a UUID4.
125
+ # @!attribute [r] etag
126
+ # @return [::String]
127
+ # Output only. An opaque value that uniquely identifies a version or
128
+ # generation of a resource. It can be used to confirm that the client
129
+ # and server agree on the ordering of a resource being written.
130
+ # @!attribute [r] create_time
131
+ # @return [::Google::Protobuf::Timestamp]
132
+ # Output only. The timestamp when the resource was created.
133
+ # @!attribute [r] update_time
134
+ # @return [::Google::Protobuf::Timestamp]
135
+ # Output only. The timestamp when the resource was last updated. Any
136
+ # change to the resource made by users must refresh this value.
137
+ # Changes to a resource made by the service should refresh this value.
138
+ class Rollout
139
+ include ::Google::Protobuf::MessageExts
140
+ extend ::Google::Protobuf::MessageExts::ClassMethods
141
+
142
+ # @!attribute [rw] key
143
+ # @return [::String]
144
+ # @!attribute [rw] value
145
+ # @return [::String]
146
+ class LabelsEntry
147
+ include ::Google::Protobuf::MessageExts
148
+ extend ::Google::Protobuf::MessageExts::ClassMethods
149
+ end
150
+
151
+ # @!attribute [rw] key
152
+ # @return [::String]
153
+ # @!attribute [rw] value
154
+ # @return [::String]
155
+ class AnnotationsEntry
156
+ include ::Google::Protobuf::MessageExts
157
+ extend ::Google::Protobuf::MessageExts::ClassMethods
158
+ end
159
+
160
+ # The current state of the rollout.
161
+ module RolloutState
162
+ # Unspecified state.
163
+ ROLLOUT_STATE_UNSPECIFIED = 0
164
+
165
+ # Rollout is in progress.
166
+ ROLLOUT_STATE_RUNNING = 1
167
+
168
+ # Rollout has been paused.
169
+ ROLLOUT_STATE_PAUSED = 2
170
+
171
+ # Rollout completed successfully.
172
+ ROLLOUT_STATE_SUCCEEDED = 3
173
+
174
+ # Rollout has failed.
175
+ ROLLOUT_STATE_FAILED = 4
176
+
177
+ # Rollout has been canceled.
178
+ ROLLOUT_STATE_CANCELLED = 5
179
+
180
+ # Rollout is waiting for some condition to be met before starting.
181
+ ROLLOUT_STATE_WAITING = 6
182
+
183
+ # Rollout is being canceled.
184
+ ROLLOUT_STATE_CANCELLING = 7
185
+
186
+ # Rollout is being resumed.
187
+ ROLLOUT_STATE_RESUMING = 8
188
+
189
+ # Rollout is being paused.
190
+ ROLLOUT_STATE_PAUSING = 9
191
+ end
192
+ end
193
+
194
+ # An object that describes various settings of Rollout execution. Includes
195
+ # built-in policies across GCP and GDC, and customizable policies.
196
+ # @!attribute [rw] name
197
+ # @return [::String]
198
+ # Identifier. The resource name (full URI of the resource) following the
199
+ # standard naming scheme:
200
+ #
201
+ # "projects/\\{project}/locations/\\{location}/rolloutKinds/\\{rollout_kind_id}"
202
+ # @!attribute [rw] unit_kind
203
+ # @return [::String]
204
+ # Required. Immutable. UnitKind that this rollout kind corresponds to.
205
+ # Rollouts stemming from this rollout kind will target the units of this unit
206
+ # kind. In other words, this defines the population of target units to be
207
+ # upgraded by rollouts.
208
+ # @!attribute [rw] rollout_orchestration_strategy
209
+ # @return [::String]
210
+ # Optional. The strategy used for executing a Rollout. This is a required
211
+ # field.
212
+ #
213
+ # There are two supported values strategies which are used to control
214
+ # - "Google.Cloud.Simple.AllAtOnce"
215
+ # - "Google.Cloud.Simple.OneLocationAtATime"
216
+ #
217
+ # A rollout with one of these simple strategies will rollout across
218
+ # all locations defined in the associated UnitKind's Saas Locations.
219
+ # @!attribute [rw] unit_filter
220
+ # @return [::String]
221
+ # Optional. CEL(https://github.com/google/cel-spec) formatted filter string
222
+ # against Unit. The filter will be applied to determine the eligible unit
223
+ # population. This filter can only reduce, but not expand the scope of the
224
+ # rollout.
225
+ # @!attribute [rw] update_unit_kind_strategy
226
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind::UpdateUnitKindStrategy]
227
+ # Optional. The config for updating the unit kind. By default, the unit kind
228
+ # will be updated on the rollout start.
229
+ # @!attribute [rw] error_budget
230
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::ErrorBudget]
231
+ # Optional. The configuration for error budget. If the number of failed units
232
+ # exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
233
+ # be paused. If not set, all units will be attempted to be updated regardless
234
+ # of the number of failures encountered.
235
+ # @!attribute [rw] labels
236
+ # @return [::Google::Protobuf::Map{::String => ::String}]
237
+ # Optional. The labels on the resource, which can be used for categorization.
238
+ # similar to Kubernetes resource labels.
239
+ # @!attribute [rw] annotations
240
+ # @return [::Google::Protobuf::Map{::String => ::String}]
241
+ # Optional. Annotations is an unstructured key-value map stored with a
242
+ # resource that may be set by external tools to store and retrieve arbitrary
243
+ # metadata. They are not queryable and should be preserved when modifying
244
+ # objects.
245
+ #
246
+ # More info: https://kubernetes.io/docs/user-guide/annotations
247
+ # @!attribute [r] uid
248
+ # @return [::String]
249
+ # Output only. The unique identifier of the resource. UID is unique in the
250
+ # time and space for this resource within the scope of the service. It is
251
+ # typically generated by the server on successful creation of a resource
252
+ # and must not be changed. UID is used to uniquely identify resources
253
+ # with resource name reuses. This should be a UUID4.
254
+ # @!attribute [r] etag
255
+ # @return [::String]
256
+ # Output only. An opaque value that uniquely identifies a version or
257
+ # generation of a resource. It can be used to confirm that the client
258
+ # and server agree on the ordering of a resource being written.
259
+ # @!attribute [r] create_time
260
+ # @return [::Google::Protobuf::Timestamp]
261
+ # Output only. The timestamp when the resource was created.
262
+ # @!attribute [r] update_time
263
+ # @return [::Google::Protobuf::Timestamp]
264
+ # Output only. The timestamp when the resource was last updated. Any
265
+ # change to the resource made by users must refresh this value.
266
+ # Changes to a resource made by the service should refresh this value.
267
+ class RolloutKind
268
+ include ::Google::Protobuf::MessageExts
269
+ extend ::Google::Protobuf::MessageExts::ClassMethods
270
+
271
+ # @!attribute [rw] key
272
+ # @return [::String]
273
+ # @!attribute [rw] value
274
+ # @return [::String]
275
+ class LabelsEntry
276
+ include ::Google::Protobuf::MessageExts
277
+ extend ::Google::Protobuf::MessageExts::ClassMethods
278
+ end
279
+
280
+ # @!attribute [rw] key
281
+ # @return [::String]
282
+ # @!attribute [rw] value
283
+ # @return [::String]
284
+ class AnnotationsEntry
285
+ include ::Google::Protobuf::MessageExts
286
+ extend ::Google::Protobuf::MessageExts::ClassMethods
287
+ end
288
+
289
+ module UpdateUnitKindStrategy
290
+ # Strategy unspecified.
291
+ UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED = 0
292
+
293
+ # Update the unit kind strategy on the rollout start.
294
+ UPDATE_UNIT_KIND_STRATEGY_ON_START = 1
295
+
296
+ # Never update the unit kind.
297
+ UPDATE_UNIT_KIND_STRATEGY_NEVER = 2
298
+ end
299
+ end
300
+
301
+ # The configuration for error budget. If the number of failed units exceeds
302
+ # max(allowed_count, allowed_ratio * total_units), the rollout will be paused.
303
+ # @!attribute [rw] allowed_count
304
+ # @return [::Integer]
305
+ # Optional. The maximum number of failed units allowed in a location without
306
+ # pausing the rollout.
307
+ # @!attribute [rw] allowed_percentage
308
+ # @return [::Integer]
309
+ # Optional. The maximum percentage of units allowed to fail (0, 100] within a
310
+ # location without pausing the rollout.
311
+ class ErrorBudget
312
+ include ::Google::Protobuf::MessageExts
313
+ extend ::Google::Protobuf::MessageExts::ClassMethods
314
+ end
315
+
316
+ # RolloutStats contains information about the progress of a rollout.
317
+ # @!attribute [r] operations_by_state
318
+ # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Aggregate>]
319
+ # Output only. A breakdown of the progress of operations triggered by the
320
+ # rollout. Provides a count of Operations by their state. This can be used to
321
+ # determine the number of units which have been updated, or are scheduled to
322
+ # be updated.
323
+ #
324
+ # There will be at most one entry per group.
325
+ # Possible values for operation groups are:
326
+ # - "SCHEDULED"
327
+ # - "PENDING"
328
+ # - "RUNNING"
329
+ # - "SUCCEEDED"
330
+ # - "FAILED"
331
+ # - "CANCELLED"
332
+ class RolloutStats
333
+ include ::Google::Protobuf::MessageExts
334
+ extend ::Google::Protobuf::MessageExts::ClassMethods
335
+ end
336
+
337
+ # RolloutControl provides a way to request a change to the execution of a
338
+ # Rollout by pausing or canceling it.
339
+ # @!attribute [rw] run_params
340
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutControl::RunRolloutActionParams]
341
+ # Optional. Parameters for the RUN action. It is an error to specify this
342
+ # if the RolloutAction is not set to RUN. By default, the rollout will
343
+ # retry failed operations when resumed.
344
+ # @!attribute [rw] action
345
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutAction]
346
+ # Required. Action to be performed on the Rollout.
347
+ # The default behavior is to run the rollout until it naturally reaches a
348
+ # terminal state.
349
+ class RolloutControl
350
+ include ::Google::Protobuf::MessageExts
351
+ extend ::Google::Protobuf::MessageExts::ClassMethods
352
+
353
+ # Parameters for the RUN action controlling the behavior of the rollout
354
+ # when it is resumed from a PAUSED state.
355
+ # @!attribute [rw] retry_failed_operations
356
+ # @return [::Boolean]
357
+ # Required. If true, the rollout will retry failed operations when resumed.
358
+ # This is applicable only the current state of the Rollout is PAUSED and
359
+ # the requested action is RUN.
360
+ class RunRolloutActionParams
361
+ include ::Google::Protobuf::MessageExts
362
+ extend ::Google::Protobuf::MessageExts::ClassMethods
363
+ end
364
+ end
365
+
366
+ # RolloutAction indicates the action to be performed on the Rollout.
367
+ module RolloutAction
368
+ # Unspecified action, will be treated as RUN by default.
369
+ ROLLOUT_ACTION_UNSPECIFIED = 0
370
+
371
+ # Run the Rollout until it naturally reaches a terminal state.
372
+ # A rollout requested to run will progress through all natural Rollout
373
+ # States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED).
374
+ # If retriable errors are encountered during the rollout, the rollout
375
+ # will paused by default and can be resumed by re-requesting this RUN
376
+ # action.
377
+ ROLLOUT_ACTION_RUN = 1
378
+
379
+ # Pause the Rollout until it is resumed (i.e. RUN is requested).
380
+ ROLLOUT_ACTION_PAUSE = 2
381
+
382
+ # Cancel the Rollout permanently.
383
+ ROLLOUT_ACTION_CANCEL = 3
384
+ end
385
+ end
386
+ end
387
+ end
388
+ end
389
+ end