google-cloud-network_services-v1 2.2.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 +944 -0
- data/lib/google/cloud/network_services/v1/network_services/paths.rb +40 -0
- data/lib/google/cloud/network_services/v1/network_services/rest/client.rb +881 -0
- data/lib/google/cloud/network_services/v1/network_services/rest/service_stub.rb +552 -0
- data/lib/google/cloud/network_services/v1/version.rb +1 -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/extensibility_pb.rb +66 -0
- data/lib/google/cloud/networkservices/v1/network_services_pb.rb +3 -1
- data/lib/google/cloud/networkservices/v1/network_services_services_pb.rb +22 -0
- data/proto_docs/google/cloud/networkservices/v1/dep.rb +376 -52
- data/proto_docs/google/cloud/networkservices/v1/extensibility.rb +518 -0
- metadata +3 -1
@@ -444,6 +444,46 @@ module Google
|
|
444
444
|
"projects/#{project}/locations/#{location}/tlsRoutes/#{tls_route}"
|
445
445
|
end
|
446
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
|
+
|
447
487
|
extend self
|
448
488
|
end
|
449
489
|
end
|