google-cloud-bigquery-data_transfer-v1 0.6.1 → 0.7.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/README.md +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service/client.rb +14 -0
- data/lib/google/cloud/bigquery/data_transfer/v1/data_transfer_service.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/data_transfer/v1.rb +2 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +24 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5ac24f10540929f3bde8dcb5a4186182a294d48393c37120f0f5c8454e660da
|
|
4
|
+
data.tar.gz: 75c4e15572b025ec95158d68c414d901ca95426ebac192bf49af5f4cbd2ae86b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da11924741a1b9efdec00cd75173da83c330632fb57cfd07774e6d52cb5164d5b602dab7d46b9e8ef95c67aa29563cae88c0bebf134aa4225324e5a743113304
|
|
7
|
+
data.tar.gz: 8e59e4d6bec516eb97302812c51507ab1a5c1c0654b9b2bf13221fb4804dc09225ea75b56a54922a8ed01df74557d5f88f85c3858b5c4edc0ed5a4c127b82645
|
data/README.md
CHANGED
|
@@ -46,7 +46,7 @@ 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/
|
|
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
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
require "google/cloud/errors"
|
|
20
20
|
require "google/cloud/bigquery/datatransfer/v1/datatransfer_pb"
|
|
21
|
+
require "google/cloud/location"
|
|
21
22
|
|
|
22
23
|
module Google
|
|
23
24
|
module Cloud
|
|
@@ -190,6 +191,12 @@ module Google
|
|
|
190
191
|
@quota_project_id = @config.quota_project
|
|
191
192
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
192
193
|
|
|
194
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
|
195
|
+
config.credentials = credentials
|
|
196
|
+
config.quota_project = @quota_project_id
|
|
197
|
+
config.endpoint = @config.endpoint
|
|
198
|
+
end
|
|
199
|
+
|
|
193
200
|
@data_transfer_service_stub = ::Gapic::ServiceStub.new(
|
|
194
201
|
::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Stub,
|
|
195
202
|
credentials: credentials,
|
|
@@ -199,6 +206,13 @@ module Google
|
|
|
199
206
|
)
|
|
200
207
|
end
|
|
201
208
|
|
|
209
|
+
##
|
|
210
|
+
# Get the associated client for mix-in of the Locations.
|
|
211
|
+
#
|
|
212
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
|
213
|
+
#
|
|
214
|
+
attr_reader :location_client
|
|
215
|
+
|
|
202
216
|
# Service calls
|
|
203
217
|
|
|
204
218
|
##
|
|
@@ -34,7 +34,7 @@ module Google
|
|
|
34
34
|
##
|
|
35
35
|
# This API allows users to manage their data transfers into BigQuery.
|
|
36
36
|
#
|
|
37
|
-
#
|
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
|
38
38
|
#
|
|
39
39
|
# require "google/cloud/bigquery/data_transfer/v1/data_transfer_service"
|
|
40
40
|
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
|
@@ -24,9 +24,9 @@ module Google
|
|
|
24
24
|
module Bigquery
|
|
25
25
|
module DataTransfer
|
|
26
26
|
##
|
|
27
|
-
#
|
|
27
|
+
# API client module.
|
|
28
28
|
#
|
|
29
|
-
# @example
|
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
|
30
30
|
#
|
|
31
31
|
# require "google/cloud/bigquery/data_transfer/v1"
|
|
32
32
|
# client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Client.new
|
|
@@ -28,12 +28,14 @@ module Google
|
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
29
29
|
# @!attribute [rw] code
|
|
30
30
|
# @return [::Integer]
|
|
31
|
-
# The status code, which should be an enum value of
|
|
31
|
+
# The status code, which should be an enum value of
|
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
|
32
33
|
# @!attribute [rw] message
|
|
33
34
|
# @return [::String]
|
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
|
35
36
|
# user-facing error message should be localized and sent in the
|
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
|
38
|
+
# by the client.
|
|
37
39
|
# @!attribute [rw] details
|
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-bigquery-data_transfer-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 0.16.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version:
|
|
29
|
+
version: 0.16.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|
|
@@ -44,6 +44,26 @@ dependencies:
|
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '1.0'
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: google-cloud-location
|
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0.0'
|
|
54
|
+
- - "<"
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: 2.a
|
|
57
|
+
type: :runtime
|
|
58
|
+
prerelease: false
|
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0.0'
|
|
64
|
+
- - "<"
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: 2.a
|
|
47
67
|
- !ruby/object:Gem::Dependency
|
|
48
68
|
name: google-style
|
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|