UNPKG

@azure/storage-file-datalake

Version:
982 lines 24.8 kB
"use strict"; /* * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.leaseDuration = exports.proposedLeaseId = exports.acl = exports.group = exports.owner = exports.encryptionAlgorithm = exports.encryptionKeySha256 = exports.encryptionKey = exports.sourceIfUnmodifiedSince = exports.sourceIfModifiedSince = exports.sourceIfNoneMatch = exports.sourceIfMatch = exports.ifNoneMatch = exports.ifMatch = exports.umask = exports.permissions = exports.sourceLeaseId = exports.leaseId = exports.renameSource = exports.contentType = exports.contentDisposition = exports.contentLanguage = exports.contentEncoding = exports.cacheControl = exports.mode = exports.resource2 = exports.showonly = exports.include = exports.marker = exports.delimiter = exports.comp = exports.restype = exports.accept1 = exports.beginFrom = exports.upn = exports.recursive = exports.path = exports.ifUnmodifiedSince = exports.ifModifiedSince = exports.properties = exports.resource1 = exports.version = exports.timeout = exports.requestId = exports.maxResults = exports.continuation = exports.prefix = exports.resource = exports.url = exports.accept = void 0; exports.undeleteSource = exports.comp2 = exports.expiryOptions1 = exports.comp1 = exports.flush = exports.transactionalContentCrc64 = exports.transactionalContentHash = exports.action5 = exports.contentType2 = exports.leaseAction = exports.action4 = exports.action3 = exports.action2 = exports.paginated = exports.recursive1 = exports.action1 = exports.xMsRangeGetContentMd5 = exports.range = exports.xMsLeaseBreakPeriod = exports.xMsLeaseDuration = exports.xMsLeaseAction = exports.structuredContentLength = exports.structuredBodyType = exports.contentMD5 = exports.contentLength = exports.close = exports.retainUncommittedData = exports.position = exports.forceFlag = exports.mode1 = exports.maxRecords = exports.action = exports.accept2 = exports.body = exports.contentType1 = exports.encryptionContext = exports.expiresOn = exports.expiryOptions = void 0; exports.accept = { parameterPath: "accept", mapper: { defaultValue: "application/json", isConstant: true, serializedName: "Accept", type: { name: "String", }, }, }; exports.url = { parameterPath: "url", mapper: { serializedName: "url", required: true, xmlName: "url", type: { name: "String", }, }, skipEncoding: true, }; exports.resource = { parameterPath: "resource", mapper: { defaultValue: "account", isConstant: true, serializedName: "resource", type: { name: "String", }, }, }; exports.prefix = { parameterPath: ["options", "prefix"], mapper: { serializedName: "prefix", xmlName: "prefix", type: { name: "String", }, }, }; exports.continuation = { parameterPath: ["options", "continuation"], mapper: { serializedName: "continuation", xmlName: "continuation", type: { name: "String", }, }, }; exports.maxResults = { parameterPath: ["options", "maxResults"], mapper: { constraints: { InclusiveMinimum: 1, }, serializedName: "maxResults", xmlName: "maxResults", type: { name: "Number", }, }, }; exports.requestId = { parameterPath: ["options", "requestId"], mapper: { serializedName: "x-ms-client-request-id", xmlName: "x-ms-client-request-id", type: { name: "String", }, }, }; exports.timeout = { parameterPath: ["options", "timeout"], mapper: { constraints: { InclusiveMinimum: 0, }, serializedName: "timeout", xmlName: "timeout", type: { name: "Number", }, }, }; exports.version = { parameterPath: "version", mapper: { defaultValue: "2026-02-06", isConstant: true, serializedName: "x-ms-version", type: { name: "String", }, }, }; exports.resource1 = { parameterPath: "resource", mapper: { defaultValue: "filesystem", isConstant: true, serializedName: "resource", type: { name: "String", }, }, }; exports.properties = { parameterPath: ["options", "properties"], mapper: { serializedName: "x-ms-properties", xmlName: "x-ms-properties", type: { name: "String", }, }, }; exports.ifModifiedSince = { parameterPath: ["options", "modifiedAccessConditions", "ifModifiedSince"], mapper: { serializedName: "If-Modified-Since", xmlName: "If-Modified-Since", type: { name: "DateTimeRfc1123", }, }, }; exports.ifUnmodifiedSince = { parameterPath: ["options", "modifiedAccessConditions", "ifUnmodifiedSince"], mapper: { serializedName: "If-Unmodified-Since", xmlName: "If-Unmodified-Since", type: { name: "DateTimeRfc1123", }, }, }; exports.path = { parameterPath: ["options", "path"], mapper: { serializedName: "directory", xmlName: "directory", type: { name: "String", }, }, }; exports.recursive = { parameterPath: "recursive", mapper: { serializedName: "recursive", required: true, xmlName: "recursive", type: { name: "Boolean", }, }, }; exports.upn = { parameterPath: ["options", "upn"], mapper: { serializedName: "upn", xmlName: "upn", type: { name: "Boolean", }, }, }; exports.beginFrom = { parameterPath: ["options", "beginFrom"], mapper: { serializedName: "beginFrom", xmlName: "beginFrom", type: { name: "String", }, }, }; exports.accept1 = { parameterPath: "accept", mapper: { defaultValue: "application/xml", isConstant: true, serializedName: "Accept", type: { name: "String", }, }, }; exports.restype = { parameterPath: "restype", mapper: { defaultValue: "container", isConstant: true, serializedName: "restype", type: { name: "String", }, }, }; exports.comp = { parameterPath: "comp", mapper: { defaultValue: "list", isConstant: true, serializedName: "comp", type: { name: "String", }, }, }; exports.delimiter = { parameterPath: ["options", "delimiter"], mapper: { serializedName: "delimiter", xmlName: "delimiter", type: { name: "String", }, }, }; exports.marker = { parameterPath: ["options", "marker"], mapper: { serializedName: "marker", xmlName: "marker", type: { name: "String", }, }, }; exports.include = { parameterPath: ["options", "include"], mapper: { serializedName: "include", xmlName: "include", xmlElementName: "ListBlobsIncludeItem", type: { name: "Sequence", element: { type: { name: "Enum", allowedValues: [ "copy", "deleted", "metadata", "snapshots", "uncommittedblobs", "versions", "tags", ], }, }, }, }, collectionFormat: "CSV", }; exports.showonly = { parameterPath: ["options", "showonly"], mapper: { defaultValue: "deleted", isConstant: true, serializedName: "showonly", type: { name: "String", }, }, }; exports.resource2 = { parameterPath: ["options", "resource"], mapper: { serializedName: "resource", xmlName: "resource", type: { name: "Enum", allowedValues: ["directory", "file"], }, }, }; exports.mode = { parameterPath: ["options", "mode"], mapper: { serializedName: "mode", xmlName: "mode", type: { name: "Enum", allowedValues: ["legacy", "posix"], }, }, }; exports.cacheControl = { parameterPath: ["options", "pathHttpHeaders", "cacheControl"], mapper: { serializedName: "x-ms-cache-control", xmlName: "x-ms-cache-control", type: { name: "String", }, }, }; exports.contentEncoding = { parameterPath: ["options", "pathHttpHeaders", "contentEncoding"], mapper: { serializedName: "x-ms-content-encoding", xmlName: "x-ms-content-encoding", type: { name: "String", }, }, }; exports.contentLanguage = { parameterPath: ["options", "pathHttpHeaders", "contentLanguage"], mapper: { serializedName: "x-ms-content-language", xmlName: "x-ms-content-language", type: { name: "String", }, }, }; exports.contentDisposition = { parameterPath: ["options", "pathHttpHeaders", "contentDisposition"], mapper: { serializedName: "x-ms-content-disposition", xmlName: "x-ms-content-disposition", type: { name: "String", }, }, }; exports.contentType = { parameterPath: ["options", "pathHttpHeaders", "contentType"], mapper: { serializedName: "x-ms-content-type", xmlName: "x-ms-content-type", type: { name: "String", }, }, }; exports.renameSource = { parameterPath: ["options", "renameSource"], mapper: { serializedName: "x-ms-rename-source", xmlName: "x-ms-rename-source", type: { name: "String", }, }, }; exports.leaseId = { parameterPath: ["options", "leaseAccessConditions", "leaseId"], mapper: { serializedName: "x-ms-lease-id", xmlName: "x-ms-lease-id", type: { name: "String", }, }, }; exports.sourceLeaseId = { parameterPath: ["options", "sourceLeaseId"], mapper: { serializedName: "x-ms-source-lease-id", xmlName: "x-ms-source-lease-id", type: { name: "String", }, }, }; exports.permissions = { parameterPath: ["options", "permissions"], mapper: { serializedName: "x-ms-permissions", xmlName: "x-ms-permissions", type: { name: "String", }, }, }; exports.umask = { parameterPath: ["options", "umask"], mapper: { serializedName: "x-ms-umask", xmlName: "x-ms-umask", type: { name: "String", }, }, }; exports.ifMatch = { parameterPath: ["options", "modifiedAccessConditions", "ifMatch"], mapper: { serializedName: "If-Match", xmlName: "If-Match", type: { name: "String", }, }, }; exports.ifNoneMatch = { parameterPath: ["options", "modifiedAccessConditions", "ifNoneMatch"], mapper: { serializedName: "If-None-Match", xmlName: "If-None-Match", type: { name: "String", }, }, }; exports.sourceIfMatch = { parameterPath: ["options", "sourceModifiedAccessConditions", "sourceIfMatch"], mapper: { serializedName: "x-ms-source-if-match", xmlName: "x-ms-source-if-match", type: { name: "String", }, }, }; exports.sourceIfNoneMatch = { parameterPath: [ "options", "sourceModifiedAccessConditions", "sourceIfNoneMatch", ], mapper: { serializedName: "x-ms-source-if-none-match", xmlName: "x-ms-source-if-none-match", type: { name: "String", }, }, }; exports.sourceIfModifiedSince = { parameterPath: [ "options", "sourceModifiedAccessConditions", "sourceIfModifiedSince", ], mapper: { serializedName: "x-ms-source-if-modified-since", xmlName: "x-ms-source-if-modified-since", type: { name: "DateTimeRfc1123", }, }, }; exports.sourceIfUnmodifiedSince = { parameterPath: [ "options", "sourceModifiedAccessConditions", "sourceIfUnmodifiedSince", ], mapper: { serializedName: "x-ms-source-if-unmodified-since", xmlName: "x-ms-source-if-unmodified-since", type: { name: "DateTimeRfc1123", }, }, }; exports.encryptionKey = { parameterPath: ["options", "cpkInfo", "encryptionKey"], mapper: { serializedName: "x-ms-encryption-key", xmlName: "x-ms-encryption-key", type: { name: "String", }, }, }; exports.encryptionKeySha256 = { parameterPath: ["options", "cpkInfo", "encryptionKeySha256"], mapper: { serializedName: "x-ms-encryption-key-sha256", xmlName: "x-ms-encryption-key-sha256", type: { name: "String", }, }, }; exports.encryptionAlgorithm = { parameterPath: ["options", "cpkInfo", "encryptionAlgorithm"], mapper: { serializedName: "x-ms-encryption-algorithm", xmlName: "x-ms-encryption-algorithm", type: { name: "String", }, }, }; exports.owner = { parameterPath: ["options", "owner"], mapper: { serializedName: "x-ms-owner", xmlName: "x-ms-owner", type: { name: "String", }, }, }; exports.group = { parameterPath: ["options", "group"], mapper: { serializedName: "x-ms-group", xmlName: "x-ms-group", type: { name: "String", }, }, }; exports.acl = { parameterPath: ["options", "acl"], mapper: { serializedName: "x-ms-acl", xmlName: "x-ms-acl", type: { name: "String", }, }, }; exports.proposedLeaseId = { parameterPath: ["options", "proposedLeaseId"], mapper: { serializedName: "x-ms-proposed-lease-id", xmlName: "x-ms-proposed-lease-id", type: { name: "String", }, }, }; exports.leaseDuration = { parameterPath: ["options", "leaseDuration"], mapper: { serializedName: "x-ms-lease-duration", xmlName: "x-ms-lease-duration", type: { name: "Number", }, }, }; exports.expiryOptions = { parameterPath: ["options", "expiryOptions"], mapper: { serializedName: "x-ms-expiry-option", xmlName: "x-ms-expiry-option", type: { name: "Enum", allowedValues: [ "NeverExpire", "RelativeToCreation", "RelativeToNow", "Absolute", ], }, }, }; exports.expiresOn = { parameterPath: ["options", "expiresOn"], mapper: { serializedName: "x-ms-expiry-time", xmlName: "x-ms-expiry-time", type: { name: "String", }, }, }; exports.encryptionContext = { parameterPath: ["options", "encryptionContext"], mapper: { serializedName: "x-ms-encryption-context", xmlName: "x-ms-encryption-context", type: { name: "String", }, }, }; exports.contentType1 = { parameterPath: ["options", "contentType"], mapper: { defaultValue: "application/octet-stream", isConstant: true, serializedName: "Content-Type", type: { name: "String", }, }, }; exports.body = { parameterPath: "body", mapper: { serializedName: "body", required: true, xmlName: "body", type: { name: "Stream", }, }, }; exports.accept2 = { parameterPath: "accept", mapper: { defaultValue: "application/json", isConstant: true, serializedName: "Accept", type: { name: "String", }, }, }; exports.action = { parameterPath: "action", mapper: { serializedName: "action", required: true, xmlName: "action", type: { name: "Enum", allowedValues: [ "append", "flush", "setProperties", "setAccessControl", "setAccessControlRecursive", ], }, }, }; exports.maxRecords = { parameterPath: ["options", "maxRecords"], mapper: { constraints: { InclusiveMinimum: 1, }, serializedName: "maxRecords", xmlName: "maxRecords", type: { name: "Number", }, }, }; exports.mode1 = { parameterPath: "mode", mapper: { serializedName: "mode", required: true, xmlName: "mode", type: { name: "Enum", allowedValues: ["set", "modify", "remove"], }, }, }; exports.forceFlag = { parameterPath: ["options", "forceFlag"], mapper: { serializedName: "forceFlag", xmlName: "forceFlag", type: { name: "Boolean", }, }, }; exports.position = { parameterPath: ["options", "position"], mapper: { serializedName: "position", xmlName: "position", type: { name: "Number", }, }, }; exports.retainUncommittedData = { parameterPath: ["options", "retainUncommittedData"], mapper: { serializedName: "retainUncommittedData", xmlName: "retainUncommittedData", type: { name: "Boolean", }, }, }; exports.close = { parameterPath: ["options", "close"], mapper: { serializedName: "close", xmlName: "close", type: { name: "Boolean", }, }, }; exports.contentLength = { parameterPath: ["options", "contentLength"], mapper: { constraints: { InclusiveMinimum: 0, }, serializedName: "Content-Length", xmlName: "Content-Length", type: { name: "Number", }, }, }; exports.contentMD5 = { parameterPath: ["options", "pathHttpHeaders", "contentMD5"], mapper: { serializedName: "x-ms-content-md5", xmlName: "x-ms-content-md5", type: { name: "ByteArray", }, }, }; exports.structuredBodyType = { parameterPath: ["options", "structuredBodyType"], mapper: { serializedName: "x-ms-structured-body", xmlName: "x-ms-structured-body", type: { name: "String", }, }, }; exports.structuredContentLength = { parameterPath: ["options", "structuredContentLength"], mapper: { serializedName: "x-ms-structured-content-length", xmlName: "x-ms-structured-content-length", type: { name: "Number", }, }, }; exports.xMsLeaseAction = { parameterPath: "xMsLeaseAction", mapper: { serializedName: "x-ms-lease-action", required: true, xmlName: "x-ms-lease-action", type: { name: "Enum", allowedValues: ["acquire", "break", "change", "renew", "release"], }, }, }; exports.xMsLeaseDuration = { parameterPath: "xMsLeaseDuration", mapper: { serializedName: "x-ms-lease-duration", xmlName: "x-ms-lease-duration", type: { name: "Number", }, }, }; exports.xMsLeaseBreakPeriod = { parameterPath: ["options", "xMsLeaseBreakPeriod"], mapper: { serializedName: "x-ms-lease-break-period", xmlName: "x-ms-lease-break-period", type: { name: "Number", }, }, }; exports.range = { parameterPath: ["options", "range"], mapper: { serializedName: "Range", xmlName: "Range", type: { name: "String", }, }, }; exports.xMsRangeGetContentMd5 = { parameterPath: ["options", "xMsRangeGetContentMd5"], mapper: { serializedName: "x-ms-range-get-content-md5", xmlName: "x-ms-range-get-content-md5", type: { name: "Boolean", }, }, }; exports.action1 = { parameterPath: ["options", "action"], mapper: { serializedName: "action", xmlName: "action", type: { name: "Enum", allowedValues: ["getAccessControl", "getStatus"], }, }, }; exports.recursive1 = { parameterPath: ["options", "recursive"], mapper: { serializedName: "recursive", xmlName: "recursive", type: { name: "Boolean", }, }, }; exports.paginated = { parameterPath: ["options", "paginated"], mapper: { serializedName: "paginated", xmlName: "paginated", type: { name: "Boolean", }, }, }; exports.action2 = { parameterPath: "action", mapper: { defaultValue: "setAccessControl", isConstant: true, serializedName: "action", type: { name: "String", }, }, }; exports.action3 = { parameterPath: "action", mapper: { defaultValue: "setAccessControlRecursive", isConstant: true, serializedName: "action", type: { name: "String", }, }, }; exports.action4 = { parameterPath: "action", mapper: { defaultValue: "flush", isConstant: true, serializedName: "action", type: { name: "String", }, }, }; exports.leaseAction = { parameterPath: ["options", "leaseAction"], mapper: { serializedName: "x-ms-lease-action", xmlName: "x-ms-lease-action", type: { name: "Enum", allowedValues: ["acquire", "auto-renew", "release", "acquire-release"], }, }, }; exports.contentType2 = { parameterPath: ["options", "contentType"], mapper: { defaultValue: "application/json", isConstant: true, serializedName: "Content-Type", type: { name: "String", }, }, }; exports.action5 = { parameterPath: "action", mapper: { defaultValue: "append", isConstant: true, serializedName: "action", type: { name: "String", }, }, }; exports.transactionalContentHash = { parameterPath: ["options", "pathHttpHeaders", "transactionalContentHash"], mapper: { serializedName: "Content-MD5", xmlName: "Content-MD5", type: { name: "ByteArray", }, }, }; exports.transactionalContentCrc64 = { parameterPath: ["options", "transactionalContentCrc64"], mapper: { serializedName: "x-ms-content-crc64", xmlName: "x-ms-content-crc64", type: { name: "ByteArray", }, }, }; exports.flush = { parameterPath: ["options", "flush"], mapper: { serializedName: "flush", xmlName: "flush", type: { name: "Boolean", }, }, }; exports.comp1 = { parameterPath: "comp", mapper: { defaultValue: "expiry", isConstant: true, serializedName: "comp", type: { name: "String", }, }, }; exports.expiryOptions1 = { parameterPath: "expiryOptions", mapper: { serializedName: "x-ms-expiry-option", required: true, xmlName: "x-ms-expiry-option", type: { name: "Enum", allowedValues: [ "NeverExpire", "RelativeToCreation", "RelativeToNow", "Absolute", ], }, }, }; exports.comp2 = { parameterPath: "comp", mapper: { defaultValue: "undelete", isConstant: true, serializedName: "comp", type: { name: "String", }, }, }; exports.undeleteSource = { parameterPath: ["options", "undeleteSource"], mapper: { serializedName: "x-ms-undelete-source", xmlName: "x-ms-undelete-source", type: { name: "String", }, }, }; //# sourceMappingURL=parameters.js.map