Interface AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder

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

public static interface AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       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"
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       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"
       
      string name = 1;
      Returns:
      The bytes for name.
    • getResourceTypesList

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

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

      String getResourceTypes(int index)
       The Resource Instance type on which this policy applies to. Format will
       be of the form : "<canonical service name>/<type>" Example:
       * `compute.googleapis.com/Instance`.
       
      repeated string resource_types = 2;
      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 to. Format will
       be of the form : "<canonical service name>/<type>" Example:
       * `compute.googleapis.com/Instance`.
       
      repeated string resource_types = 2;
      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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
      Returns:
      A list containing the methodTypes.
    • getMethodTypesCount

      int getMethodTypesCount()
       All the operations being applied for this constraint.
       
      repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
      Returns:
      The count of methodTypes.
    • getMethodTypes

       All the operations being applied for this constraint.
       
      repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
      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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
      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.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3;
      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()
       Organization Policy condition/expression. For example:
       `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or,
       `resource.management.auto_upgrade == true`
       
      string condition = 4;
      Returns:
      The condition.
    • getConditionBytes

      com.google.protobuf.ByteString getConditionBytes()
       Organization Policy condition/expression. For example:
       `resource.instanceName.matches("[production|test]_.*_(\d)+")'` or,
       `resource.management.auto_upgrade == true`
       
      string condition = 4;
      Returns:
      The bytes for condition.
    • getActionTypeValue

      int getActionTypeValue()
       Allow or deny type.
       
      .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
      Returns:
      The enum numeric value on the wire for actionType.
    • getActionType

       Allow or deny type.
       
      .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5;
      Returns:
      The actionType.
    • getDisplayName

      String getDisplayName()
       One line display name for the UI.
       
      string display_name = 6;
      Returns:
      The displayName.
    • getDisplayNameBytes

      com.google.protobuf.ByteString getDisplayNameBytes()
       One line display name for the UI.
       
      string display_name = 6;
      Returns:
      The bytes for displayName.
    • getDescription

      String getDescription()
       Detailed information about this custom policy constraint.
       
      string description = 7;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       Detailed information about this custom policy constraint.
       
      string description = 7;
      Returns:
      The bytes for description.