Module: Google::Cloud::ServiceHealth::V1::ServiceHealth::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/service_health/v1/service_health/paths.rb
Overview
Path helper methods for the ServiceHealth API.
Instance Method Summary collapse
-
#event_path(project:, location:, event:) ⇒ ::String
Create a fully-qualified Event resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#organization_event_path(organization:, location:, event:) ⇒ ::String
Create a fully-qualified OrganizationEvent resource string.
-
#organization_impact_path(organization:, location:, organization_impact:) ⇒ ::String
Create a fully-qualified OrganizationImpact resource string.
-
#organization_location_path(organization:, location:) ⇒ ::String
Create a fully-qualified OrganizationLocation resource string.
Instance Method Details
#event_path(project:, location:, event:) ⇒ ::String
Create a fully-qualified Event resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/events/{event}
39 40 41 42 43 44 |
# File 'lib/google/cloud/service_health/v1/service_health/paths.rb', line 39 def event_path project:, location:, event: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/events/#{event}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
57 58 59 60 61 |
# File 'lib/google/cloud/service_health/v1/service_health/paths.rb', line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#organization_event_path(organization:, location:, event:) ⇒ ::String
Create a fully-qualified OrganizationEvent resource string.
The resource will be in the following format:
organizations/{organization}/locations/{location}/organizationEvents/{event}
75 76 77 78 79 80 |
# File 'lib/google/cloud/service_health/v1/service_health/paths.rb', line 75 def organization_event_path organization:, location:, event: raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "organizations/#{organization}/locations/#{location}/organizationEvents/#{event}" end |
#organization_impact_path(organization:, location:, organization_impact:) ⇒ ::String
Create a fully-qualified OrganizationImpact resource string.
The resource will be in the following format:
organizations/{organization}/locations/{location}/organizationImpacts/{organization_impact}
94 95 96 97 98 99 |
# File 'lib/google/cloud/service_health/v1/service_health/paths.rb', line 94 def organization_impact_path organization:, location:, organization_impact: raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "organizations/#{organization}/locations/#{location}/organizationImpacts/#{organization_impact}" end |
#organization_location_path(organization:, location:) ⇒ ::String
Create a fully-qualified OrganizationLocation resource string.
The resource will be in the following format:
organizations/{organization}/locations/{location}
112 113 114 115 116 |
# File 'lib/google/cloud/service_health/v1/service_health/paths.rb', line 112 def organization_location_path organization:, location: raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" "organizations/#{organization}/locations/#{location}" end |