Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

56 строки
1.5 KiB

  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. package instance
  15. // InstanceAdminProjectPath returns the path for the project resource.
  16. //
  17. // Deprecated: Use
  18. // fmt.Sprintf("projects/%s", project)
  19. // instead.
  20. func InstanceAdminProjectPath(project string) string {
  21. return "" +
  22. "projects/" +
  23. project +
  24. ""
  25. }
  26. // InstanceAdminInstanceConfigPath returns the path for the instance config resource.
  27. //
  28. // Deprecated: Use
  29. // fmt.Sprintf("projects/%s/instanceConfigs/%s", project, instanceConfig)
  30. // instead.
  31. func InstanceAdminInstanceConfigPath(project, instanceConfig string) string {
  32. return "" +
  33. "projects/" +
  34. project +
  35. "/instanceConfigs/" +
  36. instanceConfig +
  37. ""
  38. }
  39. // InstanceAdminInstancePath returns the path for the instance resource.
  40. //
  41. // Deprecated: Use
  42. // fmt.Sprintf("projects/%s/instances/%s", project, instance)
  43. // instead.
  44. func InstanceAdminInstancePath(project, instance string) string {
  45. return "" +
  46. "projects/" +
  47. project +
  48. "/instances/" +
  49. instance +
  50. ""
  51. }