Module: Google::Cloud::CertificateManager::V1::CertificateManager::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb
Overview
Path helper methods for the CertificateManager API.
Instance Method Summary collapse
-
#ca_pool_path(project:, location:, ca_pool:) ⇒ ::String
Create a fully-qualified CaPool resource string.
-
#certificate_issuance_config_path(project:, location:, certificate_issuance_config:) ⇒ ::String
Create a fully-qualified CertificateIssuanceConfig resource string.
-
#certificate_map_entry_path(project:, location:, certificate_map:, certificate_map_entry:) ⇒ ::String
Create a fully-qualified CertificateMapEntry resource string.
-
#certificate_map_path(project:, location:, certificate_map:) ⇒ ::String
Create a fully-qualified CertificateMap resource string.
-
#certificate_path(project:, location:, certificate:) ⇒ ::String
Create a fully-qualified Certificate resource string.
-
#dns_authorization_path(project:, location:, dns_authorization:) ⇒ ::String
Create a fully-qualified DnsAuthorization resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#trust_config_path(project:, location:, trust_config:) ⇒ ::String
Create a fully-qualified TrustConfig resource string.
Instance Method Details
#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}
39 40 41 42 43 44 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 39 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_issuance_config_path(project:, location:, certificate_issuance_config:) ⇒ ::String
Create a fully-qualified CertificateIssuanceConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/certificateIssuanceConfigs/{certificate_issuance_config}
77 78 79 80 81 82 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 77 def certificate_issuance_config_path project:, location:, certificate_issuance_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}/certificateIssuanceConfigs/#{certificate_issuance_config}" end |
#certificate_map_entry_path(project:, location:, certificate_map:, certificate_map_entry:) ⇒ ::String
Create a fully-qualified CertificateMapEntry resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/certificateMaps/{certificate_map}/certificateMapEntries/{certificate_map_entry}
116 117 118 119 120 121 122 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 116 def certificate_map_entry_path project:, location:, certificate_map:, certificate_map_entry: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "certificate_map cannot contain /" if certificate_map.to_s.include? "/" "projects/#{project}/locations/#{location}/certificateMaps/#{certificate_map}/certificateMapEntries/#{certificate_map_entry}" end |
#certificate_map_path(project:, location:, certificate_map:) ⇒ ::String
Create a fully-qualified CertificateMap resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/certificateMaps/{certificate_map}
96 97 98 99 100 101 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 96 def certificate_map_path project:, location:, certificate_map: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/certificateMaps/#{certificate_map}" 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}
58 59 60 61 62 63 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 58 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 |
#dns_authorization_path(project:, location:, dns_authorization:) ⇒ ::String
Create a fully-qualified DnsAuthorization resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dnsAuthorizations/{dns_authorization}
136 137 138 139 140 141 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 136 def project:, location:, dns_authorization: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/dnsAuthorizations/#{}" 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}
154 155 156 157 158 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 154 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" 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}
172 173 174 175 176 177 |
# File 'lib/google/cloud/certificate_manager/v1/certificate_manager/paths.rb', line 172 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 |