# autogenerated module
from typing import ClassVar

from ..core import resource as res
from ..models import apiextensions_v1 as m_apiextensions_v1


class CustomResourceDefinitionStatus(res.GlobalSubResource, m_apiextensions_v1.CustomResourceDefinition):
    """* **Extends**: ``models.apiextensions_v1.CustomResourceDefinition``
       * **Type**: Global Resource
       * **Accepted client methods**: `get`, `patch`, `replace`
    """
    _api_info = res.ApiInfo(
        resource=res.ResourceDef('apiextensions.k8s.io', 'v1', 'CustomResourceDefinition'),
        parent=res.ResourceDef('apiextensions.k8s.io', 'v1', 'CustomResourceDefinition'),
        plural='customresourcedefinitions',
        verbs=['get', 'patch', 'put'],
        action='status',
    )


class CustomResourceDefinition(res.GlobalResource, m_apiextensions_v1.CustomResourceDefinition):
    """* **Extends**: ``models.apiextensions_v1.CustomResourceDefinition``
       * **Type**: Global Resource
       * **Accepted client methods**: `delete`, `deletecollection`, `get`, `list`, `patch`, `create`, `replace`, `watch`

       **Subresources**:

       * **Status**: ``CustomResourceDefinitionStatus``
    """
    _api_info = res.ApiInfo(
        resource=res.ResourceDef('apiextensions.k8s.io', 'v1', 'CustomResourceDefinition'),
        plural='customresourcedefinitions',
        verbs=['delete', 'deletecollection', 'get', 'list', 'patch', 'post', 'put', 'watch'],
    )

    Status: ClassVar = CustomResourceDefinitionStatus

