def metadata(self, value: typing.Union["ListMeta", dict]): """ """ if isinstance(value, dict): value = typing.cast( ListMeta, ListMeta().from_dict(value), ) self._properties["metadata"] = value
def metadata(self, value: typing.Union["ListMeta", dict]): """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig- architecture/api-conventions.md#metadata """ if isinstance(value, dict): value = typing.cast( ListMeta, ListMeta().from_dict(value), ) self._properties["metadata"] = value
def __init__( self, items: typing.List["Event"] = None, metadata: "ListMeta" = None, ): """Create EventList instance.""" super(EventList, self).__init__(api_version="events/v1", kind="EventList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, Event), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["RuntimeClass"] = None, metadata: "ListMeta" = None, ): """Create RuntimeClassList instance.""" super(RuntimeClassList, self).__init__(api_version="node/v1", kind="RuntimeClassList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, RuntimeClass), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["Lease"] = None, metadata: "ListMeta" = None, ): """Create LeaseList instance.""" super(LeaseList, self).__init__(api_version="coordination/v1beta1", kind="LeaseList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, Lease), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["Ingress"] = None, metadata: "ListMeta" = None, ): """Create IngressList instance.""" super(IngressList, self).__init__(api_version="extensions/v1beta1", kind="IngressList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, Ingress), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["CertificateSigningRequest"] = None, metadata: "ListMeta" = None, ): """Create CertificateSigningRequestList instance.""" super(CertificateSigningRequestList, self).__init__(api_version="certificates/v1", kind="CertificateSigningRequestList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, CertificateSigningRequest), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["PriorityClass"] = None, metadata: "ListMeta" = None, ): """Create PriorityClassList instance.""" super(PriorityClassList, self).__init__(api_version="scheduling/v1beta1", kind="PriorityClassList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, PriorityClass), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["CronJob"] = None, metadata: "ListMeta" = None, ): """Create CronJobList instance.""" super(CronJobList, self).__init__( api_version="batch/v1beta1", kind="CronJobList" ) self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, CronJob), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["StorageVersion"] = None, metadata: "ListMeta" = None, ): """Create StorageVersionList instance.""" super(StorageVersionList, self).__init__(api_version="apiserverinternal/v1alpha1", kind="StorageVersionList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, StorageVersion), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["EndpointSlice"] = None, metadata: "ListMeta" = None, ): """Create EndpointSliceList instance.""" super(EndpointSliceList, self).__init__(api_version="discovery/v1beta1", kind="EndpointSliceList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, EndpointSlice), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["ClusterRole"] = None, metadata: "ListMeta" = None, ): """Create ClusterRoleList instance.""" super(ClusterRoleList, self).__init__( api_version="rbac.authorization.k8s.io/v1", kind="ClusterRoleList" ) self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, ClusterRole), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["VolumeAttachment"] = None, metadata: "ListMeta" = None, ): """Create VolumeAttachmentList instance.""" super(VolumeAttachmentList, self).__init__(api_version="storage/v1alpha1", kind="VolumeAttachmentList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, VolumeAttachment), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["CSIStorageCapacity"] = None, metadata: "ListMeta" = None, ): """Create CSIStorageCapacityList instance.""" super(CSIStorageCapacityList, self).__init__(api_version="storage/v1alpha1", kind="CSIStorageCapacityList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, CSIStorageCapacity), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["APIService"] = None, metadata: "ListMeta" = None, ): """Create APIServiceList instance.""" super(APIServiceList, self).__init__( api_version="apiregistration.k8s.io/v1", kind="APIServiceList" ) self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, APIService), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["PodDisruptionBudget"] = None, metadata: "ListMeta" = None, ): """Create PodDisruptionBudgetList instance.""" super(PodDisruptionBudgetList, self).__init__(api_version="policy/v1", kind="PodDisruptionBudgetList") self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, PodDisruptionBudget), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["HorizontalPodAutoscaler"] = None, metadata: "ListMeta" = None, ): """Create HorizontalPodAutoscalerList instance.""" super(HorizontalPodAutoscalerList, self).__init__( api_version="autoscaling/v1", kind="HorizontalPodAutoscalerList" ) self._properties = { "items": items if items is not None else [], "metadata": metadata if metadata is not None else ListMeta(), } self._types = { "apiVersion": (str, None), "items": (list, HorizontalPodAutoscaler), "kind": (str, None), "metadata": (ListMeta, None), }