Esempio n. 1
0
 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["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["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),
     }
Esempio n. 5
0
 def __init__(
     self,
     items: typing.List["EndpointSlice"] = None,
     metadata: "ListMeta" = None,
 ):
     """Create EndpointSliceList instance."""
     super(EndpointSliceList, self).__init__(api_version="discovery/v1",
                                             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),
     }
Esempio n. 6
0
 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),
     }
Esempio n. 7
0
 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),
     }
Esempio n. 8
0
 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),
     }
Esempio n. 9
0
 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),
     }
Esempio n. 10
0
 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["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),
     }