module Google::Cloud::GkeHub::V1::GkeHub::Paths
Path helper methods for the GkeHub
API.
Public Instance Methods
feature_path(project:, location:, feature: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Feature resource string.
The resource will be in the following format:
‘projects/{project}/locations/{location}/features/{feature}`
@param project [String] @param location [String] @param feature [String]
@return [::String]
# File lib/google/cloud/gke_hub/v1/gke_hub/paths.rb, line 39 def feature_path project:, location:, feature: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/features/#{feature}" end
location_path(project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Location resource string.
The resource will be in the following format:
‘projects/{project}/locations/{location}`
@param project [String] @param location [String]
@return [::String]
# File lib/google/cloud/gke_hub/v1/gke_hub/paths.rb, line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end
membership_path(project:, location:, membership: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Membership resource string.
The resource will be in the following format:
‘projects/{project}/locations/{location}/memberships/{membership}`
@param project [String] @param location [String] @param membership [String]
@return [::String]
# File lib/google/cloud/gke_hub/v1/gke_hub/paths.rb, line 75 def membership_path project:, location:, membership: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/memberships/#{membership}" end