Module: Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/network_security/v1beta1/network_security/paths.rb
Overview
Path helper methods for the NetworkSecurity API.
Instance Method Summary collapse
-
#authorization_policy_path(project:, location:, authorization_policy:) ⇒ ::String
Create a fully-qualified AuthorizationPolicy resource string.
-
#client_tls_policy_path(project:, location:, client_tls_policy:) ⇒ ::String
Create a fully-qualified ClientTlsPolicy resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#server_tls_policy_path(project:, location:, server_tls_policy:) ⇒ ::String
Create a fully-qualified ServerTlsPolicy resource string.
Instance Method Details
#authorization_policy_path(project:, location:, authorization_policy:) ⇒ ::String
Create a fully-qualified AuthorizationPolicy resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/authorizationPolicies/{authorization_policy}
39 40 41 42 43 44 |
# File 'lib/google/cloud/network_security/v1beta1/network_security/paths.rb', line 39 def 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/#{}" end |
#client_tls_policy_path(project:, location:, client_tls_policy:) ⇒ ::String
Create a fully-qualified ClientTlsPolicy resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}
58 59 60 61 62 63 |
# 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:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
76 77 78 79 80 |
# 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:) ⇒ ::String
Create a fully-qualified ServerTlsPolicy resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}
94 95 96 97 98 99 |
# 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 |