Module: Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Paths

Extended by:
Paths
Included in:
Client, 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

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}

Parameters:

  • project (String)
  • location (String)
  • authorization_policy (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


39
40
41
42
43
44
# File 'lib/google/cloud/network_security/v1/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

#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}

Parameters:

  • project (String)
  • location (String)
  • authz_policy (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • backend_authentication_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • ca_pool (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • certificate (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • client_tls_policy (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • gateway_security_policy (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • gateway_security_policy (String)
  • rule (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • server_tls_policy (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • tls_inspection_policy (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • trust_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • url_list (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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