google-cloud-storage_transfer-v1 0.8.0 → 1.4.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -99
- data/README.md +31 -21
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/client.rb +126 -48
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/operations.rb +60 -26
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/client.rb +127 -46
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/operations.rb +94 -50
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/service_stub.rb +148 -87
- data/lib/google/cloud/storage_transfer/v1/version.rb +1 -1
- data/lib/google/storagetransfer/v1/transfer_pb.rb +2 -2
- data/lib/google/storagetransfer/v1/transfer_types_pb.rb +4 -2
- data/proto_docs/google/api/client.rb +86 -8
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/longrunning/operations.rb +23 -14
- data/proto_docs/google/protobuf/any.rb +2 -1
- data/proto_docs/google/storagetransfer/v1/transfer.rb +25 -10
- data/proto_docs/google/storagetransfer/v1/transfer_types.rb +150 -63
- metadata +6 -121
|
@@ -21,12 +21,16 @@ module Google
|
|
|
21
21
|
module Api
|
|
22
22
|
# Required information for every language.
|
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
24
25
|
# @return [::String]
|
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
|
27
28
|
# @!attribute [rw] destinations
|
|
28
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
|
29
30
|
# The destination where API teams want this client library to be published.
|
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
|
30
34
|
class CommonLanguageSettings
|
|
31
35
|
include ::Google::Protobuf::MessageExts
|
|
32
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -117,6 +121,10 @@ module Google
|
|
|
117
121
|
# @return [::String]
|
|
118
122
|
# Optional link to proto reference documentation. Example:
|
|
119
123
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
|
124
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
|
125
|
+
# @return [::String]
|
|
126
|
+
# Optional link to REST reference documentation. Example:
|
|
127
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
|
120
128
|
class Publishing
|
|
121
129
|
include ::Google::Protobuf::MessageExts
|
|
122
130
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -191,9 +199,32 @@ module Google
|
|
|
191
199
|
# @!attribute [rw] common
|
|
192
200
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
193
201
|
# Some settings.
|
|
202
|
+
# @!attribute [rw] experimental_features
|
|
203
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
|
204
|
+
# Experimental features to be included during client library generation.
|
|
194
205
|
class PythonSettings
|
|
195
206
|
include ::Google::Protobuf::MessageExts
|
|
196
207
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
208
|
+
|
|
209
|
+
# Experimental features to be included during client library generation.
|
|
210
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
|
211
|
+
# by default.
|
|
212
|
+
# @!attribute [rw] rest_async_io_enabled
|
|
213
|
+
# @return [::Boolean]
|
|
214
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
|
215
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
|
216
|
+
# This feature will be enabled by default 1 month after launching the
|
|
217
|
+
# feature in preview packages.
|
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
|
219
|
+
# @return [::Boolean]
|
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
|
223
|
+
# packages.
|
|
224
|
+
class ExperimentalFeatures
|
|
225
|
+
include ::Google::Protobuf::MessageExts
|
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
227
|
+
end
|
|
197
228
|
end
|
|
198
229
|
|
|
199
230
|
# Settings for Node client libraries.
|
|
@@ -275,9 +306,28 @@ module Google
|
|
|
275
306
|
# @!attribute [rw] common
|
|
276
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
277
308
|
# Some settings.
|
|
309
|
+
# @!attribute [rw] renamed_services
|
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
|
312
|
+
# service names and values are the name to be used for the service client
|
|
313
|
+
# and call options.
|
|
314
|
+
#
|
|
315
|
+
# publishing:
|
|
316
|
+
# go_settings:
|
|
317
|
+
# renamed_services:
|
|
318
|
+
# Publisher: TopicAdmin
|
|
278
319
|
class GoSettings
|
|
279
320
|
include ::Google::Protobuf::MessageExts
|
|
280
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
322
|
+
|
|
323
|
+
# @!attribute [rw] key
|
|
324
|
+
# @return [::String]
|
|
325
|
+
# @!attribute [rw] value
|
|
326
|
+
# @return [::String]
|
|
327
|
+
class RenamedServicesEntry
|
|
328
|
+
include ::Google::Protobuf::MessageExts
|
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
330
|
+
end
|
|
281
331
|
end
|
|
282
332
|
|
|
283
333
|
# Describes the generator configuration for a method.
|
|
@@ -285,6 +335,13 @@ module Google
|
|
|
285
335
|
# @return [::String]
|
|
286
336
|
# The fully qualified name of the method, for which the options below apply.
|
|
287
337
|
# This is used to find the method to apply the options.
|
|
338
|
+
#
|
|
339
|
+
# Example:
|
|
340
|
+
#
|
|
341
|
+
# publishing:
|
|
342
|
+
# method_settings:
|
|
343
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
|
344
|
+
# # method settings for CreateFolder...
|
|
288
345
|
# @!attribute [rw] long_running
|
|
289
346
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
|
290
347
|
# Describes settings to use for long-running operations when generating
|
|
@@ -293,17 +350,27 @@ module Google
|
|
|
293
350
|
#
|
|
294
351
|
# Example of a YAML configuration::
|
|
295
352
|
#
|
|
296
|
-
#
|
|
297
|
-
#
|
|
353
|
+
# publishing:
|
|
354
|
+
# method_settings:
|
|
298
355
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
299
356
|
# long_running:
|
|
300
|
-
# initial_poll_delay:
|
|
301
|
-
# seconds: 60 # 1 minute
|
|
357
|
+
# initial_poll_delay: 60s # 1 minute
|
|
302
358
|
# poll_delay_multiplier: 1.5
|
|
303
|
-
# max_poll_delay:
|
|
304
|
-
#
|
|
305
|
-
#
|
|
306
|
-
#
|
|
359
|
+
# max_poll_delay: 360s # 6 minutes
|
|
360
|
+
# total_poll_timeout: 54000s # 90 minutes
|
|
361
|
+
# @!attribute [rw] auto_populated_fields
|
|
362
|
+
# @return [::Array<::String>]
|
|
363
|
+
# List of top-level fields of the request message, that should be
|
|
364
|
+
# automatically populated by the client libraries based on their
|
|
365
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
|
366
|
+
#
|
|
367
|
+
# Example of a YAML configuration:
|
|
368
|
+
#
|
|
369
|
+
# publishing:
|
|
370
|
+
# method_settings:
|
|
371
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
372
|
+
# auto_populated_fields:
|
|
373
|
+
# - request_id
|
|
307
374
|
class MethodSettings
|
|
308
375
|
include ::Google::Protobuf::MessageExts
|
|
309
376
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -336,6 +403,17 @@ module Google
|
|
|
336
403
|
end
|
|
337
404
|
end
|
|
338
405
|
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
|
407
|
+
# a service for client libraries.
|
|
408
|
+
# @!attribute [rw] methods
|
|
409
|
+
# @return [::Array<::String>]
|
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
|
411
|
+
# on public client surfaces.
|
|
412
|
+
class SelectiveGapicGeneration
|
|
413
|
+
include ::Google::Protobuf::MessageExts
|
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
415
|
+
end
|
|
416
|
+
|
|
339
417
|
# The organization for which the client libraries are being published.
|
|
340
418
|
# Affects the url where generated docs are published, etc.
|
|
341
419
|
module ClientLibraryOrganization
|
|
@@ -124,8 +124,13 @@ module Google
|
|
|
124
124
|
# @return [::String]
|
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
|
128
|
-
#
|
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
|
131
|
+
# match the `plural` value.
|
|
132
|
+
#
|
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
|
130
135
|
#
|
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
|
@@ -40,9 +40,11 @@ module Google
|
|
|
40
40
|
# @!attribute [rw] error
|
|
41
41
|
# @return [::Google::Rpc::Status]
|
|
42
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.
|
|
43
45
|
# @!attribute [rw] response
|
|
44
46
|
# @return [::Google::Protobuf::Any]
|
|
45
|
-
# The normal response of the operation
|
|
47
|
+
# The normal, successful response of the operation. If the original
|
|
46
48
|
# method returns no data on success, such as `Delete`, the response is
|
|
47
49
|
# `google.protobuf.Empty`. If the original method is standard
|
|
48
50
|
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
@@ -50,12 +52,15 @@ module Google
|
|
|
50
52
|
# is the original method name. For example, if the original method name
|
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
|
52
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.
|
|
53
57
|
class Operation
|
|
54
58
|
include ::Google::Protobuf::MessageExts
|
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
56
60
|
end
|
|
57
61
|
|
|
58
|
-
# The request message for
|
|
62
|
+
# The request message for
|
|
63
|
+
# Operations.GetOperation.
|
|
59
64
|
# @!attribute [rw] name
|
|
60
65
|
# @return [::String]
|
|
61
66
|
# The name of the operation resource.
|
|
@@ -64,7 +69,8 @@ module Google
|
|
|
64
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
65
70
|
end
|
|
66
71
|
|
|
67
|
-
# The request message for
|
|
72
|
+
# The request message for
|
|
73
|
+
# Operations.ListOperations.
|
|
68
74
|
# @!attribute [rw] name
|
|
69
75
|
# @return [::String]
|
|
70
76
|
# The name of the operation's parent resource.
|
|
@@ -82,7 +88,8 @@ module Google
|
|
|
82
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
83
89
|
end
|
|
84
90
|
|
|
85
|
-
# The response message for
|
|
91
|
+
# The response message for
|
|
92
|
+
# Operations.ListOperations.
|
|
86
93
|
# @!attribute [rw] operations
|
|
87
94
|
# @return [::Array<::Google::Longrunning::Operation>]
|
|
88
95
|
# A list of operations that matches the specified filter in the request.
|
|
@@ -94,7 +101,8 @@ module Google
|
|
|
94
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
95
102
|
end
|
|
96
103
|
|
|
97
|
-
# The request message for
|
|
104
|
+
# The request message for
|
|
105
|
+
# Operations.CancelOperation.
|
|
98
106
|
# @!attribute [rw] name
|
|
99
107
|
# @return [::String]
|
|
100
108
|
# The name of the operation resource to be cancelled.
|
|
@@ -103,7 +111,8 @@ module Google
|
|
|
103
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
104
112
|
end
|
|
105
113
|
|
|
106
|
-
# The request message for
|
|
114
|
+
# The request message for
|
|
115
|
+
# Operations.DeleteOperation.
|
|
107
116
|
# @!attribute [rw] name
|
|
108
117
|
# @return [::String]
|
|
109
118
|
# The name of the operation resource to be deleted.
|
|
@@ -112,7 +121,8 @@ module Google
|
|
|
112
121
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
113
122
|
end
|
|
114
123
|
|
|
115
|
-
# The request message for
|
|
124
|
+
# The request message for
|
|
125
|
+
# Operations.WaitOperation.
|
|
116
126
|
# @!attribute [rw] name
|
|
117
127
|
# @return [::String]
|
|
118
128
|
# The name of the operation resource to wait on.
|
|
@@ -130,13 +140,12 @@ module Google
|
|
|
130
140
|
#
|
|
131
141
|
# Example:
|
|
132
142
|
#
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
# }
|
|
139
|
-
# }
|
|
143
|
+
# rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
|
144
|
+
# option (google.longrunning.operation_info) = {
|
|
145
|
+
# response_type: "ExportResponse"
|
|
146
|
+
# metadata_type: "ExportMetadata"
|
|
147
|
+
# };
|
|
148
|
+
# }
|
|
140
149
|
# @!attribute [rw] response_type
|
|
141
150
|
# @return [::String]
|
|
142
151
|
# Required. The message name of the primary return type for this
|
|
@@ -129,7 +129,8 @@ module Google
|
|
|
129
129
|
#
|
|
130
130
|
# Note: this functionality is not currently available in the official
|
|
131
131
|
# protobuf release, and it is not used for type URLs beginning with
|
|
132
|
-
# type.googleapis.com.
|
|
132
|
+
# type.googleapis.com. As of May 2023, there are no widely used type server
|
|
133
|
+
# implementations and no plans to implement one.
|
|
133
134
|
#
|
|
134
135
|
# Schemes other than `http`, `https` (or the empty scheme) might be
|
|
135
136
|
# used with implementation specific semantics.
|
|
@@ -111,17 +111,32 @@ module Google
|
|
|
111
111
|
# @!attribute [rw] filter
|
|
112
112
|
# @return [::String]
|
|
113
113
|
# Required. A list of query parameters specified as JSON text in the form of:
|
|
114
|
-
# `{"projectId":"my_project_id",
|
|
115
|
-
# "jobNames":["jobid1","jobid2",...],
|
|
116
|
-
# "jobStatuses":["status1","status2",...]}`
|
|
117
114
|
#
|
|
118
|
-
#
|
|
119
|
-
#
|
|
120
|
-
#
|
|
121
|
-
#
|
|
122
|
-
#
|
|
123
|
-
#
|
|
124
|
-
#
|
|
115
|
+
# ```
|
|
116
|
+
# {
|
|
117
|
+
# "projectId":"my_project_id",
|
|
118
|
+
# "jobNames":["jobid1","jobid2",...],
|
|
119
|
+
# "jobStatuses":["status1","status2",...],
|
|
120
|
+
# "dataBackend":"QUERY_REPLICATION_CONFIGS",
|
|
121
|
+
# "sourceBucket":"source-bucket-name",
|
|
122
|
+
# "sinkBucket":"sink-bucket-name",
|
|
123
|
+
# }
|
|
124
|
+
# ```
|
|
125
|
+
#
|
|
126
|
+
# The JSON formatting in the example is for display only; provide the
|
|
127
|
+
# query parameters without spaces or line breaks.
|
|
128
|
+
#
|
|
129
|
+
# * `projectId` is required.
|
|
130
|
+
# * Since `jobNames` and `jobStatuses` support multiple values, their values
|
|
131
|
+
# must be specified with array notation. `jobNames` and `jobStatuses` are
|
|
132
|
+
# optional. Valid values are case-insensitive:
|
|
133
|
+
# * {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::ENABLED ENABLED}
|
|
134
|
+
# * {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DISABLED DISABLED}
|
|
135
|
+
# * {::Google::Cloud::StorageTransfer::V1::TransferJob::Status::DELETED DELETED}
|
|
136
|
+
# * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of
|
|
137
|
+
# cross-bucket replication jobs.
|
|
138
|
+
# * Limit the results to jobs from a particular bucket with `sourceBucket`
|
|
139
|
+
# and/or to a particular bucket with `sinkBucket`.
|
|
125
140
|
# @!attribute [rw] page_size
|
|
126
141
|
# @return [::Integer]
|
|
127
142
|
# The list page size. The max allowed value is 256.
|