google-cloud-network_services-v1 0.a → 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 +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/network_services/v1/bindings_override.rb +279 -0
- data/lib/google/cloud/network_services/v1/dep_service/client.rb +1503 -0
- data/lib/google/cloud/network_services/v1/dep_service/credentials.rb +47 -0
- data/lib/google/cloud/network_services/v1/dep_service/operations.rb +809 -0
- data/lib/google/cloud/network_services/v1/dep_service/paths.rb +88 -0
- data/lib/google/cloud/network_services/v1/dep_service/rest/client.rb +1414 -0
- data/lib/google/cloud/network_services/v1/dep_service/rest/operations.rb +902 -0
- data/lib/google/cloud/network_services/v1/dep_service/rest/service_stub.rb +663 -0
- data/lib/google/cloud/network_services/v1/dep_service/rest.rb +54 -0
- data/lib/google/cloud/network_services/v1/dep_service.rb +56 -0
- data/lib/google/cloud/network_services/v1/network_services/client.rb +4383 -0
- data/lib/google/cloud/network_services/v1/network_services/credentials.rb +47 -0
- data/lib/google/cloud/network_services/v1/network_services/operations.rb +809 -0
- data/lib/google/cloud/network_services/v1/network_services/paths.rb +278 -0
- data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +4093 -0
- data/lib/google/cloud/network_services/v1/network_services/rest/operations.rb +902 -0
- data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +2385 -0
- data/lib/google/cloud/network_services/v1/network_services/rest.rb +52 -0
- data/lib/google/cloud/network_services/v1/network_services.rb +54 -0
- data/lib/google/cloud/network_services/v1/rest.rb +39 -0
- data/lib/google/cloud/network_services/v1/version.rb +7 -2
- data/lib/google/cloud/network_services/v1.rb +46 -0
- data/lib/google/cloud/networkservices/v1/common_pb.rb +51 -0
- data/lib/google/cloud/networkservices/v1/dep_pb.rb +75 -0
- data/lib/google/cloud/networkservices/v1/dep_services_pb.rb +64 -0
- data/lib/google/cloud/networkservices/v1/endpoint_policy_pb.rb +58 -0
- data/lib/google/cloud/networkservices/v1/gateway_pb.rb +56 -0
- data/lib/google/cloud/networkservices/v1/grpc_route_pb.rb +69 -0
- data/lib/google/cloud/networkservices/v1/http_route_pb.rb +74 -0
- data/lib/google/cloud/networkservices/v1/mesh_pb.rb +55 -0
- data/lib/google/cloud/networkservices/v1/network_services_pb.rb +53 -0
- data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +120 -0
- data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +52 -0
- data/lib/google/cloud/networkservices/v1/tcp_route_pb.rb +59 -0
- data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +59 -0
- data/lib/google-cloud-network_services-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +65 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/networkservices/v1/common.rb +147 -0
- data/proto_docs/google/cloud/networkservices/v1/dep.rb +569 -0
- data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +194 -0
- data/proto_docs/google/cloud/networkservices/v1/gateway.rb +187 -0
- data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +430 -0
- data/proto_docs/google/cloud/networkservices/v1/http_route.rb +670 -0
- data/proto_docs/google/cloud/networkservices/v1/mesh.rb +155 -0
- data/proto_docs/google/cloud/networkservices/v1/service_binding.rb +131 -0
- data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +247 -0
- data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +219 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +144 -10
@@ -0,0 +1,430 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module NetworkServices
|
23
|
+
module V1
|
24
|
+
# GrpcRoute is the resource defining how gRPC traffic routed by a Mesh
|
25
|
+
# or Gateway resource is routed.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# Required. Name of the GrpcRoute resource. It matches pattern
|
29
|
+
# `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
|
30
|
+
# @!attribute [r] self_link
|
31
|
+
# @return [::String]
|
32
|
+
# Output only. Server-defined URL of this resource
|
33
|
+
# @!attribute [r] create_time
|
34
|
+
# @return [::Google::Protobuf::Timestamp]
|
35
|
+
# Output only. The timestamp when the resource was created.
|
36
|
+
# @!attribute [r] update_time
|
37
|
+
# @return [::Google::Protobuf::Timestamp]
|
38
|
+
# Output only. The timestamp when the resource was updated.
|
39
|
+
# @!attribute [rw] labels
|
40
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
41
|
+
# Optional. Set of label tags associated with the GrpcRoute resource.
|
42
|
+
# @!attribute [rw] description
|
43
|
+
# @return [::String]
|
44
|
+
# Optional. A free-text description of the resource. Max length 1024
|
45
|
+
# characters.
|
46
|
+
# @!attribute [rw] hostnames
|
47
|
+
# @return [::Array<::String>]
|
48
|
+
# Required. Service hostnames with an optional port for which this route
|
49
|
+
# describes traffic.
|
50
|
+
#
|
51
|
+
# Format: <hostname>[:<port>]
|
52
|
+
#
|
53
|
+
# Hostname is the fully qualified domain name of a network host. This matches
|
54
|
+
# the RFC 1123 definition of a hostname with 2 notable exceptions:
|
55
|
+
# - IPs are not allowed.
|
56
|
+
# - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
|
57
|
+
# label must appear by itself as the first label.
|
58
|
+
#
|
59
|
+
# Hostname can be "precise" which is a domain name without the terminating
|
60
|
+
# dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
|
61
|
+
# domain name prefixed with a single wildcard label (e.g. `*.example.com`).
|
62
|
+
#
|
63
|
+
# Note that as per RFC1035 and RFC1123, a label must consist of lower case
|
64
|
+
# alphanumeric characters or '-', and must start and end with an alphanumeric
|
65
|
+
# character. No other punctuation is allowed.
|
66
|
+
#
|
67
|
+
# The routes associated with a Mesh or Gateway must have unique hostnames. If
|
68
|
+
# you attempt to attach multiple routes with conflicting hostnames, the
|
69
|
+
# configuration will be rejected.
|
70
|
+
#
|
71
|
+
# For example, while it is acceptable for routes for the hostnames
|
72
|
+
# `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
|
73
|
+
# not possible to associate two routes both with `*.bar.com` or both with
|
74
|
+
# `bar.com`.
|
75
|
+
#
|
76
|
+
# If a port is specified, then gRPC clients must use the channel URI with the
|
77
|
+
# port to match this rule (i.e. "xds:///service:123"), otherwise they must
|
78
|
+
# supply the URI without a port (i.e. "xds:///service").
|
79
|
+
# @!attribute [rw] meshes
|
80
|
+
# @return [::Array<::String>]
|
81
|
+
# Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as
|
82
|
+
# one of the routing rules to route the requests served by the mesh.
|
83
|
+
#
|
84
|
+
# Each mesh reference should match the pattern:
|
85
|
+
# `projects/*/locations/global/meshes/<mesh_name>`
|
86
|
+
# @!attribute [rw] gateways
|
87
|
+
# @return [::Array<::String>]
|
88
|
+
# Optional. Gateways defines a list of gateways this GrpcRoute is attached
|
89
|
+
# to, as one of the routing rules to route the requests served by the
|
90
|
+
# gateway.
|
91
|
+
#
|
92
|
+
# Each gateway reference should match the pattern:
|
93
|
+
# `projects/*/locations/global/gateways/<gateway_name>`
|
94
|
+
# @!attribute [rw] rules
|
95
|
+
# @return [::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteRule>]
|
96
|
+
# Required. A list of detailed rules defining how to route traffic.
|
97
|
+
#
|
98
|
+
# Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
|
99
|
+
# first matching GrpcRoute.RouteRule will be executed. At least one rule
|
100
|
+
# must be supplied.
|
101
|
+
class GrpcRoute
|
102
|
+
include ::Google::Protobuf::MessageExts
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
|
+
|
105
|
+
# Specifies a match against a method.
|
106
|
+
# @!attribute [rw] type
|
107
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch::Type]
|
108
|
+
# Optional. Specifies how to match against the name. If not specified, a
|
109
|
+
# default value of "EXACT" is used.
|
110
|
+
# @!attribute [rw] grpc_service
|
111
|
+
# @return [::String]
|
112
|
+
# Required. Name of the service to match against. If unspecified, will
|
113
|
+
# match all services.
|
114
|
+
# @!attribute [rw] grpc_method
|
115
|
+
# @return [::String]
|
116
|
+
# Required. Name of the method to match against. If unspecified, will match
|
117
|
+
# all methods.
|
118
|
+
# @!attribute [rw] case_sensitive
|
119
|
+
# @return [::Boolean]
|
120
|
+
# Optional. Specifies that matches are case sensitive. The default value
|
121
|
+
# is true. case_sensitive must not be used with a type of
|
122
|
+
# REGULAR_EXPRESSION.
|
123
|
+
class MethodMatch
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
+
|
127
|
+
# The type of the match.
|
128
|
+
module Type
|
129
|
+
# Unspecified.
|
130
|
+
TYPE_UNSPECIFIED = 0
|
131
|
+
|
132
|
+
# Will only match the exact name provided.
|
133
|
+
EXACT = 1
|
134
|
+
|
135
|
+
# Will interpret grpc_method and grpc_service as regexes. RE2 syntax is
|
136
|
+
# supported.
|
137
|
+
REGULAR_EXPRESSION = 2
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# A match against a collection of headers.
|
142
|
+
# @!attribute [rw] type
|
143
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch::Type]
|
144
|
+
# Optional. Specifies how to match against the value of the header. If not
|
145
|
+
# specified, a default value of EXACT is used.
|
146
|
+
# @!attribute [rw] key
|
147
|
+
# @return [::String]
|
148
|
+
# Required. The key of the header.
|
149
|
+
# @!attribute [rw] value
|
150
|
+
# @return [::String]
|
151
|
+
# Required. The value of the header.
|
152
|
+
class HeaderMatch
|
153
|
+
include ::Google::Protobuf::MessageExts
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
|
+
|
156
|
+
# The type of match.
|
157
|
+
module Type
|
158
|
+
# Unspecified.
|
159
|
+
TYPE_UNSPECIFIED = 0
|
160
|
+
|
161
|
+
# Will only match the exact value provided.
|
162
|
+
EXACT = 1
|
163
|
+
|
164
|
+
# Will match paths conforming to the prefix specified by value. RE2
|
165
|
+
# syntax is supported.
|
166
|
+
REGULAR_EXPRESSION = 2
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# Criteria for matching traffic. A RouteMatch will be considered to match
|
171
|
+
# when all supplied fields match.
|
172
|
+
# @!attribute [rw] method
|
173
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch]
|
174
|
+
# Optional. A gRPC method to match against. If this field is empty or
|
175
|
+
# omitted, will match all methods.
|
176
|
+
# @!attribute [rw] headers
|
177
|
+
# @return [::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch>]
|
178
|
+
# Optional. Specifies a collection of headers to match.
|
179
|
+
class RouteMatch
|
180
|
+
include ::Google::Protobuf::MessageExts
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
182
|
+
end
|
183
|
+
|
184
|
+
# The destination to which traffic will be routed.
|
185
|
+
# @!attribute [rw] service_name
|
186
|
+
# @return [::String]
|
187
|
+
# Required. The URL of a destination service to which to route traffic.
|
188
|
+
# Must refer to either a BackendService or ServiceDirectoryService.
|
189
|
+
# @!attribute [rw] weight
|
190
|
+
# @return [::Integer]
|
191
|
+
# Optional. Specifies the proportion of requests forwarded to the backend
|
192
|
+
# referenced by the serviceName field. This is computed as:
|
193
|
+
# - weight/Sum(weights in this destination list).
|
194
|
+
# For non-zero values, there may be some epsilon from the exact proportion
|
195
|
+
# defined here depending on the precision an implementation supports.
|
196
|
+
#
|
197
|
+
# If only one serviceName is specified and it has a weight greater than 0,
|
198
|
+
# 100% of the traffic is forwarded to that backend.
|
199
|
+
#
|
200
|
+
# If weights are specified for any one service name, they need to be
|
201
|
+
# specified for all of them.
|
202
|
+
#
|
203
|
+
# If weights are unspecified for all services, then, traffic is distributed
|
204
|
+
# in equal proportions to all of them.
|
205
|
+
class Destination
|
206
|
+
include ::Google::Protobuf::MessageExts
|
207
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
208
|
+
end
|
209
|
+
|
210
|
+
# The specification for fault injection introduced into traffic to test the
|
211
|
+
# resiliency of clients to destination service failure. As part of fault
|
212
|
+
# injection, when clients send requests to a destination, delays can be
|
213
|
+
# introduced on a percentage of requests before sending those requests to the
|
214
|
+
# destination service. Similarly requests from clients can be aborted by for
|
215
|
+
# a percentage of requests.
|
216
|
+
# @!attribute [rw] delay
|
217
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay]
|
218
|
+
# The specification for injecting delay to client requests.
|
219
|
+
# @!attribute [rw] abort
|
220
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort]
|
221
|
+
# The specification for aborting to client requests.
|
222
|
+
class FaultInjectionPolicy
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
|
226
|
+
# Specification of how client requests are delayed as part of fault
|
227
|
+
# injection before being sent to a destination.
|
228
|
+
# @!attribute [rw] fixed_delay
|
229
|
+
# @return [::Google::Protobuf::Duration]
|
230
|
+
# Specify a fixed delay before forwarding the request.
|
231
|
+
# @!attribute [rw] percentage
|
232
|
+
# @return [::Integer]
|
233
|
+
# The percentage of traffic on which delay will be injected.
|
234
|
+
#
|
235
|
+
# The value must be between [0, 100]
|
236
|
+
class Delay
|
237
|
+
include ::Google::Protobuf::MessageExts
|
238
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
239
|
+
end
|
240
|
+
|
241
|
+
# Specification of how client requests are aborted as part of fault
|
242
|
+
# injection before being sent to a destination.
|
243
|
+
# @!attribute [rw] http_status
|
244
|
+
# @return [::Integer]
|
245
|
+
# The HTTP status code used to abort the request.
|
246
|
+
#
|
247
|
+
# The value must be between 200 and 599 inclusive.
|
248
|
+
# @!attribute [rw] percentage
|
249
|
+
# @return [::Integer]
|
250
|
+
# The percentage of traffic which will be aborted.
|
251
|
+
#
|
252
|
+
# The value must be between [0, 100]
|
253
|
+
class Abort
|
254
|
+
include ::Google::Protobuf::MessageExts
|
255
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
# The specifications for retries.
|
260
|
+
# @!attribute [rw] retry_conditions
|
261
|
+
# @return [::Array<::String>]
|
262
|
+
# - connect-failure: Router will retry on failures connecting to Backend
|
263
|
+
# Services, for example due to connection timeouts.
|
264
|
+
# - refused-stream: Router will retry if the backend service resets the
|
265
|
+
# stream
|
266
|
+
# with a REFUSED_STREAM error code. This reset type indicates that it is
|
267
|
+
# safe to retry.
|
268
|
+
# - cancelled: Router will retry if the gRPC status code in the response
|
269
|
+
# header
|
270
|
+
# is set to cancelled
|
271
|
+
# - deadline-exceeded: Router will retry if the gRPC status code in the
|
272
|
+
# response
|
273
|
+
# header is set to deadline-exceeded
|
274
|
+
# - resource-exhausted: Router will retry if the gRPC status code in the
|
275
|
+
# response header is set to resource-exhausted
|
276
|
+
# - unavailable: Router will retry if the gRPC status code in the response
|
277
|
+
# header is set to unavailable
|
278
|
+
# @!attribute [rw] num_retries
|
279
|
+
# @return [::Integer]
|
280
|
+
# Specifies the allowed number of retries. This number must be > 0. If not
|
281
|
+
# specified, default to 1.
|
282
|
+
class RetryPolicy
|
283
|
+
include ::Google::Protobuf::MessageExts
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
285
|
+
end
|
286
|
+
|
287
|
+
# Specifies how to route matched traffic.
|
288
|
+
# @!attribute [rw] destinations
|
289
|
+
# @return [::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::Destination>]
|
290
|
+
# Optional. The destination services to which traffic should be forwarded.
|
291
|
+
# If multiple destinations are specified, traffic will be split between
|
292
|
+
# Backend Service(s) according to the weight field of these destinations.
|
293
|
+
# @!attribute [rw] fault_injection_policy
|
294
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy]
|
295
|
+
# Optional. The specification for fault injection introduced into traffic to test the
|
296
|
+
# resiliency of clients to destination service failure. As part of fault
|
297
|
+
# injection, when clients send requests to a destination, delays can be
|
298
|
+
# introduced on a percentage of requests before sending those requests to
|
299
|
+
# the destination service. Similarly requests from clients can be aborted
|
300
|
+
# by for a percentage of requests.
|
301
|
+
#
|
302
|
+
# timeout and retry_policy will be ignored by clients that are configured
|
303
|
+
# with a fault_injection_policy
|
304
|
+
# @!attribute [rw] timeout
|
305
|
+
# @return [::Google::Protobuf::Duration]
|
306
|
+
# Optional. Specifies the timeout for selected route. Timeout is computed
|
307
|
+
# from the time the request has been fully processed (i.e. end of stream)
|
308
|
+
# up until the response has been completely processed. Timeout includes all
|
309
|
+
# retries.
|
310
|
+
# @!attribute [rw] retry_policy
|
311
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::RetryPolicy]
|
312
|
+
# Optional. Specifies the retry policy associated with this route.
|
313
|
+
class RouteAction
|
314
|
+
include ::Google::Protobuf::MessageExts
|
315
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
316
|
+
end
|
317
|
+
|
318
|
+
# Describes how to route traffic.
|
319
|
+
# @!attribute [rw] matches
|
320
|
+
# @return [::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteMatch>]
|
321
|
+
# Optional. Matches define conditions used for matching the rule against
|
322
|
+
# incoming gRPC requests. Each match is independent, i.e. this rule will be
|
323
|
+
# matched if ANY one of the matches is satisfied. If no matches field is
|
324
|
+
# specified, this rule will unconditionally match traffic.
|
325
|
+
# @!attribute [rw] action
|
326
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteAction]
|
327
|
+
# Required. A detailed rule defining how to route traffic. This field is
|
328
|
+
# required.
|
329
|
+
class RouteRule
|
330
|
+
include ::Google::Protobuf::MessageExts
|
331
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
332
|
+
end
|
333
|
+
|
334
|
+
# @!attribute [rw] key
|
335
|
+
# @return [::String]
|
336
|
+
# @!attribute [rw] value
|
337
|
+
# @return [::String]
|
338
|
+
class LabelsEntry
|
339
|
+
include ::Google::Protobuf::MessageExts
|
340
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
# Request used with the ListGrpcRoutes method.
|
345
|
+
# @!attribute [rw] parent
|
346
|
+
# @return [::String]
|
347
|
+
# Required. The project and location from which the GrpcRoutes should be
|
348
|
+
# listed, specified in the format `projects/*/locations/global`.
|
349
|
+
# @!attribute [rw] page_size
|
350
|
+
# @return [::Integer]
|
351
|
+
# Maximum number of GrpcRoutes to return per call.
|
352
|
+
# @!attribute [rw] page_token
|
353
|
+
# @return [::String]
|
354
|
+
# The value returned by the last `ListGrpcRoutesResponse`
|
355
|
+
# Indicates that this is a continuation of a prior `ListGrpcRoutes` call,
|
356
|
+
# and that the system should return the next page of data.
|
357
|
+
class ListGrpcRoutesRequest
|
358
|
+
include ::Google::Protobuf::MessageExts
|
359
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
360
|
+
end
|
361
|
+
|
362
|
+
# Response returned by the ListGrpcRoutes method.
|
363
|
+
# @!attribute [rw] grpc_routes
|
364
|
+
# @return [::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute>]
|
365
|
+
# List of GrpcRoute resources.
|
366
|
+
# @!attribute [rw] next_page_token
|
367
|
+
# @return [::String]
|
368
|
+
# If there might be more results than those appearing in this response, then
|
369
|
+
# `next_page_token` is included. To get the next set of results, call this
|
370
|
+
# method again using the value of `next_page_token` as `page_token`.
|
371
|
+
class ListGrpcRoutesResponse
|
372
|
+
include ::Google::Protobuf::MessageExts
|
373
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
374
|
+
end
|
375
|
+
|
376
|
+
# Request used by the GetGrpcRoute method.
|
377
|
+
# @!attribute [rw] name
|
378
|
+
# @return [::String]
|
379
|
+
# Required. A name of the GrpcRoute to get. Must be in the format
|
380
|
+
# `projects/*/locations/global/grpcRoutes/*`.
|
381
|
+
class GetGrpcRouteRequest
|
382
|
+
include ::Google::Protobuf::MessageExts
|
383
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
384
|
+
end
|
385
|
+
|
386
|
+
# Request used by the CreateGrpcRoute method.
|
387
|
+
# @!attribute [rw] parent
|
388
|
+
# @return [::String]
|
389
|
+
# Required. The parent resource of the GrpcRoute. Must be in the
|
390
|
+
# format `projects/*/locations/global`.
|
391
|
+
# @!attribute [rw] grpc_route_id
|
392
|
+
# @return [::String]
|
393
|
+
# Required. Short name of the GrpcRoute resource to be created.
|
394
|
+
# @!attribute [rw] grpc_route
|
395
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute]
|
396
|
+
# Required. GrpcRoute resource to be created.
|
397
|
+
class CreateGrpcRouteRequest
|
398
|
+
include ::Google::Protobuf::MessageExts
|
399
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
400
|
+
end
|
401
|
+
|
402
|
+
# Request used by the UpdateGrpcRoute method.
|
403
|
+
# @!attribute [rw] update_mask
|
404
|
+
# @return [::Google::Protobuf::FieldMask]
|
405
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
406
|
+
# GrpcRoute resource by the update.
|
407
|
+
# The fields specified in the update_mask are relative to the resource, not
|
408
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
409
|
+
# user does not provide a mask then all fields will be overwritten.
|
410
|
+
# @!attribute [rw] grpc_route
|
411
|
+
# @return [::Google::Cloud::NetworkServices::V1::GrpcRoute]
|
412
|
+
# Required. Updated GrpcRoute resource.
|
413
|
+
class UpdateGrpcRouteRequest
|
414
|
+
include ::Google::Protobuf::MessageExts
|
415
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
416
|
+
end
|
417
|
+
|
418
|
+
# Request used by the DeleteGrpcRoute method.
|
419
|
+
# @!attribute [rw] name
|
420
|
+
# @return [::String]
|
421
|
+
# Required. A name of the GrpcRoute to delete. Must be in the format
|
422
|
+
# `projects/*/locations/global/grpcRoutes/*`.
|
423
|
+
class DeleteGrpcRouteRequest
|
424
|
+
include ::Google::Protobuf::MessageExts
|
425
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
426
|
+
end
|
427
|
+
end
|
428
|
+
end
|
429
|
+
end
|
430
|
+
end
|