@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,120 +1,158 @@
|
|
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 Service. */
|
15
12
|
var Service = /** @class */ (function () {
|
16
13
|
/**
|
17
|
-
*
|
18
|
-
* @param
|
14
|
+
* Initialize a new instance of the class Service class.
|
15
|
+
* @param client Reference to the service client
|
19
16
|
*/
|
20
17
|
function Service(client) {
|
21
18
|
this.client = client;
|
22
19
|
}
|
23
|
-
|
24
|
-
|
20
|
+
/**
|
21
|
+
* Sets properties for a storage account's Blob service endpoint, including properties for Storage
|
22
|
+
* Analytics and CORS (Cross-Origin Resource Sharing) rules
|
23
|
+
* @param blobServiceProperties The StorageService properties.
|
24
|
+
* @param options The options parameters.
|
25
|
+
*/
|
26
|
+
Service.prototype.setProperties = function (blobServiceProperties, options) {
|
27
|
+
var operationArguments = {
|
25
28
|
blobServiceProperties: blobServiceProperties,
|
26
|
-
options: options
|
27
|
-
}
|
29
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
30
|
+
};
|
31
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
28
32
|
};
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
+
/**
|
34
|
+
* gets the properties of a storage account's Blob service, including properties for Storage Analytics
|
35
|
+
* and CORS (Cross-Origin Resource Sharing) rules.
|
36
|
+
* @param options The options parameters.
|
37
|
+
*/
|
38
|
+
Service.prototype.getProperties = function (options) {
|
39
|
+
var operationArguments = {
|
40
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
41
|
+
};
|
42
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
33
43
|
};
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
44
|
+
/**
|
45
|
+
* Retrieves statistics related to replication for the Blob service. It is only available on the
|
46
|
+
* secondary location endpoint when read-access geo-redundant replication is enabled for the storage
|
47
|
+
* account.
|
48
|
+
* @param options The options parameters.
|
49
|
+
*/
|
50
|
+
Service.prototype.getStatistics = function (options) {
|
51
|
+
var operationArguments = {
|
52
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
53
|
+
};
|
54
|
+
return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
|
38
55
|
};
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
56
|
+
/**
|
57
|
+
* The List Containers Segment operation returns a list of the containers under the specified account
|
58
|
+
* @param options The options parameters.
|
59
|
+
*/
|
60
|
+
Service.prototype.listContainersSegment = function (options) {
|
61
|
+
var operationArguments = {
|
62
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
63
|
+
};
|
64
|
+
return this.client.sendOperationRequest(operationArguments, listContainersSegmentOperationSpec);
|
43
65
|
};
|
44
|
-
|
45
|
-
|
66
|
+
/**
|
67
|
+
* Retrieves a user delegation key for the Blob service. This is only a valid operation when using
|
68
|
+
* bearer token authentication.
|
69
|
+
* @param keyInfo Key information
|
70
|
+
* @param options The options parameters.
|
71
|
+
*/
|
72
|
+
Service.prototype.getUserDelegationKey = function (keyInfo, options) {
|
73
|
+
var operationArguments = {
|
46
74
|
keyInfo: keyInfo,
|
47
|
-
options: options
|
48
|
-
}
|
75
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
76
|
+
};
|
77
|
+
return this.client.sendOperationRequest(operationArguments, getUserDelegationKeyOperationSpec);
|
49
78
|
};
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
79
|
+
/**
|
80
|
+
* Returns the sku name and account kind
|
81
|
+
* @param options The options parameters.
|
82
|
+
*/
|
83
|
+
Service.prototype.getAccountInfo = function (options) {
|
84
|
+
var operationArguments = {
|
85
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
86
|
+
};
|
87
|
+
return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec);
|
54
88
|
};
|
55
|
-
|
56
|
-
|
57
|
-
|
89
|
+
/**
|
90
|
+
* The Batch operation allows multiple API calls to be embedded into a single HTTP request.
|
91
|
+
* @param contentLength The length of the request.
|
92
|
+
* @param multipartContentType Required. The value of this header must be multipart/mixed with a batch
|
93
|
+
* boundary. Example header value: multipart/mixed; boundary=batch_<GUID>
|
94
|
+
* @param body Initial data
|
95
|
+
* @param options The options parameters.
|
96
|
+
*/
|
97
|
+
Service.prototype.submitBatch = function (contentLength, multipartContentType, body, options) {
|
98
|
+
var operationArguments = {
|
58
99
|
contentLength: contentLength,
|
59
100
|
multipartContentType: multipartContentType,
|
60
|
-
|
61
|
-
|
101
|
+
body: body,
|
102
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
103
|
+
};
|
104
|
+
return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec);
|
62
105
|
};
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
106
|
+
/**
|
107
|
+
* The Filter Blobs operation enables callers to list blobs across all containers whose tags match a
|
108
|
+
* given search expression. Filter blobs searches across all containers within a storage account but
|
109
|
+
* can be scoped within the expression to a single container.
|
110
|
+
* @param options The options parameters.
|
111
|
+
*/
|
112
|
+
Service.prototype.filterBlobs = function (options) {
|
113
|
+
var operationArguments = {
|
114
|
+
options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
|
115
|
+
};
|
116
|
+
return this.client.sendOperationRequest(operationArguments, filterBlobsOperationSpec);
|
67
117
|
};
|
68
118
|
return Service;
|
69
119
|
}());
|
70
120
|
export { Service };
|
71
121
|
// Operation Specifications
|
72
|
-
var
|
122
|
+
var xmlSerializer = new coreHttp.Serializer(Mappers, /* isXml */ true);
|
73
123
|
var setPropertiesOperationSpec = {
|
124
|
+
path: "/",
|
74
125
|
httpMethod: "PUT",
|
75
|
-
urlParameters: [
|
76
|
-
Parameters.url
|
77
|
-
],
|
78
|
-
queryParameters: [
|
79
|
-
Parameters.timeoutInSeconds,
|
80
|
-
Parameters.restype0,
|
81
|
-
Parameters.comp0
|
82
|
-
],
|
83
|
-
headerParameters: [
|
84
|
-
Parameters.version,
|
85
|
-
Parameters.requestId
|
86
|
-
],
|
87
|
-
requestBody: {
|
88
|
-
parameterPath: "blobServiceProperties",
|
89
|
-
mapper: __assign(__assign({}, Mappers.BlobServiceProperties), { required: true })
|
90
|
-
},
|
91
|
-
contentType: "application/xml; charset=utf-8",
|
92
126
|
responses: {
|
93
127
|
202: {
|
94
128
|
headersMapper: Mappers.ServiceSetPropertiesHeaders
|
95
129
|
},
|
96
130
|
default: {
|
97
131
|
bodyMapper: Mappers.StorageError,
|
98
|
-
headersMapper: Mappers.
|
132
|
+
headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders
|
99
133
|
}
|
100
134
|
},
|
101
|
-
|
102
|
-
serializer: serializer
|
103
|
-
};
|
104
|
-
var getPropertiesOperationSpec = {
|
105
|
-
httpMethod: "GET",
|
106
|
-
urlParameters: [
|
107
|
-
Parameters.url
|
108
|
-
],
|
135
|
+
requestBody: Parameters.blobServiceProperties,
|
109
136
|
queryParameters: [
|
110
|
-
Parameters.
|
111
|
-
Parameters.
|
112
|
-
Parameters.
|
137
|
+
Parameters.restype,
|
138
|
+
Parameters.comp,
|
139
|
+
Parameters.timeoutInSeconds
|
113
140
|
],
|
141
|
+
urlParameters: [Parameters.url],
|
114
142
|
headerParameters: [
|
143
|
+
Parameters.contentType,
|
144
|
+
Parameters.accept,
|
115
145
|
Parameters.version,
|
116
146
|
Parameters.requestId
|
117
147
|
],
|
148
|
+
isXML: true,
|
149
|
+
contentType: "application/xml; charset=utf-8",
|
150
|
+
mediaType: "xml",
|
151
|
+
serializer: xmlSerializer
|
152
|
+
};
|
153
|
+
var getPropertiesOperationSpec = {
|
154
|
+
path: "/",
|
155
|
+
httpMethod: "GET",
|
118
156
|
responses: {
|
119
157
|
200: {
|
120
158
|
bodyMapper: Mappers.BlobServiceProperties,
|
@@ -122,26 +160,26 @@ var getPropertiesOperationSpec = {
|
|
122
160
|
},
|
123
161
|
default: {
|
124
162
|
bodyMapper: Mappers.StorageError,
|
125
|
-
headersMapper: Mappers.
|
163
|
+
headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders
|
126
164
|
}
|
127
165
|
},
|
128
|
-
isXML: true,
|
129
|
-
serializer: serializer
|
130
|
-
};
|
131
|
-
var getStatisticsOperationSpec = {
|
132
|
-
httpMethod: "GET",
|
133
|
-
urlParameters: [
|
134
|
-
Parameters.url
|
135
|
-
],
|
136
166
|
queryParameters: [
|
137
|
-
Parameters.
|
138
|
-
Parameters.
|
139
|
-
Parameters.
|
167
|
+
Parameters.restype,
|
168
|
+
Parameters.comp,
|
169
|
+
Parameters.timeoutInSeconds
|
140
170
|
],
|
171
|
+
urlParameters: [Parameters.url],
|
141
172
|
headerParameters: [
|
142
173
|
Parameters.version,
|
143
|
-
Parameters.requestId
|
174
|
+
Parameters.requestId,
|
175
|
+
Parameters.accept1
|
144
176
|
],
|
177
|
+
isXML: true,
|
178
|
+
serializer: xmlSerializer
|
179
|
+
};
|
180
|
+
var getStatisticsOperationSpec = {
|
181
|
+
path: "/",
|
182
|
+
httpMethod: "GET",
|
145
183
|
responses: {
|
146
184
|
200: {
|
147
185
|
bodyMapper: Mappers.BlobServiceStatistics,
|
@@ -149,29 +187,26 @@ var getStatisticsOperationSpec = {
|
|
149
187
|
},
|
150
188
|
default: {
|
151
189
|
bodyMapper: Mappers.StorageError,
|
152
|
-
headersMapper: Mappers.
|
190
|
+
headersMapper: Mappers.ServiceGetStatisticsExceptionHeaders
|
153
191
|
}
|
154
192
|
},
|
155
|
-
isXML: true,
|
156
|
-
serializer: serializer
|
157
|
-
};
|
158
|
-
var listContainersSegmentOperationSpec = {
|
159
|
-
httpMethod: "GET",
|
160
|
-
urlParameters: [
|
161
|
-
Parameters.url
|
162
|
-
],
|
163
193
|
queryParameters: [
|
164
|
-
Parameters.
|
165
|
-
Parameters.marker0,
|
166
|
-
Parameters.maxPageSize,
|
167
|
-
Parameters.include0,
|
194
|
+
Parameters.restype,
|
168
195
|
Parameters.timeoutInSeconds,
|
169
|
-
Parameters.
|
196
|
+
Parameters.comp1
|
170
197
|
],
|
198
|
+
urlParameters: [Parameters.url],
|
171
199
|
headerParameters: [
|
172
200
|
Parameters.version,
|
173
|
-
Parameters.requestId
|
201
|
+
Parameters.requestId,
|
202
|
+
Parameters.accept1
|
174
203
|
],
|
204
|
+
isXML: true,
|
205
|
+
serializer: xmlSerializer
|
206
|
+
};
|
207
|
+
var listContainersSegmentOperationSpec = {
|
208
|
+
path: "/",
|
209
|
+
httpMethod: "GET",
|
175
210
|
responses: {
|
176
211
|
200: {
|
177
212
|
bodyMapper: Mappers.ListContainersSegmentResponse,
|
@@ -179,31 +214,29 @@ var listContainersSegmentOperationSpec = {
|
|
179
214
|
},
|
180
215
|
default: {
|
181
216
|
bodyMapper: Mappers.StorageError,
|
182
|
-
headersMapper: Mappers.
|
217
|
+
headersMapper: Mappers.ServiceListContainersSegmentExceptionHeaders
|
183
218
|
}
|
184
219
|
},
|
185
|
-
isXML: true,
|
186
|
-
serializer: serializer
|
187
|
-
};
|
188
|
-
var getUserDelegationKeyOperationSpec = {
|
189
|
-
httpMethod: "POST",
|
190
|
-
urlParameters: [
|
191
|
-
Parameters.url
|
192
|
-
],
|
193
220
|
queryParameters: [
|
194
221
|
Parameters.timeoutInSeconds,
|
195
|
-
Parameters.
|
196
|
-
Parameters.
|
222
|
+
Parameters.comp2,
|
223
|
+
Parameters.prefix,
|
224
|
+
Parameters.marker,
|
225
|
+
Parameters.maxPageSize,
|
226
|
+
Parameters.include
|
197
227
|
],
|
228
|
+
urlParameters: [Parameters.url],
|
198
229
|
headerParameters: [
|
199
230
|
Parameters.version,
|
200
|
-
Parameters.requestId
|
231
|
+
Parameters.requestId,
|
232
|
+
Parameters.accept1
|
201
233
|
],
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
234
|
+
isXML: true,
|
235
|
+
serializer: xmlSerializer
|
236
|
+
};
|
237
|
+
var getUserDelegationKeyOperationSpec = {
|
238
|
+
path: "/",
|
239
|
+
httpMethod: "POST",
|
207
240
|
responses: {
|
208
241
|
200: {
|
209
242
|
bodyMapper: Mappers.UserDelegationKey,
|
@@ -211,96 +244,80 @@ var getUserDelegationKeyOperationSpec = {
|
|
211
244
|
},
|
212
245
|
default: {
|
213
246
|
bodyMapper: Mappers.StorageError,
|
214
|
-
headersMapper: Mappers.
|
247
|
+
headersMapper: Mappers.ServiceGetUserDelegationKeyExceptionHeaders
|
215
248
|
}
|
216
249
|
},
|
217
|
-
|
218
|
-
serializer: serializer
|
219
|
-
};
|
220
|
-
var getAccountInfoOperationSpec = {
|
221
|
-
httpMethod: "GET",
|
222
|
-
urlParameters: [
|
223
|
-
Parameters.url
|
224
|
-
],
|
250
|
+
requestBody: Parameters.keyInfo,
|
225
251
|
queryParameters: [
|
226
|
-
Parameters.
|
227
|
-
Parameters.
|
252
|
+
Parameters.restype,
|
253
|
+
Parameters.timeoutInSeconds,
|
254
|
+
Parameters.comp3
|
228
255
|
],
|
256
|
+
urlParameters: [Parameters.url],
|
229
257
|
headerParameters: [
|
230
|
-
Parameters.
|
258
|
+
Parameters.contentType,
|
259
|
+
Parameters.accept,
|
260
|
+
Parameters.version,
|
261
|
+
Parameters.requestId
|
231
262
|
],
|
263
|
+
isXML: true,
|
264
|
+
contentType: "application/xml; charset=utf-8",
|
265
|
+
mediaType: "xml",
|
266
|
+
serializer: xmlSerializer
|
267
|
+
};
|
268
|
+
var getAccountInfoOperationSpec = {
|
269
|
+
path: "/",
|
270
|
+
httpMethod: "GET",
|
232
271
|
responses: {
|
233
272
|
200: {
|
234
273
|
headersMapper: Mappers.ServiceGetAccountInfoHeaders
|
235
274
|
},
|
236
275
|
default: {
|
237
276
|
bodyMapper: Mappers.StorageError,
|
238
|
-
headersMapper: Mappers.
|
277
|
+
headersMapper: Mappers.ServiceGetAccountInfoExceptionHeaders
|
239
278
|
}
|
240
279
|
},
|
280
|
+
queryParameters: [Parameters.comp, Parameters.restype1],
|
281
|
+
urlParameters: [Parameters.url],
|
282
|
+
headerParameters: [Parameters.version, Parameters.accept1],
|
241
283
|
isXML: true,
|
242
|
-
serializer:
|
284
|
+
serializer: xmlSerializer
|
243
285
|
};
|
244
286
|
var submitBatchOperationSpec = {
|
287
|
+
path: "/",
|
245
288
|
httpMethod: "POST",
|
246
|
-
urlParameters: [
|
247
|
-
Parameters.url
|
248
|
-
],
|
249
|
-
queryParameters: [
|
250
|
-
Parameters.timeoutInSeconds,
|
251
|
-
Parameters.comp4
|
252
|
-
],
|
253
|
-
headerParameters: [
|
254
|
-
Parameters.contentLength,
|
255
|
-
Parameters.multipartContentType,
|
256
|
-
Parameters.version,
|
257
|
-
Parameters.requestId
|
258
|
-
],
|
259
|
-
requestBody: {
|
260
|
-
parameterPath: "body",
|
261
|
-
mapper: {
|
262
|
-
required: true,
|
263
|
-
serializedName: "body",
|
264
|
-
type: {
|
265
|
-
name: "Stream"
|
266
|
-
}
|
267
|
-
}
|
268
|
-
},
|
269
|
-
contentType: "application/xml; charset=utf-8",
|
270
289
|
responses: {
|
271
290
|
202: {
|
272
291
|
bodyMapper: {
|
273
|
-
|
274
|
-
|
275
|
-
name: "Stream"
|
276
|
-
}
|
292
|
+
type: { name: "Stream" },
|
293
|
+
serializedName: "parsedResponse"
|
277
294
|
},
|
278
295
|
headersMapper: Mappers.ServiceSubmitBatchHeaders
|
279
296
|
},
|
280
297
|
default: {
|
281
298
|
bodyMapper: Mappers.StorageError,
|
282
|
-
headersMapper: Mappers.
|
299
|
+
headersMapper: Mappers.ServiceSubmitBatchExceptionHeaders
|
283
300
|
}
|
284
301
|
},
|
302
|
+
requestBody: Parameters.body,
|
303
|
+
queryParameters: [Parameters.timeoutInSeconds, Parameters.comp4],
|
304
|
+
urlParameters: [Parameters.url],
|
305
|
+
headerParameters: [
|
306
|
+
Parameters.contentType,
|
307
|
+
Parameters.accept,
|
308
|
+
Parameters.version,
|
309
|
+
Parameters.requestId,
|
310
|
+
Parameters.contentLength,
|
311
|
+
Parameters.multipartContentType
|
312
|
+
],
|
285
313
|
isXML: true,
|
286
|
-
|
314
|
+
contentType: "application/xml; charset=utf-8",
|
315
|
+
mediaType: "xml",
|
316
|
+
serializer: xmlSerializer
|
287
317
|
};
|
288
318
|
var filterBlobsOperationSpec = {
|
319
|
+
path: "/",
|
289
320
|
httpMethod: "GET",
|
290
|
-
urlParameters: [
|
291
|
-
Parameters.url
|
292
|
-
],
|
293
|
-
queryParameters: [
|
294
|
-
Parameters.timeoutInSeconds,
|
295
|
-
Parameters.where,
|
296
|
-
Parameters.marker0,
|
297
|
-
Parameters.maxPageSize,
|
298
|
-
Parameters.comp5
|
299
|
-
],
|
300
|
-
headerParameters: [
|
301
|
-
Parameters.version,
|
302
|
-
Parameters.requestId
|
303
|
-
],
|
304
321
|
responses: {
|
305
322
|
200: {
|
306
323
|
bodyMapper: Mappers.FilterBlobSegment,
|
@@ -308,10 +325,23 @@ var filterBlobsOperationSpec = {
|
|
308
325
|
},
|
309
326
|
default: {
|
310
327
|
bodyMapper: Mappers.StorageError,
|
311
|
-
headersMapper: Mappers.
|
328
|
+
headersMapper: Mappers.ServiceFilterBlobsExceptionHeaders
|
312
329
|
}
|
313
330
|
},
|
331
|
+
queryParameters: [
|
332
|
+
Parameters.timeoutInSeconds,
|
333
|
+
Parameters.marker,
|
334
|
+
Parameters.maxPageSize,
|
335
|
+
Parameters.comp5,
|
336
|
+
Parameters.where
|
337
|
+
],
|
338
|
+
urlParameters: [Parameters.url],
|
339
|
+
headerParameters: [
|
340
|
+
Parameters.version,
|
341
|
+
Parameters.requestId,
|
342
|
+
Parameters.accept1
|
343
|
+
],
|
314
344
|
isXML: true,
|
315
|
-
serializer:
|
345
|
+
serializer: xmlSerializer
|
316
346
|
};
|
317
347
|
//# sourceMappingURL=service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/generated/src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAGnD,oCAAoC;AACpC;IAGE;;;OAGG;IACH,iBAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAqBD,+BAAa,GAAb,UAAc,qBAAmD,EAAE,OAAoF,EAAE,QAAyC;QAChM,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,qBAAqB,uBAAA;YACrB,OAAO,SAAA;SACR,EACD,0BAA0B,EAC1B,QAAQ,CAAiD,CAAC;IAC9D,CAAC;IAkBD,+BAAa,GAAb,UAAc,OAA4G,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,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,yBAAyB;SACjD;KACF;IACD,KAAK,EAAE,IAAI;IACX,UAAU,YAAA;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for\n * license information.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is\n * regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport * as Models from \"../models\";\nimport * as Mappers from \"../models/serviceMappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { StorageClientContext } from \"../storageClientContext\";\n\n/** Class representing a Service. */\nexport class Service {\n private readonly client: StorageClientContext;\n\n /**\n * Create a Service.\n * @param {StorageClientContext} client Reference to the service client.\n */\n constructor(client: StorageClientContext) {\n this.client = client;\n }\n\n /**\n * Sets properties for a storage account's Blob service endpoint, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules\n * @param blobServiceProperties The StorageService properties.\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceSetPropertiesResponse>\n */\n setProperties(blobServiceProperties: Models.BlobServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams): Promise<Models.ServiceSetPropertiesResponse>;\n /**\n * @param blobServiceProperties The StorageService properties.\n * @param callback The callback\n */\n setProperties(blobServiceProperties: Models.BlobServiceProperties, callback: coreHttp.ServiceCallback<void>): void;\n /**\n * @param blobServiceProperties The StorageService properties.\n * @param options The optional parameters\n * @param callback The callback\n */\n setProperties(blobServiceProperties: Models.BlobServiceProperties, options: Models.ServiceSetPropertiesOptionalParams, callback: coreHttp.ServiceCallback<void>): void;\n setProperties(blobServiceProperties: Models.BlobServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams | coreHttp.ServiceCallback<void>, callback?: coreHttp.ServiceCallback<void>): Promise<Models.ServiceSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n {\n blobServiceProperties,\n options\n },\n setPropertiesOperationSpec,\n callback) as Promise<Models.ServiceSetPropertiesResponse>;\n }\n\n /**\n * gets the properties of a storage account's Blob service, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceGetPropertiesResponse>\n */\n getProperties(options?: Models.ServiceGetPropertiesOptionalParams): Promise<Models.ServiceGetPropertiesResponse>;\n /**\n * @param callback The callback\n */\n getProperties(callback: coreHttp.ServiceCallback<Models.BlobServiceProperties>): void;\n /**\n * @param options The optional parameters\n * @param callback The callback\n */\n getProperties(options: Models.ServiceGetPropertiesOptionalParams, callback: coreHttp.ServiceCallback<Models.BlobServiceProperties>): void;\n getProperties(options?: Models.ServiceGetPropertiesOptionalParams | coreHttp.ServiceCallback<Models.BlobServiceProperties>, callback?: coreHttp.ServiceCallback<Models.BlobServiceProperties>): Promise<Models.ServiceGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n {\n options\n },\n getPropertiesOperationSpec,\n callback) as Promise<Models.ServiceGetPropertiesResponse>;\n }\n\n /**\n * Retrieves statistics related to replication for the Blob service. It is only available on the\n * secondary location endpoint when read-access geo-redundant replication is enabled for the\n * storage account.\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceGetStatisticsResponse>\n */\n getStatistics(options?: Models.ServiceGetStatisticsOptionalParams): Promise<Models.ServiceGetStatisticsResponse>;\n /**\n * @param callback The callback\n */\n getStatistics(callback: coreHttp.ServiceCallback<Models.BlobServiceStatistics>): void;\n /**\n * @param options The optional parameters\n * @param callback The callback\n */\n getStatistics(options: Models.ServiceGetStatisticsOptionalParams, callback: coreHttp.ServiceCallback<Models.BlobServiceStatistics>): void;\n getStatistics(options?: Models.ServiceGetStatisticsOptionalParams | coreHttp.ServiceCallback<Models.BlobServiceStatistics>, callback?: coreHttp.ServiceCallback<Models.BlobServiceStatistics>): Promise<Models.ServiceGetStatisticsResponse> {\n return this.client.sendOperationRequest(\n {\n options\n },\n getStatisticsOperationSpec,\n callback) as Promise<Models.ServiceGetStatisticsResponse>;\n }\n\n /**\n * The List Containers Segment operation returns a list of the containers under the specified\n * account\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceListContainersSegmentResponse>\n */\n listContainersSegment(options?: Models.ServiceListContainersSegmentOptionalParams): Promise<Models.ServiceListContainersSegmentResponse>;\n /**\n * @param callback The callback\n */\n listContainersSegment(callback: coreHttp.ServiceCallback<Models.ListContainersSegmentResponse>): void;\n /**\n * @param options The optional parameters\n * @param callback The callback\n */\n listContainersSegment(options: Models.ServiceListContainersSegmentOptionalParams, callback: coreHttp.ServiceCallback<Models.ListContainersSegmentResponse>): void;\n listContainersSegment(options?: Models.ServiceListContainersSegmentOptionalParams | coreHttp.ServiceCallback<Models.ListContainersSegmentResponse>, callback?: coreHttp.ServiceCallback<Models.ListContainersSegmentResponse>): Promise<Models.ServiceListContainersSegmentResponse> {\n return this.client.sendOperationRequest(\n {\n options\n },\n listContainersSegmentOperationSpec,\n callback) as Promise<Models.ServiceListContainersSegmentResponse>;\n }\n\n /**\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n * @param keyInfo\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceGetUserDelegationKeyResponse>\n */\n getUserDelegationKey(keyInfo: Models.KeyInfo, options?: Models.ServiceGetUserDelegationKeyOptionalParams): Promise<Models.ServiceGetUserDelegationKeyResponse>;\n /**\n * @param keyInfo\n * @param callback The callback\n */\n getUserDelegationKey(keyInfo: Models.KeyInfo, callback: coreHttp.ServiceCallback<Models.UserDelegationKey>): void;\n /**\n * @param keyInfo\n * @param options The optional parameters\n * @param callback The callback\n */\n getUserDelegationKey(keyInfo: Models.KeyInfo, options: Models.ServiceGetUserDelegationKeyOptionalParams, callback: coreHttp.ServiceCallback<Models.UserDelegationKey>): void;\n getUserDelegationKey(keyInfo: Models.KeyInfo, options?: Models.ServiceGetUserDelegationKeyOptionalParams | coreHttp.ServiceCallback<Models.UserDelegationKey>, callback?: coreHttp.ServiceCallback<Models.UserDelegationKey>): Promise<Models.ServiceGetUserDelegationKeyResponse> {\n return this.client.sendOperationRequest(\n {\n keyInfo,\n options\n },\n getUserDelegationKeyOperationSpec,\n callback) as Promise<Models.ServiceGetUserDelegationKeyResponse>;\n }\n\n /**\n * Returns the sku name and account kind\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceGetAccountInfoResponse>\n */\n getAccountInfo(options?: coreHttp.RequestOptionsBase): Promise<Models.ServiceGetAccountInfoResponse>;\n /**\n * @param callback The callback\n */\n getAccountInfo(callback: coreHttp.ServiceCallback<void>): void;\n /**\n * @param options The optional parameters\n * @param callback The callback\n */\n getAccountInfo(options: coreHttp.RequestOptionsBase, callback: coreHttp.ServiceCallback<void>): void;\n getAccountInfo(options?: coreHttp.RequestOptionsBase | coreHttp.ServiceCallback<void>, callback?: coreHttp.ServiceCallback<void>): Promise<Models.ServiceGetAccountInfoResponse> {\n return this.client.sendOperationRequest(\n {\n options\n },\n getAccountInfoOperationSpec,\n callback) as Promise<Models.ServiceGetAccountInfoResponse>;\n }\n\n /**\n * The Batch operation allows multiple API calls to be embedded into a single HTTP request.\n * @param body Initial data\n * @param contentLength The length of the request.\n * @param multipartContentType Required. The value of this header must be multipart/mixed with a\n * batch boundary. Example header value: multipart/mixed; boundary=batch_<GUID>\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceSubmitBatchResponse>\n */\n submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, options?: Models.ServiceSubmitBatchOptionalParams): Promise<Models.ServiceSubmitBatchResponse>;\n /**\n * @param body Initial data\n * @param contentLength The length of the request.\n * @param multipartContentType Required. The value of this header must be multipart/mixed with a\n * batch boundary. Example header value: multipart/mixed; boundary=batch_<GUID>\n * @param callback The callback\n */\n submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, callback: coreHttp.ServiceCallback<void>): void;\n /**\n * @param body Initial data\n * @param contentLength The length of the request.\n * @param multipartContentType Required. The value of this header must be multipart/mixed with a\n * batch boundary. Example header value: multipart/mixed; boundary=batch_<GUID>\n * @param options The optional parameters\n * @param callback The callback\n */\n submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, options: Models.ServiceSubmitBatchOptionalParams, callback: coreHttp.ServiceCallback<void>): void;\n submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, options?: Models.ServiceSubmitBatchOptionalParams | coreHttp.ServiceCallback<void>, callback?: coreHttp.ServiceCallback<void>): Promise<Models.ServiceSubmitBatchResponse> {\n return this.client.sendOperationRequest(\n {\n body,\n contentLength,\n multipartContentType,\n options\n },\n submitBatchOperationSpec,\n callback) as Promise<Models.ServiceSubmitBatchResponse>;\n }\n\n /**\n * The Filter Blobs operation enables callers to list blobs across all containers whose tags match\n * a given search expression. Filter blobs searches across all containers within a storage account\n * but can be scoped within the expression to a single container.\n * @param [options] The optional parameters\n * @returns Promise<Models.ServiceFilterBlobsResponse>\n */\n filterBlobs(options?: Models.ServiceFilterBlobsOptionalParams): Promise<Models.ServiceFilterBlobsResponse>;\n /**\n * @param callback The callback\n */\n filterBlobs(callback: coreHttp.ServiceCallback<Models.FilterBlobSegment>): void;\n /**\n * @param options The optional parameters\n * @param callback The callback\n */\n filterBlobs(options: Models.ServiceFilterBlobsOptionalParams, callback: coreHttp.ServiceCallback<Models.FilterBlobSegment>): void;\n filterBlobs(options?: Models.ServiceFilterBlobsOptionalParams | coreHttp.ServiceCallback<Models.FilterBlobSegment>, callback?: coreHttp.ServiceCallback<Models.FilterBlobSegment>): Promise<Models.ServiceFilterBlobsResponse> {\n return this.client.sendOperationRequest(\n {\n options\n },\n filterBlobsOperationSpec,\n callback) as Promise<Models.ServiceFilterBlobsResponse>;\n }\n}\n\n// Operation Specifications\nconst serializer = new coreHttp.Serializer(Mappers, true);\nconst setPropertiesOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"PUT\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype0,\n Parameters.comp0\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId\n ],\n requestBody: {\n parameterPath: \"blobServiceProperties\",\n mapper: {\n ...Mappers.BlobServiceProperties,\n required: true\n }\n },\n contentType: \"application/xml; charset=utf-8\",\n responses: {\n 202: {\n headersMapper: Mappers.ServiceSetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSetPropertiesHeaders\n }\n },\n isXML: true,\n serializer\n};\n\nconst getPropertiesOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"GET\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype0,\n Parameters.comp0\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId\n ],\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceProperties,\n headersMapper: Mappers.ServiceGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetPropertiesHeaders\n }\n },\n isXML: true,\n serializer\n};\n\nconst getStatisticsOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"GET\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype0,\n Parameters.comp1\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId\n ],\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceStatistics,\n headersMapper: Mappers.ServiceGetStatisticsHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetStatisticsHeaders\n }\n },\n isXML: true,\n serializer\n};\n\nconst listContainersSegmentOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"GET\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.prefix,\n Parameters.marker0,\n Parameters.maxPageSize,\n Parameters.include0,\n Parameters.timeoutInSeconds,\n Parameters.comp2\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId\n ],\n responses: {\n 200: {\n bodyMapper: Mappers.ListContainersSegmentResponse,\n headersMapper: Mappers.ServiceListContainersSegmentHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceListContainersSegmentHeaders\n }\n },\n isXML: true,\n serializer\n};\n\nconst getUserDelegationKeyOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"POST\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.restype0,\n Parameters.comp3\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId\n ],\n requestBody: {\n parameterPath: \"keyInfo\",\n mapper: {\n ...Mappers.KeyInfo,\n required: true\n }\n },\n contentType: \"application/xml; charset=utf-8\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserDelegationKey,\n headersMapper: Mappers.ServiceGetUserDelegationKeyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetUserDelegationKeyHeaders\n }\n },\n isXML: true,\n serializer\n};\n\nconst getAccountInfoOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"GET\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.restype1,\n Parameters.comp0\n ],\n headerParameters: [\n Parameters.version\n ],\n responses: {\n 200: {\n headersMapper: Mappers.ServiceGetAccountInfoHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetAccountInfoHeaders\n }\n },\n isXML: true,\n serializer\n};\n\nconst submitBatchOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"POST\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp4\n ],\n headerParameters: [\n Parameters.contentLength,\n Parameters.multipartContentType,\n Parameters.version,\n Parameters.requestId\n ],\n requestBody: {\n parameterPath: \"body\",\n mapper: {\n required: true,\n serializedName: \"body\",\n type: {\n name: \"Stream\"\n }\n }\n },\n contentType: \"application/xml; charset=utf-8\",\n responses: {\n 202: {\n bodyMapper: {\n serializedName: \"parsedResponse\",\n type: {\n name: \"Stream\"\n }\n },\n headersMapper: Mappers.ServiceSubmitBatchHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSubmitBatchHeaders\n }\n },\n isXML: true,\n serializer\n};\n\nconst filterBlobsOperationSpec: coreHttp.OperationSpec = {\n httpMethod: \"GET\",\n urlParameters: [\n Parameters.url\n ],\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.where,\n Parameters.marker0,\n Parameters.maxPageSize,\n Parameters.comp5\n ],\n headerParameters: [\n Parameters.version,\n Parameters.requestId\n ],\n responses: {\n 200: {\n bodyMapper: Mappers.FilterBlobSegment,\n headersMapper: Mappers.ServiceFilterBlobsHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceFilterBlobsHeaders\n }\n },\n isXML: true,\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/generated/src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAsBnD,oCAAoC;AACpC;IAGE;;;OAGG;IACH,iBAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,+BAAa,GAAb,UACE,qBAA4C,EAC5C,OAA4C;QAE5C,IAAM,kBAAkB,GAAgC;YACtD,qBAAqB,uBAAA;YACrB,OAAO,EAAE,QAAQ,CAAC,oCAAoC,CAAC,OAAO,IAAI,EAAE,CAAC;SACtE,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,kB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AE,OAAO,CAAC,kCAAkC;SAC1D;KACF;IACD,WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,eAAe,EAAE,CAAC,UAAU,CAAC,gBAAgB,EAAE,UAAU,CAAC,KAAK,CAAC;IAChE,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,oBAAoB;KAChC;IACD,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,gCAAgC;IAC7C,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,aAAa;CAC1B,CAAC;AACF,IAAM,wBAAwB,GAA2B;IACvD,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;YACrC,aAAa,EAAE,OAAO,CAAC,yBAAyB;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;KACjB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { StorageClientContext } from \"../storageClientContext\";\nimport {\n BlobServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceGetStatisticsOptionalParams,\n ServiceGetStatisticsResponse,\n ServiceListContainersSegmentOptionalParams,\n ServiceListContainersSegmentResponse,\n KeyInfo,\n ServiceGetUserDelegationKeyOptionalParams,\n ServiceGetUserDelegationKeyResponse,\n ServiceGetAccountInfoResponse,\n ServiceSubmitBatchOptionalParams,\n ServiceSubmitBatchResponse,\n ServiceFilterBlobsOptionalParams,\n ServiceFilterBlobsResponse\n} from \"../models\";\n\n/** Class representing a Service. */\nexport class Service {\n private readonly client: StorageClientContext;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClientContext) {\n this.client = client;\n }\n\n /**\n * Sets properties for a storage account's Blob service endpoint, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules\n * @param blobServiceProperties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n blobServiceProperties: BlobServiceProperties,\n options?: ServiceSetPropertiesOptionalParams\n ): Promise<ServiceSetPropertiesResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n blobServiceProperties,\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n setPropertiesOperationSpec\n ) as Promise<ServiceSetPropertiesResponse>;\n }\n\n /**\n * gets the properties of a storage account's Blob service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams\n ): Promise<ServiceGetPropertiesResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n getPropertiesOperationSpec\n ) as Promise<ServiceGetPropertiesResponse>;\n }\n\n /**\n * Retrieves statistics related to replication for the Blob service. It is only available on the\n * secondary location endpoint when read-access geo-redundant replication is enabled for the storage\n * account.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ServiceGetStatisticsOptionalParams\n ): Promise<ServiceGetStatisticsResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n getStatisticsOperationSpec\n ) as Promise<ServiceGetStatisticsResponse>;\n }\n\n /**\n * The List Containers Segment operation returns a list of the containers under the specified account\n * @param options The options parameters.\n */\n listContainersSegment(\n options?: ServiceListContainersSegmentOptionalParams\n ): Promise<ServiceListContainersSegmentResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n listContainersSegmentOperationSpec\n ) as Promise<ServiceListContainersSegmentResponse>;\n }\n\n /**\n * Retrieves a user delegation key for the Blob service. This is only a valid operation when using\n * bearer token authentication.\n * @param keyInfo Key information\n * @param options The options parameters.\n */\n getUserDelegationKey(\n keyInfo: KeyInfo,\n options?: ServiceGetUserDelegationKeyOptionalParams\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n keyInfo,\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n getUserDelegationKeyOperationSpec\n ) as Promise<ServiceGetUserDelegationKeyResponse>;\n }\n\n /**\n * Returns the sku name and account kind\n * @param options The options parameters.\n */\n getAccountInfo(\n options?: coreHttp.OperationOptions\n ): Promise<ServiceGetAccountInfoResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n getAccountInfoOperationSpec\n ) as Promise<ServiceGetAccountInfoResponse>;\n }\n\n /**\n * The Batch operation allows multiple API calls to be embedded into a single HTTP request.\n * @param contentLength The length of the request.\n * @param multipartContentType Required. The value of this header must be multipart/mixed with a batch\n * boundary. Example header value: multipart/mixed; boundary=batch_<GUID>\n * @param body Initial data\n * @param options The options parameters.\n */\n submitBatch(\n contentLength: number,\n multipartContentType: string,\n body: coreHttp.HttpRequestBody,\n options?: ServiceSubmitBatchOptionalParams\n ): Promise<ServiceSubmitBatchResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n contentLength,\n multipartContentType,\n body,\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n submitBatchOperationSpec\n ) as Promise<ServiceSubmitBatchResponse>;\n }\n\n /**\n * The Filter Blobs operation enables callers to list blobs across all containers whose tags match a\n * given search expression. Filter blobs searches across all containers within a storage account but\n * can be scoped within the expression to a single container.\n * @param options The options parameters.\n */\n filterBlobs(\n options?: ServiceFilterBlobsOptionalParams\n ): Promise<ServiceFilterBlobsResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n filterBlobsOperationSpec\n ) as Promise<ServiceFilterBlobsResponse>;\n }\n}\n// Operation Specifications\nconst xmlSerializer = new coreHttp.Serializer(Mappers, /* isXml */ true);\n\nconst setPropertiesOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ServiceSetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders\n }\n },\n requestBody: Parameters.blobServiceProperties,\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceProperties,\n headersMapper: Mappers.ServiceGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getStatisticsOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceStatistics,\n headersMapper: Mappers.ServiceGetStatisticsHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetStatisticsExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.restype,\n Parameters.timeoutInSeconds,\n Parameters.comp1\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst listContainersSegmentOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListContainersSegmentResponse,\n headersMapper: Mappers.ServiceListContainersSegmentHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceListContainersSegmentExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp2,\n Parameters.prefix,\n Parameters.marker,\n Parameters.maxPageSize,\n Parameters.include\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getUserDelegationKeyOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserDelegationKey,\n headersMapper: Mappers.ServiceGetUserDelegationKeyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetUserDelegationKeyExceptionHeaders\n }\n },\n requestBody: Parameters.keyInfo,\n queryParameters: [\n Parameters.restype,\n Parameters.timeoutInSeconds,\n Parameters.comp3\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst getAccountInfoOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: Mappers.ServiceGetAccountInfoHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetAccountInfoExceptionHeaders\n }\n },\n queryParameters: [Parameters.comp, Parameters.restype1],\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.version, Parameters.accept1],\n isXML: true,\n serializer: xmlSerializer\n};\nconst submitBatchOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.ServiceSubmitBatchHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSubmitBatchExceptionHeaders\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp4],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n Parameters.contentLength,\n Parameters.multipartContentType\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst filterBlobsOperationSpec: coreHttp.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FilterBlobSegment,\n headersMapper: Mappers.ServiceFilterBlobsHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceFilterBlobsExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.marker,\n Parameters.maxPageSize,\n Parameters.comp5,\n Parameters.where\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
|