@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,353 +1,384 @@
|
|
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
|
-
import { __assign } from "tslib";
|
11
8
|
import * as coreHttp from "@azure/core-http";
|
12
|
-
import * as Mappers from "../models/
|
9
|
+
import * as Mappers from "../models/mappers";
|
13
10
|
import * as Parameters from "../models/parameters";
|
14
11
|
/** Class representing a BlockBlob. */
|
15
12
|
var BlockBlob = /** @class */ (function () {
|
16
13
|
/**
|
17
|
-
*
|
18
|
-
* @param
|
14
|
+
* Initialize a new instance of the class BlockBlob class.
|
15
|
+
* @param client Reference to the service client
|
19
16
|
*/
|
20
17
|
function BlockBlob(client) {
|
21
18
|
this.client = client;
|
22
19
|
}
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
/**
|
21
|
+
* The Upload Block Blob operation updates the content of an existing block blob. Updating an existing
|
22
|
+
* block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put
|
23
|
+
* Blob; the content of the existing blob is overwritten with the content of the new blob. To perform a
|
24
|
+
* partial update of the content of a block blob, use the Put Block List operation.
|
25
|
+
* @param contentLength The length of the request.
|
26
|
+
* @param body Initial data
|
27
|
+
* @param options The options parameters.
|
28
|
+
*/
|
29
|
+
BlockBlob.prototype.upload = function (contentLength, body, options) {
|
30
|
+
var operationArguments = {
|
26
31
|
contentLength: contentLength,
|
27
|
-
|
28
|
-
|
32
|
+
body: body,
|
33
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
34
|
+
};
|
35
|
+
return this.client.sendOperationRequest(operationArguments, uploadOperationSpec);
|
29
36
|
};
|
30
|
-
|
31
|
-
|
37
|
+
/**
|
38
|
+
* The Put Blob from URL operation creates a new Block Blob where the contents of the blob are read
|
39
|
+
* from a given URL. This API is supported beginning with the 2020-04-08 version. Partial updates are
|
40
|
+
* not supported with Put Blob from URL; the content of an existing blob is overwritten with the
|
41
|
+
* content of the new blob. To perform partial updates to a block blob’s contents using a source URL,
|
42
|
+
* use the Put Block from URL API in conjunction with Put Block List.
|
43
|
+
* @param contentLength The length of the request.
|
44
|
+
* @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up to
|
45
|
+
* 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would
|
46
|
+
* appear in a request URI. The source blob must either be public or must be authenticated via a shared
|
47
|
+
* access signature.
|
48
|
+
* @param options The options parameters.
|
49
|
+
*/
|
50
|
+
BlockBlob.prototype.putBlobFromUrl = function (contentLength, copySource, options) {
|
51
|
+
var operationArguments = {
|
32
52
|
contentLength: contentLength,
|
33
53
|
copySource: copySource,
|
34
|
-
options: options
|
35
|
-
}
|
54
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
55
|
+
};
|
56
|
+
return this.client.sendOperationRequest(operationArguments, putBlobFromUrlOperationSpec);
|
36
57
|
};
|
37
|
-
|
38
|
-
|
58
|
+
/**
|
59
|
+
* The Stage Block operation creates a new block to be committed as part of a blob
|
60
|
+
* @param blockId A valid Base64 string value that identifies the block. Prior to encoding, the string
|
61
|
+
* must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified
|
62
|
+
* for the blockid parameter must be the same size for each block.
|
63
|
+
* @param contentLength The length of the request.
|
64
|
+
* @param body Initial data
|
65
|
+
* @param options The options parameters.
|
66
|
+
*/
|
67
|
+
BlockBlob.prototype.stageBlock = function (blockId, contentLength, body, options) {
|
68
|
+
var operationArguments = {
|
39
69
|
blockId: blockId,
|
40
70
|
contentLength: contentLength,
|
41
71
|
body: body,
|
42
|
-
options: options
|
43
|
-
}
|
72
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
73
|
+
};
|
74
|
+
return this.client.sendOperationRequest(operationArguments, stageBlockOperationSpec);
|
44
75
|
};
|
45
|
-
|
46
|
-
|
76
|
+
/**
|
77
|
+
* The Stage Block operation creates a new block to be committed as part of a blob where the contents
|
78
|
+
* are read from a URL.
|
79
|
+
* @param blockId A valid Base64 string value that identifies the block. Prior to encoding, the string
|
80
|
+
* must be less than or equal to 64 bytes in size. For a given blob, the length of the value specified
|
81
|
+
* for the blockid parameter must be the same size for each block.
|
82
|
+
* @param contentLength The length of the request.
|
83
|
+
* @param sourceUrl Specify a URL to the copy source.
|
84
|
+
* @param options The options parameters.
|
85
|
+
*/
|
86
|
+
BlockBlob.prototype.stageBlockFromURL = function (blockId, contentLength, sourceUrl, options) {
|
87
|
+
var operationArguments = {
|
47
88
|
blockId: blockId,
|
48
89
|
contentLength: contentLength,
|
49
90
|
sourceUrl: sourceUrl,
|
50
|
-
options: options
|
51
|
-
}
|
91
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
92
|
+
};
|
93
|
+
return this.client.sendOperationRequest(operationArguments, stageBlockFromURLOperationSpec);
|
52
94
|
};
|
53
|
-
|
54
|
-
|
95
|
+
/**
|
96
|
+
* The Commit Block List operation writes a blob by specifying the list of block IDs that make up the
|
97
|
+
* blob. In order to be written as part of a blob, a block must have been successfully written to the
|
98
|
+
* server in a prior Put Block operation. You can call Put Block List to update a blob by uploading
|
99
|
+
* only those blocks that have changed, then committing the new and existing blocks together. You can
|
100
|
+
* do this by specifying whether to commit a block from the committed block list or from the
|
101
|
+
* uncommitted block list, or to commit the most recently uploaded version of the block, whichever list
|
102
|
+
* it may belong to.
|
103
|
+
* @param blocks
|
104
|
+
* @param options The options parameters.
|
105
|
+
*/
|
106
|
+
BlockBlob.prototype.commitBlockList = function (blocks, options) {
|
107
|
+
var operationArguments = {
|
55
108
|
blocks: blocks,
|
56
|
-
options: options
|
57
|
-
}
|
109
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
110
|
+
};
|
111
|
+
return this.client.sendOperationRequest(operationArguments, commitBlockListOperationSpec);
|
58
112
|
};
|
59
|
-
|
60
|
-
|
113
|
+
/**
|
114
|
+
* The Get Block List operation retrieves the list of blocks that have been uploaded as part of a block
|
115
|
+
* blob
|
116
|
+
* @param listType Specifies whether to return the list of committed blocks, the list of uncommitted
|
117
|
+
* blocks, or both lists together.
|
118
|
+
* @param options The options parameters.
|
119
|
+
*/
|
120
|
+
BlockBlob.prototype.getBlockList = function (listType, options) {
|
121
|
+
var operationArguments = {
|
61
122
|
listType: listType,
|
62
|
-
options: options
|
63
|
-
}
|
123
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
124
|
+
};
|
125
|
+
return this.client.sendOperationRequest(operationArguments, getBlockListOperationSpec);
|
64
126
|
};
|
65
127
|
return BlockBlob;
|
66
128
|
}());
|
67
129
|
export { BlockBlob };
|
68
130
|
// Operation Specifications
|
69
|
-
var
|
131
|
+
var xmlSerializer = new coreHttp.Serializer(Mappers, /* isXml */ true);
|
132
|
+
var serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
|
70
133
|
var uploadOperationSpec = {
|
134
|
+
path: "/{containerName}/{blob}",
|
71
135
|
httpMethod: "PUT",
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
136
|
+
responses: {
|
137
|
+
201: {
|
138
|
+
headersMapper: Mappers.BlockBlobUploadHeaders
|
139
|
+
},
|
140
|
+
default: {
|
141
|
+
bodyMapper: Mappers.StorageError,
|
142
|
+
headersMapper: Mappers.BlockBlobUploadExceptionHeaders
|
143
|
+
}
|
144
|
+
},
|
145
|
+
requestBody: Parameters.body1,
|
146
|
+
queryParameters: [Parameters.timeoutInSeconds],
|
147
|
+
urlParameters: [Parameters.url],
|
79
148
|
headerParameters: [
|
80
|
-
Parameters.transactionalContentMD5,
|
81
|
-
Parameters.contentLength,
|
82
|
-
Parameters.metadata,
|
83
|
-
Parameters.encryptionScope,
|
84
|
-
Parameters.tier0,
|
85
149
|
Parameters.version,
|
86
150
|
Parameters.requestId,
|
87
|
-
Parameters.
|
88
|
-
Parameters.
|
89
|
-
Parameters.
|
90
|
-
Parameters.blobContentEncoding,
|
91
|
-
Parameters.blobContentLanguage,
|
92
|
-
Parameters.blobContentMD5,
|
93
|
-
Parameters.blobCacheControl,
|
94
|
-
Parameters.blobContentDisposition,
|
95
|
-
Parameters.leaseId0,
|
96
|
-
Parameters.encryptionKey,
|
97
|
-
Parameters.encryptionKeySha256,
|
98
|
-
Parameters.encryptionAlgorithm,
|
151
|
+
Parameters.contentLength,
|
152
|
+
Parameters.metadata,
|
153
|
+
Parameters.leaseId,
|
99
154
|
Parameters.ifModifiedSince,
|
100
155
|
Parameters.ifUnmodifiedSince,
|
101
156
|
Parameters.ifMatch,
|
102
157
|
Parameters.ifNoneMatch,
|
103
|
-
Parameters.
|
158
|
+
Parameters.encryptionKey,
|
159
|
+
Parameters.encryptionKeySha256,
|
160
|
+
Parameters.encryptionAlgorithm,
|
161
|
+
Parameters.ifTags,
|
162
|
+
Parameters.blobCacheControl,
|
163
|
+
Parameters.blobContentType,
|
164
|
+
Parameters.blobContentMD5,
|
165
|
+
Parameters.blobContentEncoding,
|
166
|
+
Parameters.blobContentLanguage,
|
167
|
+
Parameters.blobContentDisposition,
|
168
|
+
Parameters.encryptionScope,
|
169
|
+
Parameters.tier,
|
170
|
+
Parameters.blobTagsString,
|
171
|
+
Parameters.transactionalContentMD5,
|
172
|
+
Parameters.contentType2,
|
173
|
+
Parameters.accept2,
|
174
|
+
Parameters.blobType2
|
104
175
|
],
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
name: "Stream"
|
112
|
-
}
|
113
|
-
}
|
114
|
-
},
|
115
|
-
contentType: "application/octet-stream",
|
176
|
+
mediaType: "binary",
|
177
|
+
serializer: serializer
|
178
|
+
};
|
179
|
+
var putBlobFromUrlOperationSpec = {
|
180
|
+
path: "/{containerName}/{blob}",
|
181
|
+
httpMethod: "PUT",
|
116
182
|
responses: {
|
117
183
|
201: {
|
118
|
-
headersMapper: Mappers.
|
184
|
+
headersMapper: Mappers.BlockBlobPutBlobFromUrlHeaders
|
119
185
|
},
|
120
186
|
default: {
|
121
187
|
bodyMapper: Mappers.StorageError,
|
122
|
-
headersMapper: Mappers.
|
188
|
+
headersMapper: Mappers.BlockBlobPutBlobFromUrlExceptionHeaders
|
123
189
|
}
|
124
190
|
},
|
125
|
-
|
126
|
-
|
127
|
-
};
|
128
|
-
var putBlobFromUrlOperationSpec = {
|
129
|
-
httpMethod: "PUT",
|
130
|
-
path: "{containerName}/{blob}",
|
131
|
-
urlParameters: [
|
132
|
-
Parameters.url
|
133
|
-
],
|
134
|
-
queryParameters: [
|
135
|
-
Parameters.timeoutInSeconds
|
136
|
-
],
|
191
|
+
queryParameters: [Parameters.timeoutInSeconds],
|
192
|
+
urlParameters: [Parameters.url],
|
137
193
|
headerParameters: [
|
138
|
-
Parameters.transactionalContentMD5,
|
139
|
-
Parameters.contentLength,
|
140
|
-
Parameters.metadata,
|
141
|
-
Parameters.encryptionScope,
|
142
|
-
Parameters.tier0,
|
143
194
|
Parameters.version,
|
144
195
|
Parameters.requestId,
|
145
|
-
Parameters.
|
146
|
-
Parameters.
|
147
|
-
Parameters.
|
148
|
-
Parameters.
|
149
|
-
Parameters.blobType2,
|
150
|
-
Parameters.blobContentType,
|
151
|
-
Parameters.blobContentEncoding,
|
152
|
-
Parameters.blobContentLanguage,
|
153
|
-
Parameters.blobContentMD5,
|
154
|
-
Parameters.blobCacheControl,
|
155
|
-
Parameters.blobContentDisposition,
|
156
|
-
Parameters.leaseId0,
|
157
|
-
Parameters.encryptionKey,
|
158
|
-
Parameters.encryptionKeySha256,
|
159
|
-
Parameters.encryptionAlgorithm,
|
196
|
+
Parameters.accept1,
|
197
|
+
Parameters.contentLength,
|
198
|
+
Parameters.metadata,
|
199
|
+
Parameters.leaseId,
|
160
200
|
Parameters.ifModifiedSince,
|
161
201
|
Parameters.ifUnmodifiedSince,
|
162
202
|
Parameters.ifMatch,
|
163
203
|
Parameters.ifNoneMatch,
|
164
|
-
Parameters.ifTags,
|
165
204
|
Parameters.sourceIfModifiedSince,
|
166
205
|
Parameters.sourceIfUnmodifiedSince,
|
167
206
|
Parameters.sourceIfMatch,
|
168
207
|
Parameters.sourceIfNoneMatch,
|
169
|
-
Parameters.
|
208
|
+
Parameters.encryptionKey,
|
209
|
+
Parameters.encryptionKeySha256,
|
210
|
+
Parameters.encryptionAlgorithm,
|
211
|
+
Parameters.ifTags,
|
212
|
+
Parameters.blobCacheControl,
|
213
|
+
Parameters.blobContentType,
|
214
|
+
Parameters.blobContentMD5,
|
215
|
+
Parameters.blobContentEncoding,
|
216
|
+
Parameters.blobContentLanguage,
|
217
|
+
Parameters.blobContentDisposition,
|
218
|
+
Parameters.encryptionScope,
|
219
|
+
Parameters.tier,
|
220
|
+
Parameters.sourceIfTags,
|
221
|
+
Parameters.copySource,
|
222
|
+
Parameters.blobTagsString,
|
223
|
+
Parameters.sourceContentMD5,
|
224
|
+
Parameters.transactionalContentMD5,
|
225
|
+
Parameters.blobType2,
|
226
|
+
Parameters.copySourceBlobProperties
|
170
227
|
],
|
228
|
+
isXML: true,
|
229
|
+
serializer: xmlSerializer
|
230
|
+
};
|
231
|
+
var stageBlockOperationSpec = {
|
232
|
+
path: "/{containerName}/{blob}",
|
233
|
+
httpMethod: "PUT",
|
171
234
|
responses: {
|
172
235
|
201: {
|
173
|
-
headersMapper: Mappers.
|
236
|
+
headersMapper: Mappers.BlockBlobStageBlockHeaders
|
174
237
|
},
|
175
238
|
default: {
|
176
239
|
bodyMapper: Mappers.StorageError,
|
177
|
-
headersMapper: Mappers.
|
240
|
+
headersMapper: Mappers.BlockBlobStageBlockExceptionHeaders
|
178
241
|
}
|
179
242
|
},
|
180
|
-
|
181
|
-
serializer: serializer
|
182
|
-
};
|
183
|
-
var stageBlockOperationSpec = {
|
184
|
-
httpMethod: "PUT",
|
185
|
-
path: "{containerName}/{blob}",
|
186
|
-
urlParameters: [
|
187
|
-
Parameters.url
|
188
|
-
],
|
243
|
+
requestBody: Parameters.body1,
|
189
244
|
queryParameters: [
|
190
|
-
Parameters.blockId,
|
191
245
|
Parameters.timeoutInSeconds,
|
192
|
-
Parameters.comp22
|
246
|
+
Parameters.comp22,
|
247
|
+
Parameters.blockId
|
193
248
|
],
|
249
|
+
urlParameters: [Parameters.url],
|
194
250
|
headerParameters: [
|
195
|
-
Parameters.contentLength,
|
196
|
-
Parameters.transactionalContentMD5,
|
197
|
-
Parameters.transactionalContentCrc64,
|
198
|
-
Parameters.encryptionScope,
|
199
251
|
Parameters.version,
|
200
252
|
Parameters.requestId,
|
201
|
-
Parameters.
|
253
|
+
Parameters.contentLength,
|
254
|
+
Parameters.leaseId,
|
202
255
|
Parameters.encryptionKey,
|
203
256
|
Parameters.encryptionKeySha256,
|
204
|
-
Parameters.encryptionAlgorithm
|
257
|
+
Parameters.encryptionAlgorithm,
|
258
|
+
Parameters.encryptionScope,
|
259
|
+
Parameters.transactionalContentMD5,
|
260
|
+
Parameters.transactionalContentCrc64,
|
261
|
+
Parameters.contentType2,
|
262
|
+
Parameters.accept2
|
205
263
|
],
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
name: "Stream"
|
213
|
-
}
|
214
|
-
}
|
215
|
-
},
|
216
|
-
contentType: "application/octet-stream",
|
264
|
+
mediaType: "binary",
|
265
|
+
serializer: serializer
|
266
|
+
};
|
267
|
+
var stageBlockFromURLOperationSpec = {
|
268
|
+
path: "/{containerName}/{blob}",
|
269
|
+
httpMethod: "PUT",
|
217
270
|
responses: {
|
218
271
|
201: {
|
219
|
-
headersMapper: Mappers.
|
272
|
+
headersMapper: Mappers.BlockBlobStageBlockFromURLHeaders
|
220
273
|
},
|
221
274
|
default: {
|
222
275
|
bodyMapper: Mappers.StorageError,
|
223
|
-
headersMapper: Mappers.
|
276
|
+
headersMapper: Mappers.BlockBlobStageBlockFromURLExceptionHeaders
|
224
277
|
}
|
225
278
|
},
|
226
|
-
isXML: true,
|
227
|
-
serializer: serializer
|
228
|
-
};
|
229
|
-
var stageBlockFromURLOperationSpec = {
|
230
|
-
httpMethod: "PUT",
|
231
|
-
path: "{containerName}/{blob}",
|
232
|
-
urlParameters: [
|
233
|
-
Parameters.url
|
234
|
-
],
|
235
279
|
queryParameters: [
|
236
|
-
Parameters.blockId,
|
237
280
|
Parameters.timeoutInSeconds,
|
238
|
-
Parameters.comp22
|
281
|
+
Parameters.comp22,
|
282
|
+
Parameters.blockId
|
239
283
|
],
|
284
|
+
urlParameters: [Parameters.url],
|
240
285
|
headerParameters: [
|
241
|
-
Parameters.contentLength,
|
242
|
-
Parameters.sourceUrl,
|
243
|
-
Parameters.sourceRange1,
|
244
|
-
Parameters.sourceContentMD5,
|
245
|
-
Parameters.sourceContentCrc64,
|
246
|
-
Parameters.encryptionScope,
|
247
286
|
Parameters.version,
|
248
287
|
Parameters.requestId,
|
249
|
-
Parameters.
|
250
|
-
Parameters.
|
251
|
-
Parameters.
|
252
|
-
Parameters.leaseId0,
|
288
|
+
Parameters.accept1,
|
289
|
+
Parameters.contentLength,
|
290
|
+
Parameters.leaseId,
|
253
291
|
Parameters.sourceIfModifiedSince,
|
254
292
|
Parameters.sourceIfUnmodifiedSince,
|
255
293
|
Parameters.sourceIfMatch,
|
256
|
-
Parameters.sourceIfNoneMatch
|
294
|
+
Parameters.sourceIfNoneMatch,
|
295
|
+
Parameters.encryptionKey,
|
296
|
+
Parameters.encryptionKeySha256,
|
297
|
+
Parameters.encryptionAlgorithm,
|
298
|
+
Parameters.encryptionScope,
|
299
|
+
Parameters.sourceContentMD5,
|
300
|
+
Parameters.sourceUrl,
|
301
|
+
Parameters.sourceContentCrc64,
|
302
|
+
Parameters.sourceRange1
|
257
303
|
],
|
304
|
+
isXML: true,
|
305
|
+
serializer: xmlSerializer
|
306
|
+
};
|
307
|
+
var commitBlockListOperationSpec = {
|
308
|
+
path: "/{containerName}/{blob}",
|
309
|
+
httpMethod: "PUT",
|
258
310
|
responses: {
|
259
311
|
201: {
|
260
|
-
headersMapper: Mappers.
|
312
|
+
headersMapper: Mappers.BlockBlobCommitBlockListHeaders
|
261
313
|
},
|
262
314
|
default: {
|
263
315
|
bodyMapper: Mappers.StorageError,
|
264
|
-
headersMapper: Mappers.
|
316
|
+
headersMapper: Mappers.BlockBlobCommitBlockListExceptionHeaders
|
265
317
|
}
|
266
318
|
},
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
var commitBlockListOperationSpec = {
|
271
|
-
httpMethod: "PUT",
|
272
|
-
path: "{containerName}/{blob}",
|
273
|
-
urlParameters: [
|
274
|
-
Parameters.url
|
275
|
-
],
|
276
|
-
queryParameters: [
|
277
|
-
Parameters.timeoutInSeconds,
|
278
|
-
Parameters.comp23
|
279
|
-
],
|
319
|
+
requestBody: Parameters.blocks,
|
320
|
+
queryParameters: [Parameters.timeoutInSeconds, Parameters.comp23],
|
321
|
+
urlParameters: [Parameters.url],
|
280
322
|
headerParameters: [
|
281
|
-
Parameters.
|
282
|
-
Parameters.
|
283
|
-
Parameters.metadata,
|
284
|
-
Parameters.encryptionScope,
|
285
|
-
Parameters.tier0,
|
323
|
+
Parameters.contentType,
|
324
|
+
Parameters.accept,
|
286
325
|
Parameters.version,
|
287
326
|
Parameters.requestId,
|
288
|
-
Parameters.
|
327
|
+
Parameters.metadata,
|
328
|
+
Parameters.leaseId,
|
329
|
+
Parameters.ifModifiedSince,
|
330
|
+
Parameters.ifUnmodifiedSince,
|
331
|
+
Parameters.ifMatch,
|
332
|
+
Parameters.ifNoneMatch,
|
333
|
+
Parameters.encryptionKey,
|
334
|
+
Parameters.encryptionKeySha256,
|
335
|
+
Parameters.encryptionAlgorithm,
|
336
|
+
Parameters.ifTags,
|
289
337
|
Parameters.blobCacheControl,
|
290
338
|
Parameters.blobContentType,
|
339
|
+
Parameters.blobContentMD5,
|
291
340
|
Parameters.blobContentEncoding,
|
292
341
|
Parameters.blobContentLanguage,
|
293
|
-
Parameters.blobContentMD5,
|
294
342
|
Parameters.blobContentDisposition,
|
295
|
-
Parameters.
|
296
|
-
Parameters.
|
297
|
-
Parameters.
|
298
|
-
Parameters.
|
299
|
-
Parameters.
|
300
|
-
Parameters.ifUnmodifiedSince,
|
301
|
-
Parameters.ifMatch,
|
302
|
-
Parameters.ifNoneMatch,
|
303
|
-
Parameters.ifTags
|
343
|
+
Parameters.encryptionScope,
|
344
|
+
Parameters.tier,
|
345
|
+
Parameters.blobTagsString,
|
346
|
+
Parameters.transactionalContentMD5,
|
347
|
+
Parameters.transactionalContentCrc64
|
304
348
|
],
|
305
|
-
|
306
|
-
parameterPath: "blocks",
|
307
|
-
mapper: __assign(__assign({}, Mappers.BlockLookupList), { required: true })
|
308
|
-
},
|
349
|
+
isXML: true,
|
309
350
|
contentType: "application/xml; charset=utf-8",
|
351
|
+
mediaType: "xml",
|
352
|
+
serializer: xmlSerializer
|
353
|
+
};
|
354
|
+
var getBlockListOperationSpec = {
|
355
|
+
path: "/{containerName}/{blob}",
|
356
|
+
httpMethod: "GET",
|
310
357
|
responses: {
|
311
|
-
|
312
|
-
|
358
|
+
200: {
|
359
|
+
bodyMapper: Mappers.BlockList,
|
360
|
+
headersMapper: Mappers.BlockBlobGetBlockListHeaders
|
313
361
|
},
|
314
362
|
default: {
|
315
363
|
bodyMapper: Mappers.StorageError,
|
316
|
-
headersMapper: Mappers.
|
364
|
+
headersMapper: Mappers.BlockBlobGetBlockListExceptionHeaders
|
317
365
|
}
|
318
366
|
},
|
319
|
-
isXML: true,
|
320
|
-
serializer: serializer
|
321
|
-
};
|
322
|
-
var getBlockListOperationSpec = {
|
323
|
-
httpMethod: "GET",
|
324
|
-
path: "{containerName}/{blob}",
|
325
|
-
urlParameters: [
|
326
|
-
Parameters.url
|
327
|
-
],
|
328
367
|
queryParameters: [
|
329
|
-
Parameters.snapshot,
|
330
|
-
Parameters.listType,
|
331
368
|
Parameters.timeoutInSeconds,
|
332
|
-
Parameters.
|
369
|
+
Parameters.snapshot,
|
370
|
+
Parameters.comp23,
|
371
|
+
Parameters.listType
|
333
372
|
],
|
373
|
+
urlParameters: [Parameters.url],
|
334
374
|
headerParameters: [
|
335
375
|
Parameters.version,
|
336
376
|
Parameters.requestId,
|
337
|
-
Parameters.
|
377
|
+
Parameters.accept1,
|
378
|
+
Parameters.leaseId,
|
338
379
|
Parameters.ifTags
|
339
380
|
],
|
340
|
-
responses: {
|
341
|
-
200: {
|
342
|
-
bodyMapper: Mappers.BlockList,
|
343
|
-
headersMapper: Mappers.BlockBlobGetBlockListHeaders
|
344
|
-
},
|
345
|
-
default: {
|
346
|
-
bodyMapper: Mappers.StorageError,
|
347
|
-
headersMapper: Mappers.BlockBlobGetBlockListHeaders
|
348
|
-
}
|
349
|
-
},
|
350
381
|
isXML: true,
|
351
|
-
serializer:
|
382
|
+
serializer: xmlSerializer
|
352
383
|
};
|
353
384
|
//# sourceMappingURL=blockBlob.js.map
|