/// <summary> /// Initializes a new instance of the AutoStorageBaseProperties class. /// </summary> /// <param name="storageAccountId">The resource ID of the storage /// account to be used for auto-storage account.</param> /// <param name="authenticationMode">The authentication mode which the /// Batch service will use to manage the auto-storage account. Possible /// values include: 'StorageKeys', /// 'BatchAccountManagedIdentity'</param> /// <param name="nodeIdentityReference">The reference to the user /// assigned identity which compute nodes will use to access /// auto-storage.</param> public AutoStorageBaseProperties(string storageAccountId, AutoStorageAuthenticationMode?authenticationMode = default(AutoStorageAuthenticationMode?), ComputeNodeIdentityReference nodeIdentityReference = default(ComputeNodeIdentityReference)) { StorageAccountId = storageAccountId; AuthenticationMode = authenticationMode; NodeIdentityReference = nodeIdentityReference; CustomInit(); }
/// <summary> /// Initializes a new instance of the ContainerRegistry class. /// </summary> /// <param name="userName">The user name to log into the registry /// server.</param> /// <param name="password">The password to log into the registry /// server.</param> /// <param name="registryServer">The registry URL.</param> /// <param name="identityReference">The reference to the user assigned /// identity to use to access an Azure Container Registry instead of /// username and password.</param> public ContainerRegistry(string userName = default(string), string password = default(string), string registryServer = default(string), ComputeNodeIdentityReference identityReference = default(ComputeNodeIdentityReference)) { UserName = userName; Password = password; RegistryServer = registryServer; IdentityReference = identityReference; CustomInit(); }
/// <summary> /// Initializes a new instance of the AzureBlobFileSystemConfiguration /// class. /// </summary> /// <param name="accountName">The Azure Storage Account name.</param> /// <param name="containerName">The Azure Blob Storage Container /// name.</param> /// <param name="relativeMountPath">The relative path on the compute /// node where the file system will be mounted</param> /// <param name="accountKey">The Azure Storage Account key.</param> /// <param name="sasKey">The Azure Storage SAS token.</param> /// <param name="blobfuseOptions">Additional command line options to /// pass to the mount command.</param> /// <param name="identityReference">The reference to the user assigned /// identity to use to access containerName</param> public AzureBlobFileSystemConfiguration(string accountName, string containerName, string relativeMountPath, string accountKey = default(string), string sasKey = default(string), string blobfuseOptions = default(string), ComputeNodeIdentityReference identityReference = default(ComputeNodeIdentityReference)) { AccountName = accountName; ContainerName = containerName; AccountKey = accountKey; SasKey = sasKey; BlobfuseOptions = blobfuseOptions; RelativeMountPath = relativeMountPath; IdentityReference = identityReference; CustomInit(); }
/// <summary> /// Initializes a new instance of the ResourceFile class. /// </summary> /// <param name="autoStorageContainerName">The storage container name /// in the auto storage account.</param> /// <param name="storageContainerUrl">The URL of the blob container /// within Azure Blob Storage.</param> /// <param name="httpUrl">The URL of the file to download.</param> /// <param name="blobPrefix">The blob prefix to use when downloading /// blobs from an Azure Storage container. Only the blobs whose names /// begin with the specified prefix will be downloaded.</param> /// <param name="filePath">The location on the compute node to which to /// download the file, relative to the task's working /// directory.</param> /// <param name="fileMode">The file permission mode attribute in octal /// format.</param> /// <param name="identityReference">The reference to the user assigned /// identity to use to access Azure Blob Storage specified by /// storageContainerUrl or httpUrl</param> public ResourceFile(string autoStorageContainerName = default(string), string storageContainerUrl = default(string), string httpUrl = default(string), string blobPrefix = default(string), string filePath = default(string), string fileMode = default(string), ComputeNodeIdentityReference identityReference = default(ComputeNodeIdentityReference)) { AutoStorageContainerName = autoStorageContainerName; StorageContainerUrl = storageContainerUrl; HttpUrl = httpUrl; BlobPrefix = blobPrefix; FilePath = filePath; FileMode = fileMode; IdentityReference = identityReference; CustomInit(); }
/// <summary> /// Initializes a new instance of the AutoStorageProperties class. /// </summary> /// <param name="storageAccountId">The resource ID of the storage /// account to be used for auto-storage account.</param> /// <param name="lastKeySync">The UTC time at which storage keys were /// last synchronized with the Batch account.</param> /// <param name="authenticationMode">The authentication mode which the /// Batch service will use to manage the auto-storage account. Possible /// values include: 'StorageKeys', /// 'BatchAccountManagedIdentity'</param> /// <param name="nodeIdentityReference">The reference to the user /// assigned identity which compute nodes will use to access /// auto-storage.</param> public AutoStorageProperties(string storageAccountId, System.DateTime lastKeySync, AutoStorageAuthenticationMode?authenticationMode = default(AutoStorageAuthenticationMode?), ComputeNodeIdentityReference nodeIdentityReference = default(ComputeNodeIdentityReference)) : base(storageAccountId, authenticationMode, nodeIdentityReference) { LastKeySync = lastKeySync; CustomInit(); }