Module: Google::Cloud::Support::V2beta::SupportEventSubscriptionService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/support/v2beta/support_event_subscription_service/paths.rb

Overview

Path helper methods for the SupportEventSubscriptionService API.

Instance Method Summary collapse

Instance Method Details

#organization_path(organization:) ⇒ ::String

Create a fully-qualified Organization resource string.

The resource will be in the following format:

organizations/{organization}

Parameters:

  • organization (String)

Returns:

  • (::String)


37
38
39
# File 'lib/google/cloud/support/v2beta/support_event_subscription_service/paths.rb', line 37

def organization_path organization:
  "organizations/#{organization}"
end

#support_event_subscription_path(organization:, support_event_subscription:) ⇒ ::String

Create a fully-qualified SupportEventSubscription resource string.

The resource will be in the following format:

organizations/{organization}/supportEventSubscriptions/{support_event_subscription}

Parameters:

  • organization (String)
  • support_event_subscription (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


52
53
54
55
56
# File 'lib/google/cloud/support/v2beta/support_event_subscription_service/paths.rb', line 52

def support_event_subscription_path organization:, support_event_subscription:
  raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"

  "organizations/#{organization}/supportEventSubscriptions/#{support_event_subscription}"
end