Module: Google::Cloud::Chronicle::V1::DashboardChartService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/chronicle/v1/dashboard_chart_service/paths.rb
Overview
Path helper methods for the DashboardChartService API.
Instance Method Summary collapse
-
#dashboard_chart_path(project:, location:, instance:, chart:) ⇒ ::String
Create a fully-qualified DashboardChart resource string.
-
#instance_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
Instance Method Details
#dashboard_chart_path(project:, location:, instance:, chart:) ⇒ ::String
Create a fully-qualified DashboardChart resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}/dashboardCharts/{chart}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/chronicle/v1/dashboard_chart_service/paths.rb', line 40 def dashboard_chart_path project:, location:, instance:, chart: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}/dashboardCharts/#{chart}" end |
#instance_path(project:, location:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/instances/{instance}
60 61 62 63 64 65 |
# File 'lib/google/cloud/chronicle/v1/dashboard_chart_service/paths.rb', line 60 def instance_path project:, location:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/instances/#{instance}" end |