Sha256: 1aed412cea2e5bb01e6f5656be6e4e7f237472b81ff6566b64bab9e35d747989

Contents?: true

Size: 1.87 KB

Versions: 13

Compression:

Stored size: 1.87 KB

Contents

# frozen_string_literal: true

# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!


module Google
  module Cloud
    module ResourceManager
      module V3
        module TagHolds
          # Path helper methods for the TagHolds API.
          module Paths
            ##
            # Create a fully-qualified TagHold resource string.
            #
            # The resource will be in the following format:
            #
            # `tagValues/{tag_value}/tagHolds/{tag_hold}`
            #
            # @param tag_value [String]
            # @param tag_hold [String]
            #
            # @return [::String]
            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

            ##
            # Create a fully-qualified TagValue resource string.
            #
            # The resource will be in the following format:
            #
            # `tagValues/{tag_value}`
            #
            # @param tag_value [String]
            #
            # @return [::String]
            def tag_value_path tag_value:
              "tagValues/#{tag_value}"
            end

            extend self
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
google-cloud-resource_manager-v3-1.1.0 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-1.0.1 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-1.0.0 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.9.0 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.8.2 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.8.1 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.8.0 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.7.0 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.6.2 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.6.1 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.6.0 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.5.1 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb
google-cloud-resource_manager-v3-0.5.0 lib/google/cloud/resource_manager/v3/tag_holds/paths.rb