BlobContainers Interface

public interface BlobContainers

Type representing BlobContainers.

Method Summary

Modifier and Type Method and Description
abstract rx.Observable<LegalHold> clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List<String> tags)

Clears legal hold tags.

abstract Blank defineContainer(String name)

Begins definition for a new Container resource.

abstract Blank defineImmutabilityPolicy(String name)

Begins definition for a new ImmutabilityPolicy resource.

abstract rx.Completable deleteAsync(String resourceGroupName, String accountName, String containerName)

Deletes specified container under its account.

abstract rx.Completable deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch)

Aborts an unlocked immutability policy.

abstract rx.Observable<ImmutabilityPolicy> extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays)

Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy.

abstract rx.Observable<BlobContainer> getAsync(String resourceGroupName, String accountName, String containerName)

Gets properties of a specified container.

abstract rx.Observable<ImmutabilityPolicy> getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

Gets the existing immutability policy along with the corresponding ETag in response headers and body.

abstract rx.Observable<ListContainerItem> listAsync(String resourceGroupName, String accountName)

Lists all containers and does not support a prefix like data plane.

abstract rx.Observable<ImmutabilityPolicy> lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch)

Sets the ImmutabilityPolicy to Locked state.

abstract rx.Observable<LegalHold> setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List<String> tags)

Sets legal hold tags.

Method Details

clearLegalHoldAsync

public abstract Observable clearLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags)

Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Returns:

the observable for the request

defineContainer

public abstract BlobContainer.DefinitionStages.Blank defineContainer(String name)

Begins definition for a new Container resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Container definition.

defineImmutabilityPolicy

public abstract ImmutabilityPolicy.DefinitionStages.Blank defineImmutabilityPolicy(String name)

Begins definition for a new ImmutabilityPolicy resource.

Parameters:

name - resource name.

Returns:

the first stage of the new ImmutabilityPolicy definition.

deleteAsync

public abstract Completable deleteAsync(String resourceGroupName, String accountName, String containerName)

Deletes specified container under its account.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

deleteImmutabilityPolicyAsync

public abstract Completable deleteImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch)

Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way is to delete the container after deleting all blobs inside the container.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
ifMatch - The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

Returns:

the observable for the request

extendImmutabilityPolicyAsync

public abstract Observable extendImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch, int immutabilityPeriodSinceCreationInDays)

Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
ifMatch - The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.
immutabilityPeriodSinceCreationInDays - The immutability period for the blobs in the container since the policy creation, in days.

Returns:

the observable for the request

getAsync

public abstract Observable getAsync(String resourceGroupName, String accountName, String containerName)

Gets properties of a specified container.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

getImmutabilityPolicyAsync

public abstract Observable getImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName)

Gets the existing immutability policy along with the corresponding ETag in response headers and body.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.

Returns:

the observable for the request

listAsync

public abstract Observable listAsync(String resourceGroupName, String accountName)

Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

Returns:

the observable for the request

lockImmutabilityPolicyAsync

public abstract Observable lockImmutabilityPolicyAsync(String resourceGroupName, String accountName, String containerName, String ifMatch)

Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
ifMatch - The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

Returns:

the observable for the request

setLegalHoldAsync

public abstract Observable setLegalHoldAsync(String resourceGroupName, String accountName, String containerName, List tags)

Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.

Parameters:

resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
accountName - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName - The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
tags - Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.

Returns:

the observable for the request

Applies to