Class V1APIResource
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1APIResource
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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) Add an item to the categories property in a chainable fashion.addshortNamesItem
(String shortNamesItem) Add an item to the shortNames property in a chainable fashion.addverbsItem
(String verbsItem) Add an item to the verbs property in a chainable fashion.categories
(List<@NotNull String> categories) Set categories in a chainable fashion.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.Set group in a chainable fashion.int
hashCode()
Set kind in a chainable fashion.Set name in a chainable fashion.namespaced
(Boolean namespaced) Set namespaced in a chainable fashion.void
setCategories
(List<@NotNull String> categories) Set the categories property valuevoid
Set the group property valuevoid
Set the kind property valuevoid
Set the name property valuevoid
setNamespaced
(Boolean namespaced) Set the namespaced property valuevoid
setShortNames
(List<@NotNull String> shortNames) Set the shortNames property valuevoid
setSingularName
(String singularName) Set the singularName property valuevoid
setStorageVersionHash
(String storageVersionHash) Set the storageVersionHash property valuevoid
Set the verbs property valuevoid
setVersion
(String version) Set the version property valueshortNames
(List<@NotNull String> shortNames) Set shortNames in a chainable fashion.singularName
(String singularName) Set singularName in a chainable fashion.storageVersionHash
(String storageVersionHash) Set storageVersionHash in a chainable fashion.toString()
Set verbs in a chainable fashion.Set version in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_NAMESPACED
- See Also:
-
JSON_PROPERTY_SINGULAR_NAME
- See Also:
-
JSON_PROPERTY_VERBS
- See Also:
-
JSON_PROPERTY_CATEGORIES
- See Also:
-
JSON_PROPERTY_GROUP
- See Also:
-
JSON_PROPERTY_SHORT_NAMES
- See Also:
-
JSON_PROPERTY_STORAGE_VERSION_HASH
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
V1APIResource
-
-
Method Details
-
getKind
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')- Returns:
- the kind property value
-
setKind
Set the kind property value- Parameters:
kind
- property value to set
-
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
getName
name is the plural name of the resource.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
getNamespaced
namespaced indicates if a resource is namespaced or not.- Returns:
- the namespaced property value
-
setNamespaced
Set the namespaced property value- Parameters:
namespaced
- property value to set
-
namespaced
Set namespaced in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
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:
- the singularName property value
-
setSingularName
Set the singularName property value- Parameters:
singularName
- property value to set
-
singularName
Set singularName in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
getVerbs
verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)- 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 V1APIResource for chaining.
-
addverbsItem
Add an item to the verbs property in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
getCategories
categories is a list of the grouped resources this resource belongs to (e.g. 'all')- Returns:
- the categories property value
-
setCategories
Set the categories property value- Parameters:
categories
- property value to set
-
categories
Set categories in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
addcategoriesItem
Add an item to the categories property in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
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:
- the group property value
-
setGroup
Set the group property value- Parameters:
group
- property value to set
-
group
Set group in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
getShortNames
shortNames is a list of suggested short names of the resource.- Returns:
- the shortNames property value
-
setShortNames
Set the shortNames property value- Parameters:
shortNames
- property value to set
-
shortNames
Set shortNames in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
addshortNamesItem
Add an item to the shortNames property in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
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:
- the storageVersionHash property value
-
setStorageVersionHash
Set the storageVersionHash property value- Parameters:
storageVersionHash
- property value to set
-
storageVersionHash
Set storageVersionHash in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
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:
- the version property value
-
setVersion
Set the version property value- Parameters:
version
- property value to set
-
version
Set version in a chainable fashion.- Returns:
- The same instance of V1APIResource for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-