# frozen_string_literal: true # Copyright 2022 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 VmwareEngine module V1 module VmwareEngine # Path helper methods for the VmwareEngine API. module Paths ## # Create a fully-qualified Cluster resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}` # # @param project [String] # @param location [String] # @param private_cloud [String] # @param cluster [String] # # @return [::String] def cluster_path project:, location:, private_cloud:, cluster: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "private_cloud cannot contain /" if private_cloud.to_s.include? "/" "projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}/clusters/#{cluster}" end ## # Create a fully-qualified HcxActivationKey resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}` # # @param project [String] # @param location [String] # @param private_cloud [String] # @param hcx_activation_key [String] # # @return [::String] def hcx_activation_key_path project:, location:, private_cloud:, hcx_activation_key: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "private_cloud cannot contain /" if private_cloud.to_s.include? "/" "projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}/hcxActivationKeys/#{hcx_activation_key}" end ## # Create a fully-qualified Location resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}` # # @param project [String] # @param location [String] # # @return [::String] def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end ## # Create a fully-qualified Network resource string. # # The resource will be in the following format: # # `projects/{project}/global/networks/{network}` # # @param project [String] # @param network [String] # # @return [::String] def network_path project:, network: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/global/networks/#{network}" end ## # Create a fully-qualified NetworkPolicy resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/networkPolicies/{network_policy}` # # @param project [String] # @param location [String] # @param network_policy [String] # # @return [::String] def network_policy_path project:, location:, network_policy: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/networkPolicies/#{network_policy}" end ## # Create a fully-qualified NodeType resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/nodeTypes/{node_type}` # # @param project [String] # @param location [String] # @param node_type [String] # # @return [::String] def node_type_path project:, location:, node_type: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/nodeTypes/#{node_type}" end ## # Create a fully-qualified PrivateCloud resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/privateClouds/{private_cloud}` # # @param project [String] # @param location [String] # @param private_cloud [String] # # @return [::String] def private_cloud_path project:, location:, private_cloud: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}" end ## # Create a fully-qualified PrivateConnection resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/privateConnections/{private_connection}` # # @param project [String] # @param location [String] # @param private_connection [String] # # @return [::String] def private_connection_path project:, location:, private_connection: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/privateConnections/#{private_connection}" end ## # Create a fully-qualified Subnet resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/privateClouds/{private_cloud}/subnets/{subnet}` # # @param project [String] # @param location [String] # @param private_cloud [String] # @param subnet [String] # # @return [::String] def subnet_path project:, location:, private_cloud:, subnet: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "private_cloud cannot contain /" if private_cloud.to_s.include? "/" "projects/#{project}/locations/#{location}/privateClouds/#{private_cloud}/subnets/#{subnet}" end ## # Create a fully-qualified VmwareEngineNetwork resource string. # # The resource will be in the following format: # # `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}` # # @param project [String] # @param location [String] # @param vmware_engine_network [String] # # @return [::String] def vmware_engine_network_path project:, location:, vmware_engine_network: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/vmwareEngineNetworks/#{vmware_engine_network}" end extend self end end end end end end