IPWorks Cloud 2020 iOS Edition

Questions / Feedback?

updatePageBlob (method)

Updates a page blob's size and/or sequence number.

Syntax

- (void)updatePageBlob:(NSString*)pageBlob :(long long)newSize :(int)sequenceNumAction :(long long)newSequenceNum;
public func updatePageBlob(_ pageBlob: String, _ newSize: Int64, _ sequenceNumAction: Int32, _ newSequenceNum: Int64) throws -> Void

Remarks

This method updates the size and/or sequence number of the specified PageBlob in the container currently selected by Container.

NewSize must either be -1 (to keep the page blob's current size), or a multiple of 512; i.e. NewSize % 512 == 0. If NewSize is less than the page blob's current size, all pages above the specified value are cleared.

SequenceNumAction determines how the page blob's sequence number should be changed; possible values are:

None (0) The page blob's sequence number remains unchanged. NewSequenceNum is ignored.
Increment (1) The page blob's sequence number is incremented by 1. NewSequenceNum is ignored.
Update (2) The page blob's sequence number is set to NewSequenceNum.
Use Greater (3) The page blob's sequence number is set to the greater of NewSequenceNum and the current sequence number.

In cases where NewSequenceNum is used, it must be a value in the range 0 to 2^63 - 1, inclusive.

If the specified blob has an active lease, its lease Id must be specified using LeaseId, or the request will fail.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 iOS Edition - Version 20.0 [Build 8265]