module Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Paths

Path helper methods for the ArtifactRegistry API.

Public Instance Methods

repository_path(project:, location:, repository: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Repository resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/repositories/{repository}`

@param project [String] @param location [String] @param repository [String]

@return [::String]

# File lib/google/cloud/artifact_registry/v1beta2/artifact_registry/paths.rb, line 39
def repository_path project:, location:, repository:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/repositories/#{repository}"
end