1// Copyright 2023 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.securityposture.v1; 18 19import "google/api/field_behavior.proto"; 20import "google/cloud/securityposture/v1/org_policy_config.proto"; 21 22option go_package = "cloud.google.com/go/securityposture/apiv1/securityposturepb;securityposturepb"; 23option java_multiple_files = true; 24option java_outer_classname = "OrgPolicyConstraintsProto"; 25option java_package = "com.google.cloud.securityposture.v1"; 26 27// Message for Org Policy Canned Constraint. 28message OrgPolicyConstraint { 29 // Required. Org Policy Canned Constraint id. 30 string canned_constraint_id = 1 [(google.api.field_behavior) = REQUIRED]; 31 32 // Required. Org PolicySpec rules. 33 repeated PolicyRule policy_rules = 2 [(google.api.field_behavior) = REQUIRED]; 34} 35 36// Message for Org Policy Custom Constraint. 37message OrgPolicyConstraintCustom { 38 // Required. Org Policy Custom Constraint. 39 CustomConstraint custom_constraint = 1 40 [(google.api.field_behavior) = REQUIRED]; 41 42 // Required. Org Policyspec rules. 43 repeated PolicyRule policy_rules = 2 [(google.api.field_behavior) = REQUIRED]; 44} 45