Module: Google::Cloud::Talent::V4::EventService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/talent/v4/event_service/paths.rb

Overview

Path helper methods for the EventService API.

Instance Method Summary collapse

Instance Method Details

#tenant_path(project:, tenant:) ⇒ ::String

Create a fully-qualified Tenant resource string.

The resource will be in the following format:

projects/{project}/tenants/{tenant}

Parameters:

  • project (String)
  • tenant (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


38
39
40
41
42
# File 'lib/google/cloud/talent/v4/event_service/paths.rb', line 38

def tenant_path project:, tenant:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

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