google-cloud-storage_batch_operations-v1 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 (36) 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/storage_batch_operations/v1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/storage_batch_operations/v1/rest.rb +38 -0
  7. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/client.rb +928 -0
  8. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/credentials.rb +47 -0
  9. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/operations.rb +813 -0
  10. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/paths.rb +90 -0
  11. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/rest/client.rb +875 -0
  12. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/rest/operations.rb +914 -0
  13. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/rest/service_stub.rb +388 -0
  14. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations/rest.rb +57 -0
  15. data/lib/google/cloud/storage_batch_operations/v1/storage_batch_operations.rb +59 -0
  16. data/lib/google/cloud/storage_batch_operations/v1/version.rb +7 -2
  17. data/lib/google/cloud/storage_batch_operations/v1.rb +45 -0
  18. data/lib/google/cloud/storagebatchoperations/v1/storage_batch_operations_pb.rb +60 -0
  19. data/lib/google/cloud/storagebatchoperations/v1/storage_batch_operations_services_pb.rb +56 -0
  20. data/lib/google/cloud/storagebatchoperations/v1/storage_batch_operations_types_pb.rb +64 -0
  21. data/lib/google-cloud-storage_batch_operations-v1.rb +21 -0
  22. data/proto_docs/README.md +4 -0
  23. data/proto_docs/google/api/client.rb +473 -0
  24. data/proto_docs/google/api/field_behavior.rb +85 -0
  25. data/proto_docs/google/api/launch_stage.rb +71 -0
  26. data/proto_docs/google/api/resource.rb +227 -0
  27. data/proto_docs/google/cloud/storagebatchoperations/v1/storage_batch_operations.rb +167 -0
  28. data/proto_docs/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.rb +372 -0
  29. data/proto_docs/google/longrunning/operations.rb +173 -0
  30. data/proto_docs/google/protobuf/any.rb +145 -0
  31. data/proto_docs/google/protobuf/duration.rb +98 -0
  32. data/proto_docs/google/protobuf/empty.rb +34 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  34. data/proto_docs/google/rpc/code.rb +185 -0
  35. data/proto_docs/google/rpc/status.rb +48 -0
  36. metadata +95 -9
