google-cloud-connectors-v1 1.3.0 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddea03b65ec2a67294af58d8a594db4f475cf62f9969be91a3b0d1c387766142
4
- data.tar.gz: 2a67f5c2fcd5ce1429c8a48bbe2e81cf59e79dba42e6c054c2e836922ca76d62
3
+ metadata.gz: a9706a1fca49f9eea69e804ecda6249a2baa142be12fd322f7fd044b443b0f8f
4
+ data.tar.gz: 2bbc152de325a7659fea3e832632a4f56e189c38d2a2688f30f34e901c2b8c1f
5
5
  SHA512:
6
- metadata.gz: 3b2a30655c46fa4d1aa822fc0aa6f65bc229a6ce34cc5e076b0504e02c3978072be198de6cbb2ffdca1f24cb64d5f15d284ffea6d079c97778d9d139c38affef
7
- data.tar.gz: cb245315f66258c826e9e0b0e826fad10dbfa3898643b1b7341e06eaff2ba37dea553481122d097b5a975bf0899ace888f817c2091f77a396b7df4b0daf21d8a
6
+ metadata.gz: bd3afe3df6857b92d17455d6f947be245a738dd6e5742bcf931ce877c7384960586abad5f6a9bac01e214c7bc484cf294a97ed29ada833e73f6a8ad98ba51103
7
+ data.tar.gz: 6c440a998ef9aeb10d8d359fab2f557610083b11bb8dbe18aa78a499adf2b2bb02e045a4ccf2f1b883d7a56eb4306e17e1d3da3c55e7b661f0c51c031c3056b9
@@ -9,30 +9,8 @@ require 'google/cloud/connectors/v1/common_pb'
9
9
 
10
10
  descriptor_data = "\n+google/cloud/connectors/v1/authconfig.proto\x12\x1agoogle.cloud.connectors.v1\x1a\'google/cloud/connectors/v1/common.proto\"\xc6\x08\n\nAuthConfig\x12\x37\n\tauth_type\x18\x01 \x01(\x0e\x32$.google.cloud.connectors.v1.AuthType\x12L\n\ruser_password\x18\x02 \x01(\x0b\x32\x33.google.cloud.connectors.v1.AuthConfig.UserPasswordH\x00\x12S\n\x11oauth2_jwt_bearer\x18\x03 \x01(\x0b\x32\x36.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearerH\x00\x12\x63\n\x19oauth2_client_credentials\x18\x04 \x01(\x0b\x32>.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentialsH\x00\x12M\n\x0essh_public_key\x18\x06 \x01(\x0b\x32\x33.google.cloud.connectors.v1.AuthConfig.SshPublicKeyH\x00\x12H\n\x14\x61\x64\x64itional_variables\x18\x05 \x03(\x0b\x32*.google.cloud.connectors.v1.ConfigVariable\x1aV\n\x0cUserPassword\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x34\n\x08password\x18\x02 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x1a\xdf\x01\n\x0fOauth2JwtBearer\x12\x36\n\nclient_key\x18\x01 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12T\n\njwt_claims\x18\x02 \x01(\x0b\x32@.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims\x1a>\n\tJwtClaims\x12\x0e\n\x06issuer\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x10\n\x08\x61udience\x18\x03 \x01(\t\x1ag\n\x17Oauth2ClientCredentials\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x39\n\rclient_secret\x18\x02 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x1a\xb2\x01\n\x0cSshPublicKey\x12\x10\n\x08username\x18\x01 \x01(\t\x12;\n\x0fssh_client_cert\x18\x03 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12\x11\n\tcert_type\x18\x04 \x01(\t\x12@\n\x14ssh_client_cert_pass\x18\x05 \x01(\x0b\x32\".google.cloud.connectors.v1.SecretB\x06\n\x04type\"\xcf\x01\n\x12\x41uthConfigTemplate\x12\x37\n\tauth_type\x18\x01 \x01(\x0e\x32$.google.cloud.connectors.v1.AuthType\x12U\n\x19\x63onfig_variable_templates\x18\x02 \x03(\x0b\x32\x32.google.cloud.connectors.v1.ConfigVariableTemplate\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t*\x9d\x01\n\x08\x41uthType\x12\x19\n\x15\x41UTH_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rUSER_PASSWORD\x10\x01\x12\x15\n\x11OAUTH2_JWT_BEARER\x10\x02\x12\x1d\n\x19OAUTH2_CLIENT_CREDENTIALS\x10\x03\x12\x12\n\x0eSSH_PUBLIC_KEY\x10\x04\x12\x19\n\x15OAUTH2_AUTH_CODE_FLOW\x10\x05\x42s\n\x1e\x63om.google.cloud.connectors.v1B\x0f\x41uthConfigProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
11
11
 
