google-cloud-bigquery-connection-v1 0.12.0 → 0.14.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: df3785ff03665bc77560721ee3fcf0474410e6b1cd98d67068c806c6617c3d00
4
- data.tar.gz: 6f3c0e9bd45c86cccef7ddcc6cdeddea168c3fd7d3333f4afc4637fe2ed56bea
3
+ metadata.gz: 8afcb732196c27eaa35610bb111f87d036a8614f15620048191cce4af00b7a6f
4
+ data.tar.gz: 257fc948a5c40827e14e5ab57b5df27c7a9ef6f7e8616a5cff378b3918b1c471
5
5
  SHA512:
6
- metadata.gz: 9cb937e69dfa9e02a7ce3fff916d2afe6f6f87ad1353f548900242d8ce06b2f6b786c90ef159d76db58d3d7d27195d220f61a95d7c246206fab4b9320280331e
7
- data.tar.gz: 46c87c7675adbba24f41de7d157d88751645f1abf798d89aa6f4314cbe76b540d1c716d34f31c0467bd45560b299475c9931e4d1fa02e679a66d0cb5df7e6272
6
+ metadata.gz: c01ad729a6cc30a9b2cc2459b5b0476c65aea8abde93dbde473ab99dc0f46cc96a5c6de8b9e840155d84c53bc5672ca199b580321a802b746aa213145ab67002
7
+ data.tar.gz: b329c45113ace63580c77b15d4cd32116cb901ace717a661e0b407449afd13e06f38d629299ab74eab49c4dc9a1cec500cfcabcff993f1c6cb0a81e1ddf46b94
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
 
@@ -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,98 +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
- end
56
- end
57
- add_message "google.cloud.bigquery.connection.v1.CloudSqlProperties" do
58
- optional :instance_id, :string, 1
59
- optional :database, :string, 2
60
- optional :type, :enum, 3, "google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType"
61
- optional :credential, :message, 4, "google.cloud.bigquery.connection.v1.CloudSqlCredential"
62
- optional :service_account_id, :string, 5
63
- end
64
- add_enum "google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType" do
65
- value :DATABASE_TYPE_UNSPECIFIED, 0
66
- value :POSTGRES, 1
67
- value :MYSQL, 2
68
- end
69
- add_message "google.cloud.bigquery.connection.v1.CloudSqlCredential" do
70
- optional :username, :string, 1
71
- optional :password, :string, 2
72
- end
73
- add_message "google.cloud.bigquery.connection.v1.CloudSpannerProperties" do
74
- optional :database, :string, 1
75
- optional :use_parallelism, :bool, 2
76
- optional :use_serverless_analytics, :bool, 3
77
- optional :database_role, :string, 4
78
- end
79
- add_message "google.cloud.bigquery.connection.v1.AwsProperties" do
80
- oneof :authentication_method do
81
- optional :cross_account_role, :message, 2, "google.cloud.bigquery.connection.v1.AwsCrossAccountRole"
82
- optional :access_role, :message, 3, "google.cloud.bigquery.connection.v1.AwsAccessRole"
83
- end
84
- end
85
- add_message "google.cloud.bigquery.connection.v1.AwsCrossAccountRole" do
86
- optional :iam_role_id, :string, 1
87
- optional :iam_user_id, :string, 2
88
- optional :external_id, :string, 3
89
- end
90
- add_message "google.cloud.bigquery.connection.v1.AwsAccessRole" do
91
- optional :iam_role_id, :string, 1
92
- optional :identity, :string, 2
93
- end
94
- add_message "google.cloud.bigquery.connection.v1.AzureProperties" do
95
- optional :application, :string, 1
96
- optional :client_id, :string, 2
97
- optional :object_id, :string, 3
98
- optional :customer_tenant_id, :string, 4
99
- optional :redirect_uri, :string, 5
100
- optional :federated_application_client_id, :string, 6
101
- optional :identity, :string, 7
102
- end
103
- add_message "google.cloud.bigquery.connection.v1.CloudResourceProperties" do
104
- optional :service_account_id, :string, 1
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}"
105
38
  end
106
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."
107
42
  end
108
43
 
109
44
  module Google
@@ -127,6 +62,9 @@ module Google
127
62
  AwsAccessRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsAccessRole").msgclass
128
63
  AzureProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AzureProperties").msgclass
129
64
  CloudResourceProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.CloudResourceProperties").msgclass
65
+ MetastoreServiceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.MetastoreServiceConfig").msgclass
66
+ SparkHistoryServerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.SparkHistoryServerConfig").msgclass
67
+ SparkProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.SparkProperties").msgclass
130
68
  end
131
69
  end
132
70
  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
@@ -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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
@@ -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
@@ -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
@@ -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
@@ -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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
@@ -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.12.0"
25
+ VERSION = "0.14.0"
26
26
  end
27
27
  end
28
28
  end
@@ -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.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -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
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
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.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
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
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
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
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -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 documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
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 < timestamp('2020-10-01T00:00:00.000Z')",
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 documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
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 {::Google::Iam::V1::Binding#members Binding.members}.
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.12.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-03-08 00:00:00.000000000 Z
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.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