google-cloud-bigquery-connection-v1 0.13.0 → 0.15.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: 61c486fa3e6c478ad30dd87826d5cb4e8fcab50ae2f9de835c97a51a5a376804
4
- data.tar.gz: 746016f349f142e33a58c799b54dd806306e5b4534ff16fe8391f90f61d036fc
3
+ metadata.gz: 152b312852c1f29d6fa728820f03af61351316ca71960971450343c9fc247b1c
4
+ data.tar.gz: 445683cf616f7ae320e6df651be4170ef19a3f8ace342486278eb7a1d12c793b
5
5
  SHA512:
6
- metadata.gz: ddc8af763dfdafa8e9a341df65368163d551bfa45420b7973c3592b089ff9b30af151715f7b668ec46a48d5272079e971f76ee25cb6cf68b4020e4191485378e
7
- data.tar.gz: dc01d76cc20246f0d14eb72fe74236069886386325fb06fcce572018c3ab62d051cdf3bf46d9c8fa68d0db3fafc2cbf160f7a120e1653b3dd8c43b9311cc57a0
6
+ metadata.gz: '068c8a8c7487a9267b0f8739588c221d19ee9f113a098f7d245e72b1b7c66ed4c3b74d310209c0ae3083babe564f3e46db2e1b86374241b3c94e74f9f23889ad'
7
+ data.tar.gz: 90466c357ad4c76568e1cc39bdcb2e29ab744397fa3bd6dca11dd584b9416d671b1cd80a051f9a92f7d3c7ee83b8ddf657ea2ce419d6ae097837e6caf1fc4b8b
@@ -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
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_file("google/cloud/bigquery/connection/v1/connection.proto", :syntax => :proto3) do
17
- add_message "google.cloud.bigquery.connection.v1.CreateConnectionRequest" do
18
- optional :parent, :string, 1
19
- optional :connection_id, :string, 2
20
- optional :connection, :message, 3, "google.cloud.bigquery.connection.v1.Connection"
21
- end
22
- add_message "google.cloud.bigquery.connection.v1.GetConnectionRequest" do
23
- optional :name, :string, 1
24
- end
25
- add_message "google.cloud.bigquery.connection.v1.ListConnectionsRequest" do
26
- optional :parent, :string, 1
27
- optional :page_size, :int32, 4
28
- optional :page_token, :string, 3
29
- end
30
- add_message "google.cloud.bigquery.connection.v1.ListConnectionsResponse" do
31
- optional :next_page_token, :string, 1
32
- repeated :connections, :message, 2, "google.cloud.bigquery.connection.v1.Connection"
33
- end
34
- add_message "google.cloud.bigquery.connection.v1.UpdateConnectionRequest" do
35
- optional :name, :string, 1
36
- optional :connection, :message, 2, "google.cloud.bigquery.connection.v1.Connection"
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\"\xda\x06\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\x12h\n\x15salesforce_data_cloud\x18\x18 \x01(\x0b\x32\x42.google.cloud.bigquery.connection.v1.SalesforceDataCloudPropertiesB\x03\xe0\x41\x01H\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\"\xb2\x01\n\x16\x43loudSpannerProperties\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x17\n\x0fuse_parallelism\x18\x02 \x01(\x08\x12\x17\n\x0fmax_parallelism\x18\x05 \x01(\x05\x12 \n\x18use_serverless_analytics\x18\x03 \x01(\x08\x12\x16\n\x0euse_data_boost\x18\x06 \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\"_\n\x1dSalesforceDataCloudProperties\x12\x14\n\x0cinstance_uri\x18\x01 \x01(\t\x12\x15\n\x08identity\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\ttenant_id\x18\x03 \x01(\t2\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
@@ -142,6 +65,7 @@ module Google
142
65
  MetastoreServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.MetastoreServiceConfig").msgclass
143
66
  SparkHistoryServerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.SparkHistoryServerConfig").msgclass
144
67
  SparkProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.SparkProperties").msgclass
68
+ SalesforceDataCloudProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties").msgclass
145
69
  end
146
70
  end
147
71
  end
@@ -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 == Client.configure.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
- config_attr :endpoint, "bigqueryconnection.googleapis.com", ::String
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 == Client.configure.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
- config_attr :endpoint, "bigqueryconnection.googleapis.com", ::String
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
329
+ query_string_params.to_h { |p| p.split "=", 2 }
330
330
  else
331
331
  {}
332
332
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Connection
24
24
  module V1
25
- VERSION = "0.13.0"
25
+ VERSION = "0.15.0"
26
26
  end
27
27
  end
28
28
  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 place that API users can report issues. Example:
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?
@@ -137,6 +137,11 @@ module Google
137
137
  # @!attribute [rw] spark
138
138
  # @return [::Google::Cloud::Bigquery::Connection::V1::SparkProperties]
139
139
  # Spark properties.
