module Google::Cloud::Talent::V4::JobService::Paths

Path helper methods for the JobService API.

Public Instance Methods

company_path(project:, tenant:, company: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Company resource string.

The resource will be in the following format:

`projects/{project}/tenants/{tenant}/companies/{company}`

@param project [String] @param tenant [String] @param company [String]

@return [::String]

# File lib/google/cloud/talent/v4/job_service/paths.rb, line 39
def company_path 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
job_path(project:, tenant:, job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Job resource string.

The resource will be in the following format:

`projects/{project}/tenants/{tenant}/jobs/{job}`

@param project [String] @param tenant [String] @param job [String]

@return [::String]

# File lib/google/cloud/talent/v4/job_service/paths.rb, line 58
def job_path project:, tenant:, job:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/"

  "projects/#{project}/tenants/#{tenant}/jobs/#{job}"
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/v4/job_service/paths.rb, line 76
def tenant_path project:, tenant:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/tenants/#{tenant}"
end