Interface Resources.AdmissionRuleOrBuilder

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

public static interface Resources.AdmissionRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getEvaluationModeValue

      int getEvaluationModeValue()
       Required. How this admission rule will be evaluated.
       
      .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for evaluationMode.
    • getEvaluationMode

       Required. How this admission rule will be evaluated.
       
      .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The evaluationMode.
    • getRequireAttestationsByList

      List<String> getRequireAttestationsByList()
       Optional. The resource names of the attestors that must attest to
       a container image, in the format `projects/*/attestors/*`. Each
       attestor must exist before a policy can reference it.  To add an attestor
       to a policy the principal issuing the policy change request must be able
       to read the attestor resource.
      
       Note: this field must be non-empty when the evaluation_mode field specifies
       REQUIRE_ATTESTATION, otherwise it must be empty.
       
      repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the requireAttestationsBy.
    • getRequireAttestationsByCount

      int getRequireAttestationsByCount()
       Optional. The resource names of the attestors that must attest to
       a container image, in the format `projects/*/attestors/*`. Each
       attestor must exist before a policy can reference it.  To add an attestor
       to a policy the principal issuing the policy change request must be able
       to read the attestor resource.
      
       Note: this field must be non-empty when the evaluation_mode field specifies
       REQUIRE_ATTESTATION, otherwise it must be empty.
       
      repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of requireAttestationsBy.
    • getRequireAttestationsBy

      String getRequireAttestationsBy(int index)
       Optional. The resource names of the attestors that must attest to
       a container image, in the format `projects/*/attestors/*`. Each
       attestor must exist before a policy can reference it.  To add an attestor
       to a policy the principal issuing the policy change request must be able
       to read the attestor resource.
      
       Note: this field must be non-empty when the evaluation_mode field specifies
       REQUIRE_ATTESTATION, otherwise it must be empty.
       
      repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The requireAttestationsBy at the given index.
    • getRequireAttestationsByBytes

      com.google.protobuf.ByteString getRequireAttestationsByBytes(int index)
       Optional. The resource names of the attestors that must attest to
       a container image, in the format `projects/*/attestors/*`. Each
       attestor must exist before a policy can reference it.  To add an attestor
       to a policy the principal issuing the policy change request must be able
       to read the attestor resource.
      
       Note: this field must be non-empty when the evaluation_mode field specifies
       REQUIRE_ATTESTATION, otherwise it must be empty.
       
      repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the requireAttestationsBy at the given index.
    • getEnforcementModeValue

      int getEnforcementModeValue()
       Required. The action when a pod creation is denied by the admission rule.
       
      .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for enforcementMode.
    • getEnforcementMode

       Required. The action when a pod creation is denied by the admission rule.
       
      .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enforcementMode.