@azure/storage-file-datalake
Advanced tools
Comparing version 12.4.1-alpha.20210323.1 to 12.5.0-beta.1
# Release History | ||
## 12.4.1 (Unreleased) | ||
## 12.5.0-beta.1 (2021-05-14) | ||
- Updated Azure Storage Service API version to 2020-08-04. | ||
- Added support for Path Soft Delete. You can list the deleted paths via `DataLakeFileSystemClient.listDeletedPaths()`, and restore a deleted path via `DataLakeFileSystemClient.undeletePath()`. | ||
- Restoring deleted FileSystem doesn't support renaming anymore, deprecated `destinationFileSystemName` in `ServiceUndeleteFileSystemOptions` for `DataLakeServiceClient.undeleteFileSystem()`. | ||
@@ -6,0 +9,0 @@ ## 12.4.0 (2021-03-10) |
import { __assign, __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter, __extends, __generator, __values } from "tslib"; | ||
import { ContainerClient } from "@azure/storage-blob"; | ||
import { CanonicalCode } from "@opentelemetry/api"; | ||
import { SpanStatusCode } from "@azure/core-tracing"; | ||
import { AnonymousCredential } from "./credentials/AnonymousCredential"; | ||
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential"; | ||
import { DataLakeLeaseClient } from "./DataLakeLeaseClient"; | ||
import { FileSystemOperations } from "./generated/src/operations"; | ||
import { FileSystem } from "./generated/src/operations"; | ||
import { newPipeline, Pipeline } from "./Pipeline"; | ||
@@ -15,2 +15,4 @@ import { StorageClient } from "./StorageClient"; | ||
import { generateDataLakeSASQueryParameters } from "./sas/DataLakeSASSignatureValues"; | ||
import { DeletionIdKey, PathResultTypeConstants } from "./utils/constants"; | ||
import { PathClientInternal } from "./utils/PathClientInternal"; | ||
/** | ||
@@ -38,3 +40,4 @@ * A DataLakeFileSystemClient represents a URL to the Azure Storage file system | ||
} | ||
_this.fileSystemContext = new FileSystemOperations(_this.storageClientContext); | ||
_this.fileSystemContext = new FileSystem(_this.storageClientContext); | ||
_this.fileSystemContextToBlobEndpoint = new FileSystem(_this.storageClientContextToBlobEndpoint); | ||
_this.blobContainerClient = new ContainerClient(_this.blobEndpointUrl, _this.pipeline); | ||
@@ -103,3 +106,3 @@ return _this; | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_1.message | ||
@@ -140,3 +143,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_2.message | ||
@@ -178,3 +181,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_3.message | ||
@@ -214,3 +217,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_4.message | ||
@@ -250,3 +253,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_5.message | ||
@@ -299,3 +302,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_6.message | ||
@@ -340,3 +343,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_7.message | ||
@@ -387,3 +390,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_8.message | ||
@@ -430,3 +433,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_9.message | ||
@@ -628,3 +631,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_11.message | ||
@@ -642,2 +645,252 @@ }); | ||
/** | ||
* Returns an async iterable iterator to list all the paths (directories and files) | ||
* under the specified file system. | ||
* | ||
* .byPage() returns an async iterable iterator to list the paths in pages. | ||
* | ||
* Example using `for await` syntax: | ||
* | ||
* ```js | ||
* // Get the fileSystemClient before you run these snippets, | ||
* // Can be obtained from `serviceClient.getFileSystemClient("<your-filesystem-name>");` | ||
* let i = 1; | ||
* for await (const deletePath of fileSystemClient.listDeletedPaths()) { | ||
* console.log(`Path ${i++}: ${deletePath.name}`); | ||
* } | ||
* ``` | ||
* | ||
* Example using `iter.next()`: | ||
* | ||
* ```js | ||
* let i = 1; | ||
* let iter = fileSystemClient.listDeletedPaths(); | ||
* let deletedPathItem = await iter.next(); | ||
* while (!deletedPathItem.done) { | ||
* console.log(`Path ${i++}: ${deletedPathItem.value.name}`); | ||
* pathItem = await iter.next(); | ||
* } | ||
* ``` | ||
* | ||
* Example using `byPage()`: | ||
* | ||
* ```js | ||
* // passing optional maxPageSize in the page settings | ||
* let i = 1; | ||
* for await (const response of fileSystemClient.listDeletedPaths().byPage({ maxPageSize: 20 })) { | ||
* for (const deletePath of response.pathItems) { | ||
* console.log(`Path ${i++}: ${deletePath.name}`); | ||
* } | ||
* } | ||
* ``` | ||
* | ||
* Example using paging with a marker: | ||
* | ||
* ```js | ||
* let i = 1; | ||
* let iterator = fileSystemClient.listDeletedPaths().byPage({ maxPageSize: 2 }); | ||
* let response = (await iterator.next()).value; | ||
* | ||
* // Prints 2 path names | ||
* for (const path of response.pathItems) { | ||
* console.log(`Path ${i++}: ${path.name}}`); | ||
* } | ||
* | ||
* // Gets next marker | ||
* let marker = response.continuationToken; | ||
* | ||
* // Passing next marker as continuationToken | ||
* | ||
* iterator = fileSystemClient.listDeletedPaths().byPage({ continuationToken: marker, maxPageSize: 10 }); | ||
* response = (await iterator.next()).value; | ||
* | ||
* // Prints 10 path names | ||
* for (const deletePath of response.deletedPathItems) { | ||
* console.log(`Path ${i++}: ${deletePath.name}`); | ||
* } | ||
* ``` | ||
* | ||
* @see https://docs.microsoft.com/rest/api/storageservices/list-blobs | ||
* | ||
* @param options - Optional. Options when listing deleted paths. | ||
*/ | ||
DataLakeFileSystemClient.prototype.listDeletedPaths = function (options) { | ||
var _a; | ||
var _this = this; | ||
if (options === void 0) { options = {}; } | ||
var iter = this.listDeletedItems(options); | ||
return _a = { | ||
next: function () { | ||
return iter.next(); | ||
} | ||
}, | ||
_a[Symbol.asyncIterator] = function () { | ||
return this; | ||
}, | ||
_a.byPage = function (settings) { | ||
if (settings === void 0) { settings = {}; } | ||
return _this.listDeletedSegments(settings.continuationToken, __assign({ maxResults: settings.maxPageSize }, options)); | ||
}, | ||
_a; | ||
}; | ||
DataLakeFileSystemClient.prototype.listDeletedItems = function (options) { | ||
if (options === void 0) { options = {}; } | ||
return __asyncGenerator(this, arguments, function listDeletedItems_1() { | ||
var _a, _b, response, e_12_1; | ||
var e_12, _c; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
_d.trys.push([0, 7, 8, 13]); | ||
_a = __asyncValues(this.listDeletedSegments(undefined, options)); | ||
_d.label = 1; | ||
case 1: return [4 /*yield*/, __await(_a.next())]; | ||
case 2: | ||
if (!(_b = _d.sent(), !_b.done)) return [3 /*break*/, 6]; | ||
response = _b.value; | ||
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues(response.pathItems || [])))]; | ||
case 3: return [4 /*yield*/, __await.apply(void 0, [_d.sent()])]; | ||
case 4: | ||
_d.sent(); | ||
_d.label = 5; | ||
case 5: return [3 /*break*/, 1]; | ||
case 6: return [3 /*break*/, 13]; | ||
case 7: | ||
e_12_1 = _d.sent(); | ||
e_12 = { error: e_12_1 }; | ||
return [3 /*break*/, 13]; | ||
case 8: | ||
_d.trys.push([8, , 11, 12]); | ||
if (!(_b && !_b.done && (_c = _a.return))) return [3 /*break*/, 10]; | ||
return [4 /*yield*/, __await(_c.call(_a))]; | ||
case 9: | ||
_d.sent(); | ||
_d.label = 10; | ||
case 10: return [3 /*break*/, 12]; | ||
case 11: | ||
if (e_12) throw e_12.error; | ||
return [7 /*endfinally*/]; | ||
case 12: return [7 /*endfinally*/]; | ||
case 13: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DataLakeFileSystemClient.prototype.listDeletedSegments = function (continuation, options) { | ||
if (options === void 0) { options = {}; } | ||
return __asyncGenerator(this, arguments, function listDeletedSegments_1() { | ||
var response; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!(!!continuation || continuation === undefined)) return [3 /*break*/, 6]; | ||
_a.label = 1; | ||
case 1: return [4 /*yield*/, __await(this.listDeletedPathsSegment(continuation, options))]; | ||
case 2: | ||
response = _a.sent(); | ||
continuation = response.continuation; | ||
return [4 /*yield*/, __await(response)]; | ||
case 3: return [4 /*yield*/, _a.sent()]; | ||
case 4: | ||
_a.sent(); | ||
_a.label = 5; | ||
case 5: | ||
if (continuation) return [3 /*break*/, 1]; | ||
_a.label = 6; | ||
case 6: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DataLakeFileSystemClient.prototype.listDeletedPathsSegment = function (continuation, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, span, updatedOptions, rawResponse, response, _i, _b, path, e_13; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
_a = createSpan("DataLakeFileSystemClient-listDeletedPathsSegment", options), span = _a.span, updatedOptions = _a.updatedOptions; | ||
_c.label = 1; | ||
case 1: | ||
_c.trys.push([1, 3, 4, 5]); | ||
return [4 /*yield*/, this.fileSystemContextToBlobEndpoint.listBlobHierarchySegment(__assign(__assign(__assign({ marker: continuation }, options), { prefix: options.prefix === "" ? undefined : options.prefix }), convertTracingToRequestOptionsBase(updatedOptions)))]; | ||
case 2: | ||
rawResponse = _c.sent(); | ||
response = rawResponse; | ||
response.pathItems = []; | ||
for (_i = 0, _b = rawResponse.segment.blobItems || []; _i < _b.length; _i++) { | ||
path = _b[_i]; | ||
response.pathItems.push({ | ||
name: path.name, | ||
deletionId: path.deletionId, | ||
deletedOn: path.properties.deletedTime, | ||
remainingRetentionDays: path.properties.remainingRetentionDays | ||
}); | ||
} | ||
if (!(response.nextMarker == undefined || response.nextMarker === "")) { | ||
response.continuation = response.nextMarker; | ||
} | ||
return [2 /*return*/, response]; | ||
case 3: | ||
e_13 = _c.sent(); | ||
span.setStatus({ | ||
code: SpanStatusCode.ERROR, | ||
message: e_13.message | ||
}); | ||
throw e_13; | ||
case 4: | ||
span.end(); | ||
return [7 /*endfinally*/]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Restores a soft deleted path. | ||
* | ||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/undelete-blob | ||
* | ||
* @param deletedPath - Required. The path of the deleted path. | ||
* | ||
* @param deletionId - Required. The deletion ID associated with the soft deleted path. | ||
* | ||
*/ | ||
DataLakeFileSystemClient.prototype.undeletePath = function (deletedPath, deletionId, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, span, updatedOptions, pathClient, rawResponse, e_14; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
_a = createSpan("DataLakeFileSystemClient-undeletePath", options), span = _a.span, updatedOptions = _a.updatedOptions; | ||
_b.label = 1; | ||
case 1: | ||
_b.trys.push([1, 3, 4, 5]); | ||
pathClient = new PathClientInternal(appendToURLPath(this.blobEndpointUrl, encodeURIComponent(deletedPath)), this.pipeline); | ||
return [4 /*yield*/, pathClient.blobPathContext.undelete(__assign(__assign({ undeleteSource: "?" + DeletionIdKey + "=" + deletionId }, options), { tracingOptions: updatedOptions.tracingOptions }))]; | ||
case 2: | ||
rawResponse = _b.sent(); | ||
if (rawResponse.resourceType === PathResultTypeConstants.DirectoryResourceType) { | ||
return [2 /*return*/, __assign({ pathClient: this.getDirectoryClient(deletedPath) }, rawResponse)]; | ||
} | ||
else { | ||
return [2 /*return*/, __assign({ pathClient: this.getFileClient(deletedPath) }, rawResponse)]; | ||
} | ||
return [3 /*break*/, 5]; | ||
case 3: | ||
e_14 = _b.sent(); | ||
span.setStatus({ | ||
code: SpanStatusCode.ERROR, | ||
message: e_14.message | ||
}); | ||
throw e_14; | ||
case 4: | ||
span.end(); | ||
return [7 /*endfinally*/]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Only available for DataLakeFileSystemClient constructed with a shared key credential. | ||
@@ -644,0 +897,0 @@ * |
import { __awaiter, __generator } from "tslib"; | ||
import { CanonicalCode } from "@opentelemetry/api"; | ||
import { SpanStatusCode } from "@azure/core-tracing"; | ||
import { createSpan } from "./utils/tracing"; | ||
@@ -39,3 +39,3 @@ var DataLakeLeaseClient = /** @class */ (function () { | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_1.message | ||
@@ -69,3 +69,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_2.message | ||
@@ -99,3 +99,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_3.message | ||
@@ -129,3 +129,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_4.message | ||
@@ -159,3 +159,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_5.message | ||
@@ -162,0 +162,0 @@ }); |
@@ -15,3 +15,3 @@ // Copyright (c) Microsoft Corporation. | ||
import { toDfsEndpointUrl, toFileSystemPagedAsyncIterableIterator } from "./transforms"; | ||
import { CanonicalCode } from "@opentelemetry/api"; | ||
import { SpanStatusCode } from "@azure/core-tracing"; | ||
import { AccountSASPermissions } from "./sas/AccountSASPermissions"; | ||
@@ -134,3 +134,3 @@ import { generateAccountSASQueryParameters } from "./sas/AccountSASSignatureValues"; | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_1.message | ||
@@ -292,3 +292,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_2.message | ||
@@ -335,3 +335,3 @@ }); | ||
span.setStatus({ | ||
code: CanonicalCode.UNKNOWN, | ||
code: SpanStatusCode.ERROR, | ||
message: e_3.message | ||
@@ -348,2 +348,81 @@ }); | ||
}; | ||
/** | ||
* Gets the properties of a storage account’s Blob service endpoint, including properties | ||
* for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. | ||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties | ||
* | ||
* @param options - Options to the Service Get Properties operation. | ||
* @returns Response data for the Service Get Properties operation. | ||
*/ | ||
DataLakeServiceClient.prototype.getProperties = function (options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, span, updatedOptions, e_4; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
_a = createSpan("DataLakeServiceClient-getProperties", options), span = _a.span, updatedOptions = _a.updatedOptions; | ||
_b.label = 1; | ||
case 1: | ||
_b.trys.push([1, 3, 4, 5]); | ||
return [4 /*yield*/, this.blobServiceClient.getProperties({ | ||
abortSignal: options.abortSignal, | ||
tracingOptions: updatedOptions.tracingOptions | ||
})]; | ||
case 2: return [2 /*return*/, _b.sent()]; | ||
case 3: | ||
e_4 = _b.sent(); | ||
span.setStatus({ | ||
code: SpanStatusCode.ERROR, | ||
message: e_4.message | ||
}); | ||
throw e_4; | ||
case 4: | ||
span.end(); | ||
return [7 /*endfinally*/]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Sets properties for a storage account’s Blob service endpoint, including properties | ||
* for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings. | ||
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties | ||
* | ||
* @param properties - | ||
* @param options - Options to the Service Set Properties operation. | ||
* @returns Response data for the Service Set Properties operation. | ||
*/ | ||
DataLakeServiceClient.prototype.setProperties = function (properties, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, span, updatedOptions, e_5; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
_a = createSpan("DataLakeServiceClient-setProperties", options), span = _a.span, updatedOptions = _a.updatedOptions; | ||
_b.label = 1; | ||
case 1: | ||
_b.trys.push([1, 3, 4, 5]); | ||
return [4 /*yield*/, this.blobServiceClient.setProperties(properties, { | ||
abortSignal: options.abortSignal, | ||
tracingOptions: updatedOptions.tracingOptions | ||
})]; | ||
case 2: return [2 /*return*/, _b.sent()]; | ||
case 3: | ||
e_5 = _b.sent(); | ||
span.setStatus({ | ||
code: SpanStatusCode.ERROR, | ||
message: e_5.message | ||
}); | ||
throw e_5; | ||
case 4: | ||
span.end(); | ||
return [7 /*endfinally*/]; | ||
case 5: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return DataLakeServiceClient; | ||
@@ -350,0 +429,0 @@ }(StorageClient)); |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
@@ -5,0 +5,0 @@ * Code generated by Microsoft (R) AutoRest Code Generator. |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export var acl = { | ||
parameterPath: [ | ||
"options", | ||
"acl" | ||
], | ||
import { QueryCollectionFormat } from "@azure/core-http"; | ||
export var accept = { | ||
parameterPath: "accept", | ||
mapper: { | ||
serializedName: "x-ms-acl", | ||
defaultValue: "application/json", | ||
isConstant: true, | ||
serializedName: "Accept", | ||
type: { | ||
@@ -22,42 +20,40 @@ name: "String" | ||
}; | ||
export var action0 = { | ||
parameterPath: "action", | ||
export var url = { | ||
parameterPath: "url", | ||
mapper: { | ||
serializedName: "url", | ||
required: true, | ||
serializedName: "action", | ||
xmlName: "url", | ||
type: { | ||
name: "Enum", | ||
allowedValues: [ | ||
"append", | ||
"flush", | ||
"setProperties", | ||
"setAccessControl", | ||
"setAccessControlRecursive" | ||
] | ||
name: "String" | ||
} | ||
}, | ||
skipEncoding: true | ||
}; | ||
export var resource = { | ||
parameterPath: "resource", | ||
mapper: { | ||
defaultValue: "account", | ||
isConstant: true, | ||
serializedName: "resource", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var action1 = { | ||
parameterPath: [ | ||
"options", | ||
"action" | ||
], | ||
export var prefix = { | ||
parameterPath: ["options", "prefix"], | ||
mapper: { | ||
serializedName: "action", | ||
serializedName: "prefix", | ||
xmlName: "prefix", | ||
type: { | ||
name: "Enum", | ||
allowedValues: [ | ||
"getAccessControl", | ||
"getStatus" | ||
] | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var action2 = { | ||
parameterPath: "action", | ||
export var continuation = { | ||
parameterPath: ["options", "continuation"], | ||
mapper: { | ||
required: true, | ||
isConstant: true, | ||
serializedName: "action", | ||
defaultValue: 'setAccessControl', | ||
serializedName: "continuation", | ||
xmlName: "continuation", | ||
type: { | ||
@@ -68,10 +64,21 @@ name: "String" | ||
}; | ||
export var action3 = { | ||
parameterPath: "action", | ||
export var maxResults = { | ||
parameterPath: ["options", "maxResults"], | ||
mapper: { | ||
required: true, | ||
isConstant: true, | ||
serializedName: "action", | ||
defaultValue: 'setAccessControlRecursive', | ||
constraints: { | ||
InclusiveMinimum: 1 | ||
}, | ||
serializedName: "maxResults", | ||
xmlName: "maxResults", | ||
type: { | ||
name: "Number" | ||
} | ||
} | ||
}; | ||
export var requestId = { | ||
parameterPath: ["options", "requestId"], | ||
mapper: { | ||
serializedName: "x-ms-client-request-id", | ||
xmlName: "x-ms-client-request-id", | ||
type: { | ||
name: "String" | ||
@@ -81,9 +88,21 @@ } | ||
}; | ||
export var action4 = { | ||
parameterPath: "action", | ||
export var timeout = { | ||
parameterPath: ["options", "timeout"], | ||
mapper: { | ||
required: true, | ||
constraints: { | ||
InclusiveMinimum: 0 | ||
}, | ||
serializedName: "timeout", | ||
xmlName: "timeout", | ||
type: { | ||
name: "Number" | ||
} | ||
} | ||
}; | ||
export var version = { | ||
parameterPath: "version", | ||
mapper: { | ||
defaultValue: "2020-08-04", | ||
isConstant: true, | ||
serializedName: "action", | ||
defaultValue: 'flush', | ||
serializedName: "x-ms-version", | ||
type: { | ||
@@ -94,9 +113,8 @@ name: "String" | ||
}; | ||
export var action5 = { | ||
parameterPath: "action", | ||
export var resource1 = { | ||
parameterPath: "resource", | ||
mapper: { | ||
required: true, | ||
defaultValue: "filesystem", | ||
isConstant: true, | ||
serializedName: "action", | ||
defaultValue: 'append', | ||
serializedName: "resource", | ||
type: { | ||
@@ -107,10 +125,7 @@ name: "String" | ||
}; | ||
export var cacheControl = { | ||
parameterPath: [ | ||
"options", | ||
"pathHttpHeaders", | ||
"cacheControl" | ||
], | ||
export var properties = { | ||
parameterPath: ["options", "properties"], | ||
mapper: { | ||
serializedName: "x-ms-cache-control", | ||
serializedName: "x-ms-properties", | ||
xmlName: "x-ms-properties", | ||
type: { | ||
@@ -121,10 +136,39 @@ name: "String" | ||
}; | ||
export var close = { | ||
parameterPath: [ | ||
"options", | ||
"close" | ||
], | ||
export var ifModifiedSince = { | ||
parameterPath: ["options", "modifiedAccessConditions", "ifModifiedSince"], | ||
mapper: { | ||
serializedName: "close", | ||
serializedName: "If-Modified-Since", | ||
xmlName: "If-Modified-Since", | ||
type: { | ||
name: "DateTimeRfc1123" | ||
} | ||
} | ||
}; | ||
export var ifUnmodifiedSince = { | ||
parameterPath: ["options", "modifiedAccessConditions", "ifUnmodifiedSince"], | ||
mapper: { | ||
serializedName: "If-Unmodified-Since", | ||
xmlName: "If-Unmodified-Since", | ||
type: { | ||
name: "DateTimeRfc1123" | ||
} | ||
} | ||
}; | ||
export var path = { | ||
parameterPath: ["options", "path"], | ||
mapper: { | ||
serializedName: "directory", | ||
xmlName: "directory", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var recursive = { | ||
parameterPath: "recursive", | ||
mapper: { | ||
serializedName: "recursive", | ||
required: true, | ||
xmlName: "recursive", | ||
type: { | ||
name: "Boolean" | ||
@@ -134,9 +178,40 @@ } | ||
}; | ||
export var upn = { | ||
parameterPath: ["options", "upn"], | ||
mapper: { | ||
serializedName: "upn", | ||
xmlName: "upn", | ||
type: { | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
export var accept1 = { | ||
parameterPath: "accept", | ||
mapper: { | ||
defaultValue: "application/xml", | ||
isConstant: true, | ||
serializedName: "Accept", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var restype = { | ||
parameterPath: "restype", | ||
mapper: { | ||
defaultValue: "container", | ||
isConstant: true, | ||
serializedName: "restype", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var comp = { | ||
parameterPath: "comp", | ||
mapper: { | ||
required: true, | ||
defaultValue: "list", | ||
isConstant: true, | ||
serializedName: "comp", | ||
defaultValue: 'expiry', | ||
type: { | ||
@@ -147,10 +222,7 @@ name: "String" | ||
}; | ||
export var contentDisposition = { | ||
parameterPath: [ | ||
"options", | ||
"pathHttpHeaders", | ||
"contentDisposition" | ||
], | ||
export var delimiter = { | ||
parameterPath: ["options", "delimiter"], | ||
mapper: { | ||
serializedName: "x-ms-content-disposition", | ||
serializedName: "delimiter", | ||
xmlName: "delimiter", | ||
type: { | ||
@@ -161,10 +233,7 @@ name: "String" | ||
}; | ||
export var contentEncoding = { | ||
parameterPath: [ | ||
"options", | ||
"pathHttpHeaders", | ||
"contentEncoding" | ||
], | ||
export var marker = { | ||
parameterPath: ["options", "marker"], | ||
mapper: { | ||
serializedName: "x-ms-content-encoding", | ||
serializedName: "marker", | ||
xmlName: "marker", | ||
type: { | ||
@@ -175,11 +244,35 @@ name: "String" | ||
}; | ||
export var contentLanguage = { | ||
parameterPath: [ | ||
"options", | ||
"pathHttpHeaders", | ||
"contentLanguage" | ||
], | ||
export var include = { | ||
parameterPath: ["options", "include"], | ||
mapper: { | ||
serializedName: "x-ms-content-language", | ||
serializedName: "include", | ||
xmlName: "include", | ||
xmlElementName: "ListBlobsIncludeItem", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Enum", | ||
allowedValues: [ | ||
"copy", | ||
"deleted", | ||
"metadata", | ||
"snapshots", | ||
"uncommittedblobs", | ||
"versions", | ||
"tags" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
collectionFormat: QueryCollectionFormat.Csv | ||
}; | ||
export var showonly = { | ||
parameterPath: ["options", "showonly"], | ||
mapper: { | ||
defaultValue: "deleted", | ||
isConstant: true, | ||
serializedName: "showonly", | ||
type: { | ||
name: "String" | ||
@@ -189,38 +282,69 @@ } | ||
}; | ||
export var contentLength = { | ||
parameterPath: [ | ||
"options", | ||
"contentLength" | ||
], | ||
export var resource2 = { | ||
parameterPath: ["options", "resource"], | ||
mapper: { | ||
serializedName: "Content-Length", | ||
constraints: { | ||
InclusiveMinimum: 0 | ||
}, | ||
serializedName: "resource", | ||
xmlName: "resource", | ||
type: { | ||
name: "Number" | ||
name: "Enum", | ||
allowedValues: ["directory", "file"] | ||
} | ||
} | ||
}; | ||
export var contentMD5 = { | ||
parameterPath: [ | ||
"options", | ||
"pathHttpHeaders", | ||
"contentMD5" | ||
], | ||
export var mode = { | ||
parameterPath: ["options", "mode"], | ||
mapper: { | ||
serializedName: "x-ms-content-md5", | ||
serializedName: "mode", | ||
xmlName: "mode", | ||
type: { | ||
name: "ByteArray" | ||
name: "Enum", | ||
allowedValues: ["legacy", "posix"] | ||
} | ||
} | ||
}; | ||
export var cacheControl = { | ||
parameterPath: ["options", "pathHttpHeaders", "cacheControl"], | ||
mapper: { | ||
serializedName: "x-ms-cache-control", | ||
xmlName: "x-ms-cache-control", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var contentEncoding = { | ||
parameterPath: ["options", "pathHttpHeaders", "contentEncoding"], | ||
mapper: { | ||
serializedName: "x-ms-content-encoding", | ||
xmlName: "x-ms-content-encoding", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var contentLanguage = { | ||
parameterPath: ["options", "pathHttpHeaders", "contentLanguage"], | ||
mapper: { | ||
serializedName: "x-ms-content-language", | ||
xmlName: "x-ms-content-language", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var contentDisposition = { | ||
parameterPath: ["options", "pathHttpHeaders", "contentDisposition"], | ||
mapper: { | ||
serializedName: "x-ms-content-disposition", | ||
xmlName: "x-ms-content-disposition", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var contentType = { | ||
parameterPath: [ | ||
"options", | ||
"pathHttpHeaders", | ||
"contentType" | ||
], | ||
parameterPath: ["options", "pathHttpHeaders", "contentType"], | ||
mapper: { | ||
serializedName: "x-ms-content-type", | ||
xmlName: "x-ms-content-type", | ||
type: { | ||
@@ -231,9 +355,7 @@ name: "String" | ||
}; | ||
export var continuation = { | ||
parameterPath: [ | ||
"options", | ||
"continuation" | ||
], | ||
export var renameSource = { | ||
parameterPath: ["options", "renameSource"], | ||
mapper: { | ||
serializedName: "continuation", | ||
serializedName: "x-ms-rename-source", | ||
xmlName: "x-ms-rename-source", | ||
type: { | ||
@@ -244,9 +366,7 @@ name: "String" | ||
}; | ||
export var expiresOn = { | ||
parameterPath: [ | ||
"options", | ||
"expiresOn" | ||
], | ||
export var leaseId = { | ||
parameterPath: ["options", "leaseAccessConditions", "leaseId"], | ||
mapper: { | ||
serializedName: "x-ms-expiry-time", | ||
serializedName: "x-ms-lease-id", | ||
xmlName: "x-ms-lease-id", | ||
type: { | ||
@@ -257,7 +377,7 @@ name: "String" | ||
}; | ||
export var expiryOptions = { | ||
parameterPath: "expiryOptions", | ||
export var sourceLeaseId = { | ||
parameterPath: ["options", "sourceLeaseId"], | ||
mapper: { | ||
required: true, | ||
serializedName: "x-ms-expiry-option", | ||
serializedName: "x-ms-source-lease-id", | ||
xmlName: "x-ms-source-lease-id", | ||
type: { | ||
@@ -268,21 +388,17 @@ name: "String" | ||
}; | ||
export var forceFlag = { | ||
parameterPath: [ | ||
"options", | ||
"forceFlag" | ||
], | ||
export var permissions = { | ||
parameterPath: ["options", "permissions"], | ||
mapper: { | ||
serializedName: "forceFlag", | ||
serializedName: "x-ms-permissions", | ||
xmlName: "x-ms-permissions", | ||
type: { | ||
name: "Boolean" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var group = { | ||
parameterPath: [ | ||
"options", | ||
"group" | ||
], | ||
export var umask = { | ||
parameterPath: ["options", "umask"], | ||
mapper: { | ||
serializedName: "x-ms-group", | ||
serializedName: "x-ms-umask", | ||
xmlName: "x-ms-umask", | ||
type: { | ||
@@ -294,9 +410,6 @@ name: "String" | ||
export var ifMatch = { | ||
parameterPath: [ | ||
"options", | ||
"modifiedAccessConditions", | ||
"ifMatch" | ||
], | ||
parameterPath: ["options", "modifiedAccessConditions", "ifMatch"], | ||
mapper: { | ||
serializedName: "If-Match", | ||
xmlName: "If-Match", | ||
type: { | ||
@@ -307,23 +420,31 @@ name: "String" | ||
}; | ||
export var ifModifiedSince = { | ||
parameterPath: [ | ||
"options", | ||
"modifiedAccessConditions", | ||
"ifModifiedSince" | ||
], | ||
export var ifNoneMatch = { | ||
parameterPath: ["options", "modifiedAccessConditions", "ifNoneMatch"], | ||
mapper: { | ||
serializedName: "If-Modified-Since", | ||
serializedName: "If-None-Match", | ||
xmlName: "If-None-Match", | ||
type: { | ||
name: "DateTimeRfc1123" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var ifNoneMatch = { | ||
export var sourceIfMatch = { | ||
parameterPath: ["options", "sourceModifiedAccessConditions", "sourceIfMatch"], | ||
mapper: { | ||
serializedName: "x-ms-source-if-match", | ||
xmlName: "x-ms-source-if-match", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var sourceIfNoneMatch = { | ||
parameterPath: [ | ||
"options", | ||
"modifiedAccessConditions", | ||
"ifNoneMatch" | ||
"sourceModifiedAccessConditions", | ||
"sourceIfNoneMatch" | ||
], | ||
mapper: { | ||
serializedName: "If-None-Match", | ||
serializedName: "x-ms-source-if-none-match", | ||
xmlName: "x-ms-source-if-none-match", | ||
type: { | ||
@@ -334,10 +455,11 @@ name: "String" | ||
}; | ||
export var ifUnmodifiedSince = { | ||
export var sourceIfModifiedSince = { | ||
parameterPath: [ | ||
"options", | ||
"modifiedAccessConditions", | ||
"ifUnmodifiedSince" | ||
"sourceModifiedAccessConditions", | ||
"sourceIfModifiedSince" | ||
], | ||
mapper: { | ||
serializedName: "If-Unmodified-Since", | ||
serializedName: "x-ms-source-if-modified-since", | ||
xmlName: "x-ms-source-if-modified-since", | ||
type: { | ||
@@ -348,72 +470,63 @@ name: "DateTimeRfc1123" | ||
}; | ||
export var leaseId = { | ||
export var sourceIfUnmodifiedSince = { | ||
parameterPath: [ | ||
"options", | ||
"leaseAccessConditions", | ||
"leaseId" | ||
"sourceModifiedAccessConditions", | ||
"sourceIfUnmodifiedSince" | ||
], | ||
mapper: { | ||
serializedName: "x-ms-lease-id", | ||
serializedName: "x-ms-source-if-unmodified-since", | ||
xmlName: "x-ms-source-if-unmodified-since", | ||
type: { | ||
name: "String" | ||
name: "DateTimeRfc1123" | ||
} | ||
} | ||
}; | ||
export var maxRecords = { | ||
parameterPath: [ | ||
"options", | ||
"maxRecords" | ||
], | ||
export var contentType1 = { | ||
parameterPath: ["options", "contentType"], | ||
mapper: { | ||
serializedName: "maxRecords", | ||
constraints: { | ||
InclusiveMinimum: 1 | ||
}, | ||
defaultValue: "application/octet-stream", | ||
isConstant: true, | ||
serializedName: "Content-Type", | ||
type: { | ||
name: "Number" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var maxResults = { | ||
parameterPath: [ | ||
"options", | ||
"maxResults" | ||
], | ||
export var body = { | ||
parameterPath: "body", | ||
mapper: { | ||
serializedName: "maxResults", | ||
constraints: { | ||
InclusiveMinimum: 1 | ||
}, | ||
serializedName: "body", | ||
required: true, | ||
xmlName: "body", | ||
type: { | ||
name: "Number" | ||
name: "Stream" | ||
} | ||
} | ||
}; | ||
export var mode0 = { | ||
parameterPath: [ | ||
"options", | ||
"mode" | ||
], | ||
export var accept2 = { | ||
parameterPath: "accept", | ||
mapper: { | ||
serializedName: "mode", | ||
defaultValue: "application/json", | ||
isConstant: true, | ||
serializedName: "Accept", | ||
type: { | ||
name: "Enum", | ||
allowedValues: [ | ||
"legacy", | ||
"posix" | ||
] | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var mode1 = { | ||
parameterPath: "mode", | ||
export var action = { | ||
parameterPath: "action", | ||
mapper: { | ||
serializedName: "action", | ||
required: true, | ||
serializedName: "mode", | ||
xmlName: "action", | ||
type: { | ||
name: "Enum", | ||
allowedValues: [ | ||
"set", | ||
"modify", | ||
"remove" | ||
"append", | ||
"flush", | ||
"setProperties", | ||
"setAccessControl", | ||
"setAccessControlRecursive" | ||
] | ||
@@ -423,35 +536,34 @@ } | ||
}; | ||
export var owner = { | ||
parameterPath: [ | ||
"options", | ||
"owner" | ||
], | ||
export var maxRecords = { | ||
parameterPath: ["options", "maxRecords"], | ||
mapper: { | ||
serializedName: "x-ms-owner", | ||
constraints: { | ||
InclusiveMinimum: 1 | ||
}, | ||
serializedName: "maxRecords", | ||
xmlName: "maxRecords", | ||
type: { | ||
name: "String" | ||
name: "Number" | ||
} | ||
} | ||
}; | ||
export var path = { | ||
parameterPath: [ | ||
"options", | ||
"path" | ||
], | ||
export var mode1 = { | ||
parameterPath: "mode", | ||
mapper: { | ||
serializedName: "directory", | ||
serializedName: "mode", | ||
required: true, | ||
xmlName: "mode", | ||
type: { | ||
name: "String" | ||
name: "Enum", | ||
allowedValues: ["set", "modify", "remove"] | ||
} | ||
} | ||
}; | ||
export var permissions = { | ||
parameterPath: [ | ||
"options", | ||
"permissions" | ||
], | ||
export var forceFlag = { | ||
parameterPath: ["options", "forceFlag"], | ||
mapper: { | ||
serializedName: "x-ms-permissions", | ||
serializedName: "forceFlag", | ||
xmlName: "forceFlag", | ||
type: { | ||
name: "String" | ||
name: "Boolean" | ||
} | ||
@@ -461,8 +573,6 @@ } | ||
export var position = { | ||
parameterPath: [ | ||
"options", | ||
"position" | ||
], | ||
parameterPath: ["options", "position"], | ||
mapper: { | ||
serializedName: "position", | ||
xmlName: "position", | ||
type: { | ||
@@ -473,80 +583,61 @@ name: "Number" | ||
}; | ||
export var prefix = { | ||
parameterPath: [ | ||
"options", | ||
"prefix" | ||
], | ||
export var retainUncommittedData = { | ||
parameterPath: ["options", "retainUncommittedData"], | ||
mapper: { | ||
serializedName: "prefix", | ||
serializedName: "retainUncommittedData", | ||
xmlName: "retainUncommittedData", | ||
type: { | ||
name: "String" | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
export var properties = { | ||
parameterPath: [ | ||
"options", | ||
"properties" | ||
], | ||
export var close = { | ||
parameterPath: ["options", "close"], | ||
mapper: { | ||
serializedName: "x-ms-properties", | ||
serializedName: "close", | ||
xmlName: "close", | ||
type: { | ||
name: "String" | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
export var proposedLeaseId = { | ||
parameterPath: [ | ||
"options", | ||
"proposedLeaseId" | ||
], | ||
export var contentLength = { | ||
parameterPath: ["options", "contentLength"], | ||
mapper: { | ||
serializedName: "x-ms-proposed-lease-id", | ||
constraints: { | ||
InclusiveMinimum: 0 | ||
}, | ||
serializedName: "Content-Length", | ||
xmlName: "Content-Length", | ||
type: { | ||
name: "String" | ||
name: "Number" | ||
} | ||
} | ||
}; | ||
export var range = { | ||
parameterPath: [ | ||
"options", | ||
"range" | ||
], | ||
export var contentMD5 = { | ||
parameterPath: ["options", "pathHttpHeaders", "contentMD5"], | ||
mapper: { | ||
serializedName: "Range", | ||
serializedName: "x-ms-content-md5", | ||
xmlName: "x-ms-content-md5", | ||
type: { | ||
name: "String" | ||
name: "ByteArray" | ||
} | ||
} | ||
}; | ||
export var recursive0 = { | ||
parameterPath: "recursive", | ||
export var owner = { | ||
parameterPath: ["options", "owner"], | ||
mapper: { | ||
required: true, | ||
serializedName: "recursive", | ||
serializedName: "x-ms-owner", | ||
xmlName: "x-ms-owner", | ||
type: { | ||
name: "Boolean" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var recursive1 = { | ||
parameterPath: [ | ||
"options", | ||
"recursive" | ||
], | ||
export var group = { | ||
parameterPath: ["options", "group"], | ||
mapper: { | ||
serializedName: "recursive", | ||
serializedName: "x-ms-group", | ||
xmlName: "x-ms-group", | ||
type: { | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
export var renameSource = { | ||
parameterPath: [ | ||
"options", | ||
"renameSource" | ||
], | ||
mapper: { | ||
serializedName: "x-ms-rename-source", | ||
type: { | ||
name: "String" | ||
@@ -556,9 +647,7 @@ } | ||
}; | ||
export var requestId = { | ||
parameterPath: [ | ||
"options", | ||
"requestId" | ||
], | ||
export var acl = { | ||
parameterPath: ["options", "acl"], | ||
mapper: { | ||
serializedName: "x-ms-client-request-id", | ||
serializedName: "x-ms-acl", | ||
xmlName: "x-ms-acl", | ||
type: { | ||
@@ -569,62 +658,49 @@ name: "String" | ||
}; | ||
export var resource0 = { | ||
parameterPath: "resource", | ||
export var xMsLeaseAction = { | ||
parameterPath: "xMsLeaseAction", | ||
mapper: { | ||
serializedName: "x-ms-lease-action", | ||
required: true, | ||
isConstant: true, | ||
serializedName: "resource", | ||
defaultValue: 'account', | ||
xmlName: "x-ms-lease-action", | ||
type: { | ||
name: "String" | ||
name: "Enum", | ||
allowedValues: ["acquire", "break", "change", "renew", "release"] | ||
} | ||
} | ||
}; | ||
export var resource1 = { | ||
parameterPath: "resource", | ||
export var xMsLeaseDuration = { | ||
parameterPath: ["options", "xMsLeaseDuration"], | ||
mapper: { | ||
required: true, | ||
isConstant: true, | ||
serializedName: "resource", | ||
defaultValue: 'filesystem', | ||
serializedName: "x-ms-lease-duration", | ||
xmlName: "x-ms-lease-duration", | ||
type: { | ||
name: "String" | ||
name: "Number" | ||
} | ||
} | ||
}; | ||
export var resource2 = { | ||
parameterPath: [ | ||
"options", | ||
"resource" | ||
], | ||
export var xMsLeaseBreakPeriod = { | ||
parameterPath: ["options", "xMsLeaseBreakPeriod"], | ||
mapper: { | ||
serializedName: "resource", | ||
serializedName: "x-ms-lease-break-period", | ||
xmlName: "x-ms-lease-break-period", | ||
type: { | ||
name: "Enum", | ||
allowedValues: [ | ||
"directory", | ||
"file" | ||
] | ||
name: "Number" | ||
} | ||
} | ||
}; | ||
export var retainUncommittedData = { | ||
parameterPath: [ | ||
"options", | ||
"retainUncommittedData" | ||
], | ||
export var proposedLeaseId = { | ||
parameterPath: ["options", "proposedLeaseId"], | ||
mapper: { | ||
serializedName: "retainUncommittedData", | ||
serializedName: "x-ms-proposed-lease-id", | ||
xmlName: "x-ms-proposed-lease-id", | ||
type: { | ||
name: "Boolean" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var sourceIfMatch = { | ||
parameterPath: [ | ||
"options", | ||
"sourceModifiedAccessConditions", | ||
"sourceIfMatch" | ||
], | ||
export var range = { | ||
parameterPath: ["options", "range"], | ||
mapper: { | ||
serializedName: "x-ms-source-if-match", | ||
serializedName: "Range", | ||
xmlName: "Range", | ||
type: { | ||
@@ -635,48 +711,39 @@ name: "String" | ||
}; | ||
export var sourceIfModifiedSince = { | ||
parameterPath: [ | ||
"options", | ||
"sourceModifiedAccessConditions", | ||
"sourceIfModifiedSince" | ||
], | ||
export var xMsRangeGetContentMd5 = { | ||
parameterPath: ["options", "xMsRangeGetContentMd5"], | ||
mapper: { | ||
serializedName: "x-ms-source-if-modified-since", | ||
serializedName: "x-ms-range-get-content-md5", | ||
xmlName: "x-ms-range-get-content-md5", | ||
type: { | ||
name: "DateTimeRfc1123" | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
export var sourceIfNoneMatch = { | ||
parameterPath: [ | ||
"options", | ||
"sourceModifiedAccessConditions", | ||
"sourceIfNoneMatch" | ||
], | ||
export var action1 = { | ||
parameterPath: ["options", "action"], | ||
mapper: { | ||
serializedName: "x-ms-source-if-none-match", | ||
serializedName: "action", | ||
xmlName: "action", | ||
type: { | ||
name: "String" | ||
name: "Enum", | ||
allowedValues: ["getAccessControl", "getStatus"] | ||
} | ||
} | ||
}; | ||
export var sourceIfUnmodifiedSince = { | ||
parameterPath: [ | ||
"options", | ||
"sourceModifiedAccessConditions", | ||
"sourceIfUnmodifiedSince" | ||
], | ||
export var recursive1 = { | ||
parameterPath: ["options", "recursive"], | ||
mapper: { | ||
serializedName: "x-ms-source-if-unmodified-since", | ||
serializedName: "recursive", | ||
xmlName: "recursive", | ||
type: { | ||
name: "DateTimeRfc1123" | ||
name: "Boolean" | ||
} | ||
} | ||
}; | ||
export var sourceLeaseId = { | ||
parameterPath: [ | ||
"options", | ||
"sourceLeaseId" | ||
], | ||
export var action2 = { | ||
parameterPath: "action", | ||
mapper: { | ||
serializedName: "x-ms-source-lease-id", | ||
defaultValue: "setAccessControl", | ||
isConstant: true, | ||
serializedName: "action", | ||
type: { | ||
@@ -687,49 +754,41 @@ name: "String" | ||
}; | ||
export var timeout = { | ||
parameterPath: [ | ||
"options", | ||
"timeout" | ||
], | ||
export var action3 = { | ||
parameterPath: "action", | ||
mapper: { | ||
serializedName: "timeout", | ||
constraints: { | ||
InclusiveMinimum: 0 | ||
}, | ||
defaultValue: "setAccessControlRecursive", | ||
isConstant: true, | ||
serializedName: "action", | ||
type: { | ||
name: "Number" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var transactionalContentCrc64 = { | ||
parameterPath: [ | ||
"options", | ||
"transactionalContentCrc64" | ||
], | ||
export var action4 = { | ||
parameterPath: "action", | ||
mapper: { | ||
serializedName: "x-ms-content-crc64", | ||
defaultValue: "flush", | ||
isConstant: true, | ||
serializedName: "action", | ||
type: { | ||
name: "ByteArray" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var transactionalContentHash = { | ||
parameterPath: [ | ||
"options", | ||
"pathHttpHeaders", | ||
"transactionalContentHash" | ||
], | ||
export var contentType2 = { | ||
parameterPath: ["options", "contentType"], | ||
mapper: { | ||
serializedName: "Content-MD5", | ||
defaultValue: "application/json", | ||
isConstant: true, | ||
serializedName: "Content-Type", | ||
type: { | ||
name: "ByteArray" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var umask = { | ||
parameterPath: [ | ||
"options", | ||
"umask" | ||
], | ||
export var action5 = { | ||
parameterPath: "action", | ||
mapper: { | ||
serializedName: "x-ms-umask", | ||
defaultValue: "append", | ||
isConstant: true, | ||
serializedName: "action", | ||
type: { | ||
@@ -740,33 +799,28 @@ name: "String" | ||
}; | ||
export var upn = { | ||
parameterPath: [ | ||
"options", | ||
"upn" | ||
], | ||
export var transactionalContentHash = { | ||
parameterPath: ["options", "pathHttpHeaders", "transactionalContentHash"], | ||
mapper: { | ||
serializedName: "upn", | ||
serializedName: "Content-MD5", | ||
xmlName: "Content-MD5", | ||
type: { | ||
name: "Boolean" | ||
name: "ByteArray" | ||
} | ||
} | ||
}; | ||
export var url = { | ||
parameterPath: "url", | ||
export var transactionalContentCrc64 = { | ||
parameterPath: ["options", "transactionalContentCrc64"], | ||
mapper: { | ||
required: true, | ||
serializedName: "url", | ||
defaultValue: '', | ||
serializedName: "x-ms-content-crc64", | ||
xmlName: "x-ms-content-crc64", | ||
type: { | ||
name: "String" | ||
name: "ByteArray" | ||
} | ||
}, | ||
skipEncoding: true | ||
} | ||
}; | ||
export var version = { | ||
parameterPath: "version", | ||
export var comp1 = { | ||
parameterPath: "comp", | ||
mapper: { | ||
required: true, | ||
defaultValue: "expiry", | ||
isConstant: true, | ||
serializedName: "x-ms-version", | ||
defaultValue: '2020-06-12', | ||
serializedName: "comp", | ||
type: { | ||
@@ -777,15 +831,15 @@ name: "String" | ||
}; | ||
export var xMsLeaseAction = { | ||
parameterPath: "xMsLeaseAction", | ||
export var expiryOptions = { | ||
parameterPath: "expiryOptions", | ||
mapper: { | ||
serializedName: "x-ms-expiry-option", | ||
required: true, | ||
serializedName: "x-ms-lease-action", | ||
xmlName: "x-ms-expiry-option", | ||
type: { | ||
name: "Enum", | ||
allowedValues: [ | ||
"acquire", | ||
"break", | ||
"change", | ||
"renew", | ||
"release" | ||
"NeverExpire", | ||
"RelativeToCreation", | ||
"RelativeToNow", | ||
"Absolute" | ||
] | ||
@@ -795,35 +849,30 @@ } | ||
}; | ||
export var xMsLeaseBreakPeriod = { | ||
parameterPath: [ | ||
"options", | ||
"xMsLeaseBreakPeriod" | ||
], | ||
export var expiresOn = { | ||
parameterPath: ["options", "expiresOn"], | ||
mapper: { | ||
serializedName: "x-ms-lease-break-period", | ||
serializedName: "x-ms-expiry-time", | ||
xmlName: "x-ms-expiry-time", | ||
type: { | ||
name: "Number" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var xMsLeaseDuration = { | ||
parameterPath: [ | ||
"options", | ||
"xMsLeaseDuration" | ||
], | ||
export var comp2 = { | ||
parameterPath: "comp", | ||
mapper: { | ||
serializedName: "x-ms-lease-duration", | ||
defaultValue: "undelete", | ||
isConstant: true, | ||
serializedName: "comp", | ||
type: { | ||
name: "Number" | ||
name: "String" | ||
} | ||
} | ||
}; | ||
export var xMsRangeGetContentMd5 = { | ||
parameterPath: [ | ||
"options", | ||
"xMsRangeGetContentMd5" | ||
], | ||
export var undeleteSource = { | ||
parameterPath: ["options", "undeleteSource"], | ||
mapper: { | ||
serializedName: "x-ms-range-get-content-md5", | ||
serializedName: "x-ms-undelete-source", | ||
xmlName: "x-ms-undelete-source", | ||
type: { | ||
name: "Boolean" | ||
name: "String" | ||
} | ||
@@ -830,0 +879,0 @@ } |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
export * from "./service"; | ||
export * from "./fileSystemOperations"; | ||
export * from "./pathOperations"; | ||
export * from "./fileSystem"; | ||
export * from "./path"; | ||
//# sourceMappingURL=index.js.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
import * as coreHttp from "@azure/core-http"; | ||
import * as Mappers from "../models/serviceMappers"; | ||
import * as Mappers from "../models/mappers"; | ||
import * as Parameters from "../models/parameters"; | ||
@@ -16,4 +14,4 @@ /** Class representing a Service. */ | ||
/** | ||
* Create a Service. | ||
* @param {StorageClientContext} client Reference to the service client. | ||
* Initialize a new instance of the class Service class. | ||
* @param client Reference to the service client | ||
*/ | ||
@@ -23,6 +21,11 @@ function Service(client) { | ||
} | ||
Service.prototype.listFileSystems = function (options, callback) { | ||
return this.client.sendOperationRequest({ | ||
options: options | ||
}, listFileSystemsOperationSpec, callback); | ||
/** | ||
* List filesystems and their properties in given account. | ||
* @param options The options parameters. | ||
*/ | ||
Service.prototype.listFileSystems = function (options) { | ||
var operationArguments = { | ||
options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) | ||
}; | ||
return this.client.sendOperationRequest(operationArguments, listFileSystemsOperationSpec); | ||
}; | ||
@@ -33,10 +36,18 @@ return Service; | ||
// Operation Specifications | ||
var serializer = new coreHttp.Serializer(Mappers); | ||
var serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); | ||
var listFileSystemsOperationSpec = { | ||
path: "/", | ||
httpMethod: "GET", | ||
urlParameters: [ | ||
Parameters.url | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.FileSystemList, | ||
headersMapper: Mappers.ServiceListFileSystemsHeaders | ||
}, | ||
default: { | ||
bodyMapper: Mappers.StorageError, | ||
headersMapper: Mappers.ServiceListFileSystemsExceptionHeaders | ||
} | ||
}, | ||
queryParameters: [ | ||
Parameters.resource0, | ||
Parameters.resource, | ||
Parameters.prefix, | ||
@@ -47,18 +58,10 @@ Parameters.continuation, | ||
], | ||
urlParameters: [Parameters.url], | ||
headerParameters: [ | ||
Parameters.accept, | ||
Parameters.requestId, | ||
Parameters.version | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.FileSystemList, | ||
headersMapper: Mappers.ServiceListFileSystemsHeaders | ||
}, | ||
default: { | ||
bodyMapper: Mappers.StorageError, | ||
headersMapper: Mappers.ServiceListFileSystemsHeaders | ||
} | ||
}, | ||
serializer: serializer | ||
}; | ||
//# sourceMappingURL=service.js.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
import { __extends } from "tslib"; | ||
import * as Models from "./models"; | ||
import * as Mappers from "./models/mappers"; | ||
import * as operations from "./operations"; | ||
import { Service, FileSystem, Path } from "./operations"; | ||
import { StorageClientContext } from "./storageClientContext"; | ||
@@ -20,10 +16,10 @@ var StorageClient = /** @class */ (function (_super) { | ||
* @param url The URL of the service account, container, or blob that is the targe of the desired | ||
* operation. | ||
* @param [options] The parameter options | ||
* operation. | ||
* @param options The parameter options | ||
*/ | ||
function StorageClient(url, options) { | ||
var _this = _super.call(this, url, options) || this; | ||
_this.service = new operations.Service(_this); | ||
_this.fileSystem = new operations.FileSystemOperations(_this); | ||
_this.path = new operations.PathOperations(_this); | ||
_this.service = new Service(_this); | ||
_this.fileSystem = new FileSystem(_this); | ||
_this.path = new Path(_this); | ||
return _this; | ||
@@ -33,5 +29,3 @@ } | ||
}(StorageClientContext)); | ||
// Operation Specifications | ||
export { StorageClient, StorageClientContext, Models as StorageModels, Mappers as StorageMappers }; | ||
export * from "./operations"; | ||
export { StorageClient }; | ||
//# sourceMappingURL=storageClient.js.map |
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT License. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* Changes may cause incorrect behavior and will be lost if the code is | ||
* regenerated. | ||
* Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
@@ -19,10 +17,11 @@ import { __extends } from "tslib"; | ||
* @param url The URL of the service account, container, or blob that is the targe of the desired | ||
* operation. | ||
* @param [options] The parameter options | ||
* operation. | ||
* @param options The parameter options | ||
*/ | ||
function StorageClientContext(url, options) { | ||
var _this = this; | ||
if (url == undefined) { | ||
throw new Error("'url' cannot be null."); | ||
if (url === undefined) { | ||
throw new Error("'url' cannot be null"); | ||
} | ||
// Initializing default values for options | ||
if (!options) { | ||
@@ -36,7 +35,9 @@ options = {}; | ||
_this = _super.call(this, undefined, options) || this; | ||
_this.resource = 'filesystem'; | ||
_this.version = '2020-06-12'; | ||
_this.baseUri = "{url}"; | ||
_this.requestContentType = "application/json; charset=utf-8"; | ||
_this.baseUri = options.endpoint || "{url}"; | ||
// Parameter assignments | ||
_this.url = url; | ||
// Assigning values to Constant parameters | ||
_this.version = options.version || "2020-08-04"; | ||
_this.resource = options.resource || "filesystem"; | ||
return _this; | ||
@@ -43,0 +44,0 @@ } |
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
export var SDK_VERSION = "12.4.1"; | ||
export var SDK_VERSION = "12.5.0-beta.1"; | ||
export var SERVICE_VERSION = "2020-06-12"; | ||
@@ -209,2 +209,7 @@ export var KB = 1024; | ||
export var ETagAny = "*"; | ||
export var DeletionIdKey = "deletionid"; | ||
export var PathResultTypeConstants = { | ||
FileResourceType: "file", | ||
DirectoryResourceType: "directory" | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -20,7 +20,8 @@ // Copyright (c) Microsoft Corporation. | ||
export function convertTracingToRequestOptionsBase(options) { | ||
var _a; | ||
var _a, _b; | ||
return { | ||
spanOptions: (_a = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _a === void 0 ? void 0 : _a.spanOptions | ||
spanOptions: (_a = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _a === void 0 ? void 0 : _a.spanOptions, | ||
tracingContext: (_b = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _b === void 0 ? void 0 : _b.tracingContext | ||
}; | ||
} | ||
//# sourceMappingURL=tracing.js.map |
{ | ||
"name": "@azure/storage-file-datalake", | ||
"version": "12.4.1-alpha.20210323.1", | ||
"version": "12.5.0-beta.1", | ||
"description": "Microsoft Azure Storage SDK for JavaScript - DataLake", | ||
@@ -32,3 +32,3 @@ "sdk-type": "client", | ||
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", | ||
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.4.0 --use=@microsoft.azure/autorest.typescript@5.0.1", | ||
"build:autorest": "autorest ./swagger/README.md --typescript", | ||
"build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", | ||
@@ -43,3 +43,3 @@ "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1", | ||
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | ||
"clean": "rimraf dist dist-esm dist-test typings temp dist-browser/*.js* dist-browser/*.zip statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", | ||
"clean": "rimraf dist dist-* typings temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml", | ||
"clean:samples": "rimraf samples/javascript/node_modules samples/typescript/node_modules samples/typescript/dist samples/typescript/package-lock.json samples/javascript/package-lock.json", | ||
@@ -106,5 +106,5 @@ "extract-api": "tsc -p . && api-extractor run --local", | ||
"@azure/core-paging": "^1.1.1", | ||
"@azure/core-tracing": "^1.0.0-alpha", | ||
"@azure/core-tracing": "1.0.0-preview.11", | ||
"@azure/logger": "^1.0.0", | ||
"@azure/storage-blob": "^12.5.0", | ||
"@azure/storage-blob": "^12.6.0-beta.1", | ||
"events": "^3.0.0", | ||
@@ -114,9 +114,8 @@ "tslib": "^2.0.0" | ||
"devDependencies": { | ||
"@azure/dev-tool": "^1.0.0-alpha", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0-alpha", | ||
"@azure/identity": "^1.1.0", | ||
"@azure/test-utils-recorder": "^1.0.0-alpha", | ||
"@azure/test-utils-perfstress": "^1.0.0-alpha", | ||
"@azure/dev-tool": "^1.0.0", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0", | ||
"@azure/identity": "2.0.0-beta.3", | ||
"@azure/test-utils-recorder": "^1.0.0", | ||
"@azure/test-utils-perfstress": "^1.0.0", | ||
"@microsoft/api-extractor": "7.7.11", | ||
"@opentelemetry/api": "^0.10.2", | ||
"@rollup/plugin-commonjs": "11.0.2", | ||
@@ -123,0 +122,0 @@ "@rollup/plugin-json": "^4.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2796998
53
31608
134