Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoHDFSKrbConfig" /> class.
 /// </summary>
 /// <param name="krbCCacheSecret">KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos..</param>
 /// <param name="krbConfigConfigMap">KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used..</param>
 /// <param name="krbKeytabSecret">KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos..</param>
 /// <param name="krbRealm">KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used..</param>
 /// <param name="krbServicePrincipalName">KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used..</param>
 /// <param name="krbUsername">KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used..</param>
 public ArgoHDFSKrbConfig(k8s.Models.V1SecretKeySelector krbCCacheSecret = default(k8s.Models.V1SecretKeySelector), k8s.Models.V1ConfigMapKeySelector krbConfigConfigMap = default(k8s.Models.V1ConfigMapKeySelector), k8s.Models.V1SecretKeySelector krbKeytabSecret = default(k8s.Models.V1SecretKeySelector), string krbRealm = default(string), string krbServicePrincipalName = default(string), string krbUsername = default(string))
 {
     this.KrbCCacheSecret         = krbCCacheSecret;
     this.KrbConfigConfigMap      = krbConfigConfigMap;
     this.KrbKeytabSecret         = krbKeytabSecret;
     this.KrbRealm                = krbRealm;
     this.KrbServicePrincipalName = krbServicePrincipalName;
     this.KrbUsername             = krbUsername;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoS3Artifact" /> class.
 /// </summary>
 /// <param name="accessKeySecret">AccessKeySecret is the secret selector to the bucket&#39;s access key (required).</param>
 /// <param name="bucket">Bucket is the name of the bucket (required).</param>
 /// <param name="endpoint">Endpoint is the hostname of the bucket endpoint (required).</param>
 /// <param name="insecure">Insecure will connect to the service with TLS.</param>
 /// <param name="key">Key is the key in the bucket where the artifact resides (required).</param>
 /// <param name="region">Region contains the optional bucket region.</param>
 /// <param name="secretKeySecret">SecretKeySecret is the secret selector to the bucket&#39;s secret key (required).</param>
 public ArgoS3Artifact(k8s.Models.V1SecretKeySelector accessKeySecret = default(k8s.Models.V1SecretKeySelector), string bucket = default(string), string endpoint = default(string), bool?insecure = default(bool?), string key = default(string), string region = default(string), k8s.Models.V1SecretKeySelector secretKeySecret = default(k8s.Models.V1SecretKeySelector))
 {
     // to ensure "accessKeySecret" is required (not null)
     if (accessKeySecret == null)
     {
         throw new InvalidDataException("accessKeySecret is a required property for ArgoS3Artifact and cannot be null");
     }
     else
     {
         this.AccessKeySecret = accessKeySecret;
     }
     // to ensure "bucket" is required (not null)
     if (bucket == null)
     {
         throw new InvalidDataException("bucket is a required property for ArgoS3Artifact and cannot be null");
     }
     else
     {
         this.Bucket = bucket;
     }
     // to ensure "endpoint" is required (not null)
     if (endpoint == null)
     {
         throw new InvalidDataException("endpoint is a required property for ArgoS3Artifact and cannot be null");
     }
     else
     {
         this.Endpoint = endpoint;
     }
     // to ensure "key" is required (not null)
     if (key == null)
     {
         throw new InvalidDataException("key is a required property for ArgoS3Artifact and cannot be null");
     }
     else
     {
         this.Key = key;
     }
     // to ensure "secretKeySecret" is required (not null)
     if (secretKeySecret == null)
     {
         throw new InvalidDataException("secretKeySecret is a required property for ArgoS3Artifact and cannot be null");
     }
     else
     {
         this.SecretKeySecret = secretKeySecret;
     }
     this.Insecure = insecure;
     this.Region   = region;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoArtifactoryArtifact" /> class.
 /// </summary>
 /// <param name="passwordSecret">PasswordSecret is the secret selector to the repository password.</param>
 /// <param name="url">URL of the artifact (required).</param>
 /// <param name="usernameSecret">UsernameSecret is the secret selector to the repository username.</param>
 public ArgoArtifactoryArtifact(k8s.Models.V1SecretKeySelector passwordSecret = default(k8s.Models.V1SecretKeySelector), string url = default(string), k8s.Models.V1SecretKeySelector usernameSecret = default(k8s.Models.V1SecretKeySelector))
 {
     // to ensure "url" is required (not null)
     if (url == null)
     {
         throw new InvalidDataException("url is a required property for ArgoArtifactoryArtifact and cannot be null");
     }
     else
     {
         this.Url = url;
     }
     this.PasswordSecret = passwordSecret;
     this.UsernameSecret = usernameSecret;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoHDFSConfig" /> class.
 /// </summary>
 /// <param name="addresses">Addresses is accessible addresses of HDFS name nodes (required).</param>
 /// <param name="hdfsUser">HDFSUser is the user to access HDFS file system. It is ignored if either ccache or keytab is used..</param>
 /// <param name="krbCCacheSecret">KrbCCacheSecret is the secret selector for Kerberos ccache Either ccache or keytab can be set to use Kerberos..</param>
 /// <param name="krbConfigConfigMap">KrbConfig is the configmap selector for Kerberos config as string It must be set if either ccache or keytab is used..</param>
 /// <param name="krbKeytabSecret">KrbKeytabSecret is the secret selector for Kerberos keytab Either ccache or keytab can be set to use Kerberos..</param>
 /// <param name="krbRealm">KrbRealm is the Kerberos realm used with Kerberos keytab It must be set if keytab is used..</param>
 /// <param name="krbServicePrincipalName">KrbServicePrincipalName is the principal name of Kerberos service It must be set if either ccache or keytab is used..</param>
 /// <param name="krbUsername">KrbUsername is the Kerberos username used with Kerberos keytab It must be set if keytab is used..</param>
 public ArgoHDFSConfig(List <string> addresses = default(List <string>), string hdfsUser = default(string), k8s.Models.V1SecretKeySelector krbCCacheSecret = default(k8s.Models.V1SecretKeySelector), k8s.Models.V1ConfigMapKeySelector krbConfigConfigMap = default(k8s.Models.V1ConfigMapKeySelector), k8s.Models.V1SecretKeySelector krbKeytabSecret = default(k8s.Models.V1SecretKeySelector), string krbRealm = default(string), string krbServicePrincipalName = default(string), string krbUsername = default(string))
 {
     // to ensure "addresses" is required (not null)
     if (addresses == null)
     {
         throw new InvalidDataException("addresses is a required property for ArgoHDFSConfig and cannot be null");
     }
     else
     {
         this.Addresses = addresses;
     }
     this.HdfsUser                = hdfsUser;
     this.KrbCCacheSecret         = krbCCacheSecret;
     this.KrbConfigConfigMap      = krbConfigConfigMap;
     this.KrbKeytabSecret         = krbKeytabSecret;
     this.KrbRealm                = krbRealm;
     this.KrbServicePrincipalName = krbServicePrincipalName;
     this.KrbUsername             = krbUsername;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoArtifactoryAuth" /> class.
 /// </summary>
 /// <param name="passwordSecret">PasswordSecret is the secret selector to the repository password.</param>
 /// <param name="usernameSecret">UsernameSecret is the secret selector to the repository username.</param>
 public ArgoArtifactoryAuth(k8s.Models.V1SecretKeySelector passwordSecret = default(k8s.Models.V1SecretKeySelector), k8s.Models.V1SecretKeySelector usernameSecret = default(k8s.Models.V1SecretKeySelector))
 {
     this.PasswordSecret = passwordSecret;
     this.UsernameSecret = usernameSecret;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArgoGitArtifact" /> class.
 /// </summary>
 /// <param name="depth">Depth specifies clones/fetches should be shallow and include the given number of commits from the branch tip.</param>
 /// <param name="fetch">Fetch specifies a number of refs that should be fetched before checkout.</param>
 /// <param name="insecureIgnoreHostKey">InsecureIgnoreHostKey disables SSH strict host key checking during git clone.</param>
 /// <param name="passwordSecret">PasswordSecret is the secret selector to the repository password.</param>
 /// <param name="repo">Repo is the git repository (required).</param>
 /// <param name="revision">Revision is the git commit, tag, branch to checkout.</param>
 /// <param name="sshPrivateKeySecret">SSHPrivateKeySecret is the secret selector to the repository ssh private key.</param>
 /// <param name="usernameSecret">UsernameSecret is the secret selector to the repository username.</param>
 public ArgoGitArtifact(int?depth = default(int?), List <string> fetch = default(List <string>), bool?insecureIgnoreHostKey = default(bool?), k8s.Models.V1SecretKeySelector passwordSecret = default(k8s.Models.V1SecretKeySelector), string repo = default(string), string revision = default(string), k8s.Models.V1SecretKeySelector sshPrivateKeySecret = default(k8s.Models.V1SecretKeySelector), k8s.Models.V1SecretKeySelector usernameSecret = default(k8s.Models.V1SecretKeySelector))
 {
     // to ensure "repo" is required (not null)
     if (repo == null)
     {
         throw new InvalidDataException("repo is a required property for ArgoGitArtifact and cannot be null");
     }
     else
     {
         this.Repo = repo;
     }
     this.Depth = depth;
     this.Fetch = fetch;
     this.InsecureIgnoreHostKey = insecureIgnoreHostKey;
     this.PasswordSecret        = passwordSecret;
     this.Revision            = revision;
     this.SshPrivateKeySecret = sshPrivateKeySecret;
     this.UsernameSecret      = usernameSecret;
 }