Module: Google::Cloud::Dataplex::V1::BusinessGlossaryService::Paths

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

Overview

Path helper methods for the BusinessGlossaryService API.

Instance Method Summary collapse

Instance Method Details

#glossary_category_path(project:, location:, glossary:, glossary_category:) ⇒ ::String

Create a fully-qualified GlossaryCategory resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}

Parameters:

  • project (String)
  • location (String)
  • glossary (String)
  • glossary_category (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

  "projects/#{project}/locations/#{location}/glossaries/#{glossary}/categories/#{glossary_category}"
end

#glossary_path(project:, location:, glossary:) ⇒ ::String

Create a fully-qualified Glossary resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/glossaries/{glossary}

Parameters:

  • project (String)
  • location (String)
  • glossary (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


39
40
41
42
43
44
# File 'lib/google/cloud/dataplex/v1/business_glossary_service/paths.rb', line 39

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

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

#glossary_term_path(project:, location:, glossary:, glossary_term:) ⇒ ::String

Create a fully-qualified GlossaryTerm resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}

Parameters:

  • project (String)
  • location (String)
  • glossary (String)
  • glossary_term (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


80
81
82
83
84
85
86
# File 'lib/google/cloud/dataplex/v1/business_glossary_service/paths.rb', line 80

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

  "projects/#{project}/locations/#{location}/glossaries/#{glossary}/terms/#{glossary_term}"
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)


99
100
101
102
103
# File 'lib/google/cloud/dataplex/v1/business_glossary_service/paths.rb', line 99

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

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