google-cloud-network_services-v1 2.0.1 → 2.2.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/network_services/v1/network_services/client.rb +1188 -140
  3. data/lib/google/cloud/network_services/v1/network_services/paths.rb +175 -0
  4. data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +1115 -137
  5. data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +613 -0
  6. data/lib/google/cloud/network_services/v1/version.rb +1 -1
  7. data/lib/google/cloud/networkservices/v1/common_pb.rb +2 -1
  8. data/lib/google/cloud/networkservices/v1/endpoint_policy_pb.rb +1 -1
  9. data/lib/google/cloud/networkservices/v1/gateway_pb.rb +4 -1
  10. data/lib/google/cloud/networkservices/v1/grpc_route_pb.rb +2 -1
  11. data/lib/google/cloud/networkservices/v1/http_route_pb.rb +3 -1
  12. data/lib/google/cloud/networkservices/v1/mesh_pb.rb +2 -1
  13. data/lib/google/cloud/networkservices/v1/network_services_pb.rb +4 -1
  14. data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +20 -0
  15. data/lib/google/cloud/networkservices/v1/route_view_pb.rb +52 -0
  16. data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +4 -1
  17. data/lib/google/cloud/networkservices/v1/service_lb_policy_pb.rb +58 -0
  18. data/lib/google/cloud/networkservices/v1/tcp_route_pb.rb +3 -1
  19. data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +3 -1
  20. data/proto_docs/google/cloud/networkservices/v1/common.rb +18 -1
  21. data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +12 -1
  22. data/proto_docs/google/cloud/networkservices/v1/gateway.rb +96 -8
  23. data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +51 -7
  24. data/proto_docs/google/cloud/networkservices/v1/http_route.rb +86 -1
  25. data/proto_docs/google/cloud/networkservices/v1/mesh.rb +16 -1
  26. data/proto_docs/google/cloud/networkservices/v1/route_view.rb +168 -0
  27. data/proto_docs/google/cloud/networkservices/v1/service_binding.rb +47 -10
  28. data/proto_docs/google/cloud/networkservices/v1/service_lb_policy.rb +217 -0
  29. data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +23 -7
  30. data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +35 -6
  31. metadata +19 -33
@@ -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
  #