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.
@@ -24,6 +24,25 @@ module Google
24
24
  module DepService
25
25
  # Path helper methods for the DepService API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified AuthzExtension resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param authz_extension [String]
37
+ #
38
+ # @return [::String]
39
+ def authz_extension_path project:, location:, authz_extension:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/authzExtensions/#{authz_extension}"
44
+ end
45
+
27
46
  ##
28
47
  # Create a fully-qualified LbRouteExtension resource string.
29
48
  #