Beispiel #1
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();
 }
Beispiel #2
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();
 }
Beispiel #3
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();
 }