Class NamedRuleWithOperations
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class NamedRuleWithOperations extends java.lang.Object implements com.marcnuri.yakc.model.Model
NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NamedRuleWithOperations.Builder
-
Constructor Summary
Constructors Constructor Description NamedRuleWithOperations()
NamedRuleWithOperations(java.util.List<java.lang.String> apiGroups, java.util.List<java.lang.String> apiVersions, java.util.List<java.lang.String> operations, java.util.List<java.lang.String> resourceNames, java.util.List<java.lang.String> resources, java.lang.String scope)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamedRuleWithOperations.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getApiGroups()
APIGroups is the API groups the resources belong to.java.util.List<java.lang.String>
getApiVersions()
APIVersions is the API versions the resources belong to.java.util.List<java.lang.String>
getOperations()
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added.java.util.List<java.lang.String>
getResourceNames()
ResourceNames is an optional white list of names that the rule applies to.java.util.List<java.lang.String>
getResources()
Resources is a list of resources this rule applies to.java.lang.String
getScope()
scope specifies the scope of this rule.int
hashCode()
void
setApiGroups(java.util.List<java.lang.String> apiGroups)
APIGroups is the API groups the resources belong to.void
setApiVersions(java.util.List<java.lang.String> apiVersions)
APIVersions is the API versions the resources belong to.void
setOperations(java.util.List<java.lang.String> operations)
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added.void
setResourceNames(java.util.List<java.lang.String> resourceNames)
ResourceNames is an optional white list of names that the rule applies to.void
setResources(java.util.List<java.lang.String> resources)
Resources is a list of resources this rule applies to.void
setScope(java.lang.String scope)
scope specifies the scope of this rule.NamedRuleWithOperations.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
NamedRuleWithOperations
public NamedRuleWithOperations(java.util.List<java.lang.String> apiGroups, java.util.List<java.lang.String> apiVersions, java.util.List<java.lang.String> operations, java.util.List<java.lang.String> resourceNames, java.util.List<java.lang.String> resources, java.lang.String scope)
-
NamedRuleWithOperations
public NamedRuleWithOperations()
-
-
Method Detail
-
builder
public static NamedRuleWithOperations.Builder builder()
-
toBuilder
public NamedRuleWithOperations.Builder toBuilder()
-
getApiGroups
public java.util.List<java.lang.String> getApiGroups()
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
-
getApiVersions
public java.util.List<java.lang.String> getApiVersions()
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
-
getOperations
public java.util.List<java.lang.String> getOperations()
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
-
getResourceNames
public java.util.List<java.lang.String> getResourceNames()
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
-
getResources
public java.util.List<java.lang.String> getResources()
Resources is a list of resources this rule applies to.For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
If wildcard is present, the validation rule will ensure resources do not overlap with each other.
Depending on the enclosing object, subresources might not be allowed. Required.
-
getScope
public java.lang.String getScope()
scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
-
setApiGroups
public void setApiGroups(java.util.List<java.lang.String> apiGroups)
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
-
setApiVersions
public void setApiVersions(java.util.List<java.lang.String> apiVersions)
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
-
setOperations
public void setOperations(java.util.List<java.lang.String> operations)
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
-
setResourceNames
public void setResourceNames(java.util.List<java.lang.String> resourceNames)
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
-
setResources
public void setResources(java.util.List<java.lang.String> resources)
Resources is a list of resources this rule applies to.For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
If wildcard is present, the validation rule will ensure resources do not overlap with each other.
Depending on the enclosing object, subresources might not be allowed. Required.
-
setScope
public void setScope(java.lang.String scope)
scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-