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
-
#report_job_path(account:, report_job:) ⇒ ::String
Create a fully-qualified ReportJob resource string.
-
#report_path(account:, report:) ⇒ ::String
Create a fully-qualified Report resource string.
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}
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 account.to_s.include? "/" "accounts/#{account}/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}
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 account.to_s.include? "/" "accounts/#{account}/reports/#{report}" end |