Class V1ResourceAttributes
java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceAttributes
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ResourceAttributes
extends Object
ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
fieldSelector
(V1FieldSelectorAttributes fieldSelector) static V1ResourceAttributes
Create an instance of V1ResourceAttributes given an JSON stringGet fieldSelectorgetGroup()
Group is the API Group of the ResourceGet labelSelectorgetName()
Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\".Namespace is the namespace of the action being requested.Resource is one of the existing resource typesSubresource is one of the existing resource typesgetVerb()
Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxyVersion is the API Version of the Resourceint
hashCode()
labelSelector
(V1LabelSelectorAttributes labelSelector) void
setFieldSelector
(V1FieldSelectorAttributes fieldSelector) void
void
setLabelSelector
(V1LabelSelectorAttributes labelSelector) void
void
setNamespace
(String namespace) void
setResource
(String resource) void
setSubresource
(String subresource) void
void
setVersion
(String version) subresource
(String subresource) toJson()
Convert an instance of V1ResourceAttributes to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_FIELD_SELECTOR
- See Also:
-
SERIALIZED_NAME_GROUP
- See Also:
-
SERIALIZED_NAME_LABEL_SELECTOR
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
SERIALIZED_NAME_RESOURCE
- See Also:
-
SERIALIZED_NAME_SUBRESOURCE
- See Also:
-
SERIALIZED_NAME_VERB
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ResourceAttributes
public V1ResourceAttributes()
-
-
Method Details
-
fieldSelector
-
getFieldSelector
Get fieldSelector- Returns:
- fieldSelector
-
setFieldSelector
-
group
-
getGroup
Group is the API Group of the Resource. \"*\" means all.- Returns:
- group
-
setGroup
-
labelSelector
-
getLabelSelector
Get labelSelector- Returns:
- labelSelector
-
setLabelSelector
-
name
-
getName
Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.- Returns:
- name
-
setName
-
namespace
-
getNamespace
Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview- Returns:
- namespace
-
setNamespace
-
resource
-
getResource
Resource is one of the existing resource types. \"*\" means all.- Returns:
- resource
-
setResource
-
subresource
-
getSubresource
Subresource is one of the existing resource types. \"\" means none.- Returns:
- subresource
-
setSubresource
-
verb
-
getVerb
Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.- Returns:
- verb
-
setVerb
-
version
-
getVersion
Version is the API Version of the Resource. \"*\" means all.- Returns:
- version
-
setVersion
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1ResourceAttributes
-
fromJson
Create an instance of V1ResourceAttributes given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ResourceAttributes
- Throws:
IOException
- if the JSON string is invalid with respect to V1ResourceAttributes
-
toJson
Convert an instance of V1ResourceAttributes to an JSON string- Returns:
- JSON string
-