Skip to content

Commit

Permalink
Support version 2020-08-04 in storage-blob and storage-file-datalake …
Browse files Browse the repository at this point in the history
…package. (#15267)
  • Loading branch information
EmmaZhu authored May 14, 2021
1 parent 68bc533 commit f479e17
Show file tree
Hide file tree
Showing 17 changed files with 75 additions and 27 deletions.
41 changes: 34 additions & 7 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/quantum/quantum-jobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"tslib": "^2.0.0"
},
"devDependencies": {
"@azure/storage-blob": "^12.5.0",
"@azure/storage-blob": "^12.6.0-beta.1",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@azure/identity": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/perf-tests/storage-blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"@azure/core-http": "^1.2.0",
"@azure/core-rest-pipeline": "^1.0.0",
"@azure/storage-blob": "^12.5.0",
"@azure/storage-blob": "^12.6.0-beta.1",
"@azure/test-utils-perfstress": "^1.0.0",
"dotenv": "^8.2.0",
"uuid": "^8.3.0"
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/perf-tests/storage-file-datalake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@azure/storage-file-datalake": "^12.4.0",
"@azure/storage-file-datalake": "^12.5.0-beta.1",
"@azure/test-utils-perfstress": "^1.0.0",
"dotenv": "^8.2.0",
"uuid": "^8.3.0"
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob-changefeed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
]
},
"dependencies": {
"@azure/storage-blob": "^12.4.1",
"@azure/storage-blob": "^12.6.0-beta.1",
"@azure/abort-controller": "^1.0.0",
"@azure/core-http": "^1.2.0",

This comment has been minimized.

Copy link
@praveenkuttappan

praveenkuttappan Jul 6, 2021

Member

shouldn't this be changed as well? is storage blob changefeed current version still work with core-http ^1.2.0 when storage-blob requires latest core-http? Same comment for other packages as well.

"@azure/core-lro": "^1.0.2",
Expand Down
5 changes: 3 additions & 2 deletions sdk/storage/storage-blob/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Release History

## 12.5.1 (Unreleased)
## 12.6.0-beta.1 (2021-05-14)

- Deprecated `destinationContainerName` in `ServiceUndeleteContainerOptions` for `BlobServiceClient.undeleteContainer()`.
- Updated Azure Storage Service API version to 2020-08-04.
- Restoring deleted container doesn't support renaming anymore, deprecated `destinationContainerName` in `ServiceUndeleteContainerOptions` for `BlobServiceClient.undeleteContainer()`.

## 12.5.0 (2021-03-10)

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-blob/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-blob",
"sdk-type": "client",
"version": "12.5.1",
"version": "12.6.0-beta.1",
"description": "Microsoft Azure Storage SDK for JavaScript - Blob",
"main": "./dist/index.js",
"module": "./dist-esm/storage-blob/src/index.js",
Expand Down Expand Up @@ -33,7 +33,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.5.1",
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.6.0-beta.1",
"build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
"build:nodebrowser": "rollup -c 2>&1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const timeoutInSeconds: OperationQueryParameter = {
export const version: OperationParameter = {
parameterPath: "version",
mapper: {
defaultValue: "2020-06-12",
defaultValue: "2020-08-04",
isConstant: true,
serializedName: "x-ms-version",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
import { StorageClientOptionalParams } from "./models";

const packageName = "azure-storage-blob";
const packageVersion = "12.5.1";
const packageVersion = "12.6.0-beta.1";

export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
Expand Down Expand Up @@ -47,6 +47,6 @@ export class StorageClientContext extends coreHttp.ServiceClient {
this.url = url;

// Assigning values to Constant parameters
this.version = options.version || "2020-06-12";
this.version = options.version || "2020-08-04";
}
}
4 changes: 2 additions & 2 deletions sdk/storage/storage-blob/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "12.5.1";
export const SERVICE_VERSION: string = "2020-06-12";
export const SDK_VERSION: string = "12.6.0-beta.1";
export const SERVICE_VERSION: string = "2020-08-04";

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
Expand Down
9 changes: 9 additions & 0 deletions sdk/storage/storage-blob/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1258,4 +1258,13 @@ directive:
delete $.properties["AllowPermanentDelete"];
```

### Update service version from "2020-06-12" to "2020-08-04"

```yaml
directive:
- from: swagger-document
where: $.parameters.ApiVersionParameter
transform: $.enum = [ "2020-08-04" ];
```

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fstorage%2Fstorage-blob%2Fswagger%2FREADME.png)
6 changes: 4 additions & 2 deletions sdk/storage/storage-file-datalake/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Release History

## 12.4.1 (Unreleased)
## 12.5.0-beta.1 (2021-05-14)

- Deprecated `destinationFileSystemName` in `ServiceUndeleteFileSystemOptions` for `DataLakeServiceClient.undeleteFileSystem()`.
- Updated Azure Storage Service API version to 2020-08-04.
- Added support for Path Soft Delete. You can list the deleted paths via `DataLakeFileSystemClient.listDeletedPaths()`, and restore a deleted path via `DataLakeFileSystemClient.undeletePath()`.
- Restoring deleted FileSystem doesn't support renaming anymore, deprecated `destinationFileSystemName` in `ServiceUndeleteFileSystemOptions` for `DataLakeServiceClient.undeleteFileSystem()`.

## 12.4.0 (2021-03-10)

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-file-datalake/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/storage-file-datalake",
"version": "12.4.1",
"version": "12.5.0-beta.1",
"description": "Microsoft Azure Storage SDK for JavaScript - DataLake",
"sdk-type": "client",
"main": "./dist/index.js",
Expand Down Expand Up @@ -103,7 +103,7 @@
"@azure/core-paging": "^1.1.1",
"@azure/core-tracing": "1.0.0-preview.11",
"@azure/logger": "^1.0.0",
"@azure/storage-blob": "^12.5.0",
"@azure/storage-blob": "^12.6.0-beta.1",
"events": "^3.0.0",
"tslib": "^2.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const timeout: OperationQueryParameter = {
export const version: OperationParameter = {
parameterPath: "version",
mapper: {
defaultValue: "2020-06-12",
defaultValue: "2020-08-04",
isConstant: true,
serializedName: "x-ms-version",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class StorageClientContext extends coreHttp.ServiceClient {
this.url = url;

// Assigning values to Constant parameters
this.version = options.version || "2020-06-12";
this.version = options.version || "2020-08-04";
this.resource = options.resource || "filesystem";
}
}
2 changes: 1 addition & 1 deletion sdk/storage/storage-file-datalake/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "12.4.1";
export const SDK_VERSION: string = "12.5.0-beta.1";
export const SERVICE_VERSION: string = "2020-06-12";

export const KB: number = 1024;
Expand Down
9 changes: 9 additions & 0 deletions sdk/storage/storage-file-datalake/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,12 @@ directive:
transform: >
delete $["x-ms-pageable"];
```

### Update service version from "2020-06-12" to "2020-08-04"

```yaml
directive:
- from: swagger-document
where: $.parameters.ApiVersionParameter
transform: $.enum = [ "2020-08-04" ];
```

0 comments on commit f479e17

Please sign in to comment.