Class RuleWithOperations
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.admissionregistration.v1beta1.RuleWithOperations
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class RuleWithOperations extends java.lang.Object implements com.marcnuri.yakc.model.Model
RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuleWithOperations.Builder
-
Constructor Summary
Constructors Constructor Description RuleWithOperations()
RuleWithOperations(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> resources, java.lang.String scope)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuleWithOperations.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>
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
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.RuleWithOperations.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
RuleWithOperations
public RuleWithOperations(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> resources, java.lang.String scope)
-
RuleWithOperations
public RuleWithOperations()
-
-
Method Detail
-
builder
public static RuleWithOperations.Builder builder()
-
toBuilder
public RuleWithOperations.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.
-
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.
-
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
-
-