Module: Google::Cloud::Talent::V4beta1::EventService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/talent/v4beta1/event_service/paths.rb
Overview
Path helper methods for the EventService API.
Instance Method Summary collapse
-
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
-
#tenant_path(project:, tenant:) ⇒ ::String
Create a fully-qualified Tenant resource string.
Instance Method Details
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
The resource will be in the following format:
projects/{project}
37 38 39 |
# File 'lib/google/cloud/talent/v4beta1/event_service/paths.rb', line 37 def project_path project: "projects/#{project}" end |
#tenant_path(project:, tenant:) ⇒ ::String
Create a fully-qualified Tenant resource string.
The resource will be in the following format:
projects/{project}/tenants/{tenant}
52 53 54 55 56 |
# File 'lib/google/cloud/talent/v4beta1/event_service/paths.rb', line 52 def tenant_path project:, tenant: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/tenants/#{tenant}" end |