Debian Codegraph @

google/cloud/common_resources.proto

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