Class V1ResourceRule
java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1ResourceRule
extends Object
ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddApiGroupsItem
(String apiGroupsItem) addResourceNamesItem
(String resourceNamesItem) addResourcesItem
(String resourcesItem) addVerbsItem
(String verbsItem) boolean
static V1ResourceRule
Create an instance of V1ResourceRule given an JSON stringAPIGroups is the name of the APIGroup that contains the resources.ResourceNames is an optional white list of names that the rule applies to.Resources is a list of resources this rule applies to.getVerbs()
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.int
hashCode()
resourceNames
(List<String> resourceNames) void
setApiGroups
(List<String> apiGroups) void
setResourceNames
(List<String> resourceNames) void
setResources
(List<String> resources) void
toJson()
Convert an instance of V1ResourceRule to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_GROUPS
- See Also:
-
SERIALIZED_NAME_RESOURCE_NAMES
- See Also:
-
SERIALIZED_NAME_RESOURCES
- See Also:
-
SERIALIZED_NAME_VERBS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ResourceRule
public V1ResourceRule()
-
-
Method Details
-
apiGroups
-
addApiGroupsItem
-
getApiGroups
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.- Returns:
- apiGroups
-
setApiGroups
-
resourceNames
-
addResourceNamesItem
-
getResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.- Returns:
- resourceNames
-
setResourceNames
-
resources
-
addResourcesItem
-
getResources
Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.- Returns:
- resources
-
setResources
-
verbs
-
addVerbsItem
-
getVerbs
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.- Returns:
- verbs
-
setVerbs
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1ResourceRule
-
fromJson
Create an instance of V1ResourceRule given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ResourceRule
- Throws:
IOException
- if the JSON string is invalid with respect to V1ResourceRule
-
toJson
Convert an instance of V1ResourceRule to an JSON string- Returns:
- JSON string
-