Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.batch; import com.fasterxml.jackson.annotation.JsonProperty;
A single file or multiple files to be downloaded to a compute node.
/** * A single file or multiple files to be downloaded to a compute node. */
public class ResourceFile {
The storage container name in the auto storage account. The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
/** * The storage container name in the auto storage account. * The autoStorageContainerName, storageContainerUrl and httpUrl properties * are mutually exclusive and one of them must be specified. */
@JsonProperty(value = "autoStorageContainerName") private String autoStorageContainerName;
The URL of the blob container within Azure Blob Storage. The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the blob, or set the ACL for the blob or its container to allow public access.
/** * The URL of the blob container within Azure Blob Storage. * The autoStorageContainerName, storageContainerUrl and httpUrl properties * are mutually exclusive and one of them must be specified. This URL must * be readable and listable using anonymous access; that is, the Batch * service does not present any credentials when downloading the blob. * There are two ways to get such a URL for a blob in Azure storage: * include a Shared Access Signature (SAS) granting read and list * permissions on the blob, or set the ACL for the blob or its container to * allow public access. */
@JsonProperty(value = "storageContainerUrl") private String storageContainerUrl;
The URL of the file to download. The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access.
/** * The URL of the file to download. * The autoStorageContainerName, storageContainerUrl and httpUrl properties * are mutually exclusive and one of them must be specified. If the URL is * Azure Blob Storage, it must be readable using anonymous access; that is, * the Batch service does not present any credentials when downloading the * blob. There are two ways to get such a URL for a blob in Azure storage: * include a Shared Access Signature (SAS) granting read permissions on the * blob, or set the ACL for the blob or its container to allow public * access. */
@JsonProperty(value = "httpUrl") private String httpUrl;
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. The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded.
/** * 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. * The property is valid only when autoStorageContainerName or * storageContainerUrl is used. This prefix can be a partial filename or a * subdirectory. If a prefix is not specified, all the files in the * container will be downloaded. */
@JsonProperty(value = "blobPrefix") private String blobPrefix;
The location on the compute node to which to download the file, relative to the task's working directory. If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..').
/** * The location on the compute node to which to download the file, relative * to the task's working directory. * If the httpUrl property is specified, the filePath is required and * describes the path which the file will be downloaded to, including the * filename. Otherwise, if the autoStorageContainerName or * storageContainerUrl property is specified, filePath is optional and is * the directory to download the files to. In the case where filePath is * used as a directory, any directory structure already associated with the * input data will be retained in full and appended to the specified * filePath directory. The specified relative path cannot break out of the * task's working directory (for example by using '..'). */
@JsonProperty(value = "filePath") private String filePath;
The file permission mode attribute in octal format. This property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file.
/** * The file permission mode attribute in octal format. * This property applies only to files being downloaded to Linux compute * nodes. It will be ignored if it is specified for a resourceFile which * will be downloaded to a Windows node. If this property is not specified * for a Linux node, then a default value of 0770 is applied to the file. */
@JsonProperty(value = "fileMode") private String fileMode;
Get the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
Returns:the autoStorageContainerName value
/** * Get the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. * * @return the autoStorageContainerName value */
public String autoStorageContainerName() { return this.autoStorageContainerName; }
Set the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
Params:
  • autoStorageContainerName – the autoStorageContainerName value to set
Returns:the ResourceFile object itself.
/** * Set the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. * * @param autoStorageContainerName the autoStorageContainerName value to set * @return the ResourceFile object itself. */
public ResourceFile withAutoStorageContainerName(String autoStorageContainerName) { this.autoStorageContainerName = autoStorageContainerName; return this; }
Get the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the blob, or set the ACL for the blob or its container to allow public access.
Returns:the storageContainerUrl value
/** * Get the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the blob, or set the ACL for the blob or its container to allow public access. * * @return the storageContainerUrl value */
public String storageContainerUrl() { return this.storageContainerUrl; }
Set the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the blob, or set the ACL for the blob or its container to allow public access.
Params:
  • storageContainerUrl – the storageContainerUrl value to set
Returns:the ResourceFile object itself.
/** * Set the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the blob, or set the ACL for the blob or its container to allow public access. * * @param storageContainerUrl the storageContainerUrl value to set * @return the ResourceFile object itself. */
public ResourceFile withStorageContainerUrl(String storageContainerUrl) { this.storageContainerUrl = storageContainerUrl; return this; }
Get the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access.
Returns:the httpUrl value
/** * Get the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access. * * @return the httpUrl value */
public String httpUrl() { return this.httpUrl; }
Set the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access.
Params:
  • httpUrl – the httpUrl value to set
Returns:the ResourceFile object itself.
/** * Set the autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access. * * @param httpUrl the httpUrl value to set * @return the ResourceFile object itself. */
public ResourceFile withHttpUrl(String httpUrl) { this.httpUrl = httpUrl; return this; }
Get the property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded.
Returns:the blobPrefix value
/** * Get the property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded. * * @return the blobPrefix value */
public String blobPrefix() { return this.blobPrefix; }
Set the property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded.
Params:
  • blobPrefix – the blobPrefix value to set
Returns:the ResourceFile object itself.
/** * Set the property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded. * * @param blobPrefix the blobPrefix value to set * @return the ResourceFile object itself. */
public ResourceFile withBlobPrefix(String blobPrefix) { this.blobPrefix = blobPrefix; return this; }
Get if the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..').
Returns:the filePath value
/** * Get if the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..'). * * @return the filePath value */
public String filePath() { return this.filePath; }
Set if the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..').
Params:
  • filePath – the filePath value to set
Returns:the ResourceFile object itself.
/** * Set if the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..'). * * @param filePath the filePath value to set * @return the ResourceFile object itself. */
public ResourceFile withFilePath(String filePath) { this.filePath = filePath; return this; }
Get this property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file.
Returns:the fileMode value
/** * Get this property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file. * * @return the fileMode value */
public String fileMode() { return this.fileMode; }
Set this property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file.
Params:
  • fileMode – the fileMode value to set
Returns:the ResourceFile object itself.
/** * Set this property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file. * * @param fileMode the fileMode value to set * @return the ResourceFile object itself. */
public ResourceFile withFileMode(String fileMode) { this.fileMode = fileMode; return this; } }