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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cedc5fbb9cbf2090b2c5bc7b219f925dfe86bf2d8f99ae70d7bc216fa2bb2e9
4
- data.tar.gz: bb56f3091662f249247c42d0142271a8360781fe77c8aa582f41e24a318ad992
3
+ metadata.gz: c5ac24f10540929f3bde8dcb5a4186182a294d48393c37120f0f5c8454e660da
4
+ data.tar.gz: 75c4e15572b025ec95158d68c414d901ca95426ebac192bf49af5f4cbd2ae86b
5
5
  SHA512:
6
- metadata.gz: deb680d8ef213d6ac7265a649560aa1ba1c2165da809d0edd7bff7526393c6be8accba24a4a4ba7c1498289f2589fd352fa786b926d0056302ec4b556a1421ce
7
- data.tar.gz: 21bff486fc31a8bb701224cf0245d73299e3b6e6023bcf1f900312ee393a011615ce64fb342f5aaeae9d2120de102068f44887e1c34430b524d90bc099509085
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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
- # To load this service and instantiate a client:
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
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module DataTransfer
24
24
  module V1
25
- VERSION = "0.6.1"
25
+ VERSION = "0.7.0"
26
26
  end
27
27
  end
28
28
  end
@@ -24,9 +24,9 @@ module Google
24
24
  module Bigquery
25
25
  module DataTransfer
26
26
  ##
27
- # To load this package, including all its services, and instantiate a client:
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 [google.rpc.Code][google.rpc.Code].
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 by the client.
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.6.1
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: 2022-11-17 00:00:00.000000000 Z
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: '0.12'
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: '0.12'
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