12
- pool = Google::Protobuf::DescriptorPool.generated_pool
13
-
14
- begin
15
- pool.add_serialized_file(descriptor_data)
16
- rescue TypeError
17
- # Compatibility code: will be removed in the next major version.
18
- require 'google/protobuf/descriptor_pb'
19
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
- parsed.clear_dependency
21
- serialized = parsed.class.encode(parsed)
22
- file = pool.add_serialized_file(serialized)
23
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
- imports = [
25
- ["google.cloud.connectors.v1.ConfigVariable", "google/cloud/connectors/v1/common.proto"],
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
36
14
 
37
15
  module Google
38
16
  module Cloud
@@ -10,30 +10,8 @@ require 'google/protobuf/timestamp_pb'
10
10
 
11
11
  descriptor_data = "\n\'google/cloud/connectors/v1/common.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xab\x05\n\x16\x43onfigVariableTemplate\x12\x0b\n\x03key\x18\x01 \x01(\t\x12P\n\nvalue_type\x18\x02 \x01(\x0e\x32<.google.cloud.connectors.v1.ConfigVariableTemplate.ValueType\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x18\n\x10validation_regex\x18\x05 \x01(\t\x12\x10\n\x08required\x18\x06 \x01(\x08\x12\x39\n\nrole_grant\x18\x07 \x01(\x0b\x32%.google.cloud.connectors.v1.RoleGrant\x12<\n\x0c\x65num_options\x18\x08 \x03(\x0b\x32&.google.cloud.connectors.v1.EnumOption\x12R\n\x17\x61uthorization_code_link\x18\t \x01(\x0b\x32\x31.google.cloud.connectors.v1.AuthorizationCodeLink\x12G\n\x05state\x18\n \x01(\x0e\x32\x38.google.cloud.connectors.v1.ConfigVariableTemplate.State\x12\x13\n\x0bis_advanced\x18\x0b \x01(\x08\"t\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\x12\n\n\x06SECRET\x10\x04\x12\x08\n\x04\x45NUM\x10\x05\x12\x16\n\x12\x41UTHORIZATION_CODE\x10\x06\":\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nDEPRECATED\x10\x02\" \n\x06Secret\x12\x16\n\x0esecret_version\x18\x01 \x01(\t\".\n\nEnumOption\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43onfigVariable\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12:\n\x0csecret_value\x18\x05 \x01(\x0b\x32\".google.cloud.connectors.v1.SecretH\x00\x42\x07\n\x05value\"\xe5\x03\n\tRoleGrant\x12\x42\n\tprincipal\x18\x01 \x01(\x0e\x32/.google.cloud.connectors.v1.RoleGrant.Principal\x12\r\n\x05roles\x18\x02 \x03(\t\x12@\n\x08resource\x18\x03 \x01(\x0b\x32..google.cloud.connectors.v1.RoleGrant.Resource\x12\x1c\n\x14helper_text_template\x18\x04 \x01(\t\x1a\xea\x01\n\x08Resource\x12\x41\n\x04type\x18\x01 \x01(\x0e\x32\x33.google.cloud.connectors.v1.RoleGrant.Resource.Type\x12\x15\n\rpath_template\x18\x03 \x01(\t\"\x83\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bGCP_PROJECT\x10\x01\x12\x10\n\x0cGCP_RESOURCE\x10\x02\x12\x1c\n\x18GCP_SECRETMANAGER_SECRET\x10\x03\x12$\n GCP_SECRETMANAGER_SECRET_VERSION\x10\x04\"8\n\tPrincipal\x12\x19\n\x15PRINCIPAL_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43ONNECTOR_SA\x10\x01\"\\\n\x15\x41uthorizationCodeLink\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0e\n\x06scopes\x18\x02 \x03(\t\x12\x11\n\tclient_id\x18\x03 \x01(\t\x12\x13\n\x0b\x65nable_pkce\x18\x04 \x01(\x08*e\n\x0bLaunchStage\x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PREVIEW\x10\x01\x12\x06\n\x02GA\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x13\n\x0fPRIVATE_PREVIEW\x10\x05\x42o\n\x1e\x63om.google.cloud.connectors.v1B\x0b\x43ommonProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
12
12
 
13
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
- ]
28
- imports.each do |type_name, expected_filename|
29
- import_file = pool.lookup(type_name).file_descriptor
30
- if import_file.name != expected_filename
31
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
- end
33
- end
34
- warn "Each proto file must use a consistent fully-qualified name."
35
- warn "This will become an error in the next major version."
36
- end
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
37
15
 
38
16
  module Google
39
17
  module Cloud
@@ -17,36 +17,8 @@ require 'google/protobuf/timestamp_pb'
17
17
 
