Class V1beta3PolicyRulesWithSubjects

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta3PolicyRulesWithSubjects 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

    • V1beta3PolicyRulesWithSubjects

      public V1beta3PolicyRulesWithSubjects(List<@Valid V1beta3Subject> subjects)
  • Method Details

    • getNonResourceRules

      public List<@Valid V1beta3NonResourcePolicyRule> 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 V1beta3NonResourcePolicyRule> nonResourceRules)
      Set the nonResourceRules property value
    • nonResourceRules

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

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

      public List<@Valid V1beta3ResourcePolicyRule> 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 V1beta3ResourcePolicyRule> resourceRules)
      Set the resourceRules property value
    • resourceRules

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

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

      public List<@Valid V1beta3Subject> 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 V1beta3Subject> subjects)
      Set the subjects property value
    • subjects

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

      public V1beta3PolicyRulesWithSubjects addsubjectsItem(V1beta3Subject subjectsItem)
      Add an item to the subjects property in a chainable fashion.
      Returns:
      The same instance of V1beta3PolicyRulesWithSubjects 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