google-cloud-network_services-v1 2.10.0 → 2.10.1

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/network_services/v1/network_services/client.rb +549 -26
  3. data/lib/google/cloud/network_services/v1/network_services/paths.rb +38 -0
  4. data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +514 -26
  5. data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +307 -0
  6. data/lib/google/cloud/network_services/v1/version.rb +1 -1
  7. data/lib/google/cloud/networkservices/v1/agent_gateway_pb.rb +41 -0
  8. data/lib/google/cloud/networkservices/v1/dep_pb.rb +2 -1
  9. data/lib/google/cloud/networkservices/v1/gateway_pb.rb +1 -1
  10. data/lib/google/cloud/networkservices/v1/http_route_pb.rb +2 -1
  11. data/lib/google/cloud/networkservices/v1/mesh_pb.rb +1 -1
  12. data/lib/google/cloud/networkservices/v1/network_services_pb.rb +2 -1
  13. data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +10 -0
  14. data/lib/google/cloud/networkservices/v1/service_binding_pb.rb +2 -1
  15. data/lib/google/cloud/networkservices/v1/tls_route_pb.rb +1 -1
  16. data/proto_docs/google/cloud/networkservices/v1/agent_gateway.rb +302 -0
  17. data/proto_docs/google/cloud/networkservices/v1/common.rb +4 -4
  18. data/proto_docs/google/cloud/networkservices/v1/dep.rb +110 -7
  19. data/proto_docs/google/cloud/networkservices/v1/endpoint_policy.rb +5 -5
  20. data/proto_docs/google/cloud/networkservices/v1/extensibility.rb +90 -33
  21. data/proto_docs/google/cloud/networkservices/v1/gateway.rb +11 -1
  22. data/proto_docs/google/cloud/networkservices/v1/grpc_route.rb +7 -7
  23. data/proto_docs/google/cloud/networkservices/v1/http_route.rb +13 -7
  24. data/proto_docs/google/cloud/networkservices/v1/mesh.rb +5 -5
  25. data/proto_docs/google/cloud/networkservices/v1/tcp_route.rb +7 -7
  26. data/proto_docs/google/cloud/networkservices/v1/tls_route.rb +15 -7
  27. metadata +3 -1
@@ -43,6 +43,25 @@ module Google
43
43
  "projects/#{project}/regions/#{region}/addresses/#{address}"
44
44
  end
45
45
 
46
+ ##
47
+ # Create a fully-qualified AgentGateway resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/agentGateways/{agent_gateway}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param agent_gateway [String]
56
+ #
57
+ # @return [::String]
58
+ def agent_gateway_path project:, location:, agent_gateway:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/agentGateways/#{agent_gateway}"
63
+ end
64
+
46
65
  ##
47
66
  # Create a fully-qualified AuthorizationPolicy resource string.
48
67
  #
@@ -406,6 +425,25 @@ module Google
406
425
  "projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
407
426
  end
408
427
 
428
+ ##
429
+ # Create a fully-qualified TargetTcpProxy resource string.
430
+ #
431
+ # The resource will be in the following format:
432
+ #
433
+ # `projects/{project}/locations/{location}/targetTcpProxies/{target_tcp_proxy}`
434
+ #
435
+ # @param project [String]
436
+ # @param location [String]
437
+ # @param target_tcp_proxy [String]
438
+ #
439
+ # @return [::String]
440
+ def target_tcp_proxy_path project:, location:, target_tcp_proxy:
441
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
442
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
443
+
444
+ "projects/#{project}/locations/#{location}/targetTcpProxies/#{target_tcp_proxy}"
445
+ end
446
+
409
447
  ##
410
448
  # Create a fully-qualified TcpRoute resource string.
411
449
  #