google-cloud-network_management-v1 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +167 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-cloud-network_management-v1.rb +21 -0
- data/lib/google/cloud/network_management/v1.rb +38 -0
- data/lib/google/cloud/network_management/v1/reachability_service.rb +57 -0
- data/lib/google/cloud/network_management/v1/reachability_service/client.rb +846 -0
- data/lib/google/cloud/network_management/v1/reachability_service/credentials.rb +47 -0
- data/lib/google/cloud/network_management/v1/reachability_service/operations.rb +655 -0
- data/lib/google/cloud/network_management/v1/reachability_service/paths.rb +50 -0
- data/lib/google/cloud/network_management/v1/version.rb +28 -0
- data/lib/google/cloud/networkmanagement/v1/connectivity_test_pb.rb +70 -0
- data/lib/google/cloud/networkmanagement/v1/reachability_pb.rb +73 -0
- data/lib/google/cloud/networkmanagement/v1/reachability_services_pb.rb +100 -0
- data/lib/google/cloud/networkmanagement/v1/trace_pb.rb +330 -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 +283 -0
- data/proto_docs/google/cloud/networkmanagement/v1/connectivity_test.rb +232 -0
- data/proto_docs/google/cloud/networkmanagement/v1/reachability.rb +174 -0
- data/proto_docs/google/cloud/networkmanagement/v1/trace.rb +937 -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 +36 -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
- metadata +221 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 NetworkManagement
|
23
|
+
module V1
|
24
|
+
module ReachabilityService
|
25
|
+
# Path helper methods for the ReachabilityService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified ConnectivityTest resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/global/connectivityTests/{test}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param test [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def connectivity_test_path project:, test:
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project}/locations/global/connectivityTests/#{test}"
|
42
|
+
end
|
43
|
+
|
44
|
+
extend self
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 NetworkManagement
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networkmanagement/v1/connectivity_test.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/networkmanagement/v1/trace_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/rpc/status_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/networkmanagement/v1/connectivity_test.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.networkmanagement.v1.ConnectivityTest" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :description, :string, 2
|
17
|
+
optional :source, :message, 3, "google.cloud.networkmanagement.v1.Endpoint"
|
18
|
+
optional :destination, :message, 4, "google.cloud.networkmanagement.v1.Endpoint"
|
19
|
+
optional :protocol, :string, 5
|
20
|
+
repeated :related_projects, :string, 6
|
21
|
+
optional :display_name, :string, 7
|
22
|
+
map :labels, :string, :string, 8
|
23
|
+
optional :create_time, :message, 10, "google.protobuf.Timestamp"
|
24
|
+
optional :update_time, :message, 11, "google.protobuf.Timestamp"
|
25
|
+
optional :reachability_details, :message, 12, "google.cloud.networkmanagement.v1.ReachabilityDetails"
|
26
|
+
end
|
27
|
+
add_message "google.cloud.networkmanagement.v1.Endpoint" do
|
28
|
+
optional :ip_address, :string, 1
|
29
|
+
optional :port, :int32, 2
|
30
|
+
optional :instance, :string, 3
|
31
|
+
optional :gke_master_cluster, :string, 7
|
32
|
+
optional :cloud_sql_instance, :string, 8
|
33
|
+
optional :network, :string, 4
|
34
|
+
optional :network_type, :enum, 5, "google.cloud.networkmanagement.v1.Endpoint.NetworkType"
|
35
|
+
optional :project_id, :string, 6
|
36
|
+
end
|
37
|
+
add_enum "google.cloud.networkmanagement.v1.Endpoint.NetworkType" do
|
38
|
+
value :NETWORK_TYPE_UNSPECIFIED, 0
|
39
|
+
value :GCP_NETWORK, 1
|
40
|
+
value :NON_GCP_NETWORK, 2
|
41
|
+
end
|
42
|
+
add_message "google.cloud.networkmanagement.v1.ReachabilityDetails" do
|
43
|
+
optional :result, :enum, 1, "google.cloud.networkmanagement.v1.ReachabilityDetails.Result"
|
44
|
+
optional :verify_time, :message, 2, "google.protobuf.Timestamp"
|
45
|
+
optional :error, :message, 3, "google.rpc.Status"
|
46
|
+
repeated :traces, :message, 5, "google.cloud.networkmanagement.v1.Trace"
|
47
|
+
end
|
48
|
+
add_enum "google.cloud.networkmanagement.v1.ReachabilityDetails.Result" do
|
49
|
+
value :RESULT_UNSPECIFIED, 0
|
50
|
+
value :REACHABLE, 1
|
51
|
+
value :UNREACHABLE, 2
|
52
|
+
value :AMBIGUOUS, 4
|
53
|
+
value :UNDETERMINED, 5
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
module Google
|
59
|
+
module Cloud
|
60
|
+
module NetworkManagement
|
61
|
+
module V1
|
62
|
+
ConnectivityTest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ConnectivityTest").msgclass
|
63
|
+
Endpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.Endpoint").msgclass
|
64
|
+
Endpoint::NetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.Endpoint.NetworkType").enummodule
|
65
|
+
ReachabilityDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ReachabilityDetails").msgclass
|
66
|
+
ReachabilityDetails::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ReachabilityDetails.Result").enummodule
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networkmanagement/v1/reachability.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/cloud/networkmanagement/v1/connectivity_test_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf/timestamp_pb'
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/cloud/networkmanagement/v1/reachability.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.networkmanagement.v1.ListConnectivityTestsRequest" 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.networkmanagement.v1.ListConnectivityTestsResponse" do
|
24
|
+
repeated :resources, :message, 1, "google.cloud.networkmanagement.v1.ConnectivityTest"
|
25
|
+
optional :next_page_token, :string, 2
|
26
|
+
repeated :unreachable, :string, 3
|
27
|
+
end
|
28
|
+
add_message "google.cloud.networkmanagement.v1.GetConnectivityTestRequest" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
end
|
31
|
+
add_message "google.cloud.networkmanagement.v1.CreateConnectivityTestRequest" do
|
32
|
+
optional :parent, :string, 1
|
33
|
+
optional :test_id, :string, 2
|
34
|
+
optional :resource, :message, 3, "google.cloud.networkmanagement.v1.ConnectivityTest"
|
35
|
+
end
|
36
|
+
add_message "google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest" do
|
37
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
38
|
+
optional :resource, :message, 2, "google.cloud.networkmanagement.v1.ConnectivityTest"
|
39
|
+
end
|
40
|
+
add_message "google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest" do
|
41
|
+
optional :name, :string, 1
|
42
|
+
end
|
43
|
+
add_message "google.cloud.networkmanagement.v1.RerunConnectivityTestRequest" do
|
44
|
+
optional :name, :string, 1
|
45
|
+
end
|
46
|
+
add_message "google.cloud.networkmanagement.v1.OperationMetadata" do
|
47
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
48
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
49
|
+
optional :target, :string, 3
|
50
|
+
optional :verb, :string, 4
|
51
|
+
optional :status_detail, :string, 5
|
52
|
+
optional :cancel_requested, :bool, 6
|
53
|
+
optional :api_version, :string, 7
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
module Google
|
59
|
+
module Cloud
|
60
|
+
module NetworkManagement
|
61
|
+
module V1
|
62
|
+
ListConnectivityTestsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ListConnectivityTestsRequest").msgclass
|
63
|
+
ListConnectivityTestsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ListConnectivityTestsResponse").msgclass
|
64
|
+
GetConnectivityTestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.GetConnectivityTestRequest").msgclass
|
65
|
+
CreateConnectivityTestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.CreateConnectivityTestRequest").msgclass
|
66
|
+
UpdateConnectivityTestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest").msgclass
|
67
|
+
DeleteConnectivityTestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest").msgclass
|
68
|
+
RerunConnectivityTestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.RerunConnectivityTestRequest").msgclass
|
69
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.OperationMetadata").msgclass
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/networkmanagement/v1/reachability.proto for package 'Google.Cloud.NetworkManagement.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 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/networkmanagement/v1/reachability_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module NetworkManagement
|
25
|
+
module V1
|
26
|
+
module ReachabilityService
|
27
|
+
# The Reachability service in Google Cloud Network Management API
|
28
|
+
#
|
29
|
+
# The Reachability service in the Google Cloud Network Management API provides
|
30
|
+
# services that analyze the reachability within a single Google Virtual Private
|
31
|
+
# Cloud (VPC) network, between peered VPC networks, between VPC and on-premises
|
32
|
+
# networks, or between VPC networks and internet hosts. A reachability analysis
|
33
|
+
# is based on Google Cloud network configurations.
|
34
|
+
#
|
35
|
+
# You can use the analysis results to verify these configurations and
|
36
|
+
# to troubleshoot connectivity issues.
|
37
|
+
class Service
|
38
|
+
|
39
|
+
include GRPC::GenericService
|
40
|
+
|
41
|
+
self.marshal_class_method = :encode
|
42
|
+
self.unmarshal_class_method = :decode
|
43
|
+
self.service_name = 'google.cloud.networkmanagement.v1.ReachabilityService'
|
44
|
+
|
45
|
+
# Lists all Connectivity Tests owned by a project.
|
46
|
+
rpc :ListConnectivityTests, ::Google::Cloud::NetworkManagement::V1::ListConnectivityTestsRequest, ::Google::Cloud::NetworkManagement::V1::ListConnectivityTestsResponse
|
47
|
+
# Gets the details of a specific Connectivity Test.
|
48
|
+
rpc :GetConnectivityTest, ::Google::Cloud::NetworkManagement::V1::GetConnectivityTestRequest, ::Google::Cloud::NetworkManagement::V1::ConnectivityTest
|
49
|
+
# Creates a new Connectivity Test.
|
50
|
+
# After you create a test, the reachability analysis is performed as part
|
51
|
+
# of the long running operation, which completes when the analysis completes.
|
52
|
+
#
|
53
|
+
# If the endpoint specifications in `ConnectivityTest` are invalid
|
54
|
+
# (for example, containing non-existent resources in the network, or you
|
55
|
+
# don't have read permissions to the network configurations of listed
|
56
|
+
# projects), then the reachability result returns a value of `UNKNOWN`.
|
57
|
+
#
|
58
|
+
# If the endpoint specifications in `ConnectivityTest` are
|
59
|
+
# incomplete, the reachability result returns a value of
|
60
|
+
# <code>AMBIGUOUS</code>. For more information,
|
61
|
+
# see the Connectivity Test documentation.
|
62
|
+
rpc :CreateConnectivityTest, ::Google::Cloud::NetworkManagement::V1::CreateConnectivityTestRequest, ::Google::Longrunning::Operation
|
63
|
+
# Updates the configuration of an existing `ConnectivityTest`.
|
64
|
+
# After you update a test, the reachability analysis is performed as part
|
65
|
+
# of the long running operation, which completes when the analysis completes.
|
66
|
+
# The Reachability state in the test resource is updated with the new result.
|
67
|
+
#
|
68
|
+
# If the endpoint specifications in `ConnectivityTest` are invalid
|
69
|
+
# (for example, they contain non-existent resources in the network, or the
|
70
|
+
# user does not have read permissions to the network configurations of
|
71
|
+
# listed projects), then the reachability result returns a value of
|
72
|
+
# <code>UNKNOWN</code>.
|
73
|
+
#
|
74
|
+
# If the endpoint specifications in `ConnectivityTest` are incomplete, the
|
75
|
+
# reachability result returns a value of `AMBIGUOUS`. See the documentation
|
76
|
+
# in `ConnectivityTest` for for more details.
|
77
|
+
rpc :UpdateConnectivityTest, ::Google::Cloud::NetworkManagement::V1::UpdateConnectivityTestRequest, ::Google::Longrunning::Operation
|
78
|
+
# Rerun an existing `ConnectivityTest`.
|
79
|
+
# After the user triggers the rerun, the reachability analysis is performed
|
80
|
+
# as part of the long running operation, which completes when the analysis
|
81
|
+
# completes.
|
82
|
+
#
|
83
|
+
# Even though the test configuration remains the same, the reachability
|
84
|
+
# result may change due to underlying network configuration changes.
|
85
|
+
#
|
86
|
+
# If the endpoint specifications in `ConnectivityTest` become invalid (for
|
87
|
+
# example, specified resources are deleted in the network, or you lost
|
88
|
+
# read permissions to the network configurations of listed projects), then
|
89
|
+
# the reachability result returns a value of `UNKNOWN`.
|
90
|
+
rpc :RerunConnectivityTest, ::Google::Cloud::NetworkManagement::V1::RerunConnectivityTestRequest, ::Google::Longrunning::Operation
|
91
|
+
# Deletes a specific `ConnectivityTest`.
|
92
|
+
rpc :DeleteConnectivityTest, ::Google::Cloud::NetworkManagement::V1::DeleteConnectivityTestRequest, ::Google::Longrunning::Operation
|
93
|
+
end
|
94
|
+
|
95
|
+
Stub = Service.rpc_stub_class
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,330 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networkmanagement/v1/trace.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/networkmanagement/v1/trace.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.networkmanagement.v1.Trace" do
|
10
|
+
optional :endpoint_info, :message, 1, "google.cloud.networkmanagement.v1.EndpointInfo"
|
11
|
+
repeated :steps, :message, 2, "google.cloud.networkmanagement.v1.Step"
|
12
|
+
end
|
13
|
+
add_message "google.cloud.networkmanagement.v1.Step" do
|
14
|
+
optional :description, :string, 1
|
15
|
+
optional :state, :enum, 2, "google.cloud.networkmanagement.v1.Step.State"
|
16
|
+
optional :causes_drop, :bool, 3
|
17
|
+
optional :project_id, :string, 4
|
18
|
+
oneof :step_info do
|
19
|
+
optional :instance, :message, 5, "google.cloud.networkmanagement.v1.InstanceInfo"
|
20
|
+
optional :firewall, :message, 6, "google.cloud.networkmanagement.v1.FirewallInfo"
|
21
|
+
optional :route, :message, 7, "google.cloud.networkmanagement.v1.RouteInfo"
|
22
|
+
optional :endpoint, :message, 8, "google.cloud.networkmanagement.v1.EndpointInfo"
|
23
|
+
optional :forwarding_rule, :message, 9, "google.cloud.networkmanagement.v1.ForwardingRuleInfo"
|
24
|
+
optional :vpn_gateway, :message, 10, "google.cloud.networkmanagement.v1.VpnGatewayInfo"
|
25
|
+
optional :vpn_tunnel, :message, 11, "google.cloud.networkmanagement.v1.VpnTunnelInfo"
|
26
|
+
optional :deliver, :message, 12, "google.cloud.networkmanagement.v1.DeliverInfo"
|
27
|
+
optional :forward, :message, 13, "google.cloud.networkmanagement.v1.ForwardInfo"
|
28
|
+
optional :abort, :message, 14, "google.cloud.networkmanagement.v1.AbortInfo"
|
29
|
+
optional :drop, :message, 15, "google.cloud.networkmanagement.v1.DropInfo"
|
30
|
+
optional :load_balancer, :message, 16, "google.cloud.networkmanagement.v1.LoadBalancerInfo"
|
31
|
+
optional :network, :message, 17, "google.cloud.networkmanagement.v1.NetworkInfo"
|
32
|
+
optional :gke_master, :message, 18, "google.cloud.networkmanagement.v1.GKEMasterInfo"
|
33
|
+
optional :cloud_sql_instance, :message, 19, "google.cloud.networkmanagement.v1.CloudSQLInstanceInfo"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
add_enum "google.cloud.networkmanagement.v1.Step.State" do
|
37
|
+
value :STATE_UNSPECIFIED, 0
|
38
|
+
value :START_FROM_INSTANCE, 1
|
39
|
+
value :START_FROM_INTERNET, 2
|
40
|
+
value :START_FROM_PRIVATE_NETWORK, 3
|
41
|
+
value :START_FROM_GKE_MASTER, 21
|
42
|
+
value :START_FROM_CLOUD_SQL_INSTANCE, 22
|
43
|
+
value :APPLY_INGRESS_FIREWALL_RULE, 4
|
44
|
+
value :APPLY_EGRESS_FIREWALL_RULE, 5
|
45
|
+
value :APPLY_ROUTE, 6
|
46
|
+
value :APPLY_FORWARDING_RULE, 7
|
47
|
+
value :SPOOFING_APPROVED, 8
|
48
|
+
value :ARRIVE_AT_INSTANCE, 9
|
49
|
+
value :ARRIVE_AT_INTERNAL_LOAD_BALANCER, 10
|
50
|
+
value :ARRIVE_AT_EXTERNAL_LOAD_BALANCER, 11
|
51
|
+
value :ARRIVE_AT_VPN_GATEWAY, 12
|
52
|
+
value :ARRIVE_AT_VPN_TUNNEL, 13
|
53
|
+
value :NAT, 14
|
54
|
+
value :PROXY_CONNECTION, 15
|
55
|
+
value :DELIVER, 16
|
56
|
+
value :DROP, 17
|
57
|
+
value :FORWARD, 18
|
58
|
+
value :ABORT, 19
|
59
|
+
value :VIEWER_PERMISSION_MISSING, 20
|
60
|
+
end
|
61
|
+
add_message "google.cloud.networkmanagement.v1.InstanceInfo" do
|
62
|
+
optional :display_name, :string, 1
|
63
|
+
optional :uri, :string, 2
|
64
|
+
optional :interface, :string, 3
|
65
|
+
optional :network_uri, :string, 4
|
66
|
+
optional :internal_ip, :string, 5
|
67
|
+
optional :external_ip, :string, 6
|
68
|
+
repeated :network_tags, :string, 7
|
69
|
+
optional :service_account, :string, 8
|
70
|
+
end
|
71
|
+
add_message "google.cloud.networkmanagement.v1.NetworkInfo" do
|
72
|
+
optional :display_name, :string, 1
|
73
|
+
optional :uri, :string, 2
|
74
|
+
optional :matched_ip_range, :string, 4
|
75
|
+
end
|
76
|
+
add_message "google.cloud.networkmanagement.v1.FirewallInfo" do
|
77
|
+
optional :display_name, :string, 1
|
78
|
+
optional :uri, :string, 2
|
79
|
+
optional :direction, :string, 3
|
80
|
+
optional :action, :string, 4
|
81
|
+
optional :priority, :int32, 5
|
82
|
+
optional :network_uri, :string, 6
|
83
|
+
repeated :target_tags, :string, 7
|
84
|
+
repeated :target_service_accounts, :string, 8
|
85
|
+
optional :policy, :string, 9
|
86
|
+
optional :firewall_rule_type, :enum, 10, "google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType"
|
87
|
+
end
|
88
|
+
add_enum "google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType" do
|
89
|
+
value :FIREWALL_RULE_TYPE_UNSPECIFIED, 0
|
90
|
+
value :HIERARCHICAL_FIREWALL_POLICY_RULE, 1
|
91
|
+
value :VPC_FIREWALL_RULE, 2
|
92
|
+
value :IMPLIED_VPC_FIREWALL_RULE, 3
|
93
|
+
end
|
94
|
+
add_message "google.cloud.networkmanagement.v1.RouteInfo" do
|
95
|
+
optional :route_type, :enum, 8, "google.cloud.networkmanagement.v1.RouteInfo.RouteType"
|
96
|
+
optional :next_hop_type, :enum, 9, "google.cloud.networkmanagement.v1.RouteInfo.NextHopType"
|
97
|
+
optional :display_name, :string, 1
|
98
|
+
optional :uri, :string, 2
|
99
|
+
optional :dest_ip_range, :string, 3
|
100
|
+
optional :next_hop, :string, 4
|
101
|
+
optional :network_uri, :string, 5
|
102
|
+
optional :priority, :int32, 6
|
103
|
+
repeated :instance_tags, :string, 7
|
104
|
+
end
|
105
|
+
add_enum "google.cloud.networkmanagement.v1.RouteInfo.RouteType" do
|
106
|
+
value :ROUTE_TYPE_UNSPECIFIED, 0
|
107
|
+
value :SUBNET, 1
|
108
|
+
value :STATIC, 2
|
109
|
+
value :DYNAMIC, 3
|
110
|
+
value :PEERING_SUBNET, 4
|
111
|
+
value :PEERING_STATIC, 5
|
112
|
+
value :PEERING_DYNAMIC, 6
|
113
|
+
end
|
114
|
+
add_enum "google.cloud.networkmanagement.v1.RouteInfo.NextHopType" do
|
115
|
+
value :NEXT_HOP_TYPE_UNSPECIFIED, 0
|
116
|
+
value :NEXT_HOP_IP, 1
|
117
|
+
value :NEXT_HOP_INSTANCE, 2
|
118
|
+
value :NEXT_HOP_NETWORK, 3
|
119
|
+
value :NEXT_HOP_PEERING, 4
|
120
|
+
value :NEXT_HOP_INTERCONNECT, 5
|
121
|
+
value :NEXT_HOP_VPN_TUNNEL, 6
|
122
|
+
value :NEXT_HOP_VPN_GATEWAY, 7
|
123
|
+
value :NEXT_HOP_INTERNET_GATEWAY, 8
|
124
|
+
value :NEXT_HOP_BLACKHOLE, 9
|
125
|
+
value :NEXT_HOP_ILB, 10
|
126
|
+
end
|
127
|
+
add_message "google.cloud.networkmanagement.v1.ForwardingRuleInfo" do
|
128
|
+
optional :display_name, :string, 1
|
129
|
+
optional :uri, :string, 2
|
130
|
+
optional :matched_protocol, :string, 3
|
131
|
+
optional :matched_port_range, :string, 6
|
132
|
+
optional :vip, :string, 4
|
133
|
+
optional :target, :string, 5
|
134
|
+
optional :network_uri, :string, 7
|
135
|
+
end
|
136
|
+
add_message "google.cloud.networkmanagement.v1.LoadBalancerInfo" do
|
137
|
+
optional :load_balancer_type, :enum, 1, "google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType"
|
138
|
+
optional :health_check_uri, :string, 2
|
139
|
+
repeated :backends, :message, 3, "google.cloud.networkmanagement.v1.LoadBalancerBackend"
|
140
|
+
optional :backend_type, :enum, 4, "google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType"
|
141
|
+
optional :backend_uri, :string, 5
|
142
|
+
end
|
143
|
+
add_enum "google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType" do
|
144
|
+
value :LOAD_BALANCER_TYPE_UNSPECIFIED, 0
|
145
|
+
value :INTERNAL_TCP_UDP, 1
|
146
|
+
value :NETWORK_TCP_UDP, 2
|
147
|
+
value :HTTP_PROXY, 3
|
148
|
+
value :TCP_PROXY, 4
|
149
|
+
value :SSL_PROXY, 5
|
150
|
+
end
|
151
|
+
add_enum "google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType" do
|
152
|
+
value :BACKEND_TYPE_UNSPECIFIED, 0
|
153
|
+
value :BACKEND_SERVICE, 1
|
154
|
+
value :TARGET_POOL, 2
|
155
|
+
end
|
156
|
+
add_message "google.cloud.networkmanagement.v1.LoadBalancerBackend" do
|
157
|
+
optional :display_name, :string, 1
|
158
|
+
optional :uri, :string, 2
|
159
|
+
optional :health_check_firewall_state, :enum, 3, "google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState"
|
160
|
+
repeated :health_check_allowing_firewall_rules, :string, 4
|
161
|
+
repeated :health_check_blocking_firewall_rules, :string, 5
|
162
|
+
end
|
163
|
+
add_enum "google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState" do
|
164
|
+
value :HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED, 0
|
165
|
+
value :CONFIGURED, 1
|
166
|
+
value :MISCONFIGURED, 2
|
167
|
+
end
|
168
|
+
add_message "google.cloud.networkmanagement.v1.VpnGatewayInfo" do
|
169
|
+
optional :display_name, :string, 1
|
170
|
+
optional :uri, :string, 2
|
171
|
+
optional :network_uri, :string, 3
|
172
|
+
optional :ip_address, :string, 4
|
173
|
+
optional :vpn_tunnel_uri, :string, 5
|
174
|
+
optional :region, :string, 6
|
175
|
+
end
|
176
|
+
add_message "google.cloud.networkmanagement.v1.VpnTunnelInfo" do
|
177
|
+
optional :display_name, :string, 1
|
178
|
+
optional :uri, :string, 2
|
179
|
+
optional :source_gateway, :string, 3
|
180
|
+
optional :remote_gateway, :string, 4
|
181
|
+
optional :remote_gateway_ip, :string, 5
|
182
|
+
optional :source_gateway_ip, :string, 6
|
183
|
+
optional :network_uri, :string, 7
|
184
|
+
optional :region, :string, 8
|
185
|
+
optional :routing_type, :enum, 9, "google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType"
|
186
|
+
end
|
187
|
+
add_enum "google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType" do
|
188
|
+
value :ROUTING_TYPE_UNSPECIFIED, 0
|
189
|
+
value :ROUTE_BASED, 1
|
190
|
+
value :POLICY_BASED, 2
|
191
|
+
value :DYNAMIC, 3
|
192
|
+
end
|
193
|
+
add_message "google.cloud.networkmanagement.v1.EndpointInfo" do
|
194
|
+
optional :source_ip, :string, 1
|
195
|
+
optional :destination_ip, :string, 2
|
196
|
+
optional :protocol, :string, 3
|
197
|
+
optional :source_port, :int32, 4
|
198
|
+
optional :destination_port, :int32, 5
|
199
|
+
optional :source_network_uri, :string, 6
|
200
|
+
optional :destination_network_uri, :string, 7
|
201
|
+
end
|
202
|
+
add_message "google.cloud.networkmanagement.v1.DeliverInfo" do
|
203
|
+
optional :target, :enum, 1, "google.cloud.networkmanagement.v1.DeliverInfo.Target"
|
204
|
+
optional :resource_uri, :string, 2
|
205
|
+
end
|
206
|
+
add_enum "google.cloud.networkmanagement.v1.DeliverInfo.Target" do
|
207
|
+
value :TARGET_UNSPECIFIED, 0
|
208
|
+
value :INSTANCE, 1
|
209
|
+
value :INTERNET, 2
|
210
|
+
value :GOOGLE_API, 3
|
211
|
+
value :GKE_MASTER, 4
|
212
|
+
value :CLOUD_SQL_INSTANCE, 5
|
213
|
+
end
|
214
|
+
add_message "google.cloud.networkmanagement.v1.ForwardInfo" do
|
215
|
+
optional :target, :enum, 1, "google.cloud.networkmanagement.v1.ForwardInfo.Target"
|
216
|
+
optional :resource_uri, :string, 2
|
217
|
+
end
|
218
|
+
add_enum "google.cloud.networkmanagement.v1.ForwardInfo.Target" do
|
219
|
+
value :TARGET_UNSPECIFIED, 0
|
220
|
+
value :PEERING_VPC, 1
|
221
|
+
value :VPN_GATEWAY, 2
|
222
|
+
value :INTERCONNECT, 3
|
223
|
+
value :GKE_MASTER, 4
|
224
|
+
value :IMPORTED_CUSTOM_ROUTE_NEXT_HOP, 5
|
225
|
+
value :CLOUD_SQL_INSTANCE, 6
|
226
|
+
end
|
227
|
+
add_message "google.cloud.networkmanagement.v1.AbortInfo" do
|
228
|
+
optional :cause, :enum, 1, "google.cloud.networkmanagement.v1.AbortInfo.Cause"
|
229
|
+
optional :resource_uri, :string, 2
|
230
|
+
end
|
231
|
+
add_enum "google.cloud.networkmanagement.v1.AbortInfo.Cause" do
|
232
|
+
value :CAUSE_UNSPECIFIED, 0
|
233
|
+
value :UNKNOWN_NETWORK, 1
|
234
|
+
value :UNKNOWN_IP, 2
|
235
|
+
value :UNKNOWN_PROJECT, 3
|
236
|
+
value :PERMISSION_DENIED, 4
|
237
|
+
value :NO_SOURCE_LOCATION, 5
|
238
|
+
value :INVALID_ARGUMENT, 6
|
239
|
+
value :NO_EXTERNAL_IP, 7
|
240
|
+
value :UNINTENDED_DESTINATION, 8
|
241
|
+
value :TRACE_TOO_LONG, 9
|
242
|
+
value :INTERNAL_ERROR, 10
|
243
|
+
value :SOURCE_ENDPOINT_NOT_FOUND, 11
|
244
|
+
value :MISMATCHED_SOURCE_NETWORK, 12
|
245
|
+
value :DESTINATION_ENDPOINT_NOT_FOUND, 13
|
246
|
+
value :MISMATCHED_DESTINATION_NETWORK, 14
|
247
|
+
end
|
248
|
+
add_message "google.cloud.networkmanagement.v1.DropInfo" do
|
249
|
+
optional :cause, :enum, 1, "google.cloud.networkmanagement.v1.DropInfo.Cause"
|
250
|
+
optional :resource_uri, :string, 2
|
251
|
+
end
|
252
|
+
add_enum "google.cloud.networkmanagement.v1.DropInfo.Cause" do
|
253
|
+
value :CAUSE_UNSPECIFIED, 0
|
254
|
+
value :UNKNOWN_EXTERNAL_ADDRESS, 1
|
255
|
+
value :FOREIGN_IP_DISALLOWED, 2
|
256
|
+
value :FIREWALL_RULE, 3
|
257
|
+
value :NO_ROUTE, 4
|
258
|
+
value :ROUTE_BLACKHOLE, 5
|
259
|
+
value :ROUTE_WRONG_NETWORK, 6
|
260
|
+
value :PRIVATE_TRAFFIC_TO_INTERNET, 7
|
261
|
+
value :PRIVATE_GOOGLE_ACCESS_DISALLOWED, 8
|
262
|
+
value :NO_EXTERNAL_ADDRESS, 9
|
263
|
+
value :UNKNOWN_INTERNAL_ADDRESS, 10
|
264
|
+
value :FORWARDING_RULE_MISMATCH, 11
|
265
|
+
value :FORWARDING_RULE_NO_INSTANCES, 12
|
266
|
+
value :FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK, 13
|
267
|
+
value :INSTANCE_NOT_RUNNING, 14
|
268
|
+
value :TRAFFIC_TYPE_BLOCKED, 15
|
269
|
+
value :GKE_MASTER_UNAUTHORIZED_ACCESS, 16
|
270
|
+
value :CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS, 17
|
271
|
+
value :DROPPED_INSIDE_GKE_SERVICE, 18
|
272
|
+
value :DROPPED_INSIDE_CLOUD_SQL_SERVICE, 19
|
273
|
+
value :GOOGLE_MANAGED_SERVICE_NO_PEERING, 20
|
274
|
+
value :CLOUD_SQL_INSTANCE_NO_IP_ADDRESS, 21
|
275
|
+
end
|
276
|
+
add_message "google.cloud.networkmanagement.v1.GKEMasterInfo" do
|
277
|
+
optional :cluster_uri, :string, 2
|
278
|
+
optional :cluster_network_uri, :string, 4
|
279
|
+
optional :internal_ip, :string, 5
|
280
|
+
optional :external_ip, :string, 6
|
281
|
+
end
|
282
|
+
add_message "google.cloud.networkmanagement.v1.CloudSQLInstanceInfo" do
|
283
|
+
optional :display_name, :string, 1
|
284
|
+
optional :uri, :string, 2
|
285
|
+
optional :network_uri, :string, 4
|
286
|
+
optional :internal_ip, :string, 5
|
287
|
+
optional :external_ip, :string, 6
|
288
|
+
optional :region, :string, 7
|
289
|
+
end
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
module Google
|
294
|
+
module Cloud
|
295
|
+
module NetworkManagement
|
296
|
+
module V1
|
297
|
+
Trace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.Trace").msgclass
|
298
|
+
Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.Step").msgclass
|
299
|
+
Step::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.Step.State").enummodule
|
300
|
+
InstanceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.InstanceInfo").msgclass
|
301
|
+
NetworkInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.NetworkInfo").msgclass
|
302
|
+
FirewallInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.FirewallInfo").msgclass
|
303
|
+
FirewallInfo::FirewallRuleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.FirewallInfo.FirewallRuleType").enummodule
|
304
|
+
RouteInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.RouteInfo").msgclass
|
305
|
+
RouteInfo::RouteType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.RouteInfo.RouteType").enummodule
|
306
|
+
RouteInfo::NextHopType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.RouteInfo.NextHopType").enummodule
|
307
|
+
ForwardingRuleInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ForwardingRuleInfo").msgclass
|
308
|
+
LoadBalancerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.LoadBalancerInfo").msgclass
|
309
|
+
LoadBalancerInfo::LoadBalancerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType").enummodule
|
310
|
+
LoadBalancerInfo::BackendType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType").enummodule
|
311
|
+
LoadBalancerBackend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.LoadBalancerBackend").msgclass
|
312
|
+
LoadBalancerBackend::HealthCheckFirewallState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState").enummodule
|
313
|
+
VpnGatewayInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpnGatewayInfo").msgclass
|
314
|
+
VpnTunnelInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpnTunnelInfo").msgclass
|
315
|
+
VpnTunnelInfo::RoutingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType").enummodule
|
316
|
+
EndpointInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.EndpointInfo").msgclass
|
317
|
+
DeliverInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.DeliverInfo").msgclass
|
318
|
+
DeliverInfo::Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.DeliverInfo.Target").enummodule
|
319
|
+
ForwardInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ForwardInfo").msgclass
|
320
|
+
ForwardInfo::Target = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.ForwardInfo.Target").enummodule
|
321
|
+
AbortInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.AbortInfo").msgclass
|
322
|
+
AbortInfo::Cause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.AbortInfo.Cause").enummodule
|
323
|
+
DropInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.DropInfo").msgclass
|
324
|
+
DropInfo::Cause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.DropInfo.Cause").enummodule
|
325
|
+
GKEMasterInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.GKEMasterInfo").msgclass
|
326
|
+
CloudSQLInstanceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkmanagement.v1.CloudSQLInstanceInfo").msgclass
|
327
|
+
end
|
328
|
+
end
|
329
|
+
end
|
330
|
+
end
|