google-cloud-beyond_corp-app_connections-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/beyond_corp/app_connections/v1/app_connections_service/client.rb +1048 -0
- data/lib/google/cloud/beyond_corp/app_connections/v1/app_connections_service/credentials.rb +49 -0
- data/lib/google/cloud/beyond_corp/app_connections/v1/app_connections_service/operations.rb +772 -0
- data/lib/google/cloud/beyond_corp/app_connections/v1/app_connections_service/paths.rb +109 -0
- data/lib/google/cloud/beyond_corp/app_connections/v1/app_connections_service.rb +65 -0
- data/lib/google/cloud/beyond_corp/app_connections/v1/version.rb +30 -0
- data/lib/google/cloud/beyond_corp/app_connections/v1.rb +42 -0
- data/lib/google/cloud/beyondcorp/appconnections/v1/app_connections_service_pb.rb +141 -0
- data/lib/google/cloud/beyondcorp/appconnections/v1/app_connections_service_services_pb.rb +72 -0
- data/lib/google-cloud-beyond_corp-app_connections-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/beyondcorp/appconnections/v1/app_connections_service.rb +411 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -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/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +260 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module BeyondCorp
|
23
|
+
module AppConnections
|
24
|
+
module V1
|
25
|
+
module AppConnectionsService
|
26
|
+
# Path helper methods for the AppConnectionsService API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified AppConnection resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/appConnections/{app_connection}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param app_connection [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def app_connection_path project:, location:, app_connection:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/appConnections/#{app_connection}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified AppConnector resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/locations/{location}/appConnectors/{app_connector}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param location [String]
|
56
|
+
# @param app_connector [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def app_connector_path project:, location:, app_connector:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
|
63
|
+
"projects/#{project}/locations/#{location}/appConnectors/#{app_connector}"
|
64
|
+
end
|
65
|
+
|
66
|
+
##
|
67
|
+
# Create a fully-qualified AppGateway resource string.
|
68
|
+
#
|
69
|
+
# The resource will be in the following format:
|
70
|
+
#
|
71
|
+
# `projects/{project}/locations/{location}/appGateways/{app_gateway}`
|
72
|
+
#
|
73
|
+
# @param project [String]
|
74
|
+
# @param location [String]
|
75
|
+
# @param app_gateway [String]
|
76
|
+
#
|
77
|
+
# @return [::String]
|
78
|
+
def app_gateway_path project:, location:, app_gateway:
|
79
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
80
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
81
|
+
|
82
|
+
"projects/#{project}/locations/#{location}/appGateways/#{app_gateway}"
|
83
|
+
end
|
84
|
+
|
85
|
+
##
|
86
|
+
# Create a fully-qualified Location resource string.
|
87
|
+
#
|
88
|
+
# The resource will be in the following format:
|
89
|
+
#
|
90
|
+
# `projects/{project}/locations/{location}`
|
91
|
+
#
|
92
|
+
# @param project [String]
|
93
|
+
# @param location [String]
|
94
|
+
#
|
95
|
+
# @return [::String]
|
96
|
+
def location_path project:, location:
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
|
99
|
+
"projects/#{project}/locations/#{location}"
|
100
|
+
end
|
101
|
+
|
102
|
+
extend self
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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/beyond_corp/app_connections/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/beyond_corp/app_connections/v1/app_connections_service/credentials"
|
26
|
+
require "google/cloud/beyond_corp/app_connections/v1/app_connections_service/paths"
|
27
|
+
require "google/cloud/beyond_corp/app_connections/v1/app_connections_service/operations"
|
28
|
+
require "google/cloud/beyond_corp/app_connections/v1/app_connections_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module BeyondCorp
|
33
|
+
module AppConnections
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# ## API Overview
|
37
|
+
#
|
38
|
+
# The `beyondcorp.googleapis.com` service implements the Google Cloud
|
39
|
+
# BeyondCorp API.
|
40
|
+
#
|
41
|
+
# ## Data Model
|
42
|
+
#
|
43
|
+
# The AppConnectionsService exposes the following resources:
|
44
|
+
#
|
45
|
+
# * AppConnections, named as follows:
|
46
|
+
# `projects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}`.
|
47
|
+
#
|
48
|
+
# The AppConnectionsService service provides methods to manage
|
49
|
+
# (create/read/update/delete) BeyondCorp AppConnections.
|
50
|
+
#
|
51
|
+
# To load this service and instantiate a client:
|
52
|
+
#
|
53
|
+
# require "google/cloud/beyond_corp/app_connections/v1/app_connections_service"
|
54
|
+
# client = ::Google::Cloud::BeyondCorp::AppConnections::V1::AppConnectionsService::Client.new
|
55
|
+
#
|
56
|
+
module AppConnectionsService
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
helper_path = ::File.join __dir__, "app_connections_service", "helpers.rb"
|
65
|
+
require "google/cloud/beyond_corp/app_connections/v1/app_connections_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module BeyondCorp
|
23
|
+
module AppConnections
|
24
|
+
module V1
|
25
|
+
VERSION = "0.1.0"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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/beyond_corp/app_connections/v1/app_connections_service"
|
20
|
+
require "google/cloud/beyond_corp/app_connections/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module BeyondCorp
|
25
|
+
module AppConnections
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/beyond_corp/app_connections/v1"
|
32
|
+
# client = ::Google::Cloud::BeyondCorp::AppConnections::V1::AppConnectionsService::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
42
|
+
require "google/cloud/beyond_corp/app_connections/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/field_mask_pb'
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
13
|
+
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsRequest" do
|
17
|
+
optional :parent, :string, 1
|
18
|
+
optional :page_size, :int32, 2
|
19
|
+
optional :page_token, :string, 3
|
20
|
+
optional :filter, :string, 4
|
21
|
+
optional :order_by, :string, 5
|
22
|
+
end
|
23
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsResponse" do
|
24
|
+
repeated :app_connections, :message, 1, "google.cloud.beyondcorp.appconnections.v1.AppConnection"
|
25
|
+
optional :next_page_token, :string, 2
|
26
|
+
repeated :unreachable, :string, 3
|
27
|
+
end
|
28
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.GetAppConnectionRequest" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
end
|
31
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.CreateAppConnectionRequest" do
|
32
|
+
optional :parent, :string, 1
|
33
|
+
optional :app_connection_id, :string, 2
|
34
|
+
optional :app_connection, :message, 3, "google.cloud.beyondcorp.appconnections.v1.AppConnection"
|
35
|
+
optional :request_id, :string, 4
|
36
|
+
optional :validate_only, :bool, 5
|
37
|
+
end
|
38
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.UpdateAppConnectionRequest" do
|
39
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
40
|
+
optional :app_connection, :message, 2, "google.cloud.beyondcorp.appconnections.v1.AppConnection"
|
41
|
+
optional :request_id, :string, 3
|
42
|
+
optional :validate_only, :bool, 4
|
43
|
+
optional :allow_missing, :bool, 5
|
44
|
+
end
|
45
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.DeleteAppConnectionRequest" do
|
46
|
+
optional :name, :string, 1
|
47
|
+
optional :request_id, :string, 2
|
48
|
+
optional :validate_only, :bool, 3
|
49
|
+
end
|
50
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsRequest" do
|
51
|
+
optional :parent, :string, 1
|
52
|
+
optional :app_connector_id, :string, 2
|
53
|
+
optional :page_size, :int32, 3
|
54
|
+
optional :page_token, :string, 4
|
55
|
+
end
|
56
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsResponse" do
|
57
|
+
repeated :app_connection_details, :message, 1, "google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsResponse.AppConnectionDetails"
|
58
|
+
optional :next_page_token, :string, 2
|
59
|
+
repeated :unreachable, :string, 3
|
60
|
+
end
|
61
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsResponse.AppConnectionDetails" do
|
62
|
+
optional :app_connection, :message, 1, "google.cloud.beyondcorp.appconnections.v1.AppConnection"
|
63
|
+
repeated :recent_mig_vms, :string, 2
|
64
|
+
end
|
65
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.AppConnection" do
|
66
|
+
optional :name, :string, 1
|
67
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
68
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
69
|
+
map :labels, :string, :string, 4
|
70
|
+
optional :display_name, :string, 5
|
71
|
+
optional :uid, :string, 6
|
72
|
+
optional :type, :enum, 7, "google.cloud.beyondcorp.appconnections.v1.AppConnection.Type"
|
73
|
+
optional :application_endpoint, :message, 8, "google.cloud.beyondcorp.appconnections.v1.AppConnection.ApplicationEndpoint"
|
74
|
+
repeated :connectors, :string, 9
|
75
|
+
optional :state, :enum, 10, "google.cloud.beyondcorp.appconnections.v1.AppConnection.State"
|
76
|
+
optional :gateway, :message, 11, "google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway"
|
77
|
+
end
|
78
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.AppConnection.ApplicationEndpoint" do
|
79
|
+
optional :host, :string, 1
|
80
|
+
optional :port, :int32, 2
|
81
|
+
end
|
82
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway" do
|
83
|
+
optional :type, :enum, 2, "google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type"
|
84
|
+
optional :uri, :string, 3
|
85
|
+
optional :ingress_port, :int32, 4
|
86
|
+
optional :app_gateway, :string, 5
|
87
|
+
end
|
88
|
+
add_enum "google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type" do
|
89
|
+
value :TYPE_UNSPECIFIED, 0
|
90
|
+
value :GCP_REGIONAL_MIG, 1
|
91
|
+
end
|
92
|
+
add_enum "google.cloud.beyondcorp.appconnections.v1.AppConnection.Type" do
|
93
|
+
value :TYPE_UNSPECIFIED, 0
|
94
|
+
value :TCP_PROXY, 1
|
95
|
+
end
|
96
|
+
add_enum "google.cloud.beyondcorp.appconnections.v1.AppConnection.State" do
|
97
|
+
value :STATE_UNSPECIFIED, 0
|
98
|
+
value :CREATING, 1
|
99
|
+
value :CREATED, 2
|
100
|
+
value :UPDATING, 3
|
101
|
+
value :DELETING, 4
|
102
|
+
value :DOWN, 5
|
103
|
+
end
|
104
|
+
add_message "google.cloud.beyondcorp.appconnections.v1.AppConnectionOperationMetadata" do
|
105
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
106
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
107
|
+
optional :target, :string, 3
|
108
|
+
optional :verb, :string, 4
|
109
|
+
optional :status_message, :string, 5
|
110
|
+
optional :requested_cancellation, :bool, 6
|
111
|
+
optional :api_version, :string, 7
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
module Google
|
117
|
+
module Cloud
|
118
|
+
module BeyondCorp
|
119
|
+
module AppConnections
|
120
|
+
module V1
|
121
|
+
ListAppConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsRequest").msgclass
|
122
|
+
ListAppConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsResponse").msgclass
|
123
|
+
GetAppConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.GetAppConnectionRequest").msgclass
|
124
|
+
CreateAppConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.CreateAppConnectionRequest").msgclass
|
125
|
+
UpdateAppConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.UpdateAppConnectionRequest").msgclass
|
126
|
+
DeleteAppConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.DeleteAppConnectionRequest").msgclass
|
127
|
+
ResolveAppConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsRequest").msgclass
|
128
|
+
ResolveAppConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsResponse").msgclass
|
129
|
+
ResolveAppConnectionsResponse::AppConnectionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsResponse.AppConnectionDetails").msgclass
|
130
|
+
AppConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.AppConnection").msgclass
|
131
|
+
AppConnection::ApplicationEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.AppConnection.ApplicationEndpoint").msgclass
|
132
|
+
AppConnection::Gateway = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway").msgclass
|
133
|
+
AppConnection::Gateway::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type").enummodule
|
134
|
+
AppConnection::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.AppConnection.Type").enummodule
|
135
|
+
AppConnection::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.AppConnection.State").enummodule
|
136
|
+
AppConnectionOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.beyondcorp.appconnections.v1.AppConnectionOperationMetadata").msgclass
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/beyondcorp/appconnections/v1/app_connections_service.proto for package 'Google.Cloud.BeyondCorp.AppConnections.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 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/beyondcorp/appconnections/v1/app_connections_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module BeyondCorp
|
25
|
+
module AppConnections
|
26
|
+
module V1
|
27
|
+
module AppConnectionsService
|
28
|
+
# ## API Overview
|
29
|
+
#
|
30
|
+
# The `beyondcorp.googleapis.com` service implements the Google Cloud
|
31
|
+
# BeyondCorp API.
|
32
|
+
#
|
33
|
+
# ## Data Model
|
34
|
+
#
|
35
|
+
# The AppConnectionsService exposes the following resources:
|
36
|
+
#
|
37
|
+
# * AppConnections, named as follows:
|
38
|
+
# `projects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}`.
|
39
|
+
#
|
40
|
+
# The AppConnectionsService service provides methods to manage
|
41
|
+
# (create/read/update/delete) BeyondCorp AppConnections.
|
42
|
+
class Service
|
43
|
+
|
44
|
+
include ::GRPC::GenericService
|
45
|
+
|
46
|
+
self.marshal_class_method = :encode
|
47
|
+
self.unmarshal_class_method = :decode
|
48
|
+
self.service_name = 'google.cloud.beyondcorp.appconnections.v1.AppConnectionsService'
|
49
|
+
|
50
|
+
# Lists AppConnections in a given project and location.
|
51
|
+
rpc :ListAppConnections, ::Google::Cloud::BeyondCorp::AppConnections::V1::ListAppConnectionsRequest, ::Google::Cloud::BeyondCorp::AppConnections::V1::ListAppConnectionsResponse
|
52
|
+
# Gets details of a single AppConnection.
|
53
|
+
rpc :GetAppConnection, ::Google::Cloud::BeyondCorp::AppConnections::V1::GetAppConnectionRequest, ::Google::Cloud::BeyondCorp::AppConnections::V1::AppConnection
|
54
|
+
# Creates a new AppConnection in a given project and location.
|
55
|
+
rpc :CreateAppConnection, ::Google::Cloud::BeyondCorp::AppConnections::V1::CreateAppConnectionRequest, ::Google::Longrunning::Operation
|
56
|
+
# Updates the parameters of a single AppConnection.
|
57
|
+
rpc :UpdateAppConnection, ::Google::Cloud::BeyondCorp::AppConnections::V1::UpdateAppConnectionRequest, ::Google::Longrunning::Operation
|
58
|
+
# Deletes a single AppConnection.
|
59
|
+
rpc :DeleteAppConnection, ::Google::Cloud::BeyondCorp::AppConnections::V1::DeleteAppConnectionRequest, ::Google::Longrunning::Operation
|
60
|
+
# Resolves AppConnections details for a given AppConnector.
|
61
|
+
# An internal method called by a connector to find AppConnections to connect
|
62
|
+
# to.
|
63
|
+
rpc :ResolveAppConnections, ::Google::Cloud::BeyondCorp::AppConnections::V1::ResolveAppConnectionsRequest, ::Google::Cloud::BeyondCorp::AppConnections::V1::ResolveAppConnectionsResponse
|
64
|
+
end
|
65
|
+
|
66
|
+
Stub = Service.rpc_stub_class
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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/beyond_corp/app_connections/v1"
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|