Class V1APIResource
java.lang.Object
io.kubernetes.client.openapi.models.V1APIResource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T21:37:40.170033Z[Etc/UTC]")
public class V1APIResource
extends Object
APIResource specifies the name of a resource and whether it is namespaced.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem
(String categoriesItem) addShortNamesItem
(String shortNamesItem) addVerbsItem
(String verbsItem) categories
(List<String> categories) boolean
categories is a list of the grouped resources this resource belongs to (e.g.getGroup()
group is the preferred group of the resource.getKind()
kind is the kind for the resource (e.g.getName()
name is the plural name of the resource.namespaced indicates if a resource is namespaced or not.shortNames is a list of suggested short names of the resource.singularName is the singular name of the resource.The hash value of the storage version, the version this resource is converted to when written to the data store.getVerbs()
verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)version is the preferred version of the resource.int
hashCode()
namespaced
(Boolean namespaced) void
setCategories
(List<String> categories) void
void
void
void
setNamespaced
(Boolean namespaced) void
setShortNames
(List<String> shortNames) void
setSingularName
(String singularName) void
setStorageVersionHash
(String storageVersionHash) void
void
setVersion
(String version) shortNames
(List<String> shortNames) singularName
(String singularName) storageVersionHash
(String storageVersionHash) toString()
-
Field Details
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
SERIALIZED_NAME_GROUP
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACED
- See Also:
-
SERIALIZED_NAME_SHORT_NAMES
- See Also:
-
SERIALIZED_NAME_SINGULAR_NAME
- See Also:
-
SERIALIZED_NAME_STORAGE_VERSION_HASH
- See Also:
-
SERIALIZED_NAME_VERBS
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
-
Constructor Details
-
V1APIResource
public V1APIResource()
-
-
Method Details
-
categories
-
addCategoriesItem
-
getCategories
categories is a list of the grouped resources this resource belongs to (e.g. 'all')- Returns:
- categories
-
setCategories
-
group
-
getGroup
group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".- Returns:
- group
-
setGroup
-
kind
-
getKind
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')- Returns:
- kind
-
setKind
-
name
-
getName
name is the plural name of the resource.- Returns:
- name
-
setName
-
namespaced
-
getNamespaced
namespaced indicates if a resource is namespaced or not.- Returns:
- namespaced
-
setNamespaced
-
shortNames
-
addShortNamesItem
-
getShortNames
shortNames is a list of suggested short names of the resource.- Returns:
- shortNames
-
setShortNames
-
singularName
-
getSingularName
singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.- Returns:
- singularName
-
setSingularName
-
storageVersionHash
-
getStorageVersionHash
The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.- Returns:
- storageVersionHash
-
setStorageVersionHash
-
verbs
-
addVerbsItem
-
getVerbs
verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)- Returns:
- verbs
-
setVerbs
-
version
-
getVersion
version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".- Returns:
- version
-
setVersion
-
equals
-
hashCode
public int hashCode() -
toString
-