module Google::Cloud::DataCatalog::V1::DataCatalog::Paths

Path helper methods for the DataCatalog API.

Public Instance Methods

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

Create a fully-qualified EntryGroup resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/entryGroups/{entry_group}`

@param project [String] @param location [String] @param entry_group [String]

@return [::String]

# File lib/google/cloud/data_catalog/v1/data_catalog/paths.rb, line 60
def entry_group_path project:, location:, entry_group:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/entryGroups/#{entry_group}"
end
entry_path(project:, location:, entry_group:, entry: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Entry resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`

@param project [String] @param location [String] @param entry_group [String] @param entry [String]

@return [::String]

# File lib/google/cloud/data_catalog/v1/data_catalog/paths.rb, line 40
def entry_path project:, location:, entry_group:, entry:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "entry_group cannot contain /" if entry_group.to_s.include? "/"

  "projects/#{project}/locations/#{location}/entryGroups/#{entry_group}/entries/#{entry}"
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/data_catalog/v1/data_catalog/paths.rb, line 78
def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end
tag_path(project:, location:, entry_group:, entry:, tag: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Tag resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}`

@param project [String] @param location [String] @param entry_group [String] @param entry [String] @param tag [String]

@return [::String]

# File lib/google/cloud/data_catalog/v1/data_catalog/paths.rb, line 98
def tag_path project:, location:, entry_group:, entry:, tag:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "entry_group cannot contain /" if entry_group.to_s.include? "/"
  raise ::ArgumentError, "entry cannot contain /" if entry.to_s.include? "/"

  "projects/#{project}/locations/#{location}/entryGroups/#{entry_group}/entries/#{entry}/tags/#{tag}"
end
tag_template_field_enum_value_path(project:, location:, tag_template:, tag_template_field_id:, enum_value_display_name: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified TagTemplateFieldEnumValue resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}`

@param project [String] @param location [String] @param tag_template [String] @param tag_template_field_id [String] @param enum_value_display_name [String]

@return [::String]

# File lib/google/cloud/data_catalog/v1/data_catalog/paths.rb, line 161
def tag_template_field_enum_value_path project:, location:, tag_template:, tag_template_field_id:, enum_value_display_name:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "tag_template cannot contain /" if tag_template.to_s.include? "/"
  raise ::ArgumentError, "tag_template_field_id cannot contain /" if tag_template_field_id.to_s.include? "/"

  "projects/#{project}/locations/#{location}/tagTemplates/#{tag_template}/fields/#{tag_template_field_id}/enumValues/#{enum_value_display_name}"
end
tag_template_field_path(project:, location:, tag_template:, field: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified TagTemplateField resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}`

@param project [String] @param location [String] @param tag_template [String] @param field [String]

@return [::String]

# File lib/google/cloud/data_catalog/v1/data_catalog/paths.rb, line 139
def tag_template_field_path project:, location:, tag_template:, field:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "tag_template cannot contain /" if tag_template.to_s.include? "/"

  "projects/#{project}/locations/#{location}/tagTemplates/#{tag_template}/fields/#{field}"
end
tag_template_path(project:, location:, tag_template: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified TagTemplate resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/tagTemplates/{tag_template}`

@param project [String] @param location [String] @param tag_template [String]

@return [::String]

# File lib/google/cloud/data_catalog/v1/data_catalog/paths.rb, line 119
def tag_template_path project:, location:, tag_template:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/tagTemplates/#{tag_template}"
end