Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.batch.inputs.ResourceFileArgs Maven / Gradle / Ivy
Go to download
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.batch.inputs;
import com.pulumi.azurenative.batch.inputs.ComputeNodeIdentityReferenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ResourceFileArgs extends com.pulumi.resources.ResourceArgs {
public static final ResourceFileArgs Empty = new ResourceFileArgs();
/**
* The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
*
*/
@Import(name="autoStorageContainerName")
private @Nullable Output autoStorageContainerName;
/**
* @return The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
*
*/
public Optional> autoStorageContainerName() {
return Optional.ofNullable(this.autoStorageContainerName);
}
/**
* 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.
*
*/
@Import(name="blobPrefix")
private @Nullable Output blobPrefix;
/**
* @return 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.
*
*/
public Optional> blobPrefix() {
return Optional.ofNullable(this.blobPrefix);
}
/**
* 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.
*
*/
@Import(name="fileMode")
private @Nullable Output fileMode;
/**
* @return 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.
*
*/
public Optional> fileMode() {
return Optional.ofNullable(this.fileMode);
}
/**
* 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 '..').
*
*/
@Import(name="filePath")
private @Nullable Output filePath;
/**
* @return 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 '..').
*
*/
public Optional> filePath() {
return Optional.ofNullable(this.filePath);
}
/**
* The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access.
*
*/
@Import(name="httpUrl")
private @Nullable Output httpUrl;
/**
* @return The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access.
*
*/
public Optional> httpUrl() {
return Optional.ofNullable(this.httpUrl);
}
/**
* The reference to a user assigned identity associated with the Batch pool which a compute node will use.
*
*/
@Import(name="identityReference")
private @Nullable Output identityReference;
/**
* @return The reference to a user assigned identity associated with the Batch pool which a compute node will use.
*
*/
public Optional> identityReference() {
return Optional.ofNullable(this.identityReference);
}
/**
* The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access.
*
*/
@Import(name="storageContainerUrl")
private @Nullable Output storageContainerUrl;
/**
* @return The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access.
*
*/
public Optional> storageContainerUrl() {
return Optional.ofNullable(this.storageContainerUrl);
}
private ResourceFileArgs() {}
private ResourceFileArgs(ResourceFileArgs $) {
this.autoStorageContainerName = $.autoStorageContainerName;
this.blobPrefix = $.blobPrefix;
this.fileMode = $.fileMode;
this.filePath = $.filePath;
this.httpUrl = $.httpUrl;
this.identityReference = $.identityReference;
this.storageContainerUrl = $.storageContainerUrl;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourceFileArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ResourceFileArgs $;
public Builder() {
$ = new ResourceFileArgs();
}
public Builder(ResourceFileArgs defaults) {
$ = new ResourceFileArgs(Objects.requireNonNull(defaults));
}
/**
* @param autoStorageContainerName The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
*
* @return builder
*
*/
public Builder autoStorageContainerName(@Nullable Output autoStorageContainerName) {
$.autoStorageContainerName = autoStorageContainerName;
return this;
}
/**
* @param autoStorageContainerName The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
*
* @return builder
*
*/
public Builder autoStorageContainerName(String autoStorageContainerName) {
return autoStorageContainerName(Output.of(autoStorageContainerName));
}
/**
* @param blobPrefix 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 builder
*
*/
public Builder blobPrefix(@Nullable Output blobPrefix) {
$.blobPrefix = blobPrefix;
return this;
}
/**
* @param blobPrefix 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 builder
*
*/
public Builder blobPrefix(String blobPrefix) {
return blobPrefix(Output.of(blobPrefix));
}
/**
* @param fileMode 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 builder
*
*/
public Builder fileMode(@Nullable Output fileMode) {
$.fileMode = fileMode;
return this;
}
/**
* @param fileMode 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 builder
*
*/
public Builder fileMode(String fileMode) {
return fileMode(Output.of(fileMode));
}
/**
* @param filePath 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 builder
*
*/
public Builder filePath(@Nullable Output filePath) {
$.filePath = filePath;
return this;
}
/**
* @param filePath 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 builder
*
*/
public Builder filePath(String filePath) {
return filePath(Output.of(filePath));
}
/**
* @param httpUrl The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access.
*
* @return builder
*
*/
public Builder httpUrl(@Nullable Output httpUrl) {
$.httpUrl = httpUrl;
return this;
}
/**
* @param httpUrl The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access.
*
* @return builder
*
*/
public Builder httpUrl(String httpUrl) {
return httpUrl(Output.of(httpUrl));
}
/**
* @param identityReference The reference to a user assigned identity associated with the Batch pool which a compute node will use.
*
* @return builder
*
*/
public Builder identityReference(@Nullable Output identityReference) {
$.identityReference = identityReference;
return this;
}
/**
* @param identityReference The reference to a user assigned identity associated with the Batch pool which a compute node will use.
*
* @return builder
*
*/
public Builder identityReference(ComputeNodeIdentityReferenceArgs identityReference) {
return identityReference(Output.of(identityReference));
}
/**
* @param storageContainerUrl The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access.
*
* @return builder
*
*/
public Builder storageContainerUrl(@Nullable Output storageContainerUrl) {
$.storageContainerUrl = storageContainerUrl;
return this;
}
/**
* @param storageContainerUrl The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access.
*
* @return builder
*
*/
public Builder storageContainerUrl(String storageContainerUrl) {
return storageContainerUrl(Output.of(storageContainerUrl));
}
public ResourceFileArgs build() {
return $;
}
}
}