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/v1beta1", 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["Lease"] = None, metadata: "ListMeta" = None, ): """Create LeaseList instance.""" super(LeaseList, self).__init__(api_version="coordination/v1", 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["RuntimeClass"] = None, metadata: "ListMeta" = None, ): """Create RuntimeClassList instance.""" super(RuntimeClassList, self).__init__(api_version="node/v1beta1", 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["NetworkPolicy"] = None, metadata: "ListMeta" = None, ): """Create NetworkPolicyList instance.""" super(NetworkPolicyList, self).__init__(api_version="networking/v1", kind="NetworkPolicyList") 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, NetworkPolicy), "kind": (str, None), "metadata": (ListMeta, None), }
def __init__( self, items: typing.List["PodPreset"] = None, metadata: "ListMeta" = None, ): """Create PodPresetList instance.""" super(PodPresetList, self).__init__(api_version="settings/v1alpha1", kind="PodPresetList") 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, PodPreset), "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/v2alpha1", 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["AuditSink"] = None, metadata: "ListMeta" = None, ): """Create AuditSinkList instance.""" super(AuditSinkList, self).__init__(api_version="auditregistration/v1alpha1", kind="AuditSinkList") 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, AuditSink), "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/v1", 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["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), }
def __init__( self, items: typing.List["APIService"] = None, metadata: "ListMeta" = None, ): """Create APIServiceList instance.""" super(APIServiceList, self).__init__( api_version="apiregistration.k8s.io/v1beta1", 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["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), }