Class V1PolicyRule
java.lang.Object
io.kubernetes.client.openapi.models.V1PolicyRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1PolicyRule
extends Object
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddApiGroupsItem
(String apiGroupsItem) addNonResourceURLsItem
(String nonResourceURLsItem) addResourceNamesItem
(String resourceNamesItem) addResourcesItem
(String resourcesItem) addVerbsItem
(String verbsItem) boolean
static V1PolicyRule
Create an instance of V1PolicyRule given an JSON stringAPIGroups is the name of the APIGroup that contains the resources.NonResourceURLs is a set of partial urls that a user should have access to.ResourceNames is an optional white list of names that the rule applies to.Resources is a list of resources this rule applies to.getVerbs()
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule.int
hashCode()
nonResourceURLs
(List<String> nonResourceURLs) resourceNames
(List<String> resourceNames) void
setApiGroups
(List<String> apiGroups) void
setNonResourceURLs
(List<String> nonResourceURLs) void
setResourceNames
(List<String> resourceNames) void
setResources
(List<String> resources) void
toJson()
Convert an instance of V1PolicyRule 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_NON_RESOURCE_U_R_LS
- See Also:
-
SERIALIZED_NAME_RESOURCE_NAMES
- See Also:
-
SERIALIZED_NAME_RESOURCES
- See Also:
-
SERIALIZED_NAME_VERBS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PolicyRule
public V1PolicyRule()
-
-
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. \"\" represents the core API group and \"*\" represents all API groups.- Returns:
- apiGroups
-
setApiGroups
-
nonResourceURLs
-
addNonResourceURLsItem
-
getNonResourceURLs
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.- Returns:
- nonResourceURLs
-
setNonResourceURLs
-
resourceNames
-
addResourceNamesItem
-
getResourceNames
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.- Returns:
- resourceNames
-
setResourceNames
-
resources
-
addResourcesItem
-
getResources
Resources is a list of resources this rule applies to. '*' represents all resources.- Returns:
- resources
-
setResources
-
verbs
-
addVerbsItem
-
getVerbs
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.- 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 V1PolicyRule
-
fromJson
Create an instance of V1PolicyRule given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1PolicyRule
- Throws:
IOException
- if the JSON string is invalid with respect to V1PolicyRule
-
toJson
Convert an instance of V1PolicyRule to an JSON string- Returns:
- JSON string
-