예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1JobCondition" /> class.
 /// </summary>
 /// <param name="LastProbeTime">Last time the condition was checked..</param>
 /// <param name="LastTransitionTime">Last time the condition transit from one status to another..</param>
 /// <param name="Message">Human readable message indicating details about last transition..</param>
 /// <param name="Reason">(brief) reason for the condition&#39;s last transition..</param>
 /// <param name="Status">Status of the condition, one of True, False, Unknown. (required).</param>
 /// <param name="Type">Type of job condition, Complete or Failed. (required).</param>
 public V1beta1JobCondition(UnversionedTime LastProbeTime = default(UnversionedTime), UnversionedTime LastTransitionTime = default(UnversionedTime), string Message = default(string), string Reason = default(string), string Status = default(string), string Type = default(string))
 {
     // to ensure "Status" is required (not null)
     if (Status == null)
     {
         throw new InvalidDataException("Status is a required property for V1beta1JobCondition and cannot be null");
     }
     else
     {
         this.Status = Status;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for V1beta1JobCondition and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.LastProbeTime      = LastProbeTime;
     this.LastTransitionTime = LastTransitionTime;
     this.Message            = Message;
     this.Reason             = Reason;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1JobStatus" /> class.
 /// </summary>
 /// <param name="Active">Active is the number of actively running pods..</param>
 /// <param name="CompletionTime">CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC..</param>
 /// <param name="Conditions">Conditions represent the latest available observations of an object&#39;s current state. More info: http://kubernetes.io/docs/user-guide/jobs.</param>
 /// <param name="Failed">Failed is the number of pods which reached Phase Failed..</param>
 /// <param name="StartTime">StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC..</param>
 /// <param name="Succeeded">Succeeded is the number of pods which reached Phase Succeeded..</param>
 public V1beta1JobStatus(int?Active = default(int?), UnversionedTime CompletionTime = default(UnversionedTime), List <V1beta1JobCondition> Conditions = default(List <V1beta1JobCondition>), int?Failed = default(int?), UnversionedTime StartTime = default(UnversionedTime), int?Succeeded = default(int?))
 {
     this.Active         = Active;
     this.CompletionTime = CompletionTime;
     this.Conditions     = Conditions;
     this.Failed         = Failed;
     this.StartTime      = StartTime;
     this.Succeeded      = Succeeded;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1alpha1CertificateSigningRequestCondition" /> class.
 /// </summary>
 /// <param name="LastUpdateTime">timestamp for the last update to this condition.</param>
 /// <param name="Message">human readable message with details about the request state.</param>
 /// <param name="Reason">brief reason for the request state.</param>
 /// <param name="Type">request approval state, currently Approved or Denied. (required).</param>
 public V1alpha1CertificateSigningRequestCondition(UnversionedTime LastUpdateTime = default(UnversionedTime), string Message = default(string), string Reason = default(string), string Type = default(string))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for V1alpha1CertificateSigningRequestCondition and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.LastUpdateTime = LastUpdateTime;
     this.Message        = Message;
     this.Reason         = Reason;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1HorizontalPodAutoscalerStatus" /> class.
 /// </summary>
 /// <param name="CurrentCPUUtilizationPercentage">current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU..</param>
 /// <param name="CurrentReplicas">current number of replicas of pods managed by this autoscaler. (required).</param>
 /// <param name="DesiredReplicas">desired number of replicas of pods managed by this autoscaler. (required).</param>
 /// <param name="LastScaleTime">last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed..</param>
 /// <param name="ObservedGeneration">most recent generation observed by this autoscaler..</param>
 public V1beta1HorizontalPodAutoscalerStatus(int?CurrentCPUUtilizationPercentage = default(int?), int?CurrentReplicas = default(int?), int?DesiredReplicas = default(int?), UnversionedTime LastScaleTime = default(UnversionedTime), long?ObservedGeneration = default(long?))
 {
     // to ensure "CurrentReplicas" is required (not null)
     if (CurrentReplicas == null)
     {
         throw new InvalidDataException("CurrentReplicas is a required property for V1beta1HorizontalPodAutoscalerStatus and cannot be null");
     }
     else
     {
         this.CurrentReplicas = CurrentReplicas;
     }
     // to ensure "DesiredReplicas" is required (not null)
     if (DesiredReplicas == null)
     {
         throw new InvalidDataException("DesiredReplicas is a required property for V1beta1HorizontalPodAutoscalerStatus and cannot be null");
     }
     else
     {
         this.DesiredReplicas = DesiredReplicas;
     }
     this.CurrentCPUUtilizationPercentage = CurrentCPUUtilizationPercentage;
     this.LastScaleTime      = LastScaleTime;
     this.ObservedGeneration = ObservedGeneration;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ObjectMeta" /> class.
 /// </summary>
 /// <param name="Annotations">Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations.</param>
 /// <param name="ClusterName">The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request..</param>
 /// <param name="CreationTimestamp">CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.  Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="DeletionGracePeriodSeconds">Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only..</param>
 /// <param name="DeletionTimestamp">DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.  Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Finalizers">Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed..</param>
 /// <param name="GenerateName">GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.  If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).  Applied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency.</param>
 /// <param name="Generation">A sequence number representing a specific generation of the desired state. Populated by the system. Read-only..</param>
 /// <param name="Labels">Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels.</param>
 /// <param name="Name">Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names.</param>
 /// <param name="_Namespace">Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \&quot;default\&quot; namespace, but \&quot;default\&quot; is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.  Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces.</param>
 /// <param name="OwnerReferences">List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller..</param>
 /// <param name="ResourceVersion">An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.  Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#concurrency-control-and-consistency.</param>
 /// <param name="SelfLink">SelfLink is a URL representing this object. Populated by the system. Read-only..</param>
 /// <param name="Uid">UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.  Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids.</param>
 public V1ObjectMeta(Dictionary <string, string> Annotations = default(Dictionary <string, string>), string ClusterName = default(string), UnversionedTime CreationTimestamp = default(UnversionedTime), long?DeletionGracePeriodSeconds = default(long?), UnversionedTime DeletionTimestamp = default(UnversionedTime), List <string> Finalizers = default(List <string>), string GenerateName = default(string), long?Generation = default(long?), Dictionary <string, string> Labels = default(Dictionary <string, string>), string Name = default(string), string _Namespace = default(string), List <V1OwnerReference> OwnerReferences = default(List <V1OwnerReference>), string ResourceVersion = default(string), string SelfLink = default(string), string Uid = default(string))
 {
     this.Annotations                = Annotations;
     this.ClusterName                = ClusterName;
     this.CreationTimestamp          = CreationTimestamp;
     this.DeletionGracePeriodSeconds = DeletionGracePeriodSeconds;
     this.DeletionTimestamp          = DeletionTimestamp;
     this.Finalizers      = Finalizers;
     this.GenerateName    = GenerateName;
     this.Generation      = Generation;
     this.Labels          = Labels;
     this.Name            = Name;
     this._Namespace      = _Namespace;
     this.OwnerReferences = OwnerReferences;
     this.ResourceVersion = ResourceVersion;
     this.SelfLink        = SelfLink;
     this.Uid             = Uid;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ContainerStateRunning" /> class.
 /// </summary>
 /// <param name="StartedAt">Time at which the container was last (re-)started.</param>
 public V1ContainerStateRunning(UnversionedTime StartedAt = default(UnversionedTime))
 {
     this.StartedAt = StartedAt;
 }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PodStatus" /> class.
 /// </summary>
 /// <param name="Conditions">Current service state of pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions.</param>
 /// <param name="ContainerStatuses">The list has one entry per container in the manifest. Each entry is currently the output of &#x60;docker inspect&#x60;. More info: http://kubernetes.io/docs/user-guide/pod-states#container-statuses.</param>
 /// <param name="HostIP">IP address of the host to which the pod is assigned. Empty if not yet scheduled..</param>
 /// <param name="Message">A human readable message indicating details about why the pod is in this condition..</param>
 /// <param name="Phase">Current condition of the pod. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-phase.</param>
 /// <param name="PodIP">IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated..</param>
 /// <param name="Reason">A brief CamelCase message indicating details about why the pod is in this state. e.g. &#39;OutOfDisk&#39;.</param>
 /// <param name="StartTime">RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod..</param>
 public V1PodStatus(List <V1PodCondition> Conditions = default(List <V1PodCondition>), List <V1ContainerStatus> ContainerStatuses = default(List <V1ContainerStatus>), string HostIP = default(string), string Message = default(string), string Phase = default(string), string PodIP = default(string), string Reason = default(string), UnversionedTime StartTime = default(UnversionedTime))
 {
     this.Conditions        = Conditions;
     this.ContainerStatuses = ContainerStatuses;
     this.HostIP            = HostIP;
     this.Message           = Message;
     this.Phase             = Phase;
     this.PodIP             = PodIP;
     this.Reason            = Reason;
     this.StartTime         = StartTime;
 }
예제 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Event" /> 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: http://releases.k8s.io/HEAD/docs/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="InvolvedObject">The object that this event is about. (required).</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: http://releases.k8s.io/HEAD/docs/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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata (required).</param>
 /// <param name="Reason">This should be a short, machine understandable string that gives the reason for the transition into the object&#39;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(string ApiVersion = default(string), int?Count = default(int?), UnversionedTime FirstTimestamp = default(UnversionedTime), V1ObjectReference InvolvedObject = default(V1ObjectReference), string Kind = default(string), UnversionedTime LastTimestamp = default(UnversionedTime), string Message = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), string Reason = default(string), V1EventSource Source = default(V1EventSource), string Type = default(string))
 {
     // to ensure "InvolvedObject" is required (not null)
     if (InvolvedObject == null)
     {
         throw new InvalidDataException("InvolvedObject is a required property for V1Event and cannot be null");
     }
     else
     {
         this.InvolvedObject = InvolvedObject;
     }
     // to ensure "Metadata" is required (not null)
     if (Metadata == null)
     {
         throw new InvalidDataException("Metadata is a required property for V1Event and cannot be null");
     }
     else
     {
         this.Metadata = Metadata;
     }
     this.ApiVersion     = ApiVersion;
     this.Count          = Count;
     this.FirstTimestamp = FirstTimestamp;
     this.Kind           = Kind;
     this.LastTimestamp  = LastTimestamp;
     this.Message        = Message;
     this.Reason         = Reason;
     this.Source         = Source;
     this.Type           = Type;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ContainerStateTerminated" /> class.
 /// </summary>
 /// <param name="ContainerID">Container&#39;s ID in the format &#39;docker://&lt;container_id&gt;&#39;.</param>
 /// <param name="ExitCode">Exit status from the last termination of the container (required).</param>
 /// <param name="FinishedAt">Time at which the container last terminated.</param>
 /// <param name="Message">Message regarding the last termination of the container.</param>
 /// <param name="Reason">(brief) reason from the last termination of the container.</param>
 /// <param name="Signal">Signal from the last termination of the container.</param>
 /// <param name="StartedAt">Time at which previous execution of the container started.</param>
 public V1ContainerStateTerminated(string ContainerID = default(string), int?ExitCode = default(int?), UnversionedTime FinishedAt = default(UnversionedTime), string Message = default(string), string Reason = default(string), int?Signal = default(int?), UnversionedTime StartedAt = default(UnversionedTime))
 {
     // to ensure "ExitCode" is required (not null)
     if (ExitCode == null)
     {
         throw new InvalidDataException("ExitCode is a required property for V1ContainerStateTerminated and cannot be null");
     }
     else
     {
         this.ExitCode = ExitCode;
     }
     this.ContainerID = ContainerID;
     this.FinishedAt  = FinishedAt;
     this.Message     = Message;
     this.Reason      = Reason;
     this.Signal      = Signal;
     this.StartedAt   = StartedAt;
 }
예제 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V2alpha1CronJobStatus" /> class.
 /// </summary>
 /// <param name="Active">Active holds pointers to currently running jobs..</param>
 /// <param name="LastScheduleTime">LastScheduleTime keeps information of when was the last time the job was successfully scheduled..</param>
 public V2alpha1CronJobStatus(List <V1ObjectReference> Active = default(List <V1ObjectReference>), UnversionedTime LastScheduleTime = default(UnversionedTime))
 {
     this.Active           = Active;
     this.LastScheduleTime = LastScheduleTime;
 }