コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// Iok8sapicorev1DownwardAPIVolumeFile class.
 /// </summary>
 /// <param name="path">Required: Path is  the relative path name of the
 /// file to be created. Must not be absolute or contain the '..' path.
 /// Must be utf-8 encoded. The first item of the relative path must not
 /// start with '..'</param>
 /// <param name="fieldRef">Required: Selects a field of the pod: only
 /// annotations, labels, name and namespace are supported.</param>
 /// <param name="mode">Optional: mode bits to use on this file, must be
 /// a value between 0 and 0777. If not specified, the volume
 /// defaultMode will be used. This might be in conflict with other
 /// options that affect the file mode, like fsGroup, and the result can
 /// be other mode bits set.</param>
 /// <param name="resourceFieldRef">Selects a resource of the container:
 /// only resources limits and requests (limits.cpu, limits.memory,
 /// requests.cpu and requests.memory) are currently supported.</param>
 public Iok8sapicorev1DownwardAPIVolumeFile(string path, Iok8sapicorev1ObjectFieldSelector fieldRef = default(Iok8sapicorev1ObjectFieldSelector), int?mode = default(int?), Iok8sapicorev1ResourceFieldSelector resourceFieldRef = default(Iok8sapicorev1ResourceFieldSelector))
 {
     FieldRef         = fieldRef;
     Mode             = mode;
     Path             = path;
     ResourceFieldRef = resourceFieldRef;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1EnvVarSource class.
 /// </summary>
 /// <param name="configMapKeyRef">Selects a key of a ConfigMap.</param>
 /// <param name="fieldRef">Selects a field of the pod: supports
 /// metadata.name, metadata.namespace, metadata.labels,
 /// metadata.annotations, spec.nodeName, spec.serviceAccountName,
 /// status.hostIP, status.podIP.</param>
 /// <param name="resourceFieldRef">Selects a resource of the container:
 /// only resources limits and requests (limits.cpu, limits.memory,
 /// limits.ephemeral-storage, requests.cpu, requests.memory and
 /// requests.ephemeral-storage) are currently supported.</param>
 /// <param name="secretKeyRef">Selects a key of a secret in the pod's
 /// namespace</param>
 public Iok8sapicorev1EnvVarSource(Iok8sapicorev1ConfigMapKeySelector configMapKeyRef = default(Iok8sapicorev1ConfigMapKeySelector), Iok8sapicorev1ObjectFieldSelector fieldRef = default(Iok8sapicorev1ObjectFieldSelector), Iok8sapicorev1ResourceFieldSelector resourceFieldRef = default(Iok8sapicorev1ResourceFieldSelector), Iok8sapicorev1SecretKeySelector secretKeyRef = default(Iok8sapicorev1SecretKeySelector))
 {
     ConfigMapKeyRef  = configMapKeyRef;
     FieldRef         = fieldRef;
     ResourceFieldRef = resourceFieldRef;
     SecretKeyRef     = secretKeyRef;
     CustomInit();
 }