module Google::Cloud::GkeHub::V1beta1::GkeHubMembershipService::Paths

Path helper methods for the GkeHubMembershipService API.

Public Instance Methods

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/v1beta1/gke_hub_membership_service/paths.rb, line 39
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