18
18
  descriptor_data = "\n+google/cloud/connectors/v1/connection.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/connectors/v1/authconfig.proto\x1a\'google/cloud/connectors/v1/common.proto\x1a\x33google/cloud/connectors/v1/destination_config.proto\x1a+google/cloud/connectors/v1/ssl_config.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd4\x08\n\nConnection\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x06labels\x18\x04 \x03(\x0b\x32\x32.google.cloud.connectors.v1.Connection.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12M\n\x11\x63onnector_version\x18\x06 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*connectors.googleapis.com/ConnectorVersion\x12\x41\n\x06status\x18\x07 \x01(\x0b\x32,.google.cloud.connectors.v1.ConnectionStatusB\x03\xe0\x41\x03\x12I\n\x10\x63onfig_variables\x18\x08 \x03(\x0b\x32*.google.cloud.connectors.v1.ConfigVariableB\x03\xe0\x41\x01\x12@\n\x0b\x61uth_config\x18\t \x01(\x0b\x32&.google.cloud.connectors.v1.AuthConfigB\x03\xe0\x41\x01\x12@\n\x0block_config\x18\n \x01(\x0b\x32&.google.cloud.connectors.v1.LockConfigB\x03\xe0\x41\x01\x12O\n\x13\x64\x65stination_configs\x18\x12 \x03(\x0b\x32-.google.cloud.connectors.v1.DestinationConfigB\x03\xe0\x41\x01\x12\x1b\n\x0eimage_location\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fservice_account\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11service_directory\x18\r \x01(\tB\x03\xe0\x41\x03\x12!\n\x14\x65nvoy_image_location\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tsuspended\x18\x11 \x01(\x08\x42\x03\xe0\x41\x01\x12@\n\x0bnode_config\x18\x13 \x01(\x0b\x32&.google.cloud.connectors.v1.NodeConfigB\x03\xe0\x41\x01\x12>\n\nssl_config\x18\x15 \x01(\x0b\x32%.google.cloud.connectors.v1.SslConfigB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:k\xea\x41h\n$connectors.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}\"<\n\nNodeConfig\x12\x16\n\x0emin_node_count\x18\x01 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x02 \x01(\x05\"\xea\x03\n\x18\x43onnectionSchemaMetadata\x12\x15\n\x08\x65ntities\x18\x01 \x03(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x63tions\x18\x02 \x03(\tB\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0crefresh_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12N\n\x05state\x18\x06 \x01(\x0e\x32:.google.cloud.connectors.v1.ConnectionSchemaMetadata.StateB\x03\xe0\x41\x03\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nREFRESHING\x10\x01\x12\x0b\n\x07UPDATED\x10\x02:\x93\x01\xea\x41\x8f\x01\n2connectors.googleapis.com/ConnectionSchemaMetadata\x12Yprojects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata\"\xf2\x02\n\x13RuntimeEntitySchema\x12\x13\n\x06\x65ntity\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x35.google.cloud.connectors.v1.RuntimeEntitySchema.FieldB\x03\xe0\x41\x03\x1a\xf9\x01\n\x05\x46ield\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x37\n\tdata_type\x18\x03 \x01(\x0e\x32$.google.cloud.connectors.v1.DataType\x12\x0b\n\x03key\x18\x04 \x01(\x08\x12\x10\n\x08readonly\x18\x05 \x01(\x08\x12\x10\n\x08nullable\x18\x06 \x01(\x08\x12-\n\rdefault_value\x18\x07 \x01(\x0b\x32\x16.google.protobuf.Value\x12\x33\n\x12\x61\x64\x64itional_details\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x8b\x04\n\x13RuntimeActionSchema\x12\x13\n\x06\x61\x63tion\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12]\n\x10input_parameters\x18\x02 \x03(\x0b\x32>.google.cloud.connectors.v1.RuntimeActionSchema.InputParameterB\x03\xe0\x41\x03\x12\\\n\x0fresult_metadata\x18\x03 \x03(\x0b\x32>.google.cloud.connectors.v1.RuntimeActionSchema.ResultMetadataB\x03\xe0\x41\x03\x1a\xb2\x01\n\x0eInputParameter\x12\x11\n\tparameter\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x37\n\tdata_type\x18\x03 \x01(\x0e\x32$.google.cloud.connectors.v1.DataType\x12\x10\n\x08nullable\x18\x04 \x01(\x08\x12-\n\rdefault_value\x18\x05 \x01(\x0b\x32\x16.google.protobuf.Value\x1am\n\x0eResultMetadata\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x37\n\tdata_type\x18\x03 \x01(\x0e\x32$.google.cloud.connectors.v1.DataType\",\n\nLockConfig\x12\x0e\n\x06locked\x18\x01 \x01(\x08\x12\x0e\n\x06reason\x18\x02 \x01(\t\"\xd9\x01\n\x16ListConnectionsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$connectors.googleapis.com/Connection\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\x12\x38\n\x04view\x18\x06 \x01(\x0e\x32*.google.cloud.connectors.v1.ConnectionView\"\x84\x01\n\x17ListConnectionsResponse\x12;\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32&.google.cloud.connectors.v1.Connection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x8c\x01\n\x14GetConnectionRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$connectors.googleapis.com/Connection\x12\x38\n\x04view\x18\x02 \x01(\x0e\x32*.google.cloud.connectors.v1.ConnectionView\"\xb4\x01\n\x17\x43reateConnectionRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$connectors.googleapis.com/Connection\x12\x1a\n\rconnection_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\nconnection\x18\x03 \x01(\x0b\x32&.google.cloud.connectors.v1.ConnectionB\x03\xe0\x41\x02\"\x90\x01\n\x17UpdateConnectionRequest\x12?\n\nconnection\x18\x01 \x01(\x0b\x32&.google.cloud.connectors.v1.ConnectionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"U\n\x17\x44\x65leteConnectionRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$connectors.googleapis.com/Connection\"n\n\"GetConnectionSchemaMetadataRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2connectors.googleapis.com/ConnectionSchemaMetadata\"r\n&RefreshConnectionSchemaMetadataRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2connectors.googleapis.com/ConnectionSchemaMetadata\"\x9b\x01\n\x1fListRuntimeEntitySchemasRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$connectors.googleapis.com/Connection\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x02\"\x8c\x01\n ListRuntimeEntitySchemasResponse\x12O\n\x16runtime_entity_schemas\x18\x01 \x03(\x0b\x32/.google.cloud.connectors.v1.RuntimeEntitySchema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9b\x01\n\x1fListRuntimeActionSchemasRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$connectors.googleapis.com/Connection\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x02\"\x8c\x01\n ListRuntimeActionSchemasResponse\x12O\n\x16runtime_action_schemas\x18\x01 \x03(\x0b\x32/.google.cloud.connectors.v1.RuntimeActionSchema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x86\x02\n\x10\x43onnectionStatus\x12\x41\n\x05state\x18\x01 \x01(\x0e\x32\x32.google.cloud.connectors.v1.ConnectionStatus.State\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\t\"\x89\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08INACTIVE\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\x1a\n\x16\x41UTHORIZATION_REQUIRED\x10\x07*\xae\x08\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\rDATA_TYPE_INT\x10\x01\x1a\x02\x08\x01\x12\x16\n\x12\x44\x41TA_TYPE_SMALLINT\x10\x02\x12\x14\n\x10\x44\x41TA_TYPE_DOUBLE\x10\x03\x12\x12\n\x0e\x44\x41TA_TYPE_DATE\x10\x04\x12\x1a\n\x12\x44\x41TA_TYPE_DATETIME\x10\x05\x1a\x02\x08\x01\x12\x12\n\x0e\x44\x41TA_TYPE_TIME\x10\x06\x12\x18\n\x10\x44\x41TA_TYPE_STRING\x10\x07\x1a\x02\x08\x01\x12\x16\n\x0e\x44\x41TA_TYPE_LONG\x10\x08\x1a\x02\x08\x01\x12\x15\n\x11\x44\x41TA_TYPE_BOOLEAN\x10\t\x12\x15\n\x11\x44\x41TA_TYPE_DECIMAL\x10\n\x12\x16\n\x0e\x44\x41TA_TYPE_UUID\x10\x0b\x1a\x02\x08\x01\x12\x12\n\x0e\x44\x41TA_TYPE_BLOB\x10\x0c\x12\x11\n\rDATA_TYPE_BIT\x10\r\x12\x15\n\x11\x44\x41TA_TYPE_TINYINT\x10\x0e\x12\x15\n\x11\x44\x41TA_TYPE_INTEGER\x10\x0f\x12\x14\n\x10\x44\x41TA_TYPE_BIGINT\x10\x10\x12\x13\n\x0f\x44\x41TA_TYPE_FLOAT\x10\x11\x12\x12\n\x0e\x44\x41TA_TYPE_REAL\x10\x12\x12\x15\n\x11\x44\x41TA_TYPE_NUMERIC\x10\x13\x12\x12\n\x0e\x44\x41TA_TYPE_CHAR\x10\x14\x12\x15\n\x11\x44\x41TA_TYPE_VARCHAR\x10\x15\x12\x19\n\x15\x44\x41TA_TYPE_LONGVARCHAR\x10\x16\x12\x17\n\x13\x44\x41TA_TYPE_TIMESTAMP\x10\x17\x12\x13\n\x0f\x44\x41TA_TYPE_NCHAR\x10\x18\x12\x16\n\x12\x44\x41TA_TYPE_NVARCHAR\x10\x19\x12\x1a\n\x16\x44\x41TA_TYPE_LONGNVARCHAR\x10\x1a\x12\x12\n\x0e\x44\x41TA_TYPE_NULL\x10\x1b\x12\x13\n\x0f\x44\x41TA_TYPE_OTHER\x10\x1c\x12\x19\n\x15\x44\x41TA_TYPE_JAVA_OBJECT\x10\x1d\x12\x16\n\x12\x44\x41TA_TYPE_DISTINCT\x10\x1e\x12\x14\n\x10\x44\x41TA_TYPE_STRUCT\x10\x1f\x12\x13\n\x0f\x44\x41TA_TYPE_ARRAY\x10 \x12\x12\n\x0e\x44\x41TA_TYPE_CLOB\x10!\x12\x11\n\rDATA_TYPE_REF\x10\"\x12\x16\n\x12\x44\x41TA_TYPE_DATALINK\x10#\x12\x13\n\x0f\x44\x41TA_TYPE_ROWID\x10$\x12\x14\n\x10\x44\x41TA_TYPE_BINARY\x10%\x12\x17\n\x13\x44\x41TA_TYPE_VARBINARY\x10&\x12\x1b\n\x17\x44\x41TA_TYPE_LONGVARBINARY\x10\'\x12\x13\n\x0f\x44\x41TA_TYPE_NCLOB\x10(\x12\x14\n\x10\x44\x41TA_TYPE_SQLXML\x10)\x12\x18\n\x14\x44\x41TA_TYPE_REF_CURSOR\x10*\x12 \n\x1c\x44\x41TA_TYPE_TIME_WITH_TIMEZONE\x10+\x12%\n!DATA_TYPE_TIMESTAMP_WITH_TIMEZONE\x10,*F\n\x0e\x43onnectionView\x12\x1f\n\x1b\x43ONNECTION_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42s\n\x1e\x63om.google.cloud.connectors.v1B\x0f\x43onnectionProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
