1// Copyright 2018 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package instance 16 17// InstanceAdminProjectPath returns the path for the project resource. 18// 19// Deprecated: Use 20// fmt.Sprintf("projects/%s", project) 21// instead. 22func InstanceAdminProjectPath(project string) string { 23 return "" + 24 "projects/" + 25 project + 26 "" 27} 28 29// InstanceAdminInstanceConfigPath returns the path for the instance config resource. 30// 31// Deprecated: Use 32// fmt.Sprintf("projects/%s/instanceConfigs/%s", project, instanceConfig) 33// instead. 34func InstanceAdminInstanceConfigPath(project, instanceConfig string) string { 35 return "" + 36 "projects/" + 37 project + 38 "/instanceConfigs/" + 39 instanceConfig + 40 "" 41} 42 43// InstanceAdminInstancePath returns the path for the instance resource. 44// 45// Deprecated: Use 46// fmt.Sprintf("projects/%s/instances/%s", project, instance) 47// instead. 48func InstanceAdminInstancePath(project, instance string) string { 49 return "" + 50 "projects/" + 51 project + 52 "/instances/" + 53 instance + 54 "" 55} 56