diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json
index 21c0434b8449..e6fdd5fb0139 100644
--- a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json
+++ b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json
@@ -61,7 +61,7 @@
"dependencies": {
"@azure/event-hubs": "^5.0.0",
"@azure/logger": "^1.0.0",
- "@azure/storage-blob": "^12.2.0",
+ "@azure/storage-blob": "^12.3.0",
"events": "^3.0.0",
"tslib": "^2.0.0"
},
diff --git a/sdk/storage/storage-blob-changefeed/README.md b/sdk/storage/storage-blob-changefeed/README.md
index 97d4763c40b8..027ec45e58a4 100644
--- a/sdk/storage/storage-blob-changefeed/README.md
+++ b/sdk/storage/storage-blob-changefeed/README.md
@@ -1,6 +1,6 @@
# Azure Storage Blob Change Feed client library for JavaScript
-> Server Version: 2019-12-12
+> Server Version: 2019-12-12 or later.
The change feed provides an ordered, guaranteed, durable, immutable, read-only transaction log of all the changes that occur to blobs and blob metadata in your storage account. Client applications can read these logs at any time. The change feed enables you to build efficient and scalable solutions that process change events that occur in your Blob Storage account at a low cost.
diff --git a/sdk/storage/storage-blob-changefeed/package.json b/sdk/storage/storage-blob-changefeed/package.json
index c5e0ff767a12..06f308364d5b 100644
--- a/sdk/storage/storage-blob-changefeed/package.json
+++ b/sdk/storage/storage-blob-changefeed/package.json
@@ -95,7 +95,7 @@
]
},
"dependencies": {
- "@azure/storage-blob": "^12.2.0",
+ "@azure/storage-blob": "^12.3.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-http": "^1.1.6",
"@azure/core-lro": "^1.0.2",
diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json
index 524298e0bd73..e00ff8628226 100644
--- a/sdk/storage/storage-blob/package.json
+++ b/sdk/storage/storage-blob/package.json
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-blob",
"sdk-type": "client",
- "version": "12.2.1",
+ "version": "12.3.0",
"description": "Microsoft Azure Storage SDK for JavaScript - Blob",
"main": "./dist/index.js",
"module": "./dist-esm/storage-blob/src/index.js",
@@ -32,7 +32,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 --package-version=12.2.0 --use=@microsoft.azure/autorest.typescript@5.0.1",
+ "build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.3.0 --use=@microsoft.azure/autorest.typescript@5.0.1",
"build:es6": "tsc -p tsconfig.json",
"build:nodebrowser": "rollup -c 2>&1",
"build:samples": "npm run clean && npm run build:es6 && cross-env ONLY_NODE=true rollup -c 2>&1 && npm run build:prep-samples",
diff --git a/sdk/storage/storage-blob/review/storage-blob.api.md b/sdk/storage/storage-blob/review/storage-blob.api.md
index 7d6a8079b1c1..2348ff6bf019 100644
--- a/sdk/storage/storage-blob/review/storage-blob.api.md
+++ b/sdk/storage/storage-blob/review/storage-blob.api.md
@@ -527,6 +527,7 @@ export interface BlobDownloadHeaders {
etag?: string;
isSealed?: boolean;
isServerEncrypted?: boolean;
+ lastAccessed?: Date;
lastModified?: Date;
leaseDuration?: LeaseDurationType;
leaseState?: LeaseStateType;
@@ -654,6 +655,7 @@ export interface BlobGetPropertiesHeaders {
isIncrementalCopy?: boolean;
isSealed?: boolean;
isServerEncrypted?: boolean;
+ lastAccessed?: Date;
lastModified?: Date;
leaseDuration?: LeaseDurationType;
leaseState?: LeaseStateType;
@@ -868,6 +870,8 @@ export interface BlobProperties {
// (undocumented)
isSealed?: boolean;
// (undocumented)
+ lastAccessedOn?: Date;
+ // (undocumented)
lastModified: Date;
leaseDuration?: LeaseDurationType;
leaseState?: LeaseStateType;
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 00356c263890..6155de6204df 100644
--- a/sdk/storage/storage-blob/src/generated/src/models/blobMappers.ts
+++ b/sdk/storage/storage-blob/src/generated/src/models/blobMappers.ts
@@ -7,6 +7,8 @@
*/
export {
+ ArrowConfiguration,
+ ArrowField,
BlobAbortCopyFromURLHeaders,
BlobAcquireLeaseHeaders,
BlobBreakLeaseHeaders,
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 f54c9b83bc3d..d0aca286eb05 100644
--- a/sdk/storage/storage-blob/src/generated/src/models/index.ts
+++ b/sdk/storage/storage-blob/src/generated/src/models/index.ts
@@ -185,6 +185,7 @@ export interface BlobPropertiesInternal {
* Possible values include: 'High', 'Standard'
*/
rehydratePriority?: RehydratePriority;
+ lastAccessedOn?: Date;
}
/**
@@ -374,6 +375,23 @@ export interface JsonTextConfiguration {
recordSeparator: string;
}
+/**
+ * field of an arrow schema
+ */
+export interface ArrowField {
+ type: string;
+ name?: string;
+ precision?: number;
+ scale?: number;
+}
+
+/**
+ * arrow configuration
+ */
+export interface ArrowConfiguration {
+ schema: ArrowField[];
+}
+
/**
* An enumeration of containers
*/
@@ -542,11 +560,12 @@ export interface PageList {
*/
export interface QueryFormat {
/**
- * Possible values include: 'delimited', 'json'
+ * Possible values include: 'delimited', 'json', 'arrow'
*/
type?: QueryFormatType;
delimitedTextConfiguration?: DelimitedTextConfiguration;
jsonTextConfiguration?: JsonTextConfiguration;
+ arrowConfiguration?: ArrowConfiguration;
}
/**
@@ -1195,12 +1214,12 @@ export interface ContainerRestoreOptionalParams extends coreHttp.RequestOptionsB
*/
requestId?: string;
/**
- * Optional. Version 2019-12-12 and laster. Specifies the name of the deleted container to
+ * Optional. Version 2019-12-12 and later. Specifies the name of the deleted container to
* restore.
*/
deletedContainerName?: string;
/**
- * Optional. Version 2019-12-12 and laster. Specifies the version of the deleted container to
+ * Optional. Version 2019-12-12 and later. Specifies the version of the deleted container to
* restore.
*/
deletedContainerVersion?: string;
@@ -4526,6 +4545,11 @@ export interface BlobDownloadHeaders {
* If this blob has been sealed
*/
isSealed?: boolean;
+ /**
+ * UTC date/time value generated by the service that indicates the time at which the blob was
+ * last read or written to
+ */
+ lastAccessed?: Date;
/**
* 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
@@ -4771,6 +4795,11 @@ export interface BlobGetPropertiesHeaders {
* rehydrate. Possible values include: 'High', 'Standard'
*/
rehydratePriority?: RehydratePriority;
+ /**
+ * UTC date/time value generated by the service that indicates the time at which the blob was
+ * last read or written to
+ */
+ lastAccessed?: Date;
errorCode?: string;
}
@@ -6892,10 +6921,11 @@ export type RehydratePriority = 'High' | 'Standard';
* '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',
+ * 'UnsupportedHttpVerb', 'AppendPositionConditionNotMet', 'BlobAlreadyExists',
+ * 'BlobImmutableDueToPolicy', 'BlobNotFound', 'BlobOverwritten',
+ * 'BlobTierInadequateForContentLength', 'BlockCountExceedsLimit', 'BlockListTooLong',
+ * 'CannotChangeToLowerTier', 'CannotVerifyCopySource', 'ContainerAlreadyExists',
+ * 'ContainerBeingDeleted', 'ContainerDisabled', 'ContainerNotFound',
* 'ContentLengthLargerThanTierLimit', 'CopyAcrossAccountsNotSupported', 'CopyIdMismatch',
* 'FeatureVersionMismatch', 'IncrementalCopyBlobMismatch',
* 'IncrementalCopyOfEralierVersionSnapshotNotAllowed', 'IncrementalCopySourceMustBeSnapshot',
@@ -6920,7 +6950,7 @@ export type RehydratePriority = 'High' | 'Standard';
* @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' | 'NoAuthenticationInformation' | 'NoPendingCopyOperation' | 'OperationNotAllowedOnIncrementalCopyBlob' | 'PendingCopyOperation' | 'PreviousSnapshotCannotBeNewer' | 'PreviousSnapshotNotFound' | 'PreviousSnapshotOperationNotSupported' | 'SequenceNumberConditionNotMet' | 'SequenceNumberIncrementTooLarge' | 'SnapshotCountExceeded' | 'SnaphotOperationRateExceeded' | 'SnapshotsPresent' | 'SourceConditionNotMet' | 'SystemInUse' | 'TargetConditionNotMet' | 'UnauthorizedBlobOverwrite' | 'BlobBeingRehydrated' | 'BlobArchived' | 'BlobNotArchived' | 'AuthorizationSourceIPMismatch' | 'AuthorizationProtocolMismatch' | 'AuthorizationPermissionMismatch' | 'AuthorizationServiceMismatch' | 'AuthorizationResourceTypeMismatch';
+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' | 'BlobImmutableDueToPolicy' | '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' | 'NoAuthenticationInformation' | 'NoPendingCopyOperation' | 'OperationNotAllowedOnIncrementalCopyBlob' | 'PendingCopyOperation' | 'PreviousSnapshotCannotBeNewer' | 'PreviousSnapshotNotFound' | 'PreviousSnapshotOperationNotSupported' | 'SequenceNumberConditionNotMet' | 'SequenceNumberIncrementTooLarge' | 'SnapshotCountExceeded' | 'SnaphotOperationRateExceeded' | 'SnapshotsPresent' | 'SourceConditionNotMet' | 'SystemInUse' | 'TargetConditionNotMet' | 'UnauthorizedBlobOverwrite' | 'BlobBeingRehydrated' | 'BlobArchived' | 'BlobNotArchived' | 'AuthorizationSourceIPMismatch' | 'AuthorizationProtocolMismatch' | 'AuthorizationPermissionMismatch' | 'AuthorizationServiceMismatch' | 'AuthorizationResourceTypeMismatch';
/**
* Defines values for GeoReplicationStatusType.
@@ -6932,11 +6962,11 @@ export type GeoReplicationStatusType = 'live' | 'bootstrap' | 'unavailable';
/**
* Defines values for QueryFormatType.
- * Possible values include: 'delimited', 'json'
+ * Possible values include: 'delimited', 'json', 'arrow'
* @readonly
* @enum {string}
*/
-export type QueryFormatType = 'delimited' | 'json';
+export type QueryFormatType = 'delimited' | 'json' | 'arrow';
/**
* Defines values for BlobExpiryOptions.
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 634991b2c184..3eb90408bb81 100644
--- a/sdk/storage/storage-blob/src/generated/src/models/mappers.ts
+++ b/sdk/storage/storage-blob/src/generated/src/models/mappers.ts
@@ -477,6 +477,13 @@ export const BlobPropertiesInternal: coreHttp.CompositeMapper = {
type: {
name: "String"
}
+ },
+ lastAccessedOn: {
+ xmlName: "LastAccessTime",
+ serializedName: "LastAccessTime",
+ type: {
+ name: "DateTimeRfc1123"
+ }
}
}
}
@@ -1198,6 +1205,72 @@ export const JsonTextConfiguration: coreHttp.CompositeMapper = {
}
};
+export const ArrowField: coreHttp.CompositeMapper = {
+ xmlName: "Field",
+ serializedName: "ArrowField",
+ type: {
+ name: "Composite",
+ className: "ArrowField",
+ modelProperties: {
+ type: {
+ xmlName: "Type",
+ required: true,
+ serializedName: "Type",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ xmlName: "Name",
+ serializedName: "Name",
+ type: {
+ name: "String"
+ }
+ },
+ precision: {
+ xmlName: "Precision",
+ serializedName: "Precision",
+ type: {
+ name: "Number"
+ }
+ },
+ scale: {
+ xmlName: "Scale",
+ serializedName: "Scale",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const ArrowConfiguration: coreHttp.CompositeMapper = {
+ serializedName: "ArrowConfiguration",
+ type: {
+ name: "Composite",
+ className: "ArrowConfiguration",
+ modelProperties: {
+ schema: {
+ xmlIsWrapped: true,
+ xmlName: "Schema",
+ xmlElementName: "Field",
+ required: true,
+ serializedName: "Schema",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ArrowField"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
export const ListContainersSegmentResponse: coreHttp.CompositeMapper = {
xmlName: "EnumerationResults",
serializedName: "ListContainersSegmentResponse",
@@ -1649,7 +1722,8 @@ export const QueryFormat: coreHttp.CompositeMapper = {
name: "Enum",
allowedValues: [
"delimited",
- "json"
+ "json",
+ "arrow"
]
}
},
@@ -1668,6 +1742,14 @@ export const QueryFormat: coreHttp.CompositeMapper = {
name: "Composite",
className: "JsonTextConfiguration"
}
+ },
+ arrowConfiguration: {
+ xmlName: "ArrowConfiguration",
+ serializedName: "ArrowConfiguration",
+ type: {
+ name: "Composite",
+ className: "ArrowConfiguration"
+ }
}
}
}
@@ -3902,6 +3984,12 @@ export const BlobDownloadHeaders: coreHttp.CompositeMapper = {
name: "Boolean"
}
},
+ lastAccessed: {
+ serializedName: "x-ms-last-access-time",
+ type: {
+ name: "DateTimeRfc1123"
+ }
+ },
contentCrc64: {
serializedName: "x-ms-content-crc64",
type: {
@@ -4232,6 +4320,12 @@ export const BlobGetPropertiesHeaders: coreHttp.CompositeMapper = {
name: "String"
}
},
+ lastAccessed: {
+ serializedName: "x-ms-last-access-time",
+ type: {
+ name: "DateTimeRfc1123"
+ }
+ },
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 c985e05682ff..d7985b887061 100644
--- a/sdk/storage/storage-blob/src/generated/src/models/parameters.ts
+++ b/sdk/storage/storage-blob/src/generated/src/models/parameters.ts
@@ -1680,7 +1680,7 @@ export const version: coreHttp.OperationParameter = {
required: true,
isConstant: true,
serializedName: "x-ms-version",
- defaultValue: '2019-12-12',
+ defaultValue: '2020-02-10',
type: {
name: "String"
}
diff --git a/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts b/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts
index cdd4abddd6f4..d676d5b88cd0 100644
--- a/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts
+++ b/sdk/storage/storage-blob/src/generated/src/storageClientContext.ts
@@ -11,7 +11,7 @@
import * as coreHttp from "@azure/core-http";
const packageName = "azure-storage-blob";
-const packageVersion = "12.2.0";
+const packageVersion = "12.3.0";
export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
@@ -39,7 +39,7 @@ export class StorageClientContext extends coreHttp.ServiceClient {
super(undefined, options);
- this.version = '2019-12-12';
+ this.version = '2020-02-10';
this.baseUri = "{url}";
this.requestContentType = "application/json; charset=utf-8";
this.url = url;
diff --git a/sdk/storage/storage-blob/src/utils/constants.ts b/sdk/storage/storage-blob/src/utils/constants.ts
index 5d37ee4ae7a7..0be062a62be8 100644
--- a/sdk/storage/storage-blob/src/utils/constants.ts
+++ b/sdk/storage/storage-blob/src/utils/constants.ts
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
export const SDK_VERSION: string = "12.2.1";
-export const SERVICE_VERSION: string = "2019-12-12";
+export const SERVICE_VERSION: string = "2020-02-10";
export const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES: number = 256 * 1024 * 1024; // 256MB
export const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES: number = 4000 * 1024 * 1024; // 4000MB
diff --git a/sdk/storage/storage-blob/swagger/README.md b/sdk/storage/storage-blob/swagger/README.md
index ad173321949d..004a1403654d 100644
--- a/sdk/storage/storage-blob/swagger/README.md
+++ b/sdk/storage/storage-blob/swagger/README.md
@@ -12,7 +12,7 @@ enable-xml: true
generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../src/generated
-input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.BlobStorage/preview/2019-12-12/blob.json
+input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.BlobStorage/preview/2020-02-10/blob.json
model-date-time-as-string: true
optional-response-headers: true
```
@@ -350,7 +350,6 @@ directive:
transform: >
$.Start["x-ms-client-name"] = "startsOn";
$.Expiry["x-ms-client-name"] = "expiresOn";
-
```
### Rename KeyInfo start -> startsOn
@@ -362,10 +361,9 @@ directive:
transform: >
$.Start["x-ms-client-name"] = "startsOn";
$.Expiry["x-ms-client-name"] = "expiresOn";
-
```
-### Un-group encryptionScope
+### Un-group encryptionScope
```yaml
directive:
@@ -376,7 +374,6 @@ directive:
if (grouping) {
delete $["x-ms-parameter-grouping"];
}
-
```
### Rename ContainerCpkScopeInfo -> ContainerEncryptionScope
@@ -391,7 +388,6 @@ directive:
where: $.parameters.DenyEncryptionScopeOverride
transform: >
$["x-ms-parameter-grouping"]["name"] = "container-encryption-scope";
-
```
### Use string union instead of string for RehydratePriority in getProperties
@@ -405,8 +401,7 @@ directive:
$["enum"] = ["High", "Standard"];
$["x-ms-enum"] = {};
$["x-ms-enum"]["name"] = "RehydratePriority";
- $["x-ms-enum"]["modelAsString"] = true;
-
+ $["x-ms-enum"]["modelAsString"] = true;
```
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorage%2Fstorage-blob%2Fswagger%2FREADME.png)
diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json
index 168028b35016..d41859f691fc 100644
--- a/sdk/storage/storage-file-datalake/package.json
+++ b/sdk/storage/storage-file-datalake/package.json
@@ -1,6 +1,6 @@
{
"name": "@azure/storage-file-datalake",
- "version": "12.1.1",
+ "version": "12.2.0",
"description": "Microsoft Azure Storage SDK for JavaScript - DataLake",
"sdk-type": "client",
"main": "./dist/index.js",
@@ -102,7 +102,7 @@
"@azure/core-paging": "^1.1.1",
"@azure/core-tracing": "1.0.0-preview.9",
"@azure/logger": "^1.0.0",
- "@azure/storage-blob": "^12.2.0",
+ "@azure/storage-blob": "^12.3.0",
"events": "^3.0.0",
"tslib": "^2.0.0"
},
diff --git a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md
index 192a49a0b9b3..6d0e0490af80 100644
--- a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md
+++ b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md
@@ -901,9 +901,13 @@ export interface PathAccessControlItem {
// @public
export interface PathAppendDataHeaders {
clientRequestId?: string;
+ contentMD5?: Uint8Array;
date?: Date;
+ etag?: string;
+ isServerEncrypted?: boolean;
requestId?: string;
version?: string;
+ xMsContentCrc64?: Uint8Array;
}
// @public
diff --git a/sdk/storage/storage-file-datalake/src/generated/src/models/index.ts b/sdk/storage/storage-file-datalake/src/generated/src/models/index.ts
index 5befeea12216..e9adab042efe 100644
--- a/sdk/storage/storage-file-datalake/src/generated/src/models/index.ts
+++ b/sdk/storage/storage-file-datalake/src/generated/src/models/index.ts
@@ -474,6 +474,14 @@ export interface PathUpdateOptionalParams extends coreHttp.RequestOptionsBase {
* operation.
*/
continuation?: string;
+ /**
+ * Optional. Valid for "SetAccessControlRecursive" operation. If set to false, the operation will
+ * terminate quickly on encountering user errors (4XX). If true, the operation will ignore user
+ * errors and proceed with the operation on other sub-entities of the directory. Continuation
+ * token will only be returned when forceFlag is true in case of user errors. If not set the
+ * default value is false for this.
+ */
+ forceFlag?: boolean;
/**
* This parameter allows the caller to upload data in parallel and control the order in which it
* is appended to the file. It is required when uploading data to be appended to the file and
@@ -787,6 +795,14 @@ export interface PathSetAccessControlRecursiveOptionalParams extends coreHttp.Re
* continue deleting the directory.
*/
continuation?: string;
+ /**
+ * Optional. Valid for "SetAccessControlRecursive" operation. If set to false, the operation will
+ * terminate quickly on encountering user errors (4XX). If true, the operation will ignore user
+ * errors and proceed with the operation on other sub-entities of the directory. Continuation
+ * token will only be returned when forceFlag is true in case of user errors. If not set the
+ * default value is false for this.
+ */
+ forceFlag?: boolean;
/**
* Optional. It specifies the maximum number of files or directories on which the acl change will
* be applied. If omitted or greater than 2,000, the request will process up to 2,000 items
@@ -895,6 +911,10 @@ export interface PathAppendDataOptionalParams extends coreHttp.RequestOptionsBas
* of the request content in bytes for "Append Data".
*/
contentLength?: number;
+ /**
+ * 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.
@@ -1668,6 +1688,26 @@ export interface PathAppendDataHeaders {
* The version of the REST protocol used to process the request.
*/
version?: string;
+ /**
+ * An HTTP entity tag associated with the file or directory.
+ */
+ etag?: string;
+ /**
+ * 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.
+ */
+ 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 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;
}
/**
diff --git a/sdk/storage/storage-file-datalake/src/generated/src/models/mappers.ts b/sdk/storage/storage-file-datalake/src/generated/src/models/mappers.ts
index 38367cfb49ff..2307d46a988c 100644
--- a/sdk/storage/storage-file-datalake/src/generated/src/models/mappers.ts
+++ b/sdk/storage/storage-file-datalake/src/generated/src/models/mappers.ts
@@ -1376,6 +1376,30 @@ export const PathAppendDataHeaders: coreHttp.CompositeMapper = {
type: {
name: "String"
}
+ },
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ contentMD5: {
+ serializedName: "content-md5",
+ type: {
+ name: "ByteArray"
+ }
+ },
+ xMsContentCrc64: {
+ serializedName: "x-ms-content-crc64",
+ type: {
+ name: "ByteArray"
+ }
+ },
+ isServerEncrypted: {
+ serializedName: "x-ms-request-server-encrypted",
+ type: {
+ name: "Boolean"
+ }
}
}
}
diff --git a/sdk/storage/storage-file-datalake/src/generated/src/models/parameters.ts b/sdk/storage/storage-file-datalake/src/generated/src/models/parameters.ts
index cb9a8ccbce69..a7203407fdbd 100644
--- a/sdk/storage/storage-file-datalake/src/generated/src/models/parameters.ts
+++ b/sdk/storage/storage-file-datalake/src/generated/src/models/parameters.ts
@@ -254,6 +254,18 @@ export const expiryOptions: coreHttp.OperationParameter = {
}
}
};
+export const forceFlag: coreHttp.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "forceFlag"
+ ],
+ mapper: {
+ serializedName: "forceFlag",
+ type: {
+ name: "Boolean"
+ }
+ }
+};
export const group: coreHttp.OperationParameter = {
parameterPath: [
"options",
@@ -665,6 +677,18 @@ export const timeout: coreHttp.OperationQueryParameter = {
}
}
};
+export const transactionalContentCrc64: coreHttp.OperationParameter = {
+ parameterPath: [
+ "options",
+ "transactionalContentCrc64"
+ ],
+ mapper: {
+ serializedName: "x-ms-content-crc64",
+ type: {
+ name: "ByteArray"
+ }
+ }
+};
export const transactionalContentHash: coreHttp.OperationParameter = {
parameterPath: [
"options",
@@ -720,7 +744,7 @@ export const version: coreHttp.OperationParameter = {
required: true,
isConstant: true,
serializedName: "x-ms-version",
- defaultValue: '2019-12-12',
+ defaultValue: '2020-02-10',
type: {
name: "String"
}
diff --git a/sdk/storage/storage-file-datalake/src/generated/src/operations/pathOperations.ts b/sdk/storage/storage-file-datalake/src/generated/src/operations/pathOperations.ts
index e8457dddec57..36cdded813f3 100644
--- a/sdk/storage/storage-file-datalake/src/generated/src/operations/pathOperations.ts
+++ b/sdk/storage/storage-file-datalake/src/generated/src/operations/pathOperations.ts
@@ -478,6 +478,7 @@ const updateOperationSpec: coreHttp.OperationSpec = {
Parameters.maxRecords,
Parameters.continuation,
Parameters.mode1,
+ Parameters.forceFlag,
Parameters.position,
Parameters.retainUncommittedData,
Parameters.close,
@@ -727,6 +728,7 @@ const setAccessControlRecursiveOperationSpec: coreHttp.OperationSpec = {
Parameters.timeout,
Parameters.continuation,
Parameters.mode1,
+ Parameters.forceFlag,
Parameters.maxRecords,
Parameters.action3
],
@@ -802,6 +804,7 @@ const appendDataOperationSpec: coreHttp.OperationSpec = {
],
headerParameters: [
Parameters.contentLength,
+ Parameters.transactionalContentCrc64,
Parameters.requestId,
Parameters.version,
Parameters.transactionalContentHash,
diff --git a/sdk/storage/storage-file-datalake/src/generated/src/storageClientContext.ts b/sdk/storage/storage-file-datalake/src/generated/src/storageClientContext.ts
index 4f7f4afc89f4..c508830e1d7a 100644
--- a/sdk/storage/storage-file-datalake/src/generated/src/storageClientContext.ts
+++ b/sdk/storage/storage-file-datalake/src/generated/src/storageClientContext.ts
@@ -41,7 +41,7 @@ export class StorageClientContext extends coreHttp.ServiceClient {
super(undefined, options);
this.resource = 'filesystem';
- this.version = '2019-12-12';
+ this.version = '2020-02-10';
this.baseUri = "{url}";
this.requestContentType = "application/json; charset=utf-8";
this.url = url;
diff --git a/sdk/storage/storage-file-datalake/src/utils/constants.ts b/sdk/storage/storage-file-datalake/src/utils/constants.ts
index 0c28d3f1a63b..0337bb658c51 100644
--- a/sdk/storage/storage-file-datalake/src/utils/constants.ts
+++ b/sdk/storage/storage-file-datalake/src/utils/constants.ts
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
export const SDK_VERSION: string = "12.1.1";
-export const SERVICE_VERSION: string = "2019-12-12";
+export const SERVICE_VERSION: string = "2020-02-10";
export const KB: number = 1024;
export const MB: number = KB * 1024;
diff --git a/sdk/storage/storage-file-datalake/swagger/README.md b/sdk/storage/storage-file-datalake/swagger/README.md
index 3f536a85d830..725746cd070b 100644
--- a/sdk/storage/storage-file-datalake/swagger/README.md
+++ b/sdk/storage/storage-file-datalake/swagger/README.md
@@ -12,105 +12,104 @@ enable-xml: true
generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../src/generated
-input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2019-12-12/DataLakeStorage.json
+input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2020-02-10/DataLakeStorage.json
model-date-time-as-string: true
optional-response-headers: true
enum-types: true
```
+
## Customizations for Track 2 Generator
See the [AutoRest samples](https://github.com/Azure/autorest/tree/master/Samples/3b-custom-transformations)
for more about how we're customizing things.
### Update DataLakeStorageClientContext to StorageClientContext
+
```yaml
directive:
-- from: swagger-document
- where: $.info["x-ms-code-generation-settings"]
- transform: >
- $.name = "StorageClient"
+ - from: swagger-document
+ where: $.info["x-ms-code-generation-settings"]
+ transform: >
+ $.name = "StorageClient"
```
### Remove parameter FileSystem
+
```yaml
directive:
-- from: swagger-document
- where: $.parameters
- transform: >
- $.FileSystem = undefined
+ - from: swagger-document
+ where: $.parameters
+ transform: >
+ $.FileSystem = undefined
```
### Remove parameter Path
+
```yaml
directive:
-- from: swagger-document
- where: $.parameters
- transform: >
- $.Path = undefined
+ - from: swagger-document
+ where: $.parameters
+ transform: >
+ $.Path = undefined
```
### Rename path-HTTP-headers to path-Http-headers
+
```yaml
directive:
-- from: swagger-document
- where: $.parameters
- transform: >
- $.CacheControl["x-ms-parameter-grouping"].name = "path-Http-headers";
- $.ContentDisposition["x-ms-parameter-grouping"].name = "path-Http-headers";
- $.ContentEncoding["x-ms-parameter-grouping"].name = "path-Http-headers";
- $.ContentLanguage["x-ms-parameter-grouping"].name = "path-Http-headers";
- $.ContentType["x-ms-parameter-grouping"].name = "path-Http-headers";
- $.TransactionalContentMD5["x-ms-parameter-grouping"].name = "path-Http-headers";
- $.ContentMD5["x-ms-parameter-grouping"].name = "path-Http-headers";
+ - from: swagger-document
+ where: $.parameters
+ transform: >
+ $.CacheControl["x-ms-parameter-grouping"].name = "path-Http-headers";
+ $.ContentDisposition["x-ms-parameter-grouping"].name = "path-Http-headers";
+ $.ContentEncoding["x-ms-parameter-grouping"].name = "path-Http-headers";
+ $.ContentLanguage["x-ms-parameter-grouping"].name = "path-Http-headers";
+ $.ContentType["x-ms-parameter-grouping"].name = "path-Http-headers";
+ $.TransactionalContentMD5["x-ms-parameter-grouping"].name = "path-Http-headers";
+ $.ContentMD5["x-ms-parameter-grouping"].name = "path-Http-headers";
```
### Rename response property ACL to acl for Path_GetProperties
-```yaml
-directive:
-- from: swagger-document
- where: $["x-ms-paths"]["/{filesystem}/{path}"].head.responses["200"].headers["x-ms-acl"]
- transform: >
- $["x-ms-client-name"] = "acl";
-```
-### Update last modified property from string type to Date for FileSystem and Path models
```yaml
directive:
-- from: swagger-document
- where: $.definitions
- transform: >
- $.FileSystem.properties.lastModified.format = "date-time-rfc1123";
- $.Path.properties.lastModified.format = "date-time-rfc1123";
+ - from: swagger-document
+ where: $["x-ms-paths"]["/{filesystem}/{path}"].head.responses["200"].headers["x-ms-acl"]
+ transform: >
+ $["x-ms-client-name"] = "acl";
```
-### Update service version
+### Update last modified property from string type to Date for FileSystem and Path models
```yaml
directive:
- from: swagger-document
- where: $.parameters.ApiVersionParameter
- transform: $.enum = [ "2019-12-12" ];
+ where: $.definitions
+ transform: >
+ $.FileSystem.properties.lastModified.format = "date-time-rfc1123";
+ $.Path.properties.lastModified.format = "date-time-rfc1123";
```
### Rename eTag -> etag
-``` yaml
+
+```yaml
directive:
-- from: swagger-document
- where: $["x-ms-paths"]..responses..headers["ETag"]
- transform: >
- $["x-ms-client-name"] = "etag";
-- from: swagger-document
- where: $["definitions"]..["eTag"]
- transform: >
- $["x-ms-client-name"] = "etag";
+ - from: swagger-document
+ where: $["x-ms-paths"]..responses..headers["ETag"]
+ transform: >
+ $["x-ms-client-name"] = "etag";
+ - from: swagger-document
+ where: $["definitions"]..["eTag"]
+ transform: >
+ $["x-ms-client-name"] = "etag";
```
### workaround: adding parameter location for `PathSetAccessControlRecursiveMode`
-``` yaml
+```yaml
directive:
-- from: swagger-document
- where: $["parameters"].PathSetAccessControlRecursiveMode
- transform: >
- $["x-ms-parameter-location"] = "method";
+ - from: swagger-document
+ where: $["parameters"].PathSetAccessControlRecursiveMode
+ transform: >
+ $["x-ms-parameter-location"] = "method";
```
diff --git a/sdk/storage/storage-file-share/package.json b/sdk/storage/storage-file-share/package.json
index 7d9d5bd1bd3f..9a71846b5024 100644
--- a/sdk/storage/storage-file-share/package.json
+++ b/sdk/storage/storage-file-share/package.json
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-file-share",
"sdk-type": "client",
- "version": "12.2.1",
+ "version": "12.3.0",
"description": "Microsoft Azure Storage SDK for JavaScript - File",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
@@ -28,7 +28,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 --package-version=12.2.0 --use=@microsoft.azure/autorest.typescript@5.0.1",
+ "build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.3.0 --use=@microsoft.azure/autorest.typescript@5.0.1",
"build:es6": "tsc -p tsconfig.json",
"build:nodebrowser": "rollup -c 2>&1",
"build:samples": "npm run clean && npm run build:es6 && cross-env ONLY_NODE=true rollup -c 2>&1 && npm run build:prep-samples",
diff --git a/sdk/storage/storage-file-share/review/storage-file-share.api.md b/sdk/storage/storage-file-share/review/storage-file-share.api.md
index d93458f3ea8d..d2faf5be84ec 100644
--- a/sdk/storage/storage-file-share/review/storage-file-share.api.md
+++ b/sdk/storage/storage-file-share/review/storage-file-share.api.md
@@ -835,6 +835,7 @@ export interface FileServiceProperties {
cors?: CorsRule[];
hourMetrics?: Metrics;
minuteMetrics?: Metrics;
+ protocolSettings?: ProtocolSettings;
}
// @public
@@ -1164,6 +1165,11 @@ export interface PipelineOptions {
httpClient?: IHttpClient;
}
+// @public
+export interface ProtocolSettings {
+ smbSettings?: SmbSettings;
+}
+
// @public
export interface Range {
count?: number;
@@ -1582,6 +1588,9 @@ export interface ShareGetPropertiesHeaders {
errorCode?: string;
etag?: string;
lastModified?: Date;
+ leaseDuration?: LeaseDurationType;
+ leaseState?: LeaseStateType;
+ leaseStatus?: LeaseStatusType;
// (undocumented)
metadata?: {
[propertyName: string]: string;
@@ -1679,6 +1688,9 @@ export interface ShareProperties {
etag: string;
// (undocumented)
lastModified: Date;
+ leaseDuration?: LeaseDurationType;
+ leaseState?: LeaseStateType;
+ leaseStatus?: LeaseStatusType;
// (undocumented)
nextAllowedQuotaDowngradeTime?: Date;
// (undocumented)
@@ -1811,6 +1823,16 @@ export interface SignedIdentifierModel {
id: string;
}
+// @public
+export interface SmbMultichannel {
+ enabled?: boolean;
+}
+
+// @public
+export interface SmbSettings {
+ multichannel?: SmbMultichannel;
+}
+
// @public
export interface SourceModifiedAccessConditions {
sourceIfMatchCrc64?: Uint8Array;
diff --git a/sdk/storage/storage-file-share/src/generated/src/models/index.ts b/sdk/storage/storage-file-share/src/generated/src/models/index.ts
index 7fb1d5c868d2..ceb582da8835 100644
--- a/sdk/storage/storage-file-share/src/generated/src/models/index.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/models/index.ts
@@ -175,6 +175,18 @@ export interface ShareProperties {
nextAllowedQuotaDowngradeTime?: Date;
deletedTime?: Date;
remainingRetentionDays?: number;
+ /**
+ * Possible values include: 'locked', 'unlocked'
+ */
+ leaseStatus?: LeaseStatusType;
+ /**
+ * Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'
+ */
+ leaseState?: LeaseStateType;
+ /**
+ * Possible values include: 'infinite', 'fixed'
+ */
+ leaseDuration?: LeaseDurationType;
}
/**
@@ -237,6 +249,16 @@ export interface Metrics {
retentionPolicy?: RetentionPolicy;
}
+/**
+ * Settings for SMB multichannel
+ */
+export interface SmbMultichannel {
+ /**
+ * If SMB multichannel is enabled.
+ */
+ enabled?: boolean;
+}
+
/**
* An Azure Storage file range.
*/
@@ -251,6 +273,26 @@ export interface Range {
end: number;
}
+/**
+ * Settings for SMB protocol.
+ */
+export interface SmbSettings {
+ /**
+ * Settings for SMB Multichannel.
+ */
+ multichannel?: SmbMultichannel;
+}
+
+/**
+ * Protocol settings
+ */
+export interface ProtocolSettings {
+ /**
+ * Settings for SMB protocol.
+ */
+ smbSettings?: SmbSettings;
+}
+
/**
* An interface representing StorageError.
*/
@@ -309,6 +351,21 @@ export interface FileServiceProperties {
* The set of CORS rules.
*/
cors?: CorsRule[];
+ /**
+ * Protocol settings
+ */
+ protocolSettings?: ProtocolSettings;
+}
+
+/**
+ * Additional parameters for a set of operations.
+ */
+export interface LeaseAccessConditions {
+ /**
+ * If specified, the operation only succeeds if the resource's lease is active and matches this
+ * ID.
+ */
+ leaseId?: string;
}
/**
@@ -342,17 +399,6 @@ export interface FileHttpHeaders {
fileContentDisposition?: string;
}
-/**
- * Additional parameters for a set of operations.
- */
-export interface LeaseAccessConditions {
- /**
- * If specified, the operation only succeeds if the resource's lease is active and matches this
- * ID.
- */
- leaseId?: string;
-}
-
/**
* Additional parameters for uploadRangeFromURL operation.
*/
@@ -495,6 +541,10 @@ export interface ShareGetPropertiesOptionalParams extends coreHttp.RequestOption
* Timeouts for File Service Operations.
*/
timeoutInSeconds?: number;
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
}
/**
@@ -517,6 +567,152 @@ export interface ShareDeleteMethodOptionalParams extends coreHttp.RequestOptions
* values include: 'include'
*/
deleteSnapshots?: DeleteSnapshotsOptionType;
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ShareAcquireLeaseOptionalParams extends coreHttp.RequestOptionsBase {
+ /**
+ * The timeout parameter is expressed in seconds. For more information, see Setting
+ * Timeouts for File Service Operations.
+ */
+ timeoutInSeconds?: 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 File 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;
+ /**
+ * The snapshot parameter is an opaque DateTime value that, when present, specifies the share
+ * snapshot to query.
+ */
+ shareSnapshot?: 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;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ShareReleaseLeaseOptionalParams extends coreHttp.RequestOptionsBase {
+ /**
+ * The timeout parameter is expressed in seconds. For more information, see Setting
+ * Timeouts for File Service Operations.
+ */
+ timeoutInSeconds?: number;
+ /**
+ * The snapshot parameter is an opaque DateTime value that, when present, specifies the share
+ * snapshot to query.
+ */
+ shareSnapshot?: 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;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ShareChangeLeaseOptionalParams extends coreHttp.RequestOptionsBase {
+ /**
+ * The timeout parameter is expressed in seconds. For more information, see Setting
+ * Timeouts for File Service Operations.
+ */
+ timeoutInSeconds?: number;
+ /**
+ * Proposed lease ID, in a GUID string format. The File 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;
+ /**
+ * The snapshot parameter is an opaque DateTime value that, when present, specifies the share
+ * snapshot to query.
+ */
+ shareSnapshot?: 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;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ShareRenewLeaseOptionalParams extends coreHttp.RequestOptionsBase {
+ /**
+ * The timeout parameter is expressed in seconds. For more information, see Setting
+ * Timeouts for File Service Operations.
+ */
+ timeoutInSeconds?: number;
+ /**
+ * The snapshot parameter is an opaque DateTime value that, when present, specifies the share
+ * snapshot to query.
+ */
+ shareSnapshot?: 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;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ShareBreakLeaseOptionalParams extends coreHttp.RequestOptionsBase {
+ /**
+ * The timeout parameter is expressed in seconds. For more information, see Setting
+ * Timeouts for File Service Operations.
+ */
+ timeoutInSeconds?: number;
+ /**
+ * For a break operation, proposed duration the lease should continue before it is broken, in
+ * seconds, between 0 and 60. This break period is only used if it is shorter than the time
+ * remaining on the lease. If longer, the time remaining on the lease is used. A new lease will
+ * not be available before the break period has expired, but the lease may be held for longer
+ * than the break period. If this header does not appear with a break operation, a fixed-duration
+ * lease breaks after the remaining lease period elapses, and an infinite lease breaks
+ * immediately.
+ */
+ breakPeriod?: 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;
+ /**
+ * The snapshot parameter is an opaque DateTime value that, when present, specifies the share
+ * snapshot to query.
+ */
+ shareSnapshot?: string;
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
}
/**
@@ -573,6 +769,10 @@ export interface ShareSetQuotaOptionalParams extends coreHttp.RequestOptionsBase
* Specifies the maximum size of the share, in gigabytes.
*/
quota?: number;
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
}
/**
@@ -589,6 +789,10 @@ export interface ShareSetMetadataOptionalParams extends coreHttp.RequestOptionsB
* A name-value pair to associate with a file storage object.
*/
metadata?: { [propertyName: string]: string };
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
}
/**
@@ -601,6 +805,10 @@ export interface ShareGetAccessPolicyOptionalParams extends coreHttp.RequestOpti
* Timeouts for File Service Operations.
*/
timeoutInSeconds?: number;
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
}
/**
@@ -617,6 +825,10 @@ export interface ShareSetAccessPolicyOptionalParams extends coreHttp.RequestOpti
* Timeouts for File Service Operations.
*/
timeoutInSeconds?: number;
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
}
/**
@@ -629,6 +841,10 @@ export interface ShareGetStatisticsOptionalParams extends coreHttp.RequestOption
* Timeouts for File Service Operations.
*/
timeoutInSeconds?: number;
+ /**
+ * Additional parameters for the operation
+ */
+ leaseAccessConditions?: LeaseAccessConditions;
}
/**
@@ -1163,6 +1379,11 @@ export interface FileGetRangeListOptionalParams extends coreHttp.RequestOptionsB
* snapshot to query.
*/
shareSnapshot?: string;
+ /**
+ * The previous snapshot parameter is an opaque DateTime value that, when present, specifies the
+ * previous snapshot.
+ */
+ prevsharesnapshot?: string;
/**
* The timeout parameter is expressed in seconds. For more information, see Setting
@@ -1277,18 +1498,163 @@ export interface FileForceCloseHandlesOptionalParams extends coreHttp.RequestOpt
* 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;
+ marker?: string;
+ /**
+ * The snapshot parameter is an opaque DateTime value that, when present, specifies the share
+ * snapshot to query.
+ */
+ shareSnapshot?: string;
+}
+
+/**
+ * Defines headers for SetProperties operation.
+ */
+export interface ServiceSetPropertiesHeaders {
+ /**
+ * 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;
+ errorCode?: string;
+}
+
+/**
+ * Defines headers for GetProperties operation.
+ */
+export interface ServiceGetPropertiesHeaders {
+ /**
+ * 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;
+ errorCode?: string;
+}
+
+/**
+ * Defines headers for ListSharesSegment operation.
+ */
+export interface ServiceListSharesSegmentHeaders {
+ /**
+ * 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;
+ errorCode?: string;
+}
+
+/**
+ * Defines headers for Create operation.
+ */
+export interface ShareCreateHeaders {
+ /**
+ * The ETag contains a value which represents the version of the share, in quotes.
+ */
+ etag?: string;
+ /**
+ * Returns the date and time the share 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 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 GetProperties operation.
+ */
+export interface ShareGetPropertiesHeaders {
+ metadata?: { [propertyName: string]: string };
+ /**
+ * The ETag contains a value that you can use to perform operations conditionally, in quotes.
+ */
+ etag?: string;
+ /**
+ * Returns the date and time the share was last modified. Any operation that modifies the share
+ * or its properties updates the last modified time. Operations on files do not affect the last
+ * modified time of the share.
+ */
+ lastModified?: Date;
+ /**
+ * 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;
+ /**
+ * Returns the current share quota in GB.
+ */
+ quota?: number;
+ /**
+ * Returns the current share provisioned ipos.
+ */
+ provisionedIops?: number;
+ /**
+ * Returns the current share provisioned ingress in megabytes per second.
+ */
+ provisionedIngressMBps?: number;
+ /**
+ * Returns the current share provisioned egress in megabytes per second.
+ */
+ provisionedEgressMBps?: number;
+ /**
+ * Returns the current share next allowed quota downgrade time.
+ */
+ nextAllowedQuotaDowngradeTime?: Date;
+ /**
+ * When a share is leased, specifies whether the lease is of infinite or fixed duration. Possible
+ * values include: 'infinite', 'fixed'
+ */
+ leaseDuration?: LeaseDurationType;
/**
- * The snapshot parameter is an opaque DateTime value that, when present, specifies the share
- * snapshot to query.
+ * Lease state of the share. Possible values include: 'available', 'leased', 'expired',
+ * 'breaking', 'broken'
*/
- shareSnapshot?: string;
+ leaseState?: LeaseStateType;
+ /**
+ * The current lease status of the share. Possible values include: 'locked', 'unlocked'
+ */
+ leaseStatus?: LeaseStatusType;
+ errorCode?: string;
}
/**
- * Defines headers for SetProperties operation.
+ * Defines headers for Delete operation.
*/
-export interface ServiceSetPropertiesHeaders {
+export interface ShareDeleteHeaders {
/**
* This header uniquely identifies the request that was made and can be used for troubleshooting
* the request.
@@ -1298,13 +1664,41 @@ export interface ServiceSetPropertiesHeaders {
* 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 GetProperties operation.
+ * Defines headers for AcquireLease operation.
*/
-export interface ServiceGetPropertiesHeaders {
+export interface ShareAcquireLeaseHeaders {
+ /**
+ * The ETag contains a value that you can use to perform operations conditionally, in quotes.
+ */
+ etag?: string;
+ /**
+ * Returns the date and time the share was last modified. Any operation that modifies the share
+ * or its properties updates the last modified time. Operations on files do not affect the last
+ * modified time of the share.
+ */
+ lastModified?: Date;
+ /**
+ * Approximate time remaining in the lease period, in seconds.
+ */
+ leaseTime?: number;
+ /**
+ * Uniquely identifies a share'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.
@@ -1314,13 +1708,37 @@ export interface ServiceGetPropertiesHeaders {
* Indicates the version of the File service used to execute the request.
*/
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 ListSharesSegment operation.
+ * Defines headers for ReleaseLease operation.
*/
-export interface ServiceListSharesSegmentHeaders {
+export interface ShareReleaseLeaseHeaders {
+ /**
+ * The ETag contains a value that you can use to perform operations conditionally, in quotes.
+ */
+ etag?: string;
+ /**
+ * Returns the date and time the share was last modified. Any operation that modifies the share
+ * or its properties updates the last modified time. Operations on files do not affect the last
+ * modified time of the share.
+ */
+ lastModified?: Date;
+ /**
+ * 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.
@@ -1330,23 +1748,41 @@ export interface ServiceListSharesSegmentHeaders {
* Indicates the version of the File service used to execute the request.
*/
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 Create operation.
+ * Defines headers for ChangeLease operation.
*/
-export interface ShareCreateHeaders {
+export interface ShareChangeLeaseHeaders {
/**
- * The ETag contains a value which represents the version of the share, in quotes.
+ * The ETag contains a value that you can use to perform operations conditionally, in quotes.
*/
etag?: string;
/**
* Returns the date and time the share 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.
+ * or its properties updates the last modified time. Operations on files do not affect the last
+ * modified time of the share.
*/
lastModified?: Date;
+ /**
+ * Approximate time remaining in the lease period, in seconds.
+ */
+ leaseTime?: number;
+ /**
+ * Uniquely identifies a share'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.
@@ -1357,18 +1793,17 @@ export interface ShareCreateHeaders {
*/
version?: string;
/**
- * A UTC date/time value generated by the service that indicates the time at which the response
- * was initiated.
+ * 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 GetProperties operation.
+ * Defines headers for RenewLease operation.
*/
-export interface ShareGetPropertiesHeaders {
- metadata?: { [propertyName: string]: string };
+export interface ShareRenewLeaseHeaders {
/**
* The ETag contains a value that you can use to perform operations conditionally, in quotes.
*/
@@ -1379,6 +1814,19 @@ export interface ShareGetPropertiesHeaders {
* modified time of the share.
*/
lastModified?: Date;
+ /**
+ * Approximate time remaining in the lease period, in seconds.
+ */
+ leaseTime?: number;
+ /**
+ * Uniquely identifies a share'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.
@@ -1389,37 +1837,40 @@ export interface ShareGetPropertiesHeaders {
*/
version?: string;
/**
- * A UTC date/time value generated by the service that indicates the time at which the response
- * was initiated.
+ * 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 BreakLease operation.
+ */
+export interface ShareBreakLeaseHeaders {
/**
- * Returns the current share quota in GB.
+ * The ETag contains a value that you can use to perform operations conditionally, in quotes.
*/
- quota?: number;
+ etag?: string;
/**
- * Returns the current share provisioned ipos.
+ * Returns the date and time the share was last modified. Any operation that modifies the share
+ * or its properties updates the last modified time. Operations on files do not affect the last
+ * modified time of the share.
*/
- provisionedIops?: number;
+ lastModified?: Date;
/**
- * Returns the current share provisioned ingress in megabytes per second.
+ * Approximate time remaining in the lease period, in seconds.
*/
- provisionedIngressMBps?: number;
+ leaseTime?: number;
/**
- * Returns the current share provisioned egress in megabytes per second.
+ * Uniquely identifies a share's lease
*/
- provisionedEgressMBps?: number;
+ leaseId?: string;
/**
- * Returns the current share next allowed quota downgrade time.
+ * If a client request id header is sent in the request, this header will be present in the
+ * response with the same value.
*/
- nextAllowedQuotaDowngradeTime?: Date;
- errorCode?: string;
-}
-
-/**
- * Defines headers for Delete operation.
- */
-export interface ShareDeleteHeaders {
+ clientRequestId?: string;
/**
* This header uniquely identifies the request that was made and can be used for troubleshooting
* the request.
@@ -1430,8 +1881,8 @@ export interface ShareDeleteHeaders {
*/
version?: string;
/**
- * A UTC date/time value generated by the service that indicates the time at which the response
- * was initiated.
+ * UTC date/time value generated by the service that indicates the time at which the response was
+ * initiated
*/
date?: Date;
errorCode?: string;
@@ -2961,60 +3412,60 @@ export interface FileForceCloseHandlesHeaders {
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' | 'AuthorizationSourceIPMismatch' | 'AuthorizationProtocolMismatch' | 'AuthorizationPermissionMismatch' | 'AuthorizationServiceMismatch' | 'AuthorizationResourceTypeMismatch' | 'FeatureVersionMismatch';
/**
- * Defines values for PermissionCopyModeType.
- * Possible values include: 'source', 'override'
+ * Defines values for LeaseDurationType.
+ * Possible values include: 'infinite', 'fixed'
* @readonly
* @enum {string}
*/
-export type PermissionCopyModeType = 'source' | 'override';
+export type LeaseDurationType = 'infinite' | 'fixed';
/**
- * Defines values for DeleteSnapshotsOptionType.
- * Possible values include: 'include'
+ * Defines values for LeaseStateType.
+ * Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'
* @readonly
* @enum {string}
*/
-export type DeleteSnapshotsOptionType = 'include';
+export type LeaseStateType = 'available' | 'leased' | 'expired' | 'breaking' | 'broken';
/**
- * Defines values for ListSharesIncludeType.
- * Possible values include: 'snapshots', 'metadata', 'deleted'
+ * Defines values for LeaseStatusType.
+ * Possible values include: 'locked', 'unlocked'
* @readonly
* @enum {string}
*/
-export type ListSharesIncludeType = 'snapshots' | 'metadata' | 'deleted';
+export type LeaseStatusType = 'locked' | 'unlocked';
/**
- * Defines values for CopyStatusType.
- * Possible values include: 'pending', 'success', 'aborted', 'failed'
+ * Defines values for PermissionCopyModeType.
+ * Possible values include: 'source', 'override'
* @readonly
* @enum {string}
*/
-export type CopyStatusType = 'pending' | 'success' | 'aborted' | 'failed';
+export type PermissionCopyModeType = 'source' | 'override';
/**
- * Defines values for LeaseDurationType.
- * Possible values include: 'infinite', 'fixed'
+ * Defines values for DeleteSnapshotsOptionType.
+ * Possible values include: 'include'
* @readonly
* @enum {string}
*/
-export type LeaseDurationType = 'infinite' | 'fixed';
+export type DeleteSnapshotsOptionType = 'include';
/**
- * Defines values for LeaseStateType.
- * Possible values include: 'available', 'leased', 'expired', 'breaking', 'broken'
+ * Defines values for ListSharesIncludeType.
+ * Possible values include: 'snapshots', 'metadata', 'deleted'
* @readonly
* @enum {string}
*/
-export type LeaseStateType = 'available' | 'leased' | 'expired' | 'breaking' | 'broken';
+export type ListSharesIncludeType = 'snapshots' | 'metadata' | 'deleted';
/**
- * Defines values for LeaseStatusType.
- * Possible values include: 'locked', 'unlocked'
+ * Defines values for CopyStatusType.
+ * Possible values include: 'pending', 'success', 'aborted', 'failed'
* @readonly
* @enum {string}
*/
-export type LeaseStatusType = 'locked' | 'unlocked';
+export type CopyStatusType = 'pending' | 'success' | 'aborted' | 'failed';
/**
* Defines values for FileRangeWriteType.
@@ -3142,6 +3593,81 @@ export type ShareDeleteResponse = ShareDeleteHeaders & {
};
};
+/**
+ * Contains response data for the acquireLease operation.
+ */
+export type ShareAcquireLeaseResponse = ShareAcquireLeaseHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: coreHttp.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: ShareAcquireLeaseHeaders;
+ };
+};
+
+/**
+ * Contains response data for the releaseLease operation.
+ */
+export type ShareReleaseLeaseResponse = ShareReleaseLeaseHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: coreHttp.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: ShareReleaseLeaseHeaders;
+ };
+};
+
+/**
+ * Contains response data for the changeLease operation.
+ */
+export type ShareChangeLeaseResponse = ShareChangeLeaseHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: coreHttp.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: ShareChangeLeaseHeaders;
+ };
+};
+
+/**
+ * Contains response data for the renewLease operation.
+ */
+export type ShareRenewLeaseResponse = ShareRenewLeaseHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: coreHttp.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: ShareRenewLeaseHeaders;
+ };
+};
+
+/**
+ * Contains response data for the breakLease operation.
+ */
+export type ShareBreakLeaseResponse = ShareBreakLeaseHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: coreHttp.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: ShareBreakLeaseHeaders;
+ };
+};
+
/**
* Contains response data for the createSnapshot operation.
*/
diff --git a/sdk/storage/storage-file-share/src/generated/src/models/mappers.ts b/sdk/storage/storage-file-share/src/generated/src/models/mappers.ts
index a4f07c09825b..b1d9840c9fd1 100644
--- a/sdk/storage/storage-file-share/src/generated/src/models/mappers.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/models/mappers.ts
@@ -462,6 +462,42 @@ export const ShareProperties: coreHttp.CompositeMapper = {
type: {
name: "Number"
}
+ },
+ leaseStatus: {
+ xmlName: "LeaseStatus",
+ serializedName: "LeaseStatus",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "locked",
+ "unlocked"
+ ]
+ }
+ },
+ leaseState: {
+ xmlName: "LeaseState",
+ serializedName: "LeaseState",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "available",
+ "leased",
+ "expired",
+ "breaking",
+ "broken"
+ ]
+ }
+ },
+ leaseDuration: {
+ xmlName: "LeaseDuration",
+ serializedName: "LeaseDuration",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "infinite",
+ "fixed"
+ ]
+ }
}
}
}
@@ -662,6 +698,24 @@ export const Metrics: coreHttp.CompositeMapper = {
}
};
+export const SmbMultichannel: coreHttp.CompositeMapper = {
+ xmlName: "Multichannel",
+ serializedName: "SmbMultichannel",
+ type: {
+ name: "Composite",
+ className: "SmbMultichannel",
+ modelProperties: {
+ enabled: {
+ xmlName: "Enabled",
+ serializedName: "Enabled",
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
export const Range: coreHttp.CompositeMapper = {
serializedName: "Range",
type: {
@@ -688,6 +742,42 @@ export const Range: coreHttp.CompositeMapper = {
}
};
+export const SmbSettings: coreHttp.CompositeMapper = {
+ serializedName: "SmbSettings",
+ type: {
+ name: "Composite",
+ className: "SmbSettings",
+ modelProperties: {
+ multichannel: {
+ xmlName: "Multichannel",
+ serializedName: "Multichannel",
+ type: {
+ name: "Composite",
+ className: "SmbMultichannel"
+ }
+ }
+ }
+ }
+};
+
+export const ProtocolSettings: coreHttp.CompositeMapper = {
+ serializedName: "ProtocolSettings",
+ type: {
+ name: "Composite",
+ className: "ProtocolSettings",
+ modelProperties: {
+ smbSettings: {
+ xmlName: "SMB",
+ serializedName: "SmbSettings",
+ type: {
+ name: "Composite",
+ className: "SmbSettings"
+ }
+ }
+ }
+ }
+};
+
export const StorageError: coreHttp.CompositeMapper = {
serializedName: "StorageError",
type: {
@@ -804,6 +894,30 @@ export const FileServiceProperties: coreHttp.CompositeMapper = {
}
}
}
+ },
+ protocolSettings: {
+ xmlName: "ProtocolSettings",
+ serializedName: "ProtocolSettings",
+ type: {
+ name: "Composite",
+ className: "ProtocolSettings"
+ }
+ }
+ }
+ }
+};
+
+export const LeaseAccessConditions: coreHttp.CompositeMapper = {
+ xmlName: "lease-access-conditions",
+ type: {
+ name: "Composite",
+ className: "LeaseAccessConditions",
+ modelProperties: {
+ leaseId: {
+ xmlName: "leaseId",
+ type: {
+ name: "String"
+ }
}
}
}
@@ -855,22 +969,6 @@ export const FileHttpHeaders: coreHttp.CompositeMapper = {
}
};
-export const LeaseAccessConditions: coreHttp.CompositeMapper = {
- xmlName: "lease-access-conditions",
- type: {
- name: "Composite",
- className: "LeaseAccessConditions",
- modelProperties: {
- leaseId: {
- xmlName: "leaseId",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
export const SourceModifiedAccessConditions: coreHttp.CompositeMapper = {
xmlName: "source-modified-access-conditions",
type: {
@@ -1151,6 +1249,39 @@ export const ShareGetPropertiesHeaders: coreHttp.CompositeMapper = {
name: "DateTimeRfc1123"
}
},
+ leaseDuration: {
+ serializedName: "x-ms-lease-duration",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "infinite",
+ "fixed"
+ ]
+ }
+ },
+ leaseState: {
+ serializedName: "x-ms-lease-state",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "available",
+ "leased",
+ "expired",
+ "breaking",
+ "broken"
+ ]
+ }
+ },
+ leaseStatus: {
+ serializedName: "x-ms-lease-status",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "locked",
+ "unlocked"
+ ]
+ }
+ },
errorCode: {
serializedName: "x-ms-error-code",
type: {
@@ -1195,6 +1326,320 @@ export const ShareDeleteHeaders: coreHttp.CompositeMapper = {
}
};
+export const ShareAcquireLeaseHeaders: coreHttp.CompositeMapper = {
+ serializedName: "share-acquirelease-headers",
+ type: {
+ name: "Composite",
+ className: "ShareAcquireLeaseHeaders",
+ modelProperties: {
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ lastModified: {
+ serializedName: "last-modified",
+ type: {
+ name: "DateTimeRfc1123"
+ }
+ },
+ leaseTime: {
+ serializedName: "x-ms-lease-time",
+ type: {
+ name: "Number"
+ }
+ },
+ leaseId: {
+ serializedName: "x-ms-lease-id",
+ 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"
+ }
+ },
+ errorCode: {
+ serializedName: "x-ms-error-code",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ShareReleaseLeaseHeaders: coreHttp.CompositeMapper = {
+ serializedName: "share-releaselease-headers",
+ type: {
+ name: "Composite",
+ className: "ShareReleaseLeaseHeaders",
+ modelProperties: {
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ lastModified: {
+ serializedName: "last-modified",
+ type: {
+ name: "DateTimeRfc1123"
+ }
+ },
+ leaseTime: {
+ serializedName: "x-ms-lease-time",
+ type: {
+ name: "Number"
+ }
+ },
+ 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 ShareChangeLeaseHeaders: coreHttp.CompositeMapper = {
+ serializedName: "share-changelease-headers",
+ type: {
+ name: "Composite",
+ className: "ShareChangeLeaseHeaders",
+ modelProperties: {
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ lastModified: {
+ serializedName: "last-modified",
+ type: {
+ name: "DateTimeRfc1123"
+ }
+ },
+ leaseTime: {
+ serializedName: "x-ms-lease-time",
+ type: {
+ name: "Number"
+ }
+ },
+ leaseId: {
+ serializedName: "x-ms-lease-id",
+ 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"
+ }
+ },
+ errorCode: {
+ serializedName: "x-ms-error-code",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ShareRenewLeaseHeaders: coreHttp.CompositeMapper = {
+ serializedName: "share-renewlease-headers",
+ type: {
+ name: "Composite",
+ className: "ShareRenewLeaseHeaders",
+ modelProperties: {
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ lastModified: {
+ serializedName: "last-modified",
+ type: {
+ name: "DateTimeRfc1123"
+ }
+ },
+ leaseTime: {
+ serializedName: "x-ms-lease-time",
+ type: {
+ name: "Number"
+ }
+ },
+ leaseId: {
+ serializedName: "x-ms-lease-id",
+ 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"
+ }
+ },
+ errorCode: {
+ serializedName: "x-ms-error-code",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ShareBreakLeaseHeaders: coreHttp.CompositeMapper = {
+ serializedName: "share-breaklease-headers",
+ type: {
+ name: "Composite",
+ className: "ShareBreakLeaseHeaders",
+ modelProperties: {
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ },
+ lastModified: {
+ serializedName: "last-modified",
+ type: {
+ name: "DateTimeRfc1123"
+ }
+ },
+ leaseTime: {
+ serializedName: "x-ms-lease-time",
+ type: {
+ name: "Number"
+ }
+ },
+ leaseId: {
+ serializedName: "x-ms-lease-id",
+ 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"
+ }
+ },
+ errorCode: {
+ serializedName: "x-ms-error-code",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const ShareCreateSnapshotHeaders: coreHttp.CompositeMapper = {
serializedName: "share-createsnapshot-headers",
type: {
diff --git a/sdk/storage/storage-file-share/src/generated/src/models/parameters.ts b/sdk/storage/storage-file-share/src/generated/src/models/parameters.ts
index 5a93cbfde140..72a17ff86b35 100644
--- a/sdk/storage/storage-file-share/src/generated/src/models/parameters.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/models/parameters.ts
@@ -47,6 +47,18 @@ export const action2: coreHttp.OperationParameter = {
}
};
export const action3: coreHttp.OperationParameter = {
+ parameterPath: "action",
+ mapper: {
+ required: true,
+ isConstant: true,
+ serializedName: "x-ms-lease-action",
+ defaultValue: 'renew',
+ type: {
+ name: "String"
+ }
+ }
+};
+export const action4: coreHttp.OperationParameter = {
parameterPath: "action",
mapper: {
required: true,
@@ -58,6 +70,18 @@ export const action3: coreHttp.OperationParameter = {
}
}
};
+export const breakPeriod: coreHttp.OperationParameter = {
+ parameterPath: [
+ "options",
+ "breakPeriod"
+ ],
+ mapper: {
+ serializedName: "x-ms-lease-break-period",
+ type: {
+ name: "Number"
+ }
+ }
+};
export const comp0: coreHttp.OperationQueryParameter = {
parameterPath: "comp",
mapper: {
@@ -88,7 +112,7 @@ export const comp10: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'lease',
+ defaultValue: 'forceclosehandles',
type: {
name: "String"
}
@@ -136,7 +160,7 @@ export const comp2: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'snapshot',
+ defaultValue: 'lease',
type: {
name: "String"
}
@@ -148,7 +172,7 @@ export const comp3: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'filepermission',
+ defaultValue: 'snapshot',
type: {
name: "String"
}
@@ -160,7 +184,7 @@ export const comp4: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'metadata',
+ defaultValue: 'filepermission',
type: {
name: "String"
}
@@ -172,7 +196,7 @@ export const comp5: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'acl',
+ defaultValue: 'metadata',
type: {
name: "String"
}
@@ -184,7 +208,7 @@ export const comp6: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'stats',
+ defaultValue: 'acl',
type: {
name: "String"
}
@@ -196,7 +220,7 @@ export const comp7: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'undelete',
+ defaultValue: 'stats',
type: {
name: "String"
}
@@ -208,7 +232,7 @@ export const comp8: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'listhandles',
+ defaultValue: 'undelete',
type: {
name: "String"
}
@@ -220,7 +244,7 @@ export const comp9: coreHttp.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "comp",
- defaultValue: 'forceclosehandles',
+ defaultValue: 'listhandles',
type: {
name: "String"
}
@@ -716,6 +740,18 @@ export const prefix: coreHttp.OperationQueryParameter = {
}
}
};
+export const prevsharesnapshot: coreHttp.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "prevsharesnapshot"
+ ],
+ mapper: {
+ serializedName: "prevsharesnapshot",
+ type: {
+ name: "String"
+ }
+ }
+};
export const proposedLeaseId: coreHttp.OperationParameter = {
parameterPath: [
"options",
diff --git a/sdk/storage/storage-file-share/src/generated/src/models/serviceMappers.ts b/sdk/storage/storage-file-share/src/generated/src/models/serviceMappers.ts
index ac1f53f0ddeb..0286e9152656 100644
--- a/sdk/storage/storage-file-share/src/generated/src/models/serviceMappers.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/models/serviceMappers.ts
@@ -11,11 +11,14 @@ export {
FileServiceProperties,
ListSharesResponse,
Metrics,
+ ProtocolSettings,
RetentionPolicy,
ServiceGetPropertiesHeaders,
ServiceListSharesSegmentHeaders,
ServiceSetPropertiesHeaders,
ShareItem,
ShareProperties,
+ SmbMultichannel,
+ SmbSettings,
StorageError
} from "../models/mappers";
diff --git a/sdk/storage/storage-file-share/src/generated/src/models/shareMappers.ts b/sdk/storage/storage-file-share/src/generated/src/models/shareMappers.ts
index 452568ab51aa..6dfc0b033b49 100644
--- a/sdk/storage/storage-file-share/src/generated/src/models/shareMappers.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/models/shareMappers.ts
@@ -8,6 +8,9 @@
export {
AccessPolicy,
+ ShareAcquireLeaseHeaders,
+ ShareBreakLeaseHeaders,
+ ShareChangeLeaseHeaders,
ShareCreateHeaders,
ShareCreatePermissionHeaders,
ShareCreateSnapshotHeaders,
@@ -17,6 +20,8 @@ export {
ShareGetPropertiesHeaders,
ShareGetStatisticsHeaders,
SharePermission,
+ ShareReleaseLeaseHeaders,
+ ShareRenewLeaseHeaders,
ShareRestoreHeaders,
ShareSetAccessPolicyHeaders,
ShareSetMetadataHeaders,
diff --git a/sdk/storage/storage-file-share/src/generated/src/operations/directory.ts b/sdk/storage/storage-file-share/src/generated/src/operations/directory.ts
index 1746b39274c7..0c60814582fb 100644
--- a/sdk/storage/storage-file-share/src/generated/src/operations/directory.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/operations/directory.ts
@@ -388,7 +388,7 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype2,
- Parameters.comp4
+ Parameters.comp5
],
headerParameters: [
Parameters.metadata,
@@ -450,7 +450,7 @@ const listHandlesOperationSpec: coreHttp.OperationSpec = {
Parameters.maxResults,
Parameters.timeoutInSeconds,
Parameters.shareSnapshot,
- Parameters.comp8
+ Parameters.comp9
],
headerParameters: [
Parameters.recursive,
@@ -480,7 +480,7 @@ const forceCloseHandlesOperationSpec: coreHttp.OperationSpec = {
Parameters.timeoutInSeconds,
Parameters.marker,
Parameters.shareSnapshot,
- Parameters.comp9
+ Parameters.comp10
],
headerParameters: [
Parameters.handleId,
diff --git a/sdk/storage/storage-file-share/src/generated/src/operations/file.ts b/sdk/storage/storage-file-share/src/generated/src/operations/file.ts
index 92c1d2f88001..88d1fddffdd1 100644
--- a/sdk/storage/storage-file-share/src/generated/src/operations/file.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/operations/file.ts
@@ -28,7 +28,7 @@ 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 fileContentLength Specifies the maximum size for the file, up to 4 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 fileCreatedOn Creation time for the file/directory. Default value: Now.
@@ -38,7 +38,7 @@ export class File {
*/
create(fileContentLength: number, fileAttributes: string, fileCreatedOn: string, fileLastWriteOn: string, options?: Models.FileCreateOptionalParams): Promise;
/**
- * @param fileContentLength Specifies the maximum size for the file, up to 1 TB.
+ * @param fileContentLength Specifies the maximum size for the file, up to 4 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 fileCreatedOn Creation time for the file/directory. Default value: Now.
@@ -47,7 +47,7 @@ export class File {
*/
create(fileContentLength: number, fileAttributes: string, fileCreatedOn: string, fileLastWriteOn: string, callback: coreHttp.ServiceCallback): void;
/**
- * @param fileContentLength Specifies the maximum size for the file, up to 1 TB.
+ * @param fileContentLength Specifies the maximum size for the file, up to 4 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 fileCreatedOn Creation time for the file/directory. Default value: Now.
@@ -779,7 +779,7 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = {
],
queryParameters: [
Parameters.timeoutInSeconds,
- Parameters.comp4
+ Parameters.comp5
],
headerParameters: [
Parameters.metadata,
@@ -807,7 +807,7 @@ const acquireLeaseOperationSpec: coreHttp.OperationSpec = {
],
queryParameters: [
Parameters.timeoutInSeconds,
- Parameters.comp10
+ Parameters.comp2
],
headerParameters: [
Parameters.duration,
@@ -837,7 +837,7 @@ const releaseLeaseOperationSpec: coreHttp.OperationSpec = {
],
queryParameters: [
Parameters.timeoutInSeconds,
- Parameters.comp10
+ Parameters.comp2
],
headerParameters: [
Parameters.leaseId1,
@@ -866,7 +866,7 @@ const changeLeaseOperationSpec: coreHttp.OperationSpec = {
],
queryParameters: [
Parameters.timeoutInSeconds,
- Parameters.comp10
+ Parameters.comp2
],
headerParameters: [
Parameters.leaseId1,
@@ -896,12 +896,12 @@ const breakLeaseOperationSpec: coreHttp.OperationSpec = {
],
queryParameters: [
Parameters.timeoutInSeconds,
- Parameters.comp10
+ Parameters.comp2
],
headerParameters: [
Parameters.version,
Parameters.requestId,
- Parameters.action3,
+ Parameters.action4,
Parameters.leaseId0
],
responses: {
@@ -1004,6 +1004,7 @@ const getRangeListOperationSpec: coreHttp.OperationSpec = {
],
queryParameters: [
Parameters.shareSnapshot,
+ Parameters.prevsharesnapshot,
Parameters.timeoutInSeconds,
Parameters.comp12
],
@@ -1114,7 +1115,7 @@ const listHandlesOperationSpec: coreHttp.OperationSpec = {
Parameters.maxResults,
Parameters.timeoutInSeconds,
Parameters.shareSnapshot,
- Parameters.comp8
+ Parameters.comp9
],
headerParameters: [
Parameters.version
@@ -1143,7 +1144,7 @@ const forceCloseHandlesOperationSpec: coreHttp.OperationSpec = {
Parameters.timeoutInSeconds,
Parameters.marker,
Parameters.shareSnapshot,
- Parameters.comp9
+ Parameters.comp10
],
headerParameters: [
Parameters.handleId,
diff --git a/sdk/storage/storage-file-share/src/generated/src/operations/share.ts b/sdk/storage/storage-file-share/src/generated/src/operations/share.ts
index 5cc5179f048f..819b64b2b2cb 100644
--- a/sdk/storage/storage-file-share/src/generated/src/operations/share.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/operations/share.ts
@@ -101,6 +101,143 @@ export class Share {
callback) as Promise;
}
+ /**
+ * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot
+ * for set and delete share operations.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ acquireLease(options?: Models.ShareAcquireLeaseOptionalParams): Promise;
+ /**
+ * @param callback The callback
+ */
+ acquireLease(callback: coreHttp.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ acquireLease(options: Models.ShareAcquireLeaseOptionalParams, callback: coreHttp.ServiceCallback): void;
+ acquireLease(options?: Models.ShareAcquireLeaseOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ acquireLeaseOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot
+ * for set and delete share operations.
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ releaseLease(leaseId: string, options?: Models.ShareReleaseLeaseOptionalParams): Promise;
+ /**
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param callback The callback
+ */
+ releaseLease(leaseId: string, callback: coreHttp.ServiceCallback): void;
+ /**
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ releaseLease(leaseId: string, options: Models.ShareReleaseLeaseOptionalParams, callback: coreHttp.ServiceCallback): void;
+ releaseLease(leaseId: string, options?: Models.ShareReleaseLeaseOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ leaseId,
+ options
+ },
+ releaseLeaseOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot
+ * for set and delete share operations.
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ changeLease(leaseId: string, options?: Models.ShareChangeLeaseOptionalParams): Promise;
+ /**
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param callback The callback
+ */
+ changeLease(leaseId: string, callback: coreHttp.ServiceCallback): void;
+ /**
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ changeLease(leaseId: string, options: Models.ShareChangeLeaseOptionalParams, callback: coreHttp.ServiceCallback): void;
+ changeLease(leaseId: string, options?: Models.ShareChangeLeaseOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ leaseId,
+ options
+ },
+ changeLeaseOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot
+ * for set and delete share operations.
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ renewLease(leaseId: string, options?: Models.ShareRenewLeaseOptionalParams): Promise;
+ /**
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param callback The callback
+ */
+ renewLease(leaseId: string, callback: coreHttp.ServiceCallback): void;
+ /**
+ * @param leaseId Specifies the current lease ID on the resource.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ renewLease(leaseId: string, options: Models.ShareRenewLeaseOptionalParams, callback: coreHttp.ServiceCallback): void;
+ renewLease(leaseId: string, options?: Models.ShareRenewLeaseOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ leaseId,
+ options
+ },
+ renewLeaseOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * The Lease Share operation establishes and manages a lock on a share, or the specified snapshot
+ * for set and delete share operations.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ breakLease(options?: Models.ShareBreakLeaseOptionalParams): Promise;
+ /**
+ * @param callback The callback
+ */
+ breakLease(callback: coreHttp.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ breakLease(options: Models.ShareBreakLeaseOptionalParams, callback: coreHttp.ServiceCallback): void;
+ breakLease(options?: Models.ShareBreakLeaseOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ breakLeaseOperationSpec,
+ callback) as Promise;
+ }
+
/**
* Creates a read-only snapshot of a share.
* @param [options] The optional parameters
@@ -368,7 +505,8 @@ const getPropertiesOperationSpec: coreHttp.OperationSpec = {
Parameters.restype1
],
headerParameters: [
- Parameters.version
+ Parameters.version,
+ Parameters.leaseId0
],
responses: {
200: {
@@ -396,7 +534,8 @@ const deleteMethodOperationSpec: coreHttp.OperationSpec = {
],
headerParameters: [
Parameters.version,
- Parameters.deleteSnapshots
+ Parameters.deleteSnapshots,
+ Parameters.leaseId0
],
responses: {
202: {
@@ -411,6 +550,164 @@ const deleteMethodOperationSpec: coreHttp.OperationSpec = {
serializer
};
+const acquireLeaseOperationSpec: coreHttp.OperationSpec = {
+ httpMethod: "PUT",
+ path: "{shareName}",
+ urlParameters: [
+ Parameters.url
+ ],
+ queryParameters: [
+ Parameters.timeoutInSeconds,
+ Parameters.shareSnapshot,
+ Parameters.comp2,
+ Parameters.restype1
+ ],
+ headerParameters: [
+ Parameters.duration,
+ Parameters.proposedLeaseId,
+ Parameters.version,
+ Parameters.requestId,
+ Parameters.action0
+ ],
+ responses: {
+ 201: {
+ headersMapper: Mappers.ShareAcquireLeaseHeaders
+ },
+ default: {
+ bodyMapper: Mappers.StorageError,
+ headersMapper: Mappers.ShareAcquireLeaseHeaders
+ }
+ },
+ isXML: true,
+ serializer
+};
+
+const releaseLeaseOperationSpec: coreHttp.OperationSpec = {
+ httpMethod: "PUT",
+ path: "{shareName}",
+ urlParameters: [
+ Parameters.url
+ ],
+ queryParameters: [
+ Parameters.timeoutInSeconds,
+ Parameters.shareSnapshot,
+ Parameters.comp2,
+ Parameters.restype1
+ ],
+ headerParameters: [
+ Parameters.leaseId1,
+ Parameters.version,
+ Parameters.requestId,
+ Parameters.action1
+ ],
+ responses: {
+ 200: {
+ headersMapper: Mappers.ShareReleaseLeaseHeaders
+ },
+ default: {
+ bodyMapper: Mappers.StorageError,
+ headersMapper: Mappers.ShareReleaseLeaseHeaders
+ }
+ },
+ isXML: true,
+ serializer
+};
+
+const changeLeaseOperationSpec: coreHttp.OperationSpec = {
+ httpMethod: "PUT",
+ path: "{shareName}",
+ urlParameters: [
+ Parameters.url
+ ],
+ queryParameters: [
+ Parameters.timeoutInSeconds,
+ Parameters.shareSnapshot,
+ Parameters.comp2,
+ Parameters.restype1
+ ],
+ headerParameters: [
+ Parameters.leaseId1,
+ Parameters.proposedLeaseId,
+ Parameters.version,
+ Parameters.requestId,
+ Parameters.action2
+ ],
+ responses: {
+ 200: {
+ headersMapper: Mappers.ShareChangeLeaseHeaders
+ },
+ default: {
+ bodyMapper: Mappers.StorageError,
+ headersMapper: Mappers.ShareChangeLeaseHeaders
+ }
+ },
+ isXML: true,
+ serializer
+};
+
+const renewLeaseOperationSpec: coreHttp.OperationSpec = {
+ httpMethod: "PUT",
+ path: "{shareName}",
+ urlParameters: [
+ Parameters.url
+ ],
+ queryParameters: [
+ Parameters.timeoutInSeconds,
+ Parameters.shareSnapshot,
+ Parameters.comp2,
+ Parameters.restype1
+ ],
+ headerParameters: [
+ Parameters.leaseId1,
+ Parameters.version,
+ Parameters.requestId,
+ Parameters.action3
+ ],
+ responses: {
+ 200: {
+ headersMapper: Mappers.ShareRenewLeaseHeaders
+ },
+ default: {
+ bodyMapper: Mappers.StorageError,
+ headersMapper: Mappers.ShareRenewLeaseHeaders
+ }
+ },
+ isXML: true,
+ serializer
+};
+
+const breakLeaseOperationSpec: coreHttp.OperationSpec = {
+ httpMethod: "PUT",
+ path: "{shareName}",
+ urlParameters: [
+ Parameters.url
+ ],
+ queryParameters: [
+ Parameters.timeoutInSeconds,
+ Parameters.shareSnapshot,
+ Parameters.comp2,
+ Parameters.restype1
+ ],
+ headerParameters: [
+ Parameters.breakPeriod,
+ Parameters.version,
+ Parameters.requestId,
+ Parameters.action4,
+ Parameters.leaseId0
+ ],
+ responses: {
+ 202: {
+ headersMapper: Mappers.ShareBreakLeaseHeaders
+ },
+ default: {
+ bodyMapper: Mappers.StorageError,
+ headersMapper: Mappers.ShareBreakLeaseHeaders
+ }
+ },
+ isXML: true,
+ serializer
+};
+
const createSnapshotOperationSpec: coreHttp.OperationSpec = {
httpMethod: "PUT",
path: "{shareName}",
@@ -420,7 +717,7 @@ const createSnapshotOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp2
+ Parameters.comp3
],
headerParameters: [
Parameters.metadata,
@@ -448,7 +745,7 @@ const createPermissionOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp3
+ Parameters.comp4
],
headerParameters: [
Parameters.version
@@ -483,7 +780,7 @@ const getPermissionOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp3
+ Parameters.comp4
],
headerParameters: [
Parameters.filePermissionKey0,
@@ -516,7 +813,8 @@ const setQuotaOperationSpec: coreHttp.OperationSpec = {
],
headerParameters: [
Parameters.version,
- Parameters.quota
+ Parameters.quota,
+ Parameters.leaseId0
],
responses: {
200: {
@@ -540,11 +838,12 @@ const setMetadataOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp4
+ Parameters.comp5
],
headerParameters: [
Parameters.metadata,
- Parameters.version
+ Parameters.version,
+ Parameters.leaseId0
],
responses: {
200: {
@@ -568,10 +867,11 @@ const getAccessPolicyOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp5
+ Parameters.comp6
],
headerParameters: [
- Parameters.version
+ Parameters.version,
+ Parameters.leaseId0
],
responses: {
200: {
@@ -608,10 +908,11 @@ const setAccessPolicyOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp5
+ Parameters.comp6
],
headerParameters: [
- Parameters.version
+ Parameters.version,
+ Parameters.leaseId0
],
requestBody: {
parameterPath: [
@@ -656,10 +957,11 @@ const getStatisticsOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp6
+ Parameters.comp7
],
headerParameters: [
- Parameters.version
+ Parameters.version,
+ Parameters.leaseId0
],
responses: {
200: {
@@ -684,7 +986,7 @@ const restoreOperationSpec: coreHttp.OperationSpec = {
queryParameters: [
Parameters.timeoutInSeconds,
Parameters.restype1,
- Parameters.comp7
+ Parameters.comp8
],
headerParameters: [
Parameters.version,
diff --git a/sdk/storage/storage-file-share/src/generated/src/storageClientContext.ts b/sdk/storage/storage-file-share/src/generated/src/storageClientContext.ts
index 2bbf3ec564f3..70d3a0079e98 100644
--- a/sdk/storage/storage-file-share/src/generated/src/storageClientContext.ts
+++ b/sdk/storage/storage-file-share/src/generated/src/storageClientContext.ts
@@ -11,7 +11,7 @@
import * as coreHttp from "@azure/core-http";
const packageName = "azure-storage-file-share";
-const packageVersion = "12.2.1";
+const packageVersion = "12.3.0";
export class StorageClientContext extends coreHttp.ServiceClient {
version: string;
diff --git a/sdk/storage/storage-file-share/src/generatedModels.ts b/sdk/storage/storage-file-share/src/generatedModels.ts
index efcf6bf8e15b..0e943bd1d533 100644
--- a/sdk/storage/storage-file-share/src/generatedModels.ts
+++ b/sdk/storage/storage-file-share/src/generatedModels.ts
@@ -100,5 +100,8 @@ export {
LeaseDurationType,
LeaseStateType,
LeaseStatusType,
- CopyFileSmbInfo
+ CopyFileSmbInfo,
+ ProtocolSettings,
+ SmbSettings,
+ SmbMultichannel
} from "./generated/src/models";
diff --git a/sdk/storage/storage-file-share/src/utils/constants.ts b/sdk/storage/storage-file-share/src/utils/constants.ts
index 469039012392..276e5b157b1a 100644
--- a/sdk/storage/storage-file-share/src/utils/constants.ts
+++ b/sdk/storage/storage-file-share/src/utils/constants.ts
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
export const SDK_VERSION: string = "12.2.1";
-export const SERVICE_VERSION: string = "2019-12-12";
+export const SERVICE_VERSION: string = "2020-02-10";
export const FILE_MAX_SIZE_BYTES: number = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
export const FILE_RANGE_MAX_SIZE_BYTES: number = 4 * 1024 * 1024; // 4MB
diff --git a/sdk/storage/storage-file-share/swagger/README.md b/sdk/storage/storage-file-share/swagger/README.md
index 92acff2933e5..1af9d439ec00 100644
--- a/sdk/storage/storage-file-share/swagger/README.md
+++ b/sdk/storage/storage-file-share/swagger/README.md
@@ -12,7 +12,7 @@ enable-xml: true
generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../src/generated
-input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.FileStorage/preview/2019-12-12/file.json
+input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.FileStorage/preview/2020-02-10/file.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 f3e45f5fa027..5677fbf14861 100644
--- a/sdk/storage/storage-queue/package.json
+++ b/sdk/storage/storage-queue/package.json
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-queue",
"sdk-type": "client",
- "version": "12.1.1",
+ "version": "12.2.0",
"description": "Microsoft Azure Storage SDK for JavaScript - Queue",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
@@ -25,7 +25,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 --package-version=12.1.0 --use=@microsoft.azure/autorest.typescript@5.0.1",
+ "build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.2.0 --use=@microsoft.azure/autorest.typescript@5.0.1",
"build:es6": "tsc -p tsconfig.json",
"build:nodebrowser": "rollup -c 2>&1",
"build:samples": "npm run clean && npm run build:es6 && cross-env ONLY_NODE=true rollup -c 2>&1 && npm run build:prep-samples",
diff --git a/sdk/storage/storage-queue/src/QueueClient.ts b/sdk/storage/storage-queue/src/QueueClient.ts
index bec226efbd58..22bed59a583a 100644
--- a/sdk/storage/storage-queue/src/QueueClient.ts
+++ b/sdk/storage/storage-queue/src/QueueClient.ts
@@ -1277,17 +1277,13 @@ export class QueueClient extends StorageClient {
): Promise {
const { span, spanOptions } = createSpan("QueueClient-updateMessage", options.tracingOptions);
try {
- return await this.getMessageIdContext(messageId).update(
- {
+ return await this.getMessageIdContext(messageId).update(popReceipt, visibilityTimeout || 0, {
+ abortSignal: options.abortSignal,
+ spanOptions,
+ queueMessage: {
messageText: message
- },
- popReceipt,
- visibilityTimeout || 0,
- {
- abortSignal: options.abortSignal,
- spanOptions
}
- );
+ });
} catch (e) {
span.setStatus({
code: CanonicalCode.UNKNOWN,
diff --git a/sdk/storage/storage-queue/src/generated/src/models/index.ts b/sdk/storage/storage-queue/src/generated/src/models/index.ts
index 53ba26d102ed..10ba47b8028c 100644
--- a/sdk/storage/storage-queue/src/generated/src/models/index.ts
+++ b/sdk/storage/storage-queue/src/generated/src/models/index.ts
@@ -637,6 +637,10 @@ export interface MessagesPeekOptionalParams extends coreHttp.RequestOptionsBase
* Optional Parameters.
*/
export interface MessageIdUpdateOptionalParams extends coreHttp.RequestOptionsBase {
+ /**
+ * A Message object which can be stored in a Queue
+ */
+ queueMessage?: QueueMessage;
/**
* The The timeout parameter is expressed in seconds. For more information, see
*/
- update(queueMessage: Models.QueueMessage, popReceipt: string, visibilityTimeout: number, options?: Models.MessageIdUpdateOptionalParams): Promise;
+ update(popReceipt: string, visibilityTimeout: number, options?: Models.MessageIdUpdateOptionalParams): Promise;
/**
- * @param queueMessage A Message object which can be stored in a Queue
* @param popReceipt Required. Specifies the valid pop receipt value returned from an earlier call
* to the Get Messages or Update Message operation.
* @param visibilityTimeout Optional. Specifies the new visibility timeout value, in seconds,
@@ -54,9 +52,8 @@ export class MessageId {
* later than the expiry time.
* @param callback The callback
*/
- update(queueMessage: Models.QueueMessage, popReceipt: string, visibilityTimeout: number, callback: coreHttp.ServiceCallback): void;
+ update(popReceipt: string, visibilityTimeout: number, callback: coreHttp.ServiceCallback): void;
/**
- * @param queueMessage A Message object which can be stored in a Queue
* @param popReceipt Required. Specifies the valid pop receipt value returned from an earlier call
* to the Get Messages or Update Message operation.
* @param visibilityTimeout Optional. Specifies the new visibility timeout value, in seconds,
@@ -67,11 +64,10 @@ export class MessageId {
* @param options The optional parameters
* @param callback The callback
*/
- update(queueMessage: Models.QueueMessage, popReceipt: string, visibilityTimeout: number, options: Models.MessageIdUpdateOptionalParams, callback: coreHttp.ServiceCallback): void;
- update(queueMessage: Models.QueueMessage, popReceipt: string, visibilityTimeout: number, options?: Models.MessageIdUpdateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
+ update(popReceipt: string, visibilityTimeout: number, options: Models.MessageIdUpdateOptionalParams, callback: coreHttp.ServiceCallback): void;
+ update(popReceipt: string, visibilityTimeout: number, options?: Models.MessageIdUpdateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
- queueMessage,
popReceipt,
visibilityTimeout,
options
@@ -130,11 +126,11 @@ const updateOperationSpec: coreHttp.OperationSpec = {
Parameters.requestId
],
requestBody: {
- parameterPath: "queueMessage",
- mapper: {
- ...Mappers.QueueMessage,
- required: true
- }
+ parameterPath: [
+ "options",
+ "queueMessage"
+ ],
+ mapper: Mappers.QueueMessage
},
contentType: "application/xml; charset=utf-8",
responses: {
diff --git a/sdk/storage/storage-queue/src/generated/src/storageClientContext.ts b/sdk/storage/storage-queue/src/generated/src/storageClientContext.ts
index 41f81787658a..9c08aed48f22 100644
--- a/sdk/storage/storage-queue/src/generated/src/storageClientContext.ts
+++ b/sdk/storage/storage-queue/src/generated/src/storageClientContext.ts
@@ -11,7 +11,7 @@
import * as coreHttp from "@azure/core-http";
const packageName = "azure-storage-queue";
-const packageVersion = "12.1.1";
+const packageVersion = "12.2.0";
export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
@@ -39,7 +39,7 @@ export class StorageClientContext extends coreHttp.ServiceClient {
super(undefined, options);
- this.version = "2019-12-12";
+ this.version = '2020-02-10';
this.baseUri = "{url}";
this.requestContentType = "application/json; charset=utf-8";
this.url = url;
diff --git a/sdk/storage/storage-queue/src/utils/constants.ts b/sdk/storage/storage-queue/src/utils/constants.ts
index 8792cc6188b6..fd746b02ff51 100644
--- a/sdk/storage/storage-queue/src/utils/constants.ts
+++ b/sdk/storage/storage-queue/src/utils/constants.ts
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
export const SDK_VERSION: string = "12.1.1";
-export const SERVICE_VERSION: string = "2019-12-12";
+export const SERVICE_VERSION: string = "2020-02-10";
/**
* The OAuth scope to use with Azure Storage.
diff --git a/sdk/storage/storage-queue/swagger/README.md b/sdk/storage/storage-queue/swagger/README.md
index 29e77ebe4675..4ca17841a072 100644
--- a/sdk/storage/storage-queue/swagger/README.md
+++ b/sdk/storage/storage-queue/swagger/README.md
@@ -196,13 +196,13 @@ directive:
$["x-ms-client-name"] = "queueAnalyticsLogging"
```
-### Update service version from "2018-03-28" to "2019-12-12"
+### Update service version from "2018-03-28" to "2020-02-10"
```yaml
directive:
- from: swagger-document
where: $.parameters.ApiVersionParameter
- transform: $.enum = [ "2019-12-12" ];
+ transform: $.enum = [ "2020-02-10" ];
```
### Rename AccessPolicy start -> startsOn
@@ -231,5 +231,4 @@ directive:
}
```
-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorage%2Fstorage-queue%2Fswagger%2FREADME.png)