Class V1alpha1MatchResources

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1alpha1MatchResources extends Object
MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
  • Field Details

  • Constructor Details

    • V1alpha1MatchResources

      public V1alpha1MatchResources()
  • Method Details

    • getExcludeResourceRules

      public List<@Valid V1alpha1NamedRuleWithOperations> getExcludeResourceRules()
      ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
      Returns:
      the excludeResourceRules property value
    • setExcludeResourceRules

      public void setExcludeResourceRules(List<@Valid V1alpha1NamedRuleWithOperations> excludeResourceRules)
      Set the excludeResourceRules property value
      Parameters:
      excludeResourceRules - property value to set
    • excludeResourceRules

      public V1alpha1MatchResources excludeResourceRules(List<@Valid V1alpha1NamedRuleWithOperations> excludeResourceRules)
      Set excludeResourceRules in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchResources for chaining.
    • addexcludeResourceRulesItem

      public V1alpha1MatchResources addexcludeResourceRulesItem(V1alpha1NamedRuleWithOperations excludeResourceRulesItem)
      Add an item to the excludeResourceRules property in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchResources for chaining.
    • getMatchPolicy

      public String getMatchPolicy()
      matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\"
      Returns:
      the matchPolicy property value
    • setMatchPolicy

      public void setMatchPolicy(String matchPolicy)
      Set the matchPolicy property value
      Parameters:
      matchPolicy - property value to set
    • matchPolicy

      public V1alpha1MatchResources matchPolicy(String matchPolicy)
      Set matchPolicy in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchResources for chaining.
    • getNamespaceSelector

      public V1LabelSelector getNamespaceSelector()
      Returns:
      the namespaceSelector property value
    • setNamespaceSelector

      public void setNamespaceSelector(V1LabelSelector namespaceSelector)
      Set the namespaceSelector property value
      Parameters:
      namespaceSelector - property value to set
    • namespaceSelector

      public V1alpha1MatchResources namespaceSelector(V1LabelSelector namespaceSelector)
      Set namespaceSelector in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchResources for chaining.
    • getObjectSelector

      public V1LabelSelector getObjectSelector()
      Returns:
      the objectSelector property value
    • setObjectSelector

      public void setObjectSelector(V1LabelSelector objectSelector)
      Set the objectSelector property value
      Parameters:
      objectSelector - property value to set
    • objectSelector

      public V1alpha1MatchResources objectSelector(V1LabelSelector objectSelector)
      Set objectSelector in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchResources for chaining.
    • getResourceRules

      public List<@Valid V1alpha1NamedRuleWithOperations> getResourceRules()
      ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
      Returns:
      the resourceRules property value
    • setResourceRules

      public void setResourceRules(List<@Valid V1alpha1NamedRuleWithOperations> resourceRules)
      Set the resourceRules property value
      Parameters:
      resourceRules - property value to set
    • resourceRules

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

      public V1alpha1MatchResources addresourceRulesItem(V1alpha1NamedRuleWithOperations resourceRulesItem)
      Add an item to the resourceRules property in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchResources 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