@@ -0,0 +1,372 @@
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 StorageBatchOperations
23
+ module V1
24
+ # The Storage Batch Operations Job description.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Identifier. The resource name of the Job. job_id is unique
28
+ # within the project and location, that is either set by the customer or
29
+ # defined by the service. Format:
30
+ # projects/\\{project}/locations/\\{location}/jobs/\\{job_id} .
31
+ # For example: "projects/123456/locations/us-central1/jobs/job01".
32
+ # @!attribute [rw] description
33
+ # @return [::String]
34
+ # Optional. A description provided by the user for the job. Its max length is
35
+ # 1024 bytes when Unicode-encoded.
36
+ # @!attribute [rw] bucket_list
37
+ # @return [::Google::Cloud::StorageBatchOperations::V1::BucketList]
38
+ # Specifies a list of buckets and their objects to be transformed.
39
+ # @!attribute [rw] put_object_hold
40
+ # @return [::Google::Cloud::StorageBatchOperations::V1::PutObjectHold]
41
+ # Changes object hold status.
42
+ #
43
+ # Note: The following fields are mutually exclusive: `put_object_hold`, `delete_object`, `put_metadata`, `rewrite_object`. If a field in that set is populated, all other fields in the set will automatically be cleared.
44
+ # @!attribute [rw] delete_object
45
+ # @return [::Google::Cloud::StorageBatchOperations::V1::DeleteObject]
46
+ # Delete objects.
47
+ #
48
+ # Note: The following fields are mutually exclusive: `delete_object`, `put_object_hold`, `put_metadata`, `rewrite_object`. If a field in that set is populated, all other fields in the set will automatically be cleared.
49
+ # @!attribute [rw] put_metadata
50
+ # @return [::Google::Cloud::StorageBatchOperations::V1::PutMetadata]
51
+ # Updates object metadata. Allows updating fixed-key and custom metadata
52
+ # and fixed-key metadata i.e. Cache-Control, Content-Disposition,
53
+ # Content-Encoding, Content-Language, Content-Type, Custom-Time.
54
+ #
55
+ # Note: The following fields are mutually exclusive: `put_metadata`, `put_object_hold`, `delete_object`, `rewrite_object`. If a field in that set is populated, all other fields in the set will automatically be cleared.
56
+ # @!attribute [rw] rewrite_object
57
+ # @return [::Google::Cloud::StorageBatchOperations::V1::RewriteObject]
58
+ # Rewrite the object and updates metadata like KMS key.
59
+ #
60
+ # Note: The following fields are mutually exclusive: `rewrite_object`, `put_object_hold`, `delete_object`, `put_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared.
61
+ # @!attribute [rw] logging_config
62
+ # @return [::Google::Cloud::StorageBatchOperations::V1::LoggingConfig]
63
+ # Optional. Logging configuration.
64
+ # @!attribute [r] create_time
65
+ # @return [::Google::Protobuf::Timestamp]
66
+ # Output only. The time that the job was created.
67
+ # @!attribute [r] schedule_time
68
+ # @return [::Google::Protobuf::Timestamp]
69
+ # Output only. The time that the job was scheduled.
70
+ # @!attribute [r] complete_time
71
+ # @return [::Google::Protobuf::Timestamp]
72
+ # Output only. The time that the job was completed.
73
+ # @!attribute [r] counters
74
+ # @return [::Google::Cloud::StorageBatchOperations::V1::Counters]
75
+ # Output only. Information about the progress of the job.
76
+ # @!attribute [r] error_summaries
77
+ # @return [::Array<::Google::Cloud::StorageBatchOperations::V1::ErrorSummary>]
78
+ # Output only. Summarizes errors encountered with sample error log entries.
79
+ # @!attribute [r] state
80
+ # @return [::Google::Cloud::StorageBatchOperations::V1::Job::State]
81
+ # Output only. State of the job.
82
+ class Job
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+
86
+ # Describes state of a job.
87
+ module State
88
+ # Default value. This value is unused.
89
+ STATE_UNSPECIFIED = 0
90
+
91
+ # In progress.
92
+ RUNNING = 1
93
+
94
+ # Completed successfully.
95
+ SUCCEEDED = 2
96
+
97
+ # Cancelled by the user.
98
+ CANCELED = 3
99
+
100
+ # Terminated due to an unrecoverable failure.
101
+ FAILED = 4
102
+ end
103
+ end
104
+
105
+ # Describes list of buckets and their objects to be transformed.
106
+ # @!attribute [rw] buckets
107
+ # @return [::Array<::Google::Cloud::StorageBatchOperations::V1::BucketList::Bucket>]
108
+ # Required. List of buckets and their objects to be transformed. Currently,
109
+ # only one bucket configuration is supported. If multiple buckets are
110
+ # specified, an error will be returned.
111
+ class BucketList
112
+ include ::Google::Protobuf::MessageExts
113
+ extend ::Google::Protobuf::MessageExts::ClassMethods
114
+
115
+ # Describes configuration of a single bucket and its objects to be
116
+ # transformed.
117
+ # @!attribute [rw] bucket
118
+ # @return [::String]
119
+ # Required. Bucket name for the objects to be transformed.
120
+ # @!attribute [rw] prefix_list
121
+ # @return [::Google::Cloud::StorageBatchOperations::V1::PrefixList]
122
+ # Specifies objects matching a prefix set.
123
+ #
124
+ # Note: The following fields are mutually exclusive: `prefix_list`, `manifest`. If a field in that set is populated, all other fields in the set will automatically be cleared.
125
+ # @!attribute [rw] manifest
126
+ # @return [::Google::Cloud::StorageBatchOperations::V1::Manifest]
127
+ # Specifies objects in a manifest file.
128
+ #
129
+ # Note: The following fields are mutually exclusive: `manifest`, `prefix_list`. If a field in that set is populated, all other fields in the set will automatically be cleared.
130
+ class Bucket
131
+ include ::Google::Protobuf::MessageExts
132
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
+ end
134
+ end
135
+
136
+ # Describes list of objects to be transformed.
137
+ # @!attribute [rw] manifest_location
138
+ # @return [::String]
139
+ # Required. `manifest_location` must contain the manifest source file that is
140
+ # a CSV file in a Google Cloud Storage bucket. Each row in the file must
141
+ # include the object details i.e. BucketId and Name. Generation may
142
+ # optionally be specified. When it is not specified the live object is acted
143
+ # upon.
144
+ # `manifest_location` should either be
145
+ # 1) An absolute path to the object in the format of
146
+ # gs://bucket_name/path/file_name.csv.
147
+ # 2) An absolute path with a single wildcard character in the file name, for
148
+ # example gs://bucket_name/path/file_name*.csv.
149
+ # If manifest location is specified with a wildcard, objects in all manifest
150
+ # files matching the pattern will be acted upon.
151
+ class Manifest
152
+ include ::Google::Protobuf::MessageExts
153
+ extend ::Google::Protobuf::MessageExts::ClassMethods
154
+ end
155
+
156
+ # Describes prefixes of objects to be transformed.
157
+ # @!attribute [rw] included_object_prefixes
158
+ # @return [::Array<::String>]
159
+ # Optional. Include prefixes of the objects to be transformed.
160
+ # * Supports full object name
161
+ # * Supports prefix of the object name
162
+ # * Wildcards are not supported
163
+ # * Supports empty string for all objects in a bucket.
164
+ class PrefixList
165
+ include ::Google::Protobuf::MessageExts
166
+ extend ::Google::Protobuf::MessageExts::ClassMethods
167
+ end
168
+
169
+ # Describes options to update object hold.
170
+ # @!attribute [rw] temporary_hold
171
+ # @return [::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus]
172
+ # Required. Updates object temporary holds state. When object temporary hold
173
+ # is set, object cannot be deleted or replaced.
174
+ # @!attribute [rw] event_based_hold
175
+ # @return [::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus]
176
+ # Required. Updates object event based holds state. When object event based
177
+ # hold is set, object cannot be deleted or replaced. Resets object's time in
178
+ # the bucket for the purposes of the retention period.
179
+ class PutObjectHold
180
+ include ::Google::Protobuf::MessageExts
181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
182
+
183
+ # Describes the status of the hold.
184
+ module HoldStatus
185
+ # Default value, Object hold status will not be changed.
186
+ HOLD_STATUS_UNSPECIFIED = 0
187
+
188
+ # Places the hold.
189
+ SET = 1
190
+
191
+ # Releases the hold.
192
+ UNSET = 2
193
+ end
194
+ end
195
+
196
+ # Describes options to delete an object.
197
+ # @!attribute [rw] permanent_object_deletion_enabled
198
+ # @return [::Boolean]
199
+ # Required. Controls deletion behavior when versioning is enabled for the
200
+ # object's bucket. If true both live and noncurrent objects will be
201
+ # permanently deleted. Otherwise live objects in versioned buckets will
202
+ # become noncurrent and objects that were already noncurrent will be skipped.
203
+ # This setting doesn't have any impact on the Soft Delete feature. All
204
+ # objects deleted by this service can be be restored for the duration of the
205
+ # Soft Delete retention duration if enabled. If enabled and the manifest
206
+ # doesn't specify an object's generation, a GetObjectMetadata call (a Class B
207
+ # operation) will be made to determine the live object generation.
208
+ class DeleteObject
209
+ include ::Google::Protobuf::MessageExts
210
+ extend ::Google::Protobuf::MessageExts::ClassMethods
211
+ end
212
+
213
+ # Describes options for object rewrite.
214
+ # @!attribute [rw] kms_key
215
+ # @return [::String]
216
+ # Required. Resource name of the Cloud KMS key that will be used to encrypt
217
+ # the object. The Cloud KMS key must be located in same location as the
218
+ # object. Refer to
219
+ # https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key
220
+ # for additional documentation. Format:
221
+ # projects/\\{project}/locations/\\{location}/keyRings/\\{keyring}/cryptoKeys/\\{key}
222
+ # For example:
223
+ # "projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key".
224
+ # The object will be rewritten and set with the specified KMS key.
225
+ class RewriteObject
226
+ include ::Google::Protobuf::MessageExts
227
+ extend ::Google::Protobuf::MessageExts::ClassMethods
228
+ end
229
+
230
+ # Describes options for object metadata update.
231
+ # @!attribute [rw] content_disposition
232
+ # @return [::String]
233
+ # Optional. Updates objects Content-Disposition fixed metadata. Unset values
234
+ # will be ignored. Set empty values to clear the metadata. Refer
235
+ # https://cloud.google.com/storage/docs/metadata#content-disposition for
236
+ # additional documentation.
237
+ # @!attribute [rw] content_encoding
238
+ # @return [::String]
239
+ # Optional. Updates objects Content-Encoding fixed metadata. Unset values
240
+ # will be ignored. Set empty values to clear the metadata. Refer to
241
+ # documentation in
242
+ # https://cloud.google.com/storage/docs/metadata#content-encoding.
243
+ # @!attribute [rw] content_language
244
+ # @return [::String]
245
+ # Optional. Updates objects Content-Language fixed metadata. Refer to ISO
246
+ # 639-1 language codes for typical values of this metadata. Max length 100
247
+ # characters. Unset values will be ignored. Set empty values to clear the
248
+ # metadata. Refer to documentation in
249
+ # https://cloud.google.com/storage/docs/metadata#content-language.
250
+ # @!attribute [rw] content_type
251
+ # @return [::String]
252
+ # Optional. Updates objects Content-Type fixed metadata. Unset values will be
253
+ # ignored.
254
+ # Set empty values to clear the metadata. Refer to documentation in
255
+ # https://cloud.google.com/storage/docs/metadata#content-type
256
+ # @!attribute [rw] cache_control
257
+ # @return [::String]
258
+ # Optional. Updates objects Cache-Control fixed metadata. Unset values will
259
+ # be
260
+ # ignored. Set empty values to clear the metadata.
261
+ # Additionally, the value for Custom-Time cannot decrease. Refer to
262
+ # documentation in
263
+ # https://cloud.google.com/storage/docs/metadata#caching_data.
264
+ # @!attribute [rw] custom_time
265
+ # @return [::String]
266
+ # Optional. Updates objects Custom-Time fixed metadata. Unset values will be
267
+ # ignored. Set empty values to clear the metadata. Refer to documentation in
268
+ # https://cloud.google.com/storage/docs/metadata#custom-time.
269
+ # @!attribute [rw] custom_metadata
270
+ # @return [::Google::Protobuf::Map{::String => ::String}]
271
+ # Optional. Updates objects custom metadata. Adds or sets individual custom
272
+ # metadata key value pairs on objects. Keys that are set with empty custom
273
+ # metadata values will have its value cleared. Existing custom metadata not
274
+ # specified with this flag is not changed. Refer to documentation in
275
+ # https://cloud.google.com/storage/docs/metadata#custom-metadata
276
+ class PutMetadata
277
+ include ::Google::Protobuf::MessageExts
278
+ extend ::Google::Protobuf::MessageExts::ClassMethods
279
+
280
+ # @!attribute [rw] key
281
+ # @return [::String]
282
+ # @!attribute [rw] value
283
+ # @return [::String]
284
+ class CustomMetadataEntry
285
+ include ::Google::Protobuf::MessageExts
286
+ extend ::Google::Protobuf::MessageExts::ClassMethods
287
+ end
288
+ end
289
+
290
+ # A summary of errors by error code, plus a count and sample error log
291
+ # entries.
292
+ # @!attribute [rw] error_code
293
+ # @return [::Google::Rpc::Code]
294
+ # Required. The canonical error code.
295
+ # @!attribute [rw] error_count
296
+ # @return [::Integer]
297
+ # Required. Number of errors encountered per `error_code`.
298
+ # @!attribute [rw] error_log_entries
299
+ # @return [::Array<::Google::Cloud::StorageBatchOperations::V1::ErrorLogEntry>]
300
+ # Required. Sample error logs.
301
+ class ErrorSummary
302
+ include ::Google::Protobuf::MessageExts
303
+ extend ::Google::Protobuf::MessageExts::ClassMethods
304
+ end
305
+
306
+ # An entry describing an error that has occurred.
307
+ # @!attribute [r] object_uri
308
+ # @return [::String]
309
+ # Required. Output only. Object URL. e.g. gs://my_bucket/object.txt
310
+ # @!attribute [r] error_details
311
+ # @return [::Array<::String>]
312
+ # Optional. Output only. At most 5 error log entries are recorded for a given
313
+ # error code for a job.
314
+ class ErrorLogEntry
315
+ include ::Google::Protobuf::MessageExts
316
+ extend ::Google::Protobuf::MessageExts::ClassMethods
317
+ end
318
+
319
+ # Describes details about the progress of the job.
320
+ # @!attribute [r] total_object_count
321
+ # @return [::Integer]
322
+ # Output only. Number of objects listed.
323
+ # @!attribute [r] succeeded_object_count
324
+ # @return [::Integer]
325
+ # Output only. Number of objects completed.
326
+ # @!attribute [r] failed_object_count
327
+ # @return [::Integer]
328
+ # Output only. Number of objects failed.
329
+ class Counters
330
+ include ::Google::Protobuf::MessageExts
331
+ extend ::Google::Protobuf::MessageExts::ClassMethods
332
+ end
333
+
334
+ # Specifies the Cloud Logging behavior.
335
+ # @!attribute [rw] log_actions
336
+ # @return [::Array<::Google::Cloud::StorageBatchOperations::V1::LoggingConfig::LoggableAction>]
337
+ # Required. Specifies the actions to be logged.
338
+ # @!attribute [rw] log_action_states
339
+ # @return [::Array<::Google::Cloud::StorageBatchOperations::V1::LoggingConfig::LoggableActionState>]
340
+ # Required. States in which Action are logged.If empty, no logs are
341
+ # generated.
342
+ class LoggingConfig
343
+ include ::Google::Protobuf::MessageExts
344
+ extend ::Google::Protobuf::MessageExts::ClassMethods
345
+
346
+ # Loggable actions types.
347
+ module LoggableAction
348
+ # Illegal value, to avoid allowing a default.
349
+ LOGGABLE_ACTION_UNSPECIFIED = 0
350
+
351
+ # The corresponding transform action in this job.
352
+ TRANSFORM = 6
353
+ end
354
+
355
+ # Loggable action states filter.
356
+ module LoggableActionState
357
+ # Illegal value, to avoid allowing a default.
358
+ LOGGABLE_ACTION_STATE_UNSPECIFIED = 0
359
+
360
+ # `LoggableAction` completed successfully. `SUCCEEDED` actions are
361
+ # logged as [INFO][google.logging.type.LogSeverity.INFO].
362
+ SUCCEEDED = 1
363
+
364
+ # `LoggableAction` terminated in an error state. `FAILED` actions
365
+ # are logged as [ERROR][google.logging.type.LogSeverity.ERROR].
366
+ FAILED = 2
367
+ end
368
+ end
369
+ end
370
+ end
371
+ end
372
+ end
@@ -0,0 +1,173 @@
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 Longrunning
22
+ # This resource represents a long-running operation that is the result of a
23
+ # network API call.
24
+ # @!attribute [rw] name
25
+ # @return [::String]
26
+ # The server-assigned name, which is only unique within the same service that
27
+ # originally returns it. If you use the default HTTP mapping, the
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
+ # @!attribute [rw] metadata
30
+ # @return [::Google::Protobuf::Any]
31
+ # Service-specific metadata associated with the operation. It typically
32
+ # contains progress information and common metadata such as create time.
33
+ # Some services might not provide such metadata. Any method that returns a
34
+ # long-running operation should document the metadata type, if any.
35
+ # @!attribute [rw] done
36
+ # @return [::Boolean]
37
+ # If the value is `false`, it means the operation is still in progress.
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
+ # available.
40
+ # @!attribute [rw] error
41
+ # @return [::Google::Rpc::Status]
42
+ # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
45
+ # @!attribute [rw] response
46
+ # @return [::Google::Protobuf::Any]
47
+ # The normal, successful response of the operation. If the original
48
+ # method returns no data on success, such as `Delete`, the response is
49
+ # `google.protobuf.Empty`. If the original method is standard
50
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
51
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
52
+ # is the original method name. For example, if the original method name
53
+ # is `TakeSnapshot()`, the inferred response type is
54
+ # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
57
+ class Operation
58
+ include ::Google::Protobuf::MessageExts
59
+ extend ::Google::Protobuf::MessageExts::ClassMethods
60
+ end
61
+
62
+ # The request message for
63
+ # Operations.GetOperation.
64
+ # @!attribute [rw] name
65
+ # @return [::String]
66
+ # The name of the operation resource.
67
+ class GetOperationRequest
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
+ end
71
+
72
+ # The request message for
73
+ # Operations.ListOperations.
74
+ # @!attribute [rw] name
75
+ # @return [::String]
76
+ # The name of the operation's parent resource.
77
+ # @!attribute [rw] filter
78
+ # @return [::String]
79
+ # The standard list filter.
80
+ # @!attribute [rw] page_size
81
+ # @return [::Integer]
82
+ # The standard list page size.
83
+ # @!attribute [rw] page_token
84
+ # @return [::String]
85
+ # The standard list page token.
86
+ class ListOperationsRequest
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+ end
90
+
91
+ # The response message for
92
+ # Operations.ListOperations.
93
+ # @!attribute [rw] operations
94
+ # @return [::Array<::Google::Longrunning::Operation>]
95
+ # A list of operations that matches the specified filter in the request.
96
+ # @!attribute [rw] next_page_token
97
+ # @return [::String]
98
+ # The standard List next-page token.
99
+ class ListOperationsResponse
100
+ include ::Google::Protobuf::MessageExts
101
+ extend ::Google::Protobuf::MessageExts::ClassMethods
102
+ end
103
+
104
+ # The request message for
105
+ # Operations.CancelOperation.
106
+ # @!attribute [rw] name
107
+ # @return [::String]
108
+ # The name of the operation resource to be cancelled.
109
+ class CancelOperationRequest
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+ end
113
+
114
+ # The request message for
115
+ # Operations.DeleteOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to be deleted.
119
+ class DeleteOperationRequest
120
+ include ::Google::Protobuf::MessageExts
121
+ extend ::Google::Protobuf::MessageExts::ClassMethods
122
+ end
123
+
124
+ # The request message for
125
+ # Operations.WaitOperation.
126
+ # @!attribute [rw] name
127
+ # @return [::String]
128
+ # The name of the operation resource to wait on.
129
+ # @!attribute [rw] timeout
130
+ # @return [::Google::Protobuf::Duration]
131
+ # The maximum duration to wait before timing out. If left blank, the wait
132
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
133
+ # If RPC context deadline is also specified, the shorter one will be used.
134
+ class WaitOperationRequest
135
+ include ::Google::Protobuf::MessageExts
136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
137
+ end
138
+
139
+ # A message representing the message types used by a long-running operation.
140
+ #
141
+ # Example:
142
+ #
143
+ # rpc Export(ExportRequest) returns (google.longrunning.Operation) {
144
+ # option (google.longrunning.operation_info) = {
145
+ # response_type: "ExportResponse"
146
+ # metadata_type: "ExportMetadata"
147
+ # };
148
+ # }
149
+ # @!attribute [rw] response_type
150
+ # @return [::String]
151
+ # Required. The message name of the primary return type for this
152
+ # long-running operation.
153
+ # This type will be used to deserialize the LRO's response.
154
+ #
155
+ # If the response is in a different package from the rpc, a fully-qualified
156
+ # message name must be used (e.g. `google.protobuf.Struct`).
157
+ #
158
+ # Note: Altering this value constitutes a breaking change.
159
+ # @!attribute [rw] metadata_type
160
+ # @return [::String]
161
+ # Required. The message name of the metadata type for this long-running
162
+ # operation.
163
+ #
164
+ # If the response is in a different package from the rpc, a fully-qualified
165
+ # message name must be used (e.g. `google.protobuf.Struct`).
166
+ #
167
+ # Note: Altering this value constitutes a breaking change.
168
+ class OperationInfo
169
+ include ::Google::Protobuf::MessageExts
170
+ extend ::Google::Protobuf::MessageExts::ClassMethods
171
+ end
172
+ end
173
+ 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