Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1SubjectAccessReview" /> 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="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="Metadata">Metadata.</param>
 /// <param name="Spec">Spec holds information about the request being evaluated (required).</param>
 /// <param name="Status">Status is filled in by the server and indicates whether the request is allowed or not.</param>
 public V1beta1SubjectAccessReview(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V1beta1SubjectAccessReviewSpec Spec = default(V1beta1SubjectAccessReviewSpec), V1beta1SubjectAccessReviewStatus Status = default(V1beta1SubjectAccessReviewStatus))
 {
     // to ensure "Spec" is required (not null)
     if (Spec == null)
     {
         throw new InvalidDataException("Spec is a required property for V1beta1SubjectAccessReview and cannot be null");
     }
     else
     {
         this.Spec = Spec;
     }
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
     this.Status     = Status;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1StorageClass" /> 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="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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Parameters">Parameters holds the parameters for the provisioner that should create volumes of this storage class..</param>
 /// <param name="Provisioner">Provisioner indicates the type of the provisioner. (required).</param>
 public V1beta1StorageClass(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), Dictionary <string, string> Parameters = default(Dictionary <string, string>), string Provisioner = default(string))
 {
     // to ensure "Provisioner" is required (not null)
     if (Provisioner == null)
     {
         throw new InvalidDataException("Provisioner is a required property for V1beta1StorageClass and cannot be null");
     }
     else
     {
         this.Provisioner = Provisioner;
     }
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
     this.Parameters = Parameters;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1ReplicaSet" /> 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="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="Metadata">If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Spec">Spec defines the specification of the desired behavior of the ReplicaSet. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.</param>
 /// <param name="Status">Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.</param>
 public V1beta1ReplicaSet(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V1beta1ReplicaSetSpec Spec = default(V1beta1ReplicaSetSpec), V1beta1ReplicaSetStatus Status = default(V1beta1ReplicaSetStatus))
 {
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
     this.Spec       = Spec;
     this.Status     = Status;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1alpha1ClusterRole" /> 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="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="Metadata">Standard object&#39;s metadata..</param>
 /// <param name="Rules">Rules holds all the PolicyRules for this ClusterRole (required).</param>
 public V1alpha1ClusterRole(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), List <V1alpha1PolicyRule> Rules = default(List <V1alpha1PolicyRule>))
 {
     // to ensure "Rules" is required (not null)
     if (Rules == null)
     {
         throw new InvalidDataException("Rules is a required property for V1alpha1ClusterRole and cannot be null");
     }
     else
     {
         this.Rules = Rules;
     }
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1alpha1RoleBinding" /> 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="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="Metadata">Standard object&#39;s metadata..</param>
 /// <param name="RoleRef">RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. (required).</param>
 /// <param name="Subjects">Subjects holds references to the objects the role applies to. (required).</param>
 public V1alpha1RoleBinding(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V1alpha1RoleRef RoleRef = default(V1alpha1RoleRef), List <V1alpha1Subject> Subjects = default(List <V1alpha1Subject>))
 {
     // to ensure "RoleRef" is required (not null)
     if (RoleRef == null)
     {
         throw new InvalidDataException("RoleRef is a required property for V1alpha1RoleBinding and cannot be null");
     }
     else
     {
         this.RoleRef = RoleRef;
     }
     // to ensure "Subjects" is required (not null)
     if (Subjects == null)
     {
         throw new InvalidDataException("Subjects is a required property for V1alpha1RoleBinding and cannot be null");
     }
     else
     {
         this.Subjects = Subjects;
     }
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
 }
Beispiel #6
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;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V2alpha1Job" /> 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="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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Spec">Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.</param>
 /// <param name="Status">Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.</param>
 public V2alpha1Job(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V2alpha1JobSpec Spec = default(V2alpha1JobSpec), V2alpha1JobStatus Status = default(V2alpha1JobStatus))
 {
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
     this.Spec       = Spec;
     this.Status     = Status;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PersistentVolume" /> 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="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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Spec">Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes.</param>
 /// <param name="Status">Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#persistent-volumes.</param>
 public V1PersistentVolume(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V1PersistentVolumeSpec Spec = default(V1PersistentVolumeSpec), V1PersistentVolumeStatus Status = default(V1PersistentVolumeStatus))
 {
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
     this.Spec       = Spec;
     this.Status     = Status;
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Endpoints" /> 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="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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Subsets">The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. (required).</param>
 public V1Endpoints(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), List <V1EndpointSubset> Subsets = default(List <V1EndpointSubset>))
 {
     // to ensure "Subsets" is required (not null)
     if (Subsets == null)
     {
         throw new InvalidDataException("Subsets is a required property for V1Endpoints and cannot be null");
     }
     else
     {
         this.Subsets = Subsets;
     }
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ServiceAccount" /> 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="ImagePullSecrets">ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: http://kubernetes.io/docs/user-guide/secrets#manually-specifying-an-imagepullsecret.</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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Secrets">Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: http://kubernetes.io/docs/user-guide/secrets.</param>
 public V1ServiceAccount(string ApiVersion = default(string), List <V1LocalObjectReference> ImagePullSecrets = default(List <V1LocalObjectReference>), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), List <V1ObjectReference> Secrets = default(List <V1ObjectReference>))
 {
     this.ApiVersion       = ApiVersion;
     this.ImagePullSecrets = ImagePullSecrets;
     this.Kind             = Kind;
     this.Metadata         = Metadata;
     this.Secrets          = Secrets;
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1Binding" /> 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="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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Target">The target object that you want to bind to the standard object. (required).</param>
 public V1Binding(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V1ObjectReference Target = default(V1ObjectReference))
 {
     // to ensure "Target" is required (not null)
     if (Target == null)
     {
         throw new InvalidDataException("Target is a required property for V1Binding and cannot be null");
     }
     else
     {
         this.Target = Target;
     }
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1beta1NetworkPolicy" /> 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="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="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Spec">Specification of the desired behavior for this NetworkPolicy..</param>
 public V1beta1NetworkPolicy(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V1beta1NetworkPolicySpec Spec = default(V1beta1NetworkPolicySpec))
 {
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
     this.Spec       = Spec;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1alpha1CertificateSigningRequest" /> 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="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="Metadata">Metadata.</param>
 /// <param name="Spec">The certificate request itself and any additional information..</param>
 /// <param name="Status">Derived information about the request..</param>
 public V1alpha1CertificateSigningRequest(string ApiVersion = default(string), string Kind = default(string), V1ObjectMeta Metadata = default(V1ObjectMeta), V1alpha1CertificateSigningRequestSpec Spec = default(V1alpha1CertificateSigningRequestSpec), V1alpha1CertificateSigningRequestStatus Status = default(V1alpha1CertificateSigningRequestStatus))
 {
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
     this.Spec       = Spec;
     this.Status     = Status;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V1PodTemplateSpec" /> class.
 /// </summary>
 /// <param name="Metadata">Standard object&#39;s metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.</param>
 /// <param name="Spec">Specification of the desired behavior of the pod. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.</param>
 public V1PodTemplateSpec(V1ObjectMeta Metadata = default(V1ObjectMeta), V1PodSpec Spec = default(V1PodSpec))
 {
     this.Metadata = Metadata;
     this.Spec     = Spec;
 }