google-cloud-network_management-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 +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,174 @@
|
|
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
|
+
# Request for the `ListConnectivityTests` method.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The parent resource of the Connectivity Tests:
|
28
|
+
# `projects/{project_id}/locations/global`
|
29
|
+
# @!attribute [rw] page_size
|
30
|
+
# @return [::Integer]
|
31
|
+
# Number of `ConnectivityTests` to return.
|
32
|
+
# @!attribute [rw] page_token
|
33
|
+
# @return [::String]
|
34
|
+
# Page token from an earlier query, as returned in `next_page_token`.
|
35
|
+
# @!attribute [rw] filter
|
36
|
+
# @return [::String]
|
37
|
+
# Lists the `ConnectivityTests` that match the filter expression. A filter
|
38
|
+
# expression filters the resources listed in the response. The expression
|
39
|
+
# must be of the form `<field> <operator> <value>` where operators: `<`, `>`,
|
40
|
+
# `<=`,
|
41
|
+
# `>=`,
|
42
|
+
# `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is
|
43
|
+
# roughly synonymous with equality). <field> can refer to a proto or JSON
|
44
|
+
# field, or a synthetic field. Field names can be camelCase or snake_case.
|
45
|
+
#
|
46
|
+
# Examples:
|
47
|
+
# - Filter by name:
|
48
|
+
# name = "projects/proj-1/locations/global/connectivityTests/test-1
|
49
|
+
#
|
50
|
+
# - Filter by labels:
|
51
|
+
# - Resources that have a key called `foo`
|
52
|
+
# labels.foo:*
|
53
|
+
# - Resources that have a key called `foo` whose value is `bar`
|
54
|
+
# labels.foo = bar
|
55
|
+
# @!attribute [rw] order_by
|
56
|
+
# @return [::String]
|
57
|
+
# Field to use to sort the list.
|
58
|
+
class ListConnectivityTestsRequest
|
59
|
+
include ::Google::Protobuf::MessageExts
|
60
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
61
|
+
end
|
62
|
+
|
63
|
+
# Response for the `ListConnectivityTests` method.
|
64
|
+
# @!attribute [rw] resources
|
65
|
+
# @return [::Array<::Google::Cloud::NetworkManagement::V1::ConnectivityTest>]
|
66
|
+
# List of Connectivity Tests.
|
67
|
+
# @!attribute [rw] next_page_token
|
68
|
+
# @return [::String]
|
69
|
+
# Page token to fetch the next set of Connectivity Tests.
|
70
|
+
# @!attribute [rw] unreachable
|
71
|
+
# @return [::Array<::String>]
|
72
|
+
# Locations that could not be reached (when querying all locations with `-`).
|
73
|
+
class ListConnectivityTestsResponse
|
74
|
+
include ::Google::Protobuf::MessageExts
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
76
|
+
end
|
77
|
+
|
78
|
+
# Request for the `GetConnectivityTest` method.
|
79
|
+
# @!attribute [rw] name
|
80
|
+
# @return [::String]
|
81
|
+
# Required. `ConnectivityTest` resource name using the form:
|
82
|
+
# `projects/{project_id}/locations/global/connectivityTests/{test_id}`
|
83
|
+
class GetConnectivityTestRequest
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
|
88
|
+
# Request for the `CreateConnectivityTest` method.
|
89
|
+
# @!attribute [rw] parent
|
90
|
+
# @return [::String]
|
91
|
+
# Required. The parent resource of the Connectivity Test to create:
|
92
|
+
# `projects/{project_id}/locations/global`
|
93
|
+
# @!attribute [rw] test_id
|
94
|
+
# @return [::String]
|
95
|
+
# Required. The logical name of the Connectivity Test in your project
|
96
|
+
# with the following restrictions:
|
97
|
+
#
|
98
|
+
# * Must contain only lowercase letters, numbers, and hyphens.
|
99
|
+
# * Must start with a letter.
|
100
|
+
# * Must be between 1-40 characters.
|
101
|
+
# * Must end with a number or a letter.
|
102
|
+
# * Must be unique within the customer project
|
103
|
+
# @!attribute [rw] resource
|
104
|
+
# @return [::Google::Cloud::NetworkManagement::V1::ConnectivityTest]
|
105
|
+
# Required. A `ConnectivityTest` resource
|
106
|
+
class CreateConnectivityTestRequest
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
|
111
|
+
# Request for the `UpdateConnectivityTest` method.
|
112
|
+
# @!attribute [rw] update_mask
|
113
|
+
# @return [::Google::Protobuf::FieldMask]
|
114
|
+
# Required. Mask of fields to update. At least one path must be supplied in
|
115
|
+
# this field.
|
116
|
+
# @!attribute [rw] resource
|
117
|
+
# @return [::Google::Cloud::NetworkManagement::V1::ConnectivityTest]
|
118
|
+
# Required. Only fields specified in update_mask are updated.
|
119
|
+
class UpdateConnectivityTestRequest
|
120
|
+
include ::Google::Protobuf::MessageExts
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
|
+
end
|
123
|
+
|
124
|
+
# Request for the `DeleteConnectivityTest` method.
|
125
|
+
# @!attribute [rw] name
|
126
|
+
# @return [::String]
|
127
|
+
# Required. Connectivity Test resource name using the form:
|
128
|
+
# `projects/{project_id}/locations/global/connectivityTests/{test_id}`
|
129
|
+
class DeleteConnectivityTestRequest
|
130
|
+
include ::Google::Protobuf::MessageExts
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
|
+
end
|
133
|
+
|
134
|
+
# Request for the `RerunConnectivityTest` method.
|
135
|
+
# @!attribute [rw] name
|
136
|
+
# @return [::String]
|
137
|
+
# Required. Connectivity Test resource name using the form:
|
138
|
+
# `projects/{project_id}/locations/global/connectivityTests/{test_id}`
|
139
|
+
class RerunConnectivityTestRequest
|
140
|
+
include ::Google::Protobuf::MessageExts
|
141
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
142
|
+
end
|
143
|
+
|
144
|
+
# Metadata describing an {::Google::Longrunning::Operation Operation}
|
145
|
+
# @!attribute [rw] create_time
|
146
|
+
# @return [::Google::Protobuf::Timestamp]
|
147
|
+
# The time the operation was created.
|
148
|
+
# @!attribute [rw] end_time
|
149
|
+
# @return [::Google::Protobuf::Timestamp]
|
150
|
+
# The time the operation finished running.
|
151
|
+
# @!attribute [rw] target
|
152
|
+
# @return [::String]
|
153
|
+
# Target of the operation - for example
|
154
|
+
# projects/project-1/locations/global/connectivityTests/test-1
|
155
|
+
# @!attribute [rw] verb
|
156
|
+
# @return [::String]
|
157
|
+
# Name of the verb executed by the operation.
|
158
|
+
# @!attribute [rw] status_detail
|
159
|
+
# @return [::String]
|
160
|
+
# Human-readable status of the operation, if any.
|
161
|
+
# @!attribute [rw] cancel_requested
|
162
|
+
# @return [::Boolean]
|
163
|
+
# Specifies if cancellation was requested for the operation.
|
164
|
+
# @!attribute [rw] api_version
|
165
|
+
# @return [::String]
|
166
|
+
# API version.
|
167
|
+
class OperationMetadata
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
@@ -0,0 +1,937 @@
|
|
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
|
+
# Trace represents one simulated packet forwarding path.
|
25
|
+
#
|
26
|
+
# * Each trace contains multiple ordered steps.
|
27
|
+
# * Each step is in a particular state with associated configuration.
|
28
|
+
# * State is categorized as final or non-final states.
|
29
|
+
# * Each final state has a reason associated.
|
30
|
+
# * Each trace must end with a final state (the last step).
|
31
|
+
# ```
|
32
|
+
# |---------------------Trace----------------------|
|
33
|
+
# Step1(State) Step2(State) --- StepN(State(final))
|
34
|
+
# ```
|
35
|
+
# @!attribute [rw] endpoint_info
|
36
|
+
# @return [::Google::Cloud::NetworkManagement::V1::EndpointInfo]
|
37
|
+
# Derived from the source and destination endpoints definition specified by
|
38
|
+
# user request, and validated by the data plane model.
|
39
|
+
# If there are multiple traces starting from different source locations, then
|
40
|
+
# the endpoint_info may be different between traces.
|
41
|
+
# @!attribute [rw] steps
|
42
|
+
# @return [::Array<::Google::Cloud::NetworkManagement::V1::Step>]
|
43
|
+
# A trace of a test contains multiple steps from the initial state to the
|
44
|
+
# final state (delivered, dropped, forwarded, or aborted).
|
45
|
+
#
|
46
|
+
# The steps are ordered by the processing sequence within the simulated
|
47
|
+
# network state machine. It is critical to preserve the order of the steps
|
48
|
+
# and avoid reordering or sorting them.
|
49
|
+
class Trace
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
end
|
53
|
+
|
54
|
+
# A simulated forwarding path is composed of multiple steps.
|
55
|
+
# Each step has a well-defined state and an associated configuration.
|
56
|
+
# @!attribute [rw] description
|
57
|
+
# @return [::String]
|
58
|
+
# A description of the step. Usually this is a summary of the state.
|
59
|
+
# @!attribute [rw] state
|
60
|
+
# @return [::Google::Cloud::NetworkManagement::V1::Step::State]
|
61
|
+
# Each step is in one of the pre-defined states.
|
62
|
+
# @!attribute [rw] causes_drop
|
63
|
+
# @return [::Boolean]
|
64
|
+
# This is a step that leads to the final state Drop.
|
65
|
+
# @!attribute [rw] project_id
|
66
|
+
# @return [::String]
|
67
|
+
# Project ID that contains the configuration this step is validating.
|
68
|
+
# @!attribute [rw] instance
|
69
|
+
# @return [::Google::Cloud::NetworkManagement::V1::InstanceInfo]
|
70
|
+
# Display information of a Compute Engine instance.
|
71
|
+
# @!attribute [rw] firewall
|
72
|
+
# @return [::Google::Cloud::NetworkManagement::V1::FirewallInfo]
|
73
|
+
# Display information of a Compute Engine firewall rule.
|
74
|
+
# @!attribute [rw] route
|
75
|
+
# @return [::Google::Cloud::NetworkManagement::V1::RouteInfo]
|
76
|
+
# Display information of a Compute Engine route.
|
77
|
+
# @!attribute [rw] endpoint
|
78
|
+
# @return [::Google::Cloud::NetworkManagement::V1::EndpointInfo]
|
79
|
+
# Display information of the source and destination under analysis.
|
80
|
+
# The endpoint information in an intermediate state may differ with the
|
81
|
+
# initial input, as it might be modified by state like NAT,
|
82
|
+
# or Connection Proxy.
|
83
|
+
# @!attribute [rw] forwarding_rule
|
84
|
+
# @return [::Google::Cloud::NetworkManagement::V1::ForwardingRuleInfo]
|
85
|
+
# Display information of a Compute Engine forwarding rule.
|
86
|
+
# @!attribute [rw] vpn_gateway
|
87
|
+
# @return [::Google::Cloud::NetworkManagement::V1::VpnGatewayInfo]
|
88
|
+
# Display information of a Compute Engine VPN gateway.
|
89
|
+
# @!attribute [rw] vpn_tunnel
|
90
|
+
# @return [::Google::Cloud::NetworkManagement::V1::VpnTunnelInfo]
|
91
|
+
# Display information of a Compute Engine VPN tunnel.
|
92
|
+
# @!attribute [rw] deliver
|
93
|
+
# @return [::Google::Cloud::NetworkManagement::V1::DeliverInfo]
|
94
|
+
# Display information of the final state "deliver" and reason.
|
95
|
+
# @!attribute [rw] forward
|
96
|
+
# @return [::Google::Cloud::NetworkManagement::V1::ForwardInfo]
|
97
|
+
# Display information of the final state "forward" and reason.
|
98
|
+
# @!attribute [rw] abort
|
99
|
+
# @return [::Google::Cloud::NetworkManagement::V1::AbortInfo]
|
100
|
+
# Display information of the final state "abort" and reason.
|
101
|
+
# @!attribute [rw] drop
|
102
|
+
# @return [::Google::Cloud::NetworkManagement::V1::DropInfo]
|
103
|
+
# Display information of the final state "drop" and reason.
|
104
|
+
# @!attribute [rw] load_balancer
|
105
|
+
# @return [::Google::Cloud::NetworkManagement::V1::LoadBalancerInfo]
|
106
|
+
# Display information of the load balancers.
|
107
|
+
# @!attribute [rw] network
|
108
|
+
# @return [::Google::Cloud::NetworkManagement::V1::NetworkInfo]
|
109
|
+
# Display information of a Google Cloud network.
|
110
|
+
# @!attribute [rw] gke_master
|
111
|
+
# @return [::Google::Cloud::NetworkManagement::V1::GKEMasterInfo]
|
112
|
+
# Display information of a Google Kubernetes Engine cluster master.
|
113
|
+
# @!attribute [rw] cloud_sql_instance
|
114
|
+
# @return [::Google::Cloud::NetworkManagement::V1::CloudSQLInstanceInfo]
|
115
|
+
# Display information of a Cloud SQL instance.
|
116
|
+
class Step
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
|
120
|
+
# Type of states that are defined in the network state machine.
|
121
|
+
# Each step in the packet trace is in a specific state.
|
122
|
+
module State
|
123
|
+
# Unspecified state.
|
124
|
+
STATE_UNSPECIFIED = 0
|
125
|
+
|
126
|
+
# Initial state: packet originating from a Compute Engine instance.
|
127
|
+
# An InstanceInfo is populated with starting instance information.
|
128
|
+
START_FROM_INSTANCE = 1
|
129
|
+
|
130
|
+
# Initial state: packet originating from the internet.
|
131
|
+
# The endpoint information is populated.
|
132
|
+
START_FROM_INTERNET = 2
|
133
|
+
|
134
|
+
# Initial state: packet originating from a VPC or on-premises network
|
135
|
+
# with internal source IP.
|
136
|
+
# If the source is a VPC network visible to the user, a NetworkInfo
|
137
|
+
# is populated with details of the network.
|
138
|
+
START_FROM_PRIVATE_NETWORK = 3
|
139
|
+
|
140
|
+
# Initial state: packet originating from a Google Kubernetes Engine cluster
|
141
|
+
# master. A GKEMasterInfo is populated with starting instance information.
|
142
|
+
START_FROM_GKE_MASTER = 21
|
143
|
+
|
144
|
+
# Initial state: packet originating from a Cloud SQL instance.
|
145
|
+
# A CloudSQLInstanceInfo is populated with starting instance information.
|
146
|
+
START_FROM_CLOUD_SQL_INSTANCE = 22
|
147
|
+
|
148
|
+
# Config checking state: verify ingress firewall rule.
|
149
|
+
APPLY_INGRESS_FIREWALL_RULE = 4
|
150
|
+
|
151
|
+
# Config checking state: verify egress firewall rule.
|
152
|
+
APPLY_EGRESS_FIREWALL_RULE = 5
|
153
|
+
|
154
|
+
# Config checking state: verify route.
|
155
|
+
APPLY_ROUTE = 6
|
156
|
+
|
157
|
+
# Config checking state: match forwarding rule.
|
158
|
+
APPLY_FORWARDING_RULE = 7
|
159
|
+
|
160
|
+
# Config checking state: packet sent or received under foreign IP
|
161
|
+
# address and allowed.
|
162
|
+
SPOOFING_APPROVED = 8
|
163
|
+
|
164
|
+
# Forwarding state: arriving at a Compute Engine instance.
|
165
|
+
ARRIVE_AT_INSTANCE = 9
|
166
|
+
|
167
|
+
# Forwarding state: arriving at a Compute Engine internal load balancer.
|
168
|
+
ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10
|
169
|
+
|
170
|
+
# Forwarding state: arriving at a Compute Engine external load balancer.
|
171
|
+
ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11
|
172
|
+
|
173
|
+
# Forwarding state: arriving at a Cloud VPN gateway.
|
174
|
+
ARRIVE_AT_VPN_GATEWAY = 12
|
175
|
+
|
176
|
+
# Forwarding state: arriving at a Cloud VPN tunnel.
|
177
|
+
ARRIVE_AT_VPN_TUNNEL = 13
|
178
|
+
|
179
|
+
# Transition state: packet header translated.
|
180
|
+
NAT = 14
|
181
|
+
|
182
|
+
# Transition state: original connection is terminated and a new proxied
|
183
|
+
# connection is initiated.
|
184
|
+
PROXY_CONNECTION = 15
|
185
|
+
|
186
|
+
# Final state: packet could be delivered.
|
187
|
+
DELIVER = 16
|
188
|
+
|
189
|
+
# Final state: packet could be dropped.
|
190
|
+
DROP = 17
|
191
|
+
|
192
|
+
# Final state: packet could be forwarded to a network with an unknown
|
193
|
+
# configuration.
|
194
|
+
FORWARD = 18
|
195
|
+
|
196
|
+
# Final state: analysis is aborted.
|
197
|
+
ABORT = 19
|
198
|
+
|
199
|
+
# Special state: viewer of the test result does not have permission to
|
200
|
+
# see the configuration in this step.
|
201
|
+
VIEWER_PERMISSION_MISSING = 20
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# For display only. Metadata associated with a Compute Engine instance.
|
206
|
+
# @!attribute [rw] display_name
|
207
|
+
# @return [::String]
|
208
|
+
# Name of a Compute Engine instance.
|
209
|
+
# @!attribute [rw] uri
|
210
|
+
# @return [::String]
|
211
|
+
# URI of a Compute Engine instance.
|
212
|
+
# @!attribute [rw] interface
|
213
|
+
# @return [::String]
|
214
|
+
# Name of the network interface of a Compute Engine instance.
|
215
|
+
# @!attribute [rw] network_uri
|
216
|
+
# @return [::String]
|
217
|
+
# URI of a Compute Engine network.
|
218
|
+
# @!attribute [rw] internal_ip
|
219
|
+
# @return [::String]
|
220
|
+
# Internal IP address of the network interface.
|
221
|
+
# @!attribute [rw] external_ip
|
222
|
+
# @return [::String]
|
223
|
+
# External IP address of the network interface.
|
224
|
+
# @!attribute [rw] network_tags
|
225
|
+
# @return [::Array<::String>]
|
226
|
+
# Network tags configured on the instance.
|
227
|
+
# @!attribute [rw] service_account
|
228
|
+
# @return [::String]
|
229
|
+
# Service account authorized for the instance.
|
230
|
+
class InstanceInfo
|
231
|
+
include ::Google::Protobuf::MessageExts
|
232
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
233
|
+
end
|
234
|
+
|
235
|
+
# For display only. Metadata associated with a Compute Engine network.
|
236
|
+
# @!attribute [rw] display_name
|
237
|
+
# @return [::String]
|
238
|
+
# Name of a Compute Engine network.
|
239
|
+
# @!attribute [rw] uri
|
240
|
+
# @return [::String]
|
241
|
+
# URI of a Compute Engine network.
|
242
|
+
# @!attribute [rw] matched_ip_range
|
243
|
+
# @return [::String]
|
244
|
+
# The IP range that matches the test.
|
245
|
+
class NetworkInfo
|
246
|
+
include ::Google::Protobuf::MessageExts
|
247
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
248
|
+
end
|
249
|
+
|
250
|
+
# For display only. Metadata associated with a VPC firewall rule, an implied
|
251
|
+
# VPC firewall rule, or a hierarchical firewall policy rule.
|
252
|
+
# @!attribute [rw] display_name
|
253
|
+
# @return [::String]
|
254
|
+
# The display name of the VPC firewall rule. This field is not applicable
|
255
|
+
# to hierarchical firewall policy rules.
|
256
|
+
# @!attribute [rw] uri
|
257
|
+
# @return [::String]
|
258
|
+
# The URI of the VPC firewall rule. This field is not applicable to
|
259
|
+
# implied firewall rules or hierarchical firewall policy rules.
|
260
|
+
# @!attribute [rw] direction
|
261
|
+
# @return [::String]
|
262
|
+
# Possible values: INGRESS, EGRESS
|
263
|
+
# @!attribute [rw] action
|
264
|
+
# @return [::String]
|
265
|
+
# Possible values: ALLOW, DENY
|
266
|
+
# @!attribute [rw] priority
|
267
|
+
# @return [::Integer]
|
268
|
+
# The priority of the firewall rule.
|
269
|
+
# @!attribute [rw] network_uri
|
270
|
+
# @return [::String]
|
271
|
+
# The URI of the VPC network that the firewall rule is associated with.
|
272
|
+
# This field is not applicable to hierarchical firewall policy rules.
|
273
|
+
# @!attribute [rw] target_tags
|
274
|
+
# @return [::Array<::String>]
|
275
|
+
# The target tags defined by the VPC firewall rule. This field is not
|
276
|
+
# applicable to hierarchical firewall policy rules.
|
277
|
+
# @!attribute [rw] target_service_accounts
|
278
|
+
# @return [::Array<::String>]
|
279
|
+
# The target service accounts specified by the firewall rule.
|
280
|
+
# @!attribute [rw] policy
|
281
|
+
# @return [::String]
|
282
|
+
# The hierarchical firewall policy that this rule is associated with.
|
283
|
+
# This field is not applicable to VPC firewall rules.
|
284
|
+
# @!attribute [rw] firewall_rule_type
|
285
|
+
# @return [::Google::Cloud::NetworkManagement::V1::FirewallInfo::FirewallRuleType]
|
286
|
+
# The firewall rule's type.
|
287
|
+
class FirewallInfo
|
288
|
+
include ::Google::Protobuf::MessageExts
|
289
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
290
|
+
|
291
|
+
# The firewall rule's type.
|
292
|
+
module FirewallRuleType
|
293
|
+
# Unspecified type.
|
294
|
+
FIREWALL_RULE_TYPE_UNSPECIFIED = 0
|
295
|
+
|
296
|
+
# Hierarchical firewall policy rule. For details, see
|
297
|
+
# [Hierarchical firewall policies
|
298
|
+
# overview](https://cloud.google.com/vpc/docs/firewall-policies).
|
299
|
+
HIERARCHICAL_FIREWALL_POLICY_RULE = 1
|
300
|
+
|
301
|
+
# VPC firewall rule. For details, see
|
302
|
+
# [VPC firewall rules
|
303
|
+
# overview](https://cloud.google.com/vpc/docs/firewalls).
|
304
|
+
VPC_FIREWALL_RULE = 2
|
305
|
+
|
306
|
+
# Implied VPC firewall rule. For details, see
|
307
|
+
# [Implied
|
308
|
+
# rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules).
|
309
|
+
IMPLIED_VPC_FIREWALL_RULE = 3
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# For display only. Metadata associated with a Compute Engine route.
|
314
|
+
# @!attribute [rw] route_type
|
315
|
+
# @return [::Google::Cloud::NetworkManagement::V1::RouteInfo::RouteType]
|
316
|
+
# Type of route.
|
317
|
+
# @!attribute [rw] next_hop_type
|
318
|
+
# @return [::Google::Cloud::NetworkManagement::V1::RouteInfo::NextHopType]
|
319
|
+
# Type of next hop.
|
320
|
+
# @!attribute [rw] display_name
|
321
|
+
# @return [::String]
|
322
|
+
# Name of a Compute Engine route.
|
323
|
+
# @!attribute [rw] uri
|
324
|
+
# @return [::String]
|
325
|
+
# URI of a Compute Engine route.
|
326
|
+
# Dynamic route from cloud router does not have a URI.
|
327
|
+
# Advertised route from Google Cloud VPC to on-premises network also does
|
328
|
+
# not have a URI.
|
329
|
+
# @!attribute [rw] dest_ip_range
|
330
|
+
# @return [::String]
|
331
|
+
# Destination IP range of the route.
|
332
|
+
# @!attribute [rw] next_hop
|
333
|
+
# @return [::String]
|
334
|
+
# Next hop of the route.
|
335
|
+
# @!attribute [rw] network_uri
|
336
|
+
# @return [::String]
|
337
|
+
# URI of a Compute Engine network.
|
338
|
+
# @!attribute [rw] priority
|
339
|
+
# @return [::Integer]
|
340
|
+
# Priority of the route.
|
341
|
+
# @!attribute [rw] instance_tags
|
342
|
+
# @return [::Array<::String>]
|
343
|
+
# Instance tags of the route.
|
344
|
+
class RouteInfo
|
345
|
+
include ::Google::Protobuf::MessageExts
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
347
|
+
|
348
|
+
# Type of route:
|
349
|
+
module RouteType
|
350
|
+
# Unspecified type. Default value.
|
351
|
+
ROUTE_TYPE_UNSPECIFIED = 0
|
352
|
+
|
353
|
+
# Route is a subnet route automatically created by the system.
|
354
|
+
SUBNET = 1
|
355
|
+
|
356
|
+
# Static route created by the user, including the default route to the
|
357
|
+
# internet.
|
358
|
+
STATIC = 2
|
359
|
+
|
360
|
+
# Dynamic route exchanged between BGP peers.
|
361
|
+
DYNAMIC = 3
|
362
|
+
|
363
|
+
# A subnet route received from peering network.
|
364
|
+
PEERING_SUBNET = 4
|
365
|
+
|
366
|
+
# A static route received from peering network.
|
367
|
+
PEERING_STATIC = 5
|
368
|
+
|
369
|
+
# A dynamic route received from peering network.
|
370
|
+
PEERING_DYNAMIC = 6
|
371
|
+
end
|
372
|
+
|
373
|
+
# Type of next hop:
|
374
|
+
module NextHopType
|
375
|
+
# Unspecified type. Default value.
|
376
|
+
NEXT_HOP_TYPE_UNSPECIFIED = 0
|
377
|
+
|
378
|
+
# Next hop is an IP address.
|
379
|
+
NEXT_HOP_IP = 1
|
380
|
+
|
381
|
+
# Next hop is a Compute Engine instance.
|
382
|
+
NEXT_HOP_INSTANCE = 2
|
383
|
+
|
384
|
+
# Next hop is a VPC network gateway.
|
385
|
+
NEXT_HOP_NETWORK = 3
|
386
|
+
|
387
|
+
# Next hop is a peering VPC.
|
388
|
+
NEXT_HOP_PEERING = 4
|
389
|
+
|
390
|
+
# Next hop is an interconnect.
|
391
|
+
NEXT_HOP_INTERCONNECT = 5
|
392
|
+
|
393
|
+
# Next hop is a VPN tunnel.
|
394
|
+
NEXT_HOP_VPN_TUNNEL = 6
|
395
|
+
|
396
|
+
# Next hop is a VPN gateway. This scenario only happens when tracing
|
397
|
+
# connectivity from an on-premises network to Google Cloud through a VPN.
|
398
|
+
# The analysis simulates a packet departing from the on-premises network
|
399
|
+
# through a VPN tunnel and arriving at a Cloud VPN gateway.
|
400
|
+
NEXT_HOP_VPN_GATEWAY = 7
|
401
|
+
|
402
|
+
# Next hop is an internet gateway.
|
403
|
+
NEXT_HOP_INTERNET_GATEWAY = 8
|
404
|
+
|
405
|
+
# Next hop is blackhole; that is, the next hop either does not exist or is
|
406
|
+
# not running.
|
407
|
+
NEXT_HOP_BLACKHOLE = 9
|
408
|
+
|
409
|
+
# Next hop is the forwarding rule of an Internal Load Balancer.
|
410
|
+
NEXT_HOP_ILB = 10
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
414
|
+
# For display only. Metadata associated with a Compute Engine forwarding rule.
|
415
|
+
# @!attribute [rw] display_name
|
416
|
+
# @return [::String]
|
417
|
+
# Name of a Compute Engine forwarding rule.
|
418
|
+
# @!attribute [rw] uri
|
419
|
+
# @return [::String]
|
420
|
+
# URI of a Compute Engine forwarding rule.
|
421
|
+
# @!attribute [rw] matched_protocol
|
422
|
+
# @return [::String]
|
423
|
+
# Protocol defined in the forwarding rule that matches the test.
|
424
|
+
# @!attribute [rw] matched_port_range
|
425
|
+
# @return [::String]
|
426
|
+
# Port range defined in the forwarding rule that matches the test.
|
427
|
+
# @!attribute [rw] vip
|
428
|
+
# @return [::String]
|
429
|
+
# VIP of the forwarding rule.
|
430
|
+
# @!attribute [rw] target
|
431
|
+
# @return [::String]
|
432
|
+
# Target type of the forwarding rule.
|
433
|
+
# @!attribute [rw] network_uri
|
434
|
+
# @return [::String]
|
435
|
+
# Network URI. Only valid for Internal Load Balancer.
|
436
|
+
class ForwardingRuleInfo
|
437
|
+
include ::Google::Protobuf::MessageExts
|
438
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
439
|
+
end
|
440
|
+
|
441
|
+
# For display only. Metadata associated with a load balancer.
|
442
|
+
# @!attribute [rw] load_balancer_type
|
443
|
+
# @return [::Google::Cloud::NetworkManagement::V1::LoadBalancerInfo::LoadBalancerType]
|
444
|
+
# Type of the load balancer.
|
445
|
+
# @!attribute [rw] health_check_uri
|
446
|
+
# @return [::String]
|
447
|
+
# URI of the health check for the load balancer.
|
448
|
+
# @!attribute [rw] backends
|
449
|
+
# @return [::Array<::Google::Cloud::NetworkManagement::V1::LoadBalancerBackend>]
|
450
|
+
# Information for the loadbalancer backends.
|
451
|
+
# @!attribute [rw] backend_type
|
452
|
+
# @return [::Google::Cloud::NetworkManagement::V1::LoadBalancerInfo::BackendType]
|
453
|
+
# Type of load balancer's backend configuration.
|
454
|
+
# @!attribute [rw] backend_uri
|
455
|
+
# @return [::String]
|
456
|
+
# Backend configuration URI.
|
457
|
+
class LoadBalancerInfo
|
458
|
+
include ::Google::Protobuf::MessageExts
|
459
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
460
|
+
|
461
|
+
# The type definition for a load balancer:
|
462
|
+
module LoadBalancerType
|
463
|
+
# Type is unspecified.
|
464
|
+
LOAD_BALANCER_TYPE_UNSPECIFIED = 0
|
465
|
+
|
466
|
+
# Internal TCP/UDP load balancer.
|
467
|
+
INTERNAL_TCP_UDP = 1
|
468
|
+
|
469
|
+
# Network TCP/UDP load balancer.
|
470
|
+
NETWORK_TCP_UDP = 2
|
471
|
+
|
472
|
+
# HTTP(S) proxy load balancer.
|
473
|
+
HTTP_PROXY = 3
|
474
|
+
|
475
|
+
# TCP proxy load balancer.
|
476
|
+
TCP_PROXY = 4
|
477
|
+
|
478
|
+
# SSL proxy load balancer.
|
479
|
+
SSL_PROXY = 5
|
480
|
+
end
|
481
|
+
|
482
|
+
# The type definition for a load balancer backend configuration:
|
483
|
+
module BackendType
|
484
|
+
# Type is unspecified.
|
485
|
+
BACKEND_TYPE_UNSPECIFIED = 0
|
486
|
+
|
487
|
+
# Backend Service as the load balancer's backend.
|
488
|
+
BACKEND_SERVICE = 1
|
489
|
+
|
490
|
+
# Target Pool as the load balancer's backend.
|
491
|
+
TARGET_POOL = 2
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
495
|
+
# For display only. Metadata associated with a specific load balancer backend.
|
496
|
+
# @!attribute [rw] display_name
|
497
|
+
# @return [::String]
|
498
|
+
# Name of a Compute Engine instance or network endpoint.
|
499
|
+
# @!attribute [rw] uri
|
500
|
+
# @return [::String]
|
501
|
+
# URI of a Compute Engine instance or network endpoint.
|
502
|
+
# @!attribute [rw] health_check_firewall_state
|
503
|
+
# @return [::Google::Cloud::NetworkManagement::V1::LoadBalancerBackend::HealthCheckFirewallState]
|
504
|
+
# State of the health check firewall configuration.
|
505
|
+
# @!attribute [rw] health_check_allowing_firewall_rules
|
506
|
+
# @return [::Array<::String>]
|
507
|
+
# A list of firewall rule URIs allowing probes from health check IP ranges.
|
508
|
+
# @!attribute [rw] health_check_blocking_firewall_rules
|
509
|
+
# @return [::Array<::String>]
|
510
|
+
# A list of firewall rule URIs blocking probes from health check IP ranges.
|
511
|
+
class LoadBalancerBackend
|
512
|
+
include ::Google::Protobuf::MessageExts
|
513
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
514
|
+
|
515
|
+
# State of a health check firewall configuration:
|
516
|
+
module HealthCheckFirewallState
|
517
|
+
# State is unspecified. Default state if not populated.
|
518
|
+
HEALTH_CHECK_FIREWALL_STATE_UNSPECIFIED = 0
|
519
|
+
|
520
|
+
# There are configured firewall rules to allow health check probes to the
|
521
|
+
# backend.
|
522
|
+
CONFIGURED = 1
|
523
|
+
|
524
|
+
# There are firewall rules configured to allow partial health check ranges
|
525
|
+
# or block all health check ranges.
|
526
|
+
# If a health check probe is sent from denied IP ranges,
|
527
|
+
# the health check to the backend will fail. Then, the backend will be
|
528
|
+
# marked unhealthy and will not receive traffic sent to the load balancer.
|
529
|
+
MISCONFIGURED = 2
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
533
|
+
# For display only. Metadata associated with a Compute Engine VPN gateway.
|
534
|
+
# @!attribute [rw] display_name
|
535
|
+
# @return [::String]
|
536
|
+
# Name of a VPN gateway.
|
537
|
+
# @!attribute [rw] uri
|
538
|
+
# @return [::String]
|
539
|
+
# URI of a VPN gateway.
|
540
|
+
# @!attribute [rw] network_uri
|
541
|
+
# @return [::String]
|
542
|
+
# URI of a Compute Engine network where the VPN gateway is configured.
|
543
|
+
# @!attribute [rw] ip_address
|
544
|
+
# @return [::String]
|
545
|
+
# IP address of the VPN gateway.
|
546
|
+
# @!attribute [rw] vpn_tunnel_uri
|
547
|
+
# @return [::String]
|
548
|
+
# A VPN tunnel that is associated with this VPN gateway.
|
549
|
+
# There may be multiple VPN tunnels configured on a VPN gateway, and only
|
550
|
+
# the one relevant to the test is displayed.
|
551
|
+
# @!attribute [rw] region
|
552
|
+
# @return [::String]
|
553
|
+
# Name of a Google Cloud region where this VPN gateway is configured.
|
554
|
+
class VpnGatewayInfo
|
555
|
+
include ::Google::Protobuf::MessageExts
|
556
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
557
|
+
end
|
558
|
+
|
559
|
+
# For display only. Metadata associated with a Compute Engine VPN tunnel.
|
560
|
+
# @!attribute [rw] display_name
|
561
|
+
# @return [::String]
|
562
|
+
# Name of a VPN tunnel.
|
563
|
+
# @!attribute [rw] uri
|
564
|
+
# @return [::String]
|
565
|
+
# URI of a VPN tunnel.
|
566
|
+
# @!attribute [rw] source_gateway
|
567
|
+
# @return [::String]
|
568
|
+
# URI of the VPN gateway at local end of the tunnel.
|
569
|
+
# @!attribute [rw] remote_gateway
|
570
|
+
# @return [::String]
|
571
|
+
# URI of a VPN gateway at remote end of the tunnel.
|
572
|
+
# @!attribute [rw] remote_gateway_ip
|
573
|
+
# @return [::String]
|
574
|
+
# Remote VPN gateway's IP address.
|
575
|
+
# @!attribute [rw] source_gateway_ip
|
576
|
+
# @return [::String]
|
577
|
+
# Local VPN gateway's IP address.
|
578
|
+
# @!attribute [rw] network_uri
|
579
|
+
# @return [::String]
|
580
|
+
# URI of a Compute Engine network where the VPN tunnel is configured.
|
581
|
+
# @!attribute [rw] region
|
582
|
+
# @return [::String]
|
583
|
+
# Name of a Google Cloud region where this VPN tunnel is configured.
|
584
|
+
# @!attribute [rw] routing_type
|
585
|
+
# @return [::Google::Cloud::NetworkManagement::V1::VpnTunnelInfo::RoutingType]
|
586
|
+
# Type of the routing policy.
|
587
|
+
class VpnTunnelInfo
|
588
|
+
include ::Google::Protobuf::MessageExts
|
589
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
590
|
+
|
591
|
+
# Types of VPN routing policy. For details, refer to [Networks and Tunnel
|
592
|
+
# routing](https://cloud.google.com/network-connectivity/docs/vpn/concepts/choosing-networks-routing/).
|
593
|
+
module RoutingType
|
594
|
+
# Unspecified type. Default value.
|
595
|
+
ROUTING_TYPE_UNSPECIFIED = 0
|
596
|
+
|
597
|
+
# Route based VPN.
|
598
|
+
ROUTE_BASED = 1
|
599
|
+
|
600
|
+
# Policy based routing.
|
601
|
+
POLICY_BASED = 2
|
602
|
+
|
603
|
+
# Dynamic (BGP) routing.
|
604
|
+
DYNAMIC = 3
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
608
|
+
# For display only. The specification of the endpoints for the test.
|
609
|
+
# EndpointInfo is derived from source and destination Endpoint and validated
|
610
|
+
# by the backend data plane model.
|
611
|
+
# @!attribute [rw] source_ip
|
612
|
+
# @return [::String]
|
613
|
+
# Source IP address.
|
614
|
+
# @!attribute [rw] destination_ip
|
615
|
+
# @return [::String]
|
616
|
+
# Destination IP address.
|
617
|
+
# @!attribute [rw] protocol
|
618
|
+
# @return [::String]
|
619
|
+
# IP protocol in string format, for example: "TCP", "UDP", "ICMP".
|
620
|
+
# @!attribute [rw] source_port
|
621
|
+
# @return [::Integer]
|
622
|
+
# Source port. Only valid when protocol is TCP or UDP.
|
623
|
+
# @!attribute [rw] destination_port
|
624
|
+
# @return [::Integer]
|
625
|
+
# Destination port. Only valid when protocol is TCP or UDP.
|
626
|
+
# @!attribute [rw] source_network_uri
|
627
|
+
# @return [::String]
|
628
|
+
# URI of the network where this packet originates from.
|
629
|
+
# @!attribute [rw] destination_network_uri
|
630
|
+
# @return [::String]
|
631
|
+
# URI of the network where this packet is sent to.
|
632
|
+
class EndpointInfo
|
633
|
+
include ::Google::Protobuf::MessageExts
|
634
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
635
|
+
end
|
636
|
+
|
637
|
+
# Details of the final state "deliver" and associated resource.
|
638
|
+
# @!attribute [rw] target
|
639
|
+
# @return [::Google::Cloud::NetworkManagement::V1::DeliverInfo::Target]
|
640
|
+
# Target type where the packet is delivered to.
|
641
|
+
# @!attribute [rw] resource_uri
|
642
|
+
# @return [::String]
|
643
|
+
# URI of the resource that the packet is delivered to.
|
644
|
+
class DeliverInfo
|
645
|
+
include ::Google::Protobuf::MessageExts
|
646
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
647
|
+
|
648
|
+
# Deliver target types:
|
649
|
+
module Target
|
650
|
+
# Target not specified.
|
651
|
+
TARGET_UNSPECIFIED = 0
|
652
|
+
|
653
|
+
# Target is a Compute Engine instance.
|
654
|
+
INSTANCE = 1
|
655
|
+
|
656
|
+
# Target is the internet.
|
657
|
+
INTERNET = 2
|
658
|
+
|
659
|
+
# Target is a Google API.
|
660
|
+
GOOGLE_API = 3
|
661
|
+
|
662
|
+
# Target is a Google Kubernetes Engine cluster master.
|
663
|
+
GKE_MASTER = 4
|
664
|
+
|
665
|
+
# Target is a Cloud SQL instance.
|
666
|
+
CLOUD_SQL_INSTANCE = 5
|
667
|
+
end
|
668
|
+
end
|
669
|
+
|
670
|
+
# Details of the final state "forward" and associated resource.
|
671
|
+
# @!attribute [rw] target
|
672
|
+
# @return [::Google::Cloud::NetworkManagement::V1::ForwardInfo::Target]
|
673
|
+
# Target type where this packet is forwarded to.
|
674
|
+
# @!attribute [rw] resource_uri
|
675
|
+
# @return [::String]
|
676
|
+
# URI of the resource that the packet is forwarded to.
|
677
|
+
class ForwardInfo
|
678
|
+
include ::Google::Protobuf::MessageExts
|
679
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
680
|
+
|
681
|
+
# Forward target types.
|
682
|
+
module Target
|
683
|
+
# Target not specified.
|
684
|
+
TARGET_UNSPECIFIED = 0
|
685
|
+
|
686
|
+
# Forwarded to a VPC peering network.
|
687
|
+
PEERING_VPC = 1
|
688
|
+
|
689
|
+
# Forwarded to a Cloud VPN gateway.
|
690
|
+
VPN_GATEWAY = 2
|
691
|
+
|
692
|
+
# Forwarded to a Cloud Interconnect connection.
|
693
|
+
INTERCONNECT = 3
|
694
|
+
|
695
|
+
# Forwarded to a Google Kubernetes Engine Container cluster master.
|
696
|
+
GKE_MASTER = 4
|
697
|
+
|
698
|
+
# Forwarded to the next hop of a custom route imported from a peering VPC.
|
699
|
+
IMPORTED_CUSTOM_ROUTE_NEXT_HOP = 5
|
700
|
+
|
701
|
+
# Forwarded to a Cloud SQL instance.
|
702
|
+
CLOUD_SQL_INSTANCE = 6
|
703
|
+
end
|
704
|
+
end
|
705
|
+
|
706
|
+
# Details of the final state "abort" and associated resource.
|
707
|
+
# @!attribute [rw] cause
|
708
|
+
# @return [::Google::Cloud::NetworkManagement::V1::AbortInfo::Cause]
|
709
|
+
# Causes that the analysis is aborted.
|
710
|
+
# @!attribute [rw] resource_uri
|
711
|
+
# @return [::String]
|
712
|
+
# URI of the resource that caused the abort.
|
713
|
+
class AbortInfo
|
714
|
+
include ::Google::Protobuf::MessageExts
|
715
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
716
|
+
|
717
|
+
# Abort cause types:
|
718
|
+
module Cause
|
719
|
+
# Cause is unspecified.
|
720
|
+
CAUSE_UNSPECIFIED = 0
|
721
|
+
|
722
|
+
# Aborted due to unknown network.
|
723
|
+
# The reachability analysis cannot proceed because the user does not have
|
724
|
+
# access to the host project's network configurations, including firewall
|
725
|
+
# rules and routes. This happens when the project is a service project and
|
726
|
+
# the endpoints being traced are in the host project's network.
|
727
|
+
UNKNOWN_NETWORK = 1
|
728
|
+
|
729
|
+
# Aborted because the IP address(es) are unknown.
|
730
|
+
UNKNOWN_IP = 2
|
731
|
+
|
732
|
+
# Aborted because no project information can be derived from the test
|
733
|
+
# input.
|
734
|
+
UNKNOWN_PROJECT = 3
|
735
|
+
|
736
|
+
# Aborted because the user lacks the permission to access all or part of
|
737
|
+
# the network configurations required to run the test.
|
738
|
+
PERMISSION_DENIED = 4
|
739
|
+
|
740
|
+
# Aborted because no valid source endpoint is derived from the input test
|
741
|
+
# request.
|
742
|
+
NO_SOURCE_LOCATION = 5
|
743
|
+
|
744
|
+
# Aborted because the source and/or destination endpoint specified in
|
745
|
+
# the test are invalid. The possible reasons that an endpoint is
|
746
|
+
# invalid include: malformed IP address; nonexistent instance or
|
747
|
+
# network URI; IP address not in the range of specified network URI; and
|
748
|
+
# instance not owning the network interface in the specified network.
|
749
|
+
INVALID_ARGUMENT = 6
|
750
|
+
|
751
|
+
# Aborted because traffic is sent from a public IP to an instance without
|
752
|
+
# an external IP.
|
753
|
+
NO_EXTERNAL_IP = 7
|
754
|
+
|
755
|
+
# Aborted because none of the traces matches destination information
|
756
|
+
# specified in the input test request.
|
757
|
+
UNINTENDED_DESTINATION = 8
|
758
|
+
|
759
|
+
# Aborted because the number of steps in the trace exceeding a certain
|
760
|
+
# limit which may be caused by routing loop.
|
761
|
+
TRACE_TOO_LONG = 9
|
762
|
+
|
763
|
+
# Aborted due to internal server error.
|
764
|
+
INTERNAL_ERROR = 10
|
765
|
+
|
766
|
+
# Aborted because the source endpoint could not be found.
|
767
|
+
SOURCE_ENDPOINT_NOT_FOUND = 11
|
768
|
+
|
769
|
+
# Aborted because the source network does not match the source endpoint.
|
770
|
+
MISMATCHED_SOURCE_NETWORK = 12
|
771
|
+
|
772
|
+
# Aborted because the destination endpoint could not be found.
|
773
|
+
DESTINATION_ENDPOINT_NOT_FOUND = 13
|
774
|
+
|
775
|
+
# Aborted because the destination network does not match the destination
|
776
|
+
# endpoint.
|
777
|
+
MISMATCHED_DESTINATION_NETWORK = 14
|
778
|
+
end
|
779
|
+
end
|
780
|
+
|
781
|
+
# Details of the final state "drop" and associated resource.
|
782
|
+
# @!attribute [rw] cause
|
783
|
+
# @return [::Google::Cloud::NetworkManagement::V1::DropInfo::Cause]
|
784
|
+
# Cause that the packet is dropped.
|
785
|
+
# @!attribute [rw] resource_uri
|
786
|
+
# @return [::String]
|
787
|
+
# URI of the resource that caused the drop.
|
788
|
+
class DropInfo
|
789
|
+
include ::Google::Protobuf::MessageExts
|
790
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
791
|
+
|
792
|
+
# Drop cause types:
|
793
|
+
module Cause
|
794
|
+
# Cause is unspecified.
|
795
|
+
CAUSE_UNSPECIFIED = 0
|
796
|
+
|
797
|
+
# Destination external address cannot be resolved to a known target. If
|
798
|
+
# the address is used in a Google Cloud project, provide the project ID
|
799
|
+
# as test input.
|
800
|
+
UNKNOWN_EXTERNAL_ADDRESS = 1
|
801
|
+
|
802
|
+
# A Compute Engine instance can only send or receive a packet with a
|
803
|
+
# foreign IP address if ip_forward is enabled.
|
804
|
+
FOREIGN_IP_DISALLOWED = 2
|
805
|
+
|
806
|
+
# Dropped due to a firewall rule, unless allowed due to connection
|
807
|
+
# tracking.
|
808
|
+
FIREWALL_RULE = 3
|
809
|
+
|
810
|
+
# Dropped due to no routes.
|
811
|
+
NO_ROUTE = 4
|
812
|
+
|
813
|
+
# Dropped due to invalid route. Route's next hop is a blackhole.
|
814
|
+
ROUTE_BLACKHOLE = 5
|
815
|
+
|
816
|
+
# Packet is sent to a wrong (unintended) network. Example: you trace a
|
817
|
+
# packet from VM1:Network1 to VM2:Network2, however, the route configured
|
818
|
+
# in Network1 sends the packet destined for VM2's IP addresss to Network3.
|
819
|
+
ROUTE_WRONG_NETWORK = 6
|
820
|
+
|
821
|
+
# Packet with internal destination address sent to the internet gateway.
|
822
|
+
PRIVATE_TRAFFIC_TO_INTERNET = 7
|
823
|
+
|
824
|
+
# Instance with only an internal IP address tries to access Google API and
|
825
|
+
# services, but private Google access is not enabled.
|
826
|
+
PRIVATE_GOOGLE_ACCESS_DISALLOWED = 8
|
827
|
+
|
828
|
+
# Instance with only an internal IP address tries to access external hosts,
|
829
|
+
# but Cloud NAT is not enabled in the subnet, unless special configurations
|
830
|
+
# on a VM allow this connection. For more details, see [Special
|
831
|
+
# configurations for VM
|
832
|
+
# instances](https://cloud.google.com/vpc/docs/special-configurations).
|
833
|
+
NO_EXTERNAL_ADDRESS = 9
|
834
|
+
|
835
|
+
# Destination internal address cannot be resolved to a known target. If
|
836
|
+
# this is a shared VPC scenario, verify if the service project ID is
|
837
|
+
# provided as test input. Otherwise, verify if the IP address is being
|
838
|
+
# used in the project.
|
839
|
+
UNKNOWN_INTERNAL_ADDRESS = 10
|
840
|
+
|
841
|
+
# Forwarding rule's protocol and ports do not match the packet header.
|
842
|
+
FORWARDING_RULE_MISMATCH = 11
|
843
|
+
|
844
|
+
# Forwarding rule does not have backends configured.
|
845
|
+
FORWARDING_RULE_NO_INSTANCES = 12
|
846
|
+
|
847
|
+
# Firewalls block the health check probes to the backends and cause
|
848
|
+
# the backends to be unavailable for traffic from the load balancer.
|
849
|
+
# For more details, see [Health check firewall
|
850
|
+
# rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules).
|
851
|
+
FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK = 13
|
852
|
+
|
853
|
+
# Packet is sent from or to a Compute Engine instance that is not in a
|
854
|
+
# running state.
|
855
|
+
INSTANCE_NOT_RUNNING = 14
|
856
|
+
|
857
|
+
# The type of traffic is blocked and the user cannot configure a firewall
|
858
|
+
# rule to enable it. See [Always blocked
|
859
|
+
# traffic](https://cloud.google.com/vpc/docs/firewalls#blockedtraffic) for
|
860
|
+
# more details.
|
861
|
+
TRAFFIC_TYPE_BLOCKED = 15
|
862
|
+
|
863
|
+
# Access to Google Kubernetes Engine cluster master's endpoint is not
|
864
|
+
# authorized. See [Access to the cluster
|
865
|
+
# endpoints](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#access_to_the_cluster_endpoints)
|
866
|
+
# for more details.
|
867
|
+
GKE_MASTER_UNAUTHORIZED_ACCESS = 16
|
868
|
+
|
869
|
+
# Access to the Cloud SQL instance endpoint is not authorized.
|
870
|
+
# See [Authorizing with authorized
|
871
|
+
# networks](https://cloud.google.com/sql/docs/mysql/authorize-networks) for
|
872
|
+
# more details.
|
873
|
+
CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCESS = 17
|
874
|
+
|
875
|
+
# Packet was dropped inside Google Kubernetes Engine Service.
|
876
|
+
DROPPED_INSIDE_GKE_SERVICE = 18
|
877
|
+
|
878
|
+
# Packet was dropped inside Cloud SQL Service.
|
879
|
+
DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19
|
880
|
+
|
881
|
+
# Packet was dropped because there is no peering between the originating
|
882
|
+
# network and the Google Managed Services Network.
|
883
|
+
GOOGLE_MANAGED_SERVICE_NO_PEERING = 20
|
884
|
+
|
885
|
+
# Packet was dropped because the Cloud SQL instance has neither a private
|
886
|
+
# nor a public IP address.
|
887
|
+
CLOUD_SQL_INSTANCE_NO_IP_ADDRESS = 21
|
888
|
+
end
|
889
|
+
end
|
890
|
+
|
891
|
+
# For display only. Metadata associated with a Google Kubernetes Engine (GKE)
|
892
|
+
# cluster master.
|
893
|
+
# @!attribute [rw] cluster_uri
|
894
|
+
# @return [::String]
|
895
|
+
# URI of a GKE cluster.
|
896
|
+
# @!attribute [rw] cluster_network_uri
|
897
|
+
# @return [::String]
|
898
|
+
# URI of a GKE cluster network.
|
899
|
+
# @!attribute [rw] internal_ip
|
900
|
+
# @return [::String]
|
901
|
+
# Internal IP address of a GKE cluster master.
|
902
|
+
# @!attribute [rw] external_ip
|
903
|
+
# @return [::String]
|
904
|
+
# External IP address of a GKE cluster master.
|
905
|
+
class GKEMasterInfo
|
906
|
+
include ::Google::Protobuf::MessageExts
|
907
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
908
|
+
end
|
909
|
+
|
910
|
+
# For display only. Metadata associated with a Cloud SQL instance.
|
911
|
+
# @!attribute [rw] display_name
|
912
|
+
# @return [::String]
|
913
|
+
# Name of a Cloud SQL instance.
|
914
|
+
# @!attribute [rw] uri
|
915
|
+
# @return [::String]
|
916
|
+
# URI of a Cloud SQL instance.
|
917
|
+
# @!attribute [rw] network_uri
|
918
|
+
# @return [::String]
|
919
|
+
# URI of a Cloud SQL instance network or empty string if the instance does
|
920
|
+
# not have one.
|
921
|
+
# @!attribute [rw] internal_ip
|
922
|
+
# @return [::String]
|
923
|
+
# Internal IP address of a Cloud SQL instance.
|
924
|
+
# @!attribute [rw] external_ip
|
925
|
+
# @return [::String]
|
926
|
+
# External IP address of a Cloud SQL instance.
|
927
|
+
# @!attribute [rw] region
|
928
|
+
# @return [::String]
|
929
|
+
# Region in which the Cloud SQL instance is running.
|
930
|
+
class CloudSQLInstanceInfo
|
931
|
+
include ::Google::Protobuf::MessageExts
|
932
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
933
|
+
end
|
934
|
+
end
|
935
|
+
end
|
936
|
+
end
|
937
|
+
end
|