Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the Extensionsv1beta1IngressBackend
 /// class.
 /// </summary>
 /// <param name="resource">Resource is an ObjectRef to another
 /// Kubernetes resource in the namespace of the Ingress object. If
 /// resource is specified, serviceName and servicePort must not be
 /// specified.</param>
 /// <param name="serviceName">Specifies the name of the referenced
 /// service.</param>
 /// <param name="servicePort">Specifies the port of the referenced
 /// service.</param>
 public Extensionsv1beta1IngressBackend(V1TypedLocalObjectReference resource = default(V1TypedLocalObjectReference), string serviceName = default(string), IntstrIntOrString servicePort = default(IntstrIntOrString))
 {
     Resource    = resource;
     ServiceName = serviceName;
     ServicePort = servicePort;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the V1PersistentVolumeClaimSpec
 /// class.
 /// </summary>
 /// <param name="accessModes">AccessModes contains the desired access
 /// modes the volume should have. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1</param>
 /// <param name="dataSource">This field requires the
 /// VolumeSnapshotDataSource alpha feature gate to be enabled and
 /// currently VolumeSnapshot is the only supported data source. If the
 /// provisioner can support VolumeSnapshot data source, it will create
 /// a new volume and data will be restored to the volume at the same
 /// time. If the provisioner does not support VolumeSnapshot data
 /// source, volume will not be created and the failure will be reported
 /// as an event. In the future, we plan to support more data source
 /// types and the behavior of the provisioner may change.</param>
 /// <param name="resources">Resources represents the minimum resources
 /// the volume should have. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources</param>
 /// <param name="selector">A label query over volumes to consider for
 /// binding.</param>
 /// <param name="storageClassName">Name of the StorageClass required by
 /// the claim. More info:
 /// https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1</param>
 /// <param name="volumeMode">volumeMode defines what type of volume is
 /// required by the claim. Value of Filesystem is implied when not
 /// included in claim spec. This is an alpha feature and may change in
 /// the future.</param>
 /// <param name="volumeName">VolumeName is the binding reference to the
 /// PersistentVolume backing this claim.</param>
 public V1PersistentVolumeClaimSpec(IList <string> accessModes = default(IList <string>), V1TypedLocalObjectReference dataSource = default(V1TypedLocalObjectReference), V1ResourceRequirements resources = default(V1ResourceRequirements), V1LabelSelector selector = default(V1LabelSelector), string storageClassName = default(string), string volumeMode = default(string), string volumeName = default(string))
 {
     AccessModes      = accessModes;
     DataSource       = dataSource;
     Resources        = resources;
     Selector         = selector;
     StorageClassName = storageClassName;
     VolumeMode       = volumeMode;
     VolumeName       = volumeName;
     CustomInit();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the V1IngressClassSpec class.
 /// </summary>
 /// <param name="controller">Controller refers to the name of the
 /// controller that should handle this class. This allows for different
 /// "flavors" that are controlled by the same controller. For example,
 /// you may have different Parameters for the same implementing
 /// controller. This should be specified as a domain-prefixed path no
 /// more than 250 characters in length, e.g.
 /// "acme.io/ingress-controller". This field is immutable.</param>
 /// <param name="parameters">Parameters is a link to a custom resource
 /// containing additional configuration for the controller. This is
 /// optional if the controller does not require extra
 /// parameters.</param>
 public V1IngressClassSpec(string controller = default(string), V1TypedLocalObjectReference parameters = default(V1TypedLocalObjectReference))
 {
     Controller = controller;
     Parameters = parameters;
     CustomInit();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the V1IngressBackend class.
 /// </summary>
 /// <param name="resource">Resource is an ObjectRef to another
 /// Kubernetes resource in the namespace of the Ingress object. If
 /// resource is specified, a service.Name and service.Port must not be
 /// specified. This is a mutually exclusive setting with
 /// "Service".</param>
 /// <param name="service">Service references a Service as a Backend.
 /// This is a mutually exclusive setting with "Resource".</param>
 public V1IngressBackend(V1TypedLocalObjectReference resource = default(V1TypedLocalObjectReference), V1IngressServiceBackend service = default(V1IngressServiceBackend))
 {
     Resource = resource;
     Service  = service;
     CustomInit();
 }