Module: Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/network_security/v1/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.
-
#authz_policy_path(project:, location:, authz_policy:) ⇒ ::String
Create a fully-qualified AuthzPolicy resource string.
-
#backend_authentication_config_path(project:, location:, backend_authentication_config:) ⇒ ::String
Create a fully-qualified BackendAuthenticationConfig resource string.
-
#ca_pool_path(project:, location:, ca_pool:) ⇒ ::String
Create a fully-qualified CaPool resource string.
-
#certificate_path(project:, location:, certificate:) ⇒ ::String
Create a fully-qualified Certificate resource string.
-
#client_tls_policy_path(project:, location:, client_tls_policy:) ⇒ ::String
Create a fully-qualified ClientTlsPolicy resource string.
-
#gateway_security_policy_path(project:, location:, gateway_security_policy:) ⇒ ::String
Create a fully-qualified GatewaySecurityPolicy resource string.
-
#gateway_security_policy_rule_path(project:, location:, gateway_security_policy:, rule:) ⇒ ::String
Create a fully-qualified GatewaySecurityPolicyRule 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.
-
#tls_inspection_policy_path(project:, location:, tls_inspection_policy:) ⇒ ::String
Create a fully-qualified TlsInspectionPolicy resource string.
-
#trust_config_path(project:, location:, trust_config:) ⇒ ::String
Create a fully-qualified TrustConfig resource string.
-
#url_list_path(project:, location:, url_list:) ⇒ ::String
Create a fully-qualified UrlList 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/v1/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 |
#authz_policy_path(project:, location:, authz_policy:) ⇒ ::String
Create a fully-qualified AuthzPolicy resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/authzPolicies/{authz_policy}
58 59 60 61 62 63 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 58 def authz_policy_path project:, location:, authz_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}/authzPolicies/#{authz_policy}" end |
#backend_authentication_config_path(project:, location:, backend_authentication_config:) ⇒ ::String
Create a fully-qualified BackendAuthenticationConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}
77 78 79 80 81 82 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 77 def backend_authentication_config_path project:, location:, backend_authentication_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/backendAuthenticationConfigs/#{backend_authentication_config}" end |
#ca_pool_path(project:, location:, ca_pool:) ⇒ ::String
Create a fully-qualified CaPool resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/caPools/{ca_pool}
96 97 98 99 100 101 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 96 def ca_pool_path project:, location:, ca_pool: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/caPools/#{ca_pool}" end |
#certificate_path(project:, location:, certificate:) ⇒ ::String
Create a fully-qualified Certificate resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/certificates/{certificate}
115 116 117 118 119 120 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 115 def certificate_path project:, location:, certificate: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/certificates/#{certificate}" 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}
134 135 136 137 138 139 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 134 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 |
#gateway_security_policy_path(project:, location:, gateway_security_policy:) ⇒ ::String
Create a fully-qualified GatewaySecurityPolicy resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}
153 154 155 156 157 158 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 153 def gateway_security_policy_path project:, location:, gateway_security_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}/gatewaySecurityPolicies/#{gateway_security_policy}" end |
#gateway_security_policy_rule_path(project:, location:, gateway_security_policy:, rule:) ⇒ ::String
Create a fully-qualified GatewaySecurityPolicyRule resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}
173 174 175 176 177 178 179 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 173 def gateway_security_policy_rule_path project:, location:, gateway_security_policy:, rule: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "gateway_security_policy cannot contain /" if gateway_security_policy.to_s.include? "/" "projects/#{project}/locations/#{location}/gatewaySecurityPolicies/#{gateway_security_policy}/rules/#{rule}" 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}
192 193 194 195 196 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 192 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}
210 211 212 213 214 215 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 210 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 |
#tls_inspection_policy_path(project:, location:, tls_inspection_policy:) ⇒ ::String
Create a fully-qualified TlsInspectionPolicy resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}
229 230 231 232 233 234 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 229 def tls_inspection_policy_path project:, location:, tls_inspection_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}/tlsInspectionPolicies/#{tls_inspection_policy}" end |
#trust_config_path(project:, location:, trust_config:) ⇒ ::String
Create a fully-qualified TrustConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/trustConfigs/{trust_config}
248 249 250 251 252 253 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 248 def trust_config_path project:, location:, trust_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/trustConfigs/#{trust_config}" end |
#url_list_path(project:, location:, url_list:) ⇒ ::String
Create a fully-qualified UrlList resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/urlLists/{url_list}
267 268 269 270 271 272 |
# File 'lib/google/cloud/network_security/v1/network_security/paths.rb', line 267 def url_list_path project:, location:, url_list: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/urlLists/#{url_list}" end |