google-cloud-bigquery-data_transfer-v1 0.7.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df1c9361ff7e209e6ce72095d2c7060cc46c2f72225f427b0e6bc9f90e7e9898
4
- data.tar.gz: eb0032ed76a0b045ac2ba1b7506509057ea66d04e7454baebbe9871a1d9fc87c
3
+ metadata.gz: 4c8e9d5566aadf0c522aa8c678e97a11fbdfdb918949ab3d939e5f0c14a7ef26
4
+ data.tar.gz: d16504e65413c9a510eaf45f37d4ff98a493cca203e6032b298ea9a580b697f7
5
5
  SHA512:
6
- metadata.gz: a8624a0d57fb9e27153e98346e3e84d6a4dd3d05503a3d23aa6e4ff4bb54ce466097c0f7c8ed83463548b37e009aa0c1e669b475dd61e7b5977058d78fb9cbed
7
- data.tar.gz: 3f0b3bef56fa987e04e7e3da6c17cbe1ae005dbd385a05d67ec9c590466dcfb89678affa3dc2160508b0c935e92843fce719da8e27cdf2e6015b51877adbdf25
6
+ metadata.gz: de5f3fa61abff35c8d179d9535f386ad651c884b052e962aae7e25a63ac57a231b07a19795c51d405b3f8dfad2c36295d19a32650b50b648976397cf05b8b30a
7
+ data.tar.gz: 473cf533899a5a014604399dae0c63c61e2f2ae15b6e3dacd99ff892f7f6b6199c35ac50361c1706afacc408e3099877bef48a1105b60b2809e99c82106a3362
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
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
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://googleapis.dev/ruby/google-cloud-logging/latest)
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,104 @@
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 "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Bigquery
24
+ module DataTransfer
25
+ ##
26
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
27
+ #
28
+ # require "google/cloud/bigquery/data_transfer/v1/rest"
29
+ # client = ::Google::Cloud::Bigquery::DataTransfer::V1::DataTransferService::Rest::Client.new
30
+ #
31
+ module V1
32
+ ##
33
+ # @private
34
+ # Initialize the mixin bindings configuration
35
+ #
36
+ def self.configure
37
+ @configure ||= begin
38
+ namespace = ["Google", "Cloud", "Bigquery", "DataTransfer"]
39
+ parent_config = while namespace.any?
40
+ parent_name = namespace.join "::"
41
+ parent_const = const_get parent_name
42
+ break parent_const.configure if parent_const.respond_to? :configure
43
+ namespace.pop
44
+ end
45
+
46
+ default_config = Configuration.new parent_config
47
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
48
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
49
+ uri_method: :get,
50
+ uri_template: "/v1/{name}",
51
+ matches: [
52
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
53
+ ],
54
+ body: nil
55
+ )
56
+ ]
57
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
58
+
59
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
60
+ uri_method: :get,
61
+ uri_template: "/v1/{name}/locations",
62
+ matches: [
63
+ ["name", %r{^projects/[^/]+/?$}, false]
64
+ ],
65
+ body: nil
66
+ )
67
+ ]
68
+ default_config
69
+ end
70
+ yield @configure if block_given?
71
+ @configure
72
+ end
73
+
74
+ ##
75
+ # @private
76
+ # Configuration class for the google.cloud.bigquery.datatransfer.v1 package.
77
+ #
78
+ # This class contains common configuration for all services
79
+ # of the google.cloud.bigquery.datatransfer.v1 package.
80
+ #
81
+ # This configuration is for internal use of the client library classes,
82
+ # and it is not intended that the end-users will read or change it.
83
+ #
84
+ class Configuration
85
+ extend ::Gapic::Config
86
+
87
+ # @private
88
+ # Overrides for http bindings for the RPC of the mixins for this package.
89
+ # Services in this package should use these when creating clients for the mixin services.
90
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
91
+ config_attr :bindings_override, {}, ::Hash, nil
92
+
93
+ # @private
94
+ def initialize parent_config = nil
95
+ @parent_config = parent_config unless parent_config.nil?
96
+
97
+ yield self if block_given?
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
@@ -181,7 +181,7 @@ module Google
181
181
  credentials = @config.credentials
182
182
  # Use self-signed JWT if the endpoint is unchanged from default,
183
183
  # but only if the default endpoint does not have a region prefix.
184
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
184
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
185
185
  !@config.endpoint.split(".").first.include?("-")
186
186
  credentials ||= Credentials.default scope: @config.scope,
187
187
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1738,9 +1738,9 @@ module Google
1738
1738
  # * (`String`) The path to a service account key file in JSON format
1739
1739
  # * (`Hash`) A service account key as a Hash
1740
1740
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1741
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1741
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1742
1742
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1743
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1743
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1744
1744
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1745
1745
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1746
1746
  # * (`nil`) indicating no credentials
@@ -1782,7 +1782,9 @@ module Google
1782
1782
  class Configuration
1783
1783
  extend ::Gapic::Config
1784
1784
 
1785
- config_attr :endpoint, "bigquerydatatransfer.googleapis.com", ::String
1785
+ DEFAULT_ENDPOINT = "bigquerydatatransfer.googleapis.com"
1786
+
1787
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1786
1788
  config_attr :credentials, nil do |value|
1787
1789
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1788
1790
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC