module Google::Cloud::Metastore::V1beta::DataprocMetastore::Paths

Path helper methods for the DataprocMetastore API.

Public Instance Methods

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

Create a fully-qualified Backup resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/services/{service}/backups/{backup}`

@param project [String] @param location [String] @param service [String] @param backup [String]

@return [::String]

# File lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb, line 40
def backup_path project:, location:, service:, backup:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"

  "projects/#{project}/locations/#{location}/services/#{service}/backups/#{backup}"
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/metastore/v1beta/dataproc_metastore/paths.rb, line 59
def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end
metadata_import_path(project:, location:, service:, metadata_import: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified MetadataImport resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}`

@param project [String] @param location [String] @param service [String] @param metadata_import [String]

@return [::String]

# File lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb, line 78
def metadata_import_path project:, location:, service:, metadata_import:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"

  "projects/#{project}/locations/#{location}/services/#{service}/metadataImports/#{metadata_import}"
end
network_path(project:, network: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Network resource string.

The resource will be in the following format:

`projects/{project}/global/networks/{network}`

@param project [String] @param network [String]

@return [::String]

# File lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb, line 97
def network_path project:, network:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/global/networks/#{network}"
end
service_path(project:, location:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Service resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/services/{service}`

@param project [String] @param location [String] @param service [String]

@return [::String]

# File lib/google/cloud/metastore/v1beta/dataproc_metastore/paths.rb, line 115
def service_path project:, location:, service:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/services/#{service}"
end