ContainerRestClient
class ContainerRestClient
public ContainerRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version)
Initializes a new instance of ContainerRestClient.
public ResponseWithHeaders<ContainerAcquireLeaseHeaders> AcquireLease(int? timeout = default, long? duration = default, string proposedLeaseId = null, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public virtual Response AcquireLease(int? timeout = default, long? duration = default, string proposedLeaseId = null, RequestConditions requestConditions = null, RequestContext context = null)
[Protocol Method] [Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public Task<ResponseWithHeaders<ContainerAcquireLeaseHeaders>> AcquireLeaseAsync(int? timeout = default, long? duration = default, string proposedLeaseId = null, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public virtual Task<Response> AcquireLeaseAsync(int? timeout = default, long? duration = default, string proposedLeaseId = null, RequestConditions requestConditions = null, RequestContext context = null)
[Protocol Method] [Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite
This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public ResponseWithHeaders<ContainerBreakLeaseHeaders> BreakLease(int? timeout = default, long? breakPeriod = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public Task<ResponseWithHeaders<ContainerBreakLeaseHeaders>> BreakLeaseAsync(int? timeout = default, long? breakPeriod = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public ResponseWithHeaders<ContainerChangeLeaseHeaders> ChangeLease(string leaseId, string proposedLeaseId, int? timeout = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public Task<ResponseWithHeaders<ContainerChangeLeaseHeaders>> ChangeLeaseAsync(string leaseId, string proposedLeaseId, int? timeout = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public ResponseWithHeaders<ContainerCreateHeaders> Create(int? timeout = default, IDictionary<string, string> metadata = null, PublicAccessType? access = default, string defaultEncryptionScope = null, bool? preventEncryptionScopeOverride = default, CancellationToken cancellationToken = default)
creates a new container under the specified account. If the container with the same name already exists, the operation fails.
public Task<ResponseWithHeaders<ContainerCreateHeaders>> CreateAsync(int? timeout = default, IDictionary<string, string> metadata = null, PublicAccessType? access = default, string defaultEncryptionScope = null, bool? preventEncryptionScopeOverride = default, CancellationToken cancellationToken = default)
creates a new container under the specified account. If the container with the same name already exists, the operation fails.
public ResponseWithHeaders<ContainerDeleteHeaders> Delete(int? timeout = default, string leaseId = null, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
operation marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection.
public Task<ResponseWithHeaders<ContainerDeleteHeaders>> DeleteAsync(int? timeout = default, string leaseId = null, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
operation marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection.
public ResponseWithHeaders<FilterBlobSegment, ContainerFilterBlobsHeaders> FilterBlobs(int? timeout = default, string where = null, string marker = null, int? maxresults = default, IEnumerable<FilterBlobsIncludeItem> include = null, CancellationToken cancellationToken = default)
The Filter Blobs operation enables callers to list blobs in a container whose tags match a given search expression. Filter blobs searches within the given container.
public Task<ResponseWithHeaders<FilterBlobSegment, ContainerFilterBlobsHeaders>> FilterBlobsAsync(int? timeout = default, string where = null, string marker = null, int? maxresults = default, IEnumerable<FilterBlobsIncludeItem> include = null, CancellationToken cancellationToken = default)
The Filter Blobs operation enables callers to list blobs in a container whose tags match a given search expression. Filter blobs searches within the given container.
public ResponseWithHeaders<IReadOnlyList<BlobSignedIdentifier>, ContainerGetAccessPolicyHeaders> GetAccessPolicy(int? timeout = default, string leaseId = null, CancellationToken cancellationToken = default)
gets the permissions for the specified container. The permissions indicate whether container data may be accessed publicly.
public Task<ResponseWithHeaders<IReadOnlyList<BlobSignedIdentifier>, ContainerGetAccessPolicyHeaders>> GetAccessPolicyAsync(int? timeout = default, string leaseId = null, CancellationToken cancellationToken = default)
gets the permissions for the specified container. The permissions indicate whether container data may be accessed publicly.
public ResponseWithHeaders<ContainerGetAccountInfoHeaders> GetAccountInfo(int? timeout = default, CancellationToken cancellationToken = default)
Returns the sku name and account kind.
public Task<ResponseWithHeaders<ContainerGetAccountInfoHeaders>> GetAccountInfoAsync(int? timeout = default, CancellationToken cancellationToken = default)
Returns the sku name and account kind.
public ResponseWithHeaders<ContainerGetPropertiesHeaders> GetProperties(int? timeout = default, string leaseId = null, CancellationToken cancellationToken = default)
returns all user-defined metadata and system properties for the specified container. The data returned does not include the container's list of blobs.
public Task<ResponseWithHeaders<ContainerGetPropertiesHeaders>> GetPropertiesAsync(int? timeout = default, string leaseId = null, CancellationToken cancellationToken = default)
returns all user-defined metadata and system properties for the specified container. The data returned does not include the container's list of blobs.
public ResponseWithHeaders<ListBlobsFlatSegmentResponse, ContainerListBlobFlatSegmentHeaders> ListBlobFlatSegment(string prefix = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public Task<ResponseWithHeaders<ListBlobsFlatSegmentResponse, ContainerListBlobFlatSegmentHeaders>> ListBlobFlatSegmentAsync(string prefix = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public ResponseWithHeaders<ListBlobsFlatSegmentResponse, ContainerListBlobFlatSegmentHeaders> ListBlobFlatSegmentNextPage(string nextLink, string prefix = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public Task<ResponseWithHeaders<ListBlobsFlatSegmentResponse, ContainerListBlobFlatSegmentHeaders>> ListBlobFlatSegmentNextPageAsync(string nextLink, string prefix = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public ResponseWithHeaders<ListBlobsHierarchySegmentResponse, ContainerListBlobHierarchySegmentHeaders> ListBlobHierarchySegment(string prefix = null, string delimiter = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public Task<ResponseWithHeaders<ListBlobsHierarchySegmentResponse, ContainerListBlobHierarchySegmentHeaders>> ListBlobHierarchySegmentAsync(string prefix = null, string delimiter = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public ResponseWithHeaders<ListBlobsHierarchySegmentResponse, ContainerListBlobHierarchySegmentHeaders> ListBlobHierarchySegmentNextPage(string nextLink, string prefix = null, string delimiter = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public Task<ResponseWithHeaders<ListBlobsHierarchySegmentResponse, ContainerListBlobHierarchySegmentHeaders>> ListBlobHierarchySegmentNextPageAsync(string nextLink, string prefix = null, string delimiter = null, string marker = null, int? maxresults = default, IEnumerable<ListBlobsIncludeItem> include = null, int? timeout = default, CancellationToken cancellationToken = default)
[Update] The List Blobs operation returns a list of the blobs under the specified container.
public ResponseWithHeaders<ContainerReleaseLeaseHeaders> ReleaseLease(string leaseId, int? timeout = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public Task<ResponseWithHeaders<ContainerReleaseLeaseHeaders>> ReleaseLeaseAsync(string leaseId, int? timeout = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public ResponseWithHeaders<ContainerRenameHeaders> Rename(string sourceContainerName, int? timeout = default, string sourceLeaseId = null, CancellationToken cancellationToken = default)
Renames an existing container.
public Task<ResponseWithHeaders<ContainerRenameHeaders>> RenameAsync(string sourceContainerName, int? timeout = default, string sourceLeaseId = null, CancellationToken cancellationToken = default)
Renames an existing container.
public ResponseWithHeaders<ContainerRenewLeaseHeaders> RenewLease(string leaseId, int? timeout = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public Task<ResponseWithHeaders<ContainerRenewLeaseHeaders>> RenewLeaseAsync(string leaseId, int? timeout = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, CancellationToken cancellationToken = default)
[Update] establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
public ResponseWithHeaders<ContainerRestoreHeaders> Restore(int? timeout = default, string deletedContainerName = null, string deletedContainerVersion = null, CancellationToken cancellationToken = default)
Restores a previously-deleted container.
public Task<ResponseWithHeaders<ContainerRestoreHeaders>> RestoreAsync(int? timeout = default, string deletedContainerName = null, string deletedContainerVersion = null, CancellationToken cancellationToken = default)
Restores a previously-deleted container.
public ResponseWithHeaders<ContainerSetAccessPolicyHeaders> SetAccessPolicy(int? timeout = default, string leaseId = null, PublicAccessType? access = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, IEnumerable<BlobSignedIdentifier> containerAcl = null, CancellationToken cancellationToken = default)
sets the permissions for the specified container. The permissions indicate whether blobs in a container may be accessed publicly.
public Task<ResponseWithHeaders<ContainerSetAccessPolicyHeaders>> SetAccessPolicyAsync(int? timeout = default, string leaseId = null, PublicAccessType? access = default, DateTimeOffset? ifModifiedSince = default, DateTimeOffset? ifUnmodifiedSince = default, IEnumerable<BlobSignedIdentifier> containerAcl = null, CancellationToken cancellationToken = default)
sets the permissions for the specified container. The permissions indicate whether blobs in a container may be accessed publicly.
public ResponseWithHeaders<ContainerSetMetadataHeaders> SetMetadata(int? timeout = default, string leaseId = null, IDictionary<string, string> metadata = null, DateTimeOffset? ifModifiedSince = default, CancellationToken cancellationToken = default)
operation sets one or more user-defined name-value pairs for the specified container.
public Task<ResponseWithHeaders<ContainerSetMetadataHeaders>> SetMetadataAsync(int? timeout = default, string leaseId = null, IDictionary<string, string> metadata = null, DateTimeOffset? ifModifiedSince = default, CancellationToken cancellationToken = default)
operation sets one or more user-defined name-value pairs for the specified container.
public ResponseWithHeaders<Stream, ContainerSubmitBatchHeaders> SubmitBatch(long contentLength, string multipartContentType, Stream body, int? timeout = default, CancellationToken cancellationToken = default)
The Batch operation allows multiple API calls to be embedded into a single HTTP request.
public Task<ResponseWithHeaders<Stream, ContainerSubmitBatchHeaders>> SubmitBatchAsync(long contentLength, string multipartContentType, Stream body, int? timeout = default, CancellationToken cancellationToken = default)
The Batch operation allows multiple API calls to be embedded into a single HTTP request.