140
+ # @!attribute [rw] salesforce_data_cloud
141
+ # @return [::Google::Cloud::Bigquery::Connection::V1::SalesforceDataCloudProperties]
142
+ # Optional. Salesforce DataCloud properties. This field is intended for
143
+ # use only by Salesforce partner projects. This field contains properties
144
+ # for your Salesforce DataCloud connection.
140
145
  # @!attribute [r] creation_time
141
146
  # @return [::Integer]
142
147
  # Output only. The creation timestamp of the connection.
@@ -208,25 +213,41 @@ module Google
208
213
  # @!attribute [rw] use_parallelism
209
214
  # @return [::Boolean]
210
215
  # If parallelism should be used when reading from Cloud Spanner
216
+ # @!attribute [rw] max_parallelism
217
+ # @return [::Integer]
218
+ # Allows setting max parallelism per query when executing on Spanner
219
+ # independent compute resources. If unspecified, default values of
220
+ # parallelism are chosen that are dependent on the Cloud Spanner instance
221
+ # configuration.
222
+ #
223
+ # REQUIRES: `use_parallelism` must be set.
224
+ # REQUIRES: Either `use_data_boost` or `use_serverless_analytics` must be
225
+ # set.
211
226
  # @!attribute [rw] use_serverless_analytics
212
227
  # @return [::Boolean]
213
228
  # If the serverless analytics service should be used to read data from Cloud
214
229
  # Spanner.
215
230
  # Note: `use_parallelism` must be set when using serverless analytics.
231
+ # @!attribute [rw] use_data_boost
232
+ # @return [::Boolean]
233
+ # If set, the request will be executed via Spanner independent compute
234
+ # resources.
235
+ # REQUIRES: `use_parallelism` must be set.
236
+ #
237
+ # NOTE: `use_serverless_analytics` will be deprecated. Prefer
238
+ # `use_data_boost` over `use_serverless_analytics`.
216
239
  # @!attribute [rw] database_role
217
240
  # @return [::String]
218
241
  # Optional. Cloud Spanner database role for fine-grained access control.
219
- # A database role is a collection of fine-grained access privileges. Example:
220
- # Admin predefines roles that provides user a set of permissions (SELECT,
221
- # INSERT, ..). The user can then specify a predefined role on a connection to
222
- # execute their Cloud Spanner query. The role is passthrough here. If the
223
- # user is not authorized to use the specified role, they get an error. This
224
- # validation happens on Cloud Spanner.
242
+ # The Cloud Spanner admin should have provisioned the database role with
243
+ # appropriate permissions, such as `SELECT` and `INSERT`. Other users should
244
+ # only use roles provided by their Cloud Spanner admins.
225
245
  #
226
- # See https://cloud.google.com/spanner/docs/fgac-about for more details.
246
+ # For more details, see [About fine-grained access control]
247
+ # (https://cloud.google.com/spanner/docs/fgac-about).
227
248
  #
228
- # REQUIRES: database role name must start with uppercase/lowercase letter
229
- # and only contain uppercase/lowercase letters, numbers, and underscores.
249
+ # REQUIRES: The database role name must start with a letter, and can only
250
+ # contain letters, numbers, and underscores.
230
251
  class CloudSpannerProperties
231
252
  include ::Google::Protobuf::MessageExts
232
253
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -370,7 +391,7 @@ module Google
370
391
  # The service account does not have any permissions associated with it when
371
392
  # it is created. After creation, customers delegate permissions to the
372
393
  # 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
394
+ # procedure for Apache Spark in BigQuery, the service account is used to
374
395
  # connect to the desired resources in Google Cloud.
375
396
  #
376
397
  # The account ID is in the form of:
@@ -385,6 +406,23 @@ module Google
385
406
  include ::Google::Protobuf::MessageExts
386
407
  extend ::Google::Protobuf::MessageExts::ClassMethods
387
408
  end
409
+
410
+ # Connection properties specific to Salesforce DataCloud. This is intended for
411
+ # use only by Salesforce partner projects.
412
+ # @!attribute [rw] instance_uri
413
+ # @return [::String]
414
+ # The URL to the user's Salesforce DataCloud instance.
415
+ # @!attribute [r] identity
416
+ # @return [::String]
417
+ # Output only. A unique Google-owned and Google-generated service account
418
+ # identity for the connection.
419
+ # @!attribute [rw] tenant_id
420
+ # @return [::String]
421
+ # The ID of the user's Salesforce tenant.
422
+ class SalesforceDataCloudProperties
423
+ include ::Google::Protobuf::MessageExts
424
+ extend ::Google::Protobuf::MessageExts::ClassMethods
425
+ end
388
426
  end
389
427
  end
390
428
  end
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.13.0
4
+ version: 0.15.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-23 00:00:00.000000000 Z
11
+ date: 2023-07-10 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.18.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.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a