google-cloud-storage_transfer-v1 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/storage_transfer/v1/rest.rb +37 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/client.rb +14 -18
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/operations.rb +14 -16
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/client.rb +1381 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/operations.rb +793 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest/service_stub.rb +877 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service/rest.rb +55 -0
- data/lib/google/cloud/storage_transfer/v1/storage_transfer_service.rb +7 -1
- data/lib/google/cloud/storage_transfer/v1/version.rb +1 -1
- data/lib/google/cloud/storage_transfer/v1.rb +7 -2
- data/lib/google/storagetransfer/v1/transfer_pb.rb +26 -65
- data/lib/google/storagetransfer/v1/transfer_types_pb.rb +28 -302
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/code.rb +6 -6
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1103aff7f7d800e11a9dc3f3e1479b7776ee5e8e176c98993861ecdd5dd860fc
|
4
|
+
data.tar.gz: a26d78e38e36191f49624483b175c1d99b54016a8a99b99146cedd5aa60c0c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d34aa6b20db391bac7200e2dff6ef252b986dc6df72b6aef519f923a2ade7f21fb85c9106e09bd91f2c44473894f5c5c5aa284bcd9b552b92b56cc626f55233
|
7
|
+
data.tar.gz: d01918ba728bc520286a5a4e49ba01271926f852a3f383d821e0b4aec09bd23f21406ae95fb3573685b8c3749cc68cc9cd7055ce7602ebc7b48c5d3d5b7bcd6c
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Storage Transfer Service V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets.
|
4
4
|
|
5
5
|
Storage Transfer Service allows you to quickly import online data into Cloud Storage. You can also set up a repeating schedule for transferring data, as well as transfer data within Cloud Storage, from one bucket to another.
|
6
6
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/storage_transfer/v1/storage_transfer_service/rest"
|
20
|
+
require "google/cloud/storage_transfer/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module StorageTransfer
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/storage_transfer/v1/rest"
|
31
|
+
# client = ::Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -597,13 +597,11 @@ module Google
|
|
597
597
|
# # Call the list_transfer_jobs method.
|
598
598
|
# result = client.list_transfer_jobs request
|
599
599
|
#
|
600
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
601
|
-
# #
|
602
|
-
#
|
603
|
-
# # methods are also available for managing paging directly.
|
604
|
-
# result.each do |response|
|
600
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
601
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
602
|
+
# result.each do |item|
|
605
603
|
# # Each element is of type ::Google::Cloud::StorageTransfer::V1::TransferJob.
|
606
|
-
# p
|
604
|
+
# p item
|
607
605
|
# end
|
608
606
|
#
|
609
607
|
def list_transfer_jobs request, options = nil
|
@@ -856,14 +854,14 @@ module Google
|
|
856
854
|
# # Call the run_transfer_job method.
|
857
855
|
# result = client.run_transfer_job request
|
858
856
|
#
|
859
|
-
# # The returned object is of type Gapic::Operation. You can use
|
860
|
-
# #
|
861
|
-
# #
|
857
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
858
|
+
# # check the status of an operation, cancel it, or wait for results.
|
859
|
+
# # Here is how to wait for a response.
|
862
860
|
# result.wait_until_done! timeout: 60
|
863
861
|
# if result.response?
|
864
862
|
# p result.response
|
865
863
|
# else
|
866
|
-
# puts "
|
864
|
+
# puts "No response received."
|
867
865
|
# end
|
868
866
|
#
|
869
867
|
def run_transfer_job request, options = nil
|
@@ -1341,13 +1339,11 @@ module Google
|
|
1341
1339
|
# # Call the list_agent_pools method.
|
1342
1340
|
# result = client.list_agent_pools request
|
1343
1341
|
#
|
1344
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1345
|
-
# #
|
1346
|
-
#
|
1347
|
-
# # methods are also available for managing paging directly.
|
1348
|
-
# result.each do |response|
|
1342
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1343
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1344
|
+
# result.each do |item|
|
1349
1345
|
# # Each element is of type ::Google::Cloud::StorageTransfer::V1::AgentPool.
|
1350
|
-
# p
|
1346
|
+
# p item
|
1351
1347
|
# end
|
1352
1348
|
#
|
1353
1349
|
def list_agent_pools request, options = nil
|
@@ -1515,9 +1511,9 @@ module Google
|
|
1515
1511
|
# * (`String`) The path to a service account key file in JSON format
|
1516
1512
|
# * (`Hash`) A service account key as a Hash
|
1517
1513
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1518
|
-
# (see the [googleauth docs](https://
|
1514
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1519
1515
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1520
|
-
# (see the [signet docs](https://
|
1516
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1521
1517
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1522
1518
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1523
1519
|
# * (`nil`) indicating no credentials
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|