public interface CustomConstraintOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
CustomConstraint.ActionType |
getActionType()
Allow or deny type.
|
int |
getActionTypeValue()
Allow or deny type.
|
String |
getCondition()
Org policy condition/expression.
|
com.google.protobuf.ByteString |
getConditionBytes()
Org policy condition/expression.
|
String |
getDescription()
Detailed information about this custom policy constraint.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Detailed information about this custom policy constraint.
|
String |
getDisplayName()
One line display name for the UI.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
One line display name for the UI.
|
CustomConstraint.MethodType |
getMethodTypes(int index)
All the operations being applied for this constraint.
|
int |
getMethodTypesCount()
All the operations being applied for this constraint.
|
List<CustomConstraint.MethodType> |
getMethodTypesList()
All the operations being applied for this constraint.
|
int |
getMethodTypesValue(int index)
All the operations being applied for this constraint.
|
List<Integer> |
getMethodTypesValueList()
All the operations being applied for this constraint.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
String |
getResourceTypes(int index)
Immutable.
|
com.google.protobuf.ByteString |
getResourceTypesBytes(int index)
Immutable.
|
int |
getResourceTypesCount()
Immutable.
|
List<String> |
getResourceTypesList()
Immutable.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getName()
Immutable. Name of the constraint. This is unique within the organization.
Format of the name should be
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
The max length is 70 characters and the minimum length is 1. Note that the
prefix `organizations/{organization_id}/customConstraints/` is not counted.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];com.google.protobuf.ByteString getNameBytes()
Immutable. Name of the constraint. This is unique within the organization.
Format of the name should be
* `organizations/{organization_id}/customConstraints/{custom_constraint_id}`
Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms`
The max length is 70 characters and the minimum length is 1. Note that the
prefix `organizations/{organization_id}/customConstraints/` is not counted.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];List<String> getResourceTypesList()
Immutable. The resource instance type on which this policy applies. Format will be of the form : `<canonical service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2 [(.google.api.field_behavior) = IMMUTABLE];int getResourceTypesCount()
Immutable. The resource instance type on which this policy applies. Format will be of the form : `<canonical service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2 [(.google.api.field_behavior) = IMMUTABLE];String getResourceTypes(int index)
Immutable. The resource instance type on which this policy applies. Format will be of the form : `<canonical service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2 [(.google.api.field_behavior) = IMMUTABLE];index - The index of the element to return.com.google.protobuf.ByteString getResourceTypesBytes(int index)
Immutable. The resource instance type on which this policy applies. Format will be of the form : `<canonical service name>/<type>` Example: * `compute.googleapis.com/Instance`.
repeated string resource_types = 2 [(.google.api.field_behavior) = IMMUTABLE];index - The index of the value to return.List<CustomConstraint.MethodType> getMethodTypesList()
All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.CustomConstraint.MethodType method_types = 3;int getMethodTypesCount()
All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.CustomConstraint.MethodType method_types = 3;CustomConstraint.MethodType getMethodTypes(int index)
All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.CustomConstraint.MethodType method_types = 3;index - The index of the element to return.List<Integer> getMethodTypesValueList()
All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.CustomConstraint.MethodType method_types = 3;int getMethodTypesValue(int index)
All the operations being applied for this constraint.
repeated .google.cloud.orgpolicy.v2.CustomConstraint.MethodType method_types = 3;index - The index of the value to return.String getCondition()
Org policy condition/expression. For example:
`resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
`resource.management.auto_upgrade == true`
The max length of the condition is 1000 characters.
string condition = 4;com.google.protobuf.ByteString getConditionBytes()
Org policy condition/expression. For example:
`resource.instanceName.matches("[production|test]_.*_(\d)+")` or,
`resource.management.auto_upgrade == true`
The max length of the condition is 1000 characters.
string condition = 4;int getActionTypeValue()
Allow or deny type.
.google.cloud.orgpolicy.v2.CustomConstraint.ActionType action_type = 5;CustomConstraint.ActionType getActionType()
Allow or deny type.
.google.cloud.orgpolicy.v2.CustomConstraint.ActionType action_type = 5;String getDisplayName()
One line display name for the UI. The max length of the display_name is 200 characters.
string display_name = 6;com.google.protobuf.ByteString getDisplayNameBytes()
One line display name for the UI. The max length of the display_name is 200 characters.
string display_name = 6;String getDescription()
Detailed information about this custom policy constraint. The max length of the description is 2000 characters.
string description = 7;com.google.protobuf.ByteString getDescriptionBytes()
Detailed information about this custom policy constraint. The max length of the description is 2000 characters.
string description = 7;boolean hasUpdateTime()
Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.Timestamp getUpdateTime()
Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Copyright © 2024 Google LLC. All rights reserved.