google-cloud-bigquery-connection-v1 0.12.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 +2 -2
- data/lib/google/cloud/bigquery/connection/v1/version.rb +1 -1
- 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 +2 -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
|
@@ -747,9 +747,9 @@ module Google
|
|
747
747
|
# * (`String`) The path to a service account key file in JSON format
|
748
748
|
# * (`Hash`) A service account key as a Hash
|
749
749
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
750
|
-
# (see the [googleauth docs](https://
|
750
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
751
751
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
752
|
-
# (see the [signet docs](https://
|
752
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
753
753
|
# * (`nil`) indicating no credentials
|
754
754
|
# @return [::Object]
|
755
755
|
# @!attribute [rw] scope
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -240,8 +246,8 @@ module Google
|
|
240
246
|
# Example of a YAML configuration::
|
241
247
|
#
|
242
248
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
249
|
+
# method_settings:
|
250
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
251
|
# long_running:
|
246
252
|
# initial_poll_delay:
|
247
253
|
# seconds: 60 # 1 minute
|
@@ -134,6 +134,9 @@ module Google
|
|
134
134
|
# @!attribute [rw] cloud_resource
|
135
135
|
# @return [::Google::Cloud::Bigquery::Connection::V1::CloudResourceProperties]
|
136
136
|
# Cloud Resource properties.
|
137
|
+
# @!attribute [rw] spark
|
138
|
+
# @return [::Google::Cloud::Bigquery::Connection::V1::SparkProperties]
|
139
|
+
# Spark properties.
|
137
140
|
# @!attribute [r] creation_time
|
138
141
|
# @return [::Integer]
|
139
142
|
# Output only. The creation timestamp of the connection.
|
@@ -329,6 +332,59 @@ module Google
|
|
329
332
|
include ::Google::Protobuf::MessageExts
|
330
333
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
331
334
|
end
|
335
|
+
|
336
|
+
# Configuration of the Dataproc Metastore Service.
|
337
|
+
# @!attribute [rw] metastore_service
|
338
|
+
# @return [::String]
|
339
|
+
# Optional. Resource name of an existing Dataproc Metastore service.
|
340
|
+
#
|
341
|
+
# Example:
|
342
|
+
#
|
343
|
+
# * `projects/[project_id]/locations/[region]/services/[service_id]`
|
344
|
+
class MetastoreServiceConfig
|
345
|
+
include ::Google::Protobuf::MessageExts
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
347
|
+
end
|
348
|
+
|
349
|
+
# Configuration of the Spark History Server.
|
350
|
+
# @!attribute [rw] dataproc_cluster
|
351
|
+
# @return [::String]
|
352
|
+
# Optional. Resource name of an existing Dataproc Cluster to act as a Spark
|
353
|
+
# History Server for the connection.
|
354
|
+
#
|
355
|
+
# Example:
|
356
|
+
#
|
357
|
+
# * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
|
358
|
+
class SparkHistoryServerConfig
|
359
|
+
include ::Google::Protobuf::MessageExts
|
360
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
361
|
+
end
|
362
|
+
|
363
|
+
# Container for connection properties to execute stored procedures for Apache
|
364
|
+
# Spark.
|
365
|
+
# @!attribute [r] service_account_id
|
366
|
+
# @return [::String]
|
367
|
+
# Output only. The account ID of the service created for the purpose of this
|
368
|
+
# connection.
|
369
|
+
#
|
370
|
+
# The service account does not have any permissions associated with it when
|
371
|
+
# it is created. After creation, customers delegate permissions to the
|
372
|
+
# service account. When the connection is used in the context of a stored
|
373
|
+
# procedure for Apache Spark in BigQuery, the service account will be used to
|
374
|
+
# connect to the desired resources in Google Cloud.
|
375
|
+
#
|
376
|
+
# The account ID is in the form of:
|
377
|
+
# bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
|
378
|
+
# @!attribute [rw] metastore_service_config
|
379
|
+
# @return [::Google::Cloud::Bigquery::Connection::V1::MetastoreServiceConfig]
|
380
|
+
# Optional. Dataproc Metastore Service configuration for the connection.
|
381
|
+
# @!attribute [rw] spark_history_server_config
|
382
|
+
# @return [::Google::Cloud::Bigquery::Connection::V1::SparkHistoryServerConfig]
|
383
|
+
# Optional. Spark History Server configuration for the connection.
|
384
|
+
class SparkProperties
|
385
|
+
include ::Google::Protobuf::MessageExts
|
386
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
387
|
+
end
|
332
388
|
end
|
333
389
|
end
|
334
390
|
end
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# only if the expression evaluates to `true`. A condition can add constraints
|
36
36
|
# based on attributes of the request, the resource, or both. To learn which
|
37
37
|
# resources support conditions in their IAM policies, see the
|
38
|
-
# [IAM
|
38
|
+
# [IAM
|
39
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
40
|
#
|
40
41
|
# **JSON example:**
|
41
42
|
#
|
@@ -58,7 +59,8 @@ module Google
|
|
58
59
|
# "condition": {
|
59
60
|
# "title": "expirable access",
|
60
61
|
# "description": "Does not grant access after Sep 2020",
|
61
|
-
# "expression": "request.time <
|
62
|
+
# "expression": "request.time <
|
63
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
62
64
|
# }
|
63
65
|
# }
|
64
66
|
# ],
|
@@ -112,7 +114,8 @@ module Google
|
|
112
114
|
# specify any valid version or leave the field unset.
|
113
115
|
#
|
114
116
|
# To learn which resources support conditions in their IAM policies, see the
|
115
|
-
# [IAM
|
117
|
+
# [IAM
|
118
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
116
119
|
# @!attribute [rw] bindings
|
117
120
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
118
121
|
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
@@ -305,7 +308,8 @@ module Google
|
|
305
308
|
# @return [::Array<::String>]
|
306
309
|
# Specifies the identities that do not cause logging for this type of
|
307
310
|
# permission.
|
308
|
-
# Follows the same format of
|
311
|
+
# Follows the same format of
|
312
|
+
# {::Google::Iam::V1::Binding#members Binding.members}.
|
309
313
|
class AuditLogConfig
|
310
314
|
include ::Google::Protobuf::MessageExts
|
311
315
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-connection-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.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: 2023-03-
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|