Skip to content

Commit

Permalink
[Storage](Queue) Update storage service version to 2019-02-02 and ret…
Browse files Browse the repository at this point in the history
…urn x-ms-client-request-id through clientRequestId for all APIs.
  • Loading branch information
jiacfan authored and vinjiang committed Sep 9, 2019
1 parent e30bf29 commit 48d134a
Show file tree
Hide file tree
Showing 13 changed files with 241 additions and 22 deletions.
11 changes: 8 additions & 3 deletions sdk/storage/storage-queue/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

2019.7 Version 10.2.0
## 2019.09 Version 10.3.0

* Updated Azure Storage Service API version to 2019-02-02.
* Responses for all APIs now return x-ms-client-request-id through `clientRequestId` that was passed in on the request from client-side.

## 2019.07 Version 10.2.0

* Fixed a bug that `Aborter` cannot work during retry interval.
* Fixed a bug that "err.code.toUpperCase is not a function" when retries in browser.
Expand All @@ -11,7 +16,7 @@
* A new option `keepAliveOptions` added to parameter of `StorageURL.newPipeline()` which controls keep-alive configurations. Keep-alive is enabled by default.
* Updated Azure Storage Service API version to [2018-11-09](https://docs.microsoft.com/en-us/rest/api/storageservices/version-2018-11-09).

2019.1 Version 10.1.0
## 2019.01 Version 10.1.0

* [Breaking] Updated convenience layer methods enum type parameters into typescript union types, this will help to reduce bundle footprint.
* [Breaking] `SASQueryParameters` is not going to be exported in browser bundle, and will be exported in Node.js runtime.
Expand All @@ -22,6 +27,6 @@
* Fixed an issue that enqueue/dequeue/peek fail to work with some utf8 characters.
* Exported HttpRequestBody type for who wants to implement a customized HTTP client.

2018.12 Version 10.0.0-preview
## 2018.12 Version 10.0.0-preview

* Initial Release. API version 2018-03-28 supported. Please see the README for information on the new design.
120 changes: 108 additions & 12 deletions sdk/storage/storage-queue/src/generated/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,11 @@ export interface ServiceListQueuesSegmentOptionalParams extends msRest.RequestOp
*/
maxresults?: number;
/**
* @member {ListQueuesIncludeType} [include] Include this parameter to
* @member {ListQueuesIncludeType[]} [include] Include this parameter to
* specify that the queues's metadata be returned as part of the response
* body. Possible values include: 'metadata'
* body.
*/
include?: ListQueuesIncludeType;
include?: ListQueuesIncludeType[];
/**
* @member {number} [timeoutParameter] The The timeout parameter is expressed
* in seconds. For more information, see <a
Expand Down Expand Up @@ -890,6 +890,12 @@ export interface MessageIdDeleteMethodOptionalParams extends msRest.RequestOptio
*
*/
export interface ServiceSetPropertiesHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand All @@ -914,6 +920,12 @@ export interface ServiceSetPropertiesHeaders {
*
*/
export interface ServiceGetPropertiesHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand All @@ -938,6 +950,12 @@ export interface ServiceGetPropertiesHeaders {
*
*/
export interface ServiceGetStatisticsHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -967,6 +985,12 @@ export interface ServiceGetStatisticsHeaders {
*
*/
export interface ServiceListQueuesSegmentHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -996,6 +1020,12 @@ export interface ServiceListQueuesSegmentHeaders {
*
*/
export interface QueueCreateHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1025,6 +1055,12 @@ export interface QueueCreateHeaders {
*
*/
export interface QueueDeleteHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1054,6 +1090,12 @@ export interface QueueDeleteHeaders {
*
*/
export interface QueueGetPropertiesHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {{ [propertyName: string]: string }} [metadata]
*/
Expand Down Expand Up @@ -1093,6 +1135,12 @@ export interface QueueGetPropertiesHeaders {
*
*/
export interface QueueSetMetadataHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1122,6 +1170,12 @@ export interface QueueSetMetadataHeaders {
*
*/
export interface QueueGetAccessPolicyHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1151,6 +1205,12 @@ export interface QueueGetAccessPolicyHeaders {
*
*/
export interface QueueSetAccessPolicyHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1180,6 +1240,12 @@ export interface QueueSetAccessPolicyHeaders {
*
*/
export interface MessagesDequeueHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1209,6 +1275,12 @@ export interface MessagesDequeueHeaders {
*
*/
export interface MessagesClearHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1238,6 +1310,12 @@ export interface MessagesClearHeaders {
*
*/
export interface MessagesEnqueueHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1267,6 +1345,12 @@ export interface MessagesEnqueueHeaders {
*
*/
export interface MessagesPeekHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1296,6 +1380,12 @@ export interface MessagesPeekHeaders {
*
*/
export interface MessageIdUpdateHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand Down Expand Up @@ -1334,6 +1424,12 @@ export interface MessageIdUpdateHeaders {
*
*/
export interface MessageIdDeleteHeaders {
/**
* @member {string} [clientRequestId] 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;
/**
* @member {string} [requestId] This header uniquely identifies the request
* that was made and can be used for troubleshooting the request.
Expand All @@ -1359,14 +1455,14 @@ export interface MessageIdDeleteHeaders {
/**
* Defines values for StorageErrorCode.
* Possible values include: 'AccountAlreadyExists', 'AccountBeingCreated', 'AccountIsDisabled',
* 'AuthenticationFailed', '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',
* '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', 'InvalidMarker', 'MessageNotFound', 'MessageTooLarge',
Expand All @@ -1375,7 +1471,7 @@ export interface MessageIdDeleteHeaders {
* @readonly
* @enum {string}
*/
export type StorageErrorCode = 'AccountAlreadyExists' | 'AccountBeingCreated' | 'AccountIsDisabled' | 'AuthenticationFailed' | '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' | 'InvalidMarker' | 'MessageNotFound' | 'MessageTooLarge' | 'PopReceiptMismatch' | 'QueueAlreadyExists' | 'QueueBeingDeleted' | 'QueueDisabled' | 'QueueNotEmpty' | 'QueueNotFound';
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' | 'InvalidMarker' | 'MessageNotFound' | 'MessageTooLarge' | 'PopReceiptMismatch' | 'QueueAlreadyExists' | 'QueueBeingDeleted' | 'QueueDisabled' | 'QueueNotEmpty' | 'QueueNotFound';

/**
* Defines values for GeoReplicationStatusType.
Expand Down
Loading

0 comments on commit 48d134a

Please sign in to comment.