Module: Google::Cloud::ResourceManager::V3::TagHolds::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/resource_manager/v3/tag_holds/paths.rb

Overview

Path helper methods for the TagHolds API.

Instance Method Summary collapse

Instance Method Details

#tag_hold_path(tag_value:, tag_hold:) ⇒ ::String

Create a fully-qualified TagHold resource string.

The resource will be in the following format:

tagValues/{tag_value}/tagHolds/{tag_hold}

Parameters:

  • tag_value (String)
  • tag_hold (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


38
39
40
41
42
# File 'lib/google/cloud/resource_manager/v3/tag_holds/paths.rb', line 38

def tag_hold_path tag_value:, tag_hold:
  raise ::ArgumentError, "tag_value cannot contain /" if tag_value.to_s.include? "/"

  "tagValues/#{tag_value}/tagHolds/#{tag_hold}"
end

#tag_value_path(tag_value:) ⇒ ::String

Create a fully-qualified TagValue resource string.

The resource will be in the following format:

tagValues/{tag_value}

Parameters:

  • tag_value (String)

Returns:

  • (::String)


54
55
56
# File 'lib/google/cloud/resource_manager/v3/tag_holds/paths.rb', line 54

def tag_value_path tag_value:
  "tagValues/#{tag_value}"
end