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

[storage][stg74] swagger update #11171

Merged
merged 7 commits into from
Sep 15, 2020
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
2 changes: 1 addition & 1 deletion sdk/eventhub/eventhubs-checkpointstore-blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob-changefeed/README.md
Original file line number Diff line number Diff line change
@@ -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.

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 @@ -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",
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.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",
Expand Down Expand Up @@ -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 [email protected]/[email protected]",
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=12.3.0 [email protected]/[email protected]",
"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",
Expand Down
4 changes: 4 additions & 0 deletions sdk/storage/storage-blob/review/storage-blob.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ export interface BlobDownloadHeaders {
etag?: string;
isSealed?: boolean;
isServerEncrypted?: boolean;
lastAccessed?: Date;
lastModified?: Date;
leaseDuration?: LeaseDurationType;
leaseState?: LeaseStateType;
Expand Down Expand Up @@ -654,6 +655,7 @@ export interface BlobGetPropertiesHeaders {
isIncrementalCopy?: boolean;
isSealed?: boolean;
isServerEncrypted?: boolean;
lastAccessed?: Date;
lastModified?: Date;
leaseDuration?: LeaseDurationType;
leaseState?: LeaseStateType;
Expand Down Expand Up @@ -868,6 +870,8 @@ export interface BlobProperties {
// (undocumented)
isSealed?: boolean;
// (undocumented)
lastAccessedOn?: Date;
// (undocumented)
lastModified: Date;
leaseDuration?: LeaseDurationType;
leaseState?: LeaseStateType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

export {
ArrowConfiguration,
ArrowField,
BlobAbortCopyFromURLHeaders,
BlobAcquireLeaseHeaders,
BlobBreakLeaseHeaders,
Expand Down
50 changes: 40 additions & 10 deletions sdk/storage/storage-blob/src/generated/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export interface BlobPropertiesInternal {
* Possible values include: 'High', 'Standard'
*/
rehydratePriority?: RehydratePriority;
lastAccessedOn?: Date;
}

/**
Expand Down Expand Up @@ -374,6 +375,23 @@ export interface JsonTextConfiguration {
recordSeparator: string;
}

/**
* field of an arrow schema
ljian3377 marked this conversation as resolved.
Show resolved Hide resolved
*/
export interface ArrowField {
type: string;
name?: string;
precision?: number;
scale?: number;
}

/**
* arrow configuration
*/
export interface ArrowConfiguration {
schema: ArrowField[];
}

/**
* An enumeration of containers
*/
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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',
Expand All @@ -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.
Expand All @@ -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.
Expand Down
96 changes: 95 additions & 1 deletion sdk/storage/storage-blob/src/generated/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,13 @@ export const BlobPropertiesInternal: coreHttp.CompositeMapper = {
type: {
name: "String"
}
},
lastAccessedOn: {
xmlName: "LastAccessTime",
serializedName: "LastAccessTime",
type: {
name: "DateTimeRfc1123"
}
}
}
}
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -1649,7 +1722,8 @@ export const QueryFormat: coreHttp.CompositeMapper = {
name: "Enum",
allowedValues: [
"delimited",
"json"
"json",
"arrow"
]
}
},
Expand All @@ -1668,6 +1742,14 @@ export const QueryFormat: coreHttp.CompositeMapper = {
name: "Composite",
className: "JsonTextConfiguration"
}
},
arrowConfiguration: {
xmlName: "ArrowConfiguration",
serializedName: "ArrowConfiguration",
type: {
name: "Composite",
className: "ArrowConfiguration"
}
}
}
}
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
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
Expand Up @@ -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
Expand Down
Loading