Module: Google::Cloud::Support::V2::SupportEventSubscriptionService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/support/v2/support_event_subscription_service/paths.rb
Overview
Path helper methods for the SupportEventSubscriptionService API.
Instance Method Summary collapse
-
#organization_path(organization:) ⇒ ::String
Create a fully-qualified Organization resource string.
-
#support_event_subscription_path(organization:, support_event_subscription:) ⇒ ::String
Create a fully-qualified SupportEventSubscription resource string.
Instance Method Details
#organization_path(organization:) ⇒ ::String
Create a fully-qualified Organization resource string.
The resource will be in the following format:
organizations/{organization}
37 38 39 |
# File 'lib/google/cloud/support/v2/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}
52 53 54 55 56 |
# File 'lib/google/cloud/support/v2/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 |