module Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Paths
Path helper methods for the DashboardsService
API.
Public Instance Methods
alert_policy_path(project:, alert_policy: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified AlertPolicy resource string.
The resource will be in the following format:
`projects/{project}/alertPolicies/{alert_policy}`
@param project [String] @param alert_policy [String]
@return [::String]
# File lib/google/cloud/monitoring/dashboard/v1/dashboards_service/paths.rb, line 39 def alert_policy_path project:, alert_policy: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/alertPolicies/#{alert_policy}" end
dashboard_path(project:, dashboard: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Dashboard
resource string.
The resource will be in the following format:
`projects/{project}/dashboards/{dashboard}`
@param project [String] @param dashboard [String]
@return [::String]
# File lib/google/cloud/monitoring/dashboard/v1/dashboards_service/paths.rb, line 56 def dashboard_path project:, dashboard: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/dashboards/#{dashboard}" end
project_path(project: "projects/
click to toggle source
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/google/cloud/monitoring/dashboard/v1/dashboards_service/paths.rb, line 72 def project_path project: "projects/#{project}" end