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,344 @@
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
+ # The request structure for the ListRollouts method.
26
+ # @!attribute [rw] parent
27
+ # @return [::String]
28
+ # Required. The parent of the rollout.
29
+ # @!attribute [rw] page_size
30
+ # @return [::Integer]
31
+ # The maximum number of rollouts to send per page.
32
+ # @!attribute [rw] page_token
33
+ # @return [::String]
34
+ # The page token: If the next_page_token from a previous response
35
+ # is provided, this request will send the subsequent page.
36
+ # @!attribute [rw] filter
37
+ # @return [::String]
38
+ # Filter the list as specified in https://google.aip.dev/160.
39
+ # @!attribute [rw] order_by
40
+ # @return [::String]
41
+ # Order results as specified in https://google.aip.dev/132.
42
+ class ListRolloutsRequest
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # The response structure for the ListRollouts method.
48
+ # @!attribute [rw] rollouts
49
+ # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout>]
50
+ # The resulting rollouts.
51
+ # @!attribute [rw] next_page_token
52
+ # @return [::String]
53
+ # If present, the next page token can be provided to a subsequent
54
+ # ListRollouts call to list the next page.
55
+ # If empty, there are no more pages.
56
+ # @!attribute [rw] unreachable
57
+ # @return [::Array<::String>]
58
+ # Locations that could not be reached.
59
+ class ListRolloutsResponse
60
+ include ::Google::Protobuf::MessageExts
61
+ extend ::Google::Protobuf::MessageExts::ClassMethods
62
+ end
63
+
64
+ # The request structure for the GetRollout method.
65
+ # @!attribute [rw] name
66
+ # @return [::String]
67
+ # Required. The resource name of the resource within a service.
68
+ class GetRolloutRequest
69
+ include ::Google::Protobuf::MessageExts
70
+ extend ::Google::Protobuf::MessageExts::ClassMethods
71
+ end
72
+
73
+ # The request structure for the CreateRollout method.
74
+ # @!attribute [rw] parent
75
+ # @return [::String]
76
+ # Required. The parent of the rollout.
77
+ # @!attribute [rw] rollout_id
78
+ # @return [::String]
79
+ # Required. The ID value for the new rollout.
80
+ # @!attribute [rw] rollout
81
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
82
+ # Required. The desired state for the rollout.
83
+ # @!attribute [rw] validate_only
84
+ # @return [::Boolean]
85
+ # If "validate_only" is set to true, the service will try to validate
86
+ # that this request would succeed, but will not actually make changes.
87
+ # @!attribute [rw] request_id
88
+ # @return [::String]
89
+ # An optional request ID to identify requests. Specify a unique request ID
90
+ # so that if you must retry your request, the server will know to ignore
91
+ # the request if it has already been completed. The server will guarantee
92
+ # that for at least 60 minutes since the first request.
93
+ #
94
+ # For example, consider a situation where you make an initial request and the
95
+ # request times out. If you make the request again with the same request
96
+ # ID, the server can check if original operation with the same request ID
97
+ # was received, and if so, will ignore the second request. This prevents
98
+ # clients from accidentally creating duplicate commitments.
99
+ #
100
+ # The request ID must be a valid UUID with the exception that zero UUID is
101
+ # not supported (00000000-0000-0000-0000-000000000000).
102
+ class CreateRolloutRequest
103
+ include ::Google::Protobuf::MessageExts
104
+ extend ::Google::Protobuf::MessageExts::ClassMethods
105
+ end
106
+
107
+ # The request structure for the UpdateRollout method.
108
+ # @!attribute [rw] rollout
109
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::Rollout]
110
+ # Required. The desired state for the rollout.
111
+ # @!attribute [rw] validate_only
112
+ # @return [::Boolean]
113
+ # If "validate_only" is set to true, the service will try to validate
114
+ # that this request would succeed, but will not actually make changes.
115
+ # @!attribute [rw] request_id
116
+ # @return [::String]
117
+ # An optional request ID to identify requests. Specify a unique request ID
118
+ # so that if you must retry your request, the server will know to ignore
119
+ # the request if it has already been completed. The server will guarantee
120
+ # that for at least 60 minutes since the first request.
121
+ #
122
+ # For example, consider a situation where you make an initial request and the
123
+ # request times out. If you make the request again with the same request
124
+ # ID, the server can check if original operation with the same request ID
125
+ # was received, and if so, will ignore the second request. This prevents
126
+ # clients from accidentally creating duplicate commitments.
127
+ #
128
+ # The request ID must be a valid UUID with the exception that zero UUID is
129
+ # not supported (00000000-0000-0000-0000-000000000000).
130
+ # @!attribute [rw] update_mask
131
+ # @return [::Google::Protobuf::FieldMask]
132
+ # Field mask is used to specify the fields to be overwritten in the
133
+ # Rollout resource by the update.
134
+ #
135
+ # The fields specified in the update_mask are relative to the resource, not
136
+ # the full request. A field will be overwritten if it is in the mask.
137
+ #
138
+ # If the user does not provide a mask then all fields in the
139
+ # Rollout will be overwritten.
140
+ class UpdateRolloutRequest
141
+ include ::Google::Protobuf::MessageExts
142
+ extend ::Google::Protobuf::MessageExts::ClassMethods
143
+ end
144
+
145
+ # The request structure for the DeleteRollout method.
146
+ # @!attribute [rw] name
147
+ # @return [::String]
148
+ # Required. The resource name of the resource within a service.
149
+ # @!attribute [rw] etag
150
+ # @return [::String]
151
+ # The etag known to the client for the expected state of the rollout. This is
152
+ # used with state-changing methods to prevent accidental overwrites when
153
+ # multiple user agents might be acting in parallel on the same resource.
154
+ #
155
+ # An etag wildcard provide optimistic concurrency based on the expected
156
+ # existence of the rollout. The Any wildcard (`*`) requires that the resource
157
+ # must already exists, and the Not Any wildcard (`!*`) requires that it must
158
+ # not.
159
+ # @!attribute [rw] validate_only
160
+ # @return [::Boolean]
161
+ # If "validate_only" is set to true, the service will try to validate
162
+ # that this request would succeed, but will not actually make changes.
163
+ # @!attribute [rw] request_id
164
+ # @return [::String]
165
+ # An optional request ID to identify requests. Specify a unique request ID
166
+ # so that if you must retry your request, the server will know to ignore
167
+ # the request if it has already been completed. The server will guarantee
168
+ # that for at least 60 minutes since the first request.
169
+ #
170
+ # For example, consider a situation where you make an initial request and the
171
+ # request times out. If you make the request again with the same request
172
+ # ID, the server can check if original operation with the same request ID
173
+ # was received, and if so, will ignore the second request. This prevents
174
+ # clients from accidentally creating duplicate commitments.
175
+ #
176
+ # The request ID must be a valid UUID with the exception that zero UUID is
177
+ # not supported (00000000-0000-0000-0000-000000000000).
178
+ class DeleteRolloutRequest
179
+ include ::Google::Protobuf::MessageExts
180
+ extend ::Google::Protobuf::MessageExts::ClassMethods
181
+ end
182
+
183
+ # The request structure for the ListRolloutKinds method.
184
+ # @!attribute [rw] parent
185
+ # @return [::String]
186
+ # Required. The parent of the rollout kind.
187
+ # @!attribute [rw] page_size
188
+ # @return [::Integer]
189
+ # The maximum number of rollout kinds to send per page.
190
+ # @!attribute [rw] page_token
191
+ # @return [::String]
192
+ # The page token: If the next_page_token from a previous response
193
+ # is provided, this request will send the subsequent page.
194
+ # @!attribute [rw] filter
195
+ # @return [::String]
196
+ # Filter the list as specified in https://google.aip.dev/160.
197
+ # @!attribute [rw] order_by
198
+ # @return [::String]
199
+ # Order results as specified in https://google.aip.dev/132.
200
+ class ListRolloutKindsRequest
201
+ include ::Google::Protobuf::MessageExts
202
+ extend ::Google::Protobuf::MessageExts::ClassMethods
203
+ end
204
+
205
+ # The response structure for the ListRolloutKinds method.
206
+ # @!attribute [rw] rollout_kinds
207
+ # @return [::Array<::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind>]
208
+ # The resulting rollout kinds.
209
+ # @!attribute [rw] next_page_token
210
+ # @return [::String]
211
+ # If present, the next page token can be provided to a subsequent
212
+ # ListRolloutKinds call to list the next page.
213
+ # If empty, there are no more pages.
214
+ # @!attribute [rw] unreachable
215
+ # @return [::Array<::String>]
216
+ # Locations that could not be reached.
217
+ class ListRolloutKindsResponse
218
+ include ::Google::Protobuf::MessageExts
219
+ extend ::Google::Protobuf::MessageExts::ClassMethods
220
+ end
221
+
222
+ # The request structure for the GetRolloutKind method.
223
+ # @!attribute [rw] name
224
+ # @return [::String]
225
+ # Required. The resource name of the resource within a service.
226
+ class GetRolloutKindRequest
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+ end
230
+
231
+ # The request structure for the CreateRolloutKind method.
232
+ # @!attribute [rw] parent
233
+ # @return [::String]
234
+ # Required. The parent of the rollout kind.
235
+ # @!attribute [rw] rollout_kind_id
236
+ # @return [::String]
237
+ # Required. The ID value for the new rollout kind.
238
+ # @!attribute [rw] rollout_kind
239
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
240
+ # Required. The desired state for the rollout kind.
241
+ # @!attribute [rw] validate_only
242
+ # @return [::Boolean]
243
+ # If "validate_only" is set to true, the service will try to validate
244
+ # that this request would succeed, but will not actually make changes.
245
+ # @!attribute [rw] request_id
246
+ # @return [::String]
247
+ # An optional request ID to identify requests. Specify a unique request ID
248
+ # so that if you must retry your request, the server will know to ignore
249
+ # the request if it has already been completed. The server will guarantee
250
+ # that for at least 60 minutes since the first request.
251
+ #
252
+ # For example, consider a situation where you make an initial request and the
253
+ # request times out. If you make the request again with the same request
254
+ # ID, the server can check if original operation with the same request ID
255
+ # was received, and if so, will ignore the second request. This prevents
256
+ # clients from accidentally creating duplicate commitments.
257
+ #
258
+ # The request ID must be a valid UUID with the exception that zero UUID is
259
+ # not supported (00000000-0000-0000-0000-000000000000).
260
+ class CreateRolloutKindRequest
261
+ include ::Google::Protobuf::MessageExts
262
+ extend ::Google::Protobuf::MessageExts::ClassMethods
263
+ end
264
+
265
+ # The request structure for the UpdateRolloutKind method.
266
+ # @!attribute [rw] rollout_kind
267
+ # @return [::Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1::RolloutKind]
268
+ # Required. The desired state for the rollout kind.
269
+ # @!attribute [rw] validate_only
270
+ # @return [::Boolean]
271
+ # If "validate_only" is set to true, the service will try to validate
272
+ # that this request would succeed, but will not actually make changes.
273
+ # @!attribute [rw] request_id
274
+ # @return [::String]
275
+ # An optional request ID to identify requests. Specify a unique request ID
276
+ # so that if you must retry your request, the server will know to ignore
277
+ # the request if it has already been completed. The server will guarantee
278
+ # that for at least 60 minutes since the first request.
279
+ #
280
+ # For example, consider a situation where you make an initial request and the
281
+ # request times out. If you make the request again with the same request
282
+ # ID, the server can check if original operation with the same request ID
283
+ # was received, and if so, will ignore the second request. This prevents
284
+ # clients from accidentally creating duplicate commitments.
285
+ #
286
+ # The request ID must be a valid UUID with the exception that zero UUID is
287
+ # not supported (00000000-0000-0000-0000-000000000000).
288
+ # @!attribute [rw] update_mask
289
+ # @return [::Google::Protobuf::FieldMask]
290
+ # Field mask is used to specify the fields to be overwritten in the
291
+ # RolloutKind resource by the update.
292
+ #
293
+ # The fields specified in the update_mask are relative to the resource, not
294
+ # the full request. A field will be overwritten if it is in the mask.
295
+ #
296
+ # If the user does not provide a mask then all fields in the
297
+ # RolloutKind will be overwritten.
298
+ class UpdateRolloutKindRequest
299
+ include ::Google::Protobuf::MessageExts
300
+ extend ::Google::Protobuf::MessageExts::ClassMethods
301
+ end
302
+
303
+ # The request structure for the DeleteRolloutKind method.
304
+ # @!attribute [rw] name
305
+ # @return [::String]
306
+ # Required. The resource name of the resource within a service.
307
+ # @!attribute [rw] etag
308
+ # @return [::String]
309
+ # The etag known to the client for the expected state of the rollout kind.
310
+ # This is used with state-changing methods to prevent accidental overwrites
311
+ # when multiple user agents might be acting in parallel on the same resource.
312
+ #
313
+ # An etag wildcard provide optimistic concurrency based on the expected
314
+ # existence of the rollout kind. The Any wildcard (`*`) requires that the
315
+ # resource must already exists, and the Not Any wildcard (`!*`) requires that
316
+ # it must not.
317
+ # @!attribute [rw] validate_only
318
+ # @return [::Boolean]
319
+ # If "validate_only" is set to true, the service will try to validate
320
+ # that this request would succeed, but will not actually make changes.
321
+ # @!attribute [rw] request_id
322
+ # @return [::String]
323
+ # An optional request ID to identify requests. Specify a unique request ID
324
+ # so that if you must retry your request, the server will know to ignore
325
+ # the request if it has already been completed. The server will guarantee
326
+ # that for at least 60 minutes since the first request.
327
+ #
328
+ # For example, consider a situation where you make an initial request and the
329
+ # request times out. If you make the request again with the same request
330
+ # ID, the server can check if original operation with the same request ID
331
+ # was received, and if so, will ignore the second request. This prevents
332
+ # clients from accidentally creating duplicate commitments.
333
+ #
334
+ # The request ID must be a valid UUID with the exception that zero UUID is
335
+ # not supported (00000000-0000-0000-0000-000000000000).
336
+ class DeleteRolloutKindRequest
337
+ include ::Google::Protobuf::MessageExts
338
+ extend ::Google::Protobuf::MessageExts::ClassMethods
339
+ end
340
+ end
341
+ end
342
+ end
343
+ end
344
+ end
@@ -0,0 +1,145 @@
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 Protobuf
22
+ # `Any` contains an arbitrary serialized protocol buffer message along with a
23
+ # URL that describes the type of the serialized message.
24
+ #
25
+ # Protobuf library provides support to pack/unpack Any values in the form
26
+ # of utility functions or additional generated methods of the Any type.
27
+ #
28
+ # Example 1: Pack and unpack a message in C++.
29
+ #
30
+ # Foo foo = ...;
31
+ # Any any;
32
+ # any.PackFrom(foo);
33
+ # ...
34
+ # if (any.UnpackTo(&foo)) {
35
+ # ...
36
+ # }
37
+ #
38
+ # Example 2: Pack and unpack a message in Java.
39
+ #
40
+ # Foo foo = ...;
41
+ # Any any = Any.pack(foo);
42
+ # ...
43
+ # if (any.is(Foo.class)) {
44
+ # foo = any.unpack(Foo.class);
45
+ # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
50
+ #
51
+ # Example 3: Pack and unpack a message in Python.
52
+ #
53
+ # foo = Foo(...)
54
+ # any = Any()
55
+ # any.Pack(foo)
56
+ # ...
57
+ # if any.Is(Foo.DESCRIPTOR):
58
+ # any.Unpack(foo)
59
+ # ...
60
+ #
61
+ # Example 4: Pack and unpack a message in Go
62
+ #
63
+ # foo := &pb.Foo{...}
64
+ # any, err := anypb.New(foo)
65
+ # if err != nil {
66
+ # ...
67
+ # }
68
+ # ...
69
+ # foo := &pb.Foo{}
70
+ # if err := any.UnmarshalTo(foo); err != nil {
71
+ # ...
72
+ # }
73
+ #
74
+ # The pack methods provided by protobuf library will by default use
75
+ # 'type.googleapis.com/full.type.name' as the type URL and the unpack
76
+ # methods only use the fully qualified type name after the last '/'
77
+ # in the type URL, for example "foo.bar.com/x/y.z" will yield type
78
+ # name "y.z".
79
+ #
80
+ # JSON
81
+ # ====
82
+ # The JSON representation of an `Any` value uses the regular
83
+ # representation of the deserialized, embedded message, with an
84
+ # additional field `@type` which contains the type URL. Example:
85
+ #
86
+ # package google.profile;
87
+ # message Person {
88
+ # string first_name = 1;
89
+ # string last_name = 2;
90
+ # }
91
+ #
92
+ # {
93
+ # "@type": "type.googleapis.com/google.profile.Person",
94
+ # "firstName": <string>,
95
+ # "lastName": <string>
96
+ # }
97
+ #
98
+ # If the embedded message type is well-known and has a custom JSON
99
+ # representation, that representation will be embedded adding a field
100
+ # `value` which holds the custom JSON in addition to the `@type`
101
+ # field. Example (for message [google.protobuf.Duration][]):
102
+ #
103
+ # {
104
+ # "@type": "type.googleapis.com/google.protobuf.Duration",
105
+ # "value": "1.212s"
106
+ # }
107
+ # @!attribute [rw] type_url
108
+ # @return [::String]
109
+ # A URL/resource name that uniquely identifies the type of the serialized
110
+ # protocol buffer message. This string must contain at least
111
+ # one "/" character. The last segment of the URL's path must represent
112
+ # the fully qualified name of the type (as in
113
+ # `path/google.protobuf.Duration`). The name should be in a canonical form
114
+ # (e.g., leading "." is not accepted).
115
+ #
116
+ # In practice, teams usually precompile into the binary all types that they
117
+ # expect it to use in the context of Any. However, for URLs which use the
118
+ # scheme `http`, `https`, or no scheme, one can optionally set up a type
119
+ # server that maps type URLs to message definitions as follows:
120
+ #
121
+ # * If no scheme is provided, `https` is assumed.
122
+ # * An HTTP GET on the URL must yield a [google.protobuf.Type][]
123
+ # value in binary format, or produce an error.
124
+ # * Applications are allowed to cache lookup results based on the
125
+ # URL, or have them precompiled into a binary to avoid any
126
+ # lookup. Therefore, binary compatibility needs to be preserved
127
+ # on changes to types. (Use versioned type names to manage
128
+ # breaking changes.)
129
+ #
130
+ # Note: this functionality is not currently available in the official
131
+ # protobuf release, and it is not used for type URLs beginning with
132
+ # type.googleapis.com. As of May 2023, there are no widely used type server
133
+ # implementations and no plans to implement one.
134
+ #
135
+ # Schemes other than `http`, `https` (or the empty scheme) might be
136
+ # used with implementation specific semantics.
137
+ # @!attribute [rw] value
138
+ # @return [::String]
139
+ # Must be a valid serialized protocol buffer of the above specified type.
140
+ class Any
141
+ include ::Google::Protobuf::MessageExts
142
+ extend ::Google::Protobuf::MessageExts::ClassMethods
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,98 @@
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 Protobuf
22
+ # A Duration represents a signed, fixed-length span of time represented
23
+ # as a count of seconds and fractions of seconds at nanosecond
24
+ # resolution. It is independent of any calendar and concepts like "day"
25
+ # or "month". It is related to Timestamp in that the difference between
26
+ # two Timestamp values is a Duration and it can be added or subtracted
27
+ # from a Timestamp. Range is approximately +-10,000 years.
28
+ #
29
+ # # Examples
30
+ #
31
+ # Example 1: Compute Duration from two Timestamps in pseudo code.
32
+ #
33
+ # Timestamp start = ...;
34
+ # Timestamp end = ...;
35
+ # Duration duration = ...;
36
+ #
37
+ # duration.seconds = end.seconds - start.seconds;
38
+ # duration.nanos = end.nanos - start.nanos;
39
+ #
40
+ # if (duration.seconds < 0 && duration.nanos > 0) {
41
+ # duration.seconds += 1;
42
+ # duration.nanos -= 1000000000;
43
+ # } else if (duration.seconds > 0 && duration.nanos < 0) {
44
+ # duration.seconds -= 1;
45
+ # duration.nanos += 1000000000;
46
+ # }
47
+ #
48
+ # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
49
+ #
50
+ # Timestamp start = ...;
51
+ # Duration duration = ...;
52
+ # Timestamp end = ...;
53
+ #
54
+ # end.seconds = start.seconds + duration.seconds;
55
+ # end.nanos = start.nanos + duration.nanos;
56
+ #
57
+ # if (end.nanos < 0) {
58
+ # end.seconds -= 1;
59
+ # end.nanos += 1000000000;
60
+ # } else if (end.nanos >= 1000000000) {
61
+ # end.seconds += 1;
62
+ # end.nanos -= 1000000000;
63
+ # }
64
+ #
65
+ # Example 3: Compute Duration from datetime.timedelta in Python.
66
+ #
67
+ # td = datetime.timedelta(days=3, minutes=10)
68
+ # duration = Duration()
69
+ # duration.FromTimedelta(td)
70
+ #
71
+ # # JSON Mapping
72
+ #
73
+ # In JSON format, the Duration type is encoded as a string rather than an
74
+ # object, where the string ends in the suffix "s" (indicating seconds) and
75
+ # is preceded by the number of seconds, with nanoseconds expressed as
76
+ # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
77
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
78
+ # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
+ # microsecond should be expressed in JSON format as "3.000001s".
80
+ # @!attribute [rw] seconds
81
+ # @return [::Integer]
82
+ # Signed seconds of the span of time. Must be from -315,576,000,000
83
+ # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
+ # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
+ # @!attribute [rw] nanos
86
+ # @return [::Integer]
87
+ # Signed fractions of a second at nanosecond resolution of the span
88
+ # of time. Durations less than one second are represented with a 0
89
+ # `seconds` field and a positive or negative `nanos` field. For durations
90
+ # of one second or more, a non-zero value for the `nanos` field must be
91
+ # of the same sign as the `seconds` field. Must be from -999,999,999
92
+ # to +999,999,999 inclusive.
93
+ class Duration
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,34 @@
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 Protobuf
22
+ # A generic empty message that you can re-use to avoid defining duplicated
23
+ # empty messages in your APIs. A typical example is to use it as the request
24
+ # or the response type of an API method. For instance:
25
+ #
26
+ # service Foo {
27
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
+ # }
29
+ class Empty
30
+ include ::Google::Protobuf::MessageExts
31
+ extend ::Google::Protobuf::MessageExts::ClassMethods
32
+ end
33
+ end
34
+ end