Module: Google::Cloud::Channel::V1::CloudChannelReportsService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/channel/v1/cloud_channel_reports_service/paths.rb

Overview

Path helper methods for the CloudChannelReportsService API.

Instance Method Summary collapse

Instance Method Details

#report_job_path(account:, report_job:) ⇒ ::String

Create a fully-qualified ReportJob resource string.

The resource will be in the following format:

accounts/{account}/reportJobs/{report_job}

Parameters:

  • account (String)
  • report_job (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


55
56
57
58
59
# File 'lib/google/cloud/channel/v1/cloud_channel_reports_service/paths.rb', line 55

def report_job_path account:, report_job:
  raise ::ArgumentError, "account cannot contain /" if .to_s.include? "/"

  "accounts/#{}/reportJobs/#{report_job}"
end

#report_path(account:, report:) ⇒ ::String

Create a fully-qualified Report resource string.

The resource will be in the following format:

accounts/{account}/reports/{report}

Parameters:

  • account (String)
  • report (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


38
39
40
41
42
# File 'lib/google/cloud/channel/v1/cloud_channel_reports_service/paths.rb', line 38

def report_path account:, report:
  raise ::ArgumentError, "account cannot contain /" if .to_s.include? "/"

  "accounts/#{}/reports/#{report}"
end