Interface Constraint.CustomConstraintDefinitionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Constraint.CustomConstraintDefinition, Constraint.CustomConstraintDefinition.Builder
Enclosing class:
Constraint

public static interface Constraint.CustomConstraintDefinitionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getResourceTypesList

      List<String> getResourceTypesList()
       The resource instance type on which this policy applies. Format will be
       of the form : `<service name>/<type>` Example:
      
       * `compute.googleapis.com/Instance`.
       
      repeated string resource_types = 1;
      Returns:
      A list containing the resourceTypes.
    • getResourceTypesCount

      int getResourceTypesCount()
       The resource instance type on which this policy applies. Format will be
       of the form : `<service name>/<type>` Example:
      
       * `compute.googleapis.com/Instance`.
       
      repeated string resource_types = 1;
      Returns:
      The count of resourceTypes.
    • getResourceTypes

      String getResourceTypes(int index)
       The resource instance type on which this policy applies. Format will be
       of the form : `<service name>/<type>` Example:
      
       * `compute.googleapis.com/Instance`.
       
      repeated string resource_types = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The resourceTypes at the given index.
    • getResourceTypesBytes

      com.google.protobuf.ByteString getResourceTypesBytes(int index)
       The resource instance type on which this policy applies. Format will be
       of the form : `<service name>/<type>` Example:
      
       * `compute.googleapis.com/Instance`.
       
      repeated string resource_types = 1;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resourceTypes at the given index.
    • getMethodTypesList

       All the operations being applied for this constraint.
       
      repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;
      Returns:
      A list containing the methodTypes.
    • getMethodTypesCount

      int getMethodTypesCount()
       All the operations being applied for this constraint.
       
      repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;
      Returns:
      The count of methodTypes.
    • getMethodTypes

       All the operations being applied for this constraint.
       
      repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The methodTypes at the given index.
    • getMethodTypesValueList

      List<Integer> getMethodTypesValueList()
       All the operations being applied for this constraint.
       
      repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;
      Returns:
      A list containing the enum numeric values on the wire for methodTypes.
    • getMethodTypesValue

      int getMethodTypesValue(int index)
       All the operations being applied for this constraint.
       
      repeated .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.MethodType method_types = 2;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of methodTypes at the given index.
    • getCondition

      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 = 3;
      Returns:
      The condition.
    • getConditionBytes

      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 = 3;
      Returns:
      The bytes for condition.
    • getActionTypeValue

      int getActionTypeValue()
       Allow or deny type.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.ActionType action_type = 4;
      Returns:
      The enum numeric value on the wire for actionType.
    • getActionType

       Allow or deny type.
       
      .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.ActionType action_type = 4;
      Returns:
      The actionType.
    • getParametersCount

      int getParametersCount()
       Stores the structure of
       [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter]
       used by the constraint condition. The key of `map` represents the name of
       the parameter.
       
      map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5;
    • containsParameters

      boolean containsParameters(String key)
       Stores the structure of
       [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter]
       used by the constraint condition. The key of `map` represents the name of
       the parameter.
       
      map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5;
    • getParameters

      Deprecated.
      Use getParametersMap() instead.
    • getParametersMap

       Stores the structure of
       [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter]
       used by the constraint condition. The key of `map` represents the name of
       the parameter.
       
      map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5;
    • getParametersOrDefault

       Stores the structure of
       [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter]
       used by the constraint condition. The key of `map` represents the name of
       the parameter.
       
      map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5;
    • getParametersOrThrow

       Stores the structure of
       [`Parameters`][google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter]
       used by the constraint condition. The key of `map` represents the name of
       the parameter.
       
      map<string, .google.cloud.orgpolicy.v2.Constraint.CustomConstraintDefinition.Parameter> parameters = 5;