Module: Google::Cloud::Dataplex::V1::DataTaxonomyService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/dataplex/v1/data_taxonomy_service/paths.rb

Overview

Path helper methods for the DataTaxonomyService API.

Instance Method Summary collapse

Instance Method Details

#data_attribute_binding_path(project:, location:, data_attribute_binding_id:) ⇒ ::String

Create a fully-qualified DataAttributeBinding resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}

Parameters:

  • project (String)
  • location (String)
  • data_attribute_binding_id (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


60
61
62
63
64
65
# File 'lib/google/cloud/dataplex/v1/data_taxonomy_service/paths.rb', line 60

def data_attribute_binding_path project:, location:, data_attribute_binding_id:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/dataAttributeBindings/#{data_attribute_binding_id}"
end

#data_attribute_path(project:, location:, data_taxonomy:, data_attribute_id:) ⇒ ::String

Create a fully-qualified DataAttribute resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy}/attributes/{data_attribute_id}

Parameters:

  • project (String)
  • location (String)
  • data_taxonomy (String)
  • data_attribute_id (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


40
41
42
43
44
45
46
# File 'lib/google/cloud/dataplex/v1/data_taxonomy_service/paths.rb', line 40

def data_attribute_path project:, location:, data_taxonomy:, data_attribute_id:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "data_taxonomy cannot contain /" if data_taxonomy.to_s.include? "/"

  "projects/#{project}/locations/#{location}/dataTaxonomies/#{data_taxonomy}/attributes/#{data_attribute_id}"
end

#data_taxonomy_path(project:, location:, data_taxonomy_id:) ⇒ ::String

Create a fully-qualified DataTaxonomy resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}

Parameters:

  • project (String)
  • location (String)
  • data_taxonomy_id (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


79
80
81
82
83
84
# File 'lib/google/cloud/dataplex/v1/data_taxonomy_service/paths.rb', line 79

def data_taxonomy_path project:, location:, data_taxonomy_id:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/dataTaxonomies/#{data_taxonomy_id}"
end

#location_path(project:, location:) ⇒ ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

Parameters:

  • project (String)
  • location (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


97
98
99
100
101
# File 'lib/google/cloud/dataplex/v1/data_taxonomy_service/paths.rb', line 97

def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

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