Data.Cloud.AzureAPI.TBlobActionConditional

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TBlobActionConditional = record
    IfSourceModifiedSince: string;
    IfSourceUnmodifiedSince: string;
    IfSourceMatch: string;
    IfSourceNoneMatch: string;
    IfModifiedSince: string;
    IfUnmodifiedSince: string;
    IfMatch: string;
    IfNoneMatch: string;
    IfSequenceNumberLessThanOrEqual: string;
    IfSequenceNumberLessThan: string;
    IfSequenceNumberEquals: string;
    class function Create: TBlobActionConditional; static;
    procedure PopulateHeaders(Headers: TStrings);
  end;

C++

struct DECLSPEC_DRECORD TBlobActionConditional
{
public:
    System::UnicodeString IfSourceModifiedSince;
    System::UnicodeString IfSourceUnmodifiedSince;
    System::UnicodeString IfSourceMatch;
    System::UnicodeString IfSourceNoneMatch;
    System::UnicodeString IfModifiedSince;
    System::UnicodeString IfUnmodifiedSince;
    System::UnicodeString IfMatch;
    System::UnicodeString IfNoneMatch;
    System::UnicodeString IfSequenceNumberLessThanOrEqual;
    System::UnicodeString IfSequenceNumberLessThan;
    System::UnicodeString IfSequenceNumberEquals;
    static TBlobActionConditional __fastcall Create();
    void __fastcall PopulateHeaders(System::Classes::TStrings* Headers);
};

Properties

Type Visibility Source Unit Parent
record
struct
public
Data.Cloud.AzureAPI.pas
Data.Cloud.AzureAPI.hpp
Data.Cloud.AzureAPI Data.Cloud.AzureAPI

Description

Record of optional conditional restrictions.

TBlobActionConditional is a record of optional conditional restrictions. These restrictions can be used, for example, when copying a blob or when creating a blob snapshot. They provide a way to specify under which conditions the action should happen or not happen.

The fields of the TBlobActionConditional record are listed in the following table:

Field Meaning

IfSourceModifiedSince

A DateTime value that specifies to copy the blob only if the source blob has been modified since the specified date/time.

IfSourceUnmodifiedSince

A DateTime value that specifies to copy the blob only if the source blob has not been modified since the specified date/time.

IfSourceMatch

Specifies to this conditional header to copy the source blob only if its ETag matches the value specified.

IfSourceNoneMatch

Specifies to this conditional header to copy the blob only if its ETag does not match the value specified.

IfModifiedSince

A DateTime value that specifies to this conditional header to perform one of the following actions:

  • Copying a Blob: only if the destination blob has been modified since the specified date/time.
  • Creating a Snapshot: only if the blob has been modified since the specified date/time.

IfUnmodifiedSince

A DateTime value that specifies to this conditional header to perform the action.

  • Copying a Blob: only if the destination blob has not been modified since the specified date/time.
  • Creating a Snapshot: only if the blob has not been modified since the specified date/time.

IfMatch

Specifies an ETag value to perform the action only if the blob's ETag value matches the value specified. The blob checked is either the destination blob (when copying a blob) or the blob being snapshot (when creating a snapshot).

IfNoneMatch

Specifies an ETag value to perform the action only if the blob's ETag value does not match the value specified. The blob checked is either the destination blob (when copying a blob) or the blob being snapshot (when creating a snapshot).

IfSequenceNumberLessThanOrEqual

Specifies a number that must be greater than or equal to the sequence number. IfSequenceNumberLessThanOrEqual is used in the PutPage action.

IfSequenceNumberLessThan

Specifies a number that must be greater than the sequence number. IfSequenceNumberLessThan is used in the PutPage action.

IfSequenceNumberEquals

Specifies a number that must be equal to the sequence number. IfSequenceNumberEquals is used in the PutPage action.

Create

Creates a new instance of TBlobActionConditional.

PopulateHeaders

Populates the given header list with the key/value pair of any field with an assigned value. Note that the keys used will be the header names, as required by Azure requests. The Headers parameter specifies the headers list to populate.

See Also