google-cloud-network_services-v1 2.1.0 → 2.3.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/lib/google/cloud/network_services/v1/dep_service/client.rb +579 -24
- data/lib/google/cloud/network_services/v1/dep_service/paths.rb +19 -0
- data/lib/google/cloud/network_services/v1/dep_service/rest/client.rb +544 -24
- data/lib/google/cloud/network_services/v1/dep_service/rest/service_stub.rb +307 -0
- data/lib/google/cloud/network_services/v1/network_services/client.rb +2816 -824
- data/lib/google/cloud/network_services/v1/network_services/paths.rb +215 -0
- data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +2658 -799
- data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +1443 -278
- data/lib/google/cloud/network_services/v1/version.rb +1 -1
- data/lib/google/cloud/networkservices/v1/common_pb.rb +2 -1
- data/lib/google/cloud/networkservices/v1/dep_pb.rb +10 -2
- data/lib/google/cloud/networkservices/v1/dep_services_pb.rb +12 -0
- data/lib/google/cloud/networkservices/v1/endpoint_policy_pb.rb +1 -1
- data/lib/google/cloud/networkservices/v1/extensibility_pb.rb +66 -0
- data/lib/google/cloud/networkservices/v1/gateway_pb.rb +4 -1
- data/lib/google/cloud/networkservices/v1/grpc_route_pb.rb +2 -1
- data/lib/google/cloud/networkservices/v1/http_route_pb.rb +3 -1
- data/lib/google/cloud/networkservices/v1/mesh_pb.rb +2 -1
- data/lib/google/cloud/networkservices/v1/network_services_pb.rb +6 -1
- data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +42 -0
- data/lib/google/cloud/networkservices/v1/route_view_pb.rb +52 -0
- data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +4 -1
- data/lib/google/cloud/networkservices/v1/service_lb_policy_pb.rb +58 -0
- data/lib/google/cloud/networkservices/v1/tcp_route_pb.rb +3 -1
- data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +3 -1
- data/proto_docs/google/cloud/networkservices/v1/common.rb +18 -1
- data/proto_docs/google/cloud/networkservices/v1/dep.rb +376 -52
- data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +12 -1
- data/proto_docs/google/cloud/networkservices/v1/extensibility.rb +518 -0
- data/proto_docs/google/cloud/networkservices/v1/gateway.rb +96 -8
- data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +51 -7
- data/proto_docs/google/cloud/networkservices/v1/http_route.rb +86 -1
- data/proto_docs/google/cloud/networkservices/v1/mesh.rb +16 -1
- data/proto_docs/google/cloud/networkservices/v1/route_view.rb +168 -0
- data/proto_docs/google/cloud/networkservices/v1/service_binding.rb +47 -10
- data/proto_docs/google/cloud/networkservices/v1/service_lb_policy.rb +217 -0
- data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +23 -7
- data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +35 -6
- metadata +8 -2
@@ -24,6 +24,25 @@ module Google
|
|
24
24
|
module NetworkServices
|
25
25
|
# Path helper methods for the NetworkServices API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Address resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/regions/{region}/addresses/{address}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param region [String]
|
36
|
+
# @param address [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def address_path project:, region:, address:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/regions/#{region}/addresses/#{address}"
|
44
|
+
end
|
45
|
+
|
27
46
|
##
|
28
47
|
# Create a fully-qualified AuthorizationPolicy resource string.
|
29
48
|
#
|
@@ -62,6 +81,25 @@ module Google
|
|
62
81
|
"projects/#{project}/locations/#{location}/backendServices/#{backend_service}"
|
63
82
|
end
|
64
83
|
|
84
|
+
##
|
85
|
+
# Create a fully-qualified Certificate resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/locations/{location}/certificates/{certificate}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param location [String]
|
93
|
+
# @param certificate [String]
|
94
|
+
#
|
95
|
+
# @return [::String]
|
96
|
+
def certificate_path project:, location:, certificate:
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/certificates/#{certificate}"
|
101
|
+
end
|
102
|
+
|
65
103
|
##
|
66
104
|
# Create a fully-qualified ClientTlsPolicy resource string.
|
67
105
|
#
|
@@ -119,6 +157,46 @@ module Google
|
|
119
157
|
"projects/#{project}/locations/#{location}/gateways/#{gateway}"
|
120
158
|
end
|
121
159
|
|
160
|
+
##
|
161
|
+
# Create a fully-qualified GatewayRouteView resource string.
|
162
|
+
#
|
163
|
+
# The resource will be in the following format:
|
164
|
+
#
|
165
|
+
# `projects/{project}/locations/{location}/gateways/{gateway}/routeViews/{route_view}`
|
166
|
+
#
|
167
|
+
# @param project [String]
|
168
|
+
# @param location [String]
|
169
|
+
# @param gateway [String]
|
170
|
+
# @param route_view [String]
|
171
|
+
#
|
172
|
+
# @return [::String]
|
173
|
+
def gateway_route_view_path project:, location:, gateway:, route_view:
|
174
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
175
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
176
|
+
raise ::ArgumentError, "gateway cannot contain /" if gateway.to_s.include? "/"
|
177
|
+
|
178
|
+
"projects/#{project}/locations/#{location}/gateways/#{gateway}/routeViews/#{route_view}"
|
179
|
+
end
|
180
|
+
|
181
|
+
##
|
182
|
+
# Create a fully-qualified GatewaySecurityPolicy resource string.
|
183
|
+
#
|
184
|
+
# The resource will be in the following format:
|
185
|
+
#
|
186
|
+
# `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}`
|
187
|
+
#
|
188
|
+
# @param project [String]
|
189
|
+
# @param location [String]
|
190
|
+
# @param gateway_security_policy [String]
|
191
|
+
#
|
192
|
+
# @return [::String]
|
193
|
+
def gateway_security_policy_path project:, location:, gateway_security_policy:
|
194
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
195
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
196
|
+
|
197
|
+
"projects/#{project}/locations/#{location}/gatewaySecurityPolicies/#{gateway_security_policy}"
|
198
|
+
end
|
199
|
+
|
122
200
|
##
|
123
201
|
# Create a fully-qualified GrpcRoute resource string.
|
124
202
|
#
|
@@ -193,6 +271,44 @@ module Google
|
|
193
271
|
"projects/#{project}/locations/#{location}/meshes/#{mesh}"
|
194
272
|
end
|
195
273
|
|
274
|
+
##
|
275
|
+
# Create a fully-qualified MeshRouteView resource string.
|
276
|
+
#
|
277
|
+
# The resource will be in the following format:
|
278
|
+
#
|
279
|
+
# `projects/{project}/locations/{location}/meshes/{mesh}/routeViews/{route_view}`
|
280
|
+
#
|
281
|
+
# @param project [String]
|
282
|
+
# @param location [String]
|
283
|
+
# @param mesh [String]
|
284
|
+
# @param route_view [String]
|
285
|
+
#
|
286
|
+
# @return [::String]
|
287
|
+
def mesh_route_view_path project:, location:, mesh:, route_view:
|
288
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
289
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
290
|
+
raise ::ArgumentError, "mesh cannot contain /" if mesh.to_s.include? "/"
|
291
|
+
|
292
|
+
"projects/#{project}/locations/#{location}/meshes/#{mesh}/routeViews/#{route_view}"
|
293
|
+
end
|
294
|
+
|
295
|
+
##
|
296
|
+
# Create a fully-qualified Network resource string.
|
297
|
+
#
|
298
|
+
# The resource will be in the following format:
|
299
|
+
#
|
300
|
+
# `projects/{project}/global/networks/{network}`
|
301
|
+
#
|
302
|
+
# @param project [String]
|
303
|
+
# @param network [String]
|
304
|
+
#
|
305
|
+
# @return [::String]
|
306
|
+
def network_path project:, network:
|
307
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
308
|
+
|
309
|
+
"projects/#{project}/global/networks/#{network}"
|
310
|
+
end
|
311
|
+
|
196
312
|
##
|
197
313
|
# Create a fully-qualified ServerTlsPolicy resource string.
|
198
314
|
#
|
@@ -212,6 +328,27 @@ module Google
|
|
212
328
|
"projects/#{project}/locations/#{location}/serverTlsPolicies/#{server_tls_policy}"
|
213
329
|
end
|
214
330
|
|
331
|
+
##
|
332
|
+
# Create a fully-qualified Service resource string.
|
333
|
+
#
|
334
|
+
# The resource will be in the following format:
|
335
|
+
#
|
336
|
+
# `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
|
337
|
+
#
|
338
|
+
# @param project [String]
|
339
|
+
# @param location [String]
|
340
|
+
# @param namespace [String]
|
341
|
+
# @param service [String]
|
342
|
+
#
|
343
|
+
# @return [::String]
|
344
|
+
def service_path project:, location:, namespace:, service:
|
345
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
346
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
347
|
+
raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/"
|
348
|
+
|
349
|
+
"projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
|
350
|
+
end
|
351
|
+
|
215
352
|
##
|
216
353
|
# Create a fully-qualified ServiceBinding resource string.
|
217
354
|
#
|
@@ -231,6 +368,44 @@ module Google
|
|
231
368
|
"projects/#{project}/locations/#{location}/serviceBindings/#{service_binding}"
|
232
369
|
end
|
233
370
|
|
371
|
+
##
|
372
|
+
# Create a fully-qualified ServiceLbPolicy resource string.
|
373
|
+
#
|
374
|
+
# The resource will be in the following format:
|
375
|
+
#
|
376
|
+
# `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy}`
|
377
|
+
#
|
378
|
+
# @param project [String]
|
379
|
+
# @param location [String]
|
380
|
+
# @param service_lb_policy [String]
|
381
|
+
#
|
382
|
+
# @return [::String]
|
383
|
+
def service_lb_policy_path project:, location:, service_lb_policy:
|
384
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
385
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
386
|
+
|
387
|
+
"projects/#{project}/locations/#{location}/serviceLbPolicies/#{service_lb_policy}"
|
388
|
+
end
|
389
|
+
|
390
|
+
##
|
391
|
+
# Create a fully-qualified Subnetwork resource string.
|
392
|
+
#
|
393
|
+
# The resource will be in the following format:
|
394
|
+
#
|
395
|
+
# `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
396
|
+
#
|
397
|
+
# @param project [String]
|
398
|
+
# @param region [String]
|
399
|
+
# @param subnetwork [String]
|
400
|
+
#
|
401
|
+
# @return [::String]
|
402
|
+
def subnetwork_path project:, region:, subnetwork:
|
403
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
404
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
405
|
+
|
406
|
+
"projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
|
407
|
+
end
|
408
|
+
|
234
409
|
##
|
235
410
|
# Create a fully-qualified TcpRoute resource string.
|
236
411
|
#
|
@@ -269,6 +444,46 @@ module Google
|
|
269
444
|
"projects/#{project}/locations/#{location}/tlsRoutes/#{tls_route}"
|
270
445
|
end
|
271
446
|
|
447
|
+
##
|
448
|
+
# Create a fully-qualified WasmPlugin resource string.
|
449
|
+
#
|
450
|
+
# The resource will be in the following format:
|
451
|
+
#
|
452
|
+
# `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}`
|
453
|
+
#
|
454
|
+
# @param project [String]
|
455
|
+
# @param location [String]
|
456
|
+
# @param wasm_plugin [String]
|
457
|
+
#
|
458
|
+
# @return [::String]
|
459
|
+
def wasm_plugin_path project:, location:, wasm_plugin:
|
460
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
461
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
462
|
+
|
463
|
+
"projects/#{project}/locations/#{location}/wasmPlugins/#{wasm_plugin}"
|
464
|
+
end
|
465
|
+
|
466
|
+
##
|
467
|
+
# Create a fully-qualified WasmPluginVersion resource string.
|
468
|
+
#
|
469
|
+
# The resource will be in the following format:
|
470
|
+
#
|
471
|
+
# `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}/versions/{wasm_plugin_version}`
|
472
|
+
#
|
473
|
+
# @param project [String]
|
474
|
+
# @param location [String]
|
475
|
+
# @param wasm_plugin [String]
|
476
|
+
# @param wasm_plugin_version [String]
|
477
|
+
#
|
478
|
+
# @return [::String]
|
479
|
+
def wasm_plugin_version_path project:, location:, wasm_plugin:, wasm_plugin_version:
|
480
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
481
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
482
|
+
raise ::ArgumentError, "wasm_plugin cannot contain /" if wasm_plugin.to_s.include? "/"
|
483
|
+
|
484
|
+
"projects/#{project}/locations/#{location}/wasmPlugins/#{wasm_plugin}/versions/#{wasm_plugin_version}"
|
485
|
+
end
|
486
|
+
|
272
487
|
extend self
|
273
488
|
end
|
274
489
|
end
|