Method: Google::Cloud::Monitoring::V3::SnoozeService::Paths#snooze_path

Defined in:
lib/google/cloud/monitoring/v3/snooze_service/paths.rb

#snooze_path(project:, snooze:) ⇒ ::String

Create a fully-qualified Snooze resource string.

The resource will be in the following format:

projects/{project}/snoozes/{snooze}

Parameters:

  • project (String)
  • snooze (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)
[View source]

104
105
106
107
108
# File 'lib/google/cloud/monitoring/v3/snooze_service/paths.rb', line 104

def snooze_path project:, snooze:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/snoozes/#{snooze}"
end