@azure/storage-blob 12.5.1-alpha.20210323.1 → 12.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +57 -51
- package/dist/index.js +8149 -5971
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatch.js +3 -3
- package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobBatchClient.js +3 -3
- package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobLeaseClient.js +7 -7
- package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js +12 -12
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +72 -61
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +18 -18
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/index.js +11 -0
- package/dist-esm/storage-blob/src/generated/src/index.js.map +1 -0
- package/dist-esm/storage-blob/src/generated/src/models/index.js +2 -2
- package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js +3714 -2267
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js +848 -903
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js +148 -142
- package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js +675 -592
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js +254 -223
- package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/container.js +426 -377
- package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/directory.js +153 -128
- package/dist-esm/storage-blob/src/generated/src/operations/directory.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/index.js +3 -5
- package/dist-esm/storage-blob/src/generated/src/operations/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js +297 -263
- package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/service.js +207 -177
- package/dist-esm/storage-blob/src/generated/src/operations/service.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js +14 -20
- package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js +13 -12
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +2 -2
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/tracing.js +3 -2
- package/dist-esm/storage-blob/src/utils/tracing.js.map +1 -1
- package/package.json +10 -11
- package/typings/3.1/storage-blob.d.ts +888 -3049
- package/typings/latest/storage-blob.d.ts +889 -3049
- package/dist-esm/storage-blob/src/generated/src/models/appendBlobMappers.js +0 -9
- package/dist-esm/storage-blob/src/generated/src/models/appendBlobMappers.js.map +0 -1
- package/dist-esm/storage-blob/src/generated/src/models/blobMappers.js +0 -9
- package/dist-esm/storage-blob/src/generated/src/models/blobMappers.js.map +0 -1
- package/dist-esm/storage-blob/src/generated/src/models/blockBlobMappers.js +0 -9
- package/dist-esm/storage-blob/src/generated/src/models/blockBlobMappers.js.map +0 -1
- package/dist-esm/storage-blob/src/generated/src/models/containerMappers.js +0 -9
- package/dist-esm/storage-blob/src/generated/src/models/containerMappers.js.map +0 -1
- package/dist-esm/storage-blob/src/generated/src/models/directoryMappers.js +0 -9
- package/dist-esm/storage-blob/src/generated/src/models/directoryMappers.js.map +0 -1
- package/dist-esm/storage-blob/src/generated/src/models/pageBlobMappers.js +0 -9
- package/dist-esm/storage-blob/src/generated/src/models/pageBlobMappers.js.map +0 -1
- package/dist-esm/storage-blob/src/generated/src/models/serviceMappers.js +0 -9
- package/dist-esm/storage-blob/src/generated/src/models/serviceMappers.js.map +0 -1
@@ -1,303 +1,332 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
8
|
import * as coreHttp from "@azure/core-http";
|
11
|
-
import * as Mappers from "../models/
|
9
|
+
import * as Mappers from "../models/mappers";
|
12
10
|
import * as Parameters from "../models/parameters";
|
13
11
|
/** Class representing a PageBlob. */
|
14
12
|
var PageBlob = /** @class */ (function () {
|
15
13
|
/**
|
16
|
-
*
|
17
|
-
* @param
|
14
|
+
* Initialize a new instance of the class PageBlob class.
|
15
|
+
* @param client Reference to the service client
|
18
16
|
*/
|
19
17
|
function PageBlob(client) {
|
20
18
|
this.client = client;
|
21
19
|
}
|
22
|
-
|
23
|
-
|
20
|
+
/**
|
21
|
+
* The Create operation creates a new page blob.
|
22
|
+
* @param contentLength The length of the request.
|
23
|
+
* @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. The
|
24
|
+
* page blob size must be aligned to a 512-byte boundary.
|
25
|
+
* @param options The options parameters.
|
26
|
+
*/
|
27
|
+
PageBlob.prototype.create = function (contentLength, blobContentLength, options) {
|
28
|
+
var operationArguments = {
|
24
29
|
contentLength: contentLength,
|
25
30
|
blobContentLength: blobContentLength,
|
26
|
-
options: options
|
27
|
-
}
|
31
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
32
|
+
};
|
33
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
28
34
|
};
|
29
|
-
|
30
|
-
|
31
|
-
|
35
|
+
/**
|
36
|
+
* The Upload Pages operation writes a range of pages to a page blob
|
37
|
+
* @param contentLength The length of the request.
|
38
|
+
* @param body Initial data
|
39
|
+
* @param options The options parameters.
|
40
|
+
*/
|
41
|
+
PageBlob.prototype.uploadPages = function (contentLength, body, options) {
|
42
|
+
var operationArguments = {
|
32
43
|
contentLength: contentLength,
|
33
|
-
|
34
|
-
|
44
|
+
body: body,
|
45
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
46
|
+
};
|
47
|
+
return this.client.sendOperationRequest(operationArguments, uploadPagesOperationSpec);
|
35
48
|
};
|
36
|
-
|
37
|
-
|
49
|
+
/**
|
50
|
+
* The Clear Pages operation clears a set of pages from a page blob
|
51
|
+
* @param contentLength The length of the request.
|
52
|
+
* @param options The options parameters.
|
53
|
+
*/
|
54
|
+
PageBlob.prototype.clearPages = function (contentLength, options) {
|
55
|
+
var operationArguments = {
|
38
56
|
contentLength: contentLength,
|
39
|
-
options: options
|
40
|
-
}
|
57
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
58
|
+
};
|
59
|
+
return this.client.sendOperationRequest(operationArguments, clearPagesOperationSpec);
|
41
60
|
};
|
42
|
-
|
43
|
-
|
61
|
+
/**
|
62
|
+
* The Upload Pages operation writes a range of pages to a page blob where the contents are read from a
|
63
|
+
* URL
|
64
|
+
* @param sourceUrl Specify a URL to the copy source.
|
65
|
+
* @param sourceRange Bytes of source data in the specified range. The length of this range should
|
66
|
+
* match the ContentLength header and x-ms-range/Range destination range header.
|
67
|
+
* @param contentLength The length of the request.
|
68
|
+
* @param range The range of bytes to which the source range would be written. The range should be 512
|
69
|
+
* aligned and range-end is required.
|
70
|
+
* @param options The options parameters.
|
71
|
+
*/
|
72
|
+
PageBlob.prototype.uploadPagesFromURL = function (sourceUrl, sourceRange, contentLength, range, options) {
|
73
|
+
var operationArguments = {
|
44
74
|
sourceUrl: sourceUrl,
|
45
75
|
sourceRange: sourceRange,
|
46
76
|
contentLength: contentLength,
|
47
77
|
range: range,
|
48
|
-
options: options
|
49
|
-
}
|
78
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
79
|
+
};
|
80
|
+
return this.client.sendOperationRequest(operationArguments, uploadPagesFromURLOperationSpec);
|
50
81
|
};
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
82
|
+
/**
|
83
|
+
* The Get Page Ranges operation returns the list of valid page ranges for a page blob or snapshot of a
|
84
|
+
* page blob
|
85
|
+
* @param options The options parameters.
|
86
|
+
*/
|
87
|
+
PageBlob.prototype.getPageRanges = function (options) {
|
88
|
+
var operationArguments = {
|
89
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
90
|
+
};
|
91
|
+
return this.client.sendOperationRequest(operationArguments, getPageRangesOperationSpec);
|
55
92
|
};
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
93
|
+
/**
|
94
|
+
* The Get Page Ranges Diff operation returns the list of valid page ranges for a page blob that were
|
95
|
+
* changed between target blob and previous snapshot.
|
96
|
+
* @param options The options parameters.
|
97
|
+
*/
|
98
|
+
PageBlob.prototype.getPageRangesDiff = function (options) {
|
99
|
+
var operationArguments = {
|
100
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
101
|
+
};
|
102
|
+
return this.client.sendOperationRequest(operationArguments, getPageRangesDiffOperationSpec);
|
60
103
|
};
|
61
|
-
|
62
|
-
|
104
|
+
/**
|
105
|
+
* Resize the Blob
|
106
|
+
* @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. The
|
107
|
+
* page blob size must be aligned to a 512-byte boundary.
|
108
|
+
* @param options The options parameters.
|
109
|
+
*/
|
110
|
+
PageBlob.prototype.resize = function (blobContentLength, options) {
|
111
|
+
var operationArguments = {
|
63
112
|
blobContentLength: blobContentLength,
|
64
|
-
options: options
|
65
|
-
}
|
113
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
114
|
+
};
|
115
|
+
return this.client.sendOperationRequest(operationArguments, resizeOperationSpec);
|
66
116
|
};
|
67
|
-
|
68
|
-
|
117
|
+
/**
|
118
|
+
* Update the sequence number of the blob
|
119
|
+
* @param sequenceNumberAction Required if the x-ms-blob-sequence-number header is set for the request.
|
120
|
+
* This property applies to page blobs only. This property indicates how the service should modify the
|
121
|
+
* blob's sequence number
|
122
|
+
* @param options The options parameters.
|
123
|
+
*/
|
124
|
+
PageBlob.prototype.updateSequenceNumber = function (sequenceNumberAction, options) {
|
125
|
+
var operationArguments = {
|
69
126
|
sequenceNumberAction: sequenceNumberAction,
|
70
|
-
options: options
|
71
|
-
}
|
127
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
128
|
+
};
|
129
|
+
return this.client.sendOperationRequest(operationArguments, updateSequenceNumberOperationSpec);
|
72
130
|
};
|
73
|
-
|
74
|
-
|
131
|
+
/**
|
132
|
+
* The Copy Incremental operation copies a snapshot of the source page blob to a destination page blob.
|
133
|
+
* The snapshot is copied such that only the differential changes between the previously copied
|
134
|
+
* snapshot are transferred to the destination. The copied snapshots are complete copies of the
|
135
|
+
* original snapshot and can be read or copied from as usual. This API is supported since REST version
|
136
|
+
* 2016-05-31.
|
137
|
+
* @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to
|
138
|
+
* 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would
|
139
|
+
* appear in a request URI. The source blob must either be public or must be authenticated via a shared
|
140
|
+
* access signature.
|
141
|
+
* @param options The options parameters.
|
142
|
+
*/
|
143
|
+
PageBlob.prototype.copyIncremental = function (copySource, options) {
|
144
|
+
var operationArguments = {
|
75
145
|
copySource: copySource,
|
76
|
-
options: options
|
77
|
-
}
|
146
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
147
|
+
};
|
148
|
+
return this.client.sendOperationRequest(operationArguments, copyIncrementalOperationSpec);
|
78
149
|
};
|
79
150
|
return PageBlob;
|
80
151
|
}());
|
81
152
|
export { PageBlob };
|
82
153
|
// Operation Specifications
|
83
|
-
var
|
154
|
+
var xmlSerializer = new coreHttp.Serializer(Mappers, /* isXml */ true);
|
155
|
+
var serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
|
84
156
|
var createOperationSpec = {
|
157
|
+
path: "/{containerName}/{blob}",
|
85
158
|
httpMethod: "PUT",
|
86
|
-
path: "{containerName}/{blob}",
|
87
|
-
urlParameters: [
|
88
|
-
Parameters.url
|
89
|
-
],
|
90
|
-
queryParameters: [
|
91
|
-
Parameters.timeoutInSeconds
|
92
|
-
],
|
93
|
-
headerParameters: [
|
94
|
-
Parameters.contentLength,
|
95
|
-
Parameters.tier0,
|
96
|
-
Parameters.metadata,
|
97
|
-
Parameters.encryptionScope,
|
98
|
-
Parameters.blobContentLength,
|
99
|
-
Parameters.blobSequenceNumber,
|
100
|
-
Parameters.version,
|
101
|
-
Parameters.requestId,
|
102
|
-
Parameters.blobTagsString,
|
103
|
-
Parameters.blobType0,
|
104
|
-
Parameters.blobContentType,
|
105
|
-
Parameters.blobContentEncoding,
|
106
|
-
Parameters.blobContentLanguage,
|
107
|
-
Parameters.blobContentMD5,
|
108
|
-
Parameters.blobCacheControl,
|
109
|
-
Parameters.blobContentDisposition,
|
110
|
-
Parameters.leaseId0,
|
111
|
-
Parameters.encryptionKey,
|
112
|
-
Parameters.encryptionKeySha256,
|
113
|
-
Parameters.encryptionAlgorithm,
|
114
|
-
Parameters.ifModifiedSince,
|
115
|
-
Parameters.ifUnmodifiedSince,
|
116
|
-
Parameters.ifMatch,
|
117
|
-
Parameters.ifNoneMatch,
|
118
|
-
Parameters.ifTags
|
119
|
-
],
|
120
159
|
responses: {
|
121
160
|
201: {
|
122
161
|
headersMapper: Mappers.PageBlobCreateHeaders
|
123
162
|
},
|
124
163
|
default: {
|
125
164
|
bodyMapper: Mappers.StorageError,
|
126
|
-
headersMapper: Mappers.
|
165
|
+
headersMapper: Mappers.PageBlobCreateExceptionHeaders
|
127
166
|
}
|
128
167
|
},
|
129
|
-
|
130
|
-
|
131
|
-
};
|
132
|
-
var uploadPagesOperationSpec = {
|
133
|
-
httpMethod: "PUT",
|
134
|
-
path: "{containerName}/{blob}",
|
135
|
-
urlParameters: [
|
136
|
-
Parameters.url
|
137
|
-
],
|
138
|
-
queryParameters: [
|
139
|
-
Parameters.timeoutInSeconds,
|
140
|
-
Parameters.comp17
|
141
|
-
],
|
168
|
+
queryParameters: [Parameters.timeoutInSeconds],
|
169
|
+
urlParameters: [Parameters.url],
|
142
170
|
headerParameters: [
|
143
|
-
Parameters.contentLength,
|
144
|
-
Parameters.transactionalContentMD5,
|
145
|
-
Parameters.transactionalContentCrc64,
|
146
|
-
Parameters.range0,
|
147
|
-
Parameters.encryptionScope,
|
148
171
|
Parameters.version,
|
149
172
|
Parameters.requestId,
|
150
|
-
Parameters.
|
151
|
-
Parameters.
|
152
|
-
Parameters.
|
153
|
-
Parameters.
|
154
|
-
Parameters.encryptionAlgorithm,
|
155
|
-
Parameters.ifSequenceNumberLessThanOrEqualTo,
|
156
|
-
Parameters.ifSequenceNumberLessThan,
|
157
|
-
Parameters.ifSequenceNumberEqualTo,
|
173
|
+
Parameters.accept1,
|
174
|
+
Parameters.contentLength,
|
175
|
+
Parameters.metadata,
|
176
|
+
Parameters.leaseId,
|
158
177
|
Parameters.ifModifiedSince,
|
159
178
|
Parameters.ifUnmodifiedSince,
|
160
179
|
Parameters.ifMatch,
|
161
180
|
Parameters.ifNoneMatch,
|
162
|
-
Parameters.
|
181
|
+
Parameters.encryptionKey,
|
182
|
+
Parameters.encryptionKeySha256,
|
183
|
+
Parameters.encryptionAlgorithm,
|
184
|
+
Parameters.ifTags,
|
185
|
+
Parameters.blobCacheControl,
|
186
|
+
Parameters.blobContentType,
|
187
|
+
Parameters.blobContentMD5,
|
188
|
+
Parameters.blobContentEncoding,
|
189
|
+
Parameters.blobContentLanguage,
|
190
|
+
Parameters.blobContentDisposition,
|
191
|
+
Parameters.encryptionScope,
|
192
|
+
Parameters.tier,
|
193
|
+
Parameters.blobTagsString,
|
194
|
+
Parameters.blobType,
|
195
|
+
Parameters.blobContentLength,
|
196
|
+
Parameters.blobSequenceNumber
|
163
197
|
],
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
name: "Stream"
|
171
|
-
}
|
172
|
-
}
|
173
|
-
},
|
174
|
-
contentType: "application/octet-stream",
|
198
|
+
isXML: true,
|
199
|
+
serializer: xmlSerializer
|
200
|
+
};
|
201
|
+
var uploadPagesOperationSpec = {
|
202
|
+
path: "/{containerName}/{blob}",
|
203
|
+
httpMethod: "PUT",
|
175
204
|
responses: {
|
176
205
|
201: {
|
177
206
|
headersMapper: Mappers.PageBlobUploadPagesHeaders
|
178
207
|
},
|
179
208
|
default: {
|
180
209
|
bodyMapper: Mappers.StorageError,
|
181
|
-
headersMapper: Mappers.
|
210
|
+
headersMapper: Mappers.PageBlobUploadPagesExceptionHeaders
|
182
211
|
}
|
183
212
|
},
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
var clearPagesOperationSpec = {
|
188
|
-
httpMethod: "PUT",
|
189
|
-
path: "{containerName}/{blob}",
|
190
|
-
urlParameters: [
|
191
|
-
Parameters.url
|
192
|
-
],
|
193
|
-
queryParameters: [
|
194
|
-
Parameters.timeoutInSeconds,
|
195
|
-
Parameters.comp17
|
196
|
-
],
|
213
|
+
requestBody: Parameters.body1,
|
214
|
+
queryParameters: [Parameters.timeoutInSeconds, Parameters.comp17],
|
215
|
+
urlParameters: [Parameters.url],
|
197
216
|
headerParameters: [
|
198
|
-
Parameters.contentLength,
|
199
|
-
Parameters.range0,
|
200
|
-
Parameters.encryptionScope,
|
201
217
|
Parameters.version,
|
202
218
|
Parameters.requestId,
|
203
|
-
Parameters.
|
204
|
-
Parameters.
|
219
|
+
Parameters.contentLength,
|
220
|
+
Parameters.leaseId,
|
221
|
+
Parameters.ifModifiedSince,
|
222
|
+
Parameters.ifUnmodifiedSince,
|
223
|
+
Parameters.ifMatch,
|
224
|
+
Parameters.ifNoneMatch,
|
225
|
+
Parameters.range,
|
205
226
|
Parameters.encryptionKey,
|
206
227
|
Parameters.encryptionKeySha256,
|
207
228
|
Parameters.encryptionAlgorithm,
|
229
|
+
Parameters.ifTags,
|
230
|
+
Parameters.encryptionScope,
|
231
|
+
Parameters.transactionalContentMD5,
|
232
|
+
Parameters.transactionalContentCrc64,
|
233
|
+
Parameters.contentType2,
|
234
|
+
Parameters.accept2,
|
235
|
+
Parameters.pageWrite,
|
208
236
|
Parameters.ifSequenceNumberLessThanOrEqualTo,
|
209
237
|
Parameters.ifSequenceNumberLessThan,
|
210
|
-
Parameters.ifSequenceNumberEqualTo
|
211
|
-
Parameters.ifModifiedSince,
|
212
|
-
Parameters.ifUnmodifiedSince,
|
213
|
-
Parameters.ifMatch,
|
214
|
-
Parameters.ifNoneMatch,
|
215
|
-
Parameters.ifTags
|
238
|
+
Parameters.ifSequenceNumberEqualTo
|
216
239
|
],
|
240
|
+
mediaType: "binary",
|
241
|
+
serializer: serializer
|
242
|
+
};
|
243
|
+
var clearPagesOperationSpec = {
|
244
|
+
path: "/{containerName}/{blob}",
|
245
|
+
httpMethod: "PUT",
|
217
246
|
responses: {
|
218
247
|
201: {
|
219
248
|
headersMapper: Mappers.PageBlobClearPagesHeaders
|
220
249
|
},
|
221
250
|
default: {
|
222
251
|
bodyMapper: Mappers.StorageError,
|
223
|
-
headersMapper: Mappers.
|
252
|
+
headersMapper: Mappers.PageBlobClearPagesExceptionHeaders
|
224
253
|
}
|
225
254
|
},
|
226
|
-
|
227
|
-
|
228
|
-
};
|
229
|
-
var uploadPagesFromURLOperationSpec = {
|
230
|
-
httpMethod: "PUT",
|
231
|
-
path: "{containerName}/{blob}",
|
232
|
-
urlParameters: [
|
233
|
-
Parameters.url
|
234
|
-
],
|
235
|
-
queryParameters: [
|
236
|
-
Parameters.timeoutInSeconds,
|
237
|
-
Parameters.comp17
|
238
|
-
],
|
255
|
+
queryParameters: [Parameters.timeoutInSeconds, Parameters.comp17],
|
256
|
+
urlParameters: [Parameters.url],
|
239
257
|
headerParameters: [
|
240
|
-
Parameters.sourceUrl,
|
241
|
-
Parameters.sourceRange0,
|
242
|
-
Parameters.sourceContentMD5,
|
243
|
-
Parameters.sourceContentCrc64,
|
244
|
-
Parameters.contentLength,
|
245
|
-
Parameters.range1,
|
246
|
-
Parameters.encryptionScope,
|
247
258
|
Parameters.version,
|
248
259
|
Parameters.requestId,
|
249
|
-
Parameters.
|
260
|
+
Parameters.accept1,
|
261
|
+
Parameters.contentLength,
|
262
|
+
Parameters.leaseId,
|
263
|
+
Parameters.ifModifiedSince,
|
264
|
+
Parameters.ifUnmodifiedSince,
|
265
|
+
Parameters.ifMatch,
|
266
|
+
Parameters.ifNoneMatch,
|
267
|
+
Parameters.range,
|
250
268
|
Parameters.encryptionKey,
|
251
269
|
Parameters.encryptionKeySha256,
|
252
270
|
Parameters.encryptionAlgorithm,
|
253
|
-
Parameters.
|
271
|
+
Parameters.ifTags,
|
272
|
+
Parameters.encryptionScope,
|
254
273
|
Parameters.ifSequenceNumberLessThanOrEqualTo,
|
255
274
|
Parameters.ifSequenceNumberLessThan,
|
256
275
|
Parameters.ifSequenceNumberEqualTo,
|
257
|
-
Parameters.
|
258
|
-
Parameters.ifUnmodifiedSince,
|
259
|
-
Parameters.ifMatch,
|
260
|
-
Parameters.ifNoneMatch,
|
261
|
-
Parameters.ifTags,
|
262
|
-
Parameters.sourceIfModifiedSince,
|
263
|
-
Parameters.sourceIfUnmodifiedSince,
|
264
|
-
Parameters.sourceIfMatch,
|
265
|
-
Parameters.sourceIfNoneMatch
|
276
|
+
Parameters.pageWrite1
|
266
277
|
],
|
278
|
+
isXML: true,
|
279
|
+
serializer: xmlSerializer
|
280
|
+
};
|
281
|
+
var uploadPagesFromURLOperationSpec = {
|
282
|
+
path: "/{containerName}/{blob}",
|
283
|
+
httpMethod: "PUT",
|
267
284
|
responses: {
|
268
285
|
201: {
|
269
286
|
headersMapper: Mappers.PageBlobUploadPagesFromURLHeaders
|
270
287
|
},
|
271
288
|
default: {
|
272
289
|
bodyMapper: Mappers.StorageError,
|
273
|
-
headersMapper: Mappers.
|
290
|
+
headersMapper: Mappers.PageBlobUploadPagesFromURLExceptionHeaders
|
274
291
|
}
|
275
292
|
},
|
276
|
-
|
277
|
-
|
278
|
-
};
|
279
|
-
var getPageRangesOperationSpec = {
|
280
|
-
httpMethod: "GET",
|
281
|
-
path: "{containerName}/{blob}",
|
282
|
-
urlParameters: [
|
283
|
-
Parameters.url
|
284
|
-
],
|
285
|
-
queryParameters: [
|
286
|
-
Parameters.snapshot,
|
287
|
-
Parameters.timeoutInSeconds,
|
288
|
-
Parameters.comp18
|
289
|
-
],
|
293
|
+
queryParameters: [Parameters.timeoutInSeconds, Parameters.comp17],
|
294
|
+
urlParameters: [Parameters.url],
|
290
295
|
headerParameters: [
|
291
|
-
Parameters.range0,
|
292
296
|
Parameters.version,
|
293
297
|
Parameters.requestId,
|
294
|
-
Parameters.
|
298
|
+
Parameters.accept1,
|
299
|
+
Parameters.contentLength,
|
300
|
+
Parameters.leaseId,
|
295
301
|
Parameters.ifModifiedSince,
|
296
302
|
Parameters.ifUnmodifiedSince,
|
297
303
|
Parameters.ifMatch,
|
298
304
|
Parameters.ifNoneMatch,
|
299
|
-
Parameters.
|
305
|
+
Parameters.sourceIfModifiedSince,
|
306
|
+
Parameters.sourceIfUnmodifiedSince,
|
307
|
+
Parameters.sourceIfMatch,
|
308
|
+
Parameters.sourceIfNoneMatch,
|
309
|
+
Parameters.encryptionKey,
|
310
|
+
Parameters.encryptionKeySha256,
|
311
|
+
Parameters.encryptionAlgorithm,
|
312
|
+
Parameters.ifTags,
|
313
|
+
Parameters.encryptionScope,
|
314
|
+
Parameters.sourceContentMD5,
|
315
|
+
Parameters.pageWrite,
|
316
|
+
Parameters.ifSequenceNumberLessThanOrEqualTo,
|
317
|
+
Parameters.ifSequenceNumberLessThan,
|
318
|
+
Parameters.ifSequenceNumberEqualTo,
|
319
|
+
Parameters.sourceUrl,
|
320
|
+
Parameters.sourceRange,
|
321
|
+
Parameters.sourceContentCrc64,
|
322
|
+
Parameters.range1
|
300
323
|
],
|
324
|
+
isXML: true,
|
325
|
+
serializer: xmlSerializer
|
326
|
+
};
|
327
|
+
var getPageRangesOperationSpec = {
|
328
|
+
path: "/{containerName}/{blob}",
|
329
|
+
httpMethod: "GET",
|
301
330
|
responses: {
|
302
331
|
200: {
|
303
332
|
bodyMapper: Mappers.PageList,
|
@@ -305,36 +334,33 @@ var getPageRangesOperationSpec = {
|
|
305
334
|
},
|
306
335
|
default: {
|
307
336
|
bodyMapper: Mappers.StorageError,
|
308
|
-
headersMapper: Mappers.
|
337
|
+
headersMapper: Mappers.PageBlobGetPageRangesExceptionHeaders
|
309
338
|
}
|
310
339
|
},
|
311
|
-
isXML: true,
|
312
|
-
serializer: serializer
|
313
|
-
};
|
314
|
-
var getPageRangesDiffOperationSpec = {
|
315
|
-
httpMethod: "GET",
|
316
|
-
path: "{containerName}/{blob}",
|
317
|
-
urlParameters: [
|
318
|
-
Parameters.url
|
319
|
-
],
|
320
340
|
queryParameters: [
|
321
|
-
Parameters.snapshot,
|
322
341
|
Parameters.timeoutInSeconds,
|
323
|
-
Parameters.
|
342
|
+
Parameters.snapshot,
|
324
343
|
Parameters.comp18
|
325
344
|
],
|
345
|
+
urlParameters: [Parameters.url],
|
326
346
|
headerParameters: [
|
327
|
-
Parameters.prevSnapshotUrl,
|
328
|
-
Parameters.range0,
|
329
347
|
Parameters.version,
|
330
348
|
Parameters.requestId,
|
331
|
-
Parameters.
|
349
|
+
Parameters.accept1,
|
350
|
+
Parameters.leaseId,
|
332
351
|
Parameters.ifModifiedSince,
|
333
352
|
Parameters.ifUnmodifiedSince,
|
334
353
|
Parameters.ifMatch,
|
335
354
|
Parameters.ifNoneMatch,
|
355
|
+
Parameters.range,
|
336
356
|
Parameters.ifTags
|
337
357
|
],
|
358
|
+
isXML: true,
|
359
|
+
serializer: xmlSerializer
|
360
|
+
};
|
361
|
+
var getPageRangesDiffOperationSpec = {
|
362
|
+
path: "/{containerName}/{blob}",
|
363
|
+
httpMethod: "GET",
|
338
364
|
responses: {
|
339
365
|
200: {
|
340
366
|
bodyMapper: Mappers.PageList,
|
@@ -342,113 +368,121 @@ var getPageRangesDiffOperationSpec = {
|
|
342
368
|
},
|
343
369
|
default: {
|
344
370
|
bodyMapper: Mappers.StorageError,
|
345
|
-
headersMapper: Mappers.
|
371
|
+
headersMapper: Mappers.PageBlobGetPageRangesDiffExceptionHeaders
|
346
372
|
}
|
347
373
|
},
|
348
|
-
isXML: true,
|
349
|
-
serializer: serializer
|
350
|
-
};
|
351
|
-
var resizeOperationSpec = {
|
352
|
-
httpMethod: "PUT",
|
353
|
-
path: "{containerName}/{blob}",
|
354
|
-
urlParameters: [
|
355
|
-
Parameters.url
|
356
|
-
],
|
357
374
|
queryParameters: [
|
358
375
|
Parameters.timeoutInSeconds,
|
359
|
-
Parameters.
|
376
|
+
Parameters.snapshot,
|
377
|
+
Parameters.comp18,
|
378
|
+
Parameters.prevsnapshot
|
360
379
|
],
|
380
|
+
urlParameters: [Parameters.url],
|
361
381
|
headerParameters: [
|
362
|
-
Parameters.encryptionScope,
|
363
|
-
Parameters.blobContentLength,
|
364
382
|
Parameters.version,
|
365
383
|
Parameters.requestId,
|
366
|
-
Parameters.
|
367
|
-
Parameters.
|
368
|
-
Parameters.encryptionKeySha256,
|
369
|
-
Parameters.encryptionAlgorithm,
|
384
|
+
Parameters.accept1,
|
385
|
+
Parameters.leaseId,
|
370
386
|
Parameters.ifModifiedSince,
|
371
387
|
Parameters.ifUnmodifiedSince,
|
372
388
|
Parameters.ifMatch,
|
373
389
|
Parameters.ifNoneMatch,
|
374
|
-
Parameters.
|
390
|
+
Parameters.range,
|
391
|
+
Parameters.ifTags,
|
392
|
+
Parameters.prevSnapshotUrl
|
375
393
|
],
|
394
|
+
isXML: true,
|
395
|
+
serializer: xmlSerializer
|
396
|
+
};
|
397
|
+
var resizeOperationSpec = {
|
398
|
+
path: "/{containerName}/{blob}",
|
399
|
+
httpMethod: "PUT",
|
376
400
|
responses: {
|
377
401
|
200: {
|
378
402
|
headersMapper: Mappers.PageBlobResizeHeaders
|
379
403
|
},
|
380
404
|
default: {
|
381
405
|
bodyMapper: Mappers.StorageError,
|
382
|
-
headersMapper: Mappers.
|
406
|
+
headersMapper: Mappers.PageBlobResizeExceptionHeaders
|
383
407
|
}
|
384
408
|
},
|
385
|
-
|
386
|
-
|
387
|
-
};
|
388
|
-
var updateSequenceNumberOperationSpec = {
|
389
|
-
httpMethod: "PUT",
|
390
|
-
path: "{containerName}/{blob}",
|
391
|
-
urlParameters: [
|
392
|
-
Parameters.url
|
393
|
-
],
|
394
|
-
queryParameters: [
|
395
|
-
Parameters.timeoutInSeconds,
|
396
|
-
Parameters.comp0
|
397
|
-
],
|
409
|
+
queryParameters: [Parameters.comp, Parameters.timeoutInSeconds],
|
410
|
+
urlParameters: [Parameters.url],
|
398
411
|
headerParameters: [
|
399
|
-
Parameters.sequenceNumberAction,
|
400
|
-
Parameters.blobSequenceNumber,
|
401
412
|
Parameters.version,
|
402
413
|
Parameters.requestId,
|
403
|
-
Parameters.
|
414
|
+
Parameters.accept1,
|
415
|
+
Parameters.leaseId,
|
404
416
|
Parameters.ifModifiedSince,
|
405
417
|
Parameters.ifUnmodifiedSince,
|
406
418
|
Parameters.ifMatch,
|
407
419
|
Parameters.ifNoneMatch,
|
408
|
-
Parameters.
|
420
|
+
Parameters.encryptionKey,
|
421
|
+
Parameters.encryptionKeySha256,
|
422
|
+
Parameters.encryptionAlgorithm,
|
423
|
+
Parameters.ifTags,
|
424
|
+
Parameters.encryptionScope,
|
425
|
+
Parameters.blobContentLength
|
409
426
|
],
|
427
|
+
isXML: true,
|
428
|
+
serializer: xmlSerializer
|
429
|
+
};
|
430
|
+
var updateSequenceNumberOperationSpec = {
|
431
|
+
path: "/{containerName}/{blob}",
|
432
|
+
httpMethod: "PUT",
|
410
433
|
responses: {
|
411
434
|
200: {
|
412
435
|
headersMapper: Mappers.PageBlobUpdateSequenceNumberHeaders
|
413
436
|
},
|
414
437
|
default: {
|
415
438
|
bodyMapper: Mappers.StorageError,
|
416
|
-
headersMapper: Mappers.
|
439
|
+
headersMapper: Mappers.PageBlobUpdateSequenceNumberExceptionHeaders
|
417
440
|
}
|
418
441
|
},
|
419
|
-
|
420
|
-
|
421
|
-
};
|
422
|
-
var copyIncrementalOperationSpec = {
|
423
|
-
httpMethod: "PUT",
|
424
|
-
path: "{containerName}/{blob}",
|
425
|
-
urlParameters: [
|
426
|
-
Parameters.url
|
427
|
-
],
|
428
|
-
queryParameters: [
|
429
|
-
Parameters.timeoutInSeconds,
|
430
|
-
Parameters.comp19
|
431
|
-
],
|
442
|
+
queryParameters: [Parameters.comp, Parameters.timeoutInSeconds],
|
443
|
+
urlParameters: [Parameters.url],
|
432
444
|
headerParameters: [
|
433
|
-
Parameters.copySource,
|
434
445
|
Parameters.version,
|
435
446
|
Parameters.requestId,
|
447
|
+
Parameters.accept1,
|
448
|
+
Parameters.leaseId,
|
436
449
|
Parameters.ifModifiedSince,
|
437
450
|
Parameters.ifUnmodifiedSince,
|
438
451
|
Parameters.ifMatch,
|
439
452
|
Parameters.ifNoneMatch,
|
440
|
-
Parameters.ifTags
|
453
|
+
Parameters.ifTags,
|
454
|
+
Parameters.blobSequenceNumber,
|
455
|
+
Parameters.sequenceNumberAction
|
441
456
|
],
|
457
|
+
isXML: true,
|
458
|
+
serializer: xmlSerializer
|
459
|
+
};
|
460
|
+
var copyIncrementalOperationSpec = {
|
461
|
+
path: "/{containerName}/{blob}",
|
462
|
+
httpMethod: "PUT",
|
442
463
|
responses: {
|
443
464
|
202: {
|
444
465
|
headersMapper: Mappers.PageBlobCopyIncrementalHeaders
|
445
466
|
},
|
446
467
|
default: {
|
447
468
|
bodyMapper: Mappers.StorageError,
|
448
|
-
headersMapper: Mappers.
|
469
|
+
headersMapper: Mappers.PageBlobCopyIncrementalExceptionHeaders
|
449
470
|
}
|
450
471
|
},
|
472
|
+
queryParameters: [Parameters.timeoutInSeconds, Parameters.comp19],
|
473
|
+
urlParameters: [Parameters.url],
|
474
|
+
headerParameters: [
|
475
|
+
Parameters.version,
|
476
|
+
Parameters.requestId,
|
477
|
+
Parameters.accept1,
|
478
|
+
Parameters.ifModifiedSince,
|
479
|
+
Parameters.ifUnmodifiedSince,
|
480
|
+
Parameters.ifMatch,
|
481
|
+
Parameters.ifNoneMatch,
|
482
|
+
Parameters.ifTags,
|
483
|
+
Parameters.copySource
|
484
|
+
],
|
451
485
|
isXML: true,
|
452
|
-
serializer:
|
486
|
+
serializer: xmlSerializer
|
453
487
|
};
|
454
488
|
//# sourceMappingURL=pageBlob.js.map
|