module Google::Cloud::Talent::V4beta1::CompanyService::Paths
Path helper methods for the CompanyService
API.
Public Instance Methods
company_path(**args)
click to toggle source
Create a fully-qualified Company
resource string.
@overload company_path
(project:, tenant:, company:)
The resource will be in the following format: `projects/{project}/tenants/{tenant}/companies/{company}` @param project [String] @param tenant [String] @param company [String]
@overload company_path
(project:, company:)
The resource will be in the following format: `projects/{project}/companies/{company}` @param project [String] @param company [String]
@return [::String]
# File lib/google/cloud/talent/v4beta1/company_service/paths.rb, line 48 def company_path **args resources = { "company:project:tenant" => (proc do |project:, tenant:, company:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/" "projects/#{project}/tenants/#{tenant}/companies/#{company}" end), "company:project" => (proc do |project:, company:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/companies/#{company}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end
project_path(project: "projects/
click to toggle source
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/google/cloud/talent/v4beta1/company_service/paths.rb, line 78 def project_path project: "projects/#{project}" end
tenant_path(project:, tenant: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Tenant
resource string.
The resource will be in the following format:
`projects/{project}/tenants/{tenant}`
@param project [String] @param tenant [String]
@return [::String]
# File lib/google/cloud/talent/v4beta1/company_service/paths.rb, line 93 def tenant_path project:, tenant: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/tenants/#{tenant}" end