module Google::Cloud::Talent::V4beta1::ProfileService::Paths
Path helper methods for the ProfileService
API.
Public Instance Methods
profile_path(project:, tenant:, profile: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Profile resource string.
The resource will be in the following format:
`projects/{project}/tenants/{tenant}/profiles/{profile}`
@param project [String] @param tenant [String] @param profile [String]
@return [::String]
# File lib/google/cloud/talent/v4beta1/profile_service/paths.rb, line 39 def profile_path project:, tenant:, profile: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "tenant cannot contain /" if tenant.to_s.include? "/" "projects/#{project}/tenants/#{tenant}/profiles/#{profile}" 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/profile_service/paths.rb, line 57 def tenant_path project:, tenant: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/tenants/#{tenant}" end