# generated by https://github.com/puzl-cloud/kubesdk
#   filename:  apis__authentication.k8s.io__v1beta1_openapi.json

from __future__ import annotations

from dataclasses import dataclass, field
from datetime import datetime, timezone
from typing import ClassVar, Set

from kube_models.const import *
from kube_models.loader import *
from kube_models.loader import LazyLoadModel
from kube_models.resource import *

from ...apimachinery.pkg.apis.meta.v1 import ObjectMeta
from .v1 import UserInfo


@dataclass(slots=True, kw_only=True, frozen=True)
class SelfSubjectReviewStatus(LazyLoadModel):
    userInfo: UserInfo | None = None


@dataclass(slots=True, kw_only=True, frozen=True)
class SelfSubjectReview(K8sResource):
    apiVersion: ClassVar[str] = 'authentication.k8s.io/v1beta1'
    kind: ClassVar[str] = 'SelfSubjectReview'
    metadata: ObjectMeta = field(default_factory=ObjectMeta)
    status: SelfSubjectReviewStatus | None = None
    api_path_: ClassVar[str] = 'apis/authentication.k8s.io/v1beta1/selfsubjectreviews'
    plural_: ClassVar[str] = 'selfsubjectreviews'
    is_namespaced_: ClassVar[bool] = False
    group_: ClassVar[Optional[str]] = 'authentication.k8s.io'
