Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package versions for STG77 GA #15484

Merged
merged 1 commit into from
Jun 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/storage/storage-blob/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 12.6.0 (Unreleased)

- Includes all features released in 12.6.0-beta.1.

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

- Updated Azure Storage Service API version to 2020-08-04.
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.6.0-beta.1",
"version": "12.6.0",
"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.6.0-beta.1",
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.6.0",
"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
5 changes: 3 additions & 2 deletions sdk/storage/storage-blob/review/storage-blob.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ export interface BlobSetHTTPHeadersHeaders {
blobSequenceNumber?: number;
clientRequestId?: string;
date?: Date;
errorCode?: string;
etag?: string;
lastModified?: Date;
requestId?: string;
Expand Down Expand Up @@ -2123,7 +2124,7 @@ export interface GeoReplication {
}

// @public
export type GeoReplicationStatusType = string;
export type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Breaking change, better have it in ChangeLog.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's to change back to the last GAed interface from a mistake in preview version. There's no change for production customer. Better not mention it to avoid confusing.


export { HttpHeaders }

Expand Down Expand Up @@ -2689,7 +2690,7 @@ export enum PremiumPageBlobTier {
}

// @public
export type PublicAccessType = string;
export type PublicAccessType = "container" | "blob";

// @public
export interface Range {
Expand Down
40 changes: 6 additions & 34 deletions sdk/storage/storage-blob/src/generated/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,8 @@ export interface BlobSetHttpHeadersHeaders {
version?: string;
/** UTC date/time value generated by the service that indicates the time at which the response was initiated */
date?: Date;
/** Error Code */
errorCode?: string;
}

/** Defines headers for Blob_setHttpHeaders operation. */
Expand Down Expand Up @@ -2522,40 +2524,6 @@ export interface AppendPositionAccessConditions {
appendPosition?: number;
}

/** Known values of {@link GeoReplicationStatusType} that the service accepts. */
export const enum KnownGeoReplicationStatusType {
Live = "live",
Bootstrap = "bootstrap",
Unavailable = "unavailable"
}

/**
* Defines values for GeoReplicationStatusType. \
* {@link KnownGeoReplicationStatusType} can be used interchangeably with GeoReplicationStatusType,
* this enum contains the known values that the service supports.
* ### Know values supported by the service
* **live** \
* **bootstrap** \
* **unavailable**
*/
export type GeoReplicationStatusType = string;

/** Known values of {@link PublicAccessType} that the service accepts. */
export const enum KnownPublicAccessType {
Container = "container",
Blob = "blob"
}

/**
* Defines values for PublicAccessType. \
* {@link KnownPublicAccessType} can be used interchangeably with PublicAccessType,
* this enum contains the known values that the service supports.
* ### Know values supported by the service
* **container** \
* **blob**
*/
export type PublicAccessType = string;

/** Known values of {@link BlobExpiryOptions} that the service accepts. */
export const enum KnownBlobExpiryOptions {
NeverExpire = "NeverExpire",
Expand Down Expand Up @@ -2811,6 +2779,8 @@ export const enum KnownStorageErrorCode {
* **AuthorizationResourceTypeMismatch**
*/
export type StorageErrorCode = string;
/** Defines values for GeoReplicationStatusType. */
export type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable";
/** Defines values for ListContainersIncludeType. */
export type ListContainersIncludeType = "metadata" | "deleted";
/** Defines values for LeaseStatusType. */
Expand All @@ -2824,6 +2794,8 @@ export type LeaseStateType =
| "broken";
/** Defines values for LeaseDurationType. */
export type LeaseDurationType = "infinite" | "fixed";
/** Defines values for PublicAccessType. */
export type PublicAccessType = "container" | "blob";
/** Defines values for SkuName. */
export type SkuName =
| "Standard_LRS"
Expand Down
19 changes: 15 additions & 4 deletions sdk/storage/storage-blob/src/generated/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ export const GeoReplication: coreHttp.CompositeMapper = {
required: true,
xmlName: "Status",
type: {
name: "String"
name: "Enum",
allowedValues: ["live", "bootstrap", "unavailable"]
}
},
lastSyncOn: {
Expand Down Expand Up @@ -529,7 +530,8 @@ export const ContainerProperties: coreHttp.CompositeMapper = {
serializedName: "PublicAccess",
xmlName: "PublicAccess",
type: {
name: "String"
name: "Enum",
allowedValues: ["container", "blob"]
}
},
hasImmutabilityPolicy: {
Expand Down Expand Up @@ -2641,7 +2643,8 @@ export const ContainerGetPropertiesHeaders: coreHttp.CompositeMapper = {
serializedName: "x-ms-blob-public-access",
xmlName: "x-ms-blob-public-access",
type: {
name: "String"
name: "Enum",
allowedValues: ["container", "blob"]
}
},
hasImmutabilityPolicy: {
Expand Down Expand Up @@ -2848,7 +2851,8 @@ export const ContainerGetAccessPolicyHeaders: coreHttp.CompositeMapper = {
serializedName: "x-ms-blob-public-access",
xmlName: "x-ms-blob-public-access",
type: {
name: "String"
name: "Enum",
allowedValues: ["container", "blob"]
}
},
etag: {
Expand Down Expand Up @@ -5424,6 +5428,13 @@ export const BlobSetHttpHeadersHeaders: coreHttp.CompositeMapper = {
type: {
name: "DateTimeRfc1123"
}
},
errorCode: {
serializedName: "x-ms-error-code",
xmlName: "x-ms-error-code",
type: {
name: "String"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ export const access: OperationParameter = {
serializedName: "x-ms-blob-public-access",
xmlName: "x-ms-blob-public-access",
type: {
name: "String"
name: "Enum",
allowedValues: ["container", "blob"]
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/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.6.0-beta.1";
export const SDK_VERSION: string = "12.6.0";
export const SERVICE_VERSION: string = "2020-08-04";

export const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES: number = 256 * 1024 * 1024; // 256MB
Expand Down
27 changes: 25 additions & 2 deletions sdk/storage/storage-blob/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,19 @@ directive:
$["x-ms-error-code"]["description"] = "Error Code";
```

### Add error code to response header - Blob_SetHTTPHeaders

```yaml
directive:
- from: swagger-document
where: $["x-ms-paths"]["/{containerName}/{blob}?comp=properties&SetHTTPHeaders"]["put"]["responses"]["200"]["headers"]
transform: >
$["x-ms-error-code"] = {};
$["x-ms-error-code"]["x-ms-client-name"] = "ErrorCode";
$["x-ms-error-code"]["type"] = "string";
$["x-ms-error-code"]["description"] = "Error Code";
```

### Add ContentCrc64 to response header - Blob_Download

```yaml
Expand Down Expand Up @@ -1214,12 +1227,12 @@ directive:
delete $["modelAsString"]
```

### Define GeoReplication as enum type
### Define GeoReplicationStatusType as enum type

```yaml
directive:
- from: swagger-document
where: $["definitions"]["GeoReplication"]["x-ms-enum"]
where: $["definitions"]["GeoReplication"]["properties"]["Status"]["x-ms-enum"]
transform: >
delete $["modelAsString"]
```
Expand All @@ -1234,6 +1247,16 @@ directive:
delete $["modelAsString"]
```

### Define PublicAccessType as enum type

```yaml
directive:
- from: swagger-document
where: $["definitions"]["PublicAccessType"]["x-ms-enum"]
transform: >
delete $["modelAsString"]
```

### Define RehydratePriority as enum type

```yaml
Expand Down
4 changes: 4 additions & 0 deletions sdk/storage/storage-file-datalake/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 12.5.0 (Unreleased)

- Includes all features released in 12.5.0-beta.1.

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

- Updated Azure Storage Service API version to 2020-08-04.
Expand Down
2 changes: 1 addition & 1 deletion 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.5.0-beta.1",
"version": "12.5.0",
"description": "Microsoft Azure Storage SDK for JavaScript - DataLake",
"sdk-type": "client",
"main": "./dist/index.js",
Expand Down
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.5.0-beta.1";
export const SDK_VERSION: string = "12.5.0";
export const SERVICE_VERSION: string = "2020-06-12";

export const KB: number = 1024;
Expand Down
4 changes: 3 additions & 1 deletion sdk/storage/storage-file-share/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 12.5.1 (Unreleased)
## 12.6.0 (Unreleased)

- Updated Azure Storage Service API version to 2020-08-04.

## 12.5.0 (2021-03-10)

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-file-share/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-file-share",
"sdk-type": "client",
"version": "12.5.1",
"version": "12.6.0",
"description": "Microsoft Azure Storage SDK for JavaScript - File",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -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.5.0",
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.6.0",
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
"build:node": "tsc -p . && cross-env ONLY_NODE=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 @@ -10,7 +10,7 @@ import * as coreHttp from "@azure/core-http";
import { StorageClientOptionalParams } from "./models";

const packageName = "azure-storage-file-share";
const packageVersion = "12.5.0";
const packageVersion = "12.6.0";

export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
Expand Down 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.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
}
}
4 changes: 2 additions & 2 deletions sdk/storage/storage-file-share/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";
export const SERVICE_VERSION: string = "2020-08-04";

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
Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-file-share/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -826,13 +826,13 @@ directive:
$["modelAsString"] = false;
```

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

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

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

## 12.4.1 (Unreleased)
## 12.5.0 (Unreleased)

- Updated Azure Storage Service API version to 2020-08-04.

## 12.4.0 (2021-03-10)

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/storage-queue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/storage-queue",
"sdk-type": "client",
"version": "12.4.1",
"version": "12.5.0",
"description": "Microsoft Azure Storage SDK for JavaScript - Queue",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -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.4.0",
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.5.0",
"build:nodebrowser": "rollup -c 2>&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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,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
Loading