google-cloud-network_connectivity-v1 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,86 +0,0 @@
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 NetworkConnectivity
23
- module V1
24
- module PolicyBasedRoutingService
25
- # Path helper methods for the PolicyBasedRoutingService API.
26
- module Paths
27
- ##
28
- # Create a fully-qualified Location resource string.
29
- #
30
- # The resource will be in the following format:
31
- #
32
- # `projects/{project}/locations/{location}`
33
- #
34
- # @param project [String]
35
- # @param location [String]
36
- #
37
- # @return [::String]
38
- def location_path project:, location:
39
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
40
-
41
- "projects/#{project}/locations/#{location}"
42
- end
43
-
44
- ##
45
- # Create a fully-qualified Network resource string.
46
- #
47
- # The resource will be in the following format:
48
- #
49
- # `projects/{project}/global/networks/{resource_id}`
50
- #
51
- # @param project [String]
52
- # @param resource_id [String]
53
- #
54
- # @return [::String]
55
- def network_path project:, resource_id:
56
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
57
-
58
- "projects/#{project}/global/networks/#{resource_id}"
59
- end
60
-
61
- ##
62
- # Create a fully-qualified PolicyBasedRoute resource string.
63
- #
64
- # The resource will be in the following format:
65
- #
66
- # `projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}`
67
- #
68
- # @param project [String]
69
- # @param location [String]
70
- # @param policy_based_route [String]
71
- #
72
- # @return [::String]
73
- def policy_based_route_path project:, location:, policy_based_route:
74
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
75
- raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
76
-
77
- "projects/#{project}/#{location}/global/PolicyBasedRoutes/#{policy_based_route}"
78
- end
79
-
80
- extend self
81
- end
82
- end
83
- end
84
- end
85
- end
86
- end
@@ -1,51 +0,0 @@
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/network_connectivity/v1/version"
24
-
25
- require "google/cloud/network_connectivity/v1/policy_based_routing_service/credentials"
26
- require "google/cloud/network_connectivity/v1/policy_based_routing_service/paths"
27
- require "google/cloud/network_connectivity/v1/policy_based_routing_service/operations"
28
- require "google/cloud/network_connectivity/v1/policy_based_routing_service/client"
29
-
30
- module Google
31
- module Cloud
32
- module NetworkConnectivity
33
- module V1
34
- ##
35
- # Policy-Based Routing allows GCP customers to specify flexibile routing
36
- # policies for Layer 4 traffic traversing through the connected service.
37
- #
38
- # To load this service and instantiate a client:
39
- #
40
- # require "google/cloud/network_connectivity/v1/policy_based_routing_service"
41
- # client = ::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoutingService::Client.new
42
- #
43
- module PolicyBasedRoutingService
44
- end
45
- end
46
- end
47
- end
48
- end
49
-
50
- helper_path = ::File.join __dir__, "policy_based_routing_service", "helpers.rb"
51
- require "google/cloud/network_connectivity/v1/policy_based_routing_service/helpers" if ::File.file? helper_path
@@ -1,108 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/networkconnectivity/v1/policy_based_routing.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/timestamp_pb'
12
-
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/cloud/networkconnectivity/v1/policy_based_routing.proto", :syntax => :proto3) do
15
- add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute" do
16
- optional :name, :string, 1
17
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
18
- optional :update_time, :message, 3, "google.protobuf.Timestamp"
19
- map :labels, :string, :string, 4
20
- optional :description, :string, 5
21
- optional :network, :string, 6
22
- optional :filter, :message, 10, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter"
23
- optional :priority, :int32, 11
24
- repeated :warnings, :message, 14, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings"
25
- optional :self_link, :string, 15
26
- optional :kind, :string, 16
27
- oneof :target do
28
- optional :virtual_machine, :message, 18, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine"
29
- optional :interconnect_attachment, :message, 9, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment"
30
- end
31
- oneof :next_hop do
32
- optional :next_hop_ilb_ip, :string, 12
33
- end
34
- end
35
- add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine" do
36
- repeated :tags, :string, 1
37
- end
38
- add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment" do
39
- optional :region, :string, 1
40
- end
41
- add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter" do
42
- optional :ip_protocol, :string, 1
43
- optional :src_range, :string, 2
44
- optional :dest_range, :string, 3
45
- optional :protocol_version, :enum, 6, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion"
46
- end
47
- add_enum "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion" do
48
- value :PROTOCOL_VERSION_UNSPECIFIED, 0
49
- value :IPV4, 1
50
- end
51
- add_message "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings" do
52
- optional :code, :enum, 1, "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code"
53
- map :data, :string, :string, 2
54
- optional :warning_message, :string, 3
55
- end
56
- add_enum "google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code" do
57
- value :WARNING_UNSPECIFIED, 0
58
- value :RESOURCE_NOT_ACTIVE, 1
59
- value :RESOURCE_BEING_MODIFIED, 2
60
- end
61
- add_message "google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest" do
62
- optional :parent, :string, 1
63
- optional :page_size, :int32, 2
64
- optional :page_token, :string, 3
65
- optional :filter, :string, 4
66
- optional :order_by, :string, 5
67
- end
68
- add_message "google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse" do
69
- repeated :policy_based_routes, :message, 1, "google.cloud.networkconnectivity.v1.PolicyBasedRoute"
70
- optional :next_page_token, :string, 2
71
- repeated :unreachable, :string, 3
72
- end
73
- add_message "google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest" do
74
- optional :name, :string, 1
75
- end
76
- add_message "google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest" do
77
- optional :parent, :string, 1
78
- optional :policy_based_route_id, :string, 2
79
- optional :policy_based_route, :message, 3, "google.cloud.networkconnectivity.v1.PolicyBasedRoute"
80
- optional :request_id, :string, 4
81
- end
82
- add_message "google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest" do
83
- optional :name, :string, 1
84
- optional :request_id, :string, 2
85
- end
86
- end
87
- end
88
-
89
- module Google
90
- module Cloud
91
- module NetworkConnectivity
92
- module V1
93
- PolicyBasedRoute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute").msgclass
94
- PolicyBasedRoute::VirtualMachine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine").msgclass
95
- PolicyBasedRoute::InterconnectAttachment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment").msgclass
96
- PolicyBasedRoute::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter").msgclass
97
- PolicyBasedRoute::Filter::ProtocolVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion").enummodule
98
- PolicyBasedRoute::Warnings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings").msgclass
99
- PolicyBasedRoute::Warnings::Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code").enummodule
100
- ListPolicyBasedRoutesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest").msgclass
101
- ListPolicyBasedRoutesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse").msgclass
102
- GetPolicyBasedRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest").msgclass
103
- CreatePolicyBasedRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest").msgclass
104
- DeletePolicyBasedRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest").msgclass
105
- end
106
- end
107
- end
108
- end
@@ -1,52 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/networkconnectivity/v1/policy_based_routing.proto for package 'Google.Cloud.NetworkConnectivity.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/networkconnectivity/v1/policy_based_routing_pb'
21
-
22
- module Google
23
- module Cloud
24
- module NetworkConnectivity
25
- module V1
26
- module PolicyBasedRoutingService
27
- # Policy-Based Routing allows GCP customers to specify flexibile routing
28
- # policies for Layer 4 traffic traversing through the connected service.
29
- class Service
30
-
31
- include ::GRPC::GenericService
32
-
33
- self.marshal_class_method = :encode
34
- self.unmarshal_class_method = :decode
35
- self.service_name = 'google.cloud.networkconnectivity.v1.PolicyBasedRoutingService'
36
-
37
- # Lists PolicyBasedRoutes in a given project and location.
38
- rpc :ListPolicyBasedRoutes, ::Google::Cloud::NetworkConnectivity::V1::ListPolicyBasedRoutesRequest, ::Google::Cloud::NetworkConnectivity::V1::ListPolicyBasedRoutesResponse
39
- # Gets details of a single PolicyBasedRoute.
40
- rpc :GetPolicyBasedRoute, ::Google::Cloud::NetworkConnectivity::V1::GetPolicyBasedRouteRequest, ::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute
41
- # Creates a new PolicyBasedRoute in a given project and location.
42
- rpc :CreatePolicyBasedRoute, ::Google::Cloud::NetworkConnectivity::V1::CreatePolicyBasedRouteRequest, ::Google::Longrunning::Operation
43
- # Deletes a single PolicyBasedRoute.
44
- rpc :DeletePolicyBasedRoute, ::Google::Cloud::NetworkConnectivity::V1::DeletePolicyBasedRouteRequest, ::Google::Longrunning::Operation
45
- end
46
-
47
- Stub = Service.rpc_stub_class
48
- end
49
- end
50
- end
51
- end
52
- end
@@ -1,295 +0,0 @@
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 NetworkConnectivity
23
- module V1
24
- # Policy Based Routes (PBR) are more powerful routes that allows GCP customers
25
- # to route their L4 network traffic based on not just destination IP, but also
26
- # source IP, protocol and more. A PBR always take precedence when it conflicts
27
- # with other types of routes.
28
- # Next id: 19
29
- # @!attribute [rw] virtual_machine
30
- # @return [::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute::VirtualMachine]
31
- # Optional. VM instances to which this policy based route applies to.
32
- # @!attribute [rw] interconnect_attachment
33
- # @return [::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute::InterconnectAttachment]
34
- # Optional. The interconnect attachments to which this route applies to.
35
- # @!attribute [rw] next_hop_ilb_ip
36
- # @return [::String]
37
- # Optional. The IP of a global access enabled L4 ILB that should be the next hop to
38
- # handle matching packets. For this version, only next_hop_ilb_ip is
39
- # supported.
40
- # @!attribute [rw] name
41
- # @return [::String]
42
- # Immutable. A unique name of the resource in the form of
43
- # `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
44
- # @!attribute [r] create_time
45
- # @return [::Google::Protobuf::Timestamp]
46
- # Output only. Time when the PolicyBasedRoute was created.
47
- # @!attribute [r] update_time
48
- # @return [::Google::Protobuf::Timestamp]
49
- # Output only. Time when the PolicyBasedRoute was updated.
50
- # @!attribute [rw] labels
51
- # @return [::Google::Protobuf::Map{::String => ::String}]
52
- # User-defined labels.
53
- # @!attribute [rw] description
54
- # @return [::String]
55
- # Optional. An optional description of this resource. Provide this field when you
56
- # create the resource.
57
- # @!attribute [rw] network
58
- # @return [::String]
59
- # Required. Fully-qualified URL of the network that this route applies to. e.g.
60
- # projects/my-project/global/networks/my-network.
61
- # @!attribute [rw] filter
62
- # @return [::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute::Filter]
63
- # Required. The filter to match L4 traffic.
64
- # @!attribute [rw] priority
65
- # @return [::Integer]
66
- # Optional. The priority of this policy based route. Priority is used to break ties in
67
- # cases where there are more than one matching policy based routes found. In
68
- # cases where multiple policy based routes are matched, the one with the
69
- # lowest-numbered priority value wins. The default value is 1000. The
70
- # priority value must be from 1 to 65535, inclusive.
71
- # @!attribute [r] warnings
72
- # @return [::Array<::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute::Warnings>]
73
- # Output only. If potential misconfigurations are detected for this route,
74
- # this field will be populated with warning messages.
75
- # @!attribute [r] self_link
76
- # @return [::String]
77
- # Output only. Server-defined fully-qualified URL for this resource.
78
- # @!attribute [r] kind
79
- # @return [::String]
80
- # Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
81
- # Policy Based Route resources.
82
- class PolicyBasedRoute
83
- include ::Google::Protobuf::MessageExts
84
- extend ::Google::Protobuf::MessageExts::ClassMethods
85
-
86
- # VM instances to which this policy based route applies to.
87
- # @!attribute [rw] tags
88
- # @return [::Array<::String>]
89
- # Optional. A list of VM instance tags to which this policy based route applies to.
90
- # VM instances that have ANY of tags specified here will install this
91
- # PBR.
92
- class VirtualMachine
93
- include ::Google::Protobuf::MessageExts
94
- extend ::Google::Protobuf::MessageExts::ClassMethods
95
- end
96
-
97
- # InterconnectAttachment to which this route applies to.
98
- # @!attribute [rw] region
99
- # @return [::String]
100
- # Optional. Cloud region to install this policy based route on interconnect
101
- # attachment. Use `all` to install it on all interconnect attachments.
102
- class InterconnectAttachment
103
- include ::Google::Protobuf::MessageExts
104
- extend ::Google::Protobuf::MessageExts::ClassMethods
105
- end
106
-
107
- # Filter matches L4 traffic.
108
- # @!attribute [rw] ip_protocol
109
- # @return [::String]
110
- # Optional. The IP protocol that this policy based route applies to. Valid values are
111
- # 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
112
- # @!attribute [rw] src_range
113
- # @return [::String]
114
- # Optional. The source IP range of outgoing packets that this policy based route
115
- # applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
116
- # @!attribute [rw] dest_range
117
- # @return [::String]
118
- # Optional. The destination IP range of outgoing packets that this policy based route
119
- # applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
120
- # @!attribute [rw] protocol_version
121
- # @return [::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute::Filter::ProtocolVersion]
122
- # Required. Internet protocol versions this policy based route applies to. For this
123
- # version, only IPV4 is supported.
124
- class Filter
125
- include ::Google::Protobuf::MessageExts
126
- extend ::Google::Protobuf::MessageExts::ClassMethods
127
-
128
- # The internet protocol version.
129
- module ProtocolVersion
130
- # Default value.
131
- PROTOCOL_VERSION_UNSPECIFIED = 0
132
-
133
- # The PBR is for IPv4 internet protocol traffic.
134
- IPV4 = 1
135
- end
136
- end
137
-
138
- # Informational warning message.
139
- # @!attribute [r] code
140
- # @return [::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute::Warnings::Code]
141
- # Output only. A warning code, if applicable.
142
- # @!attribute [r] data
143
- # @return [::Google::Protobuf::Map{::String => ::String}]
144
- # Output only. Metadata about this warning in key: value format. The key should provides
145
- # more detail on the warning being returned. For example, for warnings
146
- # where there are no results in a list request for a particular zone, this
147
- # key might be scope and the key value might be the zone name. Other
148
- # examples might be a key indicating a deprecated resource and a suggested
149
- # replacement.
150
- # @!attribute [r] warning_message
151
- # @return [::String]
152
- # Output only. A human-readable description of the warning code.
153
- class Warnings
154
- include ::Google::Protobuf::MessageExts
155
- extend ::Google::Protobuf::MessageExts::ClassMethods
156
-
157
- # @!attribute [rw] key
158
- # @return [::String]
159
- # @!attribute [rw] value
160
- # @return [::String]
161
- class DataEntry
162
- include ::Google::Protobuf::MessageExts
163
- extend ::Google::Protobuf::MessageExts::ClassMethods
164
- end
165
-
166
- # Warning code for Policy Based Routing. Expect to add values in the
167
- # future.
168
- module Code
169
- # Default value.
170
- WARNING_UNSPECIFIED = 0
171
-
172
- # The policy based route is not active and functioning. Common causes are
173
- # the dependent network was deleted or the resource project was turned
174
- # off.
175
- RESOURCE_NOT_ACTIVE = 1
176
-
177
- # The policy based route is being modified (e.g. created/deleted) at this
178
- # time.
179
- RESOURCE_BEING_MODIFIED = 2
180
- end
181
- end
182
-
183
- # @!attribute [rw] key
184
- # @return [::String]
185
- # @!attribute [rw] value
186
- # @return [::String]
187
- class LabelsEntry
188
- include ::Google::Protobuf::MessageExts
189
- extend ::Google::Protobuf::MessageExts::ClassMethods
190
- end
191
- end
192
-
193
- # Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
194
- # @!attribute [rw] parent
195
- # @return [::String]
196
- # Required. The parent resource's name.
197
- # @!attribute [rw] page_size
198
- # @return [::Integer]
199
- # The maximum number of results per page that should be returned.
200
- # @!attribute [rw] page_token
201
- # @return [::String]
202
- # The page token.
203
- # @!attribute [rw] filter
204
- # @return [::String]
205
- # A filter expression that filters the results listed in the response.
206
- # @!attribute [rw] order_by
207
- # @return [::String]
208
- # Sort the results by a certain order.
209
- class ListPolicyBasedRoutesRequest
210
- include ::Google::Protobuf::MessageExts
211
- extend ::Google::Protobuf::MessageExts::ClassMethods
212
- end
213
-
214
- # Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
215
- # @!attribute [rw] policy_based_routes
216
- # @return [::Array<::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute>]
217
- # Policy based routes to be returned.
218
- # @!attribute [rw] next_page_token
219
- # @return [::String]
220
- # The next pagination token in the List response. It should be used as
221
- # page_token for the following request. An empty value means no more result.
222
- # @!attribute [rw] unreachable
223
- # @return [::Array<::String>]
224
- # Locations that could not be reached.
225
- class ListPolicyBasedRoutesResponse
226
- include ::Google::Protobuf::MessageExts
227
- extend ::Google::Protobuf::MessageExts::ClassMethods
228
- end
229
-
230
- # Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method.
231
- # @!attribute [rw] name
232
- # @return [::String]
233
- # Required. Name of the PolicyBasedRoute resource to get.
234
- class GetPolicyBasedRouteRequest
235
- include ::Google::Protobuf::MessageExts
236
- extend ::Google::Protobuf::MessageExts::ClassMethods
237
- end
238
-
239
- # Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
240
- # @!attribute [rw] parent
241
- # @return [::String]
242
- # Required. The parent resource's name of the PolicyBasedRoute.
243
- # @!attribute [rw] policy_based_route_id
244
- # @return [::String]
245
- # Optional. Unique id for the Policy Based Route to create.
246
- # @!attribute [rw] policy_based_route
247
- # @return [::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute]
248
- # Required. Initial values for a new Policy Based Route.
249
- # @!attribute [rw] request_id
250
- # @return [::String]
251
- # Optional. An optional request ID to identify requests. Specify a unique request ID
252
- # so that if you must retry your request, the server will know to ignore
253
- # the request if it has already been completed. The server will guarantee
254
- # that for at least 60 minutes since the first request.
255
- #
256
- # For example, consider a situation where you make an initial request and t
257
- # he request times out. If you make the request again with the same request
258
- # ID, the server can check if original operation with the same request ID
259
- # was received, and if so, will ignore the second request. This prevents
260
- # clients from accidentally creating duplicate commitments.
261
- #
262
- # The request ID must be a valid UUID with the exception that zero UUID is
263
- # not supported (00000000-0000-0000-0000-000000000000).
264
- class CreatePolicyBasedRouteRequest
265
- include ::Google::Protobuf::MessageExts
266
- extend ::Google::Protobuf::MessageExts::ClassMethods
267
- end
268
-
269
- # Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
270
- # @!attribute [rw] name
271
- # @return [::String]
272
- # Required. Name of the PolicyBasedRoute resource to delete.
273
- # @!attribute [rw] request_id
274
- # @return [::String]
275
- # Optional. An optional request ID to identify requests. Specify a unique request ID
276
- # so that if you must retry your request, the server will know to ignore
277
- # the request if it has already been completed. The server will guarantee
278
- # that for at least 60 minutes after the first request.
279
- #
280
- # For example, consider a situation where you make an initial request and t
281
- # he request times out. If you make the request again with the same request
282
- # ID, the server can check if original operation with the same request ID
283
- # was received, and if so, will ignore the second request. This prevents
284
- # clients from accidentally creating duplicate commitments.
285
- #
286
- # The request ID must be a valid UUID with the exception that zero UUID is
287
- # not supported (00000000-0000-0000-0000-000000000000).
288
- class DeletePolicyBasedRouteRequest
289
- include ::Google::Protobuf::MessageExts
290
- extend ::Google::Protobuf::MessageExts::ClassMethods
291
- end
292
- end
293
- end
294
- end
295
- end