19
19
 
20
- pool = Google::Protobuf::DescriptorPool.generated_pool
21
-
22
- begin
23
- pool.add_serialized_file(descriptor_data)
24
- rescue TypeError
25
- # Compatibility code: will be removed in the next major version.
26
- require 'google/protobuf/descriptor_pb'
27
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
- parsed.clear_dependency
29
- serialized = parsed.class.encode(parsed)
30
- file = pool.add_serialized_file(serialized)
31
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
- imports = [
33
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
- ["google.cloud.connectors.v1.ConfigVariable", "google/cloud/connectors/v1/common.proto"],
35
- ["google.cloud.connectors.v1.AuthConfig", "google/cloud/connectors/v1/authconfig.proto"],
36
- ["google.cloud.connectors.v1.DestinationConfig", "google/cloud/connectors/v1/destination_config.proto"],
37
- ["google.cloud.connectors.v1.SslConfig", "google/cloud/connectors/v1/ssl_config.proto"],
38
- ["google.protobuf.Value", "google/protobuf/struct.proto"],
39
- ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
40
- ]
41
- imports.each do |type_name, expected_filename|
42
- import_file = pool.lookup(type_name).file_descriptor
43
- if import_file.name != expected_filename
44
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
45
- end
46
- end
47
- warn "Each proto file must use a consistent fully-qualified name."
48
- warn "This will become an error in the next major version."
49
- end
20
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
21
+ pool.add_serialized_file(descriptor_data)
50
22
 
51
23
  module Google
52
24
  module Cloud
@@ -12,30 +12,8 @@ require 'google/protobuf/timestamp_pb'
12
12
 
13
13
  descriptor_data = "\n*google/cloud/connectors/v1/connector.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/connectors/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd6\x04\n\tConnector\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18\x04 \x03(\x0b\x32\x31.google.cloud.connectors.v1.Connector.LabelsEntryB\x03\xe0\x41\x03\x12\x1e\n\x11\x64ocumentation_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x65xternal_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13web_assets_location\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x0claunch_stage\x18\x0b \x01(\x0e\x32\'.google.cloud.connectors.v1.LaunchStageB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:}\xea\x41z\n#connectors.googleapis.com/Connector\x12Sprojects/{project}/locations/{location}/providers/{provider}/connectors/{connector}\"P\n\x13GetConnectorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#connectors.googleapis.com/Connector\"z\n\x15ListConnectorsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"connectors.googleapis.com/Provider\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x81\x01\n\x16ListConnectorsResponse\x12\x39\n\nconnectors\x18\x01 \x03(\x0b\x32%.google.cloud.connectors.v1.Connector\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\tBr\n\x1e\x63om.google.cloud.connectors.v1B\x0e\x43onnectorProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
14
14
 
15
- pool = Google::Protobuf::DescriptorPool.generated_pool
16
-
17
- begin
18
- pool.add_serialized_file(descriptor_data)
19
- rescue TypeError
20
- # Compatibility code: will be removed in the next major version.
21
- require 'google/protobuf/descriptor_pb'
22
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
- parsed.clear_dependency
24
- serialized = parsed.class.encode(parsed)
25
- file = pool.add_serialized_file(serialized)
26
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
- imports = [
28
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
- ]
30
- imports.each do |type_name, expected_filename|
31
- import_file = pool.lookup(type_name).file_descriptor
32
- if import_file.name != expected_filename
33
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
- end
35
- end
36
- warn "Each proto file must use a consistent fully-qualified name."
37
- warn "This will become an error in the next major version."
38
- end
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
39
17
 
40
18
  module Google
41
19
  module Cloud
@@ -14,33 +14,8 @@ require 'google/protobuf/timestamp_pb'
14
14
 
15
15
  descriptor_data = "\n2google/cloud/connectors/v1/connector_version.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/connectors/v1/authconfig.proto\x1a\'google/cloud/connectors/v1/common.proto\x1a+google/cloud/connectors/v1/ssl_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\x08\n\x10\x43onnectorVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12M\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.cloud.connectors.v1.ConnectorVersion.LabelsEntryB\x03\xe0\x41\x03\x12\x42\n\x0claunch_stage\x18\x06 \x01(\x0e\x32\'.google.cloud.connectors.v1.LaunchStageB\x03\xe0\x41\x03\x12\x1c\n\x0frelease_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12R\n\x15\x61uth_config_templates\x18\x08 \x03(\x0b\x32..google.cloud.connectors.v1.AuthConfigTemplateB\x03\xe0\x41\x03\x12Z\n\x19\x63onfig_variable_templates\x18\t \x03(\x0b\x32\x32.google.cloud.connectors.v1.ConfigVariableTemplateB\x03\xe0\x41\x03\x12]\n\x1asupported_runtime_features\x18\n \x01(\x0b\x32\x34.google.cloud.connectors.v1.SupportedRuntimeFeaturesB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12S\n\x15\x65gress_control_config\x18\x0c \x01(\x0b\x32/.google.cloud.connectors.v1.EgressControlConfigB\x03\xe0\x41\x03\x12?\n\x0brole_grants\x18\x0e \x03(\x0b\x32%.google.cloud.connectors.v1.RoleGrantB\x03\xe0\x41\x03\x12>\n\nrole_grant\x18\x0f \x01(\x0b\x32%.google.cloud.connectors.v1.RoleGrantB\x03\xe0\x41\x03\x12O\n\x13ssl_config_template\x18\x11 \x01(\x0b\x32-.google.cloud.connectors.v1.SslConfigTemplateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x98\x01\xea\x41\x94\x01\n*connectors.googleapis.com/ConnectorVersion\x12\x66projects/{project}/locations/{location}/providers/{provider}/connectors/{connector}/versions/{version}\"\x9e\x01\n\x1aGetConnectorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*connectors.googleapis.com/ConnectorVersion\x12>\n\x04view\x18\x02 \x01(\x0e\x32\x30.google.cloud.connectors.v1.ConnectorVersionView\"\xc2\x01\n\x1cListConnectorVersionsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#connectors.googleapis.com/Connector\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12>\n\x04view\x18\x04 \x01(\x0e\x32\x30.google.cloud.connectors.v1.ConnectorVersionView\"\x97\x01\n\x1dListConnectorVersionsResponse\x12H\n\x12\x63onnector_versions\x18\x01 \x03(\x0b\x32,.google.cloud.connectors.v1.ConnectorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"W\n\x18SupportedRuntimeFeatures\x12\x13\n\x0b\x65ntity_apis\x18\x01 \x01(\x08\x12\x13\n\x0b\x61\x63tion_apis\x18\x02 \x01(\x08\x12\x11\n\tsql_query\x18\x03 \x01(\x08\"\x84\x01\n\x13\x45gressControlConfig\x12\x12\n\x08\x62\x61\x63kends\x18\x01 \x01(\tH\x00\x12G\n\x10\x65xtraction_rules\x18\x02 \x01(\x0b\x32+.google.cloud.connectors.v1.ExtractionRulesH\x00\x42\x10\n\x0eoneof_backends\"V\n\x0f\x45xtractionRules\x12\x43\n\x0f\x65xtraction_rule\x18\x01 \x03(\x0b\x32*.google.cloud.connectors.v1.ExtractionRule\"\x95\x02\n\x0e\x45xtractionRule\x12\x41\n\x06source\x18\x01 \x01(\x0b\x32\x31.google.cloud.connectors.v1.ExtractionRule.Source\x12\x18\n\x10\x65xtraction_regex\x18\x02 \x01(\t\x1a\x66\n\x06Source\x12J\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x35.google.cloud.connectors.v1.ExtractionRule.SourceType\x12\x10\n\x08\x66ield_id\x18\x02 \x01(\t\">\n\nSourceType\x12\x1b\n\x17SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43ONFIG_VARIABLE\x10\x01*\x81\x01\n\x14\x43onnectorVersionView\x12&\n\"CONNECTOR_VERSION_VIEW_UNSPECIFIED\x10\x00\x12 \n\x1c\x43ONNECTOR_VERSION_VIEW_BASIC\x10\x01\x12\x1f\n\x1b\x43ONNECTOR_VERSION_VIEW_FULL\x10\x02\x42y\n\x1e\x63om.google.cloud.connectors.v1B\x15\x43onnectorVersionProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
16
16
 
17
- pool = Google::Protobuf::DescriptorPool.generated_pool
18
-
19
- begin
20
- pool.add_serialized_file(descriptor_data)
21
- rescue TypeError
22
- # Compatibility code: will be removed in the next major version.
23
- require 'google/protobuf/descriptor_pb'
24
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
- parsed.clear_dependency
26
- serialized = parsed.class.encode(parsed)
27
- file = pool.add_serialized_file(serialized)
28
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
- imports = [
30
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
- ["google.cloud.connectors.v1.AuthConfigTemplate", "google/cloud/connectors/v1/authconfig.proto"],
32
- ["google.cloud.connectors.v1.ConfigVariableTemplate", "google/cloud/connectors/v1/common.proto"],
33
- ["google.cloud.connectors.v1.SslConfigTemplate", "google/cloud/connectors/v1/ssl_config.proto"],
34
- ]
35
- imports.each do |type_name, expected_filename|
36
- import_file = pool.lookup(type_name).file_descriptor
37
- if import_file.name != expected_filename
38
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
- end
40
- end
41
- warn "Each proto file must use a consistent fully-qualified name."
42
- warn "This will become an error in the next major version."
43
- end
17
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
18
+ pool.add_serialized_file(descriptor_data)
44
19
 
45
20
  module Google
46
21
  module Cloud
@@ -1951,8 +1951,6 @@ module Google
1951
1951
  # @return [::String,nil]
1952
1952
  # @!attribute [rw] credentials
1953
1953
  # Credentials to send with calls. You may provide any of the following types:
1954
- # * (`String`) The path to a service account key file in JSON format
1955
- # * (`Hash`) A service account key as a Hash
1956
1954
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1957
1955
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1958
1956
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1961,7 +1959,26 @@ module Google
1961
1959
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1962
1960
  # * (`nil`) indicating no credentials
1963
1961
  #
1964
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1962
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1963
+ # is deprecated. Providing an unvalidated credential configuration to
1964
+ # Google APIs can compromise the security of your systems and data.
1965
+ #
1966
+ # @example
1967
+ #
1968
+ # # The recommended way to provide credentials is to use the `make_creds` method
1969
+ # # on the appropriate credentials class for your environment.
1970
+ #
1971
+ # require "googleauth"
1972
+ #
1973
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1974
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1975
+ # )
1976
+ #
1977
+ # client = ::Google::Cloud::Connectors::V1::Connectors::Client.new do |config|
1978
+ # config.credentials = credentials
1979
+ # end
1980
+ #
1981
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1965
1982
  # external source for authentication to Google Cloud, you must validate it before
1966
1983
  # providing it to a Google API client library. Providing an unvalidated credential
1967
1984
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -19,29 +19,8 @@ require 'google/protobuf/empty_pb'
19
19
 
20
20
  descriptor_data = "\n3google/cloud/connectors/v1/connectors_service.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\'google/cloud/connectors/v1/common.proto\x1a+google/cloud/connectors/v1/connection.proto\x1a*google/cloud/connectors/v1/connector.proto\x1a\x32google/cloud/connectors/v1/connector_version.proto\x1a)google/cloud/connectors/v1/provider.proto\x1a(google/cloud/connectors/v1/runtime.proto\x1a)google/cloud/connectors/v1/settings.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto2\xe9\x1c\n\nConnectors\x12\xbc\x01\n\x0fListConnections\x12\x32.google.cloud.connectors.v1.ListConnectionsRequest\x1a\x33.google.cloud.connectors.v1.ListConnectionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/connections\x12\xa9\x01\n\rGetConnection\x12\x30.google.cloud.connectors.v1.GetConnectionRequest\x1a&.google.cloud.connectors.v1.Connection\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/connections/*}\x12\xf0\x01\n\x10\x43reateConnection\x12\x33.google.cloud.connectors.v1.CreateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1f\n\nConnection\x12\x11OperationMetadata\xda\x41\x1fparent,connection,connection_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/connections:\nconnection\x12\xf2\x01\n\x10UpdateConnection\x12\x33.google.cloud.connectors.v1.UpdateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1f\n\nConnection\x12\x11OperationMetadata\xda\x41\x16\x63onnection,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{connection.name=projects/*/locations/*/connections/*}:\nconnection\x12\xd3\x01\n\x10\x44\x65leteConnection\x12\x33.google.cloud.connectors.v1.DeleteConnectionRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/connections/*}\x12\xb4\x01\n\rListProviders\x12\x30.google.cloud.connectors.v1.ListProvidersRequest\x1a\x31.google.cloud.connectors.v1.ListProvidersResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/providers\x12\xa1\x01\n\x0bGetProvider\x12..google.cloud.connectors.v1.GetProviderRequest\x1a$.google.cloud.connectors.v1.Provider\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/providers/*}\x12\xc4\x01\n\x0eListConnectors\x12\x31.google.cloud.connectors.v1.ListConnectorsRequest\x1a\x32.google.cloud.connectors.v1.ListConnectorsResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/providers/*}/connectors\x12\xb1\x01\n\x0cGetConnector\x12/.google.cloud.connectors.v1.GetConnectorRequest\x1a%.google.cloud.connectors.v1.Connector\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1/{name=projects/*/locations/*/providers/*/connectors/*}\x12\xe4\x01\n\x15ListConnectorVersions\x12\x38.google.cloud.connectors.v1.ListConnectorVersionsRequest\x1a\x39.google.cloud.connectors.v1.ListConnectorVersionsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/providers/*/connectors/*}/versions\x12\xd1\x01\n\x13GetConnectorVersion\x12\x36.google.cloud.connectors.v1.GetConnectorVersionRequest\x1a,.google.cloud.connectors.v1.ConnectorVersion\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/providers/*/connectors/*/versions/*}\x12\xec\x01\n\x1bGetConnectionSchemaMetadata\x12>.google.cloud.connectors.v1.GetConnectionSchemaMetadataRequest\x1a\x34.google.cloud.connectors.v1.ConnectionSchemaMetadata\"W\xda\x41\x04name\x82\xd3\xe4\x93\x02J\x12H/v1/{name=projects/*/locations/*/connections/*/connectionSchemaMetadata}\x12\x99\x02\n\x1fRefreshConnectionSchemaMetadata\x12\x42.google.cloud.connectors.v1.RefreshConnectionSchemaMetadataRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\xca\x41-\n\x18\x43onnectionSchemaMetadata\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02U\"P/v1/{name=projects/*/locations/*/connections/*/connectionSchemaMetadata}:refresh:\x01*\x12\xee\x01\n\x18ListRuntimeEntitySchemas\x12;.google.cloud.connectors.v1.ListRuntimeEntitySchemasRequest\x1a<.google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/connections/*}/runtimeEntitySchemas\x12\xee\x01\n\x18ListRuntimeActionSchemas\x12;.google.cloud.connectors.v1.ListRuntimeActionSchemasRequest\x1a<.google.cloud.connectors.v1.ListRuntimeActionSchemasResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/connections/*}/runtimeActionSchemas\x12\xb2\x01\n\x10GetRuntimeConfig\x12\x33.google.cloud.connectors.v1.GetRuntimeConfigRequest\x1a).google.cloud.connectors.v1.RuntimeConfig\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/runtimeConfig}\x12\xaf\x01\n\x11GetGlobalSettings\x12\x34.google.cloud.connectors.v1.GetGlobalSettingsRequest\x1a$.google.cloud.connectors.v1.Settings\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/global/settings}\x1aM\xca\x41\x19\x63onnectors.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBz\n\x1e\x63om.google.cloud.connectors.v1B\x16\x43onnectorsServiceProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
21
21
 
22
- pool = Google::Protobuf::DescriptorPool.generated_pool
23
-
24
- begin
25
- pool.add_serialized_file(descriptor_data)
26
- rescue TypeError
27
- # Compatibility code: will be removed in the next major version.
28
- require 'google/protobuf/descriptor_pb'
29
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
30
- parsed.clear_dependency
31
- serialized = parsed.class.encode(parsed)
32
- file = pool.add_serialized_file(serialized)
33
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
34
- imports = [
35
- ]
36
- imports.each do |type_name, expected_filename|
37
- import_file = pool.lookup(type_name).file_descriptor
38
- if import_file.name != expected_filename
39
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
- end
41
- end
42
- warn "Each proto file must use a consistent fully-qualified name."
43
- warn "This will become an error in the next major version."
44
- end
22
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
23
+ pool.add_serialized_file(descriptor_data)
45
24
 
46
25
  module Google
47
26
  module Cloud
@@ -7,29 +7,8 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n3google/cloud/connectors/v1/destination_config.proto\x12\x1agoogle.cloud.connectors.v1\"_\n\x11\x44\x65stinationConfig\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x0c\x64\x65stinations\x18\x02 \x03(\x0b\x32\'.google.cloud.connectors.v1.Destination\"X\n\x0b\x44\x65stination\x12\x1c\n\x12service_attachment\x18\x01 \x01(\tH\x00\x12\x0e\n\x04host\x18\x02 \x01(\tH\x00\x12\x0c\n\x04port\x18\x03 \x01(\x05\x42\r\n\x0b\x64\x65stinationBBP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
9
9
 
10
- pool = Google::Protobuf::DescriptorPool.generated_pool
11
-
12
- begin
13
- pool.add_serialized_file(descriptor_data)
14
- rescue TypeError
15
- # Compatibility code: will be removed in the next major version.
16
- require 'google/protobuf/descriptor_pb'
17
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
- parsed.clear_dependency
19
- serialized = parsed.class.encode(parsed)
20
- file = pool.add_serialized_file(serialized)
21
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
- imports = [
23
- ]
24
- imports.each do |type_name, expected_filename|
25
- import_file = pool.lookup(type_name).file_descriptor
26
- if import_file.name != expected_filename
27
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
- end
29
- end
30
- warn "Each proto file must use a consistent fully-qualified name."
31
- warn "This will become an error in the next major version."
32
- end
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Google
35
14
  module Cloud
@@ -12,30 +12,8 @@ require 'google/protobuf/timestamp_pb'
12
12
 
13
13
  descriptor_data = "\n)google/cloud/connectors/v1/provider.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/connectors/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbc\x04\n\x08Provider\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x06labels\x18\x04 \x03(\x0b\x32\x30.google.cloud.connectors.v1.Provider.LabelsEntryB\x03\xe0\x41\x03\x12\x1e\n\x11\x64ocumentation_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x65xternal_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13web_assets_location\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x0claunch_stage\x18\x0b \x01(\x0e\x32\'.google.cloud.connectors.v1.LaunchStageB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:e\xea\x41\x62\n\"connectors.googleapis.com/Provider\x12<projects/{project}/locations/{location}/providers/{provider}\"N\n\x12GetProviderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"connectors.googleapis.com/Provider\"y\n\x14ListProvidersRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"connectors.googleapis.com/Provider\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\n\x15ListProvidersResponse\x12\x37\n\tproviders\x18\x01 \x03(\x0b\x32$.google.cloud.connectors.v1.Provider\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\tBq\n\x1e\x63om.google.cloud.connectors.v1B\rProviderProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
14
14
 
15
- pool = Google::Protobuf::DescriptorPool.generated_pool
16
-
17
- begin
18
- pool.add_serialized_file(descriptor_data)
19
- rescue TypeError
20
- # Compatibility code: will be removed in the next major version.
21
- require 'google/protobuf/descriptor_pb'
22
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
- parsed.clear_dependency
24
- serialized = parsed.class.encode(parsed)
25
- file = pool.add_serialized_file(serialized)
26
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
- imports = [
28
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
- ]
30
- imports.each do |type_name, expected_filename|
31
- import_file = pool.lookup(type_name).file_descriptor
32
- if import_file.name != expected_filename
33
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
- end
35
- end
36
- warn "Each proto file must use a consistent fully-qualified name."
37
- warn "This will become an error in the next major version."
38
- end
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
39
17
 
40
18
  module Google
41
19
  module Cloud
@@ -10,29 +10,8 @@ require 'google/api/resource_pb'
10
10
 
11
11
  descriptor_data = "\n(google/cloud/connectors/v1/runtime.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"X\n\x17GetRuntimeConfigRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'connectors.googleapis.com/RuntimeConfig\"\xc7\x04\n\rRuntimeConfig\x12\x18\n\x0blocation_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x63onnd_topic\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12\x63onnd_subscription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13\x63ontrol_plane_topic\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\'\n\x1a\x63ontrol_plane_subscription\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10runtime_endpoint\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x07 \x01(\x0e\x32/.google.cloud.connectors.v1.RuntimeConfig.StateB\x03\xe0\x41\x03\x12\x1e\n\x11schema_gcs_bucket\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11service_directory\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x03\"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x08INACTIVE\x10\x01\x1a\x02\x08\x01\x12\x12\n\nACTIVATING\x10\x02\x1a\x02\x08\x01\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08\x43REATING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\x0c\n\x08UPDATING\x10\x06:c\xea\x41`\n\'connectors.googleapis.com/RuntimeConfig\x12\x35projects/{project}/locations/{location}/runtimeConfigBp\n\x1e\x63om.google.cloud.connectors.v1B\x0cRuntimeProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
12
12
 
13
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
36
15
 
37
16
  module Google
38
17
  module Cloud
@@ -10,29 +10,8 @@ require 'google/api/resource_pb'
10
10
 
11
11
  descriptor_data = "\n)google/cloud/connectors/v1/settings.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"T\n\x18GetGlobalSettingsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"connectors.googleapis.com/Settings\"\x9b\x01\n\x08Settings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05vpcsc\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04payg\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03:U\xea\x41R\n\"connectors.googleapis.com/Settings\x12,projects/{project}/locations/global/settingsBq\n\x1e\x63om.google.cloud.connectors.v1B\rSettingsProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
12
12
 
13
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
36
15
 
37
16
  module Google
38
17
  module Cloud
@@ -9,30 +9,8 @@ require 'google/cloud/connectors/v1/common_pb'
9
9
 
10
10
  descriptor_data = "\n+google/cloud/connectors/v1/ssl_config.proto\x12\x1agoogle.cloud.connectors.v1\x1a\'google/cloud/connectors/v1/common.proto\"\xb6\x02\n\x11SslConfigTemplate\x12\x35\n\x08ssl_type\x18\x01 \x01(\x0e\x32#.google.cloud.connectors.v1.SslType\x12\x18\n\x10is_tls_mandatory\x18\x02 \x01(\x08\x12>\n\x10server_cert_type\x18\x03 \x03(\x0e\x32$.google.cloud.connectors.v1.CertType\x12>\n\x10\x63lient_cert_type\x18\x04 \x03(\x0e\x32$.google.cloud.connectors.v1.CertType\x12P\n\x14\x61\x64\x64itional_variables\x18\x05 \x03(\x0b\x32\x32.google.cloud.connectors.v1.ConfigVariableTemplate\"\xa2\x05\n\tSslConfig\x12\x31\n\x04type\x18\x01 \x01(\x0e\x32#.google.cloud.connectors.v1.SslType\x12\x45\n\x0btrust_model\x18\x02 \x01(\x0e\x32\x30.google.cloud.connectors.v1.SslConfig.TrustModel\x12\x46\n\x1aprivate_server_certificate\x18\x03 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12>\n\x12\x63lient_certificate\x18\x04 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12>\n\x12\x63lient_private_key\x18\x05 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12\x43\n\x17\x63lient_private_key_pass\x18\x06 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12>\n\x10server_cert_type\x18\x07 \x01(\x0e\x32$.google.cloud.connectors.v1.CertType\x12>\n\x10\x63lient_cert_type\x18\x08 \x01(\x0e\x32$.google.cloud.connectors.v1.CertType\x12\x0f\n\x07use_ssl\x18\t \x01(\x08\x12H\n\x14\x61\x64\x64itional_variables\x18\n \x03(\x0b\x32*.google.cloud.connectors.v1.ConfigVariable\"3\n\nTrustModel\x12\n\n\x06PUBLIC\x10\x00\x12\x0b\n\x07PRIVATE\x10\x01\x12\x0c\n\x08INSECURE\x10\x02*6\n\x07SslType\x12\x18\n\x14SSL_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03TLS\x10\x01\x12\x08\n\x04MTLS\x10\x02*.\n\x08\x43\x65rtType\x12\x19\n\x15\x43\x45RT_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03PEM\x10\x01\x42r\n\x1e\x63om.google.cloud.connectors.v1B\x0eSslConfigProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\x06proto3"
11
11
 
12
- pool = Google::Protobuf::DescriptorPool.generated_pool
13
-
14
- begin
15
- pool.add_serialized_file(descriptor_data)
16
- rescue TypeError
17
- # Compatibility code: will be removed in the next major version.
18
- require 'google/protobuf/descriptor_pb'
19
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
- parsed.clear_dependency
21
- serialized = parsed.class.encode(parsed)
22
- file = pool.add_serialized_file(serialized)
23
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
- imports = [
25
- ["google.cloud.connectors.v1.ConfigVariableTemplate", "google/cloud/connectors/v1/common.proto"],
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
36
14
 
37
15
  module Google
38
16
  module Cloud
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Connectors
23
23
  module V1
24
- VERSION = "1.3.0"
24
+ VERSION = "1.4.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-connectors-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - ">="
142
142
  - !ruby/object:Gem::Version
143
- version: '3.1'
143
+ version: '3.2'
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
146
  - - ">="