Class V1beta2ResourcePolicyRule
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1beta2ResourcePolicyRule
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1beta2ResourcePolicyRule
extends Object
ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddapiGroupsItem
(String apiGroupsItem) Add an item to the apiGroups property in a chainable fashion.addnamespacesItem
(String namespacesItem) Add an item to the namespaces property in a chainable fashion.addresourcesItem
(String resourcesItem) Add an item to the resources property in a chainable fashion.addverbsItem
(String verbsItem) Add an item to the verbs property in a chainable fashion.Set apiGroups in a chainable fashion.clusterScope
(Boolean clusterScope) Set clusterScope in a chainable fashion.boolean
`apiGroups` is a list of matching API groups and may not be empty.`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces).`namespaces` is a list of target namespaces that restricts matches.`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource.getVerbs()
`verbs` is a list of matching verbs and may not be empty.int
hashCode()
namespaces
(List<@NotNull String> namespaces) Set namespaces in a chainable fashion.Set resources in a chainable fashion.void
setApiGroups
(List<@NotNull String> apiGroups) Set the apiGroups property valuevoid
setClusterScope
(Boolean clusterScope) Set the clusterScope property valuevoid
setNamespaces
(List<@NotNull String> namespaces) Set the namespaces property valuevoid
setResources
(List<@NotNull String> resources) Set the resources property valuevoid
Set the verbs property valuetoString()
Set verbs in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_API_GROUPS
- See Also:
-
JSON_PROPERTY_RESOURCES
- See Also:
-
JSON_PROPERTY_VERBS
- See Also:
-
JSON_PROPERTY_CLUSTER_SCOPE
- See Also:
-
JSON_PROPERTY_NAMESPACES
- See Also:
-
-
Constructor Details
-
V1beta2ResourcePolicyRule
-
-
Method Details
-
getApiGroups
`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.- Returns:
- the apiGroups property value
-
setApiGroups
Set the apiGroups property value- Parameters:
apiGroups
- property value to set
-
apiGroups
Set apiGroups in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
addapiGroupsItem
Add an item to the apiGroups property in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
getResources
`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.- Returns:
- the resources property value
-
setResources
Set the resources property value- Parameters:
resources
- property value to set
-
resources
Set resources in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
addresourcesItem
Add an item to the resources property in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
getVerbs
`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.- Returns:
- the verbs property value
-
setVerbs
Set the verbs property value- Parameters:
verbs
- property value to set
-
verbs
Set verbs in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
addverbsItem
Add an item to the verbs property in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
getClusterScope
`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.- Returns:
- the clusterScope property value
-
setClusterScope
Set the clusterScope property value- Parameters:
clusterScope
- property value to set
-
clusterScope
Set clusterScope in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
getNamespaces
`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.- Returns:
- the namespaces property value
-
setNamespaces
Set the namespaces property value- Parameters:
namespaces
- property value to set
-
namespaces
Set namespaces in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
addnamespacesItem
Add an item to the namespaces property in a chainable fashion.- Returns:
- The same instance of V1beta2ResourcePolicyRule for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-