kubernetes_asyncio.client.models.v1_api_resource module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_api_resource.V1APIResource(categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'categories': 'categories', 'group': 'group', 'kind': 'kind', 'name': 'name', 'namespaced': 'namespaced', 'short_names': 'shortNames', 'singular_name': 'singularName', 'storage_version_hash': 'storageVersionHash', 'verbs': 'verbs', 'version': 'version'}
property categories

Gets the categories of this V1APIResource. # noqa: E501

categories is a list of the grouped resources this resource belongs to (e.g. ‘all’) # noqa: E501

Returns:

The categories of this V1APIResource. # noqa: E501

Return type:

list[str]

property group

Gets the group of this V1APIResource. # noqa: E501

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”. # noqa: E501

Returns:

The group of this V1APIResource. # noqa: E501

Return type:

str

property kind

Gets the kind of this V1APIResource. # noqa: E501

kind is the kind for the resource (e.g. ‘Foo’ is the kind for a resource ‘foo’) # noqa: E501

Returns:

The kind of this V1APIResource. # noqa: E501

Return type:

str

property name

Gets the name of this V1APIResource. # noqa: E501

name is the plural name of the resource. # noqa: E501

Returns:

The name of this V1APIResource. # noqa: E501

Return type:

str

property namespaced

Gets the namespaced of this V1APIResource. # noqa: E501

namespaced indicates if a resource is namespaced or not. # noqa: E501

Returns:

The namespaced of this V1APIResource. # noqa: E501

Return type:

bool

openapi_types = {'categories': 'list[str]', 'group': 'str', 'kind': 'str', 'name': 'str', 'namespaced': 'bool', 'short_names': 'list[str]', 'singular_name': 'str', 'storage_version_hash': 'str', 'verbs': 'list[str]', 'version': 'str'}
property short_names

Gets the short_names of this V1APIResource. # noqa: E501

shortNames is a list of suggested short names of the resource. # noqa: E501

Returns:

The short_names of this V1APIResource. # noqa: E501

Return type:

list[str]

property singular_name

Gets the singular_name of this V1APIResource. # noqa: E501

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. # noqa: E501

Returns:

The singular_name of this V1APIResource. # noqa: E501

Return type:

str

property storage_version_hash

Gets the storage_version_hash of this V1APIResource. # noqa: E501

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. # noqa: E501

Returns:

The storage_version_hash of this V1APIResource. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property verbs

Gets the verbs of this V1APIResource. # noqa: E501

verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) # noqa: E501

Returns:

The verbs of this V1APIResource. # noqa: E501

Return type:

list[str]

property version

Gets the version of this V1APIResource. # noqa: E501

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)”. # noqa: E501

Returns:

The version of this V1APIResource. # noqa: E501

Return type:

str