Interface AdmissionRuleOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AdmissionRule, AdmissionRule.Builder

    public interface AdmissionRuleOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getEvaluationModeValue

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

        AdmissionRule.EvaluationMode getEvaluationMode()
         Required. How this admission rule will be evaluated.
         
        .google.cloud.binaryauthorization.v1beta1.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.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The enum numeric value on the wire for enforcementMode.
      • getEnforcementMode

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