1// Copyright 2024 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 15syntax = "proto3"; 16 17package google.cloud.securitycenter.v1; 18 19import "google/api/resource.proto"; 20 21option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; 22option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; 23option java_multiple_files = true; 24option java_outer_classname = "OrgPolicyProto"; 25option java_package = "com.google.cloud.securitycenter.v1"; 26option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; 27option ruby_package = "Google::Cloud::SecurityCenter::V1"; 28 29// Contains information about the org policies associated with the finding. 30message OrgPolicy { 31 option (google.api.resource) = { 32 type: "orgpolicy.googleapis.com/Policy" 33 pattern: "organizations/{organization}/policies/{constraint_name}" 34 pattern: "folders/{folder}/policies/{constraint_name}" 35 pattern: "projects/{project}/policies/{constraint_name}" 36 }; 37 38 // The resource name of the org policy. 39 // Example: 40 // "organizations/{organization_id}/policies/{constraint_name}" 41 string name = 1; 42} 43