Module: Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Paths

Extended by:
Paths
Included in:
Client, Paths
Defined in:
lib/google/cloud/error_reporting/v1beta1/error_group_service/paths.rb

Overview

Path helper methods for the ErrorGroupService API.

Instance Method Summary collapse

Instance Method Details

#error_group_path(project:, group:) ⇒ ::String

Create a fully-qualified ErrorGroup resource string.

The resource will be in the following format:

projects/{project}/groups/{group}

Parameters:

  • project (String)
  • group (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


38
39
40
41
42
# File 'lib/google/cloud/error_reporting/v1beta1/error_group_service/paths.rb', line 38

def error_group_path project:, group:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/groups/#{group}"
end