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
-
#tag_hold_path(tag_value:, tag_hold:) ⇒ ::String
Create a fully-qualified TagHold resource string.
-
#tag_value_path(tag_value:) ⇒ ::String
Create a fully-qualified TagValue resource string.
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}
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}
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 |