From bb447fe01226ffb692d46107b38134f65ec3df4a Mon Sep 17 00:00:00 2001 From: Jeremy Meng Date: Mon, 9 Sep 2019 11:38:45 -0700 Subject: [PATCH] [Storage] Run autorest code-gen for 2019-02-02 version --- sdk/storage/storage-blob/package.json | 2 +- .../src/generated/src/models/blobMappers.ts | 5 + .../generated/src/models/containerMappers.ts | 1 + .../generated/src/models/directoryMappers.ts | 17 + .../src/generated/src/models/index.ts | 2551 +++++++++++++---- .../src/generated/src/models/mappers.ts | 1312 ++++++++- .../src/generated/src/models/parameters.ts | 693 ++++- .../generated/src/models/serviceMappers.ts | 1 + .../generated/src/operations/appendBlob.ts | 116 +- .../src/generated/src/operations/blob.ts | 243 +- .../src/generated/src/operations/blockBlob.ts | 28 +- .../src/generated/src/operations/container.ts | 124 +- .../src/generated/src/operations/directory.ts | 359 +++ .../src/generated/src/operations/index.ts | 1 + .../src/generated/src/operations/pageBlob.ts | 277 +- .../src/generated/src/operations/service.ts | 318 +- .../src/generated/src/storageClient.ts | 5 +- .../src/generated/src/storageClientContext.ts | 9 +- sdk/storage/storage-blob/swagger/README.md | 2 +- sdk/storage/storage-file/package.json | 2 +- .../generated/src/models/directoryMappers.ts | 3 +- .../src/generated/src/models/fileMappers.ts | 1 + .../src/generated/src/models/index.ts | 1003 +++++-- .../src/generated/src/models/mappers.ts | 518 ++++ .../src/generated/src/models/parameters.ts | 305 +- .../src/generated/src/models/shareMappers.ts | 3 + .../src/generated/src/operations/directory.ts | 307 +- .../src/generated/src/operations/file.ts | 509 ++-- .../src/generated/src/operations/service.ts | 52 - .../src/generated/src/operations/share.ts | 129 +- .../src/generated/src/storageClient.ts | 7 +- .../src/generated/src/storageClientContext.ts | 2 + sdk/storage/storage-file/swagger/README.md | 2 +- sdk/storage/storage-queue/package.json | 2 +- .../storage-queue/src/MessageIdClient.ts | 4 +- .../storage-queue/src/MessagesClient.ts | 4 +- sdk/storage/storage-queue/src/QueueClient.ts | 4 +- .../storage-queue/src/QueueServiceClient.ts | 6 +- .../storage-queue/src/StorageClient.ts | 2 +- .../generated/{lib => src}/models/index.ts | 91 +- .../generated/{lib => src}/models/mappers.ts | 96 + .../{lib => src}/models/messageIdMappers.ts | 0 .../{lib => src}/models/messagesMappers.ts | 0 .../{lib => src}/models/parameters.ts | 13 +- .../{lib => src}/models/queueMappers.ts | 0 .../{lib => src}/models/serviceMappers.ts | 0 .../{lib => src}/operations/index.ts | 0 .../{lib => src}/operations/messageId.ts | 0 .../{lib => src}/operations/messages.ts | 0 .../{lib => src}/operations/queue.ts | 0 .../{lib => src}/operations/service.ts | 52 - .../generated/{lib => src}/storageClient.ts | 0 .../{lib => src}/storageClientContext.ts | 2 +- .../storage-queue/src/index.browser.ts | 2 +- sdk/storage/storage-queue/src/index.ts | 2 +- sdk/storage/storage-queue/swagger/README.md | 2 +- 56 files changed, 7100 insertions(+), 2089 deletions(-) create mode 100644 sdk/storage/storage-blob/src/generated/src/models/directoryMappers.ts create mode 100644 sdk/storage/storage-blob/src/generated/src/operations/directory.ts rename sdk/storage/storage-queue/src/generated/{lib => src}/models/index.ts (93%) rename sdk/storage/storage-queue/src/generated/{lib => src}/models/mappers.ts (92%) rename sdk/storage/storage-queue/src/generated/{lib => src}/models/messageIdMappers.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/models/messagesMappers.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/models/parameters.ts (95%) rename sdk/storage/storage-queue/src/generated/{lib => src}/models/queueMappers.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/models/serviceMappers.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/operations/index.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/operations/messageId.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/operations/messages.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/operations/queue.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/operations/service.ts (80%) rename sdk/storage/storage-queue/src/generated/{lib => src}/storageClient.ts (100%) rename sdk/storage/storage-queue/src/generated/{lib => src}/storageClientContext.ts (97%) diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json index 65b6275cef32..6fe793c69194 100644 --- a/sdk/storage/storage-blob/package.json +++ b/sdk/storage/storage-blob/package.json @@ -20,7 +20,7 @@ }, "scripts": { "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 --use=@microsoft.azure/autorest.typescript@4.1.1", + "build:autorest": "autorest ./swagger/README.md --typescript --use=@microsoft.azure/autorest.typescript@5.0.0", "build:browserzip": "gulp zip", "build:es6": "tsc -p tsconfig.json", "build:nodebrowser": "rollup -c 2>&1", diff --git a/sdk/storage/storage-blob/src/generated/src/models/blobMappers.ts b/sdk/storage/storage-blob/src/generated/src/models/blobMappers.ts index ac9f243c72a5..56eeb7573dd9 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/blobMappers.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/blobMappers.ts @@ -15,14 +15,19 @@ export { BlobCreateSnapshotHeaders, BlobDeleteHeaders, BlobDownloadHeaders, + BlobGetAccessControlHeaders, BlobGetAccountInfoHeaders, BlobGetPropertiesHeaders, BlobReleaseLeaseHeaders, + BlobRenameHeaders, BlobRenewLeaseHeaders, + BlobSetAccessControlHeaders, BlobSetHTTPHeadersHeaders, BlobSetMetadataHeaders, BlobSetTierHeaders, BlobStartCopyFromURLHeaders, BlobUndeleteHeaders, + DataLakeStorageError, + DataLakeStorageErrorError, StorageError } from "../models/mappers"; diff --git a/sdk/storage/storage-blob/src/generated/src/models/containerMappers.ts b/sdk/storage/storage-blob/src/generated/src/models/containerMappers.ts index 22726a267131..5bfa87b10439 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/containerMappers.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/containerMappers.ts @@ -11,6 +11,7 @@ export { BlobFlatListSegment, BlobHierarchyListSegment, BlobItem, + BlobMetadata, BlobPrefix, BlobProperties, ContainerAcquireLeaseHeaders, diff --git a/sdk/storage/storage-blob/src/generated/src/models/directoryMappers.ts b/sdk/storage/storage-blob/src/generated/src/models/directoryMappers.ts new file mode 100644 index 000000000000..c923cc003dba --- /dev/null +++ b/sdk/storage/storage-blob/src/generated/src/models/directoryMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + DataLakeStorageError, + DataLakeStorageErrorError, + DirectoryCreateHeaders, + DirectoryDeleteHeaders, + DirectoryGetAccessControlHeaders, + DirectoryRenameHeaders, + DirectorySetAccessControlHeaders +} from "../models/mappers"; diff --git a/sdk/storage/storage-blob/src/generated/src/models/index.ts b/sdk/storage/storage-blob/src/generated/src/models/index.ts index 7361ec8e153a..b1241ed02a40 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/index.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { ServiceClientOptions } from "@azure/core-http"; import * as coreHttp from "@azure/core-http"; /** @@ -64,10 +65,33 @@ export interface UserDelegationKey { * An interface representing StorageError. */ export interface StorageError { + message?: string; +} + +/** + * The service error response object. + */ +export interface DataLakeStorageErrorError { + /** + * The service error code. + */ code?: string; + /** + * The service error message. + */ message?: string; } +/** + * An interface representing DataLakeStorageError. + */ +export interface DataLakeStorageError { + /** + * The service error response object. + */ + error?: DataLakeStorageErrorError; +} + /** * An Access policy */ @@ -139,8 +163,8 @@ export interface BlobProperties { deletedTime?: Date; remainingRetentionDays?: number; /** - * Possible values include: 'P4', 'P6', 'P10', 'P20', 'P30', 'P40', 'P50', 'Hot', 'Cool', - * 'Archive' + * Possible values include: 'P4', 'P6', 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', + * 'P80', 'Hot', 'Cool', 'Archive' */ accessTier?: AccessTier; accessTierInferred?: boolean; @@ -148,9 +172,22 @@ export interface BlobProperties { * Possible values include: 'rehydrate-pending-to-hot', 'rehydrate-pending-to-cool' */ archiveStatus?: ArchiveStatus; + customerProvidedKeySha256?: string; accessTierChangeTime?: Date; } +/** + * An interface representing BlobMetadata. + */ +export interface BlobMetadata { + encrypted?: string; + /** + * Describes unknown properties. The value of an unknown property MUST be of type "string". Due + * to valid TS constraints we have modeled this as a union of `string | any`. + */ + [property: string]: string | any; +} + /** * An Azure Storage blob */ @@ -159,7 +196,7 @@ export interface BlobItem { deleted: boolean; snapshot: string; properties: BlobProperties; - metadata?: { [propertyName: string]: string }; + metadata?: BlobMetadata; } /** @@ -514,38 +551,30 @@ export interface ModifiedAccessConditions { } /** - * Additional parameters for a set of operations. + * Additional parameters for a set of operations, such as: Directory_create, Directory_rename, + * Blob_rename. */ -export interface BlobHTTPHeaders { +export interface DirectoryHttpHeaders { /** - * Optional. Sets the blob's cache control. If specified, this property is stored with the blob - * and returned with a read request. - */ - blobCacheControl?: string; - /** - * Optional. Sets the blob's content type. If specified, this property is stored with the blob - * and returned with a read request. + * Cache control for given resource */ - blobContentType?: string; + cacheControl?: string; /** - * Optional. An MD5 hash of the blob content. Note that this hash is not validated, as the hashes - * for the individual blocks were validated when each was uploaded. + * Content type for given resource */ - blobContentMD5?: Uint8Array; + contentType?: string; /** - * Optional. Sets the blob's content encoding. If specified, this property is stored with the - * blob and returned with a read request. + * Content encoding for given resource */ - blobContentEncoding?: string; + contentEncoding?: string; /** - * Optional. Set the blob's content language. If specified, this property is stored with the blob - * and returned with a read request. + * Content language for given resource */ - blobContentLanguage?: string; + contentLanguage?: string; /** - * Optional. Sets the blob's Content-Disposition header. + * Content disposition for given resource */ - blobContentDisposition?: string; + contentDisposition?: string; } /** @@ -572,6 +601,64 @@ export interface SourceModifiedAccessConditions { sourceIfNoneMatch?: string; } +/** + * Additional parameters for a set of operations. + */ +export interface CpkInfo { + /** + * Optional. Specifies the encryption key to use to encrypt the data provided in the request. If + * not specified, encryption is performed with the root account encryption key. For more + * information, see Encryption at Rest for Azure Storage Services. + */ + encryptionKey?: string; + /** + * The SHA-256 hash of the provided encryption key. Must be provided if the x-ms-encryption-key + * header is provided. + */ + encryptionKeySha256?: string; + /** + * The algorithm used to produce the encryption key hash. Currently, the only accepted value is + * "AES256". Must be provided if the x-ms-encryption-key header is provided. Possible values + * include: 'AES256' + */ + encryptionAlgorithm?: EncryptionAlgorithmType; +} + +/** + * Additional parameters for a set of operations. + */ +export interface BlobHTTPHeaders { + /** + * Optional. Sets the blob's cache control. If specified, this property is stored with the blob + * and returned with a read request. + */ + blobCacheControl?: string; + /** + * Optional. Sets the blob's content type. If specified, this property is stored with the blob + * and returned with a read request. + */ + blobContentType?: string; + /** + * Optional. An MD5 hash of the blob content. Note that this hash is not validated, as the hashes + * for the individual blocks were validated when each was uploaded. + */ + blobContentMD5?: Uint8Array; + /** + * Optional. Sets the blob's content encoding. If specified, this property is stored with the + * blob and returned with a read request. + */ + blobContentEncoding?: string; + /** + * Optional. Set the blob's content language. If specified, this property is stored with the blob + * and returned with a read request. + */ + blobContentLanguage?: string; + /** + * Optional. Sets the blob's Content-Disposition header. + */ + blobContentDisposition?: string; +} + /** * Additional parameters for a set of operations, such as: PageBlob_uploadPages, * PageBlob_clearPages, PageBlob_uploadPagesFromURL. @@ -614,6 +701,16 @@ export interface AppendPositionAccessConditions { appendPosition?: number; } +/** + * An interface representing StorageClientOptions. + */ +export interface StorageClientOptions extends ServiceClientOptions { + /** + * Determines the behavior of the rename operation. Possible values include: 'legacy', 'posix' + */ + pathRenameMode?: PathRenameMode; +} + /** * Optional Parameters. */ @@ -728,8 +825,13 @@ export interface ServiceGetUserDelegationKeyOptionalParams extends coreHttp.Requ /** * Optional Parameters. */ -export interface ServiceListContainersSegmentNextOptionalParams - extends coreHttp.RequestOptionsBase { +export interface ServiceSubmitBatchOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -1077,8 +1179,7 @@ export interface ContainerListBlobFlatSegmentOptionalParams extends coreHttp.Req /** * Optional Parameters. */ -export interface ContainerListBlobHierarchySegmentOptionalParams - extends coreHttp.RequestOptionsBase { +export interface ContainerListBlobHierarchySegmentOptionalParams extends coreHttp.RequestOptionsBase { /** * Filters the results to return only containers whose name begins with the specified prefix. */ @@ -1120,38 +1221,7 @@ export interface ContainerListBlobHierarchySegmentOptionalParams /** * Optional Parameters. */ -export interface ContainerListBlobFlatSegmentNextOptionalParams - extends coreHttp.RequestOptionsBase { - /** - * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the - * analytics logs when storage analytics logging is enabled. - */ - requestId?: string; -} - -/** - * Optional Parameters. - */ -export interface ContainerListBlobHierarchySegmentNextOptionalParams - extends coreHttp.RequestOptionsBase { - /** - * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the - * analytics logs when storage analytics logging is enabled. - */ - requestId?: string; -} - -/** - * Optional Parameters. - */ -export interface BlobDownloadOptionalParams extends coreHttp.RequestOptionsBase { - /** - * The snapshot parameter is an opaque DateTime value that, when present, specifies the blob - * snapshot to retrieve. For more information on working with blob snapshots, see Creating - * a Snapshot of a Blob. - */ - snapshot?: string; +export interface DirectoryCreateOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1159,19 +1229,36 @@ export interface BlobDownloadOptionalParams extends coreHttp.RequestOptionsBase */ timeoutParameter?: number; /** - * Return only the bytes of the blob in the specified range. + * Optional. User-defined properties to be stored with the file or directory, in the format of a + * comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is base64 + * encoded. */ - range?: string; + directoryProperties?: string; /** - * When set to true and specified together with the Range, the service returns the MD5 hash for - * the range, as long as the range is less than or equal to 4 MB in size. + * Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX + * access permissions for the file owner, the file owning group, and others. Each class may be + * granted read, write, or execute permission. The sticky bit is also supported. Both symbolic + * (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. */ - rangeGetContentMD5?: boolean; + posixPermissions?: string; + /** + * Only valid if Hierarchical Namespace is enabled for the account. This umask restricts + * permission settings for file and directory, and will only be applied when default Acl does not + * exist in parent directory. If the umask bit has set, it means that the corresponding + * permission will be disabled. Otherwise the corresponding permission will be determined by the + * permission. A 4-digit octal notation (e.g. 0022) is supported here. If no umask was specified, + * a default umask - 0027 will be used. + */ + posixUmask?: string; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Additional parameters for the operation + */ + directoryHttpHeaders?: DirectoryHttpHeaders; /** * Additional parameters for the operation */ @@ -1185,25 +1272,57 @@ export interface BlobDownloadOptionalParams extends coreHttp.RequestOptionsBase /** * Optional Parameters. */ -export interface BlobGetPropertiesOptionalParams extends coreHttp.RequestOptionsBase { - /** - * The snapshot parameter is an opaque DateTime value that, when present, specifies the blob - * snapshot to retrieve. For more information on working with blob snapshots, see Creating - * a Snapshot of a Blob. - */ - snapshot?: string; +export interface DirectoryRenameOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting * Timeouts for Blob Service Operations. */ timeoutParameter?: number; + /** + * When renaming a directory, the number of paths that are renamed with each invocation is + * limited. If the number of paths to be renamed exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned in the response, it + * must be specified in a subsequent invocation of the rename operation to continue renaming the + * directory. + */ + marker?: string; + /** + * Optional. User-defined properties to be stored with the file or directory, in the format of a + * comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is base64 + * encoded. + */ + directoryProperties?: string; + /** + * Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX + * access permissions for the file owner, the file owning group, and others. Each class may be + * granted read, write, or execute permission. The sticky bit is also supported. Both symbolic + * (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + */ + posixPermissions?: string; + /** + * Only valid if Hierarchical Namespace is enabled for the account. This umask restricts + * permission settings for file and directory, and will only be applied when default Acl does not + * exist in parent directory. If the umask bit has set, it means that the corresponding + * permission will be disabled. Otherwise the corresponding permission will be determined by the + * permission. A 4-digit octal notation (e.g. 0022) is supported here. If no umask was specified, + * a default umask - 0027 will be used. + */ + posixUmask?: string; + /** + * A lease ID for the source path. If specified, the source path must have an active lease and + * the leaase ID must match. + */ + sourceLeaseId?: string; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Additional parameters for the operation + */ + directoryHttpHeaders?: DirectoryHttpHeaders; /** * Additional parameters for the operation */ @@ -1212,19 +1331,16 @@ export interface BlobGetPropertiesOptionalParams extends coreHttp.RequestOptions * Additional parameters for the operation */ modifiedAccessConditions?: ModifiedAccessConditions; + /** + * Additional parameters for the operation + */ + sourceModifiedAccessConditions?: SourceModifiedAccessConditions; } /** * Optional Parameters. */ -export interface BlobDeleteMethodOptionalParams extends coreHttp.RequestOptionsBase { - /** - * The snapshot parameter is an opaque DateTime value that, when present, specifies the blob - * snapshot to retrieve. For more information on working with blob snapshots, see Creating - * a Snapshot of a Blob. - */ - snapshot?: string; +export interface DirectoryDeleteMethodOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1232,11 +1348,13 @@ export interface BlobDeleteMethodOptionalParams extends coreHttp.RequestOptionsB */ timeoutParameter?: number; /** - * Required if the blob has associated snapshots. Specify one of the following two options: - * include: Delete the base blob and all of its snapshots. only: Delete only the blob's snapshots - * and not the blob itself. Possible values include: 'include', 'only' + * When renaming a directory, the number of paths that are renamed with each invocation is + * limited. If the number of paths to be renamed exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned in the response, it + * must be specified in a subsequent invocation of the rename operation to continue renaming the + * directory. */ - deleteSnapshots?: DeleteSnapshotsOptionType; + marker?: string; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -1255,7 +1373,7 @@ export interface BlobDeleteMethodOptionalParams extends coreHttp.RequestOptionsB /** * Optional Parameters. */ -export interface BlobUndeleteOptionalParams extends coreHttp.RequestOptionsBase { +export interface DirectorySetAccessControlOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1263,31 +1381,31 @@ export interface BlobUndeleteOptionalParams extends coreHttp.RequestOptionsBase */ timeoutParameter?: number; /** - * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the - * analytics logs when storage analytics logging is enabled. + * Optional. The owner of the blob or directory. */ - requestId?: string; -} - -/** - * Optional Parameters. - */ -export interface BlobSetHTTPHeadersOptionalParams extends coreHttp.RequestOptionsBase { + owner?: string; /** - * The timeout parameter is expressed in seconds. For more information, see Setting - * Timeouts for Blob Service Operations. + * Optional. The owning group of the blob or directory. */ - timeoutParameter?: number; + group?: string; + /** + * Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX + * access permissions for the file owner, the file owning group, and others. Each class may be + * granted read, write, or execute permission. The sticky bit is also supported. Both symbolic + * (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + */ + posixPermissions?: string; + /** + * Sets POSIX access control rights on files and directories. The value is a comma-separated list + * of access control entries. Each access control entry (ACE) consists of a scope, a type, a user + * or group identifier, and permissions in the format "[scope:][type]:[id]:[permissions]". + */ + posixAcl?: string; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. */ requestId?: string; - /** - * Additional parameters for the operation - */ - blobHTTPHeaders?: BlobHTTPHeaders; /** * Additional parameters for the operation */ @@ -1301,7 +1419,7 @@ export interface BlobSetHTTPHeadersOptionalParams extends coreHttp.RequestOption /** * Optional Parameters. */ -export interface BlobSetMetadataOptionalParams extends coreHttp.RequestOptionsBase { +export interface DirectoryGetAccessControlOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1309,15 +1427,12 @@ export interface BlobSetMetadataOptionalParams extends coreHttp.RequestOptionsBa */ timeoutParameter?: number; /** - * Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value - * pairs are specified, the operation will copy the metadata from the source blob or file to the - * destination blob. If one or more name-value pairs are specified, the destination blob is - * created with the specified metadata, and metadata is not copied from the source blob or file. - * Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules - * for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more - * information. + * Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the + * identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be + * transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the + * values will be returned as Azure Active Directory Object IDs. The default value is false. */ - metadata?: { [propertyName: string]: string }; + upn?: boolean; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -1336,7 +1451,14 @@ export interface BlobSetMetadataOptionalParams extends coreHttp.RequestOptionsBa /** * Optional Parameters. */ -export interface BlobAcquireLeaseOptionalParams extends coreHttp.RequestOptionsBase { +export interface BlobDownloadOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The snapshot parameter is an opaque DateTime value that, when present, specifies the blob + * snapshot to retrieve. For more information on working with blob snapshots, see Creating + * a Snapshot of a Blob. + */ + snapshot?: string; /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1344,22 +1466,32 @@ export interface BlobAcquireLeaseOptionalParams extends coreHttp.RequestOptionsB */ timeoutParameter?: number; /** - * Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never - * expires. A non-infinite lease can be between 15 and 60 seconds. A lease duration cannot be - * changed using renew or change. + * Return only the bytes of the blob in the specified range. */ - duration?: number; + range?: string; /** - * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if - * the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list - * of valid GUID string formats. + * When set to true and specified together with the Range, the service returns the MD5 hash for + * the range, as long as the range is less than or equal to 4 MB in size. */ - proposedLeaseId?: string; + rangeGetContentMD5?: boolean; + /** + * When set to true and specified together with the Range, the service returns the CRC64 hash for + * the range, as long as the range is less than or equal to 4 MB in size. + */ + rangeGetContentCRC64?: boolean; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Additional parameters for the operation + */ + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1369,7 +1501,14 @@ export interface BlobAcquireLeaseOptionalParams extends coreHttp.RequestOptionsB /** * Optional Parameters. */ -export interface BlobReleaseLeaseOptionalParams extends coreHttp.RequestOptionsBase { +export interface BlobGetPropertiesOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The snapshot parameter is an opaque DateTime value that, when present, specifies the blob + * snapshot to retrieve. For more information on working with blob snapshots, see Creating + * a Snapshot of a Blob. + */ + snapshot?: string; /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1384,7 +1523,330 @@ export interface BlobReleaseLeaseOptionalParams extends coreHttp.RequestOptionsB /** * Additional parameters for the operation */ - modifiedAccessConditions?: ModifiedAccessConditions; + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobDeleteMethodOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The snapshot parameter is an opaque DateTime value that, when present, specifies the blob + * snapshot to retrieve. For more information on working with blob snapshots, see Creating + * a Snapshot of a Blob. + */ + snapshot?: string; + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Required if the blob has associated snapshots. Specify one of the following two options: + * include: Delete the base blob and all of its snapshots. only: Delete only the blob's snapshots + * and not the blob itself. Possible values include: 'include', 'only' + */ + deleteSnapshots?: DeleteSnapshotsOptionType; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobSetAccessControlOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Optional. The owner of the blob or directory. + */ + owner?: string; + /** + * Optional. The owning group of the blob or directory. + */ + group?: string; + /** + * Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX + * access permissions for the file owner, the file owning group, and others. Each class may be + * granted read, write, or execute permission. The sticky bit is also supported. Both symbolic + * (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + */ + posixPermissions?: string; + /** + * Sets POSIX access control rights on files and directories. The value is a comma-separated list + * of access control entries. Each access control entry (ACE) consists of a scope, a type, a user + * or group identifier, and permissions in the format "[scope:][type]:[id]:[permissions]". + */ + posixAcl?: string; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobGetAccessControlOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the + * identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be + * transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the + * values will be returned as Azure Active Directory Object IDs. The default value is false. + */ + upn?: boolean; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobRenameOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Optional. User-defined properties to be stored with the file or directory, in the format of a + * comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is base64 + * encoded. + */ + directoryProperties?: string; + /** + * Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX + * access permissions for the file owner, the file owning group, and others. Each class may be + * granted read, write, or execute permission. The sticky bit is also supported. Both symbolic + * (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + */ + posixPermissions?: string; + /** + * Only valid if Hierarchical Namespace is enabled for the account. This umask restricts + * permission settings for file and directory, and will only be applied when default Acl does not + * exist in parent directory. If the umask bit has set, it means that the corresponding + * permission will be disabled. Otherwise the corresponding permission will be determined by the + * permission. A 4-digit octal notation (e.g. 0022) is supported here. If no umask was specified, + * a default umask - 0027 will be used. + */ + posixUmask?: string; + /** + * A lease ID for the source path. If specified, the source path must have an active lease and + * the leaase ID must match. + */ + sourceLeaseId?: string; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + directoryHttpHeaders?: DirectoryHttpHeaders; + /** + * Additional parameters for the operation + */ + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; + /** + * Additional parameters for the operation + */ + sourceModifiedAccessConditions?: SourceModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobUndeleteOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; +} + +/** + * Optional Parameters. + */ +export interface BlobSetHTTPHeadersOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + blobHTTPHeaders?: BlobHTTPHeaders; + /** + * Additional parameters for the operation + */ + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobSetMetadataOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value + * pairs are specified, the operation will copy the metadata from the source blob or file to the + * destination blob. If one or more name-value pairs are specified, the destination blob is + * created with the specified metadata, and metadata is not copied from the source blob or file. + * Note that beginning with version 2009-09-19, metadata names must adhere to the naming rules + * for C# identifiers. See Naming and Referencing Containers, Blobs, and Metadata for more + * information. + */ + metadata?: { [propertyName: string]: string }; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobAcquireLeaseOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never + * expires. A non-infinite lease can be between 15 and 60 seconds. A lease duration cannot be + * changed using renew or change. + */ + duration?: number; + /** + * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if + * the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list + * of valid GUID string formats. + */ + proposedLeaseId?: string; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; +} + +/** + * Optional Parameters. + */ +export interface BlobReleaseLeaseOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for Blob Service Operations. + */ + timeoutParameter?: number; + /** + * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the + * analytics logs when storage analytics logging is enabled. + */ + requestId?: string; + /** + * Additional parameters for the operation + */ + modifiedAccessConditions?: ModifiedAccessConditions; } /** @@ -1485,6 +1947,10 @@ export interface BlobCreateSnapshotOptionalParams extends coreHttp.RequestOption * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1515,6 +1981,16 @@ export interface BlobStartCopyFromURLOptionalParams extends coreHttp.RequestOpti * information. */ metadata?: { [propertyName: string]: string }; + /** + * Optional. Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' + */ + tier?: AccessTier; + /** + * Optional: Indicates the priority with which to rehydrate an archived blob. Possible values + * include: 'High', 'Standard' + */ + rehydratePriority?: RehydratePriority; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -1554,6 +2030,11 @@ export interface BlobCopyFromURLOptionalParams extends coreHttp.RequestOptionsBa * information. */ metadata?: { [propertyName: string]: string }; + /** + * Optional. Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' + */ + tier?: AccessTier; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -1604,6 +2085,11 @@ export interface BlobSetTierOptionalParams extends coreHttp.RequestOptionsBase { * Timeouts for Blob Service Operations. */ timeoutParameter?: number; + /** + * Optional: Indicates the priority with which to rehydrate an archived blob. Possible values + * include: 'High', 'Standard' + */ + rehydratePriority?: RehydratePriority; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -1646,6 +2132,11 @@ export interface PageBlobCreateOptionalParams extends coreHttp.RequestOptionsBas * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Optional. Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' + */ + tier?: AccessTier; /** * Additional parameters for the operation */ @@ -1654,6 +2145,10 @@ export interface PageBlobCreateOptionalParams extends coreHttp.RequestOptionsBas * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1668,6 +2163,10 @@ export interface PageBlobUploadPagesOptionalParams extends coreHttp.RequestOptio * Specify the transactional md5 for the body, to be validated by the service. */ transactionalContentMD5?: Uint8Array; + /** + * Specify the transactional crc64 for the body, to be validated by the service. + */ + transactionalContentCrc64?: Uint8Array; /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1687,6 +2186,10 @@ export interface PageBlobUploadPagesOptionalParams extends coreHttp.RequestOptio * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1720,6 +2223,10 @@ export interface PageBlobClearPagesOptionalParams extends coreHttp.RequestOption * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1738,6 +2245,10 @@ export interface PageBlobUploadPagesFromURLOptionalParams extends coreHttp.Reque * Specify the md5 calculated for the range of bytes that must be read from the copy source. */ sourceContentMD5?: Uint8Array; + /** + * Specify the crc64 calculated for the range of bytes that must be read from the copy source. + */ + sourceContentCrc64?: Uint8Array; /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -1749,6 +2260,10 @@ export interface PageBlobUploadPagesFromURLOptionalParams extends coreHttp.Reque * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1867,6 +2382,10 @@ export interface PageBlobResizeOptionalParams extends coreHttp.RequestOptionsBas * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1958,6 +2477,10 @@ export interface AppendBlobCreateOptionalParams extends coreHttp.RequestOptionsB * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -1978,6 +2501,10 @@ export interface AppendBlobAppendBlockOptionalParams extends coreHttp.RequestOpt * Specify the transactional md5 for the body, to be validated by the service. */ transactionalContentMD5?: Uint8Array; + /** + * Specify the transactional crc64 for the body, to be validated by the service. + */ + transactionalContentCrc64?: Uint8Array; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -1991,6 +2518,10 @@ export interface AppendBlobAppendBlockOptionalParams extends coreHttp.RequestOpt * Additional parameters for the operation */ appendPositionAccessConditions?: AppendPositionAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -2009,17 +2540,29 @@ export interface AppendBlobAppendBlockFromUrlOptionalParams extends coreHttp.Req * Specify the md5 calculated for the range of bytes that must be read from the copy source. */ sourceContentMD5?: Uint8Array; + /** + * Specify the crc64 calculated for the range of bytes that must be read from the copy source. + */ + sourceContentCrc64?: Uint8Array; /** * The timeout parameter is expressed in seconds. For more information, see Setting * Timeouts for Blob Service Operations. */ timeoutParameter?: number; + /** + * Specify the transactional md5 for the body, to be validated by the service. + */ + transactionalContentMD5?: Uint8Array; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -2058,6 +2601,11 @@ export interface BlockBlobUploadOptionalParams extends coreHttp.RequestOptionsBa * information. */ metadata?: { [propertyName: string]: string }; + /** + * Optional. Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' + */ + tier?: AccessTier; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -2071,6 +2619,10 @@ export interface BlockBlobUploadOptionalParams extends coreHttp.RequestOptionsBa * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -2085,6 +2637,10 @@ export interface BlockBlobStageBlockOptionalParams extends coreHttp.RequestOptio * Specify the transactional md5 for the body, to be validated by the service. */ transactionalContentMD5?: Uint8Array; + /** + * Specify the transactional crc64 for the body, to be validated by the service. + */ + transactionalContentCrc64?: Uint8Array; /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -2100,6 +2656,10 @@ export interface BlockBlobStageBlockOptionalParams extends coreHttp.RequestOptio * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; } /** @@ -2114,6 +2674,10 @@ export interface BlockBlobStageBlockFromURLOptionalParams extends coreHttp.Reque * Specify the md5 calculated for the range of bytes that must be read from the copy source. */ sourceContentMD5?: Uint8Array; + /** + * Specify the crc64 calculated for the range of bytes that must be read from the copy source. + */ + sourceContentCrc64?: Uint8Array; /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -2125,6 +2689,10 @@ export interface BlockBlobStageBlockFromURLOptionalParams extends coreHttp.Reque * analytics logs when storage analytics logging is enabled. */ requestId?: string; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -2145,6 +2713,14 @@ export interface BlockBlobCommitBlockListOptionalParams extends coreHttp.Request * Timeouts for Blob Service Operations. */ timeoutParameter?: number; + /** + * Specify the transactional md5 for the body, to be validated by the service. + */ + transactionalContentMD5?: Uint8Array; + /** + * Specify the transactional crc64 for the body, to be validated by the service. + */ + transactionalContentCrc64?: Uint8Array; /** * Optional. Specifies a user-defined name-value pair associated with the blob. If no name-value * pairs are specified, the operation will copy the metadata from the source blob or file to the @@ -2155,6 +2731,11 @@ export interface BlockBlobCommitBlockListOptionalParams extends coreHttp.Request * information. */ metadata?: { [propertyName: string]: string }; + /** + * Optional. Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' + */ + tier?: AccessTier; /** * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the * analytics logs when storage analytics logging is enabled. @@ -2168,6 +2749,10 @@ export interface BlockBlobCommitBlockListOptionalParams extends coreHttp.Request * Additional parameters for the operation */ leaseAccessConditions?: LeaseAccessConditions; + /** + * Additional parameters for the operation + */ + cpkInfo?: CpkInfo; /** * Additional parameters for the operation */ @@ -2206,6 +2791,11 @@ export interface BlockBlobGetBlockListOptionalParams extends coreHttp.RequestOpt * Defines headers for SetProperties operation. */ export interface ServiceSetPropertiesHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2223,6 +2813,11 @@ export interface ServiceSetPropertiesHeaders { * Defines headers for GetProperties operation. */ export interface ServiceGetPropertiesHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2240,6 +2835,11 @@ export interface ServiceGetPropertiesHeaders { * Defines headers for GetStatistics operation. */ export interface ServiceGetStatisticsHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2262,6 +2862,11 @@ export interface ServiceGetStatisticsHeaders { * Defines headers for ListContainersSegment operation. */ export interface ServiceListContainersSegmentHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2279,6 +2884,11 @@ export interface ServiceListContainersSegmentHeaders { * Defines headers for GetUserDelegationKey operation. */ export interface ServiceGetUserDelegationKeyHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2301,6 +2911,11 @@ export interface ServiceGetUserDelegationKeyHeaders { * Defines headers for GetAccountInfo operation. */ export interface ServiceGetAccountInfoHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2320,11 +2935,38 @@ export interface ServiceGetAccountInfoHeaders { * Identifies the sku name of the account. Possible values include: 'Standard_LRS', * 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS' */ - skuName?: SkuName; + skuName?: SkuName; + /** + * Identifies the account kind. Possible values include: 'Storage', 'BlobStorage', 'StorageV2' + */ + accountKind?: AccountKind; + errorCode?: string; +} + +/** + * Defines headers for SubmitBatch operation. + */ +export interface ServiceSubmitBatchHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; + /** + * The media type of the body of the response. For batch requests, this is multipart/mixed; + * boundary=batchresponse_GUID + */ + contentType?: string; + /** + * This header uniquely identifies the request that was made and can be used for troubleshooting + * the request. + */ + requestId?: string; /** - * Identifies the account kind. Possible values include: 'Storage', 'BlobStorage', 'StorageV2' + * Indicates the version of the Blob service used to execute the request. This header is returned + * for requests made against version 2009-09-19 and above. */ - accountKind?: AccountKind; + version?: string; errorCode?: string; } @@ -2343,6 +2985,11 @@ export interface ContainerCreateHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2391,6 +3038,11 @@ export interface ContainerGetPropertiesHeaders { * The current lease status of the blob. Possible values include: 'locked', 'unlocked' */ leaseStatus?: LeaseStatusType; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2426,6 +3078,11 @@ export interface ContainerGetPropertiesHeaders { * Defines headers for Delete operation. */ export interface ContainerDeleteHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2459,6 +3116,11 @@ export interface ContainerSetMetadataHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2497,6 +3159,11 @@ export interface ContainerGetAccessPolicyHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2530,6 +3197,11 @@ export interface ContainerSetAccessPolicyHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2567,6 +3239,11 @@ export interface ContainerAcquireLeaseHeaders { * Uniquely identifies a container's lease */ leaseId?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2600,6 +3277,11 @@ export interface ContainerReleaseLeaseHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2637,6 +3319,11 @@ export interface ContainerRenewLeaseHeaders { * Uniquely identifies a container's lease */ leaseId?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2674,6 +3361,11 @@ export interface ContainerBreakLeaseHeaders { * Approximate time remaining in the lease period, in seconds. */ leaseTime?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2711,6 +3403,11 @@ export interface ContainerChangeLeaseHeaders { * Uniquely identifies a container's lease */ leaseId?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2737,6 +3434,11 @@ export interface ContainerListBlobFlatSegmentHeaders { * The media type of the body of the response. For List Blobs this is 'application/xml' */ contentType?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2763,6 +3465,11 @@ export interface ContainerListBlobHierarchySegmentHeaders { * The media type of the body of the response. For List Blobs this is 'application/xml' */ contentType?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2785,6 +3492,11 @@ export interface ContainerListBlobHierarchySegmentHeaders { * Defines headers for GetAccountInfo operation. */ export interface ContainerGetAccountInfoHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2812,6 +3524,206 @@ export interface ContainerGetAccountInfoHeaders { errorCode?: string; } +/** + * Defines headers for Create operation. + */ +export interface DirectoryCreateHeaders { + /** + * An HTTP entity tag associated with the file or directory. + */ + eTag?: string; + /** + * The data and time the file or directory was last modified. Write operations on the file or + * directory update the last modified time. + */ + lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; + /** + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. + */ + requestId?: string; + /** + * The version of the REST protocol used to process the request. + */ + version?: string; + /** + * The size of the resource in bytes. + */ + contentLength?: number; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; +} + +/** + * Defines headers for Rename operation. + */ +export interface DirectoryRenameHeaders { + /** + * When renaming a directory, the number of paths that are renamed with each invocation is + * limited. If the number of paths to be renamed exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned in the response, it + * must be specified in a subsequent invocation of the rename operation to continue renaming the + * directory. + */ + marker?: string; + /** + * An HTTP entity tag associated with the file or directory. + */ + eTag?: string; + /** + * The data and time the file or directory was last modified. Write operations on the file or + * directory update the last modified time. + */ + lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; + /** + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. + */ + requestId?: string; + /** + * The version of the REST protocol used to process the request. + */ + version?: string; + /** + * The size of the resource in bytes. + */ + contentLength?: number; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; +} + +/** + * Defines headers for Delete operation. + */ +export interface DirectoryDeleteHeaders { + /** + * When renaming a directory, the number of paths that are renamed with each invocation is + * limited. If the number of paths to be renamed exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned in the response, it + * must be specified in a subsequent invocation of the rename operation to continue renaming the + * directory. + */ + marker?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; + /** + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. + */ + requestId?: string; + /** + * The version of the REST protocol used to process the request. + */ + version?: string; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; +} + +/** + * Defines headers for SetAccessControl operation. + */ +export interface DirectorySetAccessControlHeaders { + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + /** + * An HTTP entity tag associated with the file or directory. + */ + eTag?: string; + /** + * The data and time the file or directory was last modified. Write operations on the file or + * directory update the last modified time. + */ + lastModified?: Date; + /** + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. + */ + requestId?: string; + /** + * The version of the REST protocol used to process the request. + */ + version?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; +} + +/** + * Defines headers for GetAccessControl operation. + */ +export interface DirectoryGetAccessControlHeaders { + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + /** + * An HTTP entity tag associated with the file or directory. + */ + eTag?: string; + /** + * The data and time the file or directory was last modified. Write operations on the file or + * directory update the last modified time. + */ + lastModified?: Date; + /** + * The owner of the file or directory. Included in the response if Hierarchical Namespace is + * enabled for the account. + */ + xMsOwner?: string; + /** + * The owning group of the file or directory. Included in the response if Hierarchical Namespace + * is enabled for the account. + */ + xMsGroup?: string; + /** + * The POSIX access permissions for the file owner, the file owning group, and others. Included + * in the response if Hierarchical Namespace is enabled for the account. + */ + xMsPermissions?: string; + /** + * The POSIX access control list for the file or directory. Included in the response only if the + * action is "getAccessControl" and Hierarchical Namespace is enabled for the account. + */ + xMsAcl?: string; + /** + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. + */ + requestId?: string; + /** + * The version of the REST protocol used to process the request. + */ + version?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; +} + /** * Defines headers for Download operation. */ @@ -2932,6 +3844,11 @@ export interface BlobDownloadHeaders { * The current lease status of the blob. Possible values include: 'locked', 'unlocked' */ leaseStatus?: LeaseStatusType; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -2962,6 +3879,11 @@ export interface BlobDownloadHeaders { * the blob is unencrypted, or if only parts of the blob/application metadata are encrypted). */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned + * when the blob was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; /** * If the blob has a MD5 hash, and if request contains range header (Range or x-ms-range), this * response header is returned with the value of the whole blob's MD5 value. This value may or @@ -2969,6 +3891,13 @@ export interface BlobDownloadHeaders { * the requested range */ blobContentMD5?: Uint8Array; + /** + * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to + * true, then the request returns a crc64 for the range, as long as the range size is less than + * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is + * specified in the same request, it will fail with 400(Bad Request) + */ + contentCrc64?: Uint8Array; errorCode?: string; } @@ -3101,6 +4030,11 @@ export interface BlobGetPropertiesHeaders { * append blobs */ blobSequenceNumber?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3132,53 +4066,186 @@ export interface BlobGetPropertiesHeaders { */ isServerEncrypted?: boolean; /** - * The tier of page blob on a premium storage account or tier of block blob on blob storage LRS - * accounts. For a list of allowed premium page blob tiers, see - * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/premium-storage#features. For - * blob storage LRS accounts, valid values are Hot/Cool/Archive. + * The SHA-256 hash of the encryption key used to encrypt the metadata. This header is only + * returned when the metadata was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; + /** + * The tier of page blob on a premium storage account or tier of block blob on blob storage LRS + * accounts. For a list of allowed premium page blob tiers, see + * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/premium-storage#features. For + * blob storage LRS accounts, valid values are Hot/Cool/Archive. + */ + accessTier?: string; + /** + * For page blobs on a premium storage account only. If the access tier is not explicitly set on + * the blob, the tier is inferred based on its content length and this header will be returned + * with true value. + */ + accessTierInferred?: boolean; + /** + * For blob storage LRS accounts, valid values are + * rehydrate-pending-to-hot/rehydrate-pending-to-cool. If the blob is being rehydrated and is not + * complete then this header is returned indicating that rehydrate is pending and also tells the + * destination tier. + */ + archiveStatus?: string; + /** + * The time the tier was changed on the object. This is only returned if the tier on the block + * blob was ever set. + */ + accessTierChangeTime?: Date; + errorCode?: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface BlobDeleteHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; + /** + * This header uniquely identifies the request that was made and can be used for troubleshooting + * the request. + */ + requestId?: string; + /** + * Indicates the version of the Blob service used to execute the request. This header is returned + * for requests made against version 2009-09-19 and above. + */ + version?: string; + /** + * UTC date/time value generated by the service that indicates the time at which the response was + * initiated + */ + date?: Date; + errorCode?: string; +} + +/** + * Defines headers for SetAccessControl operation. + */ +export interface BlobSetAccessControlHeaders { + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + /** + * An HTTP entity tag associated with the file or directory. + */ + eTag?: string; + /** + * The data and time the file or directory was last modified. Write operations on the file or + * directory update the last modified time. + */ + lastModified?: Date; + /** + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. + */ + requestId?: string; + /** + * The version of the REST protocol used to process the request. + */ + version?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; +} + +/** + * Defines headers for GetAccessControl operation. + */ +export interface BlobGetAccessControlHeaders { + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + /** + * An HTTP entity tag associated with the file or directory. + */ + eTag?: string; + /** + * The data and time the file or directory was last modified. Write operations on the file or + * directory update the last modified time. + */ + lastModified?: Date; + /** + * The owner of the file or directory. Included in the response if Hierarchical Namespace is + * enabled for the account. + */ + xMsOwner?: string; + /** + * The owning group of the file or directory. Included in the response if Hierarchical Namespace + * is enabled for the account. + */ + xMsGroup?: string; + /** + * The POSIX access permissions for the file owner, the file owning group, and others. Included + * in the response if Hierarchical Namespace is enabled for the account. + */ + xMsPermissions?: string; + /** + * The POSIX access control list for the file or directory. Included in the response only if the + * action is "getAccessControl" and Hierarchical Namespace is enabled for the account. */ - accessTier?: string; + xMsAcl?: string; /** - * For page blobs on a premium storage account only. If the access tier is not explicitly set on - * the blob, the tier is inferred based on its content length and this header will be returned - * with true value. + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. */ - accessTierInferred?: boolean; + requestId?: string; /** - * For blob storage LRS accounts, valid values are - * rehydrate-pending-to-hot/rehydrate-pending-to-cool. If the blob is being rehydrated and is not - * complete then this header is returned indicating that rehydrate is pending and also tells the - * destination tier. + * The version of the REST protocol used to process the request. */ - archiveStatus?: string; + version?: string; /** - * The time the tier was changed on the object. This is only returned if the tier on the block - * blob was ever set. + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. */ - accessTierChangeTime?: Date; - errorCode?: string; + clientRequestId?: string; } /** - * Defines headers for Delete operation. + * Defines headers for Rename operation. */ -export interface BlobDeleteHeaders { +export interface BlobRenameHeaders { /** - * This header uniquely identifies the request that was made and can be used for troubleshooting - * the request. + * An HTTP entity tag associated with the file or directory. + */ + eTag?: string; + /** + * The data and time the file or directory was last modified. Write operations on the file or + * directory update the last modified time. + */ + lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; + /** + * A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. */ requestId?: string; /** - * Indicates the version of the Blob service used to execute the request. This header is returned - * for requests made against version 2009-09-19 and above. + * The version of the REST protocol used to process the request. */ version?: string; /** - * UTC date/time value generated by the service that indicates the time at which the response was - * initiated + * The size of the resource in bytes. + */ + contentLength?: number; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. */ date?: Date; - errorCode?: string; } /** @@ -3201,6 +4268,11 @@ export interface PageBlobCreateHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3221,6 +4293,11 @@ export interface PageBlobCreateHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned + * when the blob was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3244,6 +4321,11 @@ export interface AppendBlobCreateHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3264,6 +4346,11 @@ export interface AppendBlobCreateHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned + * when the blob was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3287,6 +4374,11 @@ export interface BlockBlobUploadHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3307,6 +4399,11 @@ export interface BlockBlobUploadHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned + * when the blob was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3314,6 +4411,11 @@ export interface BlockBlobUploadHeaders { * Defines headers for Undelete operation. */ export interface BlobUndeleteHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3352,6 +4454,11 @@ export interface BlobSetHTTPHeadersHeaders { * append blobs */ blobSequenceNumber?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3385,6 +4492,11 @@ export interface BlobSetMetadataHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3405,6 +4517,11 @@ export interface BlobSetMetadataHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the metadata. This header is only + * returned when the metadata was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3427,6 +4544,11 @@ export interface BlobAcquireLeaseHeaders { * Uniquely identifies a blobs's lease */ leaseId?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3460,6 +4582,11 @@ export interface BlobReleaseLeaseHeaders { * the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3497,6 +4624,11 @@ export interface BlobRenewLeaseHeaders { * Uniquely identifies a blobs's lease */ leaseId?: string; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3530,6 +4662,11 @@ export interface BlobChangeLeaseHeaders { * the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3571,6 +4708,11 @@ export interface BlobBreakLeaseHeaders { * Approximate time remaining in the lease period, in seconds. */ leaseTime?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3609,6 +4751,11 @@ export interface BlobCreateSnapshotHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3624,6 +4771,12 @@ export interface BlobCreateSnapshotHeaders { * initiated */ date?: Date; + /** + * True if the contents of the request are successfully encrypted using the specified algorithm, + * and false otherwise. For a snapshot request, this header is set to true when metadata was + * provided in the request and encrypted with a customer-provided key. + */ + isServerEncrypted?: boolean; errorCode?: string; } @@ -3642,6 +4795,11 @@ export interface BlobStartCopyFromURLHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3685,6 +4843,11 @@ export interface BlobCopyFromURLHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3715,6 +4878,11 @@ export interface BlobCopyFromURLHeaders { * Defines headers for AbortCopyFromURL operation. */ export interface BlobAbortCopyFromURLHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3737,6 +4905,11 @@ export interface BlobAbortCopyFromURLHeaders { * Defines headers for SetTier operation. */ export interface BlobSetTierHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3754,6 +4927,11 @@ export interface BlobSetTierHeaders { * Defines headers for GetAccountInfo operation. */ export interface BlobGetAccountInfoHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3786,10 +4964,16 @@ export interface BlobGetAccountInfoHeaders { */ export interface BlockBlobStageBlockHeaders { /** - * If the blob has an MD5 hash and this operation is to read the full blob, this response header - * is returned so that the client can check for message content integrity. + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. */ contentMD5?: Uint8Array; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3805,11 +4989,22 @@ export interface BlockBlobStageBlockHeaders { * initiated */ date?: Date; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. + */ + xMsContentCrc64?: Uint8Array; /** * The value of this header is set to true if the contents of the request are successfully * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the block. This header is only returned + * when the block was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3818,10 +5013,22 @@ export interface BlockBlobStageBlockHeaders { */ export interface BlockBlobStageBlockFromURLHeaders { /** - * If the blob has an MD5 hash and this operation is to read the full blob, this response header - * is returned so that the client can check for message content integrity. + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. */ contentMD5?: Uint8Array; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. + */ + xMsContentCrc64?: Uint8Array; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3842,6 +5049,11 @@ export interface BlockBlobStageBlockFromURLHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the block. This header is only returned + * when the block was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3861,10 +5073,22 @@ export interface BlockBlobCommitBlockListHeaders { */ lastModified?: Date; /** - * If the blob has an MD5 hash and this operation is to read the full blob, this response header - * is returned so that the client can check for message content integrity. + * This header is returned so that the client can check for message content integrity. This + * header refers to the content of the request, meaning, in this case, the list of blocks, and + * not the content of the blob itself. */ contentMD5?: Uint8Array; + /** + * This header is returned so that the client can check for message content integrity. This + * header refers to the content of the request, meaning, in this case, the list of blocks, and + * not the content of the blob itself. + */ + xMsContentCrc64?: Uint8Array; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3885,6 +5109,11 @@ export interface BlockBlobCommitBlockListHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned + * when the blob was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3911,6 +5140,11 @@ export interface BlockBlobGetBlockListHeaders { * The size of the blob in bytes. */ blobContentLength?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3949,10 +5183,21 @@ export interface PageBlobUploadPagesHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. + */ + xMsContentCrc64?: Uint8Array; /** * The current sequence number for the page blob. */ blobSequenceNumber?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -3973,6 +5218,11 @@ export interface PageBlobUploadPagesHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the pages. This header is only returned + * when the pages were encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -3996,10 +5246,21 @@ export interface PageBlobClearPagesHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. + */ + xMsContentCrc64?: Uint8Array; /** * The current sequence number for the page blob. */ blobSequenceNumber?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4038,6 +5299,12 @@ export interface PageBlobUploadPagesFromURLHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. + */ + xMsContentCrc64?: Uint8Array; /** * The current sequence number for the page blob. */ @@ -4062,6 +5329,11 @@ export interface PageBlobUploadPagesFromURLHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the pages. This header is only returned + * when the pages were encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -4084,6 +5356,11 @@ export interface PageBlobGetPageRangesHeaders { * The size of the blob in bytes. */ blobContentLength?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4121,6 +5398,11 @@ export interface PageBlobGetPageRangesDiffHeaders { * The size of the blob in bytes. */ blobContentLength?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4159,6 +5441,11 @@ export interface PageBlobResizeHeaders { * append blobs */ blobSequenceNumber?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4197,6 +5484,11 @@ export interface PageBlobUpdateSequenceNumberHeaders { * append blobs */ blobSequenceNumber?: number; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4230,6 +5522,11 @@ export interface PageBlobCopyIncrementalHeaders { * of the blob. */ lastModified?: Date; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4278,6 +5575,17 @@ export interface AppendBlobAppendBlockHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. + */ + xMsContentCrc64?: Uint8Array; + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4308,6 +5616,11 @@ export interface AppendBlobAppendBlockHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * The SHA-256 hash of the encryption key used to encrypt the block. This header is only returned + * when the block was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -4331,6 +5644,12 @@ export interface AppendBlobAppendBlockFromUrlHeaders { * is returned so that the client can check for message content integrity. */ contentMD5?: Uint8Array; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the Blob service; it is not necessarily the same value specified + * in the request headers. + */ + xMsContentCrc64?: Uint8Array; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -4356,6 +5675,11 @@ export interface AppendBlobAppendBlockFromUrlHeaders { * blobs. */ blobCommittedBlockCount?: number; + /** + * The SHA-256 hash of the encryption key used to encrypt the block. This header is only returned + * when the block was encrypted with a customer-provided key. + */ + encryptionKeySha256?: string; errorCode?: string; } @@ -4365,7 +5689,7 @@ export interface AppendBlobAppendBlockFromUrlHeaders { * @readonly * @enum {string} */ -export type PublicAccessType = "container" | "blob"; +export type PublicAccessType = 'container' | 'blob'; /** * Defines values for CopyStatusType. @@ -4373,7 +5697,7 @@ export type PublicAccessType = "container" | "blob"; * @readonly * @enum {string} */ -export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; +export type CopyStatusType = 'pending' | 'success' | 'aborted' | 'failed'; /** * Defines values for LeaseDurationType. @@ -4381,7 +5705,7 @@ export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; * @readonly * @enum {string} */ -export type LeaseDurationType = "infinite" | "fixed"; +export type LeaseDurationType = 'infinite' | 'fixed'; /** * Defines values for LeaseStateType. @@ -4389,7 +5713,7 @@ export type LeaseDurationType = "infinite" | "fixed"; * @readonly * @enum {string} */ -export type LeaseStateType = "available" | "leased" | "expired" | "breaking" | "broken"; +export type LeaseStateType = 'available' | 'leased' | 'expired' | 'breaking' | 'broken'; /** * Defines values for LeaseStatusType. @@ -4397,25 +5721,16 @@ export type LeaseStateType = "available" | "leased" | "expired" | "breaking" | " * @readonly * @enum {string} */ -export type LeaseStatusType = "locked" | "unlocked"; +export type LeaseStatusType = 'locked' | 'unlocked'; /** * Defines values for AccessTier. - * Possible values include: 'P4', 'P6', 'P10', 'P20', 'P30', 'P40', 'P50', 'Hot', 'Cool', 'Archive' + * Possible values include: 'P4', 'P6', 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', + * 'P80', 'Hot', 'Cool', 'Archive' * @readonly * @enum {string} */ -export type AccessTier = - | "P4" - | "P6" - | "P10" - | "P20" - | "P30" - | "P40" - | "P50" - | "Hot" - | "Cool" - | "Archive"; +export type AccessTier = 'P4' | 'P6' | 'P10' | 'P15' | 'P20' | 'P30' | 'P40' | 'P50' | 'P60' | 'P70' | 'P80' | 'Hot' | 'Cool' | 'Archive'; /** * Defines values for ArchiveStatus. @@ -4423,7 +5738,7 @@ export type AccessTier = * @readonly * @enum {string} */ -export type ArchiveStatus = "rehydrate-pending-to-hot" | "rehydrate-pending-to-cool"; +export type ArchiveStatus = 'rehydrate-pending-to-hot' | 'rehydrate-pending-to-cool'; /** * Defines values for BlobType. @@ -4431,7 +5746,7 @@ export type ArchiveStatus = "rehydrate-pending-to-hot" | "rehydrate-pending-to-c * @readonly * @enum {string} */ -export type BlobType = "BlockBlob" | "PageBlob" | "AppendBlob"; +export type BlobType = 'BlockBlob' | 'PageBlob' | 'AppendBlob'; /** * Defines values for StorageErrorCode. @@ -4471,112 +5786,7 @@ export type BlobType = "BlockBlob" | "PageBlob" | "AppendBlob"; * @readonly * @enum {string} */ -export type StorageErrorCode = - | "AccountAlreadyExists" - | "AccountBeingCreated" - | "AccountIsDisabled" - | "AuthenticationFailed" - | "AuthorizationFailure" - | "ConditionHeadersNotSupported" - | "ConditionNotMet" - | "EmptyMetadataKey" - | "InsufficientAccountPermissions" - | "InternalError" - | "InvalidAuthenticationInfo" - | "InvalidHeaderValue" - | "InvalidHttpVerb" - | "InvalidInput" - | "InvalidMd5" - | "InvalidMetadata" - | "InvalidQueryParameterValue" - | "InvalidRange" - | "InvalidResourceName" - | "InvalidUri" - | "InvalidXmlDocument" - | "InvalidXmlNodeValue" - | "Md5Mismatch" - | "MetadataTooLarge" - | "MissingContentLengthHeader" - | "MissingRequiredQueryParameter" - | "MissingRequiredHeader" - | "MissingRequiredXmlNode" - | "MultipleConditionHeadersNotSupported" - | "OperationTimedOut" - | "OutOfRangeInput" - | "OutOfRangeQueryParameterValue" - | "RequestBodyTooLarge" - | "ResourceTypeMismatch" - | "RequestUrlFailedToParse" - | "ResourceAlreadyExists" - | "ResourceNotFound" - | "ServerBusy" - | "UnsupportedHeader" - | "UnsupportedXmlNode" - | "UnsupportedQueryParameter" - | "UnsupportedHttpVerb" - | "AppendPositionConditionNotMet" - | "BlobAlreadyExists" - | "BlobNotFound" - | "BlobOverwritten" - | "BlobTierInadequateForContentLength" - | "BlockCountExceedsLimit" - | "BlockListTooLong" - | "CannotChangeToLowerTier" - | "CannotVerifyCopySource" - | "ContainerAlreadyExists" - | "ContainerBeingDeleted" - | "ContainerDisabled" - | "ContainerNotFound" - | "ContentLengthLargerThanTierLimit" - | "CopyAcrossAccountsNotSupported" - | "CopyIdMismatch" - | "FeatureVersionMismatch" - | "IncrementalCopyBlobMismatch" - | "IncrementalCopyOfEralierVersionSnapshotNotAllowed" - | "IncrementalCopySourceMustBeSnapshot" - | "InfiniteLeaseDurationRequired" - | "InvalidBlobOrBlock" - | "InvalidBlobTier" - | "InvalidBlobType" - | "InvalidBlockId" - | "InvalidBlockList" - | "InvalidOperation" - | "InvalidPageRange" - | "InvalidSourceBlobType" - | "InvalidSourceBlobUrl" - | "InvalidVersionForPageBlobOperation" - | "LeaseAlreadyPresent" - | "LeaseAlreadyBroken" - | "LeaseIdMismatchWithBlobOperation" - | "LeaseIdMismatchWithContainerOperation" - | "LeaseIdMismatchWithLeaseOperation" - | "LeaseIdMissing" - | "LeaseIsBreakingAndCannotBeAcquired" - | "LeaseIsBreakingAndCannotBeChanged" - | "LeaseIsBrokenAndCannotBeRenewed" - | "LeaseLost" - | "LeaseNotPresentWithBlobOperation" - | "LeaseNotPresentWithContainerOperation" - | "LeaseNotPresentWithLeaseOperation" - | "MaxBlobSizeConditionNotMet" - | "NoPendingCopyOperation" - | "OperationNotAllowedOnIncrementalCopyBlob" - | "PendingCopyOperation" - | "PreviousSnapshotCannotBeNewer" - | "PreviousSnapshotNotFound" - | "PreviousSnapshotOperationNotSupported" - | "SequenceNumberConditionNotMet" - | "SequenceNumberIncrementTooLarge" - | "SnapshotCountExceeded" - | "SnaphotOperationRateExceeded" - | "SnapshotsPresent" - | "SourceConditionNotMet" - | "SystemInUse" - | "TargetConditionNotMet" - | "UnauthorizedBlobOverwrite" - | "BlobBeingRehydrated" - | "BlobArchived" - | "BlobNotArchived"; +export type StorageErrorCode = 'AccountAlreadyExists' | 'AccountBeingCreated' | 'AccountIsDisabled' | 'AuthenticationFailed' | 'AuthorizationFailure' | 'ConditionHeadersNotSupported' | 'ConditionNotMet' | 'EmptyMetadataKey' | 'InsufficientAccountPermissions' | 'InternalError' | 'InvalidAuthenticationInfo' | 'InvalidHeaderValue' | 'InvalidHttpVerb' | 'InvalidInput' | 'InvalidMd5' | 'InvalidMetadata' | 'InvalidQueryParameterValue' | 'InvalidRange' | 'InvalidResourceName' | 'InvalidUri' | 'InvalidXmlDocument' | 'InvalidXmlNodeValue' | 'Md5Mismatch' | 'MetadataTooLarge' | 'MissingContentLengthHeader' | 'MissingRequiredQueryParameter' | 'MissingRequiredHeader' | 'MissingRequiredXmlNode' | 'MultipleConditionHeadersNotSupported' | 'OperationTimedOut' | 'OutOfRangeInput' | 'OutOfRangeQueryParameterValue' | 'RequestBodyTooLarge' | 'ResourceTypeMismatch' | 'RequestUrlFailedToParse' | 'ResourceAlreadyExists' | 'ResourceNotFound' | 'ServerBusy' | 'UnsupportedHeader' | 'UnsupportedXmlNode' | 'UnsupportedQueryParameter' | 'UnsupportedHttpVerb' | 'AppendPositionConditionNotMet' | 'BlobAlreadyExists' | 'BlobNotFound' | 'BlobOverwritten' | 'BlobTierInadequateForContentLength' | 'BlockCountExceedsLimit' | 'BlockListTooLong' | 'CannotChangeToLowerTier' | 'CannotVerifyCopySource' | 'ContainerAlreadyExists' | 'ContainerBeingDeleted' | 'ContainerDisabled' | 'ContainerNotFound' | 'ContentLengthLargerThanTierLimit' | 'CopyAcrossAccountsNotSupported' | 'CopyIdMismatch' | 'FeatureVersionMismatch' | 'IncrementalCopyBlobMismatch' | 'IncrementalCopyOfEralierVersionSnapshotNotAllowed' | 'IncrementalCopySourceMustBeSnapshot' | 'InfiniteLeaseDurationRequired' | 'InvalidBlobOrBlock' | 'InvalidBlobTier' | 'InvalidBlobType' | 'InvalidBlockId' | 'InvalidBlockList' | 'InvalidOperation' | 'InvalidPageRange' | 'InvalidSourceBlobType' | 'InvalidSourceBlobUrl' | 'InvalidVersionForPageBlobOperation' | 'LeaseAlreadyPresent' | 'LeaseAlreadyBroken' | 'LeaseIdMismatchWithBlobOperation' | 'LeaseIdMismatchWithContainerOperation' | 'LeaseIdMismatchWithLeaseOperation' | 'LeaseIdMissing' | 'LeaseIsBreakingAndCannotBeAcquired' | 'LeaseIsBreakingAndCannotBeChanged' | 'LeaseIsBrokenAndCannotBeRenewed' | 'LeaseLost' | 'LeaseNotPresentWithBlobOperation' | 'LeaseNotPresentWithContainerOperation' | 'LeaseNotPresentWithLeaseOperation' | 'MaxBlobSizeConditionNotMet' | 'NoPendingCopyOperation' | 'OperationNotAllowedOnIncrementalCopyBlob' | 'PendingCopyOperation' | 'PreviousSnapshotCannotBeNewer' | 'PreviousSnapshotNotFound' | 'PreviousSnapshotOperationNotSupported' | 'SequenceNumberConditionNotMet' | 'SequenceNumberIncrementTooLarge' | 'SnapshotCountExceeded' | 'SnaphotOperationRateExceeded' | 'SnapshotsPresent' | 'SourceConditionNotMet' | 'SystemInUse' | 'TargetConditionNotMet' | 'UnauthorizedBlobOverwrite' | 'BlobBeingRehydrated' | 'BlobArchived' | 'BlobNotArchived'; /** * Defines values for GeoReplicationStatusType. @@ -4584,7 +5794,15 @@ export type StorageErrorCode = * @readonly * @enum {string} */ -export type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable"; +export type GeoReplicationStatusType = 'live' | 'bootstrap' | 'unavailable'; + +/** + * Defines values for RehydratePriority. + * Possible values include: 'High', 'Standard' + * @readonly + * @enum {string} + */ +export type RehydratePriority = 'High' | 'Standard'; /** * Defines values for BlockListType. @@ -4592,7 +5810,7 @@ export type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable"; * @readonly * @enum {string} */ -export type BlockListType = "committed" | "uncommitted" | "all"; +export type BlockListType = 'committed' | 'uncommitted' | 'all'; /** * Defines values for DeleteSnapshotsOptionType. @@ -4600,7 +5818,15 @@ export type BlockListType = "committed" | "uncommitted" | "all"; * @readonly * @enum {string} */ -export type DeleteSnapshotsOptionType = "include" | "only"; +export type DeleteSnapshotsOptionType = 'include' | 'only'; + +/** + * Defines values for EncryptionAlgorithmType. + * Possible values include: 'AES256' + * @readonly + * @enum {string} + */ +export type EncryptionAlgorithmType = 'AES256'; /** * Defines values for ListBlobsIncludeItem. @@ -4608,12 +5834,7 @@ export type DeleteSnapshotsOptionType = "include" | "only"; * @readonly * @enum {string} */ -export type ListBlobsIncludeItem = - | "copy" - | "deleted" - | "metadata" - | "snapshots" - | "uncommittedblobs"; +export type ListBlobsIncludeItem = 'copy' | 'deleted' | 'metadata' | 'snapshots' | 'uncommittedblobs'; /** * Defines values for ListContainersIncludeType. @@ -4621,7 +5842,15 @@ export type ListBlobsIncludeItem = * @readonly * @enum {string} */ -export type ListContainersIncludeType = "metadata"; +export type ListContainersIncludeType = 'metadata'; + +/** + * Defines values for PathRenameMode. + * Possible values include: 'legacy', 'posix' + * @readonly + * @enum {string} + */ +export type PathRenameMode = 'legacy' | 'posix'; /** * Defines values for SequenceNumberActionType. @@ -4629,7 +5858,7 @@ export type ListContainersIncludeType = "metadata"; * @readonly * @enum {string} */ -export type SequenceNumberActionType = "max" | "update" | "increment"; +export type SequenceNumberActionType = 'max' | 'update' | 'increment'; /** * Defines values for SkuName. @@ -4638,12 +5867,7 @@ export type SequenceNumberActionType = "max" | "update" | "increment"; * @readonly * @enum {string} */ -export type SkuName = - | "Standard_LRS" - | "Standard_GRS" - | "Standard_RAGRS" - | "Standard_ZRS" - | "Premium_LRS"; +export type SkuName = 'Standard_LRS' | 'Standard_GRS' | 'Standard_RAGRS' | 'Standard_ZRS' | 'Premium_LRS'; /** * Defines values for AccountKind. @@ -4651,7 +5875,7 @@ export type SkuName = * @readonly * @enum {string} */ -export type AccountKind = "Storage" | "BlobStorage" | "StorageV2"; +export type AccountKind = 'Storage' | 'BlobStorage' | 'StorageV2'; /** * Defines values for SyncCopyStatusType. @@ -4659,7 +5883,7 @@ export type AccountKind = "Storage" | "BlobStorage" | "StorageV2"; * @readonly * @enum {string} */ -export type SyncCopyStatusType = "success"; +export type SyncCopyStatusType = 'success'; /** * Contains response data for the setProperties operation. @@ -4669,22 +5893,21 @@ export type ServiceSetPropertiesResponse = ServiceSetPropertiesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ServiceSetPropertiesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ServiceSetPropertiesHeaders; + }; }; /** * Contains response data for the getProperties operation. */ -export type ServiceGetPropertiesResponse = StorageServiceProperties & - ServiceGetPropertiesHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ServiceGetPropertiesResponse = StorageServiceProperties & ServiceGetPropertiesHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -4700,17 +5923,16 @@ export type ServiceGetPropertiesResponse = StorageServiceProperties & */ parsedBody: StorageServiceProperties; }; - }; +}; /** * Contains response data for the getStatistics operation. */ -export type ServiceGetStatisticsResponse = StorageServiceStats & - ServiceGetStatisticsHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ServiceGetStatisticsResponse = StorageServiceStats & ServiceGetStatisticsHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -4726,17 +5948,16 @@ export type ServiceGetStatisticsResponse = StorageServiceStats & */ parsedBody: StorageServiceStats; }; - }; +}; /** * Contains response data for the listContainersSegment operation. */ -export type ServiceListContainersSegmentResponse = ListContainersSegmentResponse & - ServiceListContainersSegmentHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ServiceListContainersSegmentResponse = ListContainersSegmentResponse & ServiceListContainersSegmentHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -4752,17 +5973,16 @@ export type ServiceListContainersSegmentResponse = ListContainersSegmentResponse */ parsedBody: ListContainersSegmentResponse; }; - }; +}; /** * Contains response data for the getUserDelegationKey operation. */ -export type ServiceGetUserDelegationKeyResponse = UserDelegationKey & - ServiceGetUserDelegationKeyHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ServiceGetUserDelegationKeyResponse = UserDelegationKey & ServiceGetUserDelegationKeyHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -4778,7 +5998,7 @@ export type ServiceGetUserDelegationKeyResponse = UserDelegationKey & */ parsedBody: UserDelegationKey; }; - }; +}; /** * Contains response data for the getAccountInfo operation. @@ -4788,11 +6008,42 @@ export type ServiceGetAccountInfoResponse = ServiceGetAccountInfoHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ServiceGetAccountInfoHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ServiceGetAccountInfoHeaders; + }; +}; + +/** + * Contains response data for the submitBatch operation. + */ +export type ServiceSubmitBatchResponse = ServiceSubmitBatchHeaders & { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ServiceSubmitBatchHeaders; + }; }; /** @@ -4803,11 +6054,11 @@ export type ContainerCreateResponse = ContainerCreateHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerCreateHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerCreateHeaders; + }; }; /** @@ -4818,11 +6069,11 @@ export type ContainerGetPropertiesResponse = ContainerGetPropertiesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerGetPropertiesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerGetPropertiesHeaders; + }; }; /** @@ -4833,11 +6084,11 @@ export type ContainerDeleteResponse = ContainerDeleteHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerDeleteHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerDeleteHeaders; + }; }; /** @@ -4848,22 +6099,21 @@ export type ContainerSetMetadataResponse = ContainerSetMetadataHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerSetMetadataHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerSetMetadataHeaders; + }; }; /** * Contains response data for the getAccessPolicy operation. */ -export type ContainerGetAccessPolicyResponse = SignedIdentifier[] & - ContainerGetAccessPolicyHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ContainerGetAccessPolicyResponse = Array & ContainerGetAccessPolicyHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -4879,7 +6129,7 @@ export type ContainerGetAccessPolicyResponse = SignedIdentifier[] & */ parsedBody: SignedIdentifier[]; }; - }; +}; /** * Contains response data for the setAccessPolicy operation. @@ -4889,11 +6139,11 @@ export type ContainerSetAccessPolicyResponse = ContainerSetAccessPolicyHeaders & * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerSetAccessPolicyHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerSetAccessPolicyHeaders; + }; }; /** @@ -4904,11 +6154,11 @@ export type ContainerAcquireLeaseResponse = ContainerAcquireLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerAcquireLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerAcquireLeaseHeaders; + }; }; /** @@ -4919,11 +6169,11 @@ export type ContainerReleaseLeaseResponse = ContainerReleaseLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerReleaseLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerReleaseLeaseHeaders; + }; }; /** @@ -4934,11 +6184,11 @@ export type ContainerRenewLeaseResponse = ContainerRenewLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerRenewLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerRenewLeaseHeaders; + }; }; /** @@ -4949,11 +6199,11 @@ export type ContainerBreakLeaseResponse = ContainerBreakLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerBreakLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerBreakLeaseHeaders; + }; }; /** @@ -4964,22 +6214,21 @@ export type ContainerChangeLeaseResponse = ContainerChangeLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerChangeLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerChangeLeaseHeaders; + }; }; /** * Contains response data for the listBlobFlatSegment operation. */ -export type ContainerListBlobFlatSegmentResponse = ListBlobsFlatSegmentResponse & - ContainerListBlobFlatSegmentHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ContainerListBlobFlatSegmentResponse = ListBlobsFlatSegmentResponse & ContainerListBlobFlatSegmentHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -4995,17 +6244,16 @@ export type ContainerListBlobFlatSegmentResponse = ListBlobsFlatSegmentResponse */ parsedBody: ListBlobsFlatSegmentResponse; }; - }; +}; /** * Contains response data for the listBlobHierarchySegment operation. */ -export type ContainerListBlobHierarchySegmentResponse = ListBlobsHierarchySegmentResponse & - ContainerListBlobHierarchySegmentHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ContainerListBlobHierarchySegmentResponse = ListBlobsHierarchySegmentResponse & ContainerListBlobHierarchySegmentHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -5021,7 +6269,7 @@ export type ContainerListBlobHierarchySegmentResponse = ListBlobsHierarchySegmen */ parsedBody: ListBlobsHierarchySegmentResponse; }; - }; +}; /** * Contains response data for the getAccountInfo operation. @@ -5031,11 +6279,86 @@ export type ContainerGetAccountInfoResponse = ContainerGetAccountInfoHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerGetAccountInfoHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerGetAccountInfoHeaders; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type DirectoryCreateResponse = DirectoryCreateHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryCreateHeaders; + }; +}; + +/** + * Contains response data for the rename operation. + */ +export type DirectoryRenameResponse = DirectoryRenameHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryRenameHeaders; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type DirectoryDeleteResponse = DirectoryDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryDeleteHeaders; + }; +}; + +/** + * Contains response data for the setAccessControl operation. + */ +export type DirectorySetAccessControlResponse = DirectorySetAccessControlHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectorySetAccessControlHeaders; + }; +}; + +/** + * Contains response data for the getAccessControl operation. + */ +export type DirectoryGetAccessControlResponse = DirectoryGetAccessControlHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryGetAccessControlHeaders; + }; }; /** @@ -5062,11 +6385,11 @@ export type BlobDownloadResponse = BlobDownloadHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobDownloadHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobDownloadHeaders; + }; }; /** @@ -5077,11 +6400,11 @@ export type BlobGetPropertiesResponse = BlobGetPropertiesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobGetPropertiesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobGetPropertiesHeaders; + }; }; /** @@ -5092,11 +6415,56 @@ export type BlobDeleteResponse = BlobDeleteHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobDeleteHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobDeleteHeaders; + }; +}; + +/** + * Contains response data for the setAccessControl operation. + */ +export type BlobSetAccessControlResponse = BlobSetAccessControlHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobSetAccessControlHeaders; + }; +}; + +/** + * Contains response data for the getAccessControl operation. + */ +export type BlobGetAccessControlResponse = BlobGetAccessControlHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobGetAccessControlHeaders; + }; +}; + +/** + * Contains response data for the rename operation. + */ +export type BlobRenameResponse = BlobRenameHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobRenameHeaders; + }; }; /** @@ -5107,11 +6475,11 @@ export type BlobUndeleteResponse = BlobUndeleteHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobUndeleteHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobUndeleteHeaders; + }; }; /** @@ -5122,11 +6490,11 @@ export type BlobSetHTTPHeadersResponse = BlobSetHTTPHeadersHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobSetHTTPHeadersHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobSetHTTPHeadersHeaders; + }; }; /** @@ -5137,11 +6505,11 @@ export type BlobSetMetadataResponse = BlobSetMetadataHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobSetMetadataHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobSetMetadataHeaders; + }; }; /** @@ -5152,11 +6520,11 @@ export type BlobAcquireLeaseResponse = BlobAcquireLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobAcquireLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobAcquireLeaseHeaders; + }; }; /** @@ -5167,11 +6535,11 @@ export type BlobReleaseLeaseResponse = BlobReleaseLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobReleaseLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobReleaseLeaseHeaders; + }; }; /** @@ -5182,11 +6550,11 @@ export type BlobRenewLeaseResponse = BlobRenewLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobRenewLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobRenewLeaseHeaders; + }; }; /** @@ -5197,11 +6565,11 @@ export type BlobChangeLeaseResponse = BlobChangeLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobChangeLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobChangeLeaseHeaders; + }; }; /** @@ -5212,11 +6580,11 @@ export type BlobBreakLeaseResponse = BlobBreakLeaseHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobBreakLeaseHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobBreakLeaseHeaders; + }; }; /** @@ -5227,11 +6595,11 @@ export type BlobCreateSnapshotResponse = BlobCreateSnapshotHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobCreateSnapshotHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobCreateSnapshotHeaders; + }; }; /** @@ -5242,11 +6610,11 @@ export type BlobStartCopyFromURLResponse = BlobStartCopyFromURLHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobStartCopyFromURLHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobStartCopyFromURLHeaders; + }; }; /** @@ -5257,11 +6625,11 @@ export type BlobCopyFromURLResponse = BlobCopyFromURLHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobCopyFromURLHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobCopyFromURLHeaders; + }; }; /** @@ -5272,11 +6640,11 @@ export type BlobAbortCopyFromURLResponse = BlobAbortCopyFromURLHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobAbortCopyFromURLHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobAbortCopyFromURLHeaders; + }; }; /** @@ -5287,11 +6655,11 @@ export type BlobSetTierResponse = BlobSetTierHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobSetTierHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobSetTierHeaders; + }; }; /** @@ -5302,11 +6670,11 @@ export type BlobGetAccountInfoResponse = BlobGetAccountInfoHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlobGetAccountInfoHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlobGetAccountInfoHeaders; + }; }; /** @@ -5317,11 +6685,11 @@ export type PageBlobCreateResponse = PageBlobCreateHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PageBlobCreateHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PageBlobCreateHeaders; + }; }; /** @@ -5332,11 +6700,11 @@ export type PageBlobUploadPagesResponse = PageBlobUploadPagesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PageBlobUploadPagesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PageBlobUploadPagesHeaders; + }; }; /** @@ -5347,11 +6715,11 @@ export type PageBlobClearPagesResponse = PageBlobClearPagesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PageBlobClearPagesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PageBlobClearPagesHeaders; + }; }; /** @@ -5362,22 +6730,21 @@ export type PageBlobUploadPagesFromURLResponse = PageBlobUploadPagesFromURLHeade * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PageBlobUploadPagesFromURLHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PageBlobUploadPagesFromURLHeaders; + }; }; /** * Contains response data for the getPageRanges operation. */ -export type PageBlobGetPageRangesResponse = PageList & - PageBlobGetPageRangesHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type PageBlobGetPageRangesResponse = PageList & PageBlobGetPageRangesHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -5393,17 +6760,16 @@ export type PageBlobGetPageRangesResponse = PageList & */ parsedBody: PageList; }; - }; +}; /** * Contains response data for the getPageRangesDiff operation. */ -export type PageBlobGetPageRangesDiffResponse = PageList & - PageBlobGetPageRangesDiffHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type PageBlobGetPageRangesDiffResponse = PageList & PageBlobGetPageRangesDiffHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -5419,7 +6785,7 @@ export type PageBlobGetPageRangesDiffResponse = PageList & */ parsedBody: PageList; }; - }; +}; /** * Contains response data for the resize operation. @@ -5429,11 +6795,11 @@ export type PageBlobResizeResponse = PageBlobResizeHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PageBlobResizeHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PageBlobResizeHeaders; + }; }; /** @@ -5444,11 +6810,11 @@ export type PageBlobUpdateSequenceNumberResponse = PageBlobUpdateSequenceNumberH * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PageBlobUpdateSequenceNumberHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PageBlobUpdateSequenceNumberHeaders; + }; }; /** @@ -5459,11 +6825,11 @@ export type PageBlobCopyIncrementalResponse = PageBlobCopyIncrementalHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PageBlobCopyIncrementalHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PageBlobCopyIncrementalHeaders; + }; }; /** @@ -5474,11 +6840,11 @@ export type AppendBlobCreateResponse = AppendBlobCreateHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: AppendBlobCreateHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AppendBlobCreateHeaders; + }; }; /** @@ -5489,11 +6855,11 @@ export type AppendBlobAppendBlockResponse = AppendBlobAppendBlockHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: AppendBlobAppendBlockHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AppendBlobAppendBlockHeaders; + }; }; /** @@ -5504,11 +6870,11 @@ export type AppendBlobAppendBlockFromUrlResponse = AppendBlobAppendBlockFromUrlH * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: AppendBlobAppendBlockFromUrlHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AppendBlobAppendBlockFromUrlHeaders; + }; }; /** @@ -5519,11 +6885,11 @@ export type BlockBlobUploadResponse = BlockBlobUploadHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlockBlobUploadHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlockBlobUploadHeaders; + }; }; /** @@ -5534,11 +6900,11 @@ export type BlockBlobStageBlockResponse = BlockBlobStageBlockHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlockBlobStageBlockHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlockBlobStageBlockHeaders; + }; }; /** @@ -5549,11 +6915,11 @@ export type BlockBlobStageBlockFromURLResponse = BlockBlobStageBlockFromURLHeade * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlockBlobStageBlockFromURLHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlockBlobStageBlockFromURLHeaders; + }; }; /** @@ -5564,22 +6930,21 @@ export type BlockBlobCommitBlockListResponse = BlockBlobCommitBlockListHeaders & * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BlockBlobCommitBlockListHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BlockBlobCommitBlockListHeaders; + }; }; /** * Contains response data for the getBlockList operation. */ -export type BlockBlobGetBlockListResponse = BlockList & - BlockBlobGetBlockListHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type BlockBlobGetBlockListResponse = BlockList & BlockBlobGetBlockListHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -5595,4 +6960,4 @@ export type BlockBlobGetBlockListResponse = BlockList & */ parsedBody: BlockList; }; - }; +}; diff --git a/sdk/storage/storage-blob/src/generated/src/models/mappers.ts b/sdk/storage/storage-blob/src/generated/src/models/mappers.ts index 214b27110128..22fe32b673f5 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/mappers.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/mappers.ts @@ -8,6 +8,7 @@ import * as coreHttp from "@azure/core-http"; + export const KeyInfo: coreHttp.CompositeMapper = { serializedName: "KeyInfo", type: { @@ -105,6 +106,23 @@ export const StorageError: coreHttp.CompositeMapper = { type: { name: "Composite", className: "StorageError", + modelProperties: { + message: { + xmlName: "Message", + serializedName: "Message", + type: { + name: "String" + } + } + } + } +}; + +export const DataLakeStorageErrorError: coreHttp.CompositeMapper = { + serializedName: "DataLakeStorageError_error", + type: { + name: "Composite", + className: "DataLakeStorageErrorError", modelProperties: { code: { xmlName: "Code", @@ -124,6 +142,24 @@ export const StorageError: coreHttp.CompositeMapper = { } }; +export const DataLakeStorageError: coreHttp.CompositeMapper = { + serializedName: "DataLakeStorageError", + type: { + name: "Composite", + className: "DataLakeStorageError", + modelProperties: { + error: { + xmlName: "error", + serializedName: "error", + type: { + name: "Composite", + className: "DataLakeStorageErrorError" + } + } + } + } +}; + export const AccessPolicy: coreHttp.CompositeMapper = { serializedName: "AccessPolicy", type: { @@ -249,7 +285,11 @@ export const BlobProperties: coreHttp.CompositeMapper = { serializedName: "BlobType", type: { name: "Enum", - allowedValues: ["BlockBlob", "PageBlob", "AppendBlob"] + allowedValues: [ + "BlockBlob", + "PageBlob", + "AppendBlob" + ] } }, leaseStatus: { @@ -257,7 +297,10 @@ export const BlobProperties: coreHttp.CompositeMapper = { serializedName: "LeaseStatus", type: { name: "Enum", - allowedValues: ["locked", "unlocked"] + allowedValues: [ + "locked", + "unlocked" + ] } }, leaseState: { @@ -265,7 +308,13 @@ export const BlobProperties: coreHttp.CompositeMapper = { serializedName: "LeaseState", type: { name: "Enum", - allowedValues: ["available", "leased", "expired", "breaking", "broken"] + allowedValues: [ + "available", + "leased", + "expired", + "breaking", + "broken" + ] } }, leaseDuration: { @@ -273,7 +322,10 @@ export const BlobProperties: coreHttp.CompositeMapper = { serializedName: "LeaseDuration", type: { name: "Enum", - allowedValues: ["infinite", "fixed"] + allowedValues: [ + "infinite", + "fixed" + ] } }, copyId: { @@ -288,7 +340,12 @@ export const BlobProperties: coreHttp.CompositeMapper = { serializedName: "CopyStatus", type: { name: "Enum", - allowedValues: ["pending", "success", "aborted", "failed"] + allowedValues: [ + "pending", + "success", + "aborted", + "failed" + ] } }, copySource: { @@ -375,6 +432,13 @@ export const BlobProperties: coreHttp.CompositeMapper = { name: "String" } }, + customerProvidedKeySha256: { + xmlName: "CustomerProvidedKeySha256", + serializedName: "CustomerProvidedKeySha256", + type: { + name: "String" + } + }, accessTierChangeTime: { xmlName: "AccessTierChangeTime", serializedName: "AccessTierChangeTime", @@ -386,6 +450,30 @@ export const BlobProperties: coreHttp.CompositeMapper = { } }; +export const BlobMetadata: coreHttp.CompositeMapper = { + xmlName: "Metadata", + serializedName: "BlobMetadata", + type: { + name: "Composite", + className: "BlobMetadata", + modelProperties: { + encrypted: { + xmlIsAttribute: true, + xmlName: "Encrypted", + serializedName: "Encrypted", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "String" + } + } + } +}; + export const BlobItem: coreHttp.CompositeMapper = { xmlName: "Blob", serializedName: "BlobItem", @@ -430,8 +518,9 @@ export const BlobItem: coreHttp.CompositeMapper = { xmlName: "Metadata", serializedName: "Metadata", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "BlobMetadata", + additionalProperties: { type: { name: "String" } @@ -815,7 +904,10 @@ export const ContainerProperties: coreHttp.CompositeMapper = { serializedName: "LeaseStatus", type: { name: "Enum", - allowedValues: ["locked", "unlocked"] + allowedValues: [ + "locked", + "unlocked" + ] } }, leaseState: { @@ -823,7 +915,13 @@ export const ContainerProperties: coreHttp.CompositeMapper = { serializedName: "LeaseState", type: { name: "Enum", - allowedValues: ["available", "leased", "expired", "breaking", "broken"] + allowedValues: [ + "available", + "leased", + "expired", + "breaking", + "broken" + ] } }, leaseDuration: { @@ -831,7 +929,10 @@ export const ContainerProperties: coreHttp.CompositeMapper = { serializedName: "LeaseDuration", type: { name: "Enum", - allowedValues: ["infinite", "fixed"] + allowedValues: [ + "infinite", + "fixed" + ] } }, publicAccess: { @@ -1450,44 +1551,38 @@ export const ModifiedAccessConditions: coreHttp.CompositeMapper = { } }; -export const BlobHTTPHeaders: coreHttp.CompositeMapper = { - xmlName: "blob-HTTP-headers", +export const DirectoryHttpHeaders: coreHttp.CompositeMapper = { + xmlName: "directory-http-headers", type: { name: "Composite", - className: "BlobHTTPHeaders", + className: "DirectoryHttpHeaders", modelProperties: { - blobCacheControl: { - xmlName: "blobCacheControl", + cacheControl: { + xmlName: "cacheControl", type: { name: "String" } }, - blobContentType: { - xmlName: "blobContentType", + contentType: { + xmlName: "contentType", type: { name: "String" } }, - blobContentMD5: { - xmlName: "blobContentMD5", - type: { - name: "ByteArray" - } - }, - blobContentEncoding: { - xmlName: "blobContentEncoding", + contentEncoding: { + xmlName: "contentEncoding", type: { name: "String" } }, - blobContentLanguage: { - xmlName: "blobContentLanguage", + contentLanguage: { + xmlName: "contentLanguage", type: { name: "String" } }, - blobContentDisposition: { - xmlName: "blobContentDisposition", + contentDisposition: { + xmlName: "contentDisposition", type: { name: "String" } @@ -1530,6 +1625,83 @@ export const SourceModifiedAccessConditions: coreHttp.CompositeMapper = { } }; +export const CpkInfo: coreHttp.CompositeMapper = { + xmlName: "cpk-info", + type: { + name: "Composite", + className: "CpkInfo", + modelProperties: { + encryptionKey: { + xmlName: "encryptionKey", + type: { + name: "String" + } + }, + encryptionKeySha256: { + xmlName: "encryptionKeySha256", + type: { + name: "String" + } + }, + encryptionAlgorithm: { + xmlName: "encryptionAlgorithm", + type: { + name: "Enum", + allowedValues: [ + "AES256" + ] + } + } + } + } +}; + +export const BlobHTTPHeaders: coreHttp.CompositeMapper = { + xmlName: "blob-HTTP-headers", + type: { + name: "Composite", + className: "BlobHTTPHeaders", + modelProperties: { + blobCacheControl: { + xmlName: "blobCacheControl", + type: { + name: "String" + } + }, + blobContentType: { + xmlName: "blobContentType", + type: { + name: "String" + } + }, + blobContentMD5: { + xmlName: "blobContentMD5", + type: { + name: "ByteArray" + } + }, + blobContentEncoding: { + xmlName: "blobContentEncoding", + type: { + name: "String" + } + }, + blobContentLanguage: { + xmlName: "blobContentLanguage", + type: { + name: "String" + } + }, + blobContentDisposition: { + xmlName: "blobContentDisposition", + type: { + name: "String" + } + } + } + } +}; + export const SequenceNumberAccessConditions: coreHttp.CompositeMapper = { xmlName: "sequence-number-access-conditions", type: { @@ -1586,6 +1758,12 @@ export const ServiceSetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceSetPropertiesHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1614,6 +1792,12 @@ export const ServiceGetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceGetPropertiesHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1642,6 +1826,12 @@ export const ServiceGetStatisticsHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceGetStatisticsHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1676,6 +1866,12 @@ export const ServiceListContainersSegmentHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceListContainersSegmentHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1704,6 +1900,12 @@ export const ServiceGetUserDelegationKeyHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceGetUserDelegationKeyHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1738,6 +1940,12 @@ export const ServiceGetAccountInfoHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceGetAccountInfoHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1773,7 +1981,51 @@ export const ServiceGetAccountInfoHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-account-kind", type: { name: "Enum", - allowedValues: ["Storage", "BlobStorage", "StorageV2"] + allowedValues: [ + "Storage", + "BlobStorage", + "StorageV2" + ] + } + }, + errorCode: { + serializedName: "x-ms-error-code", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceSubmitBatchHeaders: coreHttp.CompositeMapper = { + serializedName: "service-submitbatch-headers", + type: { + name: "Composite", + className: "ServiceSubmitBatchHeaders", + modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, + contentType: { + serializedName: "content-type", + type: { + name: "String" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" } }, errorCode: { @@ -1804,6 +2056,12 @@ export const ContainerCreateHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1866,21 +2124,39 @@ export const ContainerGetPropertiesHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-lease-duration", type: { name: "Enum", - allowedValues: ["infinite", "fixed"] + allowedValues: [ + "infinite", + "fixed" + ] } }, leaseState: { serializedName: "x-ms-lease-state", type: { name: "Enum", - allowedValues: ["available", "leased", "expired", "breaking", "broken"] + allowedValues: [ + "available", + "leased", + "expired", + "breaking", + "broken" + ] } }, leaseStatus: { serializedName: "x-ms-lease-status", type: { name: "Enum", - allowedValues: ["locked", "unlocked"] + allowedValues: [ + "locked", + "unlocked" + ] + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" } }, requestId: { @@ -1935,6 +2211,12 @@ export const ContainerDeleteHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ContainerDeleteHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1981,6 +2263,12 @@ export const ContainerSetMetadataHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2033,6 +2321,12 @@ export const ContainerGetAccessPolicyHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2079,6 +2373,12 @@ export const ContainerSetAccessPolicyHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2131,6 +2431,12 @@ export const ContainerAcquireLeaseHeaders: coreHttp.CompositeMapper = { name: "String" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2177,6 +2483,12 @@ export const ContainerReleaseLeaseHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2229,6 +2541,12 @@ export const ContainerRenewLeaseHeaders: coreHttp.CompositeMapper = { name: "String" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2281,6 +2599,12 @@ export const ContainerBreakLeaseHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2333,6 +2657,12 @@ export const ContainerChangeLeaseHeaders: coreHttp.CompositeMapper = { name: "String" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2373,6 +2703,12 @@ export const ContainerListBlobFlatSegmentHeaders: coreHttp.CompositeMapper = { name: "String" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2413,6 +2749,12 @@ export const ContainerListBlobHierarchySegmentHeaders: coreHttp.CompositeMapper name: "String" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2447,6 +2789,12 @@ export const ContainerGetAccountInfoHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ContainerGetAccountInfoHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2482,7 +2830,11 @@ export const ContainerGetAccountInfoHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-account-kind", type: { name: "Enum", - allowedValues: ["Storage", "BlobStorage", "StorageV2"] + allowedValues: [ + "Storage", + "BlobStorage", + "StorageV2" + ] } }, errorCode: { @@ -2495,6 +2847,272 @@ export const ContainerGetAccountInfoHeaders: coreHttp.CompositeMapper = { } }; +export const DirectoryCreateHeaders: coreHttp.CompositeMapper = { + serializedName: "directory-create-headers", + type: { + name: "Composite", + className: "DirectoryCreateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + contentLength: { + serializedName: "content-length", + type: { + name: "Number" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const DirectoryRenameHeaders: coreHttp.CompositeMapper = { + serializedName: "directory-rename-headers", + type: { + name: "Composite", + className: "DirectoryRenameHeaders", + modelProperties: { + marker: { + serializedName: "x-ms-continuation", + type: { + name: "String" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + contentLength: { + serializedName: "content-length", + type: { + name: "Number" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const DirectoryDeleteHeaders: coreHttp.CompositeMapper = { + serializedName: "directory-delete-headers", + type: { + name: "Composite", + className: "DirectoryDeleteHeaders", + modelProperties: { + marker: { + serializedName: "x-ms-continuation", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + } + } + } +}; + +export const DirectorySetAccessControlHeaders: coreHttp.CompositeMapper = { + serializedName: "directory-setaccesscontrol-headers", + type: { + name: "Composite", + className: "DirectorySetAccessControlHeaders", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const DirectoryGetAccessControlHeaders: coreHttp.CompositeMapper = { + serializedName: "directory-getaccesscontrol-headers", + type: { + name: "Composite", + className: "DirectoryGetAccessControlHeaders", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + xMsOwner: { + serializedName: "x-ms-owner", + type: { + name: "String" + } + }, + xMsGroup: { + serializedName: "x-ms-group", + type: { + name: "String" + } + }, + xMsPermissions: { + serializedName: "x-ms-permissions", + type: { + name: "String" + } + }, + xMsAcl: { + serializedName: "x-ms-acl", + type: { + name: "String" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + } + } + } +}; + export const BlobDownloadHeaders: coreHttp.CompositeMapper = { serializedName: "blob-download-headers", type: { @@ -2583,7 +3201,11 @@ export const BlobDownloadHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-blob-type", type: { name: "Enum", - allowedValues: ["BlockBlob", "PageBlob", "AppendBlob"] + allowedValues: [ + "BlockBlob", + "PageBlob", + "AppendBlob" + ] } }, copyCompletionTime: { @@ -2620,28 +3242,51 @@ export const BlobDownloadHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-copy-status", type: { name: "Enum", - allowedValues: ["pending", "success", "aborted", "failed"] + allowedValues: [ + "pending", + "success", + "aborted", + "failed" + ] } }, leaseDuration: { serializedName: "x-ms-lease-duration", type: { name: "Enum", - allowedValues: ["infinite", "fixed"] + allowedValues: [ + "infinite", + "fixed" + ] } }, leaseState: { serializedName: "x-ms-lease-state", type: { name: "Enum", - allowedValues: ["available", "leased", "expired", "breaking", "broken"] + allowedValues: [ + "available", + "leased", + "expired", + "breaking", + "broken" + ] } }, leaseStatus: { serializedName: "x-ms-lease-status", type: { name: "Enum", - allowedValues: ["locked", "unlocked"] + allowedValues: [ + "locked", + "unlocked" + ] + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" } }, requestId: { @@ -2680,12 +3325,24 @@ export const BlobDownloadHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, blobContentMD5: { serializedName: "x-ms-blob-content-md5", type: { name: "ByteArray" } }, + contentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -2730,7 +3387,11 @@ export const BlobGetPropertiesHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-blob-type", type: { name: "Enum", - allowedValues: ["BlockBlob", "PageBlob", "AppendBlob"] + allowedValues: [ + "BlockBlob", + "PageBlob", + "AppendBlob" + ] } }, copyCompletionTime: { @@ -2767,7 +3428,12 @@ export const BlobGetPropertiesHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-copy-status", type: { name: "Enum", - allowedValues: ["pending", "success", "aborted", "failed"] + allowedValues: [ + "pending", + "success", + "aborted", + "failed" + ] } }, isIncrementalCopy: { @@ -2786,21 +3452,33 @@ export const BlobGetPropertiesHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-lease-duration", type: { name: "Enum", - allowedValues: ["infinite", "fixed"] + allowedValues: [ + "infinite", + "fixed" + ] } }, leaseState: { serializedName: "x-ms-lease-state", type: { name: "Enum", - allowedValues: ["available", "leased", "expired", "breaking", "broken"] + allowedValues: [ + "available", + "leased", + "expired", + "breaking", + "broken" + ] } }, leaseStatus: { serializedName: "x-ms-lease-status", type: { name: "Enum", - allowedValues: ["locked", "unlocked"] + allowedValues: [ + "locked", + "unlocked" + ] } }, contentLength: { @@ -2857,6 +3535,12 @@ export const BlobGetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2893,32 +3577,194 @@ export const BlobGetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, - accessTier: { - serializedName: "x-ms-access-tier", + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, + accessTier: { + serializedName: "x-ms-access-tier", + type: { + name: "String" + } + }, + accessTierInferred: { + serializedName: "x-ms-access-tier-inferred", + type: { + name: "Boolean" + } + }, + archiveStatus: { + serializedName: "x-ms-archive-status", + type: { + name: "String" + } + }, + accessTierChangeTime: { + serializedName: "x-ms-access-tier-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + errorCode: { + serializedName: "x-ms-error-code", + type: { + name: "String" + } + } + } + } +}; + +export const BlobDeleteHeaders: coreHttp.CompositeMapper = { + serializedName: "blob-delete-headers", + type: { + name: "Composite", + className: "BlobDeleteHeaders", + modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + errorCode: { + serializedName: "x-ms-error-code", + type: { + name: "String" + } + } + } + } +}; + +export const BlobSetAccessControlHeaders: coreHttp.CompositeMapper = { + serializedName: "blob-setaccesscontrol-headers", + type: { + name: "Composite", + className: "BlobSetAccessControlHeaders", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + } + } + } +}; + +export const BlobGetAccessControlHeaders: coreHttp.CompositeMapper = { + serializedName: "blob-getaccesscontrol-headers", + type: { + name: "Composite", + className: "BlobGetAccessControlHeaders", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + xMsOwner: { + serializedName: "x-ms-owner", + type: { + name: "String" + } + }, + xMsGroup: { + serializedName: "x-ms-group", + type: { + name: "String" + } + }, + xMsPermissions: { + serializedName: "x-ms-permissions", type: { name: "String" } }, - accessTierInferred: { - serializedName: "x-ms-access-tier-inferred", + xMsAcl: { + serializedName: "x-ms-acl", type: { - name: "Boolean" + name: "String" } }, - archiveStatus: { - serializedName: "x-ms-archive-status", + requestId: { + serializedName: "x-ms-request-id", type: { name: "String" } }, - accessTierChangeTime: { - serializedName: "x-ms-access-tier-change-time", + version: { + serializedName: "x-ms-version", type: { - name: "DateTimeRfc1123" + name: "String" } }, - errorCode: { - serializedName: "x-ms-error-code", + clientRequestId: { + serializedName: "x-ms-client-request-id", type: { name: "String" } @@ -2927,12 +3773,30 @@ export const BlobGetPropertiesHeaders: coreHttp.CompositeMapper = { } }; -export const BlobDeleteHeaders: coreHttp.CompositeMapper = { - serializedName: "blob-delete-headers", +export const BlobRenameHeaders: coreHttp.CompositeMapper = { + serializedName: "blob-rename-headers", type: { name: "Composite", - className: "BlobDeleteHeaders", + className: "BlobRenameHeaders", modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -2945,16 +3809,16 @@ export const BlobDeleteHeaders: coreHttp.CompositeMapper = { name: "String" } }, - date: { - serializedName: "date", + contentLength: { + serializedName: "content-length", type: { - name: "DateTimeRfc1123" + name: "Number" } }, - errorCode: { - serializedName: "x-ms-error-code", + date: { + serializedName: "date", type: { - name: "String" + name: "DateTimeRfc1123" } } } @@ -2985,6 +3849,12 @@ export const PageBlobCreateHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3009,6 +3879,12 @@ export const PageBlobCreateHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3043,6 +3919,12 @@ export const AppendBlobCreateHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3067,6 +3949,12 @@ export const AppendBlobCreateHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3101,6 +3989,12 @@ export const BlockBlobUploadHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3125,6 +4019,12 @@ export const BlockBlobUploadHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3141,6 +4041,12 @@ export const BlobUndeleteHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "BlobUndeleteHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3193,6 +4099,12 @@ export const BlobSetHTTPHeadersHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3239,6 +4151,12 @@ export const BlobSetMetadataHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3263,6 +4181,12 @@ export const BlobSetMetadataHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3297,6 +4221,12 @@ export const BlobAcquireLeaseHeaders: coreHttp.CompositeMapper = { name: "String" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3343,6 +4273,12 @@ export const BlobReleaseLeaseHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3395,6 +4331,12 @@ export const BlobRenewLeaseHeaders: coreHttp.CompositeMapper = { name: "String" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3441,6 +4383,12 @@ export const BlobChangeLeaseHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3499,6 +4447,12 @@ export const BlobBreakLeaseHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3551,6 +4505,12 @@ export const BlobCreateSnapshotHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3569,6 +4529,12 @@ export const BlobCreateSnapshotHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + isServerEncrypted: { + serializedName: "x-ms-request-server-encrypted", + type: { + name: "Boolean" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3597,6 +4563,12 @@ export const BlobStartCopyFromURLHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3625,7 +4597,12 @@ export const BlobStartCopyFromURLHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-copy-status", type: { name: "Enum", - allowedValues: ["pending", "success", "aborted", "failed"] + allowedValues: [ + "pending", + "success", + "aborted", + "failed" + ] } }, errorCode: { @@ -3656,6 +4633,12 @@ export const BlobCopyFromURLHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3684,7 +4667,9 @@ export const BlobCopyFromURLHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-copy-status", type: { name: "Enum", - allowedValues: ["success"] + allowedValues: [ + "success" + ] } }, errorCode: { @@ -3703,6 +4688,12 @@ export const BlobAbortCopyFromURLHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "BlobAbortCopyFromURLHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3737,6 +4728,12 @@ export const BlobSetTierHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "BlobSetTierHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3765,6 +4762,12 @@ export const BlobGetAccountInfoHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "BlobGetAccountInfoHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3800,7 +4803,11 @@ export const BlobGetAccountInfoHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-account-kind", type: { name: "Enum", - allowedValues: ["Storage", "BlobStorage", "StorageV2"] + allowedValues: [ + "Storage", + "BlobStorage", + "StorageV2" + ] } }, errorCode: { @@ -3825,6 +4832,12 @@ export const BlockBlobStageBlockHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3843,12 +4856,24 @@ export const BlockBlobStageBlockHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, isServerEncrypted: { serializedName: "x-ms-request-server-encrypted", type: { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3871,6 +4896,18 @@ export const BlockBlobStageBlockFromURLHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3895,6 +4932,12 @@ export const BlockBlobStageBlockFromURLHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3929,6 +4972,18 @@ export const BlockBlobCommitBlockListHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -3953,6 +5008,12 @@ export const BlockBlobCommitBlockListHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -3993,6 +5054,12 @@ export const BlockBlobGetBlockListHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4045,12 +5112,24 @@ export const PageBlobUploadPagesHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, blobSequenceNumber: { serializedName: "x-ms-blob-sequence-number", type: { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4075,6 +5154,12 @@ export const PageBlobUploadPagesHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -4109,12 +5194,24 @@ export const PageBlobClearPagesHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, blobSequenceNumber: { serializedName: "x-ms-blob-sequence-number", type: { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4167,6 +5264,12 @@ export const PageBlobUploadPagesFromURLHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, blobSequenceNumber: { serializedName: "x-ms-blob-sequence-number", type: { @@ -4197,6 +5300,12 @@ export const PageBlobUploadPagesFromURLHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -4231,6 +5340,12 @@ export const PageBlobGetPageRangesHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4283,6 +5398,12 @@ export const PageBlobGetPageRangesDiffHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4335,6 +5456,12 @@ export const PageBlobResizeHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4387,6 +5514,12 @@ export const PageBlobUpdateSequenceNumberHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4433,6 +5566,12 @@ export const PageBlobCopyIncrementalHeaders: coreHttp.CompositeMapper = { name: "DateTimeRfc1123" } }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4461,7 +5600,12 @@ export const PageBlobCopyIncrementalHeaders: coreHttp.CompositeMapper = { serializedName: "x-ms-copy-status", type: { name: "Enum", - allowedValues: ["pending", "success", "aborted", "failed"] + allowedValues: [ + "pending", + "success", + "aborted", + "failed" + ] } }, errorCode: { @@ -4498,6 +5642,18 @@ export const AppendBlobAppendBlockHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4534,6 +5690,12 @@ export const AppendBlobAppendBlockHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -4568,6 +5730,12 @@ export const AppendBlobAppendBlockFromUrlHeaders: coreHttp.CompositeMapper = { name: "ByteArray" } }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -4598,6 +5766,12 @@ export const AppendBlobAppendBlockFromUrlHeaders: coreHttp.CompositeMapper = { name: "Number" } }, + encryptionKeySha256: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { diff --git a/sdk/storage/storage-blob/src/generated/src/models/parameters.ts b/sdk/storage/storage-blob/src/generated/src/models/parameters.ts index 148d3c004d79..00e281cf2551 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/parameters.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/parameters.ts @@ -11,7 +11,10 @@ import * as coreHttp from "@azure/core-http"; export const access: coreHttp.OperationParameter = { - parameterPath: ["options", "access"], + parameterPath: [ + "options", + "access" + ], mapper: { serializedName: "x-ms-blob-public-access", type: { @@ -25,7 +28,7 @@ export const action0: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-lease-action", - defaultValue: "acquire", + defaultValue: 'acquire', type: { name: "String" } @@ -37,7 +40,7 @@ export const action1: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-lease-action", - defaultValue: "release", + defaultValue: 'release', type: { name: "String" } @@ -49,7 +52,7 @@ export const action2: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-lease-action", - defaultValue: "renew", + defaultValue: 'renew', type: { name: "String" } @@ -61,7 +64,7 @@ export const action3: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-lease-action", - defaultValue: "break", + defaultValue: 'break', type: { name: "String" } @@ -73,14 +76,42 @@ export const action4: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-lease-action", - defaultValue: "change", + defaultValue: 'change', + type: { + name: "String" + } + } +}; +export const action5: coreHttp.OperationQueryParameter = { + parameterPath: "action", + mapper: { + required: true, + isConstant: true, + serializedName: "action", + defaultValue: 'setAccessControl', + type: { + name: "String" + } + } +}; +export const action6: coreHttp.OperationQueryParameter = { + parameterPath: "action", + mapper: { + required: true, + isConstant: true, + serializedName: "action", + defaultValue: 'getAccessControl', type: { name: "String" } } }; export const appendPosition: coreHttp.OperationParameter = { - parameterPath: ["options", "appendPositionAccessConditions", "appendPosition"], + parameterPath: [ + "options", + "appendPositionAccessConditions", + "appendPosition" + ], mapper: { serializedName: "x-ms-blob-condition-appendpos", type: { @@ -89,7 +120,11 @@ export const appendPosition: coreHttp.OperationParameter = { } }; export const blobCacheControl: coreHttp.OperationParameter = { - parameterPath: ["options", "blobHTTPHeaders", "blobCacheControl"], + parameterPath: [ + "options", + "blobHTTPHeaders", + "blobCacheControl" + ], mapper: { serializedName: "x-ms-blob-cache-control", type: { @@ -98,7 +133,11 @@ export const blobCacheControl: coreHttp.OperationParameter = { } }; export const blobContentDisposition: coreHttp.OperationParameter = { - parameterPath: ["options", "blobHTTPHeaders", "blobContentDisposition"], + parameterPath: [ + "options", + "blobHTTPHeaders", + "blobContentDisposition" + ], mapper: { serializedName: "x-ms-blob-content-disposition", type: { @@ -107,7 +146,11 @@ export const blobContentDisposition: coreHttp.OperationParameter = { } }; export const blobContentEncoding: coreHttp.OperationParameter = { - parameterPath: ["options", "blobHTTPHeaders", "blobContentEncoding"], + parameterPath: [ + "options", + "blobHTTPHeaders", + "blobContentEncoding" + ], mapper: { serializedName: "x-ms-blob-content-encoding", type: { @@ -116,7 +159,11 @@ export const blobContentEncoding: coreHttp.OperationParameter = { } }; export const blobContentLanguage: coreHttp.OperationParameter = { - parameterPath: ["options", "blobHTTPHeaders", "blobContentLanguage"], + parameterPath: [ + "options", + "blobHTTPHeaders", + "blobContentLanguage" + ], mapper: { serializedName: "x-ms-blob-content-language", type: { @@ -135,7 +182,11 @@ export const blobContentLength: coreHttp.OperationParameter = { } }; export const blobContentMD5: coreHttp.OperationParameter = { - parameterPath: ["options", "blobHTTPHeaders", "blobContentMD5"], + parameterPath: [ + "options", + "blobHTTPHeaders", + "blobContentMD5" + ], mapper: { serializedName: "x-ms-blob-content-md5", type: { @@ -144,7 +195,11 @@ export const blobContentMD5: coreHttp.OperationParameter = { } }; export const blobContentType: coreHttp.OperationParameter = { - parameterPath: ["options", "blobHTTPHeaders", "blobContentType"], + parameterPath: [ + "options", + "blobHTTPHeaders", + "blobContentType" + ], mapper: { serializedName: "x-ms-blob-content-type", type: { @@ -153,7 +208,10 @@ export const blobContentType: coreHttp.OperationParameter = { } }; export const blobSequenceNumber: coreHttp.OperationParameter = { - parameterPath: ["options", "blobSequenceNumber"], + parameterPath: [ + "options", + "blobSequenceNumber" + ], mapper: { serializedName: "x-ms-blob-sequence-number", defaultValue: 0, @@ -168,7 +226,7 @@ export const blobType0: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-blob-type", - defaultValue: "PageBlob", + defaultValue: 'PageBlob', type: { name: "String" } @@ -180,7 +238,7 @@ export const blobType1: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-blob-type", - defaultValue: "AppendBlob", + defaultValue: 'AppendBlob', type: { name: "String" } @@ -192,7 +250,7 @@ export const blobType2: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-blob-type", - defaultValue: "BlockBlob", + defaultValue: 'BlockBlob', type: { name: "String" } @@ -209,7 +267,10 @@ export const blockId: coreHttp.OperationQueryParameter = { } }; export const breakPeriod: coreHttp.OperationParameter = { - parameterPath: ["options", "breakPeriod"], + parameterPath: [ + "options", + "breakPeriod" + ], mapper: { serializedName: "x-ms-lease-break-period", type: { @@ -217,13 +278,26 @@ export const breakPeriod: coreHttp.OperationParameter = { } } }; +export const cacheControl: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "directoryHttpHeaders", + "cacheControl" + ], + mapper: { + serializedName: "x-ms-cache-control", + type: { + name: "String" + } + } +}; export const comp0: coreHttp.OperationQueryParameter = { parameterPath: "comp", mapper: { required: true, isConstant: true, serializedName: "comp", - defaultValue: "properties", + defaultValue: 'properties', type: { name: "String" } @@ -235,7 +309,7 @@ export const comp1: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "stats", + defaultValue: 'stats', type: { name: "String" } @@ -247,7 +321,7 @@ export const comp10: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "tier", + defaultValue: 'copy', type: { name: "String" } @@ -259,7 +333,7 @@ export const comp11: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "page", + defaultValue: 'tier', type: { name: "String" } @@ -271,7 +345,7 @@ export const comp12: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "pagelist", + defaultValue: 'page', type: { name: "String" } @@ -283,7 +357,7 @@ export const comp13: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "incrementalcopy", + defaultValue: 'pagelist', type: { name: "String" } @@ -295,7 +369,7 @@ export const comp14: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "appendblock", + defaultValue: 'incrementalcopy', type: { name: "String" } @@ -307,7 +381,7 @@ export const comp15: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "block", + defaultValue: 'appendblock', type: { name: "String" } @@ -319,7 +393,19 @@ export const comp16: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "blocklist", + defaultValue: 'block', + type: { + name: "String" + } + } +}; +export const comp17: coreHttp.OperationQueryParameter = { + parameterPath: "comp", + mapper: { + required: true, + isConstant: true, + serializedName: "comp", + defaultValue: 'blocklist', type: { name: "String" } @@ -331,7 +417,7 @@ export const comp2: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "list", + defaultValue: 'list', type: { name: "String" } @@ -343,7 +429,7 @@ export const comp3: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "userdelegationkey", + defaultValue: 'userdelegationkey', type: { name: "String" } @@ -355,7 +441,7 @@ export const comp4: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "metadata", + defaultValue: 'batch', type: { name: "String" } @@ -367,7 +453,7 @@ export const comp5: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "acl", + defaultValue: 'metadata', type: { name: "String" } @@ -379,7 +465,7 @@ export const comp6: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "lease", + defaultValue: 'acl', type: { name: "String" } @@ -391,7 +477,7 @@ export const comp7: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "undelete", + defaultValue: 'lease', type: { name: "String" } @@ -403,7 +489,7 @@ export const comp8: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "snapshot", + defaultValue: 'undelete', type: { name: "String" } @@ -415,7 +501,46 @@ export const comp9: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "copy", + defaultValue: 'snapshot', + type: { + name: "String" + } + } +}; +export const contentDisposition: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "directoryHttpHeaders", + "contentDisposition" + ], + mapper: { + serializedName: "x-ms-content-disposition", + type: { + name: "String" + } + } +}; +export const contentEncoding: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "directoryHttpHeaders", + "contentEncoding" + ], + mapper: { + serializedName: "x-ms-content-encoding", + type: { + name: "String" + } + } +}; +export const contentLanguage: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "directoryHttpHeaders", + "contentLanguage" + ], + mapper: { + serializedName: "x-ms-content-language", type: { name: "String" } @@ -431,13 +556,26 @@ export const contentLength: coreHttp.OperationParameter = { } } }; +export const contentType: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "directoryHttpHeaders", + "contentType" + ], + mapper: { + serializedName: "x-ms-content-type", + type: { + name: "String" + } + } +}; export const copyActionAbortConstant: coreHttp.OperationParameter = { parameterPath: "copyActionAbortConstant", mapper: { required: true, isConstant: true, serializedName: "x-ms-copy-action", - defaultValue: "abort", + defaultValue: 'abort', type: { name: "String" } @@ -464,12 +602,18 @@ export const copySource: coreHttp.OperationParameter = { } }; export const deleteSnapshots: coreHttp.OperationParameter = { - parameterPath: ["options", "deleteSnapshots"], + parameterPath: [ + "options", + "deleteSnapshots" + ], mapper: { serializedName: "x-ms-delete-snapshots", type: { name: "Enum", - allowedValues: ["include", "only"] + allowedValues: [ + "include", + "only" + ] } } }; @@ -483,8 +627,23 @@ export const delimiter: coreHttp.OperationQueryParameter = { } } }; +export const directoryProperties: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "directoryProperties" + ], + mapper: { + serializedName: "x-ms-properties", + type: { + name: "String" + } + } +}; export const duration: coreHttp.OperationParameter = { - parameterPath: ["options", "duration"], + parameterPath: [ + "options", + "duration" + ], mapper: { serializedName: "x-ms-lease-duration", type: { @@ -492,8 +651,66 @@ export const duration: coreHttp.OperationParameter = { } } }; +export const encryptionAlgorithm: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "cpkInfo", + "encryptionAlgorithm" + ], + mapper: { + serializedName: "x-ms-encryption-algorithm", + type: { + name: "Enum", + allowedValues: [ + "AES256" + ] + } + } +}; +export const encryptionKey: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "cpkInfo", + "encryptionKey" + ], + mapper: { + serializedName: "x-ms-encryption-key", + type: { + name: "String" + } + } +}; +export const encryptionKeySha256: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "cpkInfo", + "encryptionKeySha256" + ], + mapper: { + serializedName: "x-ms-encryption-key-sha256", + type: { + name: "String" + } + } +}; +export const group: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "group" + ], + mapper: { + serializedName: "x-ms-group", + type: { + name: "String" + } + } +}; export const ifMatch: coreHttp.OperationParameter = { - parameterPath: ["options", "modifiedAccessConditions", "ifMatch"], + parameterPath: [ + "options", + "modifiedAccessConditions", + "ifMatch" + ], mapper: { serializedName: "If-Match", type: { @@ -502,7 +719,11 @@ export const ifMatch: coreHttp.OperationParameter = { } }; export const ifModifiedSince: coreHttp.OperationParameter = { - parameterPath: ["options", "modifiedAccessConditions", "ifModifiedSince"], + parameterPath: [ + "options", + "modifiedAccessConditions", + "ifModifiedSince" + ], mapper: { serializedName: "If-Modified-Since", type: { @@ -511,7 +732,11 @@ export const ifModifiedSince: coreHttp.OperationParameter = { } }; export const ifNoneMatch: coreHttp.OperationParameter = { - parameterPath: ["options", "modifiedAccessConditions", "ifNoneMatch"], + parameterPath: [ + "options", + "modifiedAccessConditions", + "ifNoneMatch" + ], mapper: { serializedName: "If-None-Match", type: { @@ -520,7 +745,11 @@ export const ifNoneMatch: coreHttp.OperationParameter = { } }; export const ifSequenceNumberEqualTo: coreHttp.OperationParameter = { - parameterPath: ["options", "sequenceNumberAccessConditions", "ifSequenceNumberEqualTo"], + parameterPath: [ + "options", + "sequenceNumberAccessConditions", + "ifSequenceNumberEqualTo" + ], mapper: { serializedName: "x-ms-if-sequence-number-eq", type: { @@ -529,7 +758,11 @@ export const ifSequenceNumberEqualTo: coreHttp.OperationParameter = { } }; export const ifSequenceNumberLessThan: coreHttp.OperationParameter = { - parameterPath: ["options", "sequenceNumberAccessConditions", "ifSequenceNumberLessThan"], + parameterPath: [ + "options", + "sequenceNumberAccessConditions", + "ifSequenceNumberLessThan" + ], mapper: { serializedName: "x-ms-if-sequence-number-lt", type: { @@ -538,7 +771,11 @@ export const ifSequenceNumberLessThan: coreHttp.OperationParameter = { } }; export const ifSequenceNumberLessThanOrEqualTo: coreHttp.OperationParameter = { - parameterPath: ["options", "sequenceNumberAccessConditions", "ifSequenceNumberLessThanOrEqualTo"], + parameterPath: [ + "options", + "sequenceNumberAccessConditions", + "ifSequenceNumberLessThanOrEqualTo" + ], mapper: { serializedName: "x-ms-if-sequence-number-le", type: { @@ -547,7 +784,11 @@ export const ifSequenceNumberLessThanOrEqualTo: coreHttp.OperationParameter = { } }; export const ifUnmodifiedSince: coreHttp.OperationParameter = { - parameterPath: ["options", "modifiedAccessConditions", "ifUnmodifiedSince"], + parameterPath: [ + "options", + "modifiedAccessConditions", + "ifUnmodifiedSince" + ], mapper: { serializedName: "If-Unmodified-Since", type: { @@ -556,17 +797,25 @@ export const ifUnmodifiedSince: coreHttp.OperationParameter = { } }; export const include0: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "include"], + parameterPath: [ + "options", + "include" + ], mapper: { serializedName: "include", type: { name: "Enum", - allowedValues: ["metadata"] + allowedValues: [ + "metadata" + ] } } }; export const include1: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "include"], + parameterPath: [ + "options", + "include" + ], mapper: { serializedName: "include", type: { @@ -574,7 +823,13 @@ export const include1: coreHttp.OperationQueryParameter = { element: { type: { name: "Enum", - allowedValues: ["copy", "deleted", "metadata", "snapshots", "uncommittedblobs"] + allowedValues: [ + "copy", + "deleted", + "metadata", + "snapshots", + "uncommittedblobs" + ] } } } @@ -582,7 +837,11 @@ export const include1: coreHttp.OperationQueryParameter = { collectionFormat: coreHttp.QueryCollectionFormat.Csv }; export const leaseId0: coreHttp.OperationParameter = { - parameterPath: ["options", "leaseAccessConditions", "leaseId"], + parameterPath: [ + "options", + "leaseAccessConditions", + "leaseId" + ], mapper: { serializedName: "x-ms-lease-id", type: { @@ -605,15 +864,22 @@ export const listType: coreHttp.OperationQueryParameter = { mapper: { required: true, serializedName: "blocklisttype", - defaultValue: "committed", + defaultValue: 'committed', type: { name: "Enum", - allowedValues: ["committed", "uncommitted", "all"] + allowedValues: [ + "committed", + "uncommitted", + "all" + ] } } }; -export const marker: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "marker"], +export const marker0: coreHttp.OperationQueryParameter = { + parameterPath: [ + "options", + "marker" + ], mapper: { serializedName: "marker", type: { @@ -621,8 +887,23 @@ export const marker: coreHttp.OperationQueryParameter = { } } }; +export const marker1: coreHttp.OperationQueryParameter = { + parameterPath: [ + "options", + "marker" + ], + mapper: { + serializedName: "continuation", + type: { + name: "String" + } + } +}; export const maxresults: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "maxresults"], + parameterPath: [ + "options", + "maxresults" + ], mapper: { serializedName: "maxresults", constraints: { @@ -634,7 +915,11 @@ export const maxresults: coreHttp.OperationQueryParameter = { } }; export const maxSize: coreHttp.OperationParameter = { - parameterPath: ["options", "appendPositionAccessConditions", "maxSize"], + parameterPath: [ + "options", + "appendPositionAccessConditions", + "maxSize" + ], mapper: { serializedName: "x-ms-blob-condition-maxsize", type: { @@ -643,7 +928,10 @@ export const maxSize: coreHttp.OperationParameter = { } }; export const metadata: coreHttp.OperationParameter = { - parameterPath: ["options", "metadata"], + parameterPath: [ + "options", + "metadata" + ], mapper: { serializedName: "x-ms-meta", type: { @@ -657,16 +945,27 @@ export const metadata: coreHttp.OperationParameter = { headerCollectionPrefix: "x-ms-meta-" } }; -export const nextPageLink: coreHttp.OperationURLParameter = { - parameterPath: "nextPageLink", +export const multipartContentType: coreHttp.OperationParameter = { + parameterPath: "multipartContentType", mapper: { required: true, - serializedName: "nextLink", + serializedName: "Content-Type", type: { name: "String" } - }, - skipEncoding: true + } +}; +export const owner: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "owner" + ], + mapper: { + serializedName: "x-ms-owner", + type: { + name: "String" + } + } }; export const pageWrite0: coreHttp.OperationParameter = { parameterPath: "pageWrite", @@ -674,7 +973,7 @@ export const pageWrite0: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-page-write", - defaultValue: "update", + defaultValue: 'update', type: { name: "String" } @@ -686,14 +985,66 @@ export const pageWrite1: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-page-write", - defaultValue: "clear", + defaultValue: 'clear', + type: { + name: "String" + } + } +}; +export const pathRenameMode: coreHttp.OperationQueryParameter = { + parameterPath: "pathRenameMode", + mapper: { + serializedName: "mode", + type: { + name: "Enum", + allowedValues: [ + "legacy", + "posix" + ] + } + } +}; +export const posixAcl: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "posixAcl" + ], + mapper: { + serializedName: "x-ms-acl", + type: { + name: "String" + } + } +}; +export const posixPermissions: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "posixPermissions" + ], + mapper: { + serializedName: "x-ms-permissions", + type: { + name: "String" + } + } +}; +export const posixUmask: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "posixUmask" + ], + mapper: { + serializedName: "x-ms-umask", type: { name: "String" } } }; export const prefix: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "prefix"], + parameterPath: [ + "options", + "prefix" + ], mapper: { serializedName: "prefix", type: { @@ -702,7 +1053,10 @@ export const prefix: coreHttp.OperationQueryParameter = { } }; export const prevsnapshot: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "prevsnapshot"], + parameterPath: [ + "options", + "prevsnapshot" + ], mapper: { serializedName: "prevsnapshot", type: { @@ -711,7 +1065,10 @@ export const prevsnapshot: coreHttp.OperationQueryParameter = { } }; export const proposedLeaseId0: coreHttp.OperationParameter = { - parameterPath: ["options", "proposedLeaseId"], + parameterPath: [ + "options", + "proposedLeaseId" + ], mapper: { serializedName: "x-ms-proposed-lease-id", type: { @@ -730,7 +1087,10 @@ export const proposedLeaseId1: coreHttp.OperationParameter = { } }; export const range0: coreHttp.OperationParameter = { - parameterPath: ["options", "range"], + parameterPath: [ + "options", + "range" + ], mapper: { serializedName: "x-ms-range", type: { @@ -748,8 +1108,23 @@ export const range1: coreHttp.OperationParameter = { } } }; +export const rangeGetContentCRC64: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "rangeGetContentCRC64" + ], + mapper: { + serializedName: "x-ms-range-get-content-crc64", + type: { + name: "Boolean" + } + } +}; export const rangeGetContentMD5: coreHttp.OperationParameter = { - parameterPath: ["options", "rangeGetContentMD5"], + parameterPath: [ + "options", + "rangeGetContentMD5" + ], mapper: { serializedName: "x-ms-range-get-content-md5", type: { @@ -757,8 +1132,43 @@ export const rangeGetContentMD5: coreHttp.OperationParameter = { } } }; +export const recursiveDirectoryDelete: coreHttp.OperationQueryParameter = { + parameterPath: "recursiveDirectoryDelete", + mapper: { + required: true, + serializedName: "recursive", + type: { + name: "Boolean" + } + } +}; +export const rehydratePriority: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "rehydratePriority" + ], + mapper: { + serializedName: "x-ms-rehydrate-priority", + type: { + name: "String" + } + } +}; +export const renameSource: coreHttp.OperationParameter = { + parameterPath: "renameSource", + mapper: { + required: true, + serializedName: "x-ms-rename-source", + type: { + name: "String" + } + } +}; export const requestId: coreHttp.OperationParameter = { - parameterPath: ["options", "requestId"], + parameterPath: [ + "options", + "requestId" + ], mapper: { serializedName: "x-ms-client-request-id", type: { @@ -766,13 +1176,25 @@ export const requestId: coreHttp.OperationParameter = { } } }; +export const resource: coreHttp.OperationQueryParameter = { + parameterPath: "resource", + mapper: { + required: true, + isConstant: true, + serializedName: "resource", + defaultValue: 'directory', + type: { + name: "String" + } + } +}; export const restype0: coreHttp.OperationQueryParameter = { parameterPath: "restype", mapper: { required: true, isConstant: true, serializedName: "restype", - defaultValue: "service", + defaultValue: 'service', type: { name: "String" } @@ -784,7 +1206,7 @@ export const restype1: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "restype", - defaultValue: "account", + defaultValue: 'account', type: { name: "String" } @@ -796,7 +1218,7 @@ export const restype2: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "restype", - defaultValue: "container", + defaultValue: 'container', type: { name: "String" } @@ -809,12 +1231,19 @@ export const sequenceNumberAction: coreHttp.OperationParameter = { serializedName: "x-ms-sequence-number-action", type: { name: "Enum", - allowedValues: ["max", "update", "increment"] + allowedValues: [ + "max", + "update", + "increment" + ] } } }; export const snapshot: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "snapshot"], + parameterPath: [ + "options", + "snapshot" + ], mapper: { serializedName: "snapshot", type: { @@ -822,8 +1251,23 @@ export const snapshot: coreHttp.OperationQueryParameter = { } } }; +export const sourceContentCrc64: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "sourceContentCrc64" + ], + mapper: { + serializedName: "x-ms-source-content-crc64", + type: { + name: "ByteArray" + } + } +}; export const sourceContentMD5: coreHttp.OperationParameter = { - parameterPath: ["options", "sourceContentMD5"], + parameterPath: [ + "options", + "sourceContentMD5" + ], mapper: { serializedName: "x-ms-source-content-md5", type: { @@ -832,7 +1276,11 @@ export const sourceContentMD5: coreHttp.OperationParameter = { } }; export const sourceIfMatch: coreHttp.OperationParameter = { - parameterPath: ["options", "sourceModifiedAccessConditions", "sourceIfMatch"], + parameterPath: [ + "options", + "sourceModifiedAccessConditions", + "sourceIfMatch" + ], mapper: { serializedName: "x-ms-source-if-match", type: { @@ -841,7 +1289,11 @@ export const sourceIfMatch: coreHttp.OperationParameter = { } }; export const sourceIfModifiedSince: coreHttp.OperationParameter = { - parameterPath: ["options", "sourceModifiedAccessConditions", "sourceIfModifiedSince"], + parameterPath: [ + "options", + "sourceModifiedAccessConditions", + "sourceIfModifiedSince" + ], mapper: { serializedName: "x-ms-source-if-modified-since", type: { @@ -850,7 +1302,11 @@ export const sourceIfModifiedSince: coreHttp.OperationParameter = { } }; export const sourceIfNoneMatch: coreHttp.OperationParameter = { - parameterPath: ["options", "sourceModifiedAccessConditions", "sourceIfNoneMatch"], + parameterPath: [ + "options", + "sourceModifiedAccessConditions", + "sourceIfNoneMatch" + ], mapper: { serializedName: "x-ms-source-if-none-match", type: { @@ -859,7 +1315,11 @@ export const sourceIfNoneMatch: coreHttp.OperationParameter = { } }; export const sourceIfUnmodifiedSince: coreHttp.OperationParameter = { - parameterPath: ["options", "sourceModifiedAccessConditions", "sourceIfUnmodifiedSince"], + parameterPath: [ + "options", + "sourceModifiedAccessConditions", + "sourceIfUnmodifiedSince" + ], mapper: { serializedName: "x-ms-source-if-unmodified-since", type: { @@ -867,6 +1327,18 @@ export const sourceIfUnmodifiedSince: coreHttp.OperationParameter = { } } }; +export const sourceLeaseId: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "sourceLeaseId" + ], + mapper: { + serializedName: "x-ms-source-lease-id", + type: { + name: "String" + } + } +}; export const sourceRange0: coreHttp.OperationParameter = { parameterPath: "sourceRange", mapper: { @@ -878,7 +1350,10 @@ export const sourceRange0: coreHttp.OperationParameter = { } }; export const sourceRange1: coreHttp.OperationParameter = { - parameterPath: ["options", "sourceRange"], + parameterPath: [ + "options", + "sourceRange" + ], mapper: { serializedName: "x-ms-source-range", type: { @@ -896,7 +1371,19 @@ export const sourceUrl: coreHttp.OperationParameter = { } } }; -export const tier: coreHttp.OperationParameter = { +export const tier0: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "tier" + ], + mapper: { + serializedName: "x-ms-access-tier", + type: { + name: "String" + } + } +}; +export const tier1: coreHttp.OperationParameter = { parameterPath: "tier", mapper: { required: true, @@ -907,7 +1394,10 @@ export const tier: coreHttp.OperationParameter = { } }; export const timeout: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "timeout"], + parameterPath: [ + "options", + "timeout" + ], mapper: { serializedName: "timeout", constraints: { @@ -918,8 +1408,23 @@ export const timeout: coreHttp.OperationQueryParameter = { } } }; +export const transactionalContentCrc64: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "transactionalContentCrc64" + ], + mapper: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + } +}; export const transactionalContentMD5: coreHttp.OperationParameter = { - parameterPath: ["options", "transactionalContentMD5"], + parameterPath: [ + "options", + "transactionalContentMD5" + ], mapper: { serializedName: "Content-MD5", type: { @@ -927,12 +1432,24 @@ export const transactionalContentMD5: coreHttp.OperationParameter = { } } }; +export const upn: coreHttp.OperationQueryParameter = { + parameterPath: [ + "options", + "upn" + ], + mapper: { + serializedName: "upn", + type: { + name: "Boolean" + } + } +}; export const url: coreHttp.OperationURLParameter = { parameterPath: "url", mapper: { required: true, serializedName: "url", - defaultValue: "", + defaultValue: '', type: { name: "String" } @@ -945,7 +1462,7 @@ export const version: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-version", - defaultValue: "2018-11-09", + defaultValue: '2019-02-02', type: { name: "String" } @@ -957,7 +1474,7 @@ export const xMsRequiresSync: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-requires-sync", - defaultValue: "true", + defaultValue: 'true', type: { name: "String" } diff --git a/sdk/storage/storage-blob/src/generated/src/models/serviceMappers.ts b/sdk/storage/storage-blob/src/generated/src/models/serviceMappers.ts index 3f9ef3e78dd7..9647e64e451e 100644 --- a/sdk/storage/storage-blob/src/generated/src/models/serviceMappers.ts +++ b/sdk/storage/storage-blob/src/generated/src/models/serviceMappers.ts @@ -22,6 +22,7 @@ export { ServiceGetUserDelegationKeyHeaders, ServiceListContainersSegmentHeaders, ServiceSetPropertiesHeaders, + ServiceSubmitBatchHeaders, StaticWebsite, StorageError, StorageServiceProperties, diff --git a/sdk/storage/storage-blob/src/generated/src/operations/appendBlob.ts b/sdk/storage/storage-blob/src/generated/src/operations/appendBlob.ts index e23a12e6ad8f..0c529a1f75ab 100644 --- a/sdk/storage/storage-blob/src/generated/src/operations/appendBlob.ts +++ b/sdk/storage/storage-blob/src/generated/src/operations/appendBlob.ts @@ -32,10 +32,7 @@ export class AppendBlob { * @param [options] The optional parameters * @returns Promise */ - create( - contentLength: number, - options?: Models.AppendBlobCreateOptionalParams - ): Promise; + create(contentLength: number, options?: Models.AppendBlobCreateOptionalParams): Promise; /** * @param contentLength The length of the request. * @param callback The callback @@ -46,24 +43,15 @@ export class AppendBlob { * @param options The optional parameters * @param callback The callback */ - create( - contentLength: number, - options: Models.AppendBlobCreateOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - create( - contentLength: number, - options?: Models.AppendBlobCreateOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + create(contentLength: number, options: Models.AppendBlobCreateOptionalParams, callback: coreHttp.ServiceCallback): void; + create(contentLength: number, options?: Models.AppendBlobCreateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { contentLength, options }, createOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -75,39 +63,21 @@ export class AppendBlob { * @param [options] The optional parameters * @returns Promise */ - appendBlock( - body: coreHttp.HttpRequestBody, - contentLength: number, - options?: Models.AppendBlobAppendBlockOptionalParams - ): Promise; + appendBlock(body: coreHttp.HttpRequestBody, contentLength: number, options?: Models.AppendBlobAppendBlockOptionalParams): Promise; /** * @param body Initial data * @param contentLength The length of the request. * @param callback The callback */ - appendBlock( - body: coreHttp.HttpRequestBody, - contentLength: number, - callback: coreHttp.ServiceCallback - ): void; + appendBlock(body: coreHttp.HttpRequestBody, contentLength: number, callback: coreHttp.ServiceCallback): void; /** * @param body Initial data * @param contentLength The length of the request. * @param options The optional parameters * @param callback The callback */ - appendBlock( - body: coreHttp.HttpRequestBody, - contentLength: number, - options: Models.AppendBlobAppendBlockOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - appendBlock( - body: coreHttp.HttpRequestBody, - contentLength: number, - options?: Models.AppendBlobAppendBlockOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + appendBlock(body: coreHttp.HttpRequestBody, contentLength: number, options: Models.AppendBlobAppendBlockOptionalParams, callback: coreHttp.ServiceCallback): void; + appendBlock(body: coreHttp.HttpRequestBody, contentLength: number, options?: Models.AppendBlobAppendBlockOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { body, @@ -115,8 +85,7 @@ export class AppendBlob { options }, appendBlockOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -129,39 +98,21 @@ export class AppendBlob { * @param [options] The optional parameters * @returns Promise */ - appendBlockFromUrl( - sourceUrl: string, - contentLength: number, - options?: Models.AppendBlobAppendBlockFromUrlOptionalParams - ): Promise; + appendBlockFromUrl(sourceUrl: string, contentLength: number, options?: Models.AppendBlobAppendBlockFromUrlOptionalParams): Promise; /** * @param sourceUrl Specify a URL to the copy source. * @param contentLength The length of the request. * @param callback The callback */ - appendBlockFromUrl( - sourceUrl: string, - contentLength: number, - callback: coreHttp.ServiceCallback - ): void; + appendBlockFromUrl(sourceUrl: string, contentLength: number, callback: coreHttp.ServiceCallback): void; /** * @param sourceUrl Specify a URL to the copy source. * @param contentLength The length of the request. * @param options The optional parameters * @param callback The callback */ - appendBlockFromUrl( - sourceUrl: string, - contentLength: number, - options: Models.AppendBlobAppendBlockFromUrlOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - appendBlockFromUrl( - sourceUrl: string, - contentLength: number, - options?: Models.AppendBlobAppendBlockFromUrlOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + appendBlockFromUrl(sourceUrl: string, contentLength: number, options: Models.AppendBlobAppendBlockFromUrlOptionalParams, callback: coreHttp.ServiceCallback): void; + appendBlockFromUrl(sourceUrl: string, contentLength: number, options?: Models.AppendBlobAppendBlockFromUrlOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { sourceUrl, @@ -169,8 +120,7 @@ export class AppendBlob { options }, appendBlockFromUrlOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -179,8 +129,12 @@ const serializer = new coreHttp.Serializer(Mappers, true); const createOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout + ], headerParameters: [ Parameters.contentLength, Parameters.metadata, @@ -194,6 +148,9 @@ const createOperationSpec: coreHttp.OperationSpec = { Parameters.blobCacheControl, Parameters.blobContentDisposition, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -214,16 +171,25 @@ const createOperationSpec: coreHttp.OperationSpec = { const appendBlockOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp14], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp15 + ], headerParameters: [ Parameters.contentLength, Parameters.transactionalContentMD5, + Parameters.transactionalContentCrc64, Parameters.version, Parameters.requestId, Parameters.leaseId0, Parameters.maxSize, Parameters.appendPosition, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -255,15 +221,25 @@ const appendBlockOperationSpec: coreHttp.OperationSpec = { const appendBlockFromUrlOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp14], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp15 + ], headerParameters: [ Parameters.sourceUrl, Parameters.sourceRange1, Parameters.sourceContentMD5, + Parameters.sourceContentCrc64, Parameters.contentLength, + Parameters.transactionalContentMD5, Parameters.version, Parameters.requestId, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.leaseId0, Parameters.maxSize, Parameters.appendPosition, diff --git a/sdk/storage/storage-blob/src/generated/src/operations/blob.ts b/sdk/storage/storage-blob/src/generated/src/operations/blob.ts index 8c41859278da..2d6a4574ae87 100644 --- a/sdk/storage/storage-blob/src/generated/src/operations/blob.ts +++ b/sdk/storage/storage-blob/src/generated/src/operations/blob.ts @@ -111,6 +111,92 @@ export class Blob { callback) as Promise; } + /** + * Set the owner, group, permissions, or access control list for a blob. + * @param [options] The optional parameters + * @returns Promise + */ + setAccessControl(options?: Models.BlobSetAccessControlOptionalParams): Promise; + /** + * @param callback The callback + */ + setAccessControl(callback: coreHttp.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + setAccessControl(options: Models.BlobSetAccessControlOptionalParams, callback: coreHttp.ServiceCallback): void; + setAccessControl(options?: Models.BlobSetAccessControlOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + setAccessControlOperationSpec, + callback) as Promise; + } + + /** + * Get the owner, group, permissions, or access control list for a blob. + * @param [options] The optional parameters + * @returns Promise + */ + getAccessControl(options?: Models.BlobGetAccessControlOptionalParams): Promise; + /** + * @param callback The callback + */ + getAccessControl(callback: coreHttp.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getAccessControl(options: Models.BlobGetAccessControlOptionalParams, callback: coreHttp.ServiceCallback): void; + getAccessControl(options?: Models.BlobGetAccessControlOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getAccessControlOperationSpec, + callback) as Promise; + } + + /** + * Rename a blob/file. By default, the destination is overwritten and if the destination already + * exists and has a lease the lease is broken. This operation supports conditional HTTP requests. + * For more information, see [Specifying Conditional Headers for Blob Service + * Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * To fail if the destination already exists, use a conditional request with If-None-Match: "*". + * @param renameSource The file or directory to be renamed. The value must have the following + * format: "/{filesysystem}/{path}". If "x-ms-properties" is specified, the properties will + * overwrite the existing properties; otherwise, the existing properties will be preserved. + * @param [options] The optional parameters + * @returns Promise + */ + rename(renameSource: string, options?: Models.BlobRenameOptionalParams): Promise; + /** + * @param renameSource The file or directory to be renamed. The value must have the following + * format: "/{filesysystem}/{path}". If "x-ms-properties" is specified, the properties will + * overwrite the existing properties; otherwise, the existing properties will be preserved. + * @param callback The callback + */ + rename(renameSource: string, callback: coreHttp.ServiceCallback): void; + /** + * @param renameSource The file or directory to be renamed. The value must have the following + * format: "/{filesysystem}/{path}". If "x-ms-properties" is specified, the properties will + * overwrite the existing properties; otherwise, the existing properties will be preserved. + * @param options The optional parameters + * @param callback The callback + */ + rename(renameSource: string, options: Models.BlobRenameOptionalParams, callback: coreHttp.ServiceCallback): void; + rename(renameSource: string, options?: Models.BlobRenameOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + renameSource, + options + }, + renameOperationSpec, + callback) as Promise; + } + /** * Undelete a blob that was previously soft deleted * @param [options] The optional parameters @@ -469,20 +555,20 @@ export class Blob { * A block blob's tier determines Hot/Cool/Archive storage type. This operation does not update the * blob's ETag. * @param tier Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', - * 'P10', 'P20', 'P30', 'P40', 'P50', 'Hot', 'Cool', 'Archive' + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' * @param [options] The optional parameters * @returns Promise */ setTier(tier: Models.AccessTier, options?: Models.BlobSetTierOptionalParams): Promise; /** * @param tier Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', - * 'P10', 'P20', 'P30', 'P40', 'P50', 'Hot', 'Cool', 'Archive' + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' * @param callback The callback */ setTier(tier: Models.AccessTier, callback: coreHttp.ServiceCallback): void; /** * @param tier Indicates the tier to be set on the blob. Possible values include: 'P4', 'P6', - * 'P10', 'P20', 'P30', 'P40', 'P50', 'Hot', 'Cool', 'Archive' + * 'P10', 'P15', 'P20', 'P30', 'P40', 'P50', 'P60', 'P70', 'P80', 'Hot', 'Cool', 'Archive' * @param options The optional parameters * @param callback The callback */ @@ -537,9 +623,13 @@ const downloadOperationSpec: coreHttp.OperationSpec = { headerParameters: [ Parameters.range0, Parameters.rangeGetContentMD5, + Parameters.rangeGetContentCRC64, Parameters.version, Parameters.requestId, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -586,6 +676,9 @@ const getPropertiesOperationSpec: coreHttp.OperationSpec = { Parameters.version, Parameters.requestId, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -635,6 +728,118 @@ const deleteMethodOperationSpec: coreHttp.OperationSpec = { serializer }; +const setAccessControlOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PATCH", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.action5 + ], + headerParameters: [ + Parameters.owner, + Parameters.group, + Parameters.posixPermissions, + Parameters.posixAcl, + Parameters.requestId, + Parameters.version, + Parameters.leaseId0, + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince + ], + responses: { + 200: { + headersMapper: Mappers.BlobSetAccessControlHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; + +const getAccessControlOperationSpec: coreHttp.OperationSpec = { + httpMethod: "HEAD", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.upn, + Parameters.action6 + ], + headerParameters: [ + Parameters.requestId, + Parameters.version, + Parameters.leaseId0, + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince + ], + responses: { + 200: { + headersMapper: Mappers.BlobGetAccessControlHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; + +const renameOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PUT", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.pathRenameMode + ], + headerParameters: [ + Parameters.renameSource, + Parameters.directoryProperties, + Parameters.posixPermissions, + Parameters.posixUmask, + Parameters.sourceLeaseId, + Parameters.version, + Parameters.requestId, + Parameters.cacheControl, + Parameters.contentType, + Parameters.contentEncoding, + Parameters.contentLanguage, + Parameters.contentDisposition, + Parameters.leaseId0, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince, + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.sourceIfModifiedSince, + Parameters.sourceIfUnmodifiedSince, + Parameters.sourceIfMatch, + Parameters.sourceIfNoneMatch + ], + responses: { + 201: { + headersMapper: Mappers.BlobRenameHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; + const undeleteOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", @@ -643,7 +848,7 @@ const undeleteOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp7 + Parameters.comp8 ], headerParameters: [ Parameters.version, @@ -706,13 +911,16 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp4 + Parameters.comp5 ], headerParameters: [ Parameters.metadata, Parameters.version, Parameters.requestId, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -738,7 +946,7 @@ const acquireLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6 + Parameters.comp7 ], headerParameters: [ Parameters.duration, @@ -771,7 +979,7 @@ const releaseLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6 + Parameters.comp7 ], headerParameters: [ Parameters.leaseId1, @@ -803,7 +1011,7 @@ const renewLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6 + Parameters.comp7 ], headerParameters: [ Parameters.leaseId1, @@ -835,7 +1043,7 @@ const changeLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6 + Parameters.comp7 ], headerParameters: [ Parameters.leaseId1, @@ -868,7 +1076,7 @@ const breakLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6 + Parameters.comp7 ], headerParameters: [ Parameters.breakPeriod, @@ -900,12 +1108,15 @@ const createSnapshotOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp8 + Parameters.comp9 ], headerParameters: [ Parameters.metadata, Parameters.version, Parameters.requestId, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -935,6 +1146,8 @@ const startCopyFromURLOperationSpec: coreHttp.OperationSpec = { ], headerParameters: [ Parameters.metadata, + Parameters.tier0, + Parameters.rehydratePriority, Parameters.copySource, Parameters.version, Parameters.requestId, @@ -971,6 +1184,7 @@ const copyFromURLOperationSpec: coreHttp.OperationSpec = { ], headerParameters: [ Parameters.metadata, + Parameters.tier0, Parameters.copySource, Parameters.version, Parameters.requestId, @@ -1006,7 +1220,7 @@ const abortCopyFromURLOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.copyId, Parameters.timeout, - Parameters.comp9 + Parameters.comp10 ], headerParameters: [ Parameters.version, @@ -1034,10 +1248,11 @@ const setTierOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp10 + Parameters.comp11 ], headerParameters: [ - Parameters.tier, + Parameters.tier1, + Parameters.rehydratePriority, Parameters.version, Parameters.requestId, Parameters.leaseId0 diff --git a/sdk/storage/storage-blob/src/generated/src/operations/blockBlob.ts b/sdk/storage/storage-blob/src/generated/src/operations/blockBlob.ts index 517a2e27f6c3..d15e68c00e4b 100644 --- a/sdk/storage/storage-blob/src/generated/src/operations/blockBlob.ts +++ b/sdk/storage/storage-blob/src/generated/src/operations/blockBlob.ts @@ -231,6 +231,7 @@ const uploadOperationSpec: coreHttp.OperationSpec = { headerParameters: [ Parameters.contentLength, Parameters.metadata, + Parameters.tier0, Parameters.version, Parameters.requestId, Parameters.blobType2, @@ -241,6 +242,9 @@ const uploadOperationSpec: coreHttp.OperationSpec = { Parameters.blobCacheControl, Parameters.blobContentDisposition, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -278,14 +282,18 @@ const stageBlockOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.blockId, Parameters.timeout, - Parameters.comp15 + Parameters.comp16 ], headerParameters: [ Parameters.contentLength, Parameters.transactionalContentMD5, + Parameters.transactionalContentCrc64, Parameters.version, Parameters.requestId, - Parameters.leaseId0 + Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm ], requestBody: { parameterPath: "body", @@ -319,15 +327,19 @@ const stageBlockFromURLOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.blockId, Parameters.timeout, - Parameters.comp15 + Parameters.comp16 ], headerParameters: [ Parameters.contentLength, Parameters.sourceUrl, Parameters.sourceRange1, Parameters.sourceContentMD5, + Parameters.sourceContentCrc64, Parameters.version, Parameters.requestId, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.leaseId0, Parameters.sourceIfModifiedSince, Parameters.sourceIfUnmodifiedSince, @@ -354,10 +366,13 @@ const commitBlockListOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp16 + Parameters.comp17 ], headerParameters: [ + Parameters.transactionalContentMD5, + Parameters.transactionalContentCrc64, Parameters.metadata, + Parameters.tier0, Parameters.version, Parameters.requestId, Parameters.blobCacheControl, @@ -367,6 +382,9 @@ const commitBlockListOperationSpec: coreHttp.OperationSpec = { Parameters.blobContentMD5, Parameters.blobContentDisposition, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -402,7 +420,7 @@ const getBlockListOperationSpec: coreHttp.OperationSpec = { Parameters.snapshot, Parameters.listType, Parameters.timeout, - Parameters.comp16 + Parameters.comp17 ], headerParameters: [ Parameters.version, diff --git a/sdk/storage/storage-blob/src/generated/src/operations/container.ts b/sdk/storage/storage-blob/src/generated/src/operations/container.ts index 5ac27d4e2f6a..1096719ac151 100644 --- a/sdk/storage/storage-blob/src/generated/src/operations/container.ts +++ b/sdk/storage/storage-blob/src/generated/src/operations/container.ts @@ -406,62 +406,6 @@ export class Container { getAccountInfoOperationSpec, callback) as Promise; } - - /** - * [Update] The List Blobs operation returns a list of the blobs under the specified container - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listBlobFlatSegmentNext(nextPageLink: string, options?: Models.ContainerListBlobFlatSegmentNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listBlobFlatSegmentNext(nextPageLink: string, callback: coreHttp.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listBlobFlatSegmentNext(nextPageLink: string, options: Models.ContainerListBlobFlatSegmentNextOptionalParams, callback: coreHttp.ServiceCallback): void; - listBlobFlatSegmentNext(nextPageLink: string, options?: Models.ContainerListBlobFlatSegmentNextOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBlobFlatSegmentNextOperationSpec, - callback) as Promise; - } - - /** - * [Update] The List Blobs operation returns a list of the blobs under the specified container - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listBlobHierarchySegmentNext(nextPageLink: string, options?: Models.ContainerListBlobHierarchySegmentNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listBlobHierarchySegmentNext(nextPageLink: string, callback: coreHttp.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listBlobHierarchySegmentNext(nextPageLink: string, options: Models.ContainerListBlobHierarchySegmentNextOptionalParams, callback: coreHttp.ServiceCallback): void; - listBlobHierarchySegmentNext(nextPageLink: string, options?: Models.ContainerListBlobHierarchySegmentNextOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBlobHierarchySegmentNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -559,7 +503,7 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.timeout, Parameters.restype2, - Parameters.comp4 + Parameters.comp5 ], headerParameters: [ Parameters.metadata, @@ -589,7 +533,7 @@ const getAccessPolicyOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.timeout, Parameters.restype2, - Parameters.comp5 + Parameters.comp6 ], headerParameters: [ Parameters.version, @@ -630,7 +574,7 @@ const setAccessPolicyOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.timeout, Parameters.restype2, - Parameters.comp5 + Parameters.comp6 ], headerParameters: [ Parameters.access, @@ -681,7 +625,7 @@ const acquireLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6, + Parameters.comp7, Parameters.restype2 ], headerParameters: [ @@ -713,7 +657,7 @@ const releaseLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6, + Parameters.comp7, Parameters.restype2 ], headerParameters: [ @@ -744,7 +688,7 @@ const renewLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6, + Parameters.comp7, Parameters.restype2 ], headerParameters: [ @@ -775,7 +719,7 @@ const breakLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6, + Parameters.comp7, Parameters.restype2 ], headerParameters: [ @@ -806,7 +750,7 @@ const changeLeaseOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.timeout, - Parameters.comp6, + Parameters.comp7, Parameters.restype2 ], headerParameters: [ @@ -838,7 +782,7 @@ const listBlobFlatSegmentOperationSpec: coreHttp.OperationSpec = { ], queryParameters: [ Parameters.prefix, - Parameters.marker, + Parameters.marker0, Parameters.maxresults, Parameters.include1, Parameters.timeout, @@ -871,7 +815,7 @@ const listBlobHierarchySegmentOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.prefix, Parameters.delimiter, - Parameters.marker, + Parameters.marker0, Parameters.maxresults, Parameters.include1, Parameters.timeout, @@ -919,51 +863,3 @@ const getAccountInfoOperationSpec: coreHttp.OperationSpec = { isXML: true, serializer }; - -const listBlobFlatSegmentNextOperationSpec: coreHttp.OperationSpec = { - httpMethod: "GET", - baseUrl: "{url}", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.version, - Parameters.requestId - ], - responses: { - 200: { - bodyMapper: Mappers.ListBlobsFlatSegmentResponse, - headersMapper: Mappers.ContainerListBlobFlatSegmentHeaders - }, - default: { - bodyMapper: Mappers.StorageError - } - }, - isXML: true, - serializer -}; - -const listBlobHierarchySegmentNextOperationSpec: coreHttp.OperationSpec = { - httpMethod: "GET", - baseUrl: "{url}", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.version, - Parameters.requestId - ], - responses: { - 200: { - bodyMapper: Mappers.ListBlobsHierarchySegmentResponse, - headersMapper: Mappers.ContainerListBlobHierarchySegmentHeaders - }, - default: { - bodyMapper: Mappers.StorageError - } - }, - isXML: true, - serializer -}; diff --git a/sdk/storage/storage-blob/src/generated/src/operations/directory.ts b/sdk/storage/storage-blob/src/generated/src/operations/directory.ts new file mode 100644 index 000000000000..5937b40234fb --- /dev/null +++ b/sdk/storage/storage-blob/src/generated/src/operations/directory.ts @@ -0,0 +1,359 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as coreHttp from "@azure/core-http"; +import * as Models from "../models"; +import * as Mappers from "../models/directoryMappers"; +import * as Parameters from "../models/parameters"; +import { StorageClientContext } from "../storageClientContext"; + +/** Class representing a Directory. */ +export class Directory { + private readonly client: StorageClientContext; + + /** + * Create a Directory. + * @param {StorageClientContext} client Reference to the service client. + */ + constructor(client: StorageClientContext) { + this.client = client; + } + + /** + * Create a directory. By default, the destination is overwritten and if the destination already + * exists and has a lease the lease is broken. This operation supports conditional HTTP requests. + * For more information, see [Specifying Conditional Headers for Blob Service + * Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * To fail if the destination already exists, use a conditional request with If-None-Match: "*". + * @param [options] The optional parameters + * @returns Promise + */ + create(options?: Models.DirectoryCreateOptionalParams): Promise; + /** + * @param callback The callback + */ + create(callback: coreHttp.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + create(options: Models.DirectoryCreateOptionalParams, callback: coreHttp.ServiceCallback): void; + create(options?: Models.DirectoryCreateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Rename a directory. By default, the destination is overwritten and if the destination already + * exists and has a lease the lease is broken. This operation supports conditional HTTP requests. + * For more information, see [Specifying Conditional Headers for Blob Service + * Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * To fail if the destination already exists, use a conditional request with If-None-Match: "*". + * @param renameSource The file or directory to be renamed. The value must have the following + * format: "/{filesysystem}/{path}". If "x-ms-properties" is specified, the properties will + * overwrite the existing properties; otherwise, the existing properties will be preserved. + * @param [options] The optional parameters + * @returns Promise + */ + rename(renameSource: string, options?: Models.DirectoryRenameOptionalParams): Promise; + /** + * @param renameSource The file or directory to be renamed. The value must have the following + * format: "/{filesysystem}/{path}". If "x-ms-properties" is specified, the properties will + * overwrite the existing properties; otherwise, the existing properties will be preserved. + * @param callback The callback + */ + rename(renameSource: string, callback: coreHttp.ServiceCallback): void; + /** + * @param renameSource The file or directory to be renamed. The value must have the following + * format: "/{filesysystem}/{path}". If "x-ms-properties" is specified, the properties will + * overwrite the existing properties; otherwise, the existing properties will be preserved. + * @param options The optional parameters + * @param callback The callback + */ + rename(renameSource: string, options: Models.DirectoryRenameOptionalParams, callback: coreHttp.ServiceCallback): void; + rename(renameSource: string, options?: Models.DirectoryRenameOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + renameSource, + options + }, + renameOperationSpec, + callback) as Promise; + } + + /** + * Deletes the directory + * @param recursiveDirectoryDelete If "true", all paths beneath the directory will be deleted. If + * "false" and the directory is non-empty, an error occurs. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(recursiveDirectoryDelete: boolean, options?: Models.DirectoryDeleteMethodOptionalParams): Promise; + /** + * @param recursiveDirectoryDelete If "true", all paths beneath the directory will be deleted. If + * "false" and the directory is non-empty, an error occurs. + * @param callback The callback + */ + deleteMethod(recursiveDirectoryDelete: boolean, callback: coreHttp.ServiceCallback): void; + /** + * @param recursiveDirectoryDelete If "true", all paths beneath the directory will be deleted. If + * "false" and the directory is non-empty, an error occurs. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(recursiveDirectoryDelete: boolean, options: Models.DirectoryDeleteMethodOptionalParams, callback: coreHttp.ServiceCallback): void; + deleteMethod(recursiveDirectoryDelete: boolean, options?: Models.DirectoryDeleteMethodOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + recursiveDirectoryDelete, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * Set the owner, group, permissions, or access control list for a directory. + * @param [options] The optional parameters + * @returns Promise + */ + setAccessControl(options?: Models.DirectorySetAccessControlOptionalParams): Promise; + /** + * @param callback The callback + */ + setAccessControl(callback: coreHttp.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + setAccessControl(options: Models.DirectorySetAccessControlOptionalParams, callback: coreHttp.ServiceCallback): void; + setAccessControl(options?: Models.DirectorySetAccessControlOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + setAccessControlOperationSpec, + callback) as Promise; + } + + /** + * Get the owner, group, permissions, or access control list for a directory. + * @param [options] The optional parameters + * @returns Promise + */ + getAccessControl(options?: Models.DirectoryGetAccessControlOptionalParams): Promise; + /** + * @param callback The callback + */ + getAccessControl(callback: coreHttp.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + getAccessControl(options: Models.DirectoryGetAccessControlOptionalParams, callback: coreHttp.ServiceCallback): void; + getAccessControl(options?: Models.DirectoryGetAccessControlOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getAccessControlOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new coreHttp.Serializer(Mappers, true); +const createOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PUT", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.resource + ], + headerParameters: [ + Parameters.directoryProperties, + Parameters.posixPermissions, + Parameters.posixUmask, + Parameters.version, + Parameters.requestId, + Parameters.cacheControl, + Parameters.contentType, + Parameters.contentEncoding, + Parameters.contentLanguage, + Parameters.contentDisposition, + Parameters.leaseId0, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince, + Parameters.ifMatch, + Parameters.ifNoneMatch + ], + responses: { + 201: { + headersMapper: Mappers.DirectoryCreateHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; + +const renameOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PUT", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.marker1, + Parameters.pathRenameMode + ], + headerParameters: [ + Parameters.renameSource, + Parameters.directoryProperties, + Parameters.posixPermissions, + Parameters.posixUmask, + Parameters.sourceLeaseId, + Parameters.version, + Parameters.requestId, + Parameters.cacheControl, + Parameters.contentType, + Parameters.contentEncoding, + Parameters.contentLanguage, + Parameters.contentDisposition, + Parameters.leaseId0, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince, + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.sourceIfModifiedSince, + Parameters.sourceIfUnmodifiedSince, + Parameters.sourceIfMatch, + Parameters.sourceIfNoneMatch + ], + responses: { + 201: { + headersMapper: Mappers.DirectoryRenameHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; + +const deleteMethodOperationSpec: coreHttp.OperationSpec = { + httpMethod: "DELETE", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.recursiveDirectoryDelete, + Parameters.marker1 + ], + headerParameters: [ + Parameters.version, + Parameters.requestId, + Parameters.leaseId0, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince, + Parameters.ifMatch, + Parameters.ifNoneMatch + ], + responses: { + 200: { + headersMapper: Mappers.DirectoryDeleteHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; + +const setAccessControlOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PATCH", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.action5 + ], + headerParameters: [ + Parameters.owner, + Parameters.group, + Parameters.posixPermissions, + Parameters.posixAcl, + Parameters.requestId, + Parameters.version, + Parameters.leaseId0, + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince + ], + responses: { + 200: { + headersMapper: Mappers.DirectorySetAccessControlHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; + +const getAccessControlOperationSpec: coreHttp.OperationSpec = { + httpMethod: "HEAD", + path: "{filesystem}/{path}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.upn, + Parameters.action6 + ], + headerParameters: [ + Parameters.requestId, + Parameters.version, + Parameters.leaseId0, + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.ifModifiedSince, + Parameters.ifUnmodifiedSince + ], + responses: { + 200: { + headersMapper: Mappers.DirectoryGetAccessControlHeaders + }, + default: { + bodyMapper: Mappers.DataLakeStorageError + } + }, + isXML: true, + serializer +}; diff --git a/sdk/storage/storage-blob/src/generated/src/operations/index.ts b/sdk/storage/storage-blob/src/generated/src/operations/index.ts index 342e4c76c4dc..f993049d620a 100644 --- a/sdk/storage/storage-blob/src/generated/src/operations/index.ts +++ b/sdk/storage/storage-blob/src/generated/src/operations/index.ts @@ -10,6 +10,7 @@ export * from "./service"; export * from "./container"; +export * from "./directory"; export * from "./blob"; export * from "./pageBlob"; export * from "./appendBlob"; diff --git a/sdk/storage/storage-blob/src/generated/src/operations/pageBlob.ts b/sdk/storage/storage-blob/src/generated/src/operations/pageBlob.ts index 7235b49f3ec7..b792aea26fd7 100644 --- a/sdk/storage/storage-blob/src/generated/src/operations/pageBlob.ts +++ b/sdk/storage/storage-blob/src/generated/src/operations/pageBlob.ts @@ -34,22 +34,14 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - create( - contentLength: number, - blobContentLength: number, - options?: Models.PageBlobCreateOptionalParams - ): Promise; + create(contentLength: number, blobContentLength: number, options?: Models.PageBlobCreateOptionalParams): Promise; /** * @param contentLength The length of the request. * @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. * The page blob size must be aligned to a 512-byte boundary. * @param callback The callback */ - create( - contentLength: number, - blobContentLength: number, - callback: coreHttp.ServiceCallback - ): void; + create(contentLength: number, blobContentLength: number, callback: coreHttp.ServiceCallback): void; /** * @param contentLength The length of the request. * @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. @@ -57,18 +49,8 @@ export class PageBlob { * @param options The optional parameters * @param callback The callback */ - create( - contentLength: number, - blobContentLength: number, - options: Models.PageBlobCreateOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - create( - contentLength: number, - blobContentLength: number, - options?: Models.PageBlobCreateOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + create(contentLength: number, blobContentLength: number, options: Models.PageBlobCreateOptionalParams, callback: coreHttp.ServiceCallback): void; + create(contentLength: number, blobContentLength: number, options?: Models.PageBlobCreateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { contentLength, @@ -76,8 +58,7 @@ export class PageBlob { options }, createOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -87,39 +68,21 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - uploadPages( - body: coreHttp.HttpRequestBody, - contentLength: number, - options?: Models.PageBlobUploadPagesOptionalParams - ): Promise; + uploadPages(body: coreHttp.HttpRequestBody, contentLength: number, options?: Models.PageBlobUploadPagesOptionalParams): Promise; /** * @param body Initial data * @param contentLength The length of the request. * @param callback The callback */ - uploadPages( - body: coreHttp.HttpRequestBody, - contentLength: number, - callback: coreHttp.ServiceCallback - ): void; + uploadPages(body: coreHttp.HttpRequestBody, contentLength: number, callback: coreHttp.ServiceCallback): void; /** * @param body Initial data * @param contentLength The length of the request. * @param options The optional parameters * @param callback The callback */ - uploadPages( - body: coreHttp.HttpRequestBody, - contentLength: number, - options: Models.PageBlobUploadPagesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - uploadPages( - body: coreHttp.HttpRequestBody, - contentLength: number, - options?: Models.PageBlobUploadPagesOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + uploadPages(body: coreHttp.HttpRequestBody, contentLength: number, options: Models.PageBlobUploadPagesOptionalParams, callback: coreHttp.ServiceCallback): void; + uploadPages(body: coreHttp.HttpRequestBody, contentLength: number, options?: Models.PageBlobUploadPagesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { body, @@ -127,8 +90,7 @@ export class PageBlob { options }, uploadPagesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -137,10 +99,7 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - clearPages( - contentLength: number, - options?: Models.PageBlobClearPagesOptionalParams - ): Promise; + clearPages(contentLength: number, options?: Models.PageBlobClearPagesOptionalParams): Promise; /** * @param contentLength The length of the request. * @param callback The callback @@ -151,24 +110,15 @@ export class PageBlob { * @param options The optional parameters * @param callback The callback */ - clearPages( - contentLength: number, - options: Models.PageBlobClearPagesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - clearPages( - contentLength: number, - options?: Models.PageBlobClearPagesOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + clearPages(contentLength: number, options: Models.PageBlobClearPagesOptionalParams, callback: coreHttp.ServiceCallback): void; + clearPages(contentLength: number, options?: Models.PageBlobClearPagesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { contentLength, options }, clearPagesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -224,9 +174,7 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - getPageRanges( - options?: Models.PageBlobGetPageRangesOptionalParams - ): Promise; + getPageRanges(options?: Models.PageBlobGetPageRangesOptionalParams): Promise; /** * @param callback The callback */ @@ -235,23 +183,14 @@ export class PageBlob { * @param options The optional parameters * @param callback The callback */ - getPageRanges( - options: Models.PageBlobGetPageRangesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - getPageRanges( - options?: - | Models.PageBlobGetPageRangesOptionalParams - | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + getPageRanges(options: Models.PageBlobGetPageRangesOptionalParams, callback: coreHttp.ServiceCallback): void; + getPageRanges(options?: Models.PageBlobGetPageRangesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getPageRangesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -260,9 +199,7 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - getPageRangesDiff( - options?: Models.PageBlobGetPageRangesDiffOptionalParams - ): Promise; + getPageRangesDiff(options?: Models.PageBlobGetPageRangesDiffOptionalParams): Promise; /** * @param callback The callback */ @@ -271,23 +208,14 @@ export class PageBlob { * @param options The optional parameters * @param callback The callback */ - getPageRangesDiff( - options: Models.PageBlobGetPageRangesDiffOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - getPageRangesDiff( - options?: - | Models.PageBlobGetPageRangesDiffOptionalParams - | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + getPageRangesDiff(options: Models.PageBlobGetPageRangesDiffOptionalParams, callback: coreHttp.ServiceCallback): void; + getPageRangesDiff(options?: Models.PageBlobGetPageRangesDiffOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getPageRangesDiffOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -297,10 +225,7 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - resize( - blobContentLength: number, - options?: Models.PageBlobResizeOptionalParams - ): Promise; + resize(blobContentLength: number, options?: Models.PageBlobResizeOptionalParams): Promise; /** * @param blobContentLength This header specifies the maximum size for the page blob, up to 1 TB. * The page blob size must be aligned to a 512-byte boundary. @@ -313,24 +238,15 @@ export class PageBlob { * @param options The optional parameters * @param callback The callback */ - resize( - blobContentLength: number, - options: Models.PageBlobResizeOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - resize( - blobContentLength: number, - options?: Models.PageBlobResizeOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + resize(blobContentLength: number, options: Models.PageBlobResizeOptionalParams, callback: coreHttp.ServiceCallback): void; + resize(blobContentLength: number, options?: Models.PageBlobResizeOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { blobContentLength, options }, resizeOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -341,20 +257,14 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - updateSequenceNumber( - sequenceNumberAction: Models.SequenceNumberActionType, - options?: Models.PageBlobUpdateSequenceNumberOptionalParams - ): Promise; + updateSequenceNumber(sequenceNumberAction: Models.SequenceNumberActionType, options?: Models.PageBlobUpdateSequenceNumberOptionalParams): Promise; /** * @param sequenceNumberAction Required if the x-ms-blob-sequence-number header is set for the * request. This property applies to page blobs only. This property indicates how the service * should modify the blob's sequence number. Possible values include: 'max', 'update', 'increment' * @param callback The callback */ - updateSequenceNumber( - sequenceNumberAction: Models.SequenceNumberActionType, - callback: coreHttp.ServiceCallback - ): void; + updateSequenceNumber(sequenceNumberAction: Models.SequenceNumberActionType, callback: coreHttp.ServiceCallback): void; /** * @param sequenceNumberAction Required if the x-ms-blob-sequence-number header is set for the * request. This property applies to page blobs only. This property indicates how the service @@ -362,24 +272,15 @@ export class PageBlob { * @param options The optional parameters * @param callback The callback */ - updateSequenceNumber( - sequenceNumberAction: Models.SequenceNumberActionType, - options: Models.PageBlobUpdateSequenceNumberOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - updateSequenceNumber( - sequenceNumberAction: Models.SequenceNumberActionType, - options?: Models.PageBlobUpdateSequenceNumberOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + updateSequenceNumber(sequenceNumberAction: Models.SequenceNumberActionType, options: Models.PageBlobUpdateSequenceNumberOptionalParams, callback: coreHttp.ServiceCallback): void; + updateSequenceNumber(sequenceNumberAction: Models.SequenceNumberActionType, options?: Models.PageBlobUpdateSequenceNumberOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { sequenceNumberAction, options }, updateSequenceNumberOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -395,10 +296,7 @@ export class PageBlob { * @param [options] The optional parameters * @returns Promise */ - copyIncremental( - copySource: string, - options?: Models.PageBlobCopyIncrementalOptionalParams - ): Promise; + copyIncremental(copySource: string, options?: Models.PageBlobCopyIncrementalOptionalParams): Promise; /** * @param copySource Specifies the name of the source page blob snapshot. This value is a URL of up * to 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it @@ -415,24 +313,15 @@ export class PageBlob { * @param options The optional parameters * @param callback The callback */ - copyIncremental( - copySource: string, - options: Models.PageBlobCopyIncrementalOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - copyIncremental( - copySource: string, - options?: Models.PageBlobCopyIncrementalOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + copyIncremental(copySource: string, options: Models.PageBlobCopyIncrementalOptionalParams, callback: coreHttp.ServiceCallback): void; + copyIncremental(copySource: string, options?: Models.PageBlobCopyIncrementalOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { copySource, options }, copyIncrementalOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -441,8 +330,12 @@ const serializer = new coreHttp.Serializer(Mappers, true); const createOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout + ], headerParameters: [ Parameters.contentLength, Parameters.metadata, @@ -450,6 +343,7 @@ const createOperationSpec: coreHttp.OperationSpec = { Parameters.blobSequenceNumber, Parameters.version, Parameters.requestId, + Parameters.tier0, Parameters.blobType0, Parameters.blobContentType, Parameters.blobContentEncoding, @@ -458,6 +352,9 @@ const createOperationSpec: coreHttp.OperationSpec = { Parameters.blobCacheControl, Parameters.blobContentDisposition, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -478,16 +375,25 @@ const createOperationSpec: coreHttp.OperationSpec = { const uploadPagesOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp11], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp12 + ], headerParameters: [ Parameters.contentLength, Parameters.transactionalContentMD5, + Parameters.transactionalContentCrc64, Parameters.range0, Parameters.version, Parameters.requestId, Parameters.pageWrite0, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifSequenceNumberLessThanOrEqualTo, Parameters.ifSequenceNumberLessThan, Parameters.ifSequenceNumberEqualTo, @@ -522,8 +428,13 @@ const uploadPagesOperationSpec: coreHttp.OperationSpec = { const clearPagesOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp11], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp12 + ], headerParameters: [ Parameters.contentLength, Parameters.range0, @@ -531,6 +442,9 @@ const clearPagesOperationSpec: coreHttp.OperationSpec = { Parameters.requestId, Parameters.pageWrite1, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifSequenceNumberLessThanOrEqualTo, Parameters.ifSequenceNumberLessThan, Parameters.ifSequenceNumberEqualTo, @@ -554,17 +468,26 @@ const clearPagesOperationSpec: coreHttp.OperationSpec = { const uploadPagesFromURLOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp11], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp12 + ], headerParameters: [ Parameters.sourceUrl, Parameters.sourceRange0, Parameters.sourceContentMD5, + Parameters.sourceContentCrc64, Parameters.contentLength, Parameters.range1, Parameters.version, Parameters.requestId, Parameters.pageWrite0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.leaseId0, Parameters.ifSequenceNumberLessThanOrEqualTo, Parameters.ifSequenceNumberLessThan, @@ -593,8 +516,14 @@ const uploadPagesFromURLOperationSpec: coreHttp.OperationSpec = { const getPageRangesOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.snapshot, Parameters.timeout, Parameters.comp12], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.snapshot, + Parameters.timeout, + Parameters.comp13 + ], headerParameters: [ Parameters.range0, Parameters.version, @@ -621,12 +550,14 @@ const getPageRangesOperationSpec: coreHttp.OperationSpec = { const getPageRangesDiffOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], + urlParameters: [ + Parameters.url + ], queryParameters: [ Parameters.snapshot, Parameters.timeout, Parameters.prevsnapshot, - Parameters.comp12 + Parameters.comp13 ], headerParameters: [ Parameters.range0, @@ -654,13 +585,21 @@ const getPageRangesDiffOperationSpec: coreHttp.OperationSpec = { const resizeOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp0], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp0 + ], headerParameters: [ Parameters.blobContentLength, Parameters.version, Parameters.requestId, Parameters.leaseId0, + Parameters.encryptionKey, + Parameters.encryptionKeySha256, + Parameters.encryptionAlgorithm, Parameters.ifModifiedSince, Parameters.ifUnmodifiedSince, Parameters.ifMatch, @@ -681,8 +620,13 @@ const resizeOperationSpec: coreHttp.OperationSpec = { const updateSequenceNumberOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp0], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp0 + ], headerParameters: [ Parameters.sequenceNumberAction, Parameters.blobSequenceNumber, @@ -709,8 +653,13 @@ const updateSequenceNumberOperationSpec: coreHttp.OperationSpec = { const copyIncrementalOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{containerName}/{blob}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp13], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp14 + ], headerParameters: [ Parameters.copySource, Parameters.version, diff --git a/sdk/storage/storage-blob/src/generated/src/operations/service.ts b/sdk/storage/storage-blob/src/generated/src/operations/service.ts index c5b93b15f41b..75bab9cf21fc 100644 --- a/sdk/storage/storage-blob/src/generated/src/operations/service.ts +++ b/sdk/storage/storage-blob/src/generated/src/operations/service.ts @@ -8,7 +8,7 @@ * regenerated. */ -import * as msRest from "@azure/core-http"; +import * as coreHttp from "@azure/core-http"; import * as Models from "../models"; import * as Mappers from "../models/serviceMappers"; import * as Parameters from "../models/parameters"; @@ -33,41 +33,26 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - setProperties( - storageServiceProperties: Models.StorageServiceProperties, - options?: Models.ServiceSetPropertiesOptionalParams - ): Promise; + setProperties(storageServiceProperties: Models.StorageServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams): Promise; /** * @param storageServiceProperties The StorageService properties. * @param callback The callback */ - setProperties( - storageServiceProperties: Models.StorageServiceProperties, - callback: msRest.ServiceCallback - ): void; + setProperties(storageServiceProperties: Models.StorageServiceProperties, callback: coreHttp.ServiceCallback): void; /** * @param storageServiceProperties The StorageService properties. * @param options The optional parameters * @param callback The callback */ - setProperties( - storageServiceProperties: Models.StorageServiceProperties, - options: Models.ServiceSetPropertiesOptionalParams, - callback: msRest.ServiceCallback - ): void; - setProperties( - storageServiceProperties: Models.StorageServiceProperties, - options?: Models.ServiceSetPropertiesOptionalParams | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + setProperties(storageServiceProperties: Models.StorageServiceProperties, options: Models.ServiceSetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void; + setProperties(storageServiceProperties: Models.StorageServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { storageServiceProperties, options }, setPropertiesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -76,34 +61,23 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - getProperties( - options?: Models.ServiceGetPropertiesOptionalParams - ): Promise; + getProperties(options?: Models.ServiceGetPropertiesOptionalParams): Promise; /** * @param callback The callback */ - getProperties(callback: msRest.ServiceCallback): void; + getProperties(callback: coreHttp.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - getProperties( - options: Models.ServiceGetPropertiesOptionalParams, - callback: msRest.ServiceCallback - ): void; - getProperties( - options?: - | Models.ServiceGetPropertiesOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getProperties(options: Models.ServiceGetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void; + getProperties(options?: Models.ServiceGetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getPropertiesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -113,34 +87,23 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - getStatistics( - options?: Models.ServiceGetStatisticsOptionalParams - ): Promise; + getStatistics(options?: Models.ServiceGetStatisticsOptionalParams): Promise; /** * @param callback The callback */ - getStatistics(callback: msRest.ServiceCallback): void; + getStatistics(callback: coreHttp.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - getStatistics( - options: Models.ServiceGetStatisticsOptionalParams, - callback: msRest.ServiceCallback - ): void; - getStatistics( - options?: - | Models.ServiceGetStatisticsOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getStatistics(options: Models.ServiceGetStatisticsOptionalParams, callback: coreHttp.ServiceCallback): void; + getStatistics(options?: Models.ServiceGetStatisticsOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getStatisticsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -149,82 +112,52 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - listContainersSegment( - options?: Models.ServiceListContainersSegmentOptionalParams - ): Promise; + listContainersSegment(options?: Models.ServiceListContainersSegmentOptionalParams): Promise; /** * @param callback The callback */ - listContainersSegment( - callback: msRest.ServiceCallback - ): void; + listContainersSegment(callback: coreHttp.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listContainersSegment( - options: Models.ServiceListContainersSegmentOptionalParams, - callback: msRest.ServiceCallback - ): void; - listContainersSegment( - options?: - | Models.ServiceListContainersSegmentOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listContainersSegment(options: Models.ServiceListContainersSegmentOptionalParams, callback: coreHttp.ServiceCallback): void; + listContainersSegment(options?: Models.ServiceListContainersSegmentOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listContainersSegmentOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** - * Retrieves a user delgation key for the Blob service. This is only a valid operation when using + * Retrieves a user delegation key for the Blob service. This is only a valid operation when using * bearer token authentication. * @param keyInfo * @param [options] The optional parameters * @returns Promise */ - getUserDelegationKey( - keyInfo: Models.KeyInfo, - options?: Models.ServiceGetUserDelegationKeyOptionalParams - ): Promise; + getUserDelegationKey(keyInfo: Models.KeyInfo, options?: Models.ServiceGetUserDelegationKeyOptionalParams): Promise; /** * @param keyInfo * @param callback The callback */ - getUserDelegationKey( - keyInfo: Models.KeyInfo, - callback: msRest.ServiceCallback - ): void; + getUserDelegationKey(keyInfo: Models.KeyInfo, callback: coreHttp.ServiceCallback): void; /** * @param keyInfo * @param options The optional parameters * @param callback The callback */ - getUserDelegationKey( - keyInfo: Models.KeyInfo, - options: Models.ServiceGetUserDelegationKeyOptionalParams, - callback: msRest.ServiceCallback - ): void; - getUserDelegationKey( - keyInfo: Models.KeyInfo, - options?: - | Models.ServiceGetUserDelegationKeyOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getUserDelegationKey(keyInfo: Models.KeyInfo, options: Models.ServiceGetUserDelegationKeyOptionalParams, callback: coreHttp.ServiceCallback): void; + getUserDelegationKey(keyInfo: Models.KeyInfo, options?: Models.ServiceGetUserDelegationKeyOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { keyInfo, options }, getUserDelegationKeyOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -232,39 +165,81 @@ export class Service { * @param [options] The optional parameters * @returns Promise */ - getAccountInfo( - options?: msRest.RequestOptionsBase - ): Promise; + getAccountInfo(options?: coreHttp.RequestOptionsBase): Promise; /** * @param callback The callback */ - getAccountInfo(callback: msRest.ServiceCallback): void; + getAccountInfo(callback: coreHttp.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - getAccountInfo(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getAccountInfo( - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAccountInfo(options: coreHttp.RequestOptionsBase, callback: coreHttp.ServiceCallback): void; + getAccountInfo(options?: coreHttp.RequestOptionsBase | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getAccountInfoOperationSpec, - callback - ) as Promise; + callback) as Promise; + } + + /** + * The Batch operation allows multiple API calls to be embedded into a single HTTP request. + * @param body Initial data + * @param contentLength The length of the request. + * @param multipartContentType Required. The value of this header must be multipart/mixed with a + * batch boundary. Example header value: multipart/mixed; boundary=batch_ + * @param [options] The optional parameters + * @returns Promise + */ + submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, options?: Models.ServiceSubmitBatchOptionalParams): Promise; + /** + * @param body Initial data + * @param contentLength The length of the request. + * @param multipartContentType Required. The value of this header must be multipart/mixed with a + * batch boundary. Example header value: multipart/mixed; boundary=batch_ + * @param callback The callback + */ + submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, callback: coreHttp.ServiceCallback): void; + /** + * @param body Initial data + * @param contentLength The length of the request. + * @param multipartContentType Required. The value of this header must be multipart/mixed with a + * batch boundary. Example header value: multipart/mixed; boundary=batch_ + * @param options The optional parameters + * @param callback The callback + */ + submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, options: Models.ServiceSubmitBatchOptionalParams, callback: coreHttp.ServiceCallback): void; + submitBatch(body: coreHttp.HttpRequestBody, contentLength: number, multipartContentType: string, options?: Models.ServiceSubmitBatchOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + body, + contentLength, + multipartContentType, + options + }, + submitBatchOperationSpec, + callback) as Promise; } } // Operation Specifications -const serializer = new msRest.Serializer(Mappers, true); -const setPropertiesOperationSpec: msRest.OperationSpec = { +const serializer = new coreHttp.Serializer(Mappers, true); +const setPropertiesOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.restype0, Parameters.comp0], - headerParameters: [Parameters.version, Parameters.requestId], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype0, + Parameters.comp0 + ], + headerParameters: [ + Parameters.version, + Parameters.requestId + ], requestBody: { parameterPath: "storageServiceProperties", mapper: { @@ -285,11 +260,20 @@ const setPropertiesOperationSpec: msRest.OperationSpec = { serializer }; -const getPropertiesOperationSpec: msRest.OperationSpec = { +const getPropertiesOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.restype0, Parameters.comp0], - headerParameters: [Parameters.version, Parameters.requestId], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype0, + Parameters.comp0 + ], + headerParameters: [ + Parameters.version, + Parameters.requestId + ], responses: { 200: { bodyMapper: Mappers.StorageServiceProperties, @@ -303,11 +287,20 @@ const getPropertiesOperationSpec: msRest.OperationSpec = { serializer }; -const getStatisticsOperationSpec: msRest.OperationSpec = { +const getStatisticsOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.restype0, Parameters.comp1], - headerParameters: [Parameters.version, Parameters.requestId], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype0, + Parameters.comp1 + ], + headerParameters: [ + Parameters.version, + Parameters.requestId + ], responses: { 200: { bodyMapper: Mappers.StorageServiceStats, @@ -321,18 +314,23 @@ const getStatisticsOperationSpec: msRest.OperationSpec = { serializer }; -const listContainersSegmentOperationSpec: msRest.OperationSpec = { +const listContainersSegmentOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", - urlParameters: [Parameters.url], + urlParameters: [ + Parameters.url + ], queryParameters: [ Parameters.prefix, - Parameters.marker, + Parameters.marker0, Parameters.maxresults, Parameters.include0, Parameters.timeout, Parameters.comp2 ], - headerParameters: [Parameters.version, Parameters.requestId], + headerParameters: [ + Parameters.version, + Parameters.requestId + ], responses: { 200: { bodyMapper: Mappers.ListContainersSegmentResponse, @@ -346,11 +344,20 @@ const listContainersSegmentOperationSpec: msRest.OperationSpec = { serializer }; -const getUserDelegationKeyOperationSpec: msRest.OperationSpec = { +const getUserDelegationKeyOperationSpec: coreHttp.OperationSpec = { httpMethod: "POST", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.restype0, Parameters.comp3], - headerParameters: [Parameters.version, Parameters.requestId], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype0, + Parameters.comp3 + ], + headerParameters: [ + Parameters.version, + Parameters.requestId + ], requestBody: { parameterPath: "keyInfo", mapper: { @@ -372,11 +379,18 @@ const getUserDelegationKeyOperationSpec: msRest.OperationSpec = { serializer }; -const getAccountInfoOperationSpec: msRest.OperationSpec = { +const getAccountInfoOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", - urlParameters: [Parameters.url], - queryParameters: [Parameters.restype1, Parameters.comp0], - headerParameters: [Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.restype1, + Parameters.comp0 + ], + headerParameters: [ + Parameters.version + ], responses: { 200: { headersMapper: Mappers.ServiceGetAccountInfoHeaders @@ -388,3 +402,47 @@ const getAccountInfoOperationSpec: msRest.OperationSpec = { isXML: true, serializer }; + +const submitBatchOperationSpec: coreHttp.OperationSpec = { + httpMethod: "POST", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp4 + ], + headerParameters: [ + Parameters.contentLength, + Parameters.multipartContentType, + Parameters.version, + Parameters.requestId + ], + requestBody: { + parameterPath: "body", + mapper: { + required: true, + serializedName: "body", + type: { + name: "Stream" + } + } + }, + contentType: "application/xml; charset=utf-8", + responses: { + 202: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + }, + headersMapper: Mappers.ServiceSubmitBatchHeaders + }, + default: { + bodyMapper: Mappers.StorageError + } + }, + isXML: true, + serializer +}; diff --git a/sdk/storage/storage-blob/src/generated/src/storageClient.ts b/sdk/storage/storage-blob/src/generated/src/storageClient.ts index d6daf46d68c7..1e52d3cfe105 100644 --- a/sdk/storage/storage-blob/src/generated/src/storageClient.ts +++ b/sdk/storage/storage-blob/src/generated/src/storageClient.ts @@ -8,7 +8,6 @@ * regenerated. */ -import * as coreHttp from "@azure/core-http"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -18,6 +17,7 @@ class StorageClient extends StorageClientContext { // Operation groups service: operations.Service; container: operations.Container; + directory: operations.Directory; blob: operations.Blob; pageBlob: operations.PageBlob; appendBlob: operations.AppendBlob; @@ -29,10 +29,11 @@ class StorageClient extends StorageClientContext { * operation. * @param [options] The parameter options */ - constructor(url: string, options?: coreHttp.ServiceClientOptions) { + constructor(url: string, options?: Models.StorageClientOptions) { super(url, options); this.service = new operations.Service(this); this.container = new operations.Container(this); + this.directory = new operations.Directory(this); this.blob = new operations.Blob(this); this.pageBlob = new operations.PageBlob(this); this.appendBlob = new operations.AppendBlob(this); diff --git a/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts b/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts index dfb12fb294e1..5f96d208685a 100644 --- a/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts +++ b/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts @@ -9,6 +9,7 @@ */ import * as coreHttp from "@azure/core-http"; +import * as Models from "./models"; const packageName = "azure-storage-blob"; const packageVersion = "1.0.0"; @@ -16,6 +17,7 @@ const packageVersion = "1.0.0"; export class StorageClientContext extends coreHttp.ServiceClient { url: string; version: string; + pathRenameMode?: Models.PathRenameMode; /** * Initializes a new instance of the StorageClientContext class. @@ -23,7 +25,7 @@ export class StorageClientContext extends coreHttp.ServiceClient { * operation. * @param [options] The parameter options */ - constructor(url: string, options?: coreHttp.ServiceClientOptions) { + constructor(url: string, options?: Models.StorageClientOptions) { if (url == undefined) { throw new Error("'url' cannot be null."); } @@ -39,9 +41,12 @@ export class StorageClientContext extends coreHttp.ServiceClient { super(undefined, options); - this.version = '2018-11-09'; + this.version = '2019-02-02'; this.baseUri = "{url}"; this.requestContentType = "application/json; charset=utf-8"; this.url = url; + if (options.pathRenameMode !== null && options.pathRenameMode !== undefined) { + this.pathRenameMode = options.pathRenameMode; + } } } diff --git a/sdk/storage/storage-blob/swagger/README.md b/sdk/storage/storage-blob/swagger/README.md index a1299b09a503..da2eae313ab3 100644 --- a/sdk/storage/storage-blob/swagger/README.md +++ b/sdk/storage/storage-blob/swagger/README.md @@ -10,7 +10,7 @@ enable-xml: true generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated -input-file: ./blob-storage-2018-11-09.json +input-file: ./blob-storage-2019-02-02.json model-date-time-as-string: true optional-response-headers: true ``` diff --git a/sdk/storage/storage-file/package.json b/sdk/storage/storage-file/package.json index 00e7b2c1e21a..595f165c4fb6 100644 --- a/sdk/storage/storage-file/package.json +++ b/sdk/storage/storage-file/package.json @@ -20,7 +20,7 @@ }, "scripts": { "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 --use=@microsoft.azure/autorest.typescript@4.1.1", + "build:autorest": "autorest ./swagger/README.md --typescript --use=@microsoft.azure/autorest.typescript@5.0.0", "build:browserzip": "gulp zip", "build:es6": "tsc -p tsconfig.json", "build:nodebrowser": "rollup -c 2>&1", diff --git a/sdk/storage/storage-file/src/generated/src/models/directoryMappers.ts b/sdk/storage/storage-file/src/generated/src/models/directoryMappers.ts index cd0a1c81b941..973bb2dc4a1f 100644 --- a/sdk/storage/storage-file/src/generated/src/models/directoryMappers.ts +++ b/sdk/storage/storage-file/src/generated/src/models/directoryMappers.ts @@ -9,12 +9,13 @@ export { DirectoryCreateHeaders, DirectoryDeleteHeaders, + DirectoryForceCloseHandlesHeaders, DirectoryGetPropertiesHeaders, DirectoryItem, DirectoryListFilesAndDirectoriesSegmentHeaders, DirectoryListHandlesHeaders, DirectorySetMetadataHeaders, - DirectoryForceCloseHandlesHeaders, + DirectorySetPropertiesHeaders, FileItem, FileProperty, FilesAndDirectoriesListSegment, diff --git a/sdk/storage/storage-file/src/generated/src/models/fileMappers.ts b/sdk/storage/storage-file/src/generated/src/models/fileMappers.ts index a95c7f70f987..01b8947a09ca 100644 --- a/sdk/storage/storage-file/src/generated/src/models/fileMappers.ts +++ b/sdk/storage/storage-file/src/generated/src/models/fileMappers.ts @@ -18,6 +18,7 @@ export { FileSetHTTPHeadersHeaders, FileSetMetadataHeaders, FileStartCopyHeaders, + FileUploadRangeFromURLHeaders, FileUploadRangeHeaders, HandleItem, ListHandlesResponse, diff --git a/sdk/storage/storage-file/src/generated/src/models/index.ts b/sdk/storage/storage-file/src/generated/src/models/index.ts index db608acec0c4..d3fe028b0116 100644 --- a/sdk/storage/storage-file/src/generated/src/models/index.ts +++ b/sdk/storage/storage-file/src/generated/src/models/index.ts @@ -6,8 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreHttp from "@azure/core-http"; /** * An Access policy. @@ -293,6 +293,17 @@ export interface StorageServiceProperties { cors?: CorsRule[]; } +/** + * Permission(a security descriptor) described in the Security Descriptor Definition + * Language(SDDL). + */ +export interface Permission { + /** + * Permission(a security descriptor) described in the SDDL. + */ + permission: string; +} + /** * Additional parameters for a set of operations, such as: File_create, File_setHTTPHeaders. */ @@ -324,6 +335,20 @@ export interface FileHTTPHeaders { fileContentDisposition?: string; } +/** + * Additional parameters for uploadRangeFromURL operation. + */ +export interface SourceModifiedAccessConditions { + /** + * Specify the crc64 value to operate only on range with a matching crc64 checksum. + */ + sourceIfMatchCrc64?: Uint8Array; + /** + * Specify the crc64 value to operate only on range without a matching crc64 checksum. + */ + sourceIfNoneMatchCrc64?: Uint8Array; +} + /** * Optional Parameters. */ @@ -455,6 +480,30 @@ export interface ShareCreateSnapshotOptionalParams extends coreHttp.RequestOptio metadata?: { [propertyName: string]: string }; } +/** + * Optional Parameters. + */ +export interface ShareCreatePermissionOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for File Service Operations. + */ + timeoutParameter?: number; +} + +/** + * Optional Parameters. + */ +export interface ShareGetPermissionOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for File Service Operations. + */ + timeoutParameter?: number; +} + /** * Optional Parameters. */ @@ -541,6 +590,19 @@ export interface DirectoryCreateOptionalParams extends coreHttp.RequestOptionsBa * A name-value pair to associate with a file storage object. */ metadata?: { [propertyName: string]: string }; + /** + * If specified the permission (security descriptor) shall be set for the directory/file. This + * header can be used if Permission size is <= 8KB, else x-ms-file-permission-key header shall be + * used. Default value: Inherit. If SDDL is specified as input, it must have owner, group and + * dacl. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be + * specified. + */ + filePermission?: string; + /** + * Key of the permission to be set for the directory/file. Note: Only one of the + * x-ms-file-permission or x-ms-file-permission-key should be specified. + */ + filePermissionKey?: string; } /** @@ -572,6 +634,31 @@ export interface DirectoryDeleteMethodOptionalParams extends coreHttp.RequestOpt timeoutParameter?: number; } +/** + * Optional Parameters. + */ +export interface DirectorySetPropertiesOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The timeout parameter is expressed in seconds. For more information, see Setting + * Timeouts for File Service Operations. + */ + timeoutParameter?: number; + /** + * If specified the permission (security descriptor) shall be set for the directory/file. This + * header can be used if Permission size is <= 8KB, else x-ms-file-permission-key header shall be + * used. Default value: Inherit. If SDDL is specified as input, it must have owner, group and + * dacl. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be + * specified. + */ + filePermission?: string; + /** + * Key of the permission to be set for the directory/file. Note: Only one of the + * x-ms-file-permission or x-ms-file-permission-key should be specified. + */ + filePermissionKey?: string; +} + /** * Optional Parameters. */ @@ -591,8 +678,7 @@ export interface DirectorySetMetadataOptionalParams extends coreHttp.RequestOpti /** * Optional Parameters. */ -export interface DirectoryListFilesAndDirectoriesSegmentOptionalParams - extends coreHttp.RequestOptionsBase { +export interface DirectoryListFilesAndDirectoriesSegmentOptionalParams extends coreHttp.RequestOptionsBase { /** * Filters the results to return only entries whose name begins with the specified prefix. */ @@ -699,6 +785,19 @@ export interface FileCreateOptionalParams extends coreHttp.RequestOptionsBase { * A name-value pair to associate with a file storage object. */ metadata?: { [propertyName: string]: string }; + /** + * If specified the permission (security descriptor) shall be set for the directory/file. This + * header can be used if Permission size is <= 8KB, else x-ms-file-permission-key header shall be + * used. Default value: Inherit. If SDDL is specified as input, it must have owner, group and + * dacl. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be + * specified. + */ + filePermission?: string; + /** + * Key of the permission to be set for the directory/file. Note: Only one of the + * x-ms-file-permission or x-ms-file-permission-key should be specified. + */ + filePermissionKey?: string; /** * Additional parameters for the operation */ @@ -771,6 +870,19 @@ export interface FileSetHTTPHeadersOptionalParams extends coreHttp.RequestOption * size of the file, then all ranges above the specified byte value are cleared. */ fileContentLength?: number; + /** + * If specified the permission (security descriptor) shall be set for the directory/file. This + * header can be used if Permission size is <= 8KB, else x-ms-file-permission-key header shall be + * used. Default value: Inherit. If SDDL is specified as input, it must have owner, group and + * dacl. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be + * specified. + */ + filePermission?: string; + /** + * Key of the permission to be set for the directory/file. Note: Only one of the + * x-ms-file-permission or x-ms-file-permission-key should be specified. + */ + filePermissionKey?: string; /** * Additional parameters for the operation */ @@ -819,12 +931,7 @@ export interface FileUploadRangeOptionalParams extends coreHttp.RequestOptionsBa /** * Optional Parameters. */ -export interface FileGetRangeListOptionalParams extends coreHttp.RequestOptionsBase { - /** - * The snapshot parameter is an opaque DateTime value that, when present, specifies the share - * snapshot to query. - */ - sharesnapshot?: string; +export interface FileUploadRangeFromURLOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -832,55 +939,44 @@ export interface FileGetRangeListOptionalParams extends coreHttp.RequestOptionsB */ timeoutParameter?: number; /** - * Specifies the range of bytes over which to list ranges, inclusively. + * Bytes of source data in the specified range. */ - range?: string; -} - -/** - * Optional Parameters. - */ -export interface FileStartCopyOptionalParams extends coreHttp.RequestOptionsBase { + sourceRange?: string; /** - * The timeout parameter is expressed in seconds. For more information, see Setting - * Timeouts for File Service Operations. + * Specify the crc64 calculated for the range of bytes that must be read from the copy source. */ - timeoutParameter?: number; + sourceContentCrc64?: Uint8Array; /** - * A name-value pair to associate with a file storage object. + * Additional parameters for the operation */ - metadata?: { [propertyName: string]: string }; + sourceModifiedAccessConditions?: SourceModifiedAccessConditions; } /** * Optional Parameters. */ -export interface FileAbortCopyOptionalParams extends coreHttp.RequestOptionsBase { +export interface FileGetRangeListOptionalParams extends coreHttp.RequestOptionsBase { + /** + * The snapshot parameter is an opaque DateTime value that, when present, specifies the share + * snapshot to query. + */ + sharesnapshot?: string; /** * The timeout parameter is expressed in seconds. For more information, see Setting * Timeouts for File Service Operations. */ timeoutParameter?: number; + /** + * Specifies the range of bytes over which to list ranges, inclusively. + */ + range?: string; } /** * Optional Parameters. */ -export interface FileListHandlesOptionalParams extends coreHttp.RequestOptionsBase { - /** - * A string value that identifies the portion of the list to be returned with the next list - * operation. The operation returns a marker value within the response body if the list returned - * was not complete. The marker value may then be used in a subsequent call to request the next - * set of list items. The marker value is opaque to the client. - */ - marker?: string; - /** - * Specifies the maximum number of entries to return. If the request does not specify maxresults, - * or specifies a value greater than 5,000, the server will return up to 5,000 items. - */ - maxresults?: number; +export interface FileStartCopyOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting @@ -888,34 +984,21 @@ export interface FileListHandlesOptionalParams extends coreHttp.RequestOptionsBa */ timeoutParameter?: number; /** - * The snapshot parameter is an opaque DateTime value that, when present, specifies the share - * snapshot to query. + * A name-value pair to associate with a file storage object. */ - sharesnapshot?: string; + metadata?: { [propertyName: string]: string }; } /** * Optional Parameters. */ -export interface FileForceCloseHandlesOptionalParams extends coreHttp.RequestOptionsBase { +export interface FileAbortCopyOptionalParams extends coreHttp.RequestOptionsBase { /** * The timeout parameter is expressed in seconds. For more information, see Setting * Timeouts for File Service Operations. */ timeoutParameter?: number; - /** - * A string value that identifies the portion of the list to be returned with the next list - * operation. The operation returns a marker value within the response body if the list returned - * was not complete. The marker value may then be used in a subsequent call to request the next - * set of list items. The marker value is opaque to the client. - */ - marker?: string; - /** - * The snapshot parameter is an opaque DateTime value that, when present, specifies the share - * snapshot to query. - */ - sharesnapshot?: string; } /** @@ -1151,6 +1234,52 @@ export interface ShareCreateSnapshotHeaders { errorCode?: string; } +/** + * Defines headers for CreatePermission operation. + */ +export interface ShareCreatePermissionHeaders { + /** + * This header uniquely identifies the request that was made and can be used for troubleshooting + * the request. + */ + requestId?: string; + /** + * Indicates the version of the File service used to execute the request. + */ + version?: string; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + /** + * Key of the permission set for the directory/file. + */ + filePermissionKey?: string; + errorCode?: string; +} + +/** + * Defines headers for GetPermission operation. + */ +export interface ShareGetPermissionHeaders { + /** + * This header uniquely identifies the request that was made and can be used for troubleshooting + * the request. + */ + requestId?: string; + /** + * Indicates the version of the File service used to execute the request. + */ + version?: string; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + errorCode?: string; +} + /** * Defines headers for SetQuota operation. */ @@ -1339,6 +1468,34 @@ export interface DirectoryCreateHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * Key of the permission set for the directory. + */ + filePermissionKey?: string; + /** + * Attributes set for the directory. + */ + fileAttributes?: string; + /** + * Creation time for the directory. + */ + fileCreationTime?: Date; + /** + * Last write time for the directory. + */ + fileLastWriteTime?: Date; + /** + * Change time for the directory. + */ + fileChangeTime?: Date; + /** + * The fileId of the directory. + */ + fileId?: string; + /** + * The parent fileId of the directory. + */ + fileParentId?: string; errorCode?: string; } @@ -1375,6 +1532,34 @@ export interface DirectoryGetPropertiesHeaders { * using the specified algorithm. Otherwise, the value is set to false. */ isServerEncrypted?: boolean; + /** + * Attributes set for the directory. + */ + fileAttributes?: string; + /** + * Creation time for the directory. + */ + fileCreationTime?: Date; + /** + * Last write time for the directory. + */ + fileLastWriteTime?: Date; + /** + * Change time for the directory. + */ + fileChangeTime?: Date; + /** + * Key of the permission set for the directory. + */ + filePermissionKey?: string; + /** + * The fileId of the directory. + */ + fileId?: string; + /** + * The parent fileId of the directory. + */ + fileParentId?: string; errorCode?: string; } @@ -1399,6 +1584,70 @@ export interface DirectoryDeleteHeaders { errorCode?: string; } +/** + * Defines headers for SetProperties operation. + */ +export interface DirectorySetPropertiesHeaders { + /** + * The ETag contains a value which represents the version of the file, in quotes. + */ + eTag?: string; + /** + * This header uniquely identifies the request that was made and can be used for troubleshooting + * the request. + */ + requestId?: string; + /** + * Returns the date and time the directory was last modified. Any operation that modifies the + * directory or its properties updates the last modified time. Operations on files do not affect + * the last modified time of the directory. + */ + lastModified?: Date; + /** + * Indicates the version of the File service used to execute the request. + */ + version?: string; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + /** + * The value of this header is set to true if the contents of the request are successfully + * encrypted using the specified algorithm, and false otherwise. + */ + isServerEncrypted?: boolean; + /** + * Key of the permission set for the directory. + */ + filePermissionKey?: string; + /** + * Attributes set for the directory. + */ + fileAttributes?: string; + /** + * Creation time for the directory. + */ + fileCreationTime?: Date; + /** + * Last write time for the directory. + */ + fileLastWriteTime?: Date; + /** + * Change time for the directory. + */ + fileChangeTime?: Date; + /** + * The fileId of the directory. + */ + fileId?: string; + /** + * The parent fileId of the directory. + */ + fileParentId?: string; + errorCode?: string; +} + /** * Defines headers for SetMetadata operation. */ @@ -1544,16 +1793,44 @@ export interface FileCreateHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; - errorCode?: string; -} - -/** - * Defines headers for Download operation. - */ -export interface FileDownloadHeaders { /** - * Returns the date and time the file was last modified. Any operation that modifies the file or - * its properties updates the last modified time. + * Key of the permission set for the file. + */ + filePermissionKey?: string; + /** + * Attributes set for the file. + */ + fileAttributes?: string; + /** + * Creation time for the file. + */ + fileCreationTime?: Date; + /** + * Last write time for the file. + */ + fileLastWriteTime?: Date; + /** + * Change time for the file. + */ + fileChangeTime?: Date; + /** + * The fileId of the file. + */ + fileId?: string; + /** + * The parent fileId of the file. + */ + fileParentId?: string; + errorCode?: string; +} + +/** + * Defines headers for Download operation. + */ +export interface FileDownloadHeaders { + /** + * Returns the date and time the file was last modified. Any operation that modifies the file or + * its properties updates the last modified time. */ lastModified?: Date; metadata?: { [propertyName: string]: string }; @@ -1663,6 +1940,34 @@ export interface FileDownloadHeaders { * the file is unencrypted, or if only parts of the file/application metadata are encrypted). */ isServerEncrypted?: boolean; + /** + * Attributes set for the file. + */ + fileAttributes?: string; + /** + * Creation time for the file. + */ + fileCreationTime?: Date; + /** + * Last write time for the file. + */ + fileLastWriteTime?: Date; + /** + * Change time for the file. + */ + fileChangeTime?: Date; + /** + * Key of the permission set for the file. + */ + filePermissionKey?: string; + /** + * The fileId of the file. + */ + fileId?: string; + /** + * The parent fileId of the file. + */ + fileParentId?: string; errorCode?: string; } @@ -1769,6 +2074,34 @@ export interface FileGetPropertiesHeaders { * the file is unencrypted, or if only parts of the file/application metadata are encrypted). */ isServerEncrypted?: boolean; + /** + * Attributes set for the file. + */ + fileAttributes?: string; + /** + * Creation time for the file. + */ + fileCreationTime?: Date; + /** + * Last write time for the file. + */ + fileLastWriteTime?: Date; + /** + * Change time for the file. + */ + fileChangeTime?: Date; + /** + * Key of the permission set for the file. + */ + filePermissionKey?: string; + /** + * The fileId of the file. + */ + fileId?: string; + /** + * The parent fileId of the file. + */ + fileParentId?: string; errorCode?: string; } @@ -1826,6 +2159,34 @@ export interface FileSetHTTPHeadersHeaders { * encrypted using the specified algorithm, and false otherwise. */ isServerEncrypted?: boolean; + /** + * Key of the permission set for the file. + */ + filePermissionKey?: string; + /** + * Attributes set for the file. + */ + fileAttributes?: string; + /** + * Creation time for the file. + */ + fileCreationTime?: Date; + /** + * Last write time for the file. + */ + fileLastWriteTime?: Date; + /** + * Change time for the file. + */ + fileChangeTime?: Date; + /** + * The fileId of the directory. + */ + fileId?: string; + /** + * The parent fileId of the directory. + */ + fileParentId?: string; errorCode?: string; } @@ -1901,6 +2262,48 @@ export interface FileUploadRangeHeaders { errorCode?: string; } +/** + * Defines headers for UploadRangeFromURL operation. + */ +export interface FileUploadRangeFromURLHeaders { + /** + * The ETag contains a value which represents the version of the file, in quotes. + */ + eTag?: string; + /** + * Returns the date and time the directory was last modified. Any operation that modifies the + * share or its properties or metadata updates the last modified time. Operations on files do not + * affect the last modified time of the share. + */ + lastModified?: Date; + /** + * This header is returned so that the client can check for message content integrity. The value + * of this header is computed by the File service; it is not necessarily the same value as may + * have been specified in the request headers. + */ + xMsContentCrc64?: Uint8Array; + /** + * This header uniquely identifies the request that was made and can be used for troubleshooting + * the request. + */ + requestId?: string; + /** + * Indicates the version of the File service used to execute the request. + */ + version?: string; + /** + * A UTC date/time value generated by the service that indicates the time at which the response + * was initiated. + */ + date?: Date; + /** + * The value of this header is set to true if the contents of the request are successfully + * encrypted using the specified algorithm, and false otherwise. + */ + isServerEncrypted?: boolean; + errorCode?: string; +} + /** * Defines headers for GetRangeList operation. */ @@ -2073,67 +2476,7 @@ export interface FileForceCloseHandlesHeaders { * @readonly * @enum {string} */ -export type StorageErrorCode = - | "AccountAlreadyExists" - | "AccountBeingCreated" - | "AccountIsDisabled" - | "AuthenticationFailed" - | "AuthorizationFailure" - | "ConditionHeadersNotSupported" - | "ConditionNotMet" - | "EmptyMetadataKey" - | "InsufficientAccountPermissions" - | "InternalError" - | "InvalidAuthenticationInfo" - | "InvalidHeaderValue" - | "InvalidHttpVerb" - | "InvalidInput" - | "InvalidMd5" - | "InvalidMetadata" - | "InvalidQueryParameterValue" - | "InvalidRange" - | "InvalidResourceName" - | "InvalidUri" - | "InvalidXmlDocument" - | "InvalidXmlNodeValue" - | "Md5Mismatch" - | "MetadataTooLarge" - | "MissingContentLengthHeader" - | "MissingRequiredQueryParameter" - | "MissingRequiredHeader" - | "MissingRequiredXmlNode" - | "MultipleConditionHeadersNotSupported" - | "OperationTimedOut" - | "OutOfRangeInput" - | "OutOfRangeQueryParameterValue" - | "RequestBodyTooLarge" - | "ResourceTypeMismatch" - | "RequestUrlFailedToParse" - | "ResourceAlreadyExists" - | "ResourceNotFound" - | "ServerBusy" - | "UnsupportedHeader" - | "UnsupportedXmlNode" - | "UnsupportedQueryParameter" - | "UnsupportedHttpVerb" - | "CannotDeleteFileOrDirectory" - | "ClientCacheFlushDelay" - | "DeletePending" - | "DirectoryNotEmpty" - | "FileLockConflict" - | "InvalidFileOrDirectoryPathName" - | "ParentNotFound" - | "ReadOnlyAttribute" - | "ShareAlreadyExists" - | "ShareBeingDeleted" - | "ShareDisabled" - | "ShareNotFound" - | "SharingViolation" - | "ShareSnapshotInProgress" - | "ShareSnapshotCountExceeded" - | "ShareSnapshotOperationNotSupported" - | "ShareHasSnapshots" - | "ContainerQuotaDowngradeNotAllowed"; +export type StorageErrorCode = 'AccountAlreadyExists' | 'AccountBeingCreated' | 'AccountIsDisabled' | 'AuthenticationFailed' | 'AuthorizationFailure' | 'ConditionHeadersNotSupported' | 'ConditionNotMet' | 'EmptyMetadataKey' | 'InsufficientAccountPermissions' | 'InternalError' | 'InvalidAuthenticationInfo' | 'InvalidHeaderValue' | 'InvalidHttpVerb' | 'InvalidInput' | 'InvalidMd5' | 'InvalidMetadata' | 'InvalidQueryParameterValue' | 'InvalidRange' | 'InvalidResourceName' | 'InvalidUri' | 'InvalidXmlDocument' | 'InvalidXmlNodeValue' | 'Md5Mismatch' | 'MetadataTooLarge' | 'MissingContentLengthHeader' | 'MissingRequiredQueryParameter' | 'MissingRequiredHeader' | 'MissingRequiredXmlNode' | 'MultipleConditionHeadersNotSupported' | 'OperationTimedOut' | 'OutOfRangeInput' | 'OutOfRangeQueryParameterValue' | 'RequestBodyTooLarge' | 'ResourceTypeMismatch' | 'RequestUrlFailedToParse' | 'ResourceAlreadyExists' | 'ResourceNotFound' | 'ServerBusy' | 'UnsupportedHeader' | 'UnsupportedXmlNode' | 'UnsupportedQueryParameter' | 'UnsupportedHttpVerb' | 'CannotDeleteFileOrDirectory' | 'ClientCacheFlushDelay' | 'DeletePending' | 'DirectoryNotEmpty' | 'FileLockConflict' | 'InvalidFileOrDirectoryPathName' | 'ParentNotFound' | 'ReadOnlyAttribute' | 'ShareAlreadyExists' | 'ShareBeingDeleted' | 'ShareDisabled' | 'ShareNotFound' | 'SharingViolation' | 'ShareSnapshotInProgress' | 'ShareSnapshotCountExceeded' | 'ShareSnapshotOperationNotSupported' | 'ShareHasSnapshots' | 'ContainerQuotaDowngradeNotAllowed'; /** * Defines values for DeleteSnapshotsOptionType. @@ -2141,7 +2484,7 @@ export type StorageErrorCode = * @readonly * @enum {string} */ -export type DeleteSnapshotsOptionType = "include"; +export type DeleteSnapshotsOptionType = 'include'; /** * Defines values for ListSharesIncludeType. @@ -2149,7 +2492,7 @@ export type DeleteSnapshotsOptionType = "include"; * @readonly * @enum {string} */ -export type ListSharesIncludeType = "snapshots" | "metadata"; +export type ListSharesIncludeType = 'snapshots' | 'metadata'; /** * Defines values for CopyStatusType. @@ -2157,7 +2500,7 @@ export type ListSharesIncludeType = "snapshots" | "metadata"; * @readonly * @enum {string} */ -export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; +export type CopyStatusType = 'pending' | 'success' | 'aborted' | 'failed'; /** * Defines values for FileRangeWriteType. @@ -2165,7 +2508,7 @@ export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; * @readonly * @enum {string} */ -export type FileRangeWriteType = "update" | "clear"; +export type FileRangeWriteType = 'update' | 'clear'; /** * Defines values for FileType. @@ -2173,7 +2516,7 @@ export type FileRangeWriteType = "update" | "clear"; * @readonly * @enum {string} */ -export type FileType = "File"; +export type FileType = 'File'; /** * Contains response data for the setProperties operation. @@ -2183,22 +2526,21 @@ export type ServiceSetPropertiesResponse = ServiceSetPropertiesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ServiceSetPropertiesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ServiceSetPropertiesHeaders; + }; }; /** * Contains response data for the getProperties operation. */ -export type ServiceGetPropertiesResponse = StorageServiceProperties & - ServiceGetPropertiesHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ServiceGetPropertiesResponse = StorageServiceProperties & ServiceGetPropertiesHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2214,17 +2556,16 @@ export type ServiceGetPropertiesResponse = StorageServiceProperties & */ parsedBody: StorageServiceProperties; }; - }; +}; /** * Contains response data for the listSharesSegment operation. */ -export type ServiceListSharesSegmentResponse = ListSharesResponse & - ServiceListSharesSegmentHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ServiceListSharesSegmentResponse = ListSharesResponse & ServiceListSharesSegmentHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2240,7 +2581,7 @@ export type ServiceListSharesSegmentResponse = ListSharesResponse & */ parsedBody: ListSharesResponse; }; - }; +}; /** * Contains response data for the create operation. @@ -2250,11 +2591,11 @@ export type ShareCreateResponse = ShareCreateHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ShareCreateHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareCreateHeaders; + }; }; /** @@ -2265,11 +2606,11 @@ export type ShareGetPropertiesResponse = ShareGetPropertiesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ShareGetPropertiesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareGetPropertiesHeaders; + }; }; /** @@ -2280,11 +2621,11 @@ export type ShareDeleteResponse = ShareDeleteHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ShareDeleteHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareDeleteHeaders; + }; }; /** @@ -2295,11 +2636,51 @@ export type ShareCreateSnapshotResponse = ShareCreateSnapshotHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ShareCreateSnapshotHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareCreateSnapshotHeaders; + }; +}; + +/** + * Contains response data for the createPermission operation. + */ +export type ShareCreatePermissionResponse = ShareCreatePermissionHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareCreatePermissionHeaders; + }; +}; + +/** + * Contains response data for the getPermission operation. + */ +export type ShareGetPermissionResponse = Permission & ShareGetPermissionHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareGetPermissionHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Permission; + }; }; /** @@ -2310,11 +2691,11 @@ export type ShareSetQuotaResponse = ShareSetQuotaHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ShareSetQuotaHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareSetQuotaHeaders; + }; }; /** @@ -2325,22 +2706,21 @@ export type ShareSetMetadataResponse = ShareSetMetadataHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ShareSetMetadataHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareSetMetadataHeaders; + }; }; /** * Contains response data for the getAccessPolicy operation. */ -export type ShareGetAccessPolicyResponse = SignedIdentifier[] & - ShareGetAccessPolicyHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ShareGetAccessPolicyResponse = Array & ShareGetAccessPolicyHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2356,7 +2736,7 @@ export type ShareGetAccessPolicyResponse = SignedIdentifier[] & */ parsedBody: SignedIdentifier[]; }; - }; +}; /** * Contains response data for the setAccessPolicy operation. @@ -2366,22 +2746,21 @@ export type ShareSetAccessPolicyResponse = ShareSetAccessPolicyHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ShareSetAccessPolicyHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ShareSetAccessPolicyHeaders; + }; }; /** * Contains response data for the getStatistics operation. */ -export type ShareGetStatisticsResponse = ShareStats & - ShareGetStatisticsHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type ShareGetStatisticsResponse = ShareStats & ShareGetStatisticsHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2397,7 +2776,7 @@ export type ShareGetStatisticsResponse = ShareStats & */ parsedBody: ShareStats; }; - }; +}; /** * Contains response data for the create operation. @@ -2407,11 +2786,11 @@ export type DirectoryCreateResponse = DirectoryCreateHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DirectoryCreateHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryCreateHeaders; + }; }; /** @@ -2422,11 +2801,11 @@ export type DirectoryGetPropertiesResponse = DirectoryGetPropertiesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DirectoryGetPropertiesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryGetPropertiesHeaders; + }; }; /** @@ -2437,11 +2816,26 @@ export type DirectoryDeleteResponse = DirectoryDeleteHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DirectoryDeleteHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryDeleteHeaders; + }; +}; + +/** + * Contains response data for the setProperties operation. + */ +export type DirectorySetPropertiesResponse = DirectorySetPropertiesHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectorySetPropertiesHeaders; + }; }; /** @@ -2452,22 +2846,21 @@ export type DirectorySetMetadataResponse = DirectorySetMetadataHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DirectorySetMetadataHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectorySetMetadataHeaders; + }; }; /** * Contains response data for the listFilesAndDirectoriesSegment operation. */ -export type DirectoryListFilesAndDirectoriesSegmentResponse = ListFilesAndDirectoriesSegmentResponse & - DirectoryListFilesAndDirectoriesSegmentHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type DirectoryListFilesAndDirectoriesSegmentResponse = ListFilesAndDirectoriesSegmentResponse & DirectoryListFilesAndDirectoriesSegmentHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2483,17 +2876,16 @@ export type DirectoryListFilesAndDirectoriesSegmentResponse = ListFilesAndDirect */ parsedBody: ListFilesAndDirectoriesSegmentResponse; }; - }; +}; /** * Contains response data for the listHandles operation. */ -export type DirectoryListHandlesResponse = ListHandlesResponse & - DirectoryListHandlesHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type DirectoryListHandlesResponse = ListHandlesResponse & DirectoryListHandlesHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2509,7 +2901,7 @@ export type DirectoryListHandlesResponse = ListHandlesResponse & */ parsedBody: ListHandlesResponse; }; - }; +}; /** * Contains response data for the forceCloseHandles operation. @@ -2519,11 +2911,11 @@ export type DirectoryForceCloseHandlesResponse = DirectoryForceCloseHandlesHeade * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DirectoryForceCloseHandlesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DirectoryForceCloseHandlesHeaders; + }; }; /** @@ -2534,11 +2926,11 @@ export type FileCreateResponse = FileCreateHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileCreateHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileCreateHeaders; + }; }; /** @@ -2565,11 +2957,11 @@ export type FileDownloadResponse = FileDownloadHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileDownloadHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileDownloadHeaders; + }; }; /** @@ -2580,11 +2972,11 @@ export type FileGetPropertiesResponse = FileGetPropertiesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileGetPropertiesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileGetPropertiesHeaders; + }; }; /** @@ -2595,11 +2987,11 @@ export type FileDeleteResponse = FileDeleteHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileDeleteHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileDeleteHeaders; + }; }; /** @@ -2610,11 +3002,11 @@ export type FileSetHTTPHeadersResponse = FileSetHTTPHeadersHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileSetHTTPHeadersHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileSetHTTPHeadersHeaders; + }; }; /** @@ -2625,11 +3017,11 @@ export type FileSetMetadataResponse = FileSetMetadataHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileSetMetadataHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileSetMetadataHeaders; + }; }; /** @@ -2640,22 +3032,36 @@ export type FileUploadRangeResponse = FileUploadRangeHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileUploadRangeHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileUploadRangeHeaders; + }; +}; + +/** + * Contains response data for the uploadRangeFromURL operation. + */ +export type FileUploadRangeFromURLResponse = FileUploadRangeFromURLHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileUploadRangeFromURLHeaders; + }; }; /** * Contains response data for the getRangeList operation. */ -export type FileGetRangeListResponse = Range[] & - FileGetRangeListHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type FileGetRangeListResponse = Array & FileGetRangeListHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2671,7 +3077,7 @@ export type FileGetRangeListResponse = Range[] & */ parsedBody: Range[]; }; - }; +}; /** * Contains response data for the startCopy operation. @@ -2681,11 +3087,11 @@ export type FileStartCopyResponse = FileStartCopyHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileStartCopyHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileStartCopyHeaders; + }; }; /** @@ -2696,22 +3102,21 @@ export type FileAbortCopyResponse = FileAbortCopyHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileAbortCopyHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileAbortCopyHeaders; + }; }; /** * Contains response data for the listHandles operation. */ -export type FileListHandlesResponse = ListHandlesResponse & - FileListHandlesHeaders & { - /** - * The underlying HTTP response. - */ - _response: coreHttp.HttpResponse & { +export type FileListHandlesResponse = ListHandlesResponse & FileListHandlesHeaders & { + /** + * The underlying HTTP response. + */ + _response: coreHttp.HttpResponse & { /** * The parsed HTTP response headers. */ @@ -2727,7 +3132,7 @@ export type FileListHandlesResponse = ListHandlesResponse & */ parsedBody: ListHandlesResponse; }; - }; +}; /** * Contains response data for the forceCloseHandles operation. @@ -2737,9 +3142,9 @@ export type FileForceCloseHandlesResponse = FileForceCloseHandlesHeaders & { * The underlying HTTP response. */ _response: coreHttp.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: FileForceCloseHandlesHeaders; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: FileForceCloseHandlesHeaders; + }; }; diff --git a/sdk/storage/storage-file/src/generated/src/models/mappers.ts b/sdk/storage/storage-file/src/generated/src/models/mappers.ts index 9e9acc9b7412..4fc8b143138a 100644 --- a/sdk/storage/storage-file/src/generated/src/models/mappers.ts +++ b/sdk/storage/storage-file/src/generated/src/models/mappers.ts @@ -734,6 +734,24 @@ export const StorageServiceProperties: coreHttp.CompositeMapper = { } }; +export const Permission: coreHttp.CompositeMapper = { + serializedName: "Permission", + type: { + name: "Composite", + className: "Permission", + modelProperties: { + permission: { + xmlName: "Permission", + required: true, + serializedName: "Permission", + type: { + name: "String" + } + } + } + } +}; + export const FileHTTPHeaders: coreHttp.CompositeMapper = { xmlName: "file-HTTP-headers", type: { @@ -780,6 +798,28 @@ export const FileHTTPHeaders: coreHttp.CompositeMapper = { } }; +export const SourceModifiedAccessConditions: coreHttp.CompositeMapper = { + xmlName: "source-modified-access-conditions", + type: { + name: "Composite", + className: "SourceModifiedAccessConditions", + modelProperties: { + sourceIfMatchCrc64: { + xmlName: "sourceIfMatchCrc64", + type: { + name: "ByteArray" + } + }, + sourceIfNoneMatchCrc64: { + xmlName: "sourceIfNoneMatchCrc64", + type: { + name: "ByteArray" + } + } + } + } +}; + export const ServiceSetPropertiesHeaders: coreHttp.CompositeMapper = { serializedName: "service-setproperties-headers", type: { @@ -1060,6 +1100,80 @@ export const ShareCreateSnapshotHeaders: coreHttp.CompositeMapper = { } }; +export const ShareCreatePermissionHeaders: coreHttp.CompositeMapper = { + serializedName: "share-createpermission-headers", + type: { + name: "Composite", + className: "ShareCreatePermissionHeaders", + modelProperties: { + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "x-ms-error-code", + type: { + name: "String" + } + } + } + } +}; + +export const ShareGetPermissionHeaders: coreHttp.CompositeMapper = { + serializedName: "share-getpermission-headers", + type: { + name: "Composite", + className: "ShareGetPermissionHeaders", + modelProperties: { + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + errorCode: { + serializedName: "x-ms-error-code", + type: { + name: "String" + } + } + } + } +}; + export const ShareSetQuotaHeaders: coreHttp.CompositeMapper = { serializedName: "share-setquota-headers", type: { @@ -1332,6 +1446,48 @@ export const DirectoryCreateHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + fileAttributes: { + serializedName: "x-ms-file-attributes", + type: { + name: "String" + } + }, + fileCreationTime: { + serializedName: "x-ms-file-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileLastWriteTime: { + serializedName: "x-ms-file-last-write-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileChangeTime: { + serializedName: "x-ms-file-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileId: { + serializedName: "x-ms-file-id", + type: { + name: "String" + } + }, + fileParentId: { + serializedName: "x-ms-file-parent-id", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -1396,6 +1552,48 @@ export const DirectoryGetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + fileAttributes: { + serializedName: "x-ms-file-attributes", + type: { + name: "String" + } + }, + fileCreationTime: { + serializedName: "x-ms-file-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileLastWriteTime: { + serializedName: "x-ms-file-last-write-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileChangeTime: { + serializedName: "x-ms-file-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + fileId: { + serializedName: "x-ms-file-id", + type: { + name: "String" + } + }, + fileParentId: { + serializedName: "x-ms-file-parent-id", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -1440,6 +1638,100 @@ export const DirectoryDeleteHeaders: coreHttp.CompositeMapper = { } }; +export const DirectorySetPropertiesHeaders: coreHttp.CompositeMapper = { + serializedName: "directory-setproperties-headers", + type: { + name: "Composite", + className: "DirectorySetPropertiesHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + isServerEncrypted: { + serializedName: "x-ms-request-server-encrypted", + type: { + name: "Boolean" + } + }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + fileAttributes: { + serializedName: "x-ms-file-attributes", + type: { + name: "String" + } + }, + fileCreationTime: { + serializedName: "x-ms-file-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileLastWriteTime: { + serializedName: "x-ms-file-last-write-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileChangeTime: { + serializedName: "x-ms-file-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileId: { + serializedName: "x-ms-file-id", + type: { + name: "String" + } + }, + fileParentId: { + serializedName: "x-ms-file-parent-id", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "x-ms-error-code", + type: { + name: "String" + } + } + } + } +}; + export const DirectorySetMetadataHeaders: coreHttp.CompositeMapper = { serializedName: "directory-setmetadata-headers", type: { @@ -1654,6 +1946,48 @@ export const FileCreateHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + fileAttributes: { + serializedName: "x-ms-file-attributes", + type: { + name: "String" + } + }, + fileCreationTime: { + serializedName: "x-ms-file-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileLastWriteTime: { + serializedName: "x-ms-file-last-write-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileChangeTime: { + serializedName: "x-ms-file-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileId: { + serializedName: "x-ms-file-id", + type: { + name: "String" + } + }, + fileParentId: { + serializedName: "x-ms-file-parent-id", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -1820,6 +2154,48 @@ export const FileDownloadHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + fileAttributes: { + serializedName: "x-ms-file-attributes", + type: { + name: "String" + } + }, + fileCreationTime: { + serializedName: "x-ms-file-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileLastWriteTime: { + serializedName: "x-ms-file-last-write-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileChangeTime: { + serializedName: "x-ms-file-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + fileId: { + serializedName: "x-ms-file-id", + type: { + name: "String" + } + }, + fileParentId: { + serializedName: "x-ms-file-parent-id", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -1974,6 +2350,48 @@ export const FileGetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + fileAttributes: { + serializedName: "x-ms-file-attributes", + type: { + name: "String" + } + }, + fileCreationTime: { + serializedName: "x-ms-file-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileLastWriteTime: { + serializedName: "x-ms-file-last-write-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileChangeTime: { + serializedName: "x-ms-file-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + fileId: { + serializedName: "x-ms-file-id", + type: { + name: "String" + } + }, + fileParentId: { + serializedName: "x-ms-file-parent-id", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -2060,6 +2478,48 @@ export const FileSetHTTPHeadersHeaders: coreHttp.CompositeMapper = { name: "Boolean" } }, + filePermissionKey: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + }, + fileAttributes: { + serializedName: "x-ms-file-attributes", + type: { + name: "String" + } + }, + fileCreationTime: { + serializedName: "x-ms-file-creation-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileLastWriteTime: { + serializedName: "x-ms-file-last-write-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileChangeTime: { + serializedName: "x-ms-file-change-time", + type: { + name: "DateTimeRfc1123" + } + }, + fileId: { + serializedName: "x-ms-file-id", + type: { + name: "String" + } + }, + fileParentId: { + serializedName: "x-ms-file-parent-id", + type: { + name: "String" + } + }, errorCode: { serializedName: "x-ms-error-code", type: { @@ -2174,6 +2634,64 @@ export const FileUploadRangeHeaders: coreHttp.CompositeMapper = { } }; +export const FileUploadRangeFromURLHeaders: coreHttp.CompositeMapper = { + serializedName: "file-uploadrangefromurl-headers", + type: { + name: "Composite", + className: "FileUploadRangeFromURLHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + }, + lastModified: { + serializedName: "last-modified", + type: { + name: "DateTimeRfc1123" + } + }, + xMsContentCrc64: { + serializedName: "x-ms-content-crc64", + type: { + name: "ByteArray" + } + }, + requestId: { + serializedName: "x-ms-request-id", + type: { + name: "String" + } + }, + version: { + serializedName: "x-ms-version", + type: { + name: "String" + } + }, + date: { + serializedName: "date", + type: { + name: "DateTimeRfc1123" + } + }, + isServerEncrypted: { + serializedName: "x-ms-request-server-encrypted", + type: { + name: "Boolean" + } + }, + errorCode: { + serializedName: "x-ms-error-code", + type: { + name: "String" + } + } + } + } +}; + export const FileGetRangeListHeaders: coreHttp.CompositeMapper = { serializedName: "file-getrangelist-headers", type: { diff --git a/sdk/storage/storage-file/src/generated/src/models/parameters.ts b/sdk/storage/storage-file/src/generated/src/models/parameters.ts index a4252da3c616..21ad299f160e 100644 --- a/sdk/storage/storage-file/src/generated/src/models/parameters.ts +++ b/sdk/storage/storage-file/src/generated/src/models/parameters.ts @@ -16,7 +16,7 @@ export const comp0: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "properties", + defaultValue: 'properties', type: { name: "String" } @@ -28,7 +28,7 @@ export const comp1: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "list", + defaultValue: 'list', type: { name: "String" } @@ -40,7 +40,19 @@ export const comp10: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "copy", + defaultValue: 'rangelist', + type: { + name: "String" + } + } +}; +export const comp11: coreHttp.OperationQueryParameter = { + parameterPath: "comp", + mapper: { + required: true, + isConstant: true, + serializedName: "comp", + defaultValue: 'copy', type: { name: "String" } @@ -52,7 +64,7 @@ export const comp2: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "snapshot", + defaultValue: 'snapshot', type: { name: "String" } @@ -64,7 +76,7 @@ export const comp3: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "metadata", + defaultValue: 'filepermission', type: { name: "String" } @@ -76,7 +88,7 @@ export const comp4: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "acl", + defaultValue: 'metadata', type: { name: "String" } @@ -88,7 +100,7 @@ export const comp5: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "stats", + defaultValue: 'acl', type: { name: "String" } @@ -100,7 +112,7 @@ export const comp6: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "listhandles", + defaultValue: 'stats', type: { name: "String" } @@ -112,7 +124,7 @@ export const comp7: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "forceclosehandles", + defaultValue: 'listhandles', type: { name: "String" } @@ -124,7 +136,7 @@ export const comp8: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "range", + defaultValue: 'forceclosehandles', type: { name: "String" } @@ -136,7 +148,7 @@ export const comp9: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "comp", - defaultValue: "rangelist", + defaultValue: 'range', type: { name: "String" } @@ -153,7 +165,10 @@ export const contentLength: coreHttp.OperationParameter = { } }; export const contentMD5: coreHttp.OperationParameter = { - parameterPath: ["options", "contentMD5"], + parameterPath: [ + "options", + "contentMD5" + ], mapper: { serializedName: "Content-MD5", type: { @@ -167,7 +182,7 @@ export const copyActionAbortConstant: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-copy-action", - defaultValue: "abort", + defaultValue: 'abort', type: { name: "String" } @@ -194,17 +209,36 @@ export const copySource: coreHttp.OperationParameter = { } }; export const deleteSnapshots: coreHttp.OperationParameter = { - parameterPath: ["options", "deleteSnapshots"], + parameterPath: [ + "options", + "deleteSnapshots" + ], mapper: { serializedName: "x-ms-delete-snapshots", type: { name: "Enum", - allowedValues: ["include"] + allowedValues: [ + "include" + ] + } + } +}; +export const fileAttributes: coreHttp.OperationParameter = { + parameterPath: "fileAttributes", + mapper: { + required: true, + serializedName: "x-ms-file-attributes", + type: { + name: "String" } } }; export const fileCacheControl: coreHttp.OperationParameter = { - parameterPath: ["options", "fileHTTPHeaders", "fileCacheControl"], + parameterPath: [ + "options", + "fileHTTPHeaders", + "fileCacheControl" + ], mapper: { serializedName: "x-ms-cache-control", type: { @@ -213,7 +247,11 @@ export const fileCacheControl: coreHttp.OperationParameter = { } }; export const fileContentDisposition: coreHttp.OperationParameter = { - parameterPath: ["options", "fileHTTPHeaders", "fileContentDisposition"], + parameterPath: [ + "options", + "fileHTTPHeaders", + "fileContentDisposition" + ], mapper: { serializedName: "x-ms-content-disposition", type: { @@ -222,7 +260,11 @@ export const fileContentDisposition: coreHttp.OperationParameter = { } }; export const fileContentEncoding: coreHttp.OperationParameter = { - parameterPath: ["options", "fileHTTPHeaders", "fileContentEncoding"], + parameterPath: [ + "options", + "fileHTTPHeaders", + "fileContentEncoding" + ], mapper: { serializedName: "x-ms-content-encoding", type: { @@ -231,7 +273,11 @@ export const fileContentEncoding: coreHttp.OperationParameter = { } }; export const fileContentLanguage: coreHttp.OperationParameter = { - parameterPath: ["options", "fileHTTPHeaders", "fileContentLanguage"], + parameterPath: [ + "options", + "fileHTTPHeaders", + "fileContentLanguage" + ], mapper: { serializedName: "x-ms-content-language", type: { @@ -250,7 +296,10 @@ export const fileContentLength0: coreHttp.OperationParameter = { } }; export const fileContentLength1: coreHttp.OperationParameter = { - parameterPath: ["options", "fileContentLength"], + parameterPath: [ + "options", + "fileContentLength" + ], mapper: { serializedName: "x-ms-content-length", type: { @@ -259,7 +308,11 @@ export const fileContentLength1: coreHttp.OperationParameter = { } }; export const fileContentMD5: coreHttp.OperationParameter = { - parameterPath: ["options", "fileHTTPHeaders", "fileContentMD5"], + parameterPath: [ + "options", + "fileHTTPHeaders", + "fileContentMD5" + ], mapper: { serializedName: "x-ms-content-md5", type: { @@ -268,7 +321,11 @@ export const fileContentMD5: coreHttp.OperationParameter = { } }; export const fileContentType: coreHttp.OperationParameter = { - parameterPath: ["options", "fileHTTPHeaders", "fileContentType"], + parameterPath: [ + "options", + "fileHTTPHeaders", + "fileContentType" + ], mapper: { serializedName: "x-ms-content-type", type: { @@ -276,15 +333,84 @@ export const fileContentType: coreHttp.OperationParameter = { } } }; +export const fileCreationTime: coreHttp.OperationParameter = { + parameterPath: "fileCreationTime", + mapper: { + required: true, + serializedName: "x-ms-file-creation-time", + type: { + name: "String" + } + } +}; +export const fileLastWriteTime: coreHttp.OperationParameter = { + parameterPath: "fileLastWriteTime", + mapper: { + required: true, + serializedName: "x-ms-file-last-write-time", + type: { + name: "String" + } + } +}; +export const filePermission: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "filePermission" + ], + mapper: { + serializedName: "x-ms-file-permission", + type: { + name: "String" + } + } +}; +export const filePermissionKey0: coreHttp.OperationParameter = { + parameterPath: "filePermissionKey", + mapper: { + required: true, + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + } +}; +export const filePermissionKey1: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "filePermissionKey" + ], + mapper: { + serializedName: "x-ms-file-permission-key", + type: { + name: "String" + } + } +}; export const fileRangeWrite: coreHttp.OperationParameter = { parameterPath: "fileRangeWrite", mapper: { required: true, serializedName: "x-ms-write", - defaultValue: "update", + defaultValue: 'update', type: { name: "Enum", - allowedValues: ["update", "clear"] + allowedValues: [ + "update", + "clear" + ] + } + } +}; +export const fileRangeWriteFromUrl: coreHttp.OperationParameter = { + parameterPath: "fileRangeWriteFromUrl", + mapper: { + required: true, + isConstant: true, + serializedName: "x-ms-write", + defaultValue: 'update', + type: { + name: "String" } } }; @@ -294,7 +420,7 @@ export const fileTypeConstant: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-type", - defaultValue: "file", + defaultValue: 'file', type: { name: "String" } @@ -311,7 +437,10 @@ export const handleId: coreHttp.OperationParameter = { } }; export const include: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "include"], + parameterPath: [ + "options", + "include" + ], mapper: { serializedName: "include", type: { @@ -319,7 +448,10 @@ export const include: coreHttp.OperationQueryParameter = { element: { type: { name: "Enum", - allowedValues: ["snapshots", "metadata"] + allowedValues: [ + "snapshots", + "metadata" + ] } } } @@ -327,7 +459,10 @@ export const include: coreHttp.OperationQueryParameter = { collectionFormat: coreHttp.QueryCollectionFormat.Csv }; export const marker: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "marker"], + parameterPath: [ + "options", + "marker" + ], mapper: { serializedName: "marker", type: { @@ -336,7 +471,10 @@ export const marker: coreHttp.OperationQueryParameter = { } }; export const maxresults: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "maxresults"], + parameterPath: [ + "options", + "maxresults" + ], mapper: { serializedName: "maxresults", constraints: { @@ -348,7 +486,10 @@ export const maxresults: coreHttp.OperationQueryParameter = { } }; export const metadata: coreHttp.OperationParameter = { - parameterPath: ["options", "metadata"], + parameterPath: [ + "options", + "metadata" + ], mapper: { serializedName: "x-ms-meta", type: { @@ -362,19 +503,11 @@ export const metadata: coreHttp.OperationParameter = { headerCollectionPrefix: "x-ms-meta-" } }; -export const nextPageLink: coreHttp.OperationURLParameter = { - parameterPath: "nextPageLink", - mapper: { - required: true, - serializedName: "nextLink", - type: { - name: "String" - } - }, - skipEncoding: true -}; export const prefix: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "prefix"], + parameterPath: [ + "options", + "prefix" + ], mapper: { serializedName: "prefix", type: { @@ -383,7 +516,10 @@ export const prefix: coreHttp.OperationQueryParameter = { } }; export const quota: coreHttp.OperationParameter = { - parameterPath: ["options", "quota"], + parameterPath: [ + "options", + "quota" + ], mapper: { serializedName: "x-ms-share-quota", constraints: { @@ -395,7 +531,10 @@ export const quota: coreHttp.OperationParameter = { } }; export const range0: coreHttp.OperationParameter = { - parameterPath: ["options", "range"], + parameterPath: [ + "options", + "range" + ], mapper: { serializedName: "x-ms-range", type: { @@ -414,7 +553,10 @@ export const range1: coreHttp.OperationParameter = { } }; export const rangeGetContentMD5: coreHttp.OperationParameter = { - parameterPath: ["options", "rangeGetContentMD5"], + parameterPath: [ + "options", + "rangeGetContentMD5" + ], mapper: { serializedName: "x-ms-range-get-content-md5", type: { @@ -423,7 +565,10 @@ export const rangeGetContentMD5: coreHttp.OperationParameter = { } }; export const recursive: coreHttp.OperationParameter = { - parameterPath: ["options", "recursive"], + parameterPath: [ + "options", + "recursive" + ], mapper: { serializedName: "x-ms-recursive", type: { @@ -437,7 +582,7 @@ export const restype0: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "restype", - defaultValue: "service", + defaultValue: 'service', type: { name: "String" } @@ -449,7 +594,7 @@ export const restype1: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "restype", - defaultValue: "share", + defaultValue: 'share', type: { name: "String" } @@ -461,14 +606,17 @@ export const restype2: coreHttp.OperationQueryParameter = { required: true, isConstant: true, serializedName: "restype", - defaultValue: "directory", + defaultValue: 'directory', type: { name: "String" } } }; export const sharesnapshot: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "sharesnapshot"], + parameterPath: [ + "options", + "sharesnapshot" + ], mapper: { serializedName: "sharesnapshot", type: { @@ -476,8 +624,61 @@ export const sharesnapshot: coreHttp.OperationQueryParameter = { } } }; +export const sourceContentCrc64: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "sourceContentCrc64" + ], + mapper: { + serializedName: "x-ms-source-content-crc64", + type: { + name: "ByteArray" + } + } +}; +export const sourceIfMatchCrc64: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "sourceModifiedAccessConditions", + "sourceIfMatchCrc64" + ], + mapper: { + serializedName: "x-ms-source-if-match-crc64", + type: { + name: "ByteArray" + } + } +}; +export const sourceIfNoneMatchCrc64: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "sourceModifiedAccessConditions", + "sourceIfNoneMatchCrc64" + ], + mapper: { + serializedName: "x-ms-source-if-none-match-crc64", + type: { + name: "ByteArray" + } + } +}; +export const sourceRange: coreHttp.OperationParameter = { + parameterPath: [ + "options", + "sourceRange" + ], + mapper: { + serializedName: "x-ms-source-range", + type: { + name: "String" + } + } +}; export const timeout: coreHttp.OperationQueryParameter = { - parameterPath: ["options", "timeout"], + parameterPath: [ + "options", + "timeout" + ], mapper: { serializedName: "timeout", constraints: { @@ -493,7 +694,7 @@ export const url: coreHttp.OperationURLParameter = { mapper: { required: true, serializedName: "url", - defaultValue: "", + defaultValue: '', type: { name: "String" } diff --git a/sdk/storage/storage-file/src/generated/src/models/shareMappers.ts b/sdk/storage/storage-file/src/generated/src/models/shareMappers.ts index 587aa714def4..e1f7fe14e7ac 100644 --- a/sdk/storage/storage-file/src/generated/src/models/shareMappers.ts +++ b/sdk/storage/storage-file/src/generated/src/models/shareMappers.ts @@ -8,10 +8,13 @@ export { AccessPolicy, + Permission, ShareCreateHeaders, + ShareCreatePermissionHeaders, ShareCreateSnapshotHeaders, ShareDeleteHeaders, ShareGetAccessPolicyHeaders, + ShareGetPermissionHeaders, ShareGetPropertiesHeaders, ShareGetStatisticsHeaders, ShareSetAccessPolicyHeaders, diff --git a/sdk/storage/storage-file/src/generated/src/operations/directory.ts b/sdk/storage/storage-file/src/generated/src/operations/directory.ts index e3244fb2aad3..b458802c7f78 100644 --- a/sdk/storage/storage-file/src/generated/src/operations/directory.ts +++ b/sdk/storage/storage-file/src/generated/src/operations/directory.ts @@ -28,33 +28,41 @@ export class Directory { /** * Creates a new directory under the specified share or parent directory. + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param [options] The optional parameters * @returns Promise */ - create(options?: Models.DirectoryCreateOptionalParams): Promise; + create(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.DirectoryCreateOptionalParams): Promise; /** + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param callback The callback */ - create(callback: coreHttp.ServiceCallback): void; + create(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, callback: coreHttp.ServiceCallback): void; /** + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param options The optional parameters * @param callback The callback */ - create( - options: Models.DirectoryCreateOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - create( - options?: Models.DirectoryCreateOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + create(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options: Models.DirectoryCreateOptionalParams, callback: coreHttp.ServiceCallback): void; + create(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.DirectoryCreateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { + fileAttributes, + fileCreationTime, + fileLastWriteTime, options }, createOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -64,9 +72,7 @@ export class Directory { * @param [options] The optional parameters * @returns Promise */ - getProperties( - options?: Models.DirectoryGetPropertiesOptionalParams - ): Promise; + getProperties(options?: Models.DirectoryGetPropertiesOptionalParams): Promise; /** * @param callback The callback */ @@ -75,21 +81,14 @@ export class Directory { * @param options The optional parameters * @param callback The callback */ - getProperties( - options: Models.DirectoryGetPropertiesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - getProperties( - options?: Models.DirectoryGetPropertiesOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + getProperties(options: Models.DirectoryGetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void; + getProperties(options?: Models.DirectoryGetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getPropertiesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -98,9 +97,7 @@ export class Directory { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - options?: Models.DirectoryDeleteMethodOptionalParams - ): Promise; + deleteMethod(options?: Models.DirectoryDeleteMethodOptionalParams): Promise; /** * @param callback The callback */ @@ -109,21 +106,53 @@ export class Directory { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - options: Models.DirectoryDeleteMethodOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - deleteMethod( - options?: Models.DirectoryDeleteMethodOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + deleteMethod(options: Models.DirectoryDeleteMethodOptionalParams, callback: coreHttp.ServiceCallback): void; + deleteMethod(options?: Models.DirectoryDeleteMethodOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, deleteMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; + } + + /** + * Sets properties on the directory. + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. + * @param [options] The optional parameters + * @returns Promise + */ + setProperties(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.DirectorySetPropertiesOptionalParams): Promise; + /** + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. + * @param callback The callback + */ + setProperties(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, callback: coreHttp.ServiceCallback): void; + /** + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. + * @param options The optional parameters + * @param callback The callback + */ + setProperties(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options: Models.DirectorySetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void; + setProperties(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.DirectorySetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + fileAttributes, + fileCreationTime, + fileLastWriteTime, + options + }, + setPropertiesOperationSpec, + callback) as Promise; } /** @@ -131,9 +160,7 @@ export class Directory { * @param [options] The optional parameters * @returns Promise */ - setMetadata( - options?: Models.DirectorySetMetadataOptionalParams - ): Promise; + setMetadata(options?: Models.DirectorySetMetadataOptionalParams): Promise; /** * @param callback The callback */ @@ -142,21 +169,14 @@ export class Directory { * @param options The optional parameters * @param callback The callback */ - setMetadata( - options: Models.DirectorySetMetadataOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - setMetadata( - options?: Models.DirectorySetMetadataOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + setMetadata(options: Models.DirectorySetMetadataOptionalParams, callback: coreHttp.ServiceCallback): void; + setMetadata(options?: Models.DirectorySetMetadataOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, setMetadataOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -165,36 +185,23 @@ export class Directory { * @param [options] The optional parameters * @returns Promise */ - listFilesAndDirectoriesSegment( - options?: Models.DirectoryListFilesAndDirectoriesSegmentOptionalParams - ): Promise; + listFilesAndDirectoriesSegment(options?: Models.DirectoryListFilesAndDirectoriesSegmentOptionalParams): Promise; /** * @param callback The callback */ - listFilesAndDirectoriesSegment( - callback: coreHttp.ServiceCallback - ): void; + listFilesAndDirectoriesSegment(callback: coreHttp.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listFilesAndDirectoriesSegment( - options: Models.DirectoryListFilesAndDirectoriesSegmentOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - listFilesAndDirectoriesSegment( - options?: - | Models.DirectoryListFilesAndDirectoriesSegmentOptionalParams - | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + listFilesAndDirectoriesSegment(options: Models.DirectoryListFilesAndDirectoriesSegmentOptionalParams, callback: coreHttp.ServiceCallback): void; + listFilesAndDirectoriesSegment(options?: Models.DirectoryListFilesAndDirectoriesSegmentOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listFilesAndDirectoriesSegmentOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -202,9 +209,7 @@ export class Directory { * @param [options] The optional parameters * @returns Promise */ - listHandles( - options?: Models.DirectoryListHandlesOptionalParams - ): Promise; + listHandles(options?: Models.DirectoryListHandlesOptionalParams): Promise; /** * @param callback The callback */ @@ -213,23 +218,14 @@ export class Directory { * @param options The optional parameters * @param callback The callback */ - listHandles( - options: Models.DirectoryListHandlesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - listHandles( - options?: - | Models.DirectoryListHandlesOptionalParams - | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + listHandles(options: Models.DirectoryListHandlesOptionalParams, callback: coreHttp.ServiceCallback): void; + listHandles(options?: Models.DirectoryListHandlesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listHandlesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -239,10 +235,7 @@ export class Directory { * @param [options] The optional parameters * @returns Promise */ - forceCloseHandles( - handleId: string, - options?: Models.DirectoryForceCloseHandlesOptionalParams - ): Promise; + forceCloseHandles(handleId: string, options?: Models.DirectoryForceCloseHandlesOptionalParams): Promise; /** * @param handleId Specifies handle ID opened on the file or directory to be closed. Asterix (‘*’) * is a wildcard that specifies all handles. @@ -255,24 +248,15 @@ export class Directory { * @param options The optional parameters * @param callback The callback */ - forceCloseHandles( - handleId: string, - options: Models.DirectoryForceCloseHandlesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - forceCloseHandles( - handleId: string, - options?: Models.DirectoryForceCloseHandlesOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + forceCloseHandles(handleId: string, options: Models.DirectoryForceCloseHandlesOptionalParams, callback: coreHttp.ServiceCallback): void; + forceCloseHandles(handleId: string, options?: Models.DirectoryForceCloseHandlesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { handleId, options }, forceCloseHandlesOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -281,9 +265,22 @@ const serializer = new coreHttp.Serializer(Mappers, true); const createOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.restype2], - headerParameters: [Parameters.metadata, Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype2 + ], + headerParameters: [ + Parameters.metadata, + Parameters.version, + Parameters.filePermission, + Parameters.filePermissionKey1, + Parameters.fileAttributes, + Parameters.fileCreationTime, + Parameters.fileLastWriteTime + ], responses: { 201: { headersMapper: Mappers.DirectoryCreateHeaders @@ -299,9 +296,17 @@ const createOperationSpec: coreHttp.OperationSpec = { const getPropertiesOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{shareName}/{directory}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.sharesnapshot, Parameters.timeout, Parameters.restype2], - headerParameters: [Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.sharesnapshot, + Parameters.timeout, + Parameters.restype2 + ], + headerParameters: [ + Parameters.version + ], responses: { 200: { headersMapper: Mappers.DirectoryGetPropertiesHeaders @@ -317,9 +322,16 @@ const getPropertiesOperationSpec: coreHttp.OperationSpec = { const deleteMethodOperationSpec: coreHttp.OperationSpec = { httpMethod: "DELETE", path: "{shareName}/{directory}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.restype2], - headerParameters: [Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype2 + ], + headerParameters: [ + Parameters.version + ], responses: { 202: { headersMapper: Mappers.DirectoryDeleteHeaders @@ -332,12 +344,52 @@ const deleteMethodOperationSpec: coreHttp.OperationSpec = { serializer }; +const setPropertiesOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PUT", + path: "{shareName}/{directory}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype2, + Parameters.comp0 + ], + headerParameters: [ + Parameters.version, + Parameters.filePermission, + Parameters.filePermissionKey1, + Parameters.fileAttributes, + Parameters.fileCreationTime, + Parameters.fileLastWriteTime + ], + responses: { + 200: { + headersMapper: Mappers.DirectorySetPropertiesHeaders + }, + default: { + bodyMapper: Mappers.StorageError + } + }, + isXML: true, + serializer +}; + const setMetadataOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.restype2, Parameters.comp3], - headerParameters: [Parameters.metadata, Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype2, + Parameters.comp4 + ], + headerParameters: [ + Parameters.metadata, + Parameters.version + ], responses: { 200: { headersMapper: Mappers.DirectorySetMetadataHeaders @@ -353,7 +405,9 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = { const listFilesAndDirectoriesSegmentOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{shareName}/{directory}", - urlParameters: [Parameters.url], + urlParameters: [ + Parameters.url + ], queryParameters: [ Parameters.prefix, Parameters.sharesnapshot, @@ -363,7 +417,9 @@ const listFilesAndDirectoriesSegmentOperationSpec: coreHttp.OperationSpec = { Parameters.restype2, Parameters.comp1 ], - headerParameters: [Parameters.version], + headerParameters: [ + Parameters.version + ], responses: { 200: { bodyMapper: Mappers.ListFilesAndDirectoriesSegmentResponse, @@ -380,15 +436,20 @@ const listFilesAndDirectoriesSegmentOperationSpec: coreHttp.OperationSpec = { const listHandlesOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{shareName}/{directory}", - urlParameters: [Parameters.url], + urlParameters: [ + Parameters.url + ], queryParameters: [ Parameters.marker, Parameters.maxresults, Parameters.timeout, Parameters.sharesnapshot, - Parameters.comp6 + Parameters.comp7 + ], + headerParameters: [ + Parameters.recursive, + Parameters.version ], - headerParameters: [Parameters.recursive, Parameters.version], responses: { 200: { bodyMapper: Mappers.ListHandlesResponse, @@ -405,14 +466,20 @@ const listHandlesOperationSpec: coreHttp.OperationSpec = { const forceCloseHandlesOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}", - urlParameters: [Parameters.url], + urlParameters: [ + Parameters.url + ], queryParameters: [ Parameters.timeout, Parameters.marker, Parameters.sharesnapshot, - Parameters.comp7 + Parameters.comp8 + ], + headerParameters: [ + Parameters.handleId, + Parameters.recursive, + Parameters.version ], - headerParameters: [Parameters.handleId, Parameters.recursive, Parameters.version], responses: { 200: { headersMapper: Mappers.DirectoryForceCloseHandlesHeaders diff --git a/sdk/storage/storage-file/src/generated/src/operations/file.ts b/sdk/storage/storage-file/src/generated/src/operations/file.ts index ef21a4ed3f0e..5fcd547c2f9e 100644 --- a/sdk/storage/storage-file/src/generated/src/operations/file.ts +++ b/sdk/storage/storage-file/src/generated/src/operations/file.ts @@ -29,41 +29,44 @@ export class File { /** * Creates a new file or replaces a file. Note it only initializes the file with no content. * @param fileContentLength Specifies the maximum size for the file, up to 1 TB. + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param [options] The optional parameters * @returns Promise */ - create( - fileContentLength: number, - options?: Models.FileCreateOptionalParams - ): Promise; + create(fileContentLength: number, fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.FileCreateOptionalParams): Promise; /** * @param fileContentLength Specifies the maximum size for the file, up to 1 TB. + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param callback The callback */ - create(fileContentLength: number, callback: coreHttp.ServiceCallback): void; + create(fileContentLength: number, fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, callback: coreHttp.ServiceCallback): void; /** * @param fileContentLength Specifies the maximum size for the file, up to 1 TB. + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param options The optional parameters * @param callback The callback */ - create( - fileContentLength: number, - options: Models.FileCreateOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - create( - fileContentLength: number, - options?: Models.FileCreateOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + create(fileContentLength: number, fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options: Models.FileCreateOptionalParams, callback: coreHttp.ServiceCallback): void; + create(fileContentLength: number, fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.FileCreateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { fileContentLength, + fileAttributes, + fileCreationTime, + fileLastWriteTime, options }, createOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -80,21 +83,14 @@ export class File { * @param options The optional parameters * @param callback The callback */ - download( - options: Models.FileDownloadOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - download( - options?: Models.FileDownloadOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + download(options: Models.FileDownloadOptionalParams, callback: coreHttp.ServiceCallback): void; + download(options?: Models.FileDownloadOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, downloadOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -103,9 +99,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - getProperties( - options?: Models.FileGetPropertiesOptionalParams - ): Promise; + getProperties(options?: Models.FileGetPropertiesOptionalParams): Promise; /** * @param callback The callback */ @@ -114,21 +108,14 @@ export class File { * @param options The optional parameters * @param callback The callback */ - getProperties( - options: Models.FileGetPropertiesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - getProperties( - options?: Models.FileGetPropertiesOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + getProperties(options: Models.FileGetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void; + getProperties(options?: Models.FileGetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getPropertiesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,54 +132,53 @@ export class File { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - options: Models.FileDeleteMethodOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - deleteMethod( - options?: Models.FileDeleteMethodOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + deleteMethod(options: Models.FileDeleteMethodOptionalParams, callback: coreHttp.ServiceCallback): void; + deleteMethod(options?: Models.FileDeleteMethodOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, deleteMethodOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** * Sets HTTP headers on the file. + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param [options] The optional parameters * @returns Promise */ - setHTTPHeaders( - options?: Models.FileSetHTTPHeadersOptionalParams - ): Promise; + setHTTPHeaders(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.FileSetHTTPHeadersOptionalParams): Promise; /** + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param callback The callback */ - setHTTPHeaders(callback: coreHttp.ServiceCallback): void; + setHTTPHeaders(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, callback: coreHttp.ServiceCallback): void; /** + * @param fileAttributes If specified, the provided file attributes shall be set. Default value: + * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default. + * @param fileCreationTime Creation time for the file/directory. + * @param fileLastWriteTime Last write time for the file/directory. * @param options The optional parameters * @param callback The callback */ - setHTTPHeaders( - options: Models.FileSetHTTPHeadersOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - setHTTPHeaders( - options?: Models.FileSetHTTPHeadersOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + setHTTPHeaders(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options: Models.FileSetHTTPHeadersOptionalParams, callback: coreHttp.ServiceCallback): void; + setHTTPHeaders(fileAttributes: string, fileCreationTime: string, fileLastWriteTime: string, options?: Models.FileSetHTTPHeadersOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { + fileAttributes, + fileCreationTime, + fileLastWriteTime, options }, setHTTPHeadersOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -200,9 +186,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - setMetadata( - options?: Models.FileSetMetadataOptionalParams - ): Promise; + setMetadata(options?: Models.FileSetMetadataOptionalParams): Promise; /** * @param callback The callback */ @@ -211,21 +195,14 @@ export class File { * @param options The optional parameters * @param callback The callback */ - setMetadata( - options: Models.FileSetMetadataOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - setMetadata( - options?: Models.FileSetMetadataOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + setMetadata(options: Models.FileSetMetadataOptionalParams, callback: coreHttp.ServiceCallback): void; + setMetadata(options?: Models.FileSetMetadataOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, setMetadataOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -246,12 +223,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - uploadRange( - range: string, - fileRangeWrite: Models.FileRangeWriteType, - contentLength: number, - options?: Models.FileUploadRangeOptionalParams - ): Promise; + uploadRange(range: string, fileRangeWrite: Models.FileRangeWriteType, contentLength: number, options?: Models.FileUploadRangeOptionalParams): Promise; /** * @param range Specifies the range of bytes to be written. Both the start and end of the range * must be specified. For an update operation, the range can be up to 4 MB in size. For a clear @@ -268,12 +240,7 @@ export class File { * the x-ms-write header is set to clear, the value of this header must be set to zero. * @param callback The callback */ - uploadRange( - range: string, - fileRangeWrite: Models.FileRangeWriteType, - contentLength: number, - callback: coreHttp.ServiceCallback - ): void; + uploadRange(range: string, fileRangeWrite: Models.FileRangeWriteType, contentLength: number, callback: coreHttp.ServiceCallback): void; /** * @param range Specifies the range of bytes to be written. Both the start and end of the range * must be specified. For an update operation, the range can be up to 4 MB in size. For a clear @@ -291,20 +258,8 @@ export class File { * @param options The optional parameters * @param callback The callback */ - uploadRange( - range: string, - fileRangeWrite: Models.FileRangeWriteType, - contentLength: number, - options: Models.FileUploadRangeOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - uploadRange( - range: string, - fileRangeWrite: Models.FileRangeWriteType, - contentLength: number, - options?: Models.FileUploadRangeOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + uploadRange(range: string, fileRangeWrite: Models.FileRangeWriteType, contentLength: number, options: Models.FileUploadRangeOptionalParams, callback: coreHttp.ServiceCallback): void; + uploadRange(range: string, fileRangeWrite: Models.FileRangeWriteType, contentLength: number, options?: Models.FileUploadRangeOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { range, @@ -313,8 +268,64 @@ export class File { options }, uploadRangeOperationSpec, - callback - ) as Promise; + callback) as Promise; + } + + /** + * Upload a range of bytes to a file where the contents are read from a URL. + * @param range Writes data to the specified byte range in the file. + * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a + * file to another file within the same storage account, you may use Shared Key to authenticate the + * source file. If you are copying a file from another storage account, or if you are copying a + * blob from the same storage account or another storage account, then you must authenticate the + * source file or blob using a shared access signature. If the source is a public blob, no + * authentication is required to perform the copy operation. A file in a share snapshot can also be + * specified as a copy source. + * @param contentLength Specifies the number of bytes being transmitted in the request body. When + * the x-ms-write header is set to clear, the value of this header must be set to zero. + * @param [options] The optional parameters + * @returns Promise + */ + uploadRangeFromURL(range: string, copySource: string, contentLength: number, options?: Models.FileUploadRangeFromURLOptionalParams): Promise; + /** + * @param range Writes data to the specified byte range in the file. + * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a + * file to another file within the same storage account, you may use Shared Key to authenticate the + * source file. If you are copying a file from another storage account, or if you are copying a + * blob from the same storage account or another storage account, then you must authenticate the + * source file or blob using a shared access signature. If the source is a public blob, no + * authentication is required to perform the copy operation. A file in a share snapshot can also be + * specified as a copy source. + * @param contentLength Specifies the number of bytes being transmitted in the request body. When + * the x-ms-write header is set to clear, the value of this header must be set to zero. + * @param callback The callback + */ + uploadRangeFromURL(range: string, copySource: string, contentLength: number, callback: coreHttp.ServiceCallback): void; + /** + * @param range Writes data to the specified byte range in the file. + * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a + * file to another file within the same storage account, you may use Shared Key to authenticate the + * source file. If you are copying a file from another storage account, or if you are copying a + * blob from the same storage account or another storage account, then you must authenticate the + * source file or blob using a shared access signature. If the source is a public blob, no + * authentication is required to perform the copy operation. A file in a share snapshot can also be + * specified as a copy source. + * @param contentLength Specifies the number of bytes being transmitted in the request body. When + * the x-ms-write header is set to clear, the value of this header must be set to zero. + * @param options The optional parameters + * @param callback The callback + */ + uploadRangeFromURL(range: string, copySource: string, contentLength: number, options: Models.FileUploadRangeFromURLOptionalParams, callback: coreHttp.ServiceCallback): void; + uploadRangeFromURL(range: string, copySource: string, contentLength: number, options?: Models.FileUploadRangeFromURLOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + range, + copySource, + contentLength, + options + }, + uploadRangeFromURLOperationSpec, + callback) as Promise; } /** @@ -322,9 +333,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - getRangeList( - options?: Models.FileGetRangeListOptionalParams - ): Promise; + getRangeList(options?: Models.FileGetRangeListOptionalParams): Promise; /** * @param callback The callback */ @@ -333,21 +342,14 @@ export class File { * @param options The optional parameters * @param callback The callback */ - getRangeList( - options: Models.FileGetRangeListOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - getRangeList( - options?: Models.FileGetRangeListOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + getRangeList(options: Models.FileGetRangeListOptionalParams, callback: coreHttp.ServiceCallback): void; + getRangeList(options?: Models.FileGetRangeListOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, getRangeListOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -362,10 +364,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - startCopy( - copySource: string, - options?: Models.FileStartCopyOptionalParams - ): Promise; + startCopy(copySource: string, options?: Models.FileStartCopyOptionalParams): Promise; /** * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a * file to another file within the same storage account, you may use Shared Key to authenticate the @@ -388,24 +387,15 @@ export class File { * @param options The optional parameters * @param callback The callback */ - startCopy( - copySource: string, - options: Models.FileStartCopyOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - startCopy( - copySource: string, - options?: Models.FileStartCopyOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + startCopy(copySource: string, options: Models.FileStartCopyOptionalParams, callback: coreHttp.ServiceCallback): void; + startCopy(copySource: string, options?: Models.FileStartCopyOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { copySource, options }, startCopyOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -416,10 +406,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - abortCopy( - copyId: string, - options?: Models.FileAbortCopyOptionalParams - ): Promise; + abortCopy(copyId: string, options?: Models.FileAbortCopyOptionalParams): Promise; /** * @param copyId The copy identifier provided in the x-ms-copy-id header of the original Copy File * operation. @@ -432,24 +419,15 @@ export class File { * @param options The optional parameters * @param callback The callback */ - abortCopy( - copyId: string, - options: Models.FileAbortCopyOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - abortCopy( - copyId: string, - options?: Models.FileAbortCopyOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + abortCopy(copyId: string, options: Models.FileAbortCopyOptionalParams, callback: coreHttp.ServiceCallback): void; + abortCopy(copyId: string, options?: Models.FileAbortCopyOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { copyId, options }, abortCopyOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -457,9 +435,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - listHandles( - options?: Models.FileListHandlesOptionalParams - ): Promise; + listHandles(options?: Models.FileListHandlesOptionalParams): Promise; /** * @param callback The callback */ @@ -468,23 +444,14 @@ export class File { * @param options The optional parameters * @param callback The callback */ - listHandles( - options: Models.FileListHandlesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - listHandles( - options?: - | Models.FileListHandlesOptionalParams - | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + listHandles(options: Models.FileListHandlesOptionalParams, callback: coreHttp.ServiceCallback): void; + listHandles(options?: Models.FileListHandlesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, listHandlesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -494,10 +461,7 @@ export class File { * @param [options] The optional parameters * @returns Promise */ - forceCloseHandles( - handleId: string, - options?: Models.FileForceCloseHandlesOptionalParams - ): Promise; + forceCloseHandles(handleId: string, options?: Models.FileForceCloseHandlesOptionalParams): Promise; /** * @param handleId Specifies handle ID opened on the file or directory to be closed. Asterix (‘*’) * is a wildcard that specifies all handles. @@ -510,24 +474,15 @@ export class File { * @param options The optional parameters * @param callback The callback */ - forceCloseHandles( - handleId: string, - options: Models.FileForceCloseHandlesOptionalParams, - callback: coreHttp.ServiceCallback - ): void; - forceCloseHandles( - handleId: string, - options?: Models.FileForceCloseHandlesOptionalParams | coreHttp.ServiceCallback, - callback?: coreHttp.ServiceCallback - ): Promise { + forceCloseHandles(handleId: string, options: Models.FileForceCloseHandlesOptionalParams, callback: coreHttp.ServiceCallback): void; + forceCloseHandles(handleId: string, options?: Models.FileForceCloseHandlesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { return this.client.sendOperationRequest( { handleId, options }, forceCloseHandlesOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -536,13 +491,22 @@ const serializer = new coreHttp.Serializer(Mappers, true); const createOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout + ], headerParameters: [ Parameters.version, Parameters.fileContentLength0, Parameters.fileTypeConstant, Parameters.metadata, + Parameters.filePermission, + Parameters.filePermissionKey1, + Parameters.fileAttributes, + Parameters.fileCreationTime, + Parameters.fileLastWriteTime, Parameters.fileContentType, Parameters.fileContentEncoding, Parameters.fileContentLanguage, @@ -565,9 +529,17 @@ const createOperationSpec: coreHttp.OperationSpec = { const downloadOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout], - headerParameters: [Parameters.version, Parameters.range0, Parameters.rangeGetContentMD5], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout + ], + headerParameters: [ + Parameters.version, + Parameters.range0, + Parameters.rangeGetContentMD5 + ], responses: { 200: { bodyMapper: { @@ -598,9 +570,16 @@ const downloadOperationSpec: coreHttp.OperationSpec = { const getPropertiesOperationSpec: coreHttp.OperationSpec = { httpMethod: "HEAD", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.sharesnapshot, Parameters.timeout], - headerParameters: [Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.sharesnapshot, + Parameters.timeout + ], + headerParameters: [ + Parameters.version + ], responses: { 200: { headersMapper: Mappers.FileGetPropertiesHeaders @@ -616,9 +595,15 @@ const getPropertiesOperationSpec: coreHttp.OperationSpec = { const deleteMethodOperationSpec: coreHttp.OperationSpec = { httpMethod: "DELETE", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout], - headerParameters: [Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout + ], + headerParameters: [ + Parameters.version + ], responses: { 202: { headersMapper: Mappers.FileDeleteHeaders @@ -634,11 +619,21 @@ const deleteMethodOperationSpec: coreHttp.OperationSpec = { const setHTTPHeadersOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp0], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp0 + ], headerParameters: [ Parameters.version, Parameters.fileContentLength1, + Parameters.filePermission, + Parameters.filePermissionKey1, + Parameters.fileAttributes, + Parameters.fileCreationTime, + Parameters.fileLastWriteTime, Parameters.fileContentType, Parameters.fileContentEncoding, Parameters.fileContentLanguage, @@ -661,9 +656,17 @@ const setHTTPHeadersOperationSpec: coreHttp.OperationSpec = { const setMetadataOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp3], - headerParameters: [Parameters.metadata, Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp4 + ], + headerParameters: [ + Parameters.metadata, + Parameters.version + ], responses: { 200: { headersMapper: Mappers.FileSetMetadataHeaders @@ -679,8 +682,13 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = { const uploadRangeOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout, Parameters.comp8], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp9 + ], headerParameters: [ Parameters.range1, Parameters.fileRangeWrite, @@ -689,7 +697,10 @@ const uploadRangeOperationSpec: coreHttp.OperationSpec = { Parameters.version ], requestBody: { - parameterPath: ["options", "optionalbody"], + parameterPath: [ + "options", + "optionalbody" + ], mapper: { serializedName: "optionalbody", type: { @@ -710,12 +721,54 @@ const uploadRangeOperationSpec: coreHttp.OperationSpec = { serializer }; +const uploadRangeFromURLOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PUT", + path: "{shareName}/{directory}/{fileName}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.comp9 + ], + headerParameters: [ + Parameters.range1, + Parameters.copySource, + Parameters.sourceRange, + Parameters.fileRangeWriteFromUrl, + Parameters.contentLength, + Parameters.sourceContentCrc64, + Parameters.version, + Parameters.sourceIfMatchCrc64, + Parameters.sourceIfNoneMatchCrc64 + ], + responses: { + 201: { + headersMapper: Mappers.FileUploadRangeFromURLHeaders + }, + default: { + bodyMapper: Mappers.StorageError + } + }, + isXML: true, + serializer +}; + const getRangeListOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.sharesnapshot, Parameters.timeout, Parameters.comp9], - headerParameters: [Parameters.version, Parameters.range0], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.sharesnapshot, + Parameters.timeout, + Parameters.comp10 + ], + headerParameters: [ + Parameters.version, + Parameters.range0 + ], responses: { 200: { bodyMapper: { @@ -744,9 +797,17 @@ const getRangeListOperationSpec: coreHttp.OperationSpec = { const startCopyOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.timeout], - headerParameters: [Parameters.version, Parameters.metadata, Parameters.copySource], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout + ], + headerParameters: [ + Parameters.version, + Parameters.metadata, + Parameters.copySource + ], responses: { 202: { headersMapper: Mappers.FileStartCopyHeaders @@ -762,9 +823,18 @@ const startCopyOperationSpec: coreHttp.OperationSpec = { const abortCopyOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], - queryParameters: [Parameters.copyId, Parameters.timeout, Parameters.comp10], - headerParameters: [Parameters.copyActionAbortConstant, Parameters.version], + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.copyId, + Parameters.timeout, + Parameters.comp11 + ], + headerParameters: [ + Parameters.copyActionAbortConstant, + Parameters.version + ], responses: { 204: { headersMapper: Mappers.FileAbortCopyHeaders @@ -780,15 +850,19 @@ const abortCopyOperationSpec: coreHttp.OperationSpec = { const listHandlesOperationSpec: coreHttp.OperationSpec = { httpMethod: "GET", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], + urlParameters: [ + Parameters.url + ], queryParameters: [ Parameters.marker, Parameters.maxresults, Parameters.timeout, Parameters.sharesnapshot, - Parameters.comp6 + Parameters.comp7 + ], + headerParameters: [ + Parameters.version ], - headerParameters: [Parameters.version], responses: { 200: { bodyMapper: Mappers.ListHandlesResponse, @@ -805,14 +879,19 @@ const listHandlesOperationSpec: coreHttp.OperationSpec = { const forceCloseHandlesOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}/{directory}/{fileName}", - urlParameters: [Parameters.url], + urlParameters: [ + Parameters.url + ], queryParameters: [ Parameters.timeout, Parameters.marker, Parameters.sharesnapshot, - Parameters.comp7 + Parameters.comp8 + ], + headerParameters: [ + Parameters.handleId, + Parameters.version ], - headerParameters: [Parameters.handleId, Parameters.version], responses: { 200: { headersMapper: Mappers.FileForceCloseHandlesHeaders diff --git a/sdk/storage/storage-file/src/generated/src/operations/service.ts b/sdk/storage/storage-file/src/generated/src/operations/service.ts index 0606cac5b6a9..cf85bbf478a7 100644 --- a/sdk/storage/storage-file/src/generated/src/operations/service.ts +++ b/sdk/storage/storage-file/src/generated/src/operations/service.ts @@ -104,35 +104,6 @@ export class Service { listSharesSegmentOperationSpec, callback) as Promise; } - - /** - * The List Shares Segment operation returns a list of the shares and share snapshots under the - * specified account. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listSharesSegmentNext(nextPageLink: string, options?: coreHttp.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listSharesSegmentNext(nextPageLink: string, callback: coreHttp.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listSharesSegmentNext(nextPageLink: string, options: coreHttp.RequestOptionsBase, callback: coreHttp.ServiceCallback): void; - listSharesSegmentNext(nextPageLink: string, options?: coreHttp.RequestOptionsBase | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listSharesSegmentNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -224,26 +195,3 @@ const listSharesSegmentOperationSpec: coreHttp.OperationSpec = { isXML: true, serializer }; - -const listSharesSegmentNextOperationSpec: coreHttp.OperationSpec = { - httpMethod: "GET", - baseUrl: "{url}", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.version - ], - responses: { - 200: { - bodyMapper: Mappers.ListSharesResponse, - headersMapper: Mappers.ServiceListSharesSegmentHeaders - }, - default: { - bodyMapper: Mappers.StorageError - } - }, - isXML: true, - serializer -}; diff --git a/sdk/storage/storage-file/src/generated/src/operations/share.ts b/sdk/storage/storage-file/src/generated/src/operations/share.ts index 89c89dc81a7d..0b66daacc2f3 100644 --- a/sdk/storage/storage-file/src/generated/src/operations/share.ts +++ b/sdk/storage/storage-file/src/generated/src/operations/share.ts @@ -125,6 +125,65 @@ export class Share { callback) as Promise; } + /** + * Create a permission (a security descriptor). + * @param permission Permission(a security descriptor) described in the SDDL. + * @param [options] The optional parameters + * @returns Promise + */ + createPermission(permission: Models.Permission, options?: Models.ShareCreatePermissionOptionalParams): Promise; + /** + * @param permission Permission(a security descriptor) described in the SDDL. + * @param callback The callback + */ + createPermission(permission: Models.Permission, callback: coreHttp.ServiceCallback): void; + /** + * @param permission Permission(a security descriptor) described in the SDDL. + * @param options The optional parameters + * @param callback The callback + */ + createPermission(permission: Models.Permission, options: Models.ShareCreatePermissionOptionalParams, callback: coreHttp.ServiceCallback): void; + createPermission(permission: Models.Permission, options?: Models.ShareCreatePermissionOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + permission, + options + }, + createPermissionOperationSpec, + callback) as Promise; + } + + /** + * Returns the permission (security descriptor) for a given key + * @param filePermissionKey Key of the permission to be set for the directory/file. Note: Only one + * of the x-ms-file-permission or x-ms-file-permission-key should be specified. + * @param [options] The optional parameters + * @returns Promise + */ + getPermission(filePermissionKey: string, options?: Models.ShareGetPermissionOptionalParams): Promise; + /** + * @param filePermissionKey Key of the permission to be set for the directory/file. Note: Only one + * of the x-ms-file-permission or x-ms-file-permission-key should be specified. + * @param callback The callback + */ + getPermission(filePermissionKey: string, callback: coreHttp.ServiceCallback): void; + /** + * @param filePermissionKey Key of the permission to be set for the directory/file. Note: Only one + * of the x-ms-file-permission or x-ms-file-permission-key should be specified. + * @param options The optional parameters + * @param callback The callback + */ + getPermission(filePermissionKey: string, options: Models.ShareGetPermissionOptionalParams, callback: coreHttp.ServiceCallback): void; + getPermission(filePermissionKey: string, options?: Models.ShareGetPermissionOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + filePermissionKey, + options + }, + getPermissionOperationSpec, + callback) as Promise; + } + /** * Sets quota for the specified share. * @param [options] The optional parameters @@ -355,6 +414,68 @@ const createSnapshotOperationSpec: coreHttp.OperationSpec = { serializer }; +const createPermissionOperationSpec: coreHttp.OperationSpec = { + httpMethod: "PUT", + path: "{shareName}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype1, + Parameters.comp3 + ], + headerParameters: [ + Parameters.version + ], + requestBody: { + parameterPath: "permission", + mapper: { + ...Mappers.Permission, + required: true + } + }, + contentType: "application/xml; charset=utf-8", + responses: { + 201: { + headersMapper: Mappers.ShareCreatePermissionHeaders + }, + default: { + bodyMapper: Mappers.StorageError + } + }, + isXML: true, + serializer +}; + +const getPermissionOperationSpec: coreHttp.OperationSpec = { + httpMethod: "GET", + path: "{shareName}", + urlParameters: [ + Parameters.url + ], + queryParameters: [ + Parameters.timeout, + Parameters.restype1, + Parameters.comp3 + ], + headerParameters: [ + Parameters.filePermissionKey0, + Parameters.version + ], + responses: { + 200: { + bodyMapper: Mappers.Permission, + headersMapper: Mappers.ShareGetPermissionHeaders + }, + default: { + bodyMapper: Mappers.StorageError + } + }, + isXML: true, + serializer +}; + const setQuotaOperationSpec: coreHttp.OperationSpec = { httpMethod: "PUT", path: "{shareName}", @@ -391,7 +512,7 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.timeout, Parameters.restype1, - Parameters.comp3 + Parameters.comp4 ], headerParameters: [ Parameters.metadata, @@ -418,7 +539,7 @@ const getAccessPolicyOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.timeout, Parameters.restype1, - Parameters.comp4 + Parameters.comp5 ], headerParameters: [ Parameters.version @@ -457,7 +578,7 @@ const setAccessPolicyOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.timeout, Parameters.restype1, - Parameters.comp4 + Parameters.comp5 ], headerParameters: [ Parameters.version @@ -504,7 +625,7 @@ const getStatisticsOperationSpec: coreHttp.OperationSpec = { queryParameters: [ Parameters.timeout, Parameters.restype1, - Parameters.comp5 + Parameters.comp6 ], headerParameters: [ Parameters.version diff --git a/sdk/storage/storage-file/src/generated/src/storageClient.ts b/sdk/storage/storage-file/src/generated/src/storageClient.ts index feb0f1832199..1824882eafc0 100644 --- a/sdk/storage/storage-file/src/generated/src/storageClient.ts +++ b/sdk/storage/storage-file/src/generated/src/storageClient.ts @@ -39,5 +39,10 @@ class StorageClient extends StorageClientContext { // Operation Specifications -export { StorageClient, StorageClientContext, Models as StorageModels, Mappers as StorageMappers }; +export { + StorageClient, + StorageClientContext, + Models as StorageModels, + Mappers as StorageMappers +}; export * from "./operations"; diff --git a/sdk/storage/storage-file/src/generated/src/storageClientContext.ts b/sdk/storage/storage-file/src/generated/src/storageClientContext.ts index 4332abcdfe15..afe4eb9b7691 100644 --- a/sdk/storage/storage-file/src/generated/src/storageClientContext.ts +++ b/sdk/storage/storage-file/src/generated/src/storageClientContext.ts @@ -15,6 +15,7 @@ const packageVersion = "1.0.0"; export class StorageClientContext extends coreHttp.ServiceClient { version: string; + fileRangeWriteFromUrl: string; url: string; /** @@ -43,6 +44,7 @@ export class StorageClientContext extends coreHttp.ServiceClient { super(undefined, options); + this.fileRangeWriteFromUrl = 'update'; this.baseUri = "{url}"; this.requestContentType = "application/json; charset=utf-8"; this.version = version; diff --git a/sdk/storage/storage-file/swagger/README.md b/sdk/storage/storage-file/swagger/README.md index 496db2595f36..dc78461d99ca 100644 --- a/sdk/storage/storage-file/swagger/README.md +++ b/sdk/storage/storage-file/swagger/README.md @@ -10,7 +10,7 @@ enable-xml: true generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated -input-file: ./file-storage-2018-11-09.json +input-file: ./file-storage-2019-02-02.json model-date-time-as-string: true optional-response-headers: true ``` diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json index b44a43262c78..63d40903c0a2 100644 --- a/sdk/storage/storage-queue/package.json +++ b/sdk/storage/storage-queue/package.json @@ -19,7 +19,7 @@ }, "scripts": { "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 --use=@microsoft.azure/autorest.typescript@2.1.3", + "build:autorest": "autorest ./swagger/README.md --typescript --use=@microsoft.azure/autorest.typescript@5.0.0", "build:browserzip": "gulp zip", "build:es6": "tsc -p tsconfig.json", "build:nodebrowser": "rollup -c 2>&1", diff --git a/sdk/storage/storage-queue/src/MessageIdClient.ts b/sdk/storage/storage-queue/src/MessageIdClient.ts index f1817b6b15c4..5534a740ee68 100644 --- a/sdk/storage/storage-queue/src/MessageIdClient.ts +++ b/sdk/storage/storage-queue/src/MessageIdClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { TokenCredential, isTokenCredential, isNode } from "@azure/core-http"; -import * as Models from "./generated/lib/models"; +import * as Models from "./generated/src/models"; import { AbortSignalLike } from "@azure/abort-controller"; -import { MessageId } from "./generated/lib/operations"; +import { MessageId } from "./generated/src/operations"; import { newPipeline, NewPipelineOptions, Pipeline } from "./Pipeline"; import { SharedKeyCredential } from "./credentials/SharedKeyCredential"; import { AnonymousCredential } from "./credentials/AnonymousCredential"; diff --git a/sdk/storage/storage-queue/src/MessagesClient.ts b/sdk/storage/storage-queue/src/MessagesClient.ts index 81745e836e28..7addcec08e85 100644 --- a/sdk/storage/storage-queue/src/MessagesClient.ts +++ b/sdk/storage/storage-queue/src/MessagesClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { HttpResponse, TokenCredential, isTokenCredential, isNode } from "@azure/core-http"; -import * as Models from "./generated/lib/models"; +import * as Models from "./generated/src/models"; import { AbortSignalLike } from "@azure/abort-controller"; -import { Messages } from "./generated/lib/operations"; +import { Messages } from "./generated/src/operations"; import { newPipeline, NewPipelineOptions, Pipeline } from "./Pipeline"; import { StorageClient } from "./StorageClient"; import { appendToURLPath, extractConnectionStringParts } from "./utils/utils.common"; diff --git a/sdk/storage/storage-queue/src/QueueClient.ts b/sdk/storage/storage-queue/src/QueueClient.ts index 6c727aa9dca4..e31887e4a64c 100644 --- a/sdk/storage/storage-queue/src/QueueClient.ts +++ b/sdk/storage/storage-queue/src/QueueClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { HttpResponse, TokenCredential, isTokenCredential, isNode } from "@azure/core-http"; -import * as Models from "./generated/lib/models"; +import * as Models from "./generated/src/models"; import { AbortSignalLike } from "@azure/abort-controller"; -import { Queue } from "./generated/lib/operations"; +import { Queue } from "./generated/src/operations"; import { Metadata } from "./models"; import { newPipeline, NewPipelineOptions, Pipeline } from "./Pipeline"; import { StorageClient } from "./StorageClient"; diff --git a/sdk/storage/storage-queue/src/QueueServiceClient.ts b/sdk/storage/storage-queue/src/QueueServiceClient.ts index 390e19325e72..2fe0b4eca633 100644 --- a/sdk/storage/storage-queue/src/QueueServiceClient.ts +++ b/sdk/storage/storage-queue/src/QueueServiceClient.ts @@ -2,10 +2,10 @@ // Licensed under the MIT License. import { TokenCredential, isTokenCredential, isNode } from "@azure/core-http"; -import * as Models from "./generated/lib/models"; +import * as Models from "./generated/src/models"; import { AbortSignalLike } from "@azure/abort-controller"; -import { ListQueuesIncludeType } from "./generated/lib/models"; -import { Service } from "./generated/lib/operations"; +import { ListQueuesIncludeType } from "./generated/src/models"; +import { Service } from "./generated/src/operations"; import { newPipeline, NewPipelineOptions, Pipeline } from "./Pipeline"; import { StorageClient } from "./StorageClient"; import { QueueClient } from "./QueueClient"; diff --git a/sdk/storage/storage-queue/src/StorageClient.ts b/sdk/storage/storage-queue/src/StorageClient.ts index ac2a490cd1c2..6d2c5e6a3e80 100644 --- a/sdk/storage/storage-queue/src/StorageClient.ts +++ b/sdk/storage/storage-queue/src/StorageClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { StorageClientContext } from "./generated/lib/storageClientContext"; +import { StorageClientContext } from "./generated/src/storageClientContext"; import { Pipeline } from "./Pipeline"; /** * A StorageClient represents a based client class for QueueServiceClient, QueueClient and etc. diff --git a/sdk/storage/storage-queue/src/generated/lib/models/index.ts b/sdk/storage/storage-queue/src/generated/src/models/index.ts similarity index 93% rename from sdk/storage/storage-queue/src/generated/lib/models/index.ts rename to sdk/storage/storage-queue/src/generated/src/models/index.ts index 904f7640b3ab..2c840cd75ad0 100644 --- a/sdk/storage/storage-queue/src/generated/lib/models/index.ts +++ b/sdk/storage/storage-queue/src/generated/src/models/index.ts @@ -407,17 +407,6 @@ export interface ServiceListQueuesSegmentOptionalParams extends coreHttp.Request requestId?: string; } -/** - * Optional Parameters. - */ -export interface ServiceListQueuesSegmentNextOptionalParams extends coreHttp.RequestOptionsBase { - /** - * Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the - * analytics logs when storage analytics logging is enabled. - */ - requestId?: string; -} - /** * Optional Parameters. */ @@ -681,6 +670,11 @@ export interface MessageIdDeleteMethodOptionalParams extends coreHttp.RequestOpt * Defines headers for SetProperties operation. */ export interface ServiceSetPropertiesHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -698,6 +692,11 @@ export interface ServiceSetPropertiesHeaders { * Defines headers for GetProperties operation. */ export interface ServiceGetPropertiesHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -715,6 +714,11 @@ export interface ServiceGetPropertiesHeaders { * Defines headers for GetStatistics operation. */ export interface ServiceGetStatisticsHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -737,6 +741,11 @@ export interface ServiceGetStatisticsHeaders { * Defines headers for ListQueuesSegment operation. */ export interface ServiceListQueuesSegmentHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -759,6 +768,11 @@ export interface ServiceListQueuesSegmentHeaders { * Defines headers for Create operation. */ export interface QueueCreateHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -781,6 +795,11 @@ export interface QueueCreateHeaders { * Defines headers for Delete operation. */ export interface QueueDeleteHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -803,6 +822,11 @@ export interface QueueDeleteHeaders { * Defines headers for GetProperties operation. */ export interface QueueGetPropertiesHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; metadata?: { [propertyName: string]: string }; /** * The approximate number of messages in the queue. This number is not lower than the actual @@ -831,6 +855,11 @@ export interface QueueGetPropertiesHeaders { * Defines headers for SetMetadata operation. */ export interface QueueSetMetadataHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -853,6 +882,11 @@ export interface QueueSetMetadataHeaders { * Defines headers for GetAccessPolicy operation. */ export interface QueueGetAccessPolicyHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -875,6 +909,11 @@ export interface QueueGetAccessPolicyHeaders { * Defines headers for SetAccessPolicy operation. */ export interface QueueSetAccessPolicyHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -897,6 +936,11 @@ export interface QueueSetAccessPolicyHeaders { * Defines headers for Dequeue operation. */ export interface MessagesDequeueHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -919,6 +963,11 @@ export interface MessagesDequeueHeaders { * Defines headers for Clear operation. */ export interface MessagesClearHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -941,6 +990,11 @@ export interface MessagesClearHeaders { * Defines headers for Enqueue operation. */ export interface MessagesEnqueueHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -963,6 +1017,11 @@ export interface MessagesEnqueueHeaders { * Defines headers for Peek operation. */ export interface MessagesPeekHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -985,6 +1044,11 @@ export interface MessagesPeekHeaders { * Defines headers for Update operation. */ export interface MessageIdUpdateHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. @@ -1015,6 +1079,11 @@ export interface MessageIdUpdateHeaders { * Defines headers for Delete operation. */ export interface MessageIdDeleteHeaders { + /** + * If a client request id header is sent in the request, this header will be present in the + * response with the same value. + */ + clientRequestId?: string; /** * This header uniquely identifies the request that was made and can be used for troubleshooting * the request. diff --git a/sdk/storage/storage-queue/src/generated/lib/models/mappers.ts b/sdk/storage/storage-queue/src/generated/src/models/mappers.ts similarity index 92% rename from sdk/storage/storage-queue/src/generated/lib/models/mappers.ts rename to sdk/storage/storage-queue/src/generated/src/models/mappers.ts index c3dd5818fed9..b33bb87032fe 100644 --- a/sdk/storage/storage-queue/src/generated/lib/models/mappers.ts +++ b/sdk/storage/storage-queue/src/generated/src/models/mappers.ts @@ -642,6 +642,12 @@ export const ServiceSetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceSetPropertiesHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -670,6 +676,12 @@ export const ServiceGetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceGetPropertiesHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -698,6 +710,12 @@ export const ServiceGetStatisticsHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceGetStatisticsHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -732,6 +750,12 @@ export const ServiceListQueuesSegmentHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "ServiceListQueuesSegmentHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -766,6 +790,12 @@ export const QueueCreateHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "QueueCreateHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -800,6 +830,12 @@ export const QueueDeleteHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "QueueDeleteHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -834,6 +870,12 @@ export const QueueGetPropertiesHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "QueueGetPropertiesHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, metadata: { serializedName: "x-ms-meta", type: { @@ -886,6 +928,12 @@ export const QueueSetMetadataHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "QueueSetMetadataHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -920,6 +968,12 @@ export const QueueGetAccessPolicyHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "QueueGetAccessPolicyHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -954,6 +1008,12 @@ export const QueueSetAccessPolicyHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "QueueSetAccessPolicyHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -988,6 +1048,12 @@ export const MessagesDequeueHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "MessagesDequeueHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1022,6 +1088,12 @@ export const MessagesClearHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "MessagesClearHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1056,6 +1128,12 @@ export const MessagesEnqueueHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "MessagesEnqueueHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1090,6 +1168,12 @@ export const MessagesPeekHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "MessagesPeekHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1124,6 +1208,12 @@ export const MessageIdUpdateHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "MessageIdUpdateHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { @@ -1170,6 +1260,12 @@ export const MessageIdDeleteHeaders: coreHttp.CompositeMapper = { name: "Composite", className: "MessageIdDeleteHeaders", modelProperties: { + clientRequestId: { + serializedName: "x-ms-client-request-id", + type: { + name: "String" + } + }, requestId: { serializedName: "x-ms-request-id", type: { diff --git a/sdk/storage/storage-queue/src/generated/lib/models/messageIdMappers.ts b/sdk/storage/storage-queue/src/generated/src/models/messageIdMappers.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/models/messageIdMappers.ts rename to sdk/storage/storage-queue/src/generated/src/models/messageIdMappers.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/models/messagesMappers.ts b/sdk/storage/storage-queue/src/generated/src/models/messagesMappers.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/models/messagesMappers.ts rename to sdk/storage/storage-queue/src/generated/src/models/messagesMappers.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/models/parameters.ts b/sdk/storage/storage-queue/src/generated/src/models/parameters.ts similarity index 95% rename from sdk/storage/storage-queue/src/generated/lib/models/parameters.ts rename to sdk/storage/storage-queue/src/generated/src/models/parameters.ts index e87b49438357..8b4227e8e6d6 100644 --- a/sdk/storage/storage-queue/src/generated/lib/models/parameters.ts +++ b/sdk/storage/storage-queue/src/generated/src/models/parameters.ts @@ -151,17 +151,6 @@ export const metadata: coreHttp.OperationParameter = { headerCollectionPrefix: "x-ms-meta-" } }; -export const nextPageLink: coreHttp.OperationURLParameter = { - parameterPath: "nextPageLink", - mapper: { - required: true, - serializedName: "nextLink", - type: { - name: "String" - } - }, - skipEncoding: true -}; export const numberOfMessages: coreHttp.OperationQueryParameter = { parameterPath: [ "options", @@ -268,7 +257,7 @@ export const version: coreHttp.OperationParameter = { required: true, isConstant: true, serializedName: "x-ms-version", - defaultValue: '2018-03-28', + defaultValue: '2019-02-02', type: { name: "String" } diff --git a/sdk/storage/storage-queue/src/generated/lib/models/queueMappers.ts b/sdk/storage/storage-queue/src/generated/src/models/queueMappers.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/models/queueMappers.ts rename to sdk/storage/storage-queue/src/generated/src/models/queueMappers.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/models/serviceMappers.ts b/sdk/storage/storage-queue/src/generated/src/models/serviceMappers.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/models/serviceMappers.ts rename to sdk/storage/storage-queue/src/generated/src/models/serviceMappers.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/index.ts b/sdk/storage/storage-queue/src/generated/src/operations/index.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/operations/index.ts rename to sdk/storage/storage-queue/src/generated/src/operations/index.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/messageId.ts b/sdk/storage/storage-queue/src/generated/src/operations/messageId.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/operations/messageId.ts rename to sdk/storage/storage-queue/src/generated/src/operations/messageId.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/messages.ts b/sdk/storage/storage-queue/src/generated/src/operations/messages.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/operations/messages.ts rename to sdk/storage/storage-queue/src/generated/src/operations/messages.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/queue.ts b/sdk/storage/storage-queue/src/generated/src/operations/queue.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/operations/queue.ts rename to sdk/storage/storage-queue/src/generated/src/operations/queue.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/service.ts b/sdk/storage/storage-queue/src/generated/src/operations/service.ts similarity index 80% rename from sdk/storage/storage-queue/src/generated/lib/operations/service.ts rename to sdk/storage/storage-queue/src/generated/src/operations/service.ts index fff54aae0ec2..d13bb72ea3c5 100644 --- a/sdk/storage/storage-queue/src/generated/lib/operations/service.ts +++ b/sdk/storage/storage-queue/src/generated/src/operations/service.ts @@ -129,34 +129,6 @@ export class Service { listQueuesSegmentOperationSpec, callback) as Promise; } - - /** - * The List Queues Segment operation returns a list of the queues under the specified account - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listQueuesSegmentNext(nextPageLink: string, options?: Models.ServiceListQueuesSegmentNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listQueuesSegmentNext(nextPageLink: string, callback: coreHttp.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listQueuesSegmentNext(nextPageLink: string, options: Models.ServiceListQueuesSegmentNextOptionalParams, callback: coreHttp.ServiceCallback): void; - listQueuesSegmentNext(nextPageLink: string, options?: Models.ServiceListQueuesSegmentNextOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listQueuesSegmentNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -278,27 +250,3 @@ const listQueuesSegmentOperationSpec: coreHttp.OperationSpec = { isXML: true, serializer }; - -const listQueuesSegmentNextOperationSpec: coreHttp.OperationSpec = { - httpMethod: "GET", - baseUrl: "{url}", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.version, - Parameters.requestId - ], - responses: { - 200: { - bodyMapper: Mappers.ListQueuesSegmentResponse, - headersMapper: Mappers.ServiceListQueuesSegmentHeaders - }, - default: { - bodyMapper: Mappers.StorageError - } - }, - isXML: true, - serializer -}; diff --git a/sdk/storage/storage-queue/src/generated/lib/storageClient.ts b/sdk/storage/storage-queue/src/generated/src/storageClient.ts similarity index 100% rename from sdk/storage/storage-queue/src/generated/lib/storageClient.ts rename to sdk/storage/storage-queue/src/generated/src/storageClient.ts diff --git a/sdk/storage/storage-queue/src/generated/lib/storageClientContext.ts b/sdk/storage/storage-queue/src/generated/src/storageClientContext.ts similarity index 97% rename from sdk/storage/storage-queue/src/generated/lib/storageClientContext.ts rename to sdk/storage/storage-queue/src/generated/src/storageClientContext.ts index 8ac14b0245bf..42189770459a 100644 --- a/sdk/storage/storage-queue/src/generated/lib/storageClientContext.ts +++ b/sdk/storage/storage-queue/src/generated/src/storageClientContext.ts @@ -39,7 +39,7 @@ export class StorageClientContext extends coreHttp.ServiceClient { super(undefined, options); - this.version = '2018-03-28'; + this.version = '2019-02-02'; this.baseUri = "{url}"; this.requestContentType = "application/json; charset=utf-8"; this.url = url; diff --git a/sdk/storage/storage-queue/src/index.browser.ts b/sdk/storage/storage-queue/src/index.browser.ts index c019a43a18b1..3c3df72b54c5 100644 --- a/sdk/storage/storage-queue/src/index.browser.ts +++ b/sdk/storage/storage-queue/src/index.browser.ts @@ -3,7 +3,7 @@ import { RestError } from "@azure/core-http"; -import * as Models from "./generated/lib/models"; +import * as Models from "./generated/src/models"; export * from "./credentials/AnonymousCredential"; export * from "./credentials/Credential"; diff --git a/sdk/storage/storage-queue/src/index.ts b/sdk/storage/storage-queue/src/index.ts index 86593909674f..bfb1db359f8a 100644 --- a/sdk/storage/storage-queue/src/index.ts +++ b/sdk/storage/storage-queue/src/index.ts @@ -3,7 +3,7 @@ import { RestError } from "@azure/core-http"; -import * as Models from "./generated/lib/models"; +import * as Models from "./generated/src/models"; export * from "./AccountSASPermissions"; export * from "./AccountSASResourceTypes"; diff --git a/sdk/storage/storage-queue/swagger/README.md b/sdk/storage/storage-queue/swagger/README.md index f1531bee64de..86664a905dce 100644 --- a/sdk/storage/storage-queue/swagger/README.md +++ b/sdk/storage/storage-queue/swagger/README.md @@ -10,7 +10,7 @@ enable-xml: true generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated -input-file: ./queue-storage-2018-03-28.json +input-file: ./queue-storage-2019-02-02.json model-date-time-as-string: true optional-response-headers: true ```