common_resources.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2019 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. // http://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. // This file contains stub messages for common resources in GCP.
  15. // It is not intended to be directly generated, and is instead used by
  16. // other tooling to be able to match common resource patterns.
  17. syntax = "proto3";
  18. package google.cloud;
  19. import "google/api/resource.proto";
  20. option (google.api.resource_definition) = {
  21. type: "cloudresourcemanager.googleapis.com/Project"
  22. pattern: "projects/{project}"
  23. };
  24. option (google.api.resource_definition) = {
  25. type: "cloudresourcemanager.googleapis.com/Organization"
  26. pattern: "organizations/{organization}"
  27. };
  28. option (google.api.resource_definition) = {
  29. type: "cloudresourcemanager.googleapis.com/Folder"
  30. pattern: "folders/{folder}"
  31. };
  32. option (google.api.resource_definition) = {
  33. type: "cloudbilling.googleapis.com/BillingAccount"
  34. pattern: "billingAccounts/{billing_account}"
  35. };
  36. option (google.api.resource_definition) = {
  37. type: "locations.googleapis.com/Location"
  38. pattern: "projects/{project}/locations/{location}"
  39. };