google-cloud-bigquery-connection-v1 0.11.0 → 0.13.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 +1 -1
- data/lib/google/cloud/bigquery/connection/v1/connection_pb.rb +15 -0
- data/lib/google/cloud/bigquery/connection/v1/connection_service/client.rb +2 -2
- data/lib/google/cloud/bigquery/connection/v1/connection_service/paths.rb +38 -0
- data/lib/google/cloud/bigquery/connection/v1/connection_service/rest/client.rb +906 -0
- data/lib/google/cloud/bigquery/connection/v1/connection_service/rest/service_stub.rb +527 -0
- data/lib/google/cloud/bigquery/connection/v1/connection_service/rest.rb +54 -0
- data/lib/google/cloud/bigquery/connection/v1/connection_service.rb +6 -0
- data/lib/google/cloud/bigquery/connection/v1/rest.rb +39 -0
- data/lib/google/cloud/bigquery/connection/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/connection/v1.rb +5 -0
- data/proto_docs/google/api/client.rb +9 -3
- data/proto_docs/google/cloud/bigquery/connection/v1/connection.rb +56 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61c486fa3e6c478ad30dd87826d5cb4e8fcab50ae2f9de835c97a51a5a376804
|
4
|
+
data.tar.gz: 746016f349f142e33a58c799b54dd806306e5b4534ff16fe8391f90f61d036fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc8af763dfdafa8e9a341df65368163d551bfa45420b7973c3592b089ff9b30af151715f7b668ec46a48d5272079e971f76ee25cb6cf68b4020e4191485378e
|
7
|
+
data.tar.gz: dc01d76cc20246f0d14eb72fe74236069886386325fb06fcce572018c3ab62d051cdf3bf46d9c8fa68d0db3fafc2cbf160f7a120e1653b3dd8c43b9311cc57a0
|
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://
|
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
|
|
@@ -52,6 +52,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
52
52
|
optional :azure, :message, 11, "google.cloud.bigquery.connection.v1.AzureProperties"
|
53
53
|
optional :cloud_spanner, :message, 21, "google.cloud.bigquery.connection.v1.CloudSpannerProperties"
|
54
54
|
optional :cloud_resource, :message, 22, "google.cloud.bigquery.connection.v1.CloudResourceProperties"
|
55
|
+
optional :spark, :message, 23, "google.cloud.bigquery.connection.v1.SparkProperties"
|
55
56
|
end
|
56
57
|
end
|
57
58
|
add_message "google.cloud.bigquery.connection.v1.CloudSqlProperties" do
|
@@ -103,6 +104,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
103
104
|
add_message "google.cloud.bigquery.connection.v1.CloudResourceProperties" do
|
104
105
|
optional :service_account_id, :string, 1
|
105
106
|
end
|
107
|
+
add_message "google.cloud.bigquery.connection.v1.MetastoreServiceConfig" do
|
108
|
+
optional :metastore_service, :string, 1
|
109
|
+
end
|
110
|
+
add_message "google.cloud.bigquery.connection.v1.SparkHistoryServerConfig" do
|
111
|
+
optional :dataproc_cluster, :string, 1
|
112
|
+
end
|
113
|
+
add_message "google.cloud.bigquery.connection.v1.SparkProperties" do
|
114
|
+
optional :service_account_id, :string, 1
|
115
|
+
optional :metastore_service_config, :message, 3, "google.cloud.bigquery.connection.v1.MetastoreServiceConfig"
|
116
|
+
optional :spark_history_server_config, :message, 4, "google.cloud.bigquery.connection.v1.SparkHistoryServerConfig"
|
117
|
+
end
|
106
118
|
end
|
107
119
|
end
|
108
120
|
|
@@ -127,6 +139,9 @@ module Google
|
|
127
139
|
AwsAccessRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsAccessRole").msgclass
|
128
140
|
AzureProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AzureProperties").msgclass
|
129
141
|
CloudResourceProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.CloudResourceProperties").msgclass
|
142
|
+
MetastoreServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.MetastoreServiceConfig").msgclass
|
143
|
+
SparkHistoryServerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.SparkHistoryServerConfig").msgclass
|
144
|
+
SparkProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.SparkProperties").msgclass
|
130
145
|
end
|
131
146
|
end
|
132
147
|
end
|
@@ -944,9 +944,9 @@ module Google
|
|
944
944
|
# * (`String`) The path to a service account key file in JSON format
|
945
945
|
# * (`Hash`) A service account key as a Hash
|
946
946
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
947
|
-
# (see the [googleauth docs](https://
|
947
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
948
948
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
949
|
-
# (see the [signet docs](https://
|
949
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
950
950
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
951
951
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
952
952
|
# * (`nil`) indicating no credentials
|
@@ -25,6 +25,25 @@ module Google
|
|
25
25
|
module ConnectionService
|
26
26
|
# Path helper methods for the ConnectionService API.
|
27
27
|
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Cluster resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/regions/{region}/clusters/{cluster}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param region [String]
|
37
|
+
# @param cluster [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def cluster_path project:, region:, cluster:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/regions/#{region}/clusters/#{cluster}"
|
45
|
+
end
|
46
|
+
|
28
47
|
##
|
29
48
|
# Create a fully-qualified Connection resource string.
|
30
49
|
#
|
@@ -61,6 +80,25 @@ module Google
|
|
61
80
|
"projects/#{project}/locations/#{location}"
|
62
81
|
end
|
63
82
|
|
83
|
+
##
|
84
|
+
# Create a fully-qualified Service resource string.
|
85
|
+
#
|
86
|
+
# The resource will be in the following format:
|
87
|
+
#
|
88
|
+
# `projects/{project}/locations/{location}/services/{service}`
|
89
|
+
#
|
90
|
+
# @param project [String]
|
91
|
+
# @param location [String]
|
92
|
+
# @param service [String]
|
93
|
+
#
|
94
|
+
# @return [::String]
|
95
|
+
def service_path project:, location:, service:
|
96
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
97
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
98
|
+
|
99
|
+
"projects/#{project}/locations/#{location}/services/#{service}"
|
100
|
+
end
|
101
|
+
|
64
102
|
extend self
|
65
103
|
end
|
66
104
|
end
|