Class V1beta2PolicyRulesWithSubjects

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta2PolicyRulesWithSubjects

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta2PolicyRulesWithSubjects extends Object
PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
  • Field Details

  • Constructor Details

    • V1beta2PolicyRulesWithSubjects

      public V1beta2PolicyRulesWithSubjects(List<@Valid V1beta2Subject> subjects)
  • Method Details

    • getNonResourceRules

      public List<@Valid V1beta2NonResourcePolicyRule> getNonResourceRules()
      `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
      Returns:
      the nonResourceRules property value
    • setNonResourceRules

      public void setNonResourceRules(List<@Valid V1beta2NonResourcePolicyRule> nonResourceRules)
      Set the nonResourceRules property value
    • nonResourceRules

      public V1beta2PolicyRulesWithSubjects nonResourceRules(List<@Valid V1beta2NonResourcePolicyRule> nonResourceRules)
      Set nonResourceRules in a chainable fashion.
      Returns:
      The same instance of V1beta2PolicyRulesWithSubjects for chaining.
    • addnonResourceRulesItem

      public V1beta2PolicyRulesWithSubjects addnonResourceRulesItem(V1beta2NonResourcePolicyRule nonResourceRulesItem)
      Add an item to the nonResourceRules property in a chainable fashion.
      Returns:
      The same instance of V1beta2PolicyRulesWithSubjects for chaining.
    • getResourceRules

      public List<@Valid V1beta2ResourcePolicyRule> getResourceRules()
      `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.
      Returns:
      the resourceRules property value
    • setResourceRules

      public void setResourceRules(List<@Valid V1beta2ResourcePolicyRule> resourceRules)
      Set the resourceRules property value
    • resourceRules

      public V1beta2PolicyRulesWithSubjects resourceRules(List<@Valid V1beta2ResourcePolicyRule> resourceRules)
      Set resourceRules in a chainable fashion.
      Returns:
      The same instance of V1beta2PolicyRulesWithSubjects for chaining.
    • addresourceRulesItem

      public V1beta2PolicyRulesWithSubjects addresourceRulesItem(V1beta2ResourcePolicyRule resourceRulesItem)
      Add an item to the resourceRules property in a chainable fashion.
      Returns:
      The same instance of V1beta2PolicyRulesWithSubjects for chaining.
    • getSubjects

      public List<@Valid V1beta2Subject> getSubjects()
      subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
      Returns:
      the subjects property value
    • setSubjects

      public void setSubjects(List<@Valid V1beta2Subject> subjects)
      Set the subjects property value
    • subjects

      public V1beta2PolicyRulesWithSubjects subjects(List<@Valid V1beta2Subject> subjects)
      Set subjects in a chainable fashion.
      Returns:
      The same instance of V1beta2PolicyRulesWithSubjects for chaining.
    • addsubjectsItem

      public V1beta2PolicyRulesWithSubjects addsubjectsItem(V1beta2Subject subjectsItem)
      Add an item to the subjects property in a chainable fashion.
      Returns:
      The same instance of V1beta2PolicyRulesWithSubjects for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object