google-cloud-bigquery-connection-v1 0.13.0 → 0.14.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/lib/google/cloud/bigquery/connection/v1/connection_pb.rb +25 -102
- data/lib/google/cloud/bigquery/connection/v1/connection_service/client.rb +4 -2
- data/lib/google/cloud/bigquery/connection/v1/connection_service/rest/client.rb +4 -2
- data/lib/google/cloud/bigquery/connection/v1/connection_service/rest/service_stub.rb +8 -8
- data/lib/google/cloud/bigquery/connection/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +58 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8afcb732196c27eaa35610bb111f87d036a8614f15620048191cce4af00b7a6f
|
|
4
|
+
data.tar.gz: 257fc948a5c40827e14e5ab57b5df27c7a9ef6f7e8616a5cff378b3918b1c471
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c01ad729a6cc30a9b2cc2459b5b0476c65aea8abde93dbde473ab99dc0f46cc96a5c6de8b9e840155d84c53bc5672ca199b580321a802b746aa213145ab67002
|
|
7
|
+
data.tar.gz: b329c45113ace63580c77b15d4cd32116cb901ace717a661e0b407449afd13e06f38d629299ab74eab49c4dc9a1cec500cfcabcff993f1c6cb0a81e1ddf46b94
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/bigquery/connection/v1/connection.proto
|
|
3
4
|
|
|
@@ -12,110 +13,32 @@ require 'google/iam/v1/policy_pb'
|
|
|
12
13
|
require 'google/protobuf/empty_pb'
|
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
|
38
|
-
end
|
|
39
|
-
add_message "google.cloud.bigquery.connection.v1.DeleteConnectionRequest" do
|
|
40
|
-
optional :name, :string, 1
|
|
41
|
-
end
|
|
42
|
-
add_message "google.cloud.bigquery.connection.v1.Connection" do
|
|
43
|
-
optional :name, :string, 1
|
|
44
|
-
optional :friendly_name, :string, 2
|
|
45
|
-
optional :description, :string, 3
|
|
46
|
-
optional :creation_time, :int64, 5
|
|
47
|
-
optional :last_modified_time, :int64, 6
|
|
48
|
-
optional :has_credential, :bool, 7
|
|
49
|
-
oneof :properties do
|
|
50
|
-
optional :cloud_sql, :message, 4, "google.cloud.bigquery.connection.v1.CloudSqlProperties"
|
|
51
|
-
optional :aws, :message, 8, "google.cloud.bigquery.connection.v1.AwsProperties"
|
|
52
|
-
optional :azure, :message, 11, "google.cloud.bigquery.connection.v1.AzureProperties"
|
|
53
|
-
optional :cloud_spanner, :message, 21, "google.cloud.bigquery.connection.v1.CloudSpannerProperties"
|
|
54
|
-
optional :cloud_resource, :message, 22, "google.cloud.bigquery.connection.v1.CloudResourceProperties"
|
|
55
|
-
optional :spark, :message, 23, "google.cloud.bigquery.connection.v1.SparkProperties"
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
add_message "google.cloud.bigquery.connection.v1.CloudSqlProperties" do
|
|
59
|
-
optional :instance_id, :string, 1
|
|
60
|
-
optional :database, :string, 2
|
|
61
|
-
optional :type, :enum, 3, "google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType"
|
|
62
|
-
optional :credential, :message, 4, "google.cloud.bigquery.connection.v1.CloudSqlCredential"
|
|
63
|
-
optional :service_account_id, :string, 5
|
|
64
|
-
end
|
|
65
|
-
add_enum "google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType" do
|
|
66
|
-
value :DATABASE_TYPE_UNSPECIFIED, 0
|
|
67
|
-
value :POSTGRES, 1
|
|
68
|
-
value :MYSQL, 2
|
|
69
|
-
end
|
|
70
|
-
add_message "google.cloud.bigquery.connection.v1.CloudSqlCredential" do
|
|
71
|
-
optional :username, :string, 1
|
|
72
|
-
optional :password, :string, 2
|
|
73
|
-
end
|
|
74
|
-
add_message "google.cloud.bigquery.connection.v1.CloudSpannerProperties" do
|
|
75
|
-
optional :database, :string, 1
|
|
76
|
-
optional :use_parallelism, :bool, 2
|
|
77
|
-
optional :use_serverless_analytics, :bool, 3
|
|
78
|
-
optional :database_role, :string, 4
|
|
79
|
-
end
|
|
80
|
-
add_message "google.cloud.bigquery.connection.v1.AwsProperties" do
|
|
81
|
-
oneof :authentication_method do
|
|
82
|
-
optional :cross_account_role, :message, 2, "google.cloud.bigquery.connection.v1.AwsCrossAccountRole"
|
|
83
|
-
optional :access_role, :message, 3, "google.cloud.bigquery.connection.v1.AwsAccessRole"
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
add_message "google.cloud.bigquery.connection.v1.AwsCrossAccountRole" do
|
|
87
|
-
optional :iam_role_id, :string, 1
|
|
88
|
-
optional :iam_user_id, :string, 2
|
|
89
|
-
optional :external_id, :string, 3
|
|
90
|
-
end
|
|
91
|
-
add_message "google.cloud.bigquery.connection.v1.AwsAccessRole" do
|
|
92
|
-
optional :iam_role_id, :string, 1
|
|
93
|
-
optional :identity, :string, 2
|
|
94
|
-
end
|
|
95
|
-
add_message "google.cloud.bigquery.connection.v1.AzureProperties" do
|
|
96
|
-
optional :application, :string, 1
|
|
97
|
-
optional :client_id, :string, 2
|
|
98
|
-
optional :object_id, :string, 3
|
|
99
|
-
optional :customer_tenant_id, :string, 4
|
|
100
|
-
optional :redirect_uri, :string, 5
|
|
101
|
-
optional :federated_application_client_id, :string, 6
|
|
102
|
-
optional :identity, :string, 7
|
|
103
|
-
end
|
|
104
|
-
add_message "google.cloud.bigquery.connection.v1.CloudResourceProperties" do
|
|
105
|
-
optional :service_account_id, :string, 1
|
|
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"
|
|
16
|
+
|
|
17
|
+
descriptor_data = "\n4google/cloud/bigquery/connection/v1/connection.proto\x12#google.cloud.bigquery.connection.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xba\x01\n\x17\x43reateConnectionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x1a\n\rconnection_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12H\n\nconnection\x18\x03 \x01(\x0b\x32/.google.cloud.bigquery.connection.v1.ConnectionB\x03\xe0\x41\x02\"Z\n\x14GetConnectionRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigqueryconnection.googleapis.com/Connection\"\x7f\n\x16ListConnectionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\"x\n\x17ListConnectionsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\t\x12\x44\n\x0b\x63onnections\x18\x02 \x03(\x0b\x32/.google.cloud.bigquery.connection.v1.Connection\"\xdd\x01\n\x17UpdateConnectionRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigqueryconnection.googleapis.com/Connection\x12H\n\nconnection\x18\x02 \x01(\x0b\x32/.google.cloud.bigquery.connection.v1.ConnectionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x17\x44\x65leteConnectionRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigqueryconnection.googleapis.com/Connection\"\xf0\x05\n\nConnection\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rfriendly_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12L\n\tcloud_sql\x18\x04 \x01(\x0b\x32\x37.google.cloud.bigquery.connection.v1.CloudSqlPropertiesH\x00\x12\x41\n\x03\x61ws\x18\x08 \x01(\x0b\x32\x32.google.cloud.bigquery.connection.v1.AwsPropertiesH\x00\x12\x45\n\x05\x61zure\x18\x0b \x01(\x0b\x32\x34.google.cloud.bigquery.connection.v1.AzurePropertiesH\x00\x12T\n\rcloud_spanner\x18\x15 \x01(\x0b\x32;.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesH\x00\x12V\n\x0e\x63loud_resource\x18\x16 \x01(\x0b\x32<.google.cloud.bigquery.connection.v1.CloudResourcePropertiesH\x00\x12\x45\n\x05spark\x18\x17 \x01(\x0b\x32\x34.google.cloud.bigquery.connection.v1.SparkPropertiesH\x00\x12\x1a\n\rcreation_time\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\x12last_modified_time\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1b\n\x0ehas_credential\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03:s\xea\x41p\n,bigqueryconnection.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}B\x0c\n\nproperties\"\xca\x02\n\x12\x43loudSqlProperties\x12\x13\n\x0binstance_id\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tabase\x18\x02 \x01(\t\x12R\n\x04type\x18\x03 \x01(\x0e\x32\x44.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType\x12P\n\ncredential\x18\x04 \x01(\x0b\x32\x37.google.cloud.bigquery.connection.v1.CloudSqlCredentialB\x03\xe0\x41\x04\x12\x1f\n\x12service_account_id\x18\x05 \x01(\tB\x03\xe0\x41\x03\"F\n\x0c\x44\x61tabaseType\x12\x1d\n\x19\x44\x41TABASE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08POSTGRES\x10\x01\x12\t\n\x05MYSQL\x10\x02\"8\n\x12\x43loudSqlCredential\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\x81\x01\n\x16\x43loudSpannerProperties\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x17\n\x0fuse_parallelism\x18\x02 \x01(\x08\x12 \n\x18use_serverless_analytics\x18\x03 \x01(\x08\x12\x1a\n\rdatabase_role\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xcf\x01\n\rAwsProperties\x12Z\n\x12\x63ross_account_role\x18\x02 \x01(\x0b\x32\x38.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleB\x02\x18\x01H\x00\x12I\n\x0b\x61\x63\x63\x65ss_role\x18\x03 \x01(\x0b\x32\x32.google.cloud.bigquery.connection.v1.AwsAccessRoleH\x00\x42\x17\n\x15\x61uthentication_method\"^\n\x13\x41wsCrossAccountRole\x12\x13\n\x0biam_role_id\x18\x01 \x01(\t\x12\x18\n\x0biam_user_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65xternal_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\"6\n\rAwsAccessRole\x12\x13\n\x0biam_role_id\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\"\xcd\x01\n\x0f\x41zureProperties\x12\x18\n\x0b\x61pplication\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tclient_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tobject_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\x12\x63ustomer_tenant_id\x18\x04 \x01(\t\x12\x14\n\x0credirect_uri\x18\x05 \x01(\t\x12\'\n\x1f\x66\x65\x64\x65rated_application_client_id\x18\x06 \x01(\t\x12\x15\n\x08identity\x18\x07 \x01(\tB\x03\xe0\x41\x03\":\n\x17\x43loudResourceProperties\x12\x1f\n\x12service_account_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\"]\n\x16MetastoreServiceConfig\x12\x43\n\x11metastore_service\x18\x01 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n metastore.googleapis.com/Service\"]\n\x18SparkHistoryServerConfig\x12\x41\n\x10\x64\x61taproc_cluster\x18\x01 \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Cluster\"\xff\x01\n\x0fSparkProperties\x12\x1f\n\x12service_account_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x62\n\x18metastore_service_config\x18\x03 \x01(\x0b\x32;.google.cloud.bigquery.connection.v1.MetastoreServiceConfigB\x03\xe0\x41\x01\x12g\n\x1bspark_history_server_config\x18\x04 \x01(\x0b\x32=.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\x32\xcc\r\n\x11\x43onnectionService\x12\xe8\x01\n\x10\x43reateConnection\x12<.google.cloud.bigquery.connection.v1.CreateConnectionRequest\x1a/.google.cloud.bigquery.connection.v1.Connection\"e\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/connections:\nconnection\xda\x41\x1fparent,connection,connection_id\x12\xbb\x01\n\rGetConnection\x12\x39.google.cloud.bigquery.connection.v1.GetConnectionRequest\x1a/.google.cloud.bigquery.connection.v1.Connection\">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/connections/*}\xda\x41\x04name\x12\xce\x01\n\x0fListConnections\x12;.google.cloud.bigquery.connection.v1.ListConnectionsRequest\x1a<.google.cloud.bigquery.connection.v1.ListConnectionsResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/connections\xda\x41\x06parent\x12\xe4\x01\n\x10UpdateConnection\x12<.google.cloud.bigquery.connection.v1.UpdateConnectionRequest\x1a/.google.cloud.bigquery.connection.v1.Connection\"a\x82\xd3\xe4\x93\x02=2//v1/{name=projects/*/locations/*/connections/*}:\nconnection\xda\x41\x1bname,connection,update_mask\x12\xa8\x01\n\x10\x44\x65leteConnection\x12<.google.cloud.bigquery.connection.v1.DeleteConnectionRequest\x1a\x16.google.protobuf.Empty\">\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/connections/*}\xda\x41\x04name\x12\xa9\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"^\x82\xd3\xe4\x93\x02\x45\"@/v1/{resource=projects/*/locations/*/connections/*}:getIamPolicy:\x01*\xda\x41\x10resource,options\x12\xa8\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"]\x82\xd3\xe4\x93\x02\x45\"@/v1/{resource=projects/*/locations/*/connections/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xd3\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"h\x82\xd3\xe4\x93\x02K\"F/v1/{resource=projects/*/locations/*/connections/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x1a~\xca\x41!bigqueryconnection.googleapis.com\xd2\x41Whttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\xfd\x02\n\'com.google.cloud.bigquery.connection.v1P\x01ZGcloud.google.com/go/bigquery/connection/apiv1/connectionpb;connectionpb\xaa\x02#Google.Cloud.BigQuery.Connection.V1\xca\x02#Google\\Cloud\\BigQuery\\Connection\\V1\xea\x41Y\n\x1f\x64\x61taproc.googleapis.com/Cluster\x12\x36projects/{project}/regions/{region}/clusters/{cluster}\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}b\x06proto3"
|
|
18
|
+
|
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
20
|
+
|
|
21
|
+
begin
|
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
|
23
|
+
rescue TypeError => e
|
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
27
|
+
parsed.clear_dependency
|
|
28
|
+
serialized = parsed.class.encode(parsed)
|
|
29
|
+
file = pool.add_serialized_file(serialized)
|
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
31
|
+
imports = [
|
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
33
|
+
]
|
|
34
|
+
imports.each do |type_name, expected_filename|
|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
36
|
+
if import_file.name != expected_filename
|
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
117
38
|
end
|
|
118
39
|
end
|
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
41
|
+
warn "This will become an error in the next major version."
|
|
119
42
|
end
|
|
120
43
|
|
|
121
44
|
module Google
|
|
@@ -149,7 +149,7 @@ module Google
|
|
|
149
149
|
credentials = @config.credentials
|
|
150
150
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
151
151
|
# but only if the default endpoint does not have a region prefix.
|
|
152
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
152
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
153
153
|
!@config.endpoint.split(".").first.include?("-")
|
|
154
154
|
credentials ||= Credentials.default scope: @config.scope,
|
|
155
155
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -988,7 +988,9 @@ module Google
|
|
|
988
988
|
class Configuration
|
|
989
989
|
extend ::Gapic::Config
|
|
990
990
|
|
|
991
|
-
|
|
991
|
+
DEFAULT_ENDPOINT = "bigqueryconnection.googleapis.com"
|
|
992
|
+
|
|
993
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
992
994
|
config_attr :credentials, nil do |value|
|
|
993
995
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
994
996
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -145,7 +145,7 @@ module Google
|
|
|
145
145
|
credentials = @config.credentials
|
|
146
146
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
147
147
|
# but only if the default endpoint does not have a region prefix.
|
|
148
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
148
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
149
149
|
!@config.endpoint.split(".").first.include?("-")
|
|
150
150
|
credentials ||= Credentials.default scope: @config.scope,
|
|
151
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -782,7 +782,9 @@ module Google
|
|
|
782
782
|
class Configuration
|
|
783
783
|
extend ::Gapic::Config
|
|
784
784
|
|
|
785
|
-
|
|
785
|
+
DEFAULT_ENDPOINT = "bigqueryconnection.googleapis.com"
|
|
786
|
+
|
|
787
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
786
788
|
config_attr :credentials, nil do |value|
|
|
787
789
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
788
790
|
allowed.any? { |klass| klass === value }
|
|
@@ -60,7 +60,7 @@ module Google
|
|
|
60
60
|
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_connection_request request_pb
|
|
62
62
|
query_string_params = if query_string_params.any?
|
|
63
|
-
query_string_params.to_h { |p| p.split
|
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
64
64
|
else
|
|
65
65
|
{}
|
|
66
66
|
end
|
|
@@ -98,7 +98,7 @@ module Google
|
|
|
98
98
|
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_connection_request request_pb
|
|
100
100
|
query_string_params = if query_string_params.any?
|
|
101
|
-
query_string_params.to_h { |p| p.split
|
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
102
102
|
else
|
|
103
103
|
{}
|
|
104
104
|
end
|
|
@@ -136,7 +136,7 @@ module Google
|
|
|
136
136
|
|
|
137
137
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_connections_request request_pb
|
|
138
138
|
query_string_params = if query_string_params.any?
|
|
139
|
-
query_string_params.to_h { |p| p.split
|
|
139
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
140
140
|
else
|
|
141
141
|
{}
|
|
142
142
|
end
|
|
@@ -174,7 +174,7 @@ module Google
|
|
|
174
174
|
|
|
175
175
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_connection_request request_pb
|
|
176
176
|
query_string_params = if query_string_params.any?
|
|
177
|
-
query_string_params.to_h { |p| p.split
|
|
177
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
178
178
|
else
|
|
179
179
|
{}
|
|
180
180
|
end
|
|
@@ -212,7 +212,7 @@ module Google
|
|
|
212
212
|
|
|
213
213
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_connection_request request_pb
|
|
214
214
|
query_string_params = if query_string_params.any?
|
|
215
|
-
query_string_params.to_h { |p| p.split
|
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
216
216
|
else
|
|
217
217
|
{}
|
|
218
218
|
end
|
|
@@ -250,7 +250,7 @@ module Google
|
|
|
250
250
|
|
|
251
251
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
|
252
252
|
query_string_params = if query_string_params.any?
|
|
253
|
-
query_string_params.to_h { |p| p.split
|
|
253
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
254
254
|
else
|
|
255
255
|
{}
|
|
256
256
|
end
|
|
@@ -288,7 +288,7 @@ module Google
|
|
|
288
288
|
|
|
289
289
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
|
290
290
|
query_string_params = if query_string_params.any?
|
|
291
|
-
query_string_params.to_h { |p| p.split
|
|
291
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
292
292
|
else
|
|
293
293
|
{}
|
|
294
294
|
end
|
|
@@ -326,7 +326,7 @@ module Google
|
|
|
326
326
|
|
|
327
327
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
328
328
|
query_string_params = if query_string_params.any?
|
|
329
|
-
query_string_params.to_h { |p| p.split
|
|
329
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
330
330
|
else
|
|
331
331
|
{}
|
|
332
332
|
end
|
|
@@ -83,7 +83,7 @@ module Google
|
|
|
83
83
|
# long-running operation pattern.
|
|
84
84
|
# @!attribute [rw] new_issue_uri
|
|
85
85
|
# @return [::String]
|
|
86
|
-
# Link to a
|
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
|
87
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
88
88
|
# @!attribute [rw] documentation_uri
|
|
89
89
|
# @return [::String]
|
|
@@ -209,9 +209,57 @@ module Google
|
|
|
209
209
|
# @!attribute [rw] common
|
|
210
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
211
211
|
# Some settings.
|
|
212
|
+
# @!attribute [rw] renamed_services
|
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
214
|
+
# Map from original service names to renamed versions.
|
|
215
|
+
# This is used when the default generated types
|
|
216
|
+
# would cause a naming conflict. (Neither name is
|
|
217
|
+
# fully-qualified.)
|
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
|
219
|
+
# @!attribute [rw] renamed_resources
|
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
221
|
+
# Map from full resource types to the effective short name
|
|
222
|
+
# for the resource. This is used when otherwise resource
|
|
223
|
+
# named from different services would cause naming collisions.
|
|
224
|
+
# Example entry:
|
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
|
226
|
+
# @!attribute [rw] ignored_resources
|
|
227
|
+
# @return [::Array<::String>]
|
|
228
|
+
# List of full resource types to ignore during generation.
|
|
229
|
+
# This is typically used for API-specific Location resources,
|
|
230
|
+
# which should be handled by the generator as if they were actually
|
|
231
|
+
# the common Location resources.
|
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
|
234
|
+
# @return [::Array<::String>]
|
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
|
238
|
+
# @return [::Array<::String>]
|
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
|
212
242
|
class DotnetSettings
|
|
213
243
|
include ::Google::Protobuf::MessageExts
|
|
214
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
245
|
+
|
|
246
|
+
# @!attribute [rw] key
|
|
247
|
+
# @return [::String]
|
|
248
|
+
# @!attribute [rw] value
|
|
249
|
+
# @return [::String]
|
|
250
|
+
class RenamedServicesEntry
|
|
251
|
+
include ::Google::Protobuf::MessageExts
|
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# @!attribute [rw] key
|
|
256
|
+
# @return [::String]
|
|
257
|
+
# @!attribute [rw] value
|
|
258
|
+
# @return [::String]
|
|
259
|
+
class RenamedResourcesEntry
|
|
260
|
+
include ::Google::Protobuf::MessageExts
|
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
262
|
+
end
|
|
215
263
|
end
|
|
216
264
|
|
|
217
265
|
# Settings for Ruby client libraries.
|
|
@@ -305,6 +353,15 @@ module Google
|
|
|
305
353
|
|
|
306
354
|
# Street View Org.
|
|
307
355
|
STREET_VIEW = 4
|
|
356
|
+
|
|
357
|
+
# Shopping Org.
|
|
358
|
+
SHOPPING = 5
|
|
359
|
+
|
|
360
|
+
# Geo Org.
|
|
361
|
+
GEO = 6
|
|
362
|
+
|
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
|
364
|
+
GENERATIVE_AI = 7
|
|
308
365
|
end
|
|
309
366
|
|
|
310
367
|
# To where should client libraries be published?
|
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.14.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-
|
|
11
|
+
date: 2023-06-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.
|
|
19
|
+
version: 0.19.1
|
|
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.
|
|
29
|
+
version: 0.19.1
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|