Data.Cloud.AzureAPI.TAzureBlobService.ChangeBlobLease
Delphi
function ChangeBlobLease(const AContainerName, ABlobName, ALeaseID, AProposedLeaseID: string; const AResponseInfo: TCloudResponseInfo): Boolean;
C++
bool __fastcall ChangeBlobLease(const System::UnicodeString AContainerName, const System::UnicodeString ABlobName, const System::UnicodeString ALeaseID, const System::UnicodeString AProposedLeaseID, Data::Cloud::Cloudapi::TCloudResponseInfo* const AResponseInfo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AzureAPI.pas Data.Cloud.AzureAPI.hpp |
Data.Cloud.AzureAPI | TAzureBlobService |
Description
Attempts to change the identifier of a lease (lock for write and delete operations) on the specified blob of the specified container.
ChangeBlobLease accepts the following parameters:
ContainerName
is the name of the container where the target blob belongs.BlobName
is the name of the target blob.LeaseId
must be the GUID that is the identifier of the current lease on the specified blob. If the proposed GUID (ProposedLeaseID
) is used, ChangeBlobLease changes the value ofLeaseId
to the new GUID.ResponseInfo
is an optional instance of TCloudResponseInfo to store the information of the response. Use a nil value if you do not need the information of the response.
ChangeBlobLease returns True
if the lease ID is modified or False
otherwise.
See Also
- Data.Cloud.AzureAPI.TAzureBlobService.AcquireBlobLease
- Data.Cloud.AzureAPI.TAzureBlobService.BreakBlobLease
- Data.Cloud.AzureAPI.TAzureBlobService.ReleaseBlobLease
- Data.Cloud.AzureAPI.TAzureBlobService.RenewBlobLease