module Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Paths

Path helper methods for the NetworkSecurity API.

Public Instance Methods

authorization_policy_path(project:, location:, authorization_policy: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified AuthorizationPolicy resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/authorizationPolicies/{authorization_policy}`

@param project [String] @param location [String] @param authorization_policy [String]

@return [::String]

# File lib/google/cloud/network_security/v1beta1/network_security/paths.rb, line 39
def authorization_policy_path project:, location:, authorization_policy:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/authorizationPolicies/#{authorization_policy}"
end
client_tls_policy_path(project:, location:, client_tls_policy: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified ClientTlsPolicy resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`

@param project [String] @param location [String] @param client_tls_policy [String]

@return [::String]

# File lib/google/cloud/network_security/v1beta1/network_security/paths.rb, line 58
def client_tls_policy_path project:, location:, client_tls_policy:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/clientTlsPolicies/#{client_tls_policy}"
end
location_path(project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Location resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}`

@param project [String] @param location [String]

@return [::String]

# File lib/google/cloud/network_security/v1beta1/network_security/paths.rb, line 76
def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end
server_tls_policy_path(project:, location:, server_tls_policy: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified ServerTlsPolicy resource string.

The resource will be in the following format:

‘projects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}`

@param project [String] @param location [String] @param server_tls_policy [String]

@return [::String]

# File lib/google/cloud/network_security/v1beta1/network_security/paths.rb, line 94
def server_tls_policy_path project:, location:, server_tls_policy:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/serverTlsPolicies/#{server_tls_policy}"
end