OutputFileBlobContainerDestination Class
- java.
lang. Object - com.
azure. compute. batch. models. OutputFileBlobContainerDestination
- com.
Implements
public final class OutputFileBlobContainerDestination
implements JsonSerializable<OutputFileBlobContainerDestination>
Specifies a file upload destination within an Azure blob storage container.
Constructor Summary
| Constructor | Description |
|---|---|
| OutputFileBlobContainerDestination(String containerUrl) |
Creates an instance of Output |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Output |
fromJson(JsonReader jsonReader)
Reads an instance of Output |
| String |
getContainerUrl()
Get the container |
|
Batch |
getIdentityReference()
Get the identity |
| String |
getPath()
Get the path property: The destination blob or virtual directory within the Azure Storage container. |
|
List<Output |
getUploadHeaders()
Get the upload |
|
Output |
setIdentityReference(BatchNodeIdentityReference identityReference)
Set the identity |
|
Output |
setPath(String path)
Set the path property: The destination blob or virtual directory within the Azure Storage container. |
|
Output |
setUploadHeaders(List<OutputFileUploadHeader> uploadHeaders)
Set the upload |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
OutputFileBlobContainerDestination
public OutputFileBlobContainerDestination(String containerUrl)
Creates an instance of OutputFileBlobContainerDestination class.
Parameters:
Method Details
fromJson
public static OutputFileBlobContainerDestination fromJson(JsonReader jsonReader)
Reads an instance of OutputFileBlobContainerDestination from the JsonReader.
Parameters:
Returns:
Throws:
getContainerUrl
public String getContainerUrl()
Get the containerUrl property: The URL of the container within Azure Blob Storage to which to upload the file(s). If not using a managed identity, the URL must include a Shared Access Signature (SAS) granting write permissions to the container.
Returns:
getIdentityReference
public BatchNodeIdentityReference getIdentityReference()
Get the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.
Returns:
getPath
public String getPath()
Get the path property: The destination blob or virtual directory within the Azure Storage container. If filePattern refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to which to upload that file. If filePattern contains one or more wildcards (and therefore may match multiple files), then path is the name of the blob virtual directory (which is prepended to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the root of the container with a blob name matching their file name.
Returns:
getUploadHeaders
public List<OutputFileUploadHeader> getUploadHeaders()
Get the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when uploading blobs: https://learn.microsoft.com/rest/api/storageservices/put-blob\#request-headers-all-blob-types.
Returns:
setIdentityReference
public OutputFileBlobContainerDestination setIdentityReference(BatchNodeIdentityReference identityReference)
Set the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.
Parameters:
Returns:
setPath
public OutputFileBlobContainerDestination setPath(String path)
Set the path property: The destination blob or virtual directory within the Azure Storage container. If filePattern refers to a specific file (i.e. contains no wildcards), then path is the name of the blob to which to upload that file. If filePattern contains one or more wildcards (and therefore may match multiple files), then path is the name of the blob virtual directory (which is prepended to each blob name) to which to upload the file(s). If omitted, file(s) are uploaded to the root of the container with a blob name matching their file name.
Parameters:
Returns:
setUploadHeaders
public OutputFileBlobContainerDestination setUploadHeaders(List<OutputFileUploadHeader> uploadHeaders)
Set the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files. These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when uploading blobs: https://learn.microsoft.com/rest/api/storageservices/put-blob\#request-headers-all-blob-types.
Parameters:
Returns: