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.
@@ -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