Пример #1
0
 /// <summary>
 /// Initializes a new instance of the V1NodeConfigSource class.
 /// </summary>
 /// <param name="apiVersion">APIVersion defines the versioned schema of
 /// this representation of an object. Servers should convert recognized
 /// schemas to the latest internal value, and may reject unrecognized
 /// values. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param>
 /// <param name="kind">Kind is a string value representing the REST
 /// resource this object represents. Servers may infer this from the
 /// endpoint the client submits requests to. Cannot be updated. In
 /// CamelCase. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
 public V1NodeConfigSource(string apiVersion = default(string), V1ObjectReference configMapRef = default(V1ObjectReference), string kind = default(string))
 {
     ApiVersion   = apiVersion;
     ConfigMapRef = configMapRef;
     Kind         = kind;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the V1PersistentVolumeSpec class.
 /// </summary>
 /// <param name="accessModes">AccessModes contains all ways the volume
 /// can be mounted. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes</param>
 /// <param name="awsElasticBlockStore">AWSElasticBlockStore represents
 /// an AWS Disk resource that is attached to a kubelet's host machine
 /// and then exposed to the pod. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore</param>
 /// <param name="azureDisk">AzureDisk represents an Azure Data Disk
 /// mount on the host and bind mount to the pod.</param>
 /// <param name="azureFile">AzureFile represents an Azure File Service
 /// mount on the host and bind mount to the pod.</param>
 /// <param name="capacity">A description of the persistent volume's
 /// resources and capacity. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity</param>
 /// <param name="cephfs">CephFS represents a Ceph FS mount on the host
 /// that shares a pod's lifetime</param>
 /// <param name="cinder">Cinder represents a cinder volume attached and
 /// mounted on kubelets host machine More info:
 /// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
 /// <param name="claimRef">ClaimRef is part of a bi-directional binding
 /// between PersistentVolume and PersistentVolumeClaim. Expected to be
 /// non-nil when bound. claim.VolumeName is the authoritative bind
 /// between PV and PVC. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding</param>
 /// <param name="fc">FC represents a Fibre Channel resource that is
 /// attached to a kubelet's host machine and then exposed to the
 /// pod.</param>
 /// <param name="flexVolume">FlexVolume represents a generic volume
 /// resource that is provisioned/attached using an exec based plugin.
 /// This is an alpha feature and may change in future.</param>
 /// <param name="flocker">Flocker represents a Flocker volume attached
 /// to a kubelet's host machine and exposed to the pod for its usage.
 /// This depends on the Flocker control service being running</param>
 /// <param name="gcePersistentDisk">GCEPersistentDisk represents a GCE
 /// Disk resource that is attached to a kubelet's host machine and then
 /// exposed to the pod. Provisioned by an admin. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk</param>
 /// <param name="glusterfs">Glusterfs represents a Glusterfs volume
 /// that is attached to a host and exposed to the pod. Provisioned by
 /// an admin. More info:
 /// https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md</param>
 /// <param name="hostPath">HostPath represents a directory on the host.
 /// Provisioned by a developer or tester. This is useful for
 /// single-node development and testing only! On-host storage is not
 /// supported in any way and WILL NOT WORK in a multi-node cluster.
 /// More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#hostpath</param>
 /// <param name="iscsi">ISCSI represents an ISCSI Disk resource that is
 /// attached to a kubelet's host machine and then exposed to the pod.
 /// Provisioned by an admin.</param>
 /// <param name="local">Local represents directly-attached storage with
 /// node affinity</param>
 /// <param name="mountOptions">A list of mount options, e.g. ["ro",
 /// "soft"]. Not validated - mount will simply fail if one is invalid.
 /// More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options</param>
 /// <param name="nfs">NFS represents an NFS mount on the host.
 /// Provisioned by an admin. More info:
 /// https://kubernetes.io/docs/concepts/storage/volumes#nfs</param>
 /// <param name="persistentVolumeReclaimPolicy">What happens to a
 /// persistent volume when released from its claim. Valid options are
 /// Retain (default) and Recycle. Recycling must be supported by the
 /// volume plugin underlying this persistent volume. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming</param>
 /// <param name="photonPersistentDisk">PhotonPersistentDisk represents
 /// a PhotonController persistent disk attached and mounted on kubelets
 /// host machine</param>
 /// <param name="portworxVolume">PortworxVolume represents a portworx
 /// volume attached and mounted on kubelets host machine</param>
 /// <param name="quobyte">Quobyte represents a Quobyte mount on the
 /// host that shares a pod's lifetime</param>
 /// <param name="rbd">RBD represents a Rados Block Device mount on the
 /// host that shares a pod's lifetime. More info:
 /// https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md</param>
 /// <param name="scaleIO">ScaleIO represents a ScaleIO persistent
 /// volume attached and mounted on Kubernetes nodes.</param>
 /// <param name="storageClassName">Name of StorageClass to which this
 /// persistent volume belongs. Empty value means that this volume does
 /// not belong to any StorageClass.</param>
 /// <param name="storageos">StorageOS represents a StorageOS volume
 /// that is attached to the kubelet's host machine and mounted into the
 /// pod More info:
 /// https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md</param>
 /// <param name="vsphereVolume">VsphereVolume represents a vSphere
 /// volume attached and mounted on kubelets host machine</param>
 public V1PersistentVolumeSpec(IList <string> accessModes = default(IList <string>), V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = default(V1AWSElasticBlockStoreVolumeSource), V1AzureDiskVolumeSource azureDisk = default(V1AzureDiskVolumeSource), V1AzureFilePersistentVolumeSource azureFile = default(V1AzureFilePersistentVolumeSource), IDictionary <string, ResourceQuantity> capacity = default(IDictionary <string, ResourceQuantity>), V1CephFSPersistentVolumeSource cephfs = default(V1CephFSPersistentVolumeSource), V1CinderVolumeSource cinder = default(V1CinderVolumeSource), V1ObjectReference claimRef = default(V1ObjectReference), V1FCVolumeSource fc = default(V1FCVolumeSource), V1FlexVolumeSource flexVolume = default(V1FlexVolumeSource), V1FlockerVolumeSource flocker = default(V1FlockerVolumeSource), V1GCEPersistentDiskVolumeSource gcePersistentDisk = default(V1GCEPersistentDiskVolumeSource), V1GlusterfsVolumeSource glusterfs = default(V1GlusterfsVolumeSource), V1HostPathVolumeSource hostPath = default(V1HostPathVolumeSource), V1ISCSIVolumeSource iscsi = default(V1ISCSIVolumeSource), V1LocalVolumeSource local = default(V1LocalVolumeSource), IList <string> mountOptions = default(IList <string>), V1NFSVolumeSource nfs = default(V1NFSVolumeSource), string persistentVolumeReclaimPolicy = default(string), V1PhotonPersistentDiskVolumeSource photonPersistentDisk = default(V1PhotonPersistentDiskVolumeSource), V1PortworxVolumeSource portworxVolume = default(V1PortworxVolumeSource), V1QuobyteVolumeSource quobyte = default(V1QuobyteVolumeSource), V1RBDVolumeSource rbd = default(V1RBDVolumeSource), V1ScaleIOPersistentVolumeSource scaleIO = default(V1ScaleIOPersistentVolumeSource), string storageClassName = default(string), V1StorageOSPersistentVolumeSource storageos = default(V1StorageOSPersistentVolumeSource), V1VsphereVirtualDiskVolumeSource vsphereVolume = default(V1VsphereVirtualDiskVolumeSource))
 {
     AccessModes          = accessModes;
     AwsElasticBlockStore = awsElasticBlockStore;
     AzureDisk            = azureDisk;
     AzureFile            = azureFile;
     Capacity             = capacity;
     Cephfs                        = cephfs;
     Cinder                        = cinder;
     ClaimRef                      = claimRef;
     Fc                            = fc;
     FlexVolume                    = flexVolume;
     Flocker                       = flocker;
     GcePersistentDisk             = gcePersistentDisk;
     Glusterfs                     = glusterfs;
     HostPath                      = hostPath;
     Iscsi                         = iscsi;
     Local                         = local;
     MountOptions                  = mountOptions;
     Nfs                           = nfs;
     PersistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy;
     PhotonPersistentDisk          = photonPersistentDisk;
     PortworxVolume                = portworxVolume;
     Quobyte                       = quobyte;
     Rbd                           = rbd;
     ScaleIO                       = scaleIO;
     StorageClassName              = storageClassName;
     Storageos                     = storageos;
     VsphereVolume                 = vsphereVolume;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V1EndpointAddress class.
 /// </summary>
 /// <param name="ip">The IP of this endpoint. May not be loopback
 /// (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast
 /// ((224.0.0.0/24). IPv6 is also accepted but not fully supported on
 /// all platforms. Also, certain kubernetes components, like
 /// kube-proxy, are not IPv6 ready.</param>
 /// <param name="hostname">The Hostname of this endpoint</param>
 /// <param name="nodeName">Optional: Node hosting this endpoint. This
 /// can be used to determine endpoints local to a node.</param>
 /// <param name="targetRef">Reference to object providing the
 /// endpoint.</param>
 public V1EndpointAddress(string ip, string hostname = default(string), string nodeName = default(string), V1ObjectReference targetRef = default(V1ObjectReference))
 {
     Hostname  = hostname;
     Ip        = ip;
     NodeName  = nodeName;
     TargetRef = targetRef;
     CustomInit();
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the V1Binding class.
 /// </summary>
 /// <param name="target">The target object that you want to bind to the
 /// standard object.</param>
 /// <param name="apiVersion">APIVersion defines the versioned schema of
 /// this representation of an object. Servers should convert recognized
 /// schemas to the latest internal value, and may reject unrecognized
 /// values. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param>
 /// <param name="kind">Kind is a string value representing the REST
 /// resource this object represents. Servers may infer this from the
 /// endpoint the client submits requests to. Cannot be updated. In
 /// CamelCase. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
 /// <param name="metadata">Standard object's metadata. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
 public V1Binding(V1ObjectReference target, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
 {
     ApiVersion = apiVersion;
     Kind       = kind;
     Metadata   = metadata;
     Target     = target;
     CustomInit();
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the V1beta1Endpoint class.
 /// </summary>
 /// <param name="addresses">addresses of this endpoint. The contents of
 /// this field are interpreted according to the corresponding
 /// EndpointSlice addressType field. Consumers must handle different
 /// types of addresses in the context of their own capabilities. This
 /// must contain at least one address but no more than 100.</param>
 /// <param name="conditions">conditions contains information about the
 /// current status of the endpoint.</param>
 /// <param name="hostname">hostname of this endpoint. This field may be
 /// used by consumers of endpoints to distinguish endpoints from each
 /// other (e.g. in DNS names). Multiple endpoints which use the same
 /// hostname should be considered fungible (e.g. multiple A values in
 /// DNS). Must pass DNS Label (RFC 1123) validation.</param>
 /// <param name="targetRef">targetRef is a reference to a Kubernetes
 /// object that represents this endpoint.</param>
 /// <param name="topology">topology contains arbitrary topology
 /// information associated with the endpoint. These key/value pairs
 /// must conform with the label format.
 /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
 /// Topology may include a maximum of 16 key/value pairs. This
 /// includes, but is not limited to the following well known keys: *
 /// kubernetes.io/hostname: the value indicates the hostname of the
 /// node
 /// where the endpoint is located. This should match the corresponding
 /// node label.
 /// * topology.kubernetes.io/zone: the value indicates the zone where
 /// the
 /// endpoint is located. This should match the corresponding node
 /// label.
 /// * topology.kubernetes.io/region: the value indicates the region
 /// where the
 /// endpoint is located. This should match the corresponding node
 /// label.</param>
 public V1beta1Endpoint(IList <string> addresses, V1beta1EndpointConditions conditions = default(V1beta1EndpointConditions), string hostname = default(string), V1ObjectReference targetRef = default(V1ObjectReference), IDictionary <string, string> topology = default(IDictionary <string, string>))
 {
     Addresses  = addresses;
     Conditions = conditions;
     Hostname   = hostname;
     TargetRef  = targetRef;
     Topology   = topology;
     CustomInit();
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the V1StorageOSPersistentVolumeSource
 /// class.
 /// </summary>
 /// <param name="fsType">Filesystem type to mount. Must be a filesystem
 /// type supported by the host operating system. Ex. "ext4", "xfs",
 /// "ntfs". Implicitly inferred to be "ext4" if unspecified.</param>
 /// <param name="readOnlyProperty">Defaults to false (read/write).
 /// ReadOnly here will force the ReadOnly setting in
 /// VolumeMounts.</param>
 /// <param name="secretRef">SecretRef specifies the secret to use for
 /// obtaining the StorageOS API credentials.  If not specified, default
 /// values will be attempted.</param>
 /// <param name="volumeName">VolumeName is the human-readable name of
 /// the StorageOS volume.  Volume names are only unique within a
 /// namespace.</param>
 /// <param name="volumeNamespace">VolumeNamespace specifies the scope
 /// of the volume within StorageOS.  If no namespace is specified then
 /// the Pod's namespace will be used.  This allows the Kubernetes name
 /// scoping to be mirrored within StorageOS for tighter integration.
 /// Set VolumeName to any name to override the default behaviour. Set
 /// to "default" if you are not using namespaces within StorageOS.
 /// Namespaces that do not pre-exist within StorageOS will be
 /// created.</param>
 public V1StorageOSPersistentVolumeSource(string fsType = default(string), bool?readOnlyProperty = default(bool?), V1ObjectReference secretRef = default(V1ObjectReference), string volumeName = default(string), string volumeNamespace = default(string))
 {
     FsType           = fsType;
     ReadOnlyProperty = readOnlyProperty;
     SecretRef        = secretRef;
     VolumeName       = volumeName;
     VolumeNamespace  = volumeNamespace;
     CustomInit();
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the V1Endpoint class.
 /// </summary>
 /// <param name="addresses">addresses of this endpoint. The contents of
 /// this field are interpreted according to the corresponding
 /// EndpointSlice addressType field. Consumers must handle different
 /// types of addresses in the context of their own capabilities. This
 /// must contain at least one address but no more than 100.</param>
 /// <param name="conditions">conditions contains information about the
 /// current status of the endpoint.</param>
 /// <param name="deprecatedTopology">deprecatedTopology contains
 /// topology information part of the v1beta1 API. This field is
 /// deprecated, and will be removed when the v1beta1 API is removed (no
 /// sooner than kubernetes v1.24).  While this field can hold values,
 /// it is not writable through the v1 API, and any attempts to write to
 /// it will be silently ignored. Topology information can be found in
 /// the zone and nodeName fields instead.</param>
 /// <param name="hints">hints contains information associated with how
 /// an endpoint should be consumed.</param>
 /// <param name="hostname">hostname of this endpoint. This field may be
 /// used by consumers of endpoints to distinguish endpoints from each
 /// other (e.g. in DNS names). Multiple endpoints which use the same
 /// hostname should be considered fungible (e.g. multiple A values in
 /// DNS). Must be lowercase and pass DNS Label (RFC 1123)
 /// validation.</param>
 /// <param name="nodeName">nodeName represents the name of the Node
 /// hosting this endpoint. This can be used to determine endpoints
 /// local to a Node. This field can be enabled with the
 /// EndpointSliceNodeName feature gate.</param>
 /// <param name="targetRef">targetRef is a reference to a Kubernetes
 /// object that represents this endpoint.</param>
 /// <param name="zone">zone is the name of the Zone this endpoint
 /// exists in.</param>
 public V1Endpoint(IList <string> addresses, V1EndpointConditions conditions = default(V1EndpointConditions), IDictionary <string, string> deprecatedTopology = default(IDictionary <string, string>), V1EndpointHints hints = default(V1EndpointHints), string hostname = default(string), string nodeName = default(string), V1ObjectReference targetRef = default(V1ObjectReference), string zone = default(string))
 {
     Addresses          = addresses;
     Conditions         = conditions;
     DeprecatedTopology = deprecatedTopology;
     Hints     = hints;
     Hostname  = hostname;
     NodeName  = nodeName;
     TargetRef = targetRef;
     Zone      = zone;
     CustomInit();
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the V1Event class.
 /// </summary>
 /// <param name="involvedObject">The object that this event is
 /// about.</param>
 /// <param name="metadata">Standard object's metadata. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
 /// <param name="apiVersion">APIVersion defines the versioned schema of
 /// this representation of an object. Servers should convert recognized
 /// schemas to the latest internal value, and may reject unrecognized
 /// values. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources</param>
 /// <param name="count">The number of times this event has
 /// occurred.</param>
 /// <param name="firstTimestamp">The time at which the event was first
 /// recorded. (Time of server receipt is in TypeMeta.)</param>
 /// <param name="kind">Kind is a string value representing the REST
 /// resource this object represents. Servers may infer this from the
 /// endpoint the client submits requests to. Cannot be updated. In
 /// CamelCase. More info:
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
 /// <param name="lastTimestamp">The time at which the most recent
 /// occurrence of this event was recorded.</param>
 /// <param name="message">A human-readable description of the status of
 /// this operation.</param>
 /// <param name="reason">This should be a short, machine understandable
 /// string that gives the reason for the transition into the object's
 /// current status.</param>
 /// <param name="source">The component reporting this event. Should be
 /// a short machine understandable string.</param>
 /// <param name="type">Type of this event (Normal, Warning), new types
 /// could be added in the future</param>
 public V1Event(V1ObjectReference involvedObject, V1ObjectMeta metadata, string apiVersion = default(string), int?count = default(int?), System.DateTime?firstTimestamp = default(System.DateTime?), string kind = default(string), System.DateTime?lastTimestamp = default(System.DateTime?), string message = default(string), string reason = default(string), V1EventSource source = default(V1EventSource), string type = default(string))
 {
     ApiVersion     = apiVersion;
     Count          = count;
     FirstTimestamp = firstTimestamp;
     InvolvedObject = involvedObject;
     Kind           = kind;
     LastTimestamp  = lastTimestamp;
     Message        = message;
     Metadata       = metadata;
     Reason         = reason;
     Source         = source;
     Type           = type;
     CustomInit();
 }
Пример #9
0
        /// <summary>Determines whether an object reference references the given object.</summary>
        /// <param name="objref">the object reference<see cref="V1ObjectReference"/></param>
        /// <param name="obj">the object meta<see cref="V1ObjectMeta"/></param>
        /// <returns>true if the object reference references the given object.</returns>
        public static bool Matches(this V1ObjectReference objref, IKubernetesObject <V1ObjectMeta> obj)
        {
            if (objref == null)
            {
                throw new ArgumentNullException(nameof(objref));
            }

            if (obj == null)
            {
                throw new ArgumentNullException(nameof(obj));
            }

            return(objref.ApiVersion == obj.ApiVersion && objref.Kind == obj.Kind && objref.Name == obj.Name() &&
                   objref.Uid == obj.Uid() &&
                   objref.NamespaceProperty == obj.Namespace());
        }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the V1beta1Event class.
 /// </summary>
 /// <param name="eventTime">eventTime is the time when this Event was
 /// first observed. It is required.</param>
 /// <param name="action">action is what action was taken/failed
 /// regarding to the regarding object. It is machine-readable. This
 /// field can have at most 128 characters.</param>
 /// <param name="apiVersion">APIVersion defines the versioned schema of
 /// this representation of an object. Servers should convert recognized
 /// schemas to the latest internal value, and may reject unrecognized
 /// values. More info:
 /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
 /// <param name="deprecatedCount">deprecatedCount is the deprecated
 /// field assuring backward compatibility with core.v1 Event
 /// type.</param>
 /// <param name="deprecatedFirstTimestamp">deprecatedFirstTimestamp is
 /// the deprecated field assuring backward compatibility with core.v1
 /// Event type.</param>
 /// <param name="deprecatedLastTimestamp">deprecatedLastTimestamp is
 /// the deprecated field assuring backward compatibility with core.v1
 /// Event type.</param>
 /// <param name="deprecatedSource">deprecatedSource is the deprecated
 /// field assuring backward compatibility with core.v1 Event
 /// type.</param>
 /// <param name="kind">Kind is a string value representing the REST
 /// resource this object represents. Servers may infer this from the
 /// endpoint the client submits requests to. Cannot be updated. In
 /// CamelCase. More info:
 /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
 /// <param name="note">note is a human-readable description of the
 /// status of this operation. Maximal length of the note is 1kB, but
 /// libraries should be prepared to handle values up to 64kB.</param>
 /// <param name="reason">reason is why the action was taken. It is
 /// human-readable. This field can have at most 128 characters.</param>
 /// <param name="regarding">regarding contains the object this Event is
 /// about. In most cases it's an Object reporting controller
 /// implements, e.g. ReplicaSetController implements ReplicaSets and
 /// this event is emitted because it acts on some changes in a
 /// ReplicaSet object.</param>
 /// <param name="related">related is the optional secondary object for
 /// more complex actions. E.g. when regarding object triggers a
 /// creation or deletion of related object.</param>
 /// <param name="reportingController">reportingController is the name
 /// of the controller that emitted this Event, e.g.
 /// `kubernetes.io/kubelet`. This field cannot be empty for new
 /// Events.</param>
 /// <param name="reportingInstance">reportingInstance is the ID of the
 /// controller instance, e.g. `kubelet-xyzf`. This field cannot be
 /// empty for new Events and it can have at most 128
 /// characters.</param>
 /// <param name="series">series is data about the Event series this
 /// event represents or nil if it's a singleton Event.</param>
 /// <param name="type">type is the type of this event (Normal,
 /// Warning), new types could be added in the future. It is
 /// machine-readable.</param>
 public V1beta1Event(System.DateTime eventTime, V1ObjectMeta metadata, string action = default(string), string apiVersion = default(string), int?deprecatedCount = default(int?), System.DateTime?deprecatedFirstTimestamp = default(System.DateTime?), System.DateTime?deprecatedLastTimestamp = default(System.DateTime?), V1EventSource deprecatedSource = default(V1EventSource), string kind = default(string), string note = default(string), string reason = default(string), V1ObjectReference regarding = default(V1ObjectReference), V1ObjectReference related = default(V1ObjectReference), string reportingController = default(string), string reportingInstance = default(string), V1beta1EventSeries series = default(V1beta1EventSeries), string type = default(string))
 {
     Action                   = action;
     ApiVersion               = apiVersion;
     DeprecatedCount          = deprecatedCount;
     DeprecatedFirstTimestamp = deprecatedFirstTimestamp;
     DeprecatedLastTimestamp  = deprecatedLastTimestamp;
     DeprecatedSource         = deprecatedSource;
     EventTime                = eventTime;
     Kind                = kind;
     Metadata            = metadata;
     Note                = note;
     Reason              = reason;
     Regarding           = regarding;
     Related             = related;
     ReportingController = reportingController;
     ReportingInstance   = reportingInstance;
     Series              = series;
     Type                = type;
     CustomInit();
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the Corev1Event class.
 /// </summary>
 /// <param name="involvedObject">The object that this event is
 /// about.</param>
 /// <param name="metadata">Standard object's metadata. More info:
 /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</param>
 /// <param name="action">What action was taken/failed regarding to the
 /// Regarding object.</param>
 /// <param name="apiVersion">APIVersion defines the versioned schema of
 /// this representation of an object. Servers should convert recognized
 /// schemas to the latest internal value, and may reject unrecognized
 /// values. More info:
 /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</param>
 /// <param name="count">The number of times this event has
 /// occurred.</param>
 /// <param name="eventTime">Time when this Event was first
 /// observed.</param>
 /// <param name="firstTimestamp">The time at which the event was first
 /// recorded. (Time of server receipt is in TypeMeta.)</param>
 /// <param name="kind">Kind is a string value representing the REST
 /// resource this object represents. Servers may infer this from the
 /// endpoint the client submits requests to. Cannot be updated. In
 /// CamelCase. More info:
 /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</param>
 /// <param name="lastTimestamp">The time at which the most recent
 /// occurrence of this event was recorded.</param>
 /// <param name="message">A human-readable description of the status of
 /// this operation.</param>
 /// <param name="reason">This should be a short, machine understandable
 /// string that gives the reason for the transition into the object's
 /// current status.</param>
 /// <param name="related">Optional secondary object for more complex
 /// actions.</param>
 /// <param name="reportingComponent">Name of the controller that
 /// emitted this Event, e.g. `kubernetes.io/kubelet`.</param>
 /// <param name="reportingInstance">ID of the controller instance, e.g.
 /// `kubelet-xyzf`.</param>
 /// <param name="series">Data about the Event series this event
 /// represents or nil if it's a singleton Event.</param>
 /// <param name="source">The component reporting this event. Should be
 /// a short machine understandable string.</param>
 /// <param name="type">Type of this event (Normal, Warning), new types
 /// could be added in the future</param>
 public Corev1Event(V1ObjectReference involvedObject, V1ObjectMeta metadata, string action = default(string), string apiVersion = default(string), int?count = default(int?), System.DateTime?eventTime = default(System.DateTime?), System.DateTime?firstTimestamp = default(System.DateTime?), string kind = default(string), System.DateTime?lastTimestamp = default(System.DateTime?), string message = default(string), string reason = default(string), V1ObjectReference related = default(V1ObjectReference), string reportingComponent = default(string), string reportingInstance = default(string), Corev1EventSeries series = default(Corev1EventSeries), V1EventSource source = default(V1EventSource), string type = default(string))
 {
     Action             = action;
     ApiVersion         = apiVersion;
     Count              = count;
     EventTime          = eventTime;
     FirstTimestamp     = firstTimestamp;
     InvolvedObject     = involvedObject;
     Kind               = kind;
     LastTimestamp      = lastTimestamp;
     Message            = message;
     Metadata           = metadata;
     Reason             = reason;
     Related            = related;
     ReportingComponent = reportingComponent;
     ReportingInstance  = reportingInstance;
     Series             = series;
     Source             = source;
     Type               = type;
     CustomInit();
 }