public final class ContainerURL extends StorageURL
| Constructor and Description |
|---|
ContainerURL(java.net.URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> |
acquireLease(java.lang.String proposedID,
java.lang.Integer duration,
HTTPAccessConditions httpAccessConditions)
Acquires a lease on the container for delete operations.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> |
breakLease(HTTPAccessConditions httpAccessConditions)
Breaks the container's previously-acquired lease.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerCreateHeaders,java.lang.Void>> |
create(Metadata metadata,
PublicAccessType accessType)
Creates a new container within a storage account.
|
AppendBlobURL |
createAppendBlobURL(java.lang.String blobName)
Creates creates a new AppendBlobURL object by concatenating blobName to the end of
ContainerURL's URL.
|
BlobURL |
createBlobURL(java.lang.String blobName)
Creates a new BlobURL object by concatenating blobName to the end of
ContainerURL's URL.
|
BlockBlobURL |
createBlockBlobURL(java.lang.String blobName)
Creates a new
BlockBlobURL object by concatenating the blobName to the end of
ContainerURL's URL. |
PageBlobURL |
createPageBlobURL(java.lang.String blobName)
Creates creates a new PageBlobURL object by concatenating blobName to the end of
ContainerURL's URL.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerDeleteHeaders,java.lang.Void>> |
delete(ContainerAccessConditions accessConditions)
Marks the specified container for deletion.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerGetAclHeaders,java.util.List<SignedIdentifier>>> |
getPermissions(LeaseAccessConditions leaseAccessConditions)
Returns the container's permissions.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerGetPropertiesHeaders,java.lang.Void>> |
getPropertiesAndMetadata(LeaseAccessConditions leaseAccessConditions)
Returns the container's metadata and system properties.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerListBlobsHeaders,ListBlobsResponse>> |
listBlobs(java.lang.String marker,
ListBlobsOptions options)
Returns a single segment of blobs starting from the specified Marker.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> |
releaseLease(java.lang.String leaseID,
HTTPAccessConditions httpAccessConditions)
Releases the container's previously-acquired lease.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> |
releaseLease(java.lang.String leaseID,
java.lang.String proposedID,
HTTPAccessConditions httpAccessConditions)
Changes the container's leaseID.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> |
renewLease(java.lang.String leaseID,
HTTPAccessConditions httpAccessConditions)
Renews the container's previously-acquired lease.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerSetMetadataHeaders,java.lang.Void>> |
setMetadata(Metadata metadata,
ContainerAccessConditions accessConditions)
Sets the container's metadata.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerSetAclHeaders,java.lang.Void>> |
setPermissions(PublicAccessType accessType,
java.util.List<SignedIdentifier> identifiers,
ContainerAccessConditions accessConditions)
Sets the container's permissions.
|
ContainerURL |
withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
ContainerURL with the given pipeline. |
createPipeline, toString, toURLpublic ContainerURL(java.net.URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
public ContainerURL withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
ContainerURL with the given pipeline.pipeline - An HttpPipeline object to set.ContainerURL object with the given pipeline.public BlockBlobURL createBlockBlobURL(java.lang.String blobName)
BlockBlobURL object by concatenating the blobName to the end of
ContainerURL's URL. The new BlockBlobUrl uses the same request policy pipeline as the ContainerURL.
To change the pipeline, create the BlockBlobUrl and then call its WithPipeline method passing in the
desired pipeline object. Or, call this package's NewBlockBlobUrl instead of calling this object's
NewBlockBlobUrl method.blobName - A String representing the name of the blob.BlockBlobURL object which references the blob with the specified name in this container.public PageBlobURL createPageBlobURL(java.lang.String blobName)
blobName - A String representing the name of the blob.PageBlobURL object which references the blob with the specified name in this container.public AppendBlobURL createAppendBlobURL(java.lang.String blobName)
blobName - A String representing the name of the blob.AppendBlobURL object which references the blob with the specified name in this container.public BlobURL createBlobURL(java.lang.String blobName)
blobName - A String representing the name of the blob.BlobURL object which references the blob with the specified name in this container.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerCreateHeaders,java.lang.Void>> create(Metadata metadata, PublicAccessType accessType)
metadata - A Metadata object that specifies key value pairs to set on the blob.accessType - A value of the class PublicAccessType.Single which emits a RestResponse containing the ContainerCreateHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerDeleteHeaders,java.lang.Void>> delete(ContainerAccessConditions accessConditions)
accessConditions - A ContainerAccessConditions object that specifies under which conditions the operation should
complete.Single which emits a RestResponse containing the ContainerDeleteHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerGetPropertiesHeaders,java.lang.Void>> getPropertiesAndMetadata(LeaseAccessConditions leaseAccessConditions)
leaseAccessConditions - A LeaseAccessConditions object that specifies the lease on the container if there is one.Single which emits a RestResponse containing the ContainerGetPropertiesHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerSetMetadataHeaders,java.lang.Void>> setMetadata(Metadata metadata, ContainerAccessConditions accessConditions)
metadata - A Metadata object that specifies key value pairs to set on the blob.accessConditions - A ContainerAccessConditions object that specifies under which conditions the operation should
complete.Single which emits a RestResponse containing the ContainerSetMetadataHeaders and
a Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerGetAclHeaders,java.util.List<SignedIdentifier>>> getPermissions(LeaseAccessConditions leaseAccessConditions)
leaseAccessConditions - A LeaseAccessConditions object that specifies the lease on the container if there is one.Single which emits a RestResponse containing the ContainerGetAclHeaders and a
List of SignedIdentifier as the body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerSetAclHeaders,java.lang.Void>> setPermissions(PublicAccessType accessType, java.util.List<SignedIdentifier> identifiers, ContainerAccessConditions accessConditions)
accessType - A value of the class PublicAccessType. Passing null turns off public access.identifiers - A java.util.List of SignedIdentifier objects that specify the permissions for the container.accessConditions - A ContainerAccessConditions object that specifies under which conditions the operation should
complete.Single which emits a RestResponse containing the ContainerSetAclHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> acquireLease(java.lang.String proposedID, java.lang.Integer duration, HTTPAccessConditions httpAccessConditions)
proposedID - A String in any valid GUID format.duration - A Integer specifies the duration of the lease, in seconds, or negative one (-1) for a lease that
never expires. A non-infinite lease can be between 15 and 60 seconds.httpAccessConditions - A HTTPAccessConditions object that represents HTTP access conditions.Single which emits a RestResponse containing the ContainerLeaseHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> renewLease(java.lang.String leaseID, HTTPAccessConditions httpAccessConditions)
leaseID - A String representing the lease on the blob.httpAccessConditions - A HTTPAccessConditions object that represents HTTP access conditions.Single which emits a RestResponse containing the ContainerLeaseHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> releaseLease(java.lang.String leaseID, HTTPAccessConditions httpAccessConditions)
leaseID - A String representing the lease on the blob.httpAccessConditions - A HTTPAccessConditions object that represents HTTP access conditions.Single which emits a RestResponse containing the ContainerLeaseHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> breakLease(HTTPAccessConditions httpAccessConditions)
httpAccessConditions - A HTTPAccessConditions object that represents HTTP access conditions.Single which emits a RestResponse containing the ContainerLeaseHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerLeaseHeaders,java.lang.Void>> releaseLease(java.lang.String leaseID, java.lang.String proposedID, HTTPAccessConditions httpAccessConditions)
leaseID - A String representing the lease on the blob.proposedID - A String in any valid GUID format.httpAccessConditions - A HTTPAccessConditions object that represents HTTP access conditions.Single which emits a RestResponse containing the ContainerLeaseHeaders an a
Void body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<ContainerListBlobsHeaders,ListBlobsResponse>> listBlobs(java.lang.String marker, ListBlobsOptions options)
marker - A String value that identifies the portion of the list to be returned with the next list operation.options - A ListBlobsOptions object which specifies one or more datasets to include in the response.Single which emits a RestResponse containing the ContainerListBlobsHeaders and a
ListBlobsResponse as the body if successful.