google-cloud-connectors-v1 0.a → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +141 -8
- data/lib/google/cloud/connectors/v1/authconfig_pb.rb +52 -0
- data/lib/google/cloud/connectors/v1/bindings_override.rb +159 -0
- data/lib/google/cloud/connectors/v1/common_pb.rb +58 -0
- data/lib/google/cloud/connectors/v1/connection_pb.rb +84 -0
- data/lib/google/cloud/connectors/v1/connector_pb.rb +51 -0
- data/lib/google/cloud/connectors/v1/connector_version_pb.rb +63 -0
- data/lib/google/cloud/connectors/v1/connectors/client.rb +2189 -0
- data/lib/google/cloud/connectors/v1/connectors/credentials.rb +47 -0
- data/lib/google/cloud/connectors/v1/connectors/operations.rb +809 -0
- data/lib/google/cloud/connectors/v1/connectors/paths.rb +182 -0
- data/lib/google/cloud/connectors/v1/connectors/rest/client.rb +2049 -0
- data/lib/google/cloud/connectors/v1/connectors/rest/operations.rb +902 -0
- data/lib/google/cloud/connectors/v1/connectors/rest/service_stub.rb +1075 -0
- data/lib/google/cloud/connectors/v1/connectors/rest.rb +54 -0
- data/lib/google/cloud/connectors/v1/connectors.rb +56 -0
- data/lib/google/cloud/connectors/v1/connectors_service_pb.rb +53 -0
- data/lib/google/cloud/connectors/v1/connectors_service_services_pb.rb +80 -0
- data/lib/google/cloud/connectors/v1/destination_config_pb.rb +43 -0
- data/lib/google/cloud/connectors/v1/provider_pb.rb +51 -0
- data/lib/google/cloud/connectors/v1/rest.rb +38 -0
- data/lib/google/cloud/connectors/v1/runtime_pb.rb +47 -0
- data/lib/google/cloud/connectors/v1/settings_pb.rb +46 -0
- data/lib/google/cloud/connectors/v1/ssl_config_pb.rb +49 -0
- data/lib/google/cloud/connectors/v1/version.rb +7 -2
- data/lib/google/cloud/connectors/v1.rb +45 -0
- data/lib/google-cloud-connectors-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +420 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/connectors/v1/authconfig.rb +165 -0
- data/proto_docs/google/cloud/connectors/v1/common.rb +287 -0
- data/proto_docs/google/cloud/connectors/v1/connection.rb +678 -0
- data/proto_docs/google/cloud/connectors/v1/connector.rb +119 -0
- data/proto_docs/google/cloud/connectors/v1/connector_version.rb +234 -0
- data/proto_docs/google/cloud/connectors/v1/destination_config.rb +53 -0
- data/proto_docs/google/cloud/connectors/v1/provider.rb +118 -0
- data/proto_docs/google/cloud/connectors/v1/runtime.rb +106 -0
- data/proto_docs/google/cloud/connectors/v1/settings.rb +51 -0
- data/proto_docs/google/cloud/connectors/v1/ssl_config.rb +117 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +136 -10
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/connectors/v1/version"
|
|
24
|
+
require "google/cloud/connectors/v1/bindings_override"
|
|
25
|
+
|
|
26
|
+
require "google/cloud/connectors/v1/connectors/credentials"
|
|
27
|
+
require "google/cloud/connectors/v1/connectors/paths"
|
|
28
|
+
require "google/cloud/connectors/v1/connectors/rest/operations"
|
|
29
|
+
require "google/cloud/connectors/v1/connectors/rest/client"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module Connectors
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Connectors is the interface for managing Connectors.
|
|
37
|
+
#
|
|
38
|
+
# To load this service and instantiate a REST client:
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/connectors/v1/connectors/rest"
|
|
41
|
+
# client = ::Google::Cloud::Connectors::V1::Connectors::Rest::Client.new
|
|
42
|
+
#
|
|
43
|
+
module Connectors
|
|
44
|
+
# Client for the REST transport
|
|
45
|
+
module Rest
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
54
|
+
require "google/cloud/connectors/v1/connectors/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/connectors/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/connectors/v1/connectors/credentials"
|
|
26
|
+
require "google/cloud/connectors/v1/connectors/paths"
|
|
27
|
+
require "google/cloud/connectors/v1/connectors/operations"
|
|
28
|
+
require "google/cloud/connectors/v1/connectors/client"
|
|
29
|
+
require "google/cloud/connectors/v1/connectors/rest"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module Connectors
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Connectors is the interface for managing Connectors.
|
|
37
|
+
#
|
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/connectors/v1/connectors"
|
|
41
|
+
# client = ::Google::Cloud::Connectors::V1::Connectors::Client.new
|
|
42
|
+
#
|
|
43
|
+
# @example Load this service and instantiate a REST client
|
|
44
|
+
#
|
|
45
|
+
# require "google/cloud/connectors/v1/connectors/rest"
|
|
46
|
+
# client = ::Google::Cloud::Connectors::V1::Connectors::Rest::Client.new
|
|
47
|
+
#
|
|
48
|
+
module Connectors
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
helper_path = ::File.join __dir__, "connectors", "helpers.rb"
|
|
56
|
+
require "google/cloud/connectors/v1/connectors/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/connectors/v1/connectors_service.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/cloud/connectors/v1/common_pb'
|
|
10
|
+
require 'google/cloud/connectors/v1/connection_pb'
|
|
11
|
+
require 'google/cloud/connectors/v1/connector_pb'
|
|
12
|
+
require 'google/cloud/connectors/v1/connector_version_pb'
|
|
13
|
+
require 'google/cloud/connectors/v1/provider_pb'
|
|
14
|
+
require 'google/cloud/connectors/v1/runtime_pb'
|
|
15
|
+
require 'google/cloud/connectors/v1/settings_pb'
|
|
16
|
+
require 'google/longrunning/operations_pb'
|
|
17
|
+
require 'google/protobuf/empty_pb'
|
|
18
|
+
|
|
19
|
+
|
|
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
|
+
|
|
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
|
|
45
|
+
|
|
46
|
+
module Google
|
|
47
|
+
module Cloud
|
|
48
|
+
module Connectors
|
|
49
|
+
module V1
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/connectors/v1/connectors_service.proto for package 'google.cloud.connectors.v1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2024 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/connectors/v1/connectors_service_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Connectors
|
|
25
|
+
module V1
|
|
26
|
+
module Connectors
|
|
27
|
+
# Connectors is the interface for managing Connectors.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.connectors.v1.Connectors'
|
|
35
|
+
|
|
36
|
+
# Lists Connections in a given project and location.
|
|
37
|
+
rpc :ListConnections, ::Google::Cloud::Connectors::V1::ListConnectionsRequest, ::Google::Cloud::Connectors::V1::ListConnectionsResponse
|
|
38
|
+
# Gets details of a single Connection.
|
|
39
|
+
rpc :GetConnection, ::Google::Cloud::Connectors::V1::GetConnectionRequest, ::Google::Cloud::Connectors::V1::Connection
|
|
40
|
+
# Creates a new Connection in a given project and location.
|
|
41
|
+
rpc :CreateConnection, ::Google::Cloud::Connectors::V1::CreateConnectionRequest, ::Google::Longrunning::Operation
|
|
42
|
+
# Updates the parameters of a single Connection.
|
|
43
|
+
rpc :UpdateConnection, ::Google::Cloud::Connectors::V1::UpdateConnectionRequest, ::Google::Longrunning::Operation
|
|
44
|
+
# Deletes a single Connection.
|
|
45
|
+
rpc :DeleteConnection, ::Google::Cloud::Connectors::V1::DeleteConnectionRequest, ::Google::Longrunning::Operation
|
|
46
|
+
# Lists Providers in a given project and location.
|
|
47
|
+
rpc :ListProviders, ::Google::Cloud::Connectors::V1::ListProvidersRequest, ::Google::Cloud::Connectors::V1::ListProvidersResponse
|
|
48
|
+
# Gets details of a provider.
|
|
49
|
+
rpc :GetProvider, ::Google::Cloud::Connectors::V1::GetProviderRequest, ::Google::Cloud::Connectors::V1::Provider
|
|
50
|
+
# Lists Connectors in a given project and location.
|
|
51
|
+
rpc :ListConnectors, ::Google::Cloud::Connectors::V1::ListConnectorsRequest, ::Google::Cloud::Connectors::V1::ListConnectorsResponse
|
|
52
|
+
# Gets details of a single Connector.
|
|
53
|
+
rpc :GetConnector, ::Google::Cloud::Connectors::V1::GetConnectorRequest, ::Google::Cloud::Connectors::V1::Connector
|
|
54
|
+
# Lists Connector Versions in a given project and location.
|
|
55
|
+
rpc :ListConnectorVersions, ::Google::Cloud::Connectors::V1::ListConnectorVersionsRequest, ::Google::Cloud::Connectors::V1::ListConnectorVersionsResponse
|
|
56
|
+
# Gets details of a single connector version.
|
|
57
|
+
rpc :GetConnectorVersion, ::Google::Cloud::Connectors::V1::GetConnectorVersionRequest, ::Google::Cloud::Connectors::V1::ConnectorVersion
|
|
58
|
+
# Gets schema metadata of a connection.
|
|
59
|
+
# SchemaMetadata is a singleton resource for each connection.
|
|
60
|
+
rpc :GetConnectionSchemaMetadata, ::Google::Cloud::Connectors::V1::GetConnectionSchemaMetadataRequest, ::Google::Cloud::Connectors::V1::ConnectionSchemaMetadata
|
|
61
|
+
# Refresh runtime schema of a connection.
|
|
62
|
+
rpc :RefreshConnectionSchemaMetadata, ::Google::Cloud::Connectors::V1::RefreshConnectionSchemaMetadataRequest, ::Google::Longrunning::Operation
|
|
63
|
+
# List schema of a runtime entities filtered by entity name.
|
|
64
|
+
rpc :ListRuntimeEntitySchemas, ::Google::Cloud::Connectors::V1::ListRuntimeEntitySchemasRequest, ::Google::Cloud::Connectors::V1::ListRuntimeEntitySchemasResponse
|
|
65
|
+
# List schema of a runtime actions filtered by action name.
|
|
66
|
+
rpc :ListRuntimeActionSchemas, ::Google::Cloud::Connectors::V1::ListRuntimeActionSchemasRequest, ::Google::Cloud::Connectors::V1::ListRuntimeActionSchemasResponse
|
|
67
|
+
# Gets the runtimeConfig of a location.
|
|
68
|
+
# RuntimeConfig is a singleton resource for each location.
|
|
69
|
+
rpc :GetRuntimeConfig, ::Google::Cloud::Connectors::V1::GetRuntimeConfigRequest, ::Google::Cloud::Connectors::V1::RuntimeConfig
|
|
70
|
+
# GetGlobalSettings gets settings of a project.
|
|
71
|
+
# GlobalSettings is a singleton resource.
|
|
72
|
+
rpc :GetGlobalSettings, ::Google::Cloud::Connectors::V1::GetGlobalSettingsRequest, ::Google::Cloud::Connectors::V1::Settings
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
Stub = Service.rpc_stub_class
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/connectors/v1/destination_config.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
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
|
+
|
|
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
|
|
33
|
+
|
|
34
|
+
module Google
|
|
35
|
+
module Cloud
|
|
36
|
+
module Connectors
|
|
37
|
+
module V1
|
|
38
|
+
DestinationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.DestinationConfig").msgclass
|
|
39
|
+
Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.Destination").msgclass
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/connectors/v1/provider.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/cloud/connectors/v1/common_pb'
|
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
|
11
|
+
|
|
12
|
+
|
|
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
|
+
|
|
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
|
|
39
|
+
|
|
40
|
+
module Google
|
|
41
|
+
module Cloud
|
|
42
|
+
module Connectors
|
|
43
|
+
module V1
|
|
44
|
+
Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.Provider").msgclass
|
|
45
|
+
GetProviderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.GetProviderRequest").msgclass
|
|
46
|
+
ListProvidersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.ListProvidersRequest").msgclass
|
|
47
|
+
ListProvidersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.ListProvidersResponse").msgclass
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/connectors/v1/connectors/rest"
|
|
20
|
+
require "google/cloud/connectors/v1/bindings_override"
|
|
21
|
+
require "google/cloud/connectors/v1/version"
|
|
22
|
+
|
|
23
|
+
module Google
|
|
24
|
+
module Cloud
|
|
25
|
+
module Connectors
|
|
26
|
+
##
|
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
|
28
|
+
#
|
|
29
|
+
# @example
|
|
30
|
+
#
|
|
31
|
+
# require "google/cloud/connectors/v1/rest"
|
|
32
|
+
# client = ::Google::Cloud::Connectors::V1::Connectors::Rest::Client.new
|
|
33
|
+
#
|
|
34
|
+
module V1
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/connectors/v1/runtime.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
|
|
10
|
+
|
|
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
|
+
|
|
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
|
|
36
|
+
|
|
37
|
+
module Google
|
|
38
|
+
module Cloud
|
|
39
|
+
module Connectors
|
|
40
|
+
module V1
|
|
41
|
+
GetRuntimeConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.GetRuntimeConfigRequest").msgclass
|
|
42
|
+
RuntimeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.RuntimeConfig").msgclass
|
|
43
|
+
RuntimeConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.RuntimeConfig.State").enummodule
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/connectors/v1/settings.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
|
|
10
|
+
|
|
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
|
+
|
|
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
|
|
36
|
+
|
|
37
|
+
module Google
|
|
38
|
+
module Cloud
|
|
39
|
+
module Connectors
|
|
40
|
+
module V1
|
|
41
|
+
GetGlobalSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.GetGlobalSettingsRequest").msgclass
|
|
42
|
+
Settings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.Settings").msgclass
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/connectors/v1/ssl_config.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/cloud/connectors/v1/common_pb'
|
|
8
|
+
|
|
9
|
+
|
|
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
|
+
|
|
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
|
|
36
|
+
|
|
37
|
+
module Google
|
|
38
|
+
module Cloud
|
|
39
|
+
module Connectors
|
|
40
|
+
module V1
|
|
41
|
+
SslConfigTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.SslConfigTemplate").msgclass
|
|
42
|
+
SslConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.SslConfig").msgclass
|
|
43
|
+
SslConfig::TrustModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.SslConfig.TrustModel").enummodule
|
|
44
|
+
SslType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.SslType").enummodule
|
|
45
|
+
CertType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.CertType").enummodule
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# Copyright 2024 Google LLC
|
|
2
4
|
#
|
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
# you may not use this file except in compliance with the License.
|
|
5
7
|
# You may obtain a copy of the License at
|
|
6
8
|
#
|
|
7
|
-
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
10
|
#
|
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -12,11 +14,14 @@
|
|
|
12
14
|
# See the License for the specific language governing permissions and
|
|
13
15
|
# limitations under the License.
|
|
14
16
|
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
15
20
|
module Google
|
|
16
21
|
module Cloud
|
|
17
22
|
module Connectors
|
|
18
23
|
module V1
|
|
19
|
-
VERSION = "0.
|
|
24
|
+
VERSION = "0.1.1"
|
|
20
25
|
end
|
|
21
26
|
end
|
|
22
27
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/connectors/v1/connectors"
|
|
20
|
+
require "google/cloud/connectors/v1/version"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Connectors
|
|
25
|
+
##
|
|
26
|
+
# API client module.
|
|
27
|
+
#
|
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
|
29
|
+
#
|
|
30
|
+
# require "google/cloud/connectors/v1"
|
|
31
|
+
# client = ::Google::Cloud::Connectors::V1::Connectors::Client.new
|
|
32
|
+
#
|
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
|
34
|
+
#
|
|
35
|
+
# require "google/cloud/connectors/v1"
|
|
36
|
+
# client = ::Google::Cloud::Connectors::V1::Connectors::Rest::Client.new
|
|
37
|
+
#
|
|
38
|
+
module V1
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
|
45
|
+
require "google/cloud/connectors/v1/_helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2024 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
|
21
|
+
# require "google/cloud/connectors/v1"
|