diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json
index c1e094a25487..05cf4dbe61c2 100644
--- a/sdk/storage/storage-queue/package.json
+++ b/sdk/storage/storage-queue/package.json
@@ -73,7 +73,7 @@
"homepage": "https://github.com/Azure/azure-storage-js#readme",
"sideEffects": false,
"dependencies": {
- "@azure/ms-rest-js": "^1.2.6",
+ "@azure/core-http": "^1.2.6",
"tslib": "^1.9.3"
},
"devDependencies": {
diff --git a/sdk/storage/storage-queue/rollup.base.config.js b/sdk/storage/storage-queue/rollup.base.config.js
index d676da37d022..bbe2454b74c1 100644
--- a/sdk/storage/storage-queue/rollup.base.config.js
+++ b/sdk/storage/storage-queue/rollup.base.config.js
@@ -23,7 +23,7 @@ const depNames = Object.keys(pkg.dependencies);
const production = process.env.NODE_ENV === "production";
export function nodeConfig(test = false) {
- const externalNodeBuiltins = ["@azure/ms-rest-js", "crypto", "fs", "os"];
+ const externalNodeBuiltins = ["@azure/core-http", "crypto", "fs", "os"];
const baseConfig = {
input: "dist-esm/src/index.js",
external: depNames.concat(externalNodeBuiltins),
diff --git a/sdk/storage/storage-queue/src/Aborter.ts b/sdk/storage/storage-queue/src/Aborter.ts
index 30be81bfac43..f936e1923bd3 100644
--- a/sdk/storage/storage-queue/src/Aborter.ts
+++ b/sdk/storage/storage-queue/src/Aborter.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { AbortSignalLike, isNode } from "@azure/ms-rest-js";
+import { AbortSignalLike, isNode } from "@azure/core-http";
/**
* An aborter instance implements AbortSignal interface, can abort HTTP requests.
diff --git a/sdk/storage/storage-queue/src/BrowserPolicyFactory.ts b/sdk/storage/storage-queue/src/BrowserPolicyFactory.ts
index 2038cf8deb5d..dd71e3befe57 100644
--- a/sdk/storage/storage-queue/src/BrowserPolicyFactory.ts
+++ b/sdk/storage/storage-queue/src/BrowserPolicyFactory.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/core-http";
import { BrowserPolicy } from "./policies/BrowserPolicy";
/**
diff --git a/sdk/storage/storage-queue/src/LoggingPolicyFactory.ts b/sdk/storage/storage-queue/src/LoggingPolicyFactory.ts
index 5d6b03bb1e00..03cd588ba5ce 100644
--- a/sdk/storage/storage-queue/src/LoggingPolicyFactory.ts
+++ b/sdk/storage/storage-queue/src/LoggingPolicyFactory.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/core-http";
import { LoggingPolicy } from "./policies/LoggingPolicy";
/**
diff --git a/sdk/storage/storage-queue/src/MessageIdClient.ts b/sdk/storage/storage-queue/src/MessageIdClient.ts
index 27cbc7449724..99010bb5e725 100644
--- a/sdk/storage/storage-queue/src/MessageIdClient.ts
+++ b/sdk/storage/storage-queue/src/MessageIdClient.ts
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+import * as coreHttp from "@azure/core-http";
import * as Models from "./generated/lib/models";
import { Aborter } from "./Aborter";
import { MessageId } from "./generated/lib/operations";
@@ -85,12 +86,16 @@ export class MessageIdClient extends StorageClient {
* "https://myaccount.queue.core.windows.net/myqueue/messages/messageid". You can
* append a SAS if using AnonymousCredential, such as
* "https://myaccount.queue.core.windows.net/myqueue/messages/messageid?sasString".
- * @param {Credential} credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
- * If not specified, anonymous credential is used.
+ * @param {Credential | coreHttp.TokenCredential} credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
+ * If not specified, anonymous credential is used.
* @param {NewPipelineOptions} [options] Options to configure the HTTP pipeline.
* @memberof MessageIdClient
*/
- constructor(url: string, credential?: Credential, options?: NewPipelineOptions);
+ constructor(
+ url: string,
+ credential?: Credential | coreHttp.TokenCredential,
+ options?: NewPipelineOptions
+ );
/**
* Creates an instance of MessageIdClient.
*
@@ -105,14 +110,17 @@ export class MessageIdClient extends StorageClient {
constructor(url: string, pipeline: Pipeline);
constructor(
urlOrConnectionString: string,
- credentialOrPipelineOrQueueName?: Credential | Pipeline | string,
+ credentialOrPipelineOrQueueName?: Credential | coreHttp.TokenCredential | Pipeline | string,
messageIdOrOptions?: string | NewPipelineOptions,
options: NewPipelineOptions = {}
) {
let pipeline: Pipeline;
if (credentialOrPipelineOrQueueName instanceof Pipeline) {
pipeline = credentialOrPipelineOrQueueName;
- } else if (credentialOrPipelineOrQueueName instanceof Credential) {
+ } else if (
+ credentialOrPipelineOrQueueName instanceof Credential ||
+ coreHttp.isTokenCredential(credentialOrPipelineOrQueueName)
+ ) {
options = messageIdOrOptions as NewPipelineOptions;
pipeline = newPipeline(credentialOrPipelineOrQueueName, options);
} else if (
diff --git a/sdk/storage/storage-queue/src/MessagesClient.ts b/sdk/storage/storage-queue/src/MessagesClient.ts
index bbad2c2137b5..0c343d23bbb9 100644
--- a/sdk/storage/storage-queue/src/MessagesClient.ts
+++ b/sdk/storage/storage-queue/src/MessagesClient.ts
@@ -1,7 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { HttpResponse } from "@azure/ms-rest-js";
+import {
+ HttpResponse,
+ TokenCredential as CoreHttpTokenCredential,
+ isTokenCredential as isCoreHttpTokenCredential
+} from "@azure/core-http";
import * as Models from "./generated/lib/models";
import { Aborter } from "./Aborter";
import { Messages } from "./generated/lib/operations";
@@ -180,12 +184,16 @@ export class MessagesClient extends StorageClient {
* "https://myaccount.queue.core.windows.net/myqueue/messages". You can
* append a SAS if using AnonymousCredential, such as
* "https://myaccount.queue.core.windows.net/myqueue/messages?sasString".
- * @param {Credential} credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
+ * @param {Credential | CoreHttpTokenCredential } credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
* If not specified, anonymous credential is used.
* @param {NewPipelineOptions} [options] Options to configure the HTTP pipeline.
* @memberof MessagesClient
*/
- constructor(url: string, credential?: Credential, options?: NewPipelineOptions);
+ constructor(
+ url: string,
+ credential?: Credential | CoreHttpTokenCredential,
+ options?: NewPipelineOptions
+ );
/**
* Creates an instance of MessagesClient.
*
@@ -200,13 +208,16 @@ export class MessagesClient extends StorageClient {
constructor(url: string, pipeline: Pipeline);
constructor(
urlOrConnectionString: string,
- credentialOrPipelineOrQueueName?: Credential | Pipeline | string,
+ credentialOrPipelineOrQueueName?: Credential | CoreHttpTokenCredential | Pipeline | string,
options?: NewPipelineOptions
) {
let pipeline: Pipeline;
if (credentialOrPipelineOrQueueName instanceof Pipeline) {
pipeline = credentialOrPipelineOrQueueName;
- } else if (credentialOrPipelineOrQueueName instanceof Credential) {
+ } else if (
+ credentialOrPipelineOrQueueName instanceof Credential ||
+ isCoreHttpTokenCredential(credentialOrPipelineOrQueueName)
+ ) {
pipeline = newPipeline(credentialOrPipelineOrQueueName, options);
} else if (
!credentialOrPipelineOrQueueName &&
diff --git a/sdk/storage/storage-queue/src/Pipeline.ts b/sdk/storage/storage-queue/src/Pipeline.ts
index aa57b5d530f9..a45c3853deb5 100644
--- a/sdk/storage/storage-queue/src/Pipeline.ts
+++ b/sdk/storage/storage-queue/src/Pipeline.ts
@@ -14,8 +14,11 @@ import {
RequestPolicyFactory,
RequestPolicyOptions,
ServiceClientOptions,
- WebResource
-} from "@azure/ms-rest-js";
+ WebResource,
+ TokenCredential as CoreHttpTokenCredential,
+ isTokenCredential as isCoreHttpTokenCredential,
+ bearerTokenAuthenticationPolicy
+} from "@azure/core-http";
import { BrowserPolicyFactory } from "./BrowserPolicyFactory";
import { Credential } from "./credentials/Credential";
import { LoggingPolicyFactory } from "./LoggingPolicyFactory";
@@ -159,13 +162,13 @@ export interface NewPipelineOptions {
* Creates a new Pipeline object with Credential provided.
*
* @static
- * @param {Credential} credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
+ * @param {Credential | CoreHttpTokenCredential } credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
* @param {NewPipelineOptions} [pipelineOptions] Options.
* @returns {Pipeline} A new Pipeline object.
* @memberof Pipeline
*/
export function newPipeline(
- credential: Credential,
+ credential: Credential | CoreHttpTokenCredential,
pipelineOptions: NewPipelineOptions = {}
): Pipeline {
// Order is important. Closer to the API at the top & closer to the network at the bottom.
@@ -178,7 +181,9 @@ export function newPipeline(
deserializationPolicy(), // Default deserializationPolicy is provided by protocol layer
new RetryPolicyFactory(pipelineOptions.retryOptions),
new LoggingPolicyFactory(),
- credential
+ isCoreHttpTokenCredential(credential)
+ ? bearerTokenAuthenticationPolicy(credential, "https://storage.azure.com/.default")
+ : credential
];
return new Pipeline(factories, {
diff --git a/sdk/storage/storage-queue/src/QueueClient.ts b/sdk/storage/storage-queue/src/QueueClient.ts
index b8ea944d9ebe..c491c500d1e2 100644
--- a/sdk/storage/storage-queue/src/QueueClient.ts
+++ b/sdk/storage/storage-queue/src/QueueClient.ts
@@ -1,7 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { HttpResponse } from "@azure/ms-rest-js";
+import {
+ HttpResponse,
+ TokenCredential as CoreHttpTokenCredential,
+ isTokenCredential as isCoreHttpTokenCredential
+} from "@azure/core-http";
import * as Models from "./generated/lib/models";
import { Aborter } from "./Aborter";
import { Queue } from "./generated/lib/operations";
@@ -219,12 +223,16 @@ export class QueueClient extends StorageClient {
* "https://myaccount.queue.core.windows.net/myqueue". You can
* append a SAS if using AnonymousCredential, such as
* "https://myaccount.queue.core.windows.net/myqueue?sasString".
- * @param {Credential} credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
+ * @param {Credential | CoreHttpTokenCredential } credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
* If not specified, anonymous credential is used.
* @param {NewPipelineOptions} [options] Options to configure the HTTP pipeline.
* @memberof QueueClient
*/
- constructor(url: string, credential?: Credential, options?: NewPipelineOptions);
+ constructor(
+ url: string,
+ credential?: Credential | CoreHttpTokenCredential,
+ options?: NewPipelineOptions
+ );
/**
* Creates an instance of QueueClient.
*
@@ -239,13 +247,16 @@ export class QueueClient extends StorageClient {
constructor(url: string, pipeline: Pipeline);
constructor(
urlOrConnectionString: string,
- credentialOrPipelineOrQueueName?: Credential | Pipeline | string,
+ credentialOrPipelineOrQueueName?: Credential | CoreHttpTokenCredential | Pipeline | string,
options?: NewPipelineOptions
) {
let pipeline: Pipeline;
if (credentialOrPipelineOrQueueName instanceof Pipeline) {
pipeline = credentialOrPipelineOrQueueName;
- } else if (credentialOrPipelineOrQueueName instanceof Credential) {
+ } else if (
+ credentialOrPipelineOrQueueName instanceof Credential ||
+ isCoreHttpTokenCredential(credentialOrPipelineOrQueueName)
+ ) {
pipeline = newPipeline(credentialOrPipelineOrQueueName, options);
} else if (
!credentialOrPipelineOrQueueName &&
@@ -286,7 +297,7 @@ export class QueueClient extends StorageClient {
return this.queueContext.create({
...options,
abortSignal: aborter
- });
+ } as Models.QueueCreateOptionalParams);
}
/**
@@ -350,7 +361,7 @@ export class QueueClient extends StorageClient {
return this.queueContext.setMetadata({
abortSignal: aborter,
metadata
- });
+ } as Models.QueueSetMetadataOptionalParams);
}
/**
diff --git a/sdk/storage/storage-queue/src/QueueServiceClient.ts b/sdk/storage/storage-queue/src/QueueServiceClient.ts
index b2deee8ce18c..7a2b3d3392fa 100644
--- a/sdk/storage/storage-queue/src/QueueServiceClient.ts
+++ b/sdk/storage/storage-queue/src/QueueServiceClient.ts
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+import * as coreHttp from "@azure/core-http";
import * as Models from "./generated/lib/models";
import { Aborter } from "./Aborter";
import { ListQueuesIncludeType } from "./generated/lib/models/index";
@@ -122,7 +123,10 @@ export class QueueServiceClient extends StorageClient {
* @returns {QueueServiceClient} A new QueueServiceClient object from the given connection string.
* @memberof QueueServiceClient
*/
- public static fromConnectionString(connectionString: string, options?: NewPipelineOptions): QueueServiceClient {
+ public static fromConnectionString(
+ connectionString: string,
+ options?: NewPipelineOptions
+ ): QueueServiceClient {
const extractedCreds = extractConnectionStringParts(connectionString);
const sharedKeyCredential = new SharedKeyCredential(
extractedCreds.accountName,
@@ -148,12 +152,16 @@ export class QueueServiceClient extends StorageClient {
* @param {string} url A URL string pointing to Azure Storage queue service, such as
* "https://myaccount.queue.core.windows.net". You can append a SAS
* if using AnonymousCredential, such as "https://myaccount.queue.core.windows.net?sasString".
- * @param {Credential} credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
+ * @param {Credential | coreHttp.TokenCredential} credential Such as AnonymousCredential, SharedKeyCredential or TokenCredential.
* If not specified, anonymous credential is used.
* @param {NewPipelineOptions} [options] Options to configure the HTTP pipeline.
* @memberof QueueServiceClient
*/
- constructor(url: string, credential?: Credential, options?: NewPipelineOptions);
+ constructor(
+ url: string,
+ credential?: Credential | coreHttp.TokenCredential,
+ options?: NewPipelineOptions
+ );
/**
* Creates an instance of QueueServiceClient.
*
@@ -167,13 +175,16 @@ export class QueueServiceClient extends StorageClient {
constructor(url: string, pipeline: Pipeline);
constructor(
url: string,
- credentialOrPipeline?: Credential | Pipeline,
+ credentialOrPipeline?: Credential | coreHttp.TokenCredential | Pipeline,
options?: NewPipelineOptions
) {
let pipeline: Pipeline;
if (credentialOrPipeline instanceof Pipeline) {
pipeline = credentialOrPipeline;
- } else if (credentialOrPipeline instanceof Credential) {
+ } else if (
+ credentialOrPipeline instanceof Credential ||
+ coreHttp.isTokenCredential(credentialOrPipeline)
+ ) {
pipeline = newPipeline(credentialOrPipeline, options);
} else {
// The second paramter is undefined. Use anonymous credential.
@@ -322,6 +333,6 @@ export class QueueServiceClient extends StorageClient {
abortSignal: aborter,
marker,
...options
- });
+ } as Models.ServiceListQueuesSegmentOptionalParams);
}
}
diff --git a/sdk/storage/storage-queue/src/RetryPolicyFactory.ts b/sdk/storage/storage-queue/src/RetryPolicyFactory.ts
index d6ec0278c527..2757b8b1351c 100644
--- a/sdk/storage/storage-queue/src/RetryPolicyFactory.ts
+++ b/sdk/storage/storage-queue/src/RetryPolicyFactory.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/core-http";
import { RetryPolicy, RetryPolicyType } from "./policies/RetryPolicy";
/**
diff --git a/sdk/storage/storage-queue/src/TelemetryPolicyFactory.ts b/sdk/storage/storage-queue/src/TelemetryPolicyFactory.ts
index 7ae0be43f6e3..fd7def22f22b 100644
--- a/sdk/storage/storage-queue/src/TelemetryPolicyFactory.ts
+++ b/sdk/storage/storage-queue/src/TelemetryPolicyFactory.ts
@@ -6,7 +6,7 @@ import {
RequestPolicy,
RequestPolicyFactory,
RequestPolicyOptions
-} from "@azure/ms-rest-js";
+} from "@azure/core-http";
import * as os from "os";
import { TelemetryPolicy } from "./policies/TelemetryPolicy";
diff --git a/sdk/storage/storage-queue/src/UniqueRequestIDPolicyFactory.ts b/sdk/storage/storage-queue/src/UniqueRequestIDPolicyFactory.ts
index 3128391507e0..caf56b5ac0c5 100644
--- a/sdk/storage/storage-queue/src/UniqueRequestIDPolicyFactory.ts
+++ b/sdk/storage/storage-queue/src/UniqueRequestIDPolicyFactory.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/core-http";
import { UniqueRequestIDPolicy } from "./policies/UniqueRequestIDPolicy";
/**
diff --git a/sdk/storage/storage-queue/src/credentials/AnonymousCredential.ts b/sdk/storage/storage-queue/src/credentials/AnonymousCredential.ts
index 85f357b28d58..a13ff503bd52 100644
--- a/sdk/storage/storage-queue/src/credentials/AnonymousCredential.ts
+++ b/sdk/storage/storage-queue/src/credentials/AnonymousCredential.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyOptions } from "@azure/core-http";
import { AnonymousCredentialPolicy } from "../policies/AnonymousCredentialPolicy";
import { Credential } from "./Credential";
diff --git a/sdk/storage/storage-queue/src/credentials/Credential.ts b/sdk/storage/storage-queue/src/credentials/Credential.ts
index 1150f504dc4d..7a201480194a 100644
--- a/sdk/storage/storage-queue/src/credentials/Credential.ts
+++ b/sdk/storage/storage-queue/src/credentials/Credential.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyFactory, RequestPolicyOptions } from "@azure/core-http";
import { CredentialPolicy } from "../policies/CredentialPolicy";
/**
diff --git a/sdk/storage/storage-queue/src/credentials/SharedKeyCredential.ts b/sdk/storage/storage-queue/src/credentials/SharedKeyCredential.ts
index 52ff7dfd09ab..88f8739bea47 100644
--- a/sdk/storage/storage-queue/src/credentials/SharedKeyCredential.ts
+++ b/sdk/storage/storage-queue/src/credentials/SharedKeyCredential.ts
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
import * as Crypto from "crypto";
-import { RequestPolicy, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyOptions } from "@azure/core-http";
import { SharedKeyCredentialPolicy } from "../policies/SharedKeyCredentialPolicy";
import { Credential } from "./Credential";
diff --git a/sdk/storage/storage-queue/src/credentials/TokenCredential.ts b/sdk/storage/storage-queue/src/credentials/TokenCredential.ts
index 2930f7891806..3be9d02e465e 100644
--- a/sdk/storage/storage-queue/src/credentials/TokenCredential.ts
+++ b/sdk/storage/storage-queue/src/credentials/TokenCredential.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyOptions } from "@azure/core-http";
import { Credential } from "../credentials/Credential";
import { TokenCredentialPolicy } from "../policies/TokenCredentialPolicy";
diff --git a/sdk/storage/storage-queue/src/generated/lib/models/index.ts b/sdk/storage/storage-queue/src/generated/lib/models/index.ts
index 8fd9609fe1b6..094fd534d42a 100644
--- a/sdk/storage/storage-queue/src/generated/lib/models/index.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/models/index.ts
@@ -1,1372 +1,1051 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
/**
- * @interface
- * An interface representing AccessPolicy.
* An Access policy
- *
*/
export interface AccessPolicy {
/**
- * @member {string} start the date-time the policy is active
- * **NOTE: This entity will be treated as a string instead of a Date because
- * the API can potentially deal with a higher precision value than what is
- * supported by JavaScript.**
+ * the date-time the policy is active
+ * **NOTE: This entity will be treated as a string instead of a Date because the API can
+ * potentially deal with a higher precision value than what is supported by JavaScript.**
*/
start: string;
/**
- * @member {string} expiry the date-time the policy expires
- * **NOTE: This entity will be treated as a string instead of a Date because
- * the API can potentially deal with a higher precision value than what is
- * supported by JavaScript.**
+ * the date-time the policy expires
+ * **NOTE: This entity will be treated as a string instead of a Date because the API can
+ * potentially deal with a higher precision value than what is supported by JavaScript.**
*/
expiry: string;
/**
- * @member {string} permission the permissions for the acl policy
+ * the permissions for the acl policy
*/
permission: string;
}
/**
- * @interface
- * An interface representing QueueItem.
* An Azure Storage Queue.
- *
*/
export interface QueueItem {
/**
- * @member {string} name The name of the Queue.
+ * The name of the Queue.
*/
name: string;
- /**
- * @member {{ [propertyName: string]: string }} [metadata]
- */
metadata?: { [propertyName: string]: string };
}
/**
- * @interface
- * An interface representing ListQueuesSegmentResponse.
- * The object returned when calling List Queues on a Queue Service.
- *
- */
-export interface ListQueuesSegmentResponse {
- /**
- * @member {string} serviceEndpoint
- */
- serviceEndpoint: string;
- /**
- * @member {string} prefix
- */
- prefix: string;
- /**
- * @member {string} [marker]
- */
- marker?: string;
- /**
- * @member {number} maxResults
- */
- maxResults: number;
- /**
- * @member {QueueItem[]} [queueItems]
- */
- queueItems?: QueueItem[];
- /**
- * @member {string} nextMarker
- */
- nextMarker: string;
-}
-
-/**
- * @interface
- * An interface representing CorsRule.
- * CORS is an HTTP feature that enables a web application running under one
- * domain to access resources in another domain. Web browsers implement a
- * security restriction known as same-origin policy that prevents a web page
- * from calling APIs in a different domain; CORS provides a secure way to allow
- * one domain (the origin domain) to call APIs in another domain
- *
+ * CORS is an HTTP feature that enables a web application running under one domain to access
+ * resources in another domain. Web browsers implement a security restriction known as same-origin
+ * policy that prevents a web page from calling APIs in a different domain; CORS provides a secure
+ * way to allow one domain (the origin domain) to call APIs in another domain
*/
export interface CorsRule {
/**
- * @member {string} allowedOrigins The origin domains that are permitted to
- * make a request against the storage service via CORS. The origin domain is
- * the domain from which the request originates. Note that the origin must be
- * an exact case-sensitive match with the origin that the user age sends to
- * the service. You can also use the wildcard character '*' to allow all
- * origin domains to make requests via CORS.
+ * The origin domains that are permitted to make a request against the storage service via CORS.
+ * The origin domain is the domain from which the request originates. Note that the origin must
+ * be an exact case-sensitive match with the origin that the user age sends to the service. You
+ * can also use the wildcard character '*' to allow all origin domains to make requests via CORS.
*/
allowedOrigins: string;
/**
- * @member {string} allowedMethods The methods (HTTP request verbs) that the
- * origin domain may use for a CORS request. (comma separated)
+ * The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma
+ * separated)
*/
allowedMethods: string;
/**
- * @member {string} allowedHeaders the request headers that the origin domain
- * may specify on the CORS request.
+ * the request headers that the origin domain may specify on the CORS request.
*/
allowedHeaders: string;
/**
- * @member {string} exposedHeaders The response headers that may be sent in
- * the response to the CORS request and exposed by the browser to the request
- * issuer
+ * The response headers that may be sent in the response to the CORS request and exposed by the
+ * browser to the request issuer
*/
exposedHeaders: string;
/**
- * @member {number} maxAgeInSeconds The maximum amount time that a browser
- * should cache the preflight OPTIONS request.
+ * The maximum amount time that a browser should cache the preflight OPTIONS request.
*/
maxAgeInSeconds: number;
}
/**
- * @interface
* An interface representing GeoReplication.
*/
export interface GeoReplication {
/**
- * @member {GeoReplicationStatusType} status The status of the secondary
- * location. Possible values include: 'live', 'bootstrap', 'unavailable'
+ * The status of the secondary location. Possible values include: 'live', 'bootstrap',
+ * 'unavailable'
*/
status: GeoReplicationStatusType;
/**
- * @member {Date} lastSyncTime A GMT date/time value, to the second. All
- * primary writes preceding this value are guaranteed to be available for
- * read operations at the secondary. Primary writes after this point in time
+ * A GMT date/time value, to the second. All primary writes preceding this value are guaranteed
+ * to be available for read operations at the secondary. Primary writes after this point in time
* may or may not be available for reads.
*/
lastSyncTime: Date;
}
/**
- * @interface
- * An interface representing RetentionPolicy.
* the retention policy
- *
*/
export interface RetentionPolicy {
/**
- * @member {boolean} enabled Indicates whether a retention policy is enabled
- * for the storage service
+ * Indicates whether a retention policy is enabled for the storage service
*/
enabled: boolean;
/**
- * @member {number} [days] Indicates the number of days that metrics or
- * logging or soft-deleted data should be retained. All data older than this
- * value will be deleted
+ * Indicates the number of days that metrics or logging or soft-deleted data should be retained.
+ * All data older than this value will be deleted
*/
days?: number;
}
/**
- * @interface
- * An interface representing Logging.
* Azure Analytics Logging settings.
- *
*/
export interface Logging {
/**
- * @member {string} version The version of Storage Analytics to configure.
+ * The version of Storage Analytics to configure.
*/
version: string;
/**
- * @member {boolean} deleteProperty Indicates whether all delete requests
- * should be logged.
+ * Indicates whether all delete requests should be logged.
*/
deleteProperty: boolean;
/**
- * @member {boolean} read Indicates whether all read requests should be
- * logged.
+ * Indicates whether all read requests should be logged.
*/
read: boolean;
/**
- * @member {boolean} write Indicates whether all write requests should be
- * logged.
+ * Indicates whether all write requests should be logged.
*/
write: boolean;
- /**
- * @member {RetentionPolicy} retentionPolicy
- */
retentionPolicy: RetentionPolicy;
}
/**
- * @interface
* An interface representing StorageError.
*/
export interface StorageError {
- /**
- * @member {string} [message]
- */
message?: string;
}
/**
- * @interface
* An interface representing Metrics.
*/
export interface Metrics {
/**
- * @member {string} [version] The version of Storage Analytics to configure.
+ * The version of Storage Analytics to configure.
*/
version?: string;
/**
- * @member {boolean} enabled Indicates whether metrics are enabled for the
- * Queue service.
+ * Indicates whether metrics are enabled for the Queue service.
*/
enabled: boolean;
/**
- * @member {boolean} [includeAPIs] Indicates whether metrics should generate
- * summary statistics for called API operations.
+ * Indicates whether metrics should generate summary statistics for called API operations.
*/
includeAPIs?: boolean;
- /**
- * @member {RetentionPolicy} [retentionPolicy]
- */
retentionPolicy?: RetentionPolicy;
}
/**
- * @interface
- * An interface representing QueueMessage.
* A Message object which can be stored in a Queue
- *
*/
export interface QueueMessage {
/**
- * @member {string} messageText The content of the message
+ * The content of the message
*/
messageText: string;
}
/**
- * @interface
- * An interface representing DequeuedMessageItem.
- * The object returned in the QueueMessageList array when calling Get Messages
- * on a Queue.
- *
+ * The object returned in the QueueMessageList array when calling Get Messages on a Queue.
*/
export interface DequeuedMessageItem {
/**
- * @member {string} messageId The Id of the Message.
+ * The Id of the Message.
*/
messageId: string;
/**
- * @member {Date} insertionTime The time the Message was inserted into the
- * Queue.
+ * The time the Message was inserted into the Queue.
*/
insertionTime: Date;
/**
- * @member {Date} expirationTime The time that the Message will expire and be
- * automatically deleted.
+ * The time that the Message will expire and be automatically deleted.
*/
expirationTime: Date;
/**
- * @member {string} popReceipt This value is required to delete the Message.
- * If deletion fails using this popreceipt then the message has been dequeued
- * by another client.
+ * This value is required to delete the Message. If deletion fails using this popreceipt then the
+ * message has been dequeued by another client.
*/
popReceipt: string;
/**
- * @member {Date} timeNextVisible The time that the message will again become
- * visible in the Queue.
+ * The time that the message will again become visible in the Queue.
*/
timeNextVisible: Date;
/**
- * @member {number} dequeueCount The number of times the message has been
- * dequeued.
+ * The number of times the message has been dequeued.
*/
dequeueCount: number;
/**
- * @member {string} messageText The content of the Message.
+ * The content of the Message.
*/
messageText: string;
}
/**
- * @interface
- * An interface representing PeekedMessageItem.
- * The object returned in the QueueMessageList array when calling Peek Messages
- * on a Queue
- *
+ * The object returned in the QueueMessageList array when calling Peek Messages on a Queue
*/
export interface PeekedMessageItem {
/**
- * @member {string} messageId The Id of the Message.
+ * The Id of the Message.
*/
messageId: string;
/**
- * @member {Date} insertionTime The time the Message was inserted into the
- * Queue.
+ * The time the Message was inserted into the Queue.
*/
insertionTime: Date;
/**
- * @member {Date} expirationTime The time that the Message will expire and be
- * automatically deleted.
+ * The time that the Message will expire and be automatically deleted.
*/
expirationTime: Date;
/**
- * @member {number} dequeueCount The number of times the message has been
- * dequeued.
+ * The number of times the message has been dequeued.
*/
dequeueCount: number;
/**
- * @member {string} messageText The content of the Message.
+ * The content of the Message.
*/
messageText: string;
}
/**
- * @interface
- * An interface representing EnqueuedMessage.
- * The object returned in the QueueMessageList array when calling Put Message
- * on a Queue
- *
+ * The object returned in the QueueMessageList array when calling Put Message on a Queue
*/
export interface EnqueuedMessage {
/**
- * @member {string} messageId The Id of the Message.
+ * The Id of the Message.
*/
messageId: string;
/**
- * @member {Date} insertionTime The time the Message was inserted into the
- * Queue.
+ * The time the Message was inserted into the Queue.
*/
insertionTime: Date;
/**
- * @member {Date} expirationTime The time that the Message will expire and be
- * automatically deleted.
+ * The time that the Message will expire and be automatically deleted.
*/
expirationTime: Date;
/**
- * @member {string} popReceipt This value is required to delete the Message.
- * If deletion fails using this popreceipt then the message has been dequeued
- * by another client.
+ * This value is required to delete the Message. If deletion fails using this popreceipt then the
+ * message has been dequeued by another client.
*/
popReceipt: string;
/**
- * @member {Date} timeNextVisible The time that the message will again become
- * visible in the Queue.
+ * The time that the message will again become visible in the Queue.
*/
timeNextVisible: Date;
}
/**
- * @interface
- * An interface representing SignedIdentifier.
* signed identifier
- *
*/
export interface SignedIdentifier {
/**
- * @member {string} id a unique id
+ * a unique id
*/
id: string;
/**
- * @member {AccessPolicy} accessPolicy The access policy
+ * The access policy
*/
accessPolicy: AccessPolicy;
}
/**
- * @interface
- * An interface representing StorageServiceProperties.
* Storage Service Properties.
- *
*/
export interface StorageServiceProperties {
/**
- * @member {Logging} [logging] Azure Analytics Logging settings
+ * Azure Analytics Logging settings
*/
logging?: Logging;
/**
- * @member {Metrics} [hourMetrics] A summary of request statistics grouped by
- * API in hourly aggregates for queues
+ * A summary of request statistics grouped by API in hourly aggregates for queues
*/
hourMetrics?: Metrics;
/**
- * @member {Metrics} [minuteMetrics] a summary of request statistics grouped
- * by API in minute aggregates for queues
+ * a summary of request statistics grouped by API in minute aggregates for queues
*/
minuteMetrics?: Metrics;
/**
- * @member {CorsRule[]} [cors] The set of CORS rules.
+ * The set of CORS rules.
*/
cors?: CorsRule[];
}
/**
- * @interface
- * An interface representing StorageServiceStats.
* Stats for the storage service.
- *
*/
export interface StorageServiceStats {
/**
- * @member {GeoReplication} [geoReplication] Geo-Replication information for
- * the Secondary Storage Service
+ * Geo-Replication information for the Secondary Storage Service
*/
geoReplication?: GeoReplication;
}
/**
- * @interface
- * An interface representing ServiceSetPropertiesOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface ServiceSetPropertiesOptionalParams extends msRest.RequestOptionsBase {
+export interface ServiceSetPropertiesOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {string} [requestId] 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.
+ * 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;
}
/**
- * @interface
- * An interface representing ServiceGetStatisticsOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface ServiceGetStatisticsOptionalParams extends msRest.RequestOptionsBase {
+export interface ServiceGetStatisticsOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {string} [requestId] 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.
+ * 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 ServiceListQueuesSegmentNextOptionalParams extends coreHttp.RequestOptionsBase {
+ /**
+ * 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;
}
/**
- * @interface
- * An interface representing QueueCreateOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface QueueCreateOptionalParams extends msRest.RequestOptionsBase {
+export interface QueueCreateOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {string} [requestId] 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.
+ * 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;
}
/**
- * @interface
- * An interface representing QueueGetPropertiesOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface QueueGetPropertiesOptionalParams extends msRest.RequestOptionsBase {
+export interface QueueGetPropertiesOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {{ [propertyName: string]: string }} [metadata] Optional. Include
- * this parameter to specify that the queue's metadata be returned as part of
- * the response body. Note that metadata requested with this parameter must
- * be stored in accordance with the naming restrictions imposed by the
- * 2009-09-19 version of the Queue service. Beginning with this version, all
- * metadata names must adhere to the naming conventions for C# identifiers.
+ * Optional. Include this parameter to specify that the queue's metadata be returned as part of
+ * the response body. Note that metadata requested with this parameter must be stored in
+ * accordance with the naming restrictions imposed by the 2009-09-19 version of the Queue
+ * service. Beginning with this version, all metadata names must adhere to the naming conventions
+ * for C# identifiers.
*/
- metadata?: { [propertyName: string]: string };
+ metadata?: string;
/**
- * @member {string} [requestId] 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.
+ * 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;
}
/**
- * @interface
- * An interface representing QueueGetAccessPolicyOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface QueueGetAccessPolicyOptionalParams extends msRest.RequestOptionsBase {
+export interface QueueGetAccessPolicyOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {string} [requestId] 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.
+ * 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;
}
/**
- * @interface
- * An interface representing MessagesDequeueOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface MessagesDequeueOptionalParams extends msRest.RequestOptionsBase {
+export interface MessagesDequeueOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [numberOfMessages] Optional. A nonzero integer value that
- * specifies the number of messages to retrieve from the queue, up to a
- * maximum of 32. If fewer are visible, the visible messages are returned. By
+ * Optional. A nonzero integer value that specifies the number of messages to retrieve from the
+ * queue, up to a maximum of 32. If fewer are visible, the visible messages are returned. By
* default, a single message is retrieved from the queue with this operation.
*/
numberOfMessages?: number;
/**
- * @member {number} [visibilitytimeout] Optional. Specifies the new
- * visibility timeout value, in seconds, relative to server time. The default
- * value is 30 seconds. A specified value must be larger than or equal to 1
- * second, and cannot be larger than 7 days, or larger than 2 hours on REST
- * protocol versions prior to version 2011-08-18. The visibility timeout of a
- * message can be set to a value later than the expiry time.
+ * Optional. Specifies the new visibility timeout value, in seconds, relative to server time. The
+ * default value is 30 seconds. A specified value must be larger than or equal to 1 second, and
+ * cannot be larger than 7 days, or larger than 2 hours on REST protocol versions prior to
+ * version 2011-08-18. The visibility timeout of a message can be set to a value later than the
+ * expiry time.
*/
visibilitytimeout?: number;
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {string} [requestId] 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.
+ * 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;
}
/**
- * @interface
- * An interface representing MessagesEnqueueOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface MessagesEnqueueOptionalParams extends msRest.RequestOptionsBase {
+export interface MessagesEnqueueOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [visibilitytimeout] Optional. Specifies the new
- * visibility timeout value, in seconds, relative to server time. The default
- * value is 30 seconds. A specified value must be larger than or equal to 1
- * second, and cannot be larger than 7 days, or larger than 2 hours on REST
- * protocol versions prior to version 2011-08-18. The visibility timeout of a
- * message can be set to a value later than the expiry time.
+ * Optional. Specifies the new visibility timeout value, in seconds, relative to server time. The
+ * default value is 30 seconds. A specified value must be larger than or equal to 1 second, and
+ * cannot be larger than 7 days, or larger than 2 hours on REST protocol versions prior to
+ * version 2011-08-18. The visibility timeout of a message can be set to a value later than the
+ * expiry time.
*/
visibilitytimeout?: number;
/**
- * @member {number} [messageTimeToLive] Optional. Specifies the time-to-live
- * interval for the message, in seconds. Prior to version 2017-07-29, the
- * maximum time-to-live allowed is 7 days. For version 2017-07-29 or later,
- * the maximum time-to-live can be any positive number, as well as -1
- * indicating that the message does not expire. If this parameter is omitted,
- * the default time-to-live is 7 days.
+ * Optional. Specifies the time-to-live interval for the message, in seconds. Prior to version
+ * 2017-07-29, the maximum time-to-live allowed is 7 days. For version 2017-07-29 or later, the
+ * maximum time-to-live can be any positive number, as well as -1 indicating that the message
+ * does not expire. If this parameter is omitted, the default time-to-live is 7 days.
*/
messageTimeToLive?: number;
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {string} [requestId] 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.
+ * 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;
}
/**
- * @interface
- * An interface representing MessageIdUpdateOptionalParams.
* Optional Parameters.
- *
- * @extends RequestOptionsBase
*/
-export interface MessageIdUpdateOptionalParams extends msRest.RequestOptionsBase {
+export interface MessageIdUpdateOptionalParams extends coreHttp.RequestOptionsBase {
/**
- * @member {number} [timeoutParameter] The The timeout parameter is expressed
- * in seconds. For more information, see Setting
* Timeouts for Queue Service Operations.
*/
timeoutParameter?: number;
/**
- * @member {string} [requestId] 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.
+ * 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;
}
/**
- * @interface
- * An interface representing ServiceSetPropertiesHeaders.
* Defines headers for SetProperties operation.
- *
*/
export interface ServiceSetPropertiesHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing ServiceGetPropertiesHeaders.
* Defines headers for GetProperties operation.
- *
*/
export interface ServiceGetPropertiesHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing ServiceGetStatisticsHeaders.
* Defines headers for GetStatistics operation.
- *
*/
export interface ServiceGetStatisticsHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing ServiceListQueuesSegmentHeaders.
* Defines headers for ListQueuesSegment operation.
- *
*/
export interface ServiceListQueuesSegmentHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing QueueCreateHeaders.
* Defines headers for Create operation.
- *
*/
export interface QueueCreateHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing QueueDeleteHeaders.
* Defines headers for Delete operation.
- *
*/
export interface QueueDeleteHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing QueueGetPropertiesHeaders.
* Defines headers for GetProperties operation.
- *
*/
export interface QueueGetPropertiesHeaders {
- /**
- * @member {{ [propertyName: string]: string }} [metadata]
- */
metadata?: { [propertyName: string]: string };
/**
- * @member {number} [approximateMessagesCount] The approximate number of
- * messages in the queue. This number is not lower than the actual number of
- * messages in the queue, but could be higher.
+ * The approximate number of messages in the queue. This number is not lower than the actual
+ * number of messages in the queue, but could be higher.
*/
approximateMessagesCount?: number;
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing QueueSetMetadataHeaders.
* Defines headers for SetMetadata operation.
- *
*/
export interface QueueSetMetadataHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing QueueGetAccessPolicyHeaders.
* Defines headers for GetAccessPolicy operation.
- *
*/
export interface QueueGetAccessPolicyHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing QueueSetAccessPolicyHeaders.
* Defines headers for SetAccessPolicy operation.
- *
*/
export interface QueueSetAccessPolicyHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing MessagesDequeueHeaders.
* Defines headers for Dequeue operation.
- *
*/
export interface MessagesDequeueHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing MessagesClearHeaders.
* Defines headers for Clear operation.
- *
*/
export interface MessagesClearHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing MessagesEnqueueHeaders.
* Defines headers for Enqueue operation.
- *
*/
export interface MessagesEnqueueHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing MessagesPeekHeaders.
* Defines headers for Peek operation.
- *
*/
export interface MessagesPeekHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing MessageIdUpdateHeaders.
* Defines headers for Update operation.
- *
*/
export interface MessageIdUpdateHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
/**
- * @member {string} [popReceipt] The pop receipt of the queue message.
+ * The pop receipt of the queue message.
*/
popReceipt?: string;
/**
- * @member {Date} [timeNextVisible] A UTC date/time value that represents
- * when the message will be visible on the queue.
+ * A UTC date/time value that represents when the message will be visible on the queue.
*/
timeNextVisible?: Date;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
/**
- * @interface
- * An interface representing MessageIdDeleteHeaders.
* Defines headers for Delete operation.
- *
*/
export interface MessageIdDeleteHeaders {
/**
- * @member {string} [requestId] This header uniquely identifies the request
- * that was made and can be used for troubleshooting the request.
+ * This header uniquely identifies the request that was made and can be used for troubleshooting
+ * the request.
*/
requestId?: string;
/**
- * @member {string} [version] Indicates the version of the Queue service used
- * to execute the request. This header is returned for requests made against
- * version 2009-09-19 and above.
+ * Indicates the version of the Queue service used to execute the request. This header is
+ * returned for requests made against version 2009-09-19 and above.
*/
version?: string;
/**
- * @member {Date} [date] 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;
- /**
- * @member {string} [errorCode]
- */
errorCode?: string;
}
+/**
+ * @interface
+ * The object returned when calling List Queues on a Queue Service.
+ * @extends Array
+ */
+export interface ListQueuesSegmentResponse extends Array {
+ serviceEndpoint: string;
+ prefix: string;
+ marker?: string;
+ maxResults: number;
+ queueItems?: QueueItem[];
+ nextMarker: string;
+}
+
/**
* 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',
@@ -1375,7 +1054,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.
@@ -1400,7 +1079,7 @@ export type ServiceSetPropertiesResponse = ServiceSetPropertiesHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1415,15 +1094,17 @@ export type ServiceGetPropertiesResponse = StorageServiceProperties & ServiceGet
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: ServiceGetPropertiesHeaders;
+
/**
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -1438,15 +1119,17 @@ export type ServiceGetStatisticsResponse = StorageServiceStats & ServiceGetStati
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: ServiceGetStatisticsHeaders;
+
/**
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -1461,15 +1144,17 @@ export type ServiceListQueuesSegmentResponse = ListQueuesSegmentResponse & Servi
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: ServiceListQueuesSegmentHeaders;
+
/**
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -1484,7 +1169,7 @@ export type QueueCreateResponse = QueueCreateHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1499,7 +1184,7 @@ export type QueueDeleteResponse = QueueDeleteHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1514,7 +1199,7 @@ export type QueueGetPropertiesResponse = QueueGetPropertiesHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1529,7 +1214,7 @@ export type QueueSetMetadataResponse = QueueSetMetadataHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1544,15 +1229,17 @@ export type QueueGetAccessPolicyResponse = Array & QueueGetAcc
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: QueueGetAccessPolicyHeaders;
+
/**
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -1567,7 +1254,7 @@ export type QueueSetAccessPolicyResponse = QueueSetAccessPolicyHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1582,15 +1269,17 @@ export type MessagesDequeueResponse = Array & MessagesDeque
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: MessagesDequeueHeaders;
+
/**
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -1605,7 +1294,7 @@ export type MessagesClearResponse = MessagesClearHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1620,15 +1309,17 @@ export type MessagesEnqueueResponse = Array & MessagesEnqueueHe
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: MessagesEnqueueHeaders;
+
/**
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -1643,15 +1334,17 @@ export type MessagesPeekResponse = Array & MessagesPeekHeader
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: MessagesPeekHeaders;
+
/**
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -1666,7 +1359,7 @@ export type MessageIdUpdateResponse = MessageIdUpdateHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -1681,7 +1374,7 @@ export type MessageIdDeleteResponse = MessageIdDeleteHeaders & {
/**
* The underlying HTTP response.
*/
- _response: msRest.HttpResponse & {
+ _response: coreHttp.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
diff --git a/sdk/storage/storage-queue/src/generated/lib/models/mappers.ts b/sdk/storage/storage-queue/src/generated/lib/models/mappers.ts
index 2f786a9e2135..531c722d0b94 100644
--- a/sdk/storage/storage-queue/src/generated/lib/models/mappers.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/models/mappers.ts
@@ -1,17 +1,15 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
-export const AccessPolicy: msRest.CompositeMapper = {
+export const AccessPolicy: coreHttp.CompositeMapper = {
serializedName: "AccessPolicy",
type: {
name: "Composite",
@@ -45,7 +43,7 @@ export const AccessPolicy: msRest.CompositeMapper = {
}
};
-export const QueueItem: msRest.CompositeMapper = {
+export const QueueItem: coreHttp.CompositeMapper = {
xmlName: "Queue",
serializedName: "QueueItem",
type: {
@@ -76,73 +74,7 @@ export const QueueItem: msRest.CompositeMapper = {
}
};
-export const ListQueuesSegmentResponse: msRest.CompositeMapper = {
- xmlName: "EnumerationResults",
- serializedName: "ListQueuesSegmentResponse",
- type: {
- name: "Composite",
- className: "ListQueuesSegmentResponse",
- modelProperties: {
- serviceEndpoint: {
- xmlIsAttribute: true,
- xmlName: "ServiceEndpoint",
- required: true,
- serializedName: "ServiceEndpoint",
- type: {
- name: "String"
- }
- },
- prefix: {
- xmlName: "Prefix",
- required: true,
- serializedName: "Prefix",
- type: {
- name: "String"
- }
- },
- marker: {
- xmlName: "Marker",
- serializedName: "Marker",
- type: {
- name: "String"
- }
- },
- maxResults: {
- xmlName: "MaxResults",
- required: true,
- serializedName: "MaxResults",
- type: {
- name: "Number"
- }
- },
- queueItems: {
- xmlIsWrapped: true,
- xmlName: "Queues",
- xmlElementName: "Queue",
- serializedName: "QueueItems",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "QueueItem"
- }
- }
- }
- },
- nextMarker: {
- xmlName: "NextMarker",
- required: true,
- serializedName: "NextMarker",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const CorsRule: msRest.CompositeMapper = {
+export const CorsRule: coreHttp.CompositeMapper = {
serializedName: "CorsRule",
type: {
name: "Composite",
@@ -195,7 +127,7 @@ export const CorsRule: msRest.CompositeMapper = {
}
};
-export const GeoReplication: msRest.CompositeMapper = {
+export const GeoReplication: coreHttp.CompositeMapper = {
serializedName: "GeoReplication",
type: {
name: "Composite",
@@ -221,7 +153,7 @@ export const GeoReplication: msRest.CompositeMapper = {
}
};
-export const RetentionPolicy: msRest.CompositeMapper = {
+export const RetentionPolicy: coreHttp.CompositeMapper = {
serializedName: "RetentionPolicy",
type: {
name: "Composite",
@@ -249,7 +181,7 @@ export const RetentionPolicy: msRest.CompositeMapper = {
}
};
-export const Logging: msRest.CompositeMapper = {
+export const Logging: coreHttp.CompositeMapper = {
serializedName: "Logging",
type: {
name: "Composite",
@@ -300,7 +232,7 @@ export const Logging: msRest.CompositeMapper = {
}
};
-export const StorageError: msRest.CompositeMapper = {
+export const StorageError: coreHttp.CompositeMapper = {
serializedName: "StorageError",
type: {
name: "Composite",
@@ -317,7 +249,7 @@ export const StorageError: msRest.CompositeMapper = {
}
};
-export const Metrics: msRest.CompositeMapper = {
+export const Metrics: coreHttp.CompositeMapper = {
serializedName: "Metrics",
type: {
name: "Composite",
@@ -357,7 +289,7 @@ export const Metrics: msRest.CompositeMapper = {
}
};
-export const QueueMessage: msRest.CompositeMapper = {
+export const QueueMessage: coreHttp.CompositeMapper = {
serializedName: "QueueMessage",
type: {
name: "Composite",
@@ -375,7 +307,7 @@ export const QueueMessage: msRest.CompositeMapper = {
}
};
-export const DequeuedMessageItem: msRest.CompositeMapper = {
+export const DequeuedMessageItem: coreHttp.CompositeMapper = {
xmlName: "QueueMessage",
serializedName: "DequeuedMessageItem",
type: {
@@ -442,7 +374,7 @@ export const DequeuedMessageItem: msRest.CompositeMapper = {
}
};
-export const PeekedMessageItem: msRest.CompositeMapper = {
+export const PeekedMessageItem: coreHttp.CompositeMapper = {
xmlName: "QueueMessage",
serializedName: "PeekedMessageItem",
type: {
@@ -493,7 +425,7 @@ export const PeekedMessageItem: msRest.CompositeMapper = {
}
};
-export const EnqueuedMessage: msRest.CompositeMapper = {
+export const EnqueuedMessage: coreHttp.CompositeMapper = {
xmlName: "QueueMessage",
serializedName: "EnqueuedMessage",
type: {
@@ -544,7 +476,7 @@ export const EnqueuedMessage: msRest.CompositeMapper = {
}
};
-export const SignedIdentifier: msRest.CompositeMapper = {
+export const SignedIdentifier: coreHttp.CompositeMapper = {
serializedName: "SignedIdentifier",
type: {
name: "Composite",
@@ -571,7 +503,7 @@ export const SignedIdentifier: msRest.CompositeMapper = {
}
};
-export const StorageServiceProperties: msRest.CompositeMapper = {
+export const StorageServiceProperties: coreHttp.CompositeMapper = {
serializedName: "StorageServiceProperties",
type: {
name: "Composite",
@@ -620,7 +552,7 @@ export const StorageServiceProperties: msRest.CompositeMapper = {
}
};
-export const StorageServiceStats: msRest.CompositeMapper = {
+export const StorageServiceStats: coreHttp.CompositeMapper = {
serializedName: "StorageServiceStats",
type: {
name: "Composite",
@@ -638,7 +570,7 @@ export const StorageServiceStats: msRest.CompositeMapper = {
}
};
-export const ServiceSetPropertiesHeaders: msRest.CompositeMapper = {
+export const ServiceSetPropertiesHeaders: coreHttp.CompositeMapper = {
serializedName: "service-setproperties-headers",
type: {
name: "Composite",
@@ -666,7 +598,7 @@ export const ServiceSetPropertiesHeaders: msRest.CompositeMapper = {
}
};
-export const ServiceGetPropertiesHeaders: msRest.CompositeMapper = {
+export const ServiceGetPropertiesHeaders: coreHttp.CompositeMapper = {
serializedName: "service-getproperties-headers",
type: {
name: "Composite",
@@ -694,7 +626,7 @@ export const ServiceGetPropertiesHeaders: msRest.CompositeMapper = {
}
};
-export const ServiceGetStatisticsHeaders: msRest.CompositeMapper = {
+export const ServiceGetStatisticsHeaders: coreHttp.CompositeMapper = {
serializedName: "service-getstatistics-headers",
type: {
name: "Composite",
@@ -728,7 +660,7 @@ export const ServiceGetStatisticsHeaders: msRest.CompositeMapper = {
}
};
-export const ServiceListQueuesSegmentHeaders: msRest.CompositeMapper = {
+export const ServiceListQueuesSegmentHeaders: coreHttp.CompositeMapper = {
serializedName: "service-listqueuessegment-headers",
type: {
name: "Composite",
@@ -762,7 +694,7 @@ export const ServiceListQueuesSegmentHeaders: msRest.CompositeMapper = {
}
};
-export const QueueCreateHeaders: msRest.CompositeMapper = {
+export const QueueCreateHeaders: coreHttp.CompositeMapper = {
serializedName: "queue-create-headers",
type: {
name: "Composite",
@@ -796,7 +728,7 @@ export const QueueCreateHeaders: msRest.CompositeMapper = {
}
};
-export const QueueDeleteHeaders: msRest.CompositeMapper = {
+export const QueueDeleteHeaders: coreHttp.CompositeMapper = {
serializedName: "queue-delete-headers",
type: {
name: "Composite",
@@ -830,7 +762,7 @@ export const QueueDeleteHeaders: msRest.CompositeMapper = {
}
};
-export const QueueGetPropertiesHeaders: msRest.CompositeMapper = {
+export const QueueGetPropertiesHeaders: coreHttp.CompositeMapper = {
serializedName: "queue-getproperties-headers",
type: {
name: "Composite",
@@ -882,7 +814,7 @@ export const QueueGetPropertiesHeaders: msRest.CompositeMapper = {
}
};
-export const QueueSetMetadataHeaders: msRest.CompositeMapper = {
+export const QueueSetMetadataHeaders: coreHttp.CompositeMapper = {
serializedName: "queue-setmetadata-headers",
type: {
name: "Composite",
@@ -916,7 +848,7 @@ export const QueueSetMetadataHeaders: msRest.CompositeMapper = {
}
};
-export const QueueGetAccessPolicyHeaders: msRest.CompositeMapper = {
+export const QueueGetAccessPolicyHeaders: coreHttp.CompositeMapper = {
serializedName: "queue-getaccesspolicy-headers",
type: {
name: "Composite",
@@ -950,7 +882,7 @@ export const QueueGetAccessPolicyHeaders: msRest.CompositeMapper = {
}
};
-export const QueueSetAccessPolicyHeaders: msRest.CompositeMapper = {
+export const QueueSetAccessPolicyHeaders: coreHttp.CompositeMapper = {
serializedName: "queue-setaccesspolicy-headers",
type: {
name: "Composite",
@@ -984,7 +916,7 @@ export const QueueSetAccessPolicyHeaders: msRest.CompositeMapper = {
}
};
-export const MessagesDequeueHeaders: msRest.CompositeMapper = {
+export const MessagesDequeueHeaders: coreHttp.CompositeMapper = {
serializedName: "messages-dequeue-headers",
type: {
name: "Composite",
@@ -1018,7 +950,7 @@ export const MessagesDequeueHeaders: msRest.CompositeMapper = {
}
};
-export const MessagesClearHeaders: msRest.CompositeMapper = {
+export const MessagesClearHeaders: coreHttp.CompositeMapper = {
serializedName: "messages-clear-headers",
type: {
name: "Composite",
@@ -1052,7 +984,7 @@ export const MessagesClearHeaders: msRest.CompositeMapper = {
}
};
-export const MessagesEnqueueHeaders: msRest.CompositeMapper = {
+export const MessagesEnqueueHeaders: coreHttp.CompositeMapper = {
serializedName: "messages-enqueue-headers",
type: {
name: "Composite",
@@ -1086,7 +1018,7 @@ export const MessagesEnqueueHeaders: msRest.CompositeMapper = {
}
};
-export const MessagesPeekHeaders: msRest.CompositeMapper = {
+export const MessagesPeekHeaders: coreHttp.CompositeMapper = {
serializedName: "messages-peek-headers",
type: {
name: "Composite",
@@ -1120,7 +1052,7 @@ export const MessagesPeekHeaders: msRest.CompositeMapper = {
}
};
-export const MessageIdUpdateHeaders: msRest.CompositeMapper = {
+export const MessageIdUpdateHeaders: coreHttp.CompositeMapper = {
serializedName: "messageid-update-headers",
type: {
name: "Composite",
@@ -1166,7 +1098,7 @@ export const MessageIdUpdateHeaders: msRest.CompositeMapper = {
}
};
-export const MessageIdDeleteHeaders: msRest.CompositeMapper = {
+export const MessageIdDeleteHeaders: coreHttp.CompositeMapper = {
serializedName: "messageid-delete-headers",
type: {
name: "Composite",
@@ -1199,3 +1131,59 @@ export const MessageIdDeleteHeaders: msRest.CompositeMapper = {
}
}
};
+
+export const ListQueuesSegmentResponse: coreHttp.CompositeMapper = {
+ serializedName: "ListQueuesSegmentResponse",
+ type: {
+ name: "Composite",
+ className: "ListQueuesSegmentResponse",
+ modelProperties: {
+ serviceEndpoint: {
+ required: true,
+ serializedName: "ServiceEndpoint",
+ type: {
+ name: "String"
+ }
+ },
+ prefix: {
+ required: true,
+ serializedName: "Prefix",
+ type: {
+ name: "String"
+ }
+ },
+ marker: {
+ serializedName: "Marker",
+ type: {
+ name: "String"
+ }
+ },
+ maxResults: {
+ required: true,
+ serializedName: "MaxResults",
+ type: {
+ name: "Number"
+ }
+ },
+ queueItems: {
+ serializedName: "QueueItems",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "QueueItem"
+ }
+ }
+ }
+ },
+ nextMarker: {
+ required: true,
+ serializedName: "NextMarker",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
diff --git a/sdk/storage/storage-queue/src/generated/lib/models/messageIdMappers.ts b/sdk/storage/storage-queue/src/generated/lib/models/messageIdMappers.ts
index 7dcf98133833..d63abf988a30 100644
--- a/sdk/storage/storage-queue/src/generated/lib/models/messageIdMappers.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/models/messageIdMappers.ts
@@ -1,17 +1,14 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
- QueueMessage,
+ MessageIdDeleteHeaders,
MessageIdUpdateHeaders,
- StorageError,
- MessageIdDeleteHeaders
+ QueueMessage,
+ StorageError
} from "../models/mappers";
-
diff --git a/sdk/storage/storage-queue/src/generated/lib/models/messagesMappers.ts b/sdk/storage/storage-queue/src/generated/lib/models/messagesMappers.ts
index 06f346045d31..5a0a96fa549d 100644
--- a/sdk/storage/storage-queue/src/generated/lib/models/messagesMappers.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/models/messagesMappers.ts
@@ -1,22 +1,19 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
DequeuedMessageItem,
- MessagesDequeueHeaders,
- StorageError,
- MessagesClearHeaders,
- QueueMessage,
EnqueuedMessage,
+ MessagesClearHeaders,
+ MessagesDequeueHeaders,
MessagesEnqueueHeaders,
+ MessagesPeekHeaders,
PeekedMessageItem,
- MessagesPeekHeaders
+ QueueMessage,
+ StorageError
} from "../models/mappers";
-
diff --git a/sdk/storage/storage-queue/src/generated/lib/models/parameters.ts b/sdk/storage/storage-queue/src/generated/lib/models/parameters.ts
index b9396a048778..0f2be0d4c3a4 100644
--- a/sdk/storage/storage-queue/src/generated/lib/models/parameters.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/models/parameters.ts
@@ -8,9 +8,9 @@
* regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
-export const comp0: msRest.OperationQueryParameter = {
+export const comp0: coreHttp.OperationQueryParameter = {
parameterPath: "comp",
mapper: {
required: true,
@@ -22,7 +22,7 @@ export const comp0: msRest.OperationQueryParameter = {
}
}
};
-export const comp1: msRest.OperationQueryParameter = {
+export const comp1: coreHttp.OperationQueryParameter = {
parameterPath: "comp",
mapper: {
required: true,
@@ -34,7 +34,7 @@ export const comp1: msRest.OperationQueryParameter = {
}
}
};
-export const comp2: msRest.OperationQueryParameter = {
+export const comp2: coreHttp.OperationQueryParameter = {
parameterPath: "comp",
mapper: {
required: true,
@@ -46,7 +46,7 @@ export const comp2: msRest.OperationQueryParameter = {
}
}
};
-export const comp3: msRest.OperationQueryParameter = {
+export const comp3: coreHttp.OperationQueryParameter = {
parameterPath: "comp",
mapper: {
required: true,
@@ -58,7 +58,7 @@ export const comp3: msRest.OperationQueryParameter = {
}
}
};
-export const comp4: msRest.OperationQueryParameter = {
+export const comp4: coreHttp.OperationQueryParameter = {
parameterPath: "comp",
mapper: {
required: true,
@@ -70,7 +70,7 @@ export const comp4: msRest.OperationQueryParameter = {
}
}
};
-export const include: msRest.OperationQueryParameter = {
+export const include: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"include"
@@ -78,14 +78,20 @@ export const include: msRest.OperationQueryParameter = {
mapper: {
serializedName: "include",
type: {
- name: "Enum",
- allowedValues: [
- "metadata"
- ]
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "metadata"
+ ]
+ }
+ }
}
- }
+ },
+ collectionFormat: coreHttp.QueryCollectionFormat.Csv
};
-export const marker: msRest.OperationQueryParameter = {
+export const marker: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"marker"
@@ -97,7 +103,7 @@ export const marker: msRest.OperationQueryParameter = {
}
}
};
-export const maxresults: msRest.OperationQueryParameter = {
+export const maxresults: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"maxresults"
@@ -112,7 +118,7 @@ export const maxresults: msRest.OperationQueryParameter = {
}
}
};
-export const messageTimeToLive: msRest.OperationQueryParameter = {
+export const messageTimeToLive: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"messageTimeToLive"
@@ -127,7 +133,7 @@ export const messageTimeToLive: msRest.OperationQueryParameter = {
}
}
};
-export const metadata: msRest.OperationParameter = {
+export const metadata: coreHttp.OperationParameter = {
parameterPath: [
"options",
"metadata"
@@ -135,17 +141,22 @@ export const metadata: msRest.OperationParameter = {
mapper: {
serializedName: "x-ms-meta",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- },
- headerCollectionPrefix: "x-ms-meta-"
+ name: "String"
+ }
}
};
-export const numberOfMessages: msRest.OperationQueryParameter = {
+export const nextPageLink: coreHttp.OperationURLParameter = {
+ parameterPath: "nextPageLink",
+ mapper: {
+ required: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+export const numberOfMessages: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"numberOfMessages"
@@ -160,7 +171,7 @@ export const numberOfMessages: msRest.OperationQueryParameter = {
}
}
};
-export const peekonly: msRest.OperationQueryParameter = {
+export const peekonly: coreHttp.OperationQueryParameter = {
parameterPath: "peekonly",
mapper: {
required: true,
@@ -172,7 +183,7 @@ export const peekonly: msRest.OperationQueryParameter = {
}
}
};
-export const popReceipt: msRest.OperationQueryParameter = {
+export const popReceipt: coreHttp.OperationQueryParameter = {
parameterPath: "popReceipt",
mapper: {
required: true,
@@ -182,7 +193,7 @@ export const popReceipt: msRest.OperationQueryParameter = {
}
}
};
-export const prefix: msRest.OperationQueryParameter = {
+export const prefix: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"prefix"
@@ -194,7 +205,7 @@ export const prefix: msRest.OperationQueryParameter = {
}
}
};
-export const requestId: msRest.OperationParameter = {
+export const requestId: coreHttp.OperationParameter = {
parameterPath: [
"options",
"requestId"
@@ -206,7 +217,7 @@ export const requestId: msRest.OperationParameter = {
}
}
};
-export const restype: msRest.OperationQueryParameter = {
+export const restype: coreHttp.OperationQueryParameter = {
parameterPath: "restype",
mapper: {
required: true,
@@ -218,7 +229,7 @@ export const restype: msRest.OperationQueryParameter = {
}
}
};
-export const timeout: msRest.OperationQueryParameter = {
+export const timeout: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"timeout"
@@ -233,7 +244,7 @@ export const timeout: msRest.OperationQueryParameter = {
}
}
};
-export const url: msRest.OperationURLParameter = {
+export const url: coreHttp.OperationURLParameter = {
parameterPath: "url",
mapper: {
required: true,
@@ -245,7 +256,7 @@ export const url: msRest.OperationURLParameter = {
},
skipEncoding: true
};
-export const version: msRest.OperationParameter = {
+export const version: coreHttp.OperationParameter = {
parameterPath: "version",
mapper: {
required: true,
@@ -257,7 +268,7 @@ export const version: msRest.OperationParameter = {
}
}
};
-export const visibilitytimeout0: msRest.OperationQueryParameter = {
+export const visibilitytimeout0: coreHttp.OperationQueryParameter = {
parameterPath: [
"options",
"visibilitytimeout"
@@ -273,7 +284,7 @@ export const visibilitytimeout0: msRest.OperationQueryParameter = {
}
}
};
-export const visibilitytimeout1: msRest.OperationQueryParameter = {
+export const visibilitytimeout1: coreHttp.OperationQueryParameter = {
parameterPath: "visibilitytimeout",
mapper: {
required: true,
diff --git a/sdk/storage/storage-queue/src/generated/lib/models/queueMappers.ts b/sdk/storage/storage-queue/src/generated/lib/models/queueMappers.ts
index 136df44b3a06..3f28732d98e8 100644
--- a/sdk/storage/storage-queue/src/generated/lib/models/queueMappers.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/models/queueMappers.ts
@@ -1,22 +1,19 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
+ AccessPolicy,
QueueCreateHeaders,
- StorageError,
QueueDeleteHeaders,
+ QueueGetAccessPolicyHeaders,
QueueGetPropertiesHeaders,
+ QueueSetAccessPolicyHeaders,
QueueSetMetadataHeaders,
SignedIdentifier,
- AccessPolicy,
- QueueGetAccessPolicyHeaders,
- QueueSetAccessPolicyHeaders
+ StorageError
} from "../models/mappers";
-
diff --git a/sdk/storage/storage-queue/src/generated/lib/models/serviceMappers.ts b/sdk/storage/storage-queue/src/generated/lib/models/serviceMappers.ts
index 58e3c8c6da99..f2c0d244e7b0 100644
--- a/sdk/storage/storage-queue/src/generated/lib/models/serviceMappers.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/models/serviceMappers.ts
@@ -1,27 +1,24 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
- StorageServiceProperties,
- Logging,
- RetentionPolicy,
- Metrics,
CorsRule,
- ServiceSetPropertiesHeaders,
- StorageError,
- ServiceGetPropertiesHeaders,
- StorageServiceStats,
GeoReplication,
- ServiceGetStatisticsHeaders,
ListQueuesSegmentResponse,
+ Logging,
+ Metrics,
QueueItem,
- ServiceListQueuesSegmentHeaders
+ RetentionPolicy,
+ ServiceGetPropertiesHeaders,
+ ServiceGetStatisticsHeaders,
+ ServiceListQueuesSegmentHeaders,
+ ServiceSetPropertiesHeaders,
+ StorageError,
+ StorageServiceProperties,
+ StorageServiceStats
} from "../models/mappers";
-
diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/messageId.ts b/sdk/storage/storage-queue/src/generated/lib/operations/messageId.ts
index 01e499212f0d..c73dab1d6333 100644
--- a/sdk/storage/storage-queue/src/generated/lib/operations/messageId.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/operations/messageId.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
import * as Models from "../models";
import * as Mappers from "../models/messageIdMappers";
import * as Parameters from "../models/parameters";
@@ -54,7 +54,7 @@ export class MessageId {
* later than the expiry time.
* @param callback The callback
*/
- update(queueMessage: Models.QueueMessage, popReceipt: string, visibilitytimeout: number, callback: msRest.ServiceCallback): void;
+ update(queueMessage: Models.QueueMessage, 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
@@ -67,8 +67,8 @@ export class MessageId {
* @param options The optional parameters
* @param callback The callback
*/
- update(queueMessage: Models.QueueMessage, popReceipt: string, visibilitytimeout: number, options: Models.MessageIdUpdateOptionalParams, callback: msRest.ServiceCallback): void;
- update(queueMessage: Models.QueueMessage, popReceipt: string, visibilitytimeout: number, options?: Models.MessageIdUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ 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 {
return this.client.sendOperationRequest(
{
queueMessage,
@@ -93,15 +93,15 @@ export class MessageId {
* to the Get Messages or Update Message operation.
* @param callback The callback
*/
- deleteMethod(popReceipt: string, callback: msRest.ServiceCallback): void;
+ deleteMethod(popReceipt: string, callback: coreHttp.ServiceCallback): void;
/**
* @param popReceipt Required. Specifies the valid pop receipt value returned from an earlier call
* to the Get Messages or Update Message operation.
* @param options The optional parameters
* @param callback The callback
*/
- deleteMethod(popReceipt: string, options: Models.MessageIdDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void;
- deleteMethod(popReceipt: string, options?: Models.MessageIdDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ deleteMethod(popReceipt: string, options: Models.MessageIdDeleteMethodOptionalParams, callback: coreHttp.ServiceCallback): void;
+ deleteMethod(popReceipt: string, options?: Models.MessageIdDeleteMethodOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
popReceipt,
@@ -113,8 +113,8 @@ export class MessageId {
}
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers, true);
-const updateOperationSpec: msRest.OperationSpec = {
+const serializer = new coreHttp.Serializer(Mappers, true);
+const updateOperationSpec: coreHttp.OperationSpec = {
httpMethod: "PUT",
path: "{queueName}/messages/{messageid}",
urlParameters: [
@@ -149,7 +149,7 @@ const updateOperationSpec: msRest.OperationSpec = {
serializer
};
-const deleteMethodOperationSpec: msRest.OperationSpec = {
+const deleteMethodOperationSpec: coreHttp.OperationSpec = {
httpMethod: "DELETE",
path: "{queueName}/messages/{messageid}",
urlParameters: [
diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/messages.ts b/sdk/storage/storage-queue/src/generated/lib/operations/messages.ts
index bf0b4c5e0086..65efb63664bd 100644
--- a/sdk/storage/storage-queue/src/generated/lib/operations/messages.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/operations/messages.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
import * as Models from "../models";
import * as Mappers from "../models/messagesMappers";
import * as Parameters from "../models/parameters";
@@ -35,13 +35,13 @@ export class Messages {
/**
* @param callback The callback
*/
- dequeue(callback: msRest.ServiceCallback): void;
+ dequeue(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- dequeue(options: Models.MessagesDequeueOptionalParams, callback: msRest.ServiceCallback): void;
- dequeue(options?: Models.MessagesDequeueOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ dequeue(options: Models.MessagesDequeueOptionalParams, callback: coreHttp.ServiceCallback): void;
+ dequeue(options?: Models.MessagesDequeueOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -59,13 +59,13 @@ export class Messages {
/**
* @param callback The callback
*/
- clear(callback: msRest.ServiceCallback): void;
+ clear(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- clear(options: Models.MessagesClearOptionalParams, callback: msRest.ServiceCallback): void;
- clear(options?: Models.MessagesClearOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ clear(options: Models.MessagesClearOptionalParams, callback: coreHttp.ServiceCallback): void;
+ clear(options?: Models.MessagesClearOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -89,14 +89,14 @@ export class Messages {
* @param queueMessage A Message object which can be stored in a Queue
* @param callback The callback
*/
- enqueue(queueMessage: Models.QueueMessage, callback: msRest.ServiceCallback): void;
+ enqueue(queueMessage: Models.QueueMessage, callback: coreHttp.ServiceCallback): void;
/**
* @param queueMessage A Message object which can be stored in a Queue
* @param options The optional parameters
* @param callback The callback
*/
- enqueue(queueMessage: Models.QueueMessage, options: Models.MessagesEnqueueOptionalParams, callback: msRest.ServiceCallback): void;
- enqueue(queueMessage: Models.QueueMessage, options?: Models.MessagesEnqueueOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ enqueue(queueMessage: Models.QueueMessage, options: Models.MessagesEnqueueOptionalParams, callback: coreHttp.ServiceCallback): void;
+ enqueue(queueMessage: Models.QueueMessage, options?: Models.MessagesEnqueueOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
queueMessage,
@@ -116,13 +116,13 @@ export class Messages {
/**
* @param callback The callback
*/
- peek(callback: msRest.ServiceCallback): void;
+ peek(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- peek(options: Models.MessagesPeekOptionalParams, callback: msRest.ServiceCallback): void;
- peek(options?: Models.MessagesPeekOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ peek(options: Models.MessagesPeekOptionalParams, callback: coreHttp.ServiceCallback): void;
+ peek(options?: Models.MessagesPeekOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -133,8 +133,8 @@ export class Messages {
}
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers, true);
-const dequeueOperationSpec: msRest.OperationSpec = {
+const serializer = new coreHttp.Serializer(Mappers, true);
+const dequeueOperationSpec: coreHttp.OperationSpec = {
httpMethod: "GET",
path: "{queueName}/messages",
urlParameters: [
@@ -174,7 +174,7 @@ const dequeueOperationSpec: msRest.OperationSpec = {
serializer
};
-const clearOperationSpec: msRest.OperationSpec = {
+const clearOperationSpec: coreHttp.OperationSpec = {
httpMethod: "DELETE",
path: "{queueName}/messages",
urlParameters: [
@@ -199,7 +199,7 @@ const clearOperationSpec: msRest.OperationSpec = {
serializer
};
-const enqueueOperationSpec: msRest.OperationSpec = {
+const enqueueOperationSpec: coreHttp.OperationSpec = {
httpMethod: "POST",
path: "{queueName}/messages",
urlParameters: [
@@ -247,7 +247,7 @@ const enqueueOperationSpec: msRest.OperationSpec = {
serializer
};
-const peekOperationSpec: msRest.OperationSpec = {
+const peekOperationSpec: coreHttp.OperationSpec = {
httpMethod: "GET",
path: "{queueName}/messages",
urlParameters: [
diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/queue.ts b/sdk/storage/storage-queue/src/generated/lib/operations/queue.ts
index a15afd1a0308..9d3cde4b6999 100644
--- a/sdk/storage/storage-queue/src/generated/lib/operations/queue.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/operations/queue.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
import * as Models from "../models";
import * as Mappers from "../models/queueMappers";
import * as Parameters from "../models/parameters";
@@ -35,13 +35,13 @@ export class Queue {
/**
* @param callback The callback
*/
- create(callback: msRest.ServiceCallback): void;
+ create(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- create(options: Models.QueueCreateOptionalParams, callback: msRest.ServiceCallback): void;
- create(options?: Models.QueueCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ create(options: Models.QueueCreateOptionalParams, callback: coreHttp.ServiceCallback): void;
+ create(options?: Models.QueueCreateOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -59,13 +59,13 @@ export class Queue {
/**
* @param callback The callback
*/
- deleteMethod(callback: msRest.ServiceCallback): void;
+ deleteMethod(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- deleteMethod(options: Models.QueueDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void;
- deleteMethod(options?: Models.QueueDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ deleteMethod(options: Models.QueueDeleteMethodOptionalParams, callback: coreHttp.ServiceCallback): void;
+ deleteMethod(options?: Models.QueueDeleteMethodOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -84,13 +84,13 @@ export class Queue {
/**
* @param callback The callback
*/
- getProperties(callback: msRest.ServiceCallback): void;
+ getProperties(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- getProperties(options: Models.QueueGetPropertiesOptionalParams, callback: msRest.ServiceCallback): void;
- getProperties(options?: Models.QueueGetPropertiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ getProperties(options: Models.QueueGetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void;
+ getProperties(options?: Models.QueueGetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -109,13 +109,13 @@ export class Queue {
/**
* @param callback The callback
*/
- setMetadata(callback: msRest.ServiceCallback): void;
+ setMetadata(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- setMetadata(options: Models.QueueSetMetadataOptionalParams, callback: msRest.ServiceCallback): void;
- setMetadata(options?: Models.QueueSetMetadataOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ setMetadata(options: Models.QueueSetMetadataOptionalParams, callback: coreHttp.ServiceCallback): void;
+ setMetadata(options?: Models.QueueSetMetadataOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -134,13 +134,13 @@ export class Queue {
/**
* @param callback The callback
*/
- getAccessPolicy(callback: msRest.ServiceCallback): void;
+ getAccessPolicy(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- getAccessPolicy(options: Models.QueueGetAccessPolicyOptionalParams, callback: msRest.ServiceCallback): void;
- getAccessPolicy(options?: Models.QueueGetAccessPolicyOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ getAccessPolicy(options: Models.QueueGetAccessPolicyOptionalParams, callback: coreHttp.ServiceCallback): void;
+ getAccessPolicy(options?: Models.QueueGetAccessPolicyOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -158,13 +158,13 @@ export class Queue {
/**
* @param callback The callback
*/
- setAccessPolicy(callback: msRest.ServiceCallback): void;
+ setAccessPolicy(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- setAccessPolicy(options: Models.QueueSetAccessPolicyOptionalParams, callback: msRest.ServiceCallback): void;
- setAccessPolicy(options?: Models.QueueSetAccessPolicyOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ setAccessPolicy(options: Models.QueueSetAccessPolicyOptionalParams, callback: coreHttp.ServiceCallback): void;
+ setAccessPolicy(options?: Models.QueueSetAccessPolicyOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -175,8 +175,8 @@ export class Queue {
}
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers, true);
-const createOperationSpec: msRest.OperationSpec = {
+const serializer = new coreHttp.Serializer(Mappers, true);
+const createOperationSpec: coreHttp.OperationSpec = {
httpMethod: "PUT",
path: "{queueName}",
urlParameters: [
@@ -205,7 +205,7 @@ const createOperationSpec: msRest.OperationSpec = {
serializer
};
-const deleteMethodOperationSpec: msRest.OperationSpec = {
+const deleteMethodOperationSpec: coreHttp.OperationSpec = {
httpMethod: "DELETE",
path: "{queueName}",
urlParameters: [
@@ -230,7 +230,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
serializer
};
-const getPropertiesOperationSpec: msRest.OperationSpec = {
+const getPropertiesOperationSpec: coreHttp.OperationSpec = {
httpMethod: "GET",
path: "{queueName}",
urlParameters: [
@@ -256,7 +256,7 @@ const getPropertiesOperationSpec: msRest.OperationSpec = {
serializer
};
-const setMetadataOperationSpec: msRest.OperationSpec = {
+const setMetadataOperationSpec: coreHttp.OperationSpec = {
httpMethod: "PUT",
path: "{queueName}",
urlParameters: [
@@ -283,7 +283,7 @@ const setMetadataOperationSpec: msRest.OperationSpec = {
serializer
};
-const getAccessPolicyOperationSpec: msRest.OperationSpec = {
+const getAccessPolicyOperationSpec: coreHttp.OperationSpec = {
httpMethod: "GET",
path: "{queueName}",
urlParameters: [
@@ -322,7 +322,7 @@ const getAccessPolicyOperationSpec: msRest.OperationSpec = {
serializer
};
-const setAccessPolicyOperationSpec: msRest.OperationSpec = {
+const setAccessPolicyOperationSpec: coreHttp.OperationSpec = {
httpMethod: "PUT",
path: "{queueName}",
urlParameters: [
diff --git a/sdk/storage/storage-queue/src/generated/lib/operations/service.ts b/sdk/storage/storage-queue/src/generated/lib/operations/service.ts
index 9923a6395955..fff54aae0ec2 100644
--- a/sdk/storage/storage-queue/src/generated/lib/operations/service.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/operations/service.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
import * as Models from "../models";
import * as Mappers from "../models/serviceMappers";
import * as Parameters from "../models/parameters";
@@ -38,14 +38,14 @@ export class Service {
* @param storageServiceProperties The StorageService properties.
* @param callback The callback
*/
- setProperties(storageServiceProperties: Models.StorageServiceProperties, callback: msRest.ServiceCallback): void;
+ setProperties(storageServiceProperties: Models.StorageServiceProperties, callback: coreHttp.ServiceCallback): void;
/**
* @param storageServiceProperties The StorageService properties.
* @param options The optional parameters
* @param callback The callback
*/
- setProperties(storageServiceProperties: Models.StorageServiceProperties, options: Models.ServiceSetPropertiesOptionalParams, callback: msRest.ServiceCallback): void;
- setProperties(storageServiceProperties: Models.StorageServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ setProperties(storageServiceProperties: Models.StorageServiceProperties, options: Models.ServiceSetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void;
+ setProperties(storageServiceProperties: Models.StorageServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
storageServiceProperties,
@@ -65,13 +65,13 @@ export class Service {
/**
* @param callback The callback
*/
- getProperties(callback: msRest.ServiceCallback): void;
+ getProperties(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- getProperties(options: Models.ServiceGetPropertiesOptionalParams, callback: msRest.ServiceCallback): void;
- getProperties(options?: Models.ServiceGetPropertiesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ getProperties(options: Models.ServiceGetPropertiesOptionalParams, callback: coreHttp.ServiceCallback): void;
+ getProperties(options?: Models.ServiceGetPropertiesOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -91,13 +91,13 @@ export class Service {
/**
* @param callback The callback
*/
- getStatistics(callback: msRest.ServiceCallback): void;
+ getStatistics(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- getStatistics(options: Models.ServiceGetStatisticsOptionalParams, callback: msRest.ServiceCallback): void;
- getStatistics(options?: Models.ServiceGetStatisticsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ getStatistics(options: Models.ServiceGetStatisticsOptionalParams, callback: coreHttp.ServiceCallback): void;
+ getStatistics(options?: Models.ServiceGetStatisticsOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -115,13 +115,13 @@ export class Service {
/**
* @param callback The callback
*/
- listQueuesSegment(callback: msRest.ServiceCallback): void;
+ listQueuesSegment(callback: coreHttp.ServiceCallback): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
- listQueuesSegment(options: Models.ServiceListQueuesSegmentOptionalParams, callback: msRest.ServiceCallback): void;
- listQueuesSegment(options?: Models.ServiceListQueuesSegmentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listQueuesSegment(options: Models.ServiceListQueuesSegmentOptionalParams, callback: coreHttp.ServiceCallback): void;
+ listQueuesSegment(options?: Models.ServiceListQueuesSegmentOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -129,11 +129,39 @@ export class Service {
listQueuesSegmentOperationSpec,
callback) as Promise;
}
+
+ /**
+ * The List Queues Segment operation returns a list of the queues under the specified account
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listQueuesSegmentNext(nextPageLink: string, options?: Models.ServiceListQueuesSegmentNextOptionalParams): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listQueuesSegmentNext(nextPageLink: string, callback: coreHttp.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listQueuesSegmentNext(nextPageLink: string, options: Models.ServiceListQueuesSegmentNextOptionalParams, callback: coreHttp.ServiceCallback): void;
+ listQueuesSegmentNext(nextPageLink: string, options?: Models.ServiceListQueuesSegmentNextOptionalParams | coreHttp.ServiceCallback, callback?: coreHttp.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listQueuesSegmentNextOperationSpec,
+ callback) as Promise;
+ }
}
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers, true);
-const setPropertiesOperationSpec: msRest.OperationSpec = {
+const serializer = new coreHttp.Serializer(Mappers, true);
+const setPropertiesOperationSpec: coreHttp.OperationSpec = {
httpMethod: "PUT",
urlParameters: [
Parameters.url
@@ -167,7 +195,7 @@ const setPropertiesOperationSpec: msRest.OperationSpec = {
serializer
};
-const getPropertiesOperationSpec: msRest.OperationSpec = {
+const getPropertiesOperationSpec: coreHttp.OperationSpec = {
httpMethod: "GET",
urlParameters: [
Parameters.url
@@ -194,7 +222,7 @@ const getPropertiesOperationSpec: msRest.OperationSpec = {
serializer
};
-const getStatisticsOperationSpec: msRest.OperationSpec = {
+const getStatisticsOperationSpec: coreHttp.OperationSpec = {
httpMethod: "GET",
urlParameters: [
Parameters.url
@@ -221,7 +249,7 @@ const getStatisticsOperationSpec: msRest.OperationSpec = {
serializer
};
-const listQueuesSegmentOperationSpec: msRest.OperationSpec = {
+const listQueuesSegmentOperationSpec: coreHttp.OperationSpec = {
httpMethod: "GET",
urlParameters: [
Parameters.url
@@ -250,3 +278,27 @@ const listQueuesSegmentOperationSpec: msRest.OperationSpec = {
isXML: true,
serializer
};
+
+const listQueuesSegmentNextOperationSpec: coreHttp.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "{url}",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.version,
+ Parameters.requestId
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.ListQueuesSegmentResponse,
+ headersMapper: Mappers.ServiceListQueuesSegmentHeaders
+ },
+ default: {
+ bodyMapper: Mappers.StorageError
+ }
+ },
+ isXML: true,
+ serializer
+};
diff --git a/sdk/storage/storage-queue/src/generated/lib/storageClient.ts b/sdk/storage/storage-queue/src/generated/lib/storageClient.ts
index efda8ea6b532..653d1adb0fb0 100644
--- a/sdk/storage/storage-queue/src/generated/lib/storageClient.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/storageClient.ts
@@ -8,7 +8,7 @@
* regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
@@ -27,7 +27,7 @@ class StorageClient extends StorageClientContext {
* operation.
* @param [options] The parameter options
*/
- constructor(url: string, options?: msRest.ServiceClientOptions) {
+ constructor(url: string, options?: coreHttp.ServiceClientOptions) {
super(url, options);
this.service = new operations.Service(this);
this.queue = new operations.Queue(this);
diff --git a/sdk/storage/storage-queue/src/generated/lib/storageClientContext.ts b/sdk/storage/storage-queue/src/generated/lib/storageClientContext.ts
index 5cbdba82ff1a..8ac14b0245bf 100644
--- a/sdk/storage/storage-queue/src/generated/lib/storageClientContext.ts
+++ b/sdk/storage/storage-queue/src/generated/lib/storageClientContext.ts
@@ -8,12 +8,12 @@
* regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import * as coreHttp from "@azure/core-http";
const packageName = "azure-storage-queue";
const packageVersion = "1.0.0";
-export class StorageClientContext extends msRest.ServiceClient {
+export class StorageClientContext extends coreHttp.ServiceClient {
url: string;
version: string;
@@ -23,16 +23,17 @@ export class StorageClientContext extends msRest.ServiceClient {
* operation.
* @param [options] The parameter options
*/
- constructor(url: string, options?: msRest.ServiceClientOptions) {
- if (url === null || url === undefined) {
- throw new Error('\'url\' cannot be null.');
+ constructor(url: string, options?: coreHttp.ServiceClientOptions) {
+ if (url == undefined) {
+ throw new Error("'url' cannot be null.");
}
if (!options) {
options = {};
}
- if(!options.userAgent) {
- const defaultUserAgent = msRest.getDefaultUserAgentValue();
+
+ if (!options.userAgent) {
+ const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
@@ -42,6 +43,5 @@ export class StorageClientContext extends msRest.ServiceClient {
this.baseUri = "{url}";
this.requestContentType = "application/json; charset=utf-8";
this.url = url;
-
}
}
diff --git a/sdk/storage/storage-queue/src/index.browser.ts b/sdk/storage/storage-queue/src/index.browser.ts
index b1ebd504867a..7c4298aafe24 100644
--- a/sdk/storage/storage-queue/src/index.browser.ts
+++ b/sdk/storage/storage-queue/src/index.browser.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RestError } from "@azure/ms-rest-js";
+import { RestError } from "@azure/core-http";
import * as Models from "../src/generated/lib/models";
diff --git a/sdk/storage/storage-queue/src/index.ts b/sdk/storage/storage-queue/src/index.ts
index 2e3e1b6ef645..81b654098399 100644
--- a/sdk/storage/storage-queue/src/index.ts
+++ b/sdk/storage/storage-queue/src/index.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RestError } from "@azure/ms-rest-js";
+import { RestError } from "@azure/core-http";
import * as Models from "../src/generated/lib/models";
diff --git a/sdk/storage/storage-queue/src/policies/AnonymousCredentialPolicy.ts b/sdk/storage/storage-queue/src/policies/AnonymousCredentialPolicy.ts
index d5368d185b02..f322060c2e98 100644
--- a/sdk/storage/storage-queue/src/policies/AnonymousCredentialPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/AnonymousCredentialPolicy.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyOptions } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyOptions } from "@azure/core-http";
import { CredentialPolicy } from "./CredentialPolicy";
diff --git a/sdk/storage/storage-queue/src/policies/BrowserPolicy.ts b/sdk/storage/storage-queue/src/policies/BrowserPolicy.ts
index 2b7d37949eec..daee8c93cae1 100644
--- a/sdk/storage/storage-queue/src/policies/BrowserPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/BrowserPolicy.ts
@@ -8,7 +8,7 @@ import {
RequestPolicy,
RequestPolicyOptions,
WebResource
-} from "@azure/ms-rest-js";
+} from "@azure/core-http";
import { HeaderConstants, URLConstants } from "../utils/constants";
import { setURLParameter } from "../utils/utils.common";
diff --git a/sdk/storage/storage-queue/src/policies/CredentialPolicy.ts b/sdk/storage/storage-queue/src/policies/CredentialPolicy.ts
index e15490e27e3d..32cf09b84d6b 100644
--- a/sdk/storage/storage-queue/src/policies/CredentialPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/CredentialPolicy.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { BaseRequestPolicy, HttpOperationResponse, WebResource } from "@azure/ms-rest-js";
+import { BaseRequestPolicy, HttpOperationResponse, WebResource } from "@azure/core-http";
/**
* Credential policy used to sign HTTP(S) requests before sending. This is an
diff --git a/sdk/storage/storage-queue/src/policies/LoggingPolicy.ts b/sdk/storage/storage-queue/src/policies/LoggingPolicy.ts
index 464669141234..67203bd43cf1 100644
--- a/sdk/storage/storage-queue/src/policies/LoggingPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/LoggingPolicy.ts
@@ -9,7 +9,7 @@ import {
RequestPolicyOptions,
RestError,
WebResource
-} from "@azure/ms-rest-js";
+} from "@azure/core-http";
import { RequestLogOptions } from "../LoggingPolicyFactory";
import { HTTPURLConnection } from "../utils/constants";
diff --git a/sdk/storage/storage-queue/src/policies/RetryPolicy.ts b/sdk/storage/storage-queue/src/policies/RetryPolicy.ts
index 8781d9d990fb..bbc123163b63 100644
--- a/sdk/storage/storage-queue/src/policies/RetryPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/RetryPolicy.ts
@@ -11,7 +11,7 @@ import {
RequestPolicyOptions,
RestError,
WebResource
-} from "@azure/ms-rest-js";
+} from "@azure/core-http";
import { RetryOptions } from "../RetryPolicyFactory";
import { URLConstants } from "../utils/constants";
diff --git a/sdk/storage/storage-queue/src/policies/SharedKeyCredentialPolicy.ts b/sdk/storage/storage-queue/src/policies/SharedKeyCredentialPolicy.ts
index 603db7206cf5..faa6080cf01e 100644
--- a/sdk/storage/storage-queue/src/policies/SharedKeyCredentialPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/SharedKeyCredentialPolicy.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { RequestPolicy, RequestPolicyOptions, WebResource } from "@azure/ms-rest-js";
+import { RequestPolicy, RequestPolicyOptions, WebResource } from "@azure/core-http";
import { SharedKeyCredential } from "../credentials/SharedKeyCredential";
import { HeaderConstants } from "../utils/constants";
import { getURLPath, getURLQueries } from "../utils/utils.common";
diff --git a/sdk/storage/storage-queue/src/policies/TelemetryPolicy.ts b/sdk/storage/storage-queue/src/policies/TelemetryPolicy.ts
index b60d509e5906..ef2f837aa3dc 100644
--- a/sdk/storage/storage-queue/src/policies/TelemetryPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/TelemetryPolicy.ts
@@ -9,7 +9,7 @@ import {
RequestPolicy,
RequestPolicyOptions,
WebResource
-} from "@azure/ms-rest-js";
+} from "@azure/core-http";
import { HeaderConstants } from "../utils/constants";
diff --git a/sdk/storage/storage-queue/src/policies/TokenCredentialPolicy.ts b/sdk/storage/storage-queue/src/policies/TokenCredentialPolicy.ts
index f852d3b331d1..2c078bbc7f1c 100644
--- a/sdk/storage/storage-queue/src/policies/TokenCredentialPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/TokenCredentialPolicy.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { HttpHeaders, RequestPolicy, RequestPolicyOptions, WebResource } from "@azure/ms-rest-js";
+import { HttpHeaders, RequestPolicy, RequestPolicyOptions, WebResource } from "@azure/core-http";
import { TokenCredential } from "../credentials/TokenCredential";
import { HeaderConstants } from "../utils/constants";
diff --git a/sdk/storage/storage-queue/src/policies/UniqueRequestIDPolicy.ts b/sdk/storage/storage-queue/src/policies/UniqueRequestIDPolicy.ts
index 5fd1681dc9f4..da15a58284f0 100644
--- a/sdk/storage/storage-queue/src/policies/UniqueRequestIDPolicy.ts
+++ b/sdk/storage/storage-queue/src/policies/UniqueRequestIDPolicy.ts
@@ -8,7 +8,7 @@ import {
RequestPolicy,
RequestPolicyOptions,
WebResource
-} from "@azure/ms-rest-js";
+} from "@azure/core-http";
import { HeaderConstants } from "../utils/constants";
diff --git a/sdk/storage/storage-queue/src/utils/utils.common.ts b/sdk/storage/storage-queue/src/utils/utils.common.ts
index 192502fb4464..3a44fc4288c0 100644
--- a/sdk/storage/storage-queue/src/utils/utils.common.ts
+++ b/sdk/storage/storage-queue/src/utils/utils.common.ts
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-import { HttpHeaders, URLBuilder } from "@azure/ms-rest-js";
+import { HttpHeaders, URLBuilder } from "@azure/core-http";
import { HeaderConstants, URLConstants } from "./constants";
/**
diff --git a/sdk/storage/storage-queue/swagger/README.md b/sdk/storage/storage-queue/swagger/README.md
index f1531bee64de..ff918b85720d 100644
--- a/sdk/storage/storage-queue/swagger/README.md
+++ b/sdk/storage/storage-queue/swagger/README.md
@@ -10,7 +10,7 @@ enable-xml: true
generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../src/generated
-input-file: ./queue-storage-2018-03-28.json
+input-file: ./queue.json
model-date-time-as-string: true
optional-response-headers: true
```
diff --git a/sdk/storage/storage-queue/swagger/queue.json b/sdk/storage/storage-queue/swagger/queue.json
new file mode 100644
index 000000000000..35feb8a083b6
--- /dev/null
+++ b/sdk/storage/storage-queue/swagger/queue.json
@@ -0,0 +1,1856 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Azure Queue Storage",
+ "version": "2018-03-28",
+ "x-ms-code-generation-settings": {
+ "header": "MIT",
+ "strictSpecAdherence": false
+ }
+ },
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{url}",
+ "useSchemePrefix": false,
+ "positionInOperation": "first",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Url"
+ }
+ ]
+ },
+ "securityDefinitions": {
+ "queue_shared_key": {
+ "type": "apiKey",
+ "name": "Authorization",
+ "in": "header"
+ }
+ },
+ "schemes": [
+ "https"
+ ],
+ "consumes": [
+ "application/xml"
+ ],
+ "produces": [
+ "application/xml"
+ ],
+ "paths": {},
+ "x-ms-paths": {
+ "/?restype=service&comp=properties": {
+ "put": {
+ "tags": [
+ "service"
+ ],
+ "operationId": "Service_SetProperties",
+ "description": "Sets properties for a storage account's Queue service endpoint, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules",
+ "parameters": [
+ {
+ "$ref": "#/parameters/StorageServiceProperties"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Success (Accepted)",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "get": {
+ "tags": [
+ "service"
+ ],
+ "operationId": "Service_GetProperties",
+ "description": "gets the properties of a storage account's Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageServiceProperties"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "restype",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "service"
+ ]
+ },
+ {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "properties"
+ ]
+ }
+ ]
+ },
+ "/?restype=service&comp=stats": {
+ "get": {
+ "tags": [
+ "service"
+ ],
+ "operationId": "Service_GetStatistics",
+ "description": "Retrieves statistics related to replication for the Queue service. It is only available on the secondary location endpoint when read-access geo-redundant replication is enabled for the storage account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageServiceStats"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "restype",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "service"
+ ]
+ },
+ {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "stats"
+ ]
+ }
+ ]
+ },
+ "/?comp=list": {
+ "get": {
+ "tags": [
+ "service"
+ ],
+ "operationId": "Service_ListQueuesSegment",
+ "description": "The List Queues Segment operation returns a list of the queues under the specified account",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Prefix"
+ },
+ {
+ "$ref": "#/parameters/Marker"
+ },
+ {
+ "$ref": "#/parameters/MaxResults"
+ },
+ {
+ "$ref": "#/parameters/ListQueuesInclude"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/ListQueuesSegmentResponse"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ },
+ "x-ms-pageable": {
+ "nextLinkName": "NextMarker"
+ }
+ },
+ "parameters": [
+ {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "list"
+ ]
+ }
+ ]
+ },
+ "/{queueName}": {
+ "put": {
+ "tags": [
+ "service"
+ ],
+ "operationId": "Queue_Create",
+ "description": "creates a new queue under the given account.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/Metadata"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Success, queue created.",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "204": {
+ "description": "Success, queue created.",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "queue"
+ ],
+ "operationId": "Queue_Delete",
+ "description": "operation permanently deletes the specified queue",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": []
+ },
+ "/{queueName}?comp=metadata": {
+ "get": {
+ "tags": [
+ "queue"
+ ],
+ "operationId": "Queue_GetProperties",
+ "description": "Retrieves user-defined metadata and queue properties on the specified queue. Metadata is associated with the queue as name-values pairs.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success.",
+ "headers": {
+ "x-ms-meta": {
+ "type": "string",
+ "x-ms-client-name": "Metadata",
+ "x-ms-header-collection-prefix": "x-ms-meta-"
+ },
+ "x-ms-approximate-messages-count": {
+ "type": "integer",
+ "x-ms-client-name": "ApproximateMessagesCount",
+ "description": "The approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher."
+ },
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "queue"
+ ],
+ "operationId": "Queue_SetMetadata",
+ "description": "sets user-defined metadata on the specified queue. Metadata is associated with the queue as name-value pairs.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/Metadata"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "metadata"
+ ]
+ }
+ ]
+ },
+ "/{queueName}?comp=acl": {
+ "get": {
+ "tags": [
+ "queue"
+ ],
+ "operationId": "Queue_GetAccessPolicy",
+ "description": "returns details about any stored access policies specified on the queue that may be used with Shared Access Signatures.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Success",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/SignedIdentifiers"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "put": {
+ "tags": [
+ "queue"
+ ],
+ "operationId": "Queue_SetAccessPolicy",
+ "description": "sets stored access policies for the queue that may be used with Shared Access Signatures",
+ "parameters": [
+ {
+ "$ref": "#/parameters/QueueAcl"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "comp",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "acl"
+ ]
+ }
+ ]
+ },
+ "/{queueName}/messages": {
+ "get": {
+ "tags": [
+ "message"
+ ],
+ "operationId": "Messages_Dequeue",
+ "description": "The Dequeue operation retrieves one or more messages from the front of the queue.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/NumOfMessages"
+ },
+ {
+ "$ref": "#/parameters/VisibilityTimeout"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/DequeuedMessagesList"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": [
+ "message"
+ ],
+ "operationId": "Messages_Clear",
+ "description": "The Clear operation deletes all messages from the specified queue.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": []
+ },
+ "/{queueName}/messages?visibilitytimeout={visibilityTimeout}&messagettl={messageTimeToLive}": {
+ "post": {
+ "tags": [
+ "message"
+ ],
+ "operationId": "Messages_Enqueue",
+ "description": "The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can also be specified to make the message invisible until the visibility timeout expires. A message must be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can be up to 64 KB in size for versions 2011-08-18 and newer, or 8 KB in size for previous versions.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/QueueMessage"
+ },
+ {
+ "$ref": "#/parameters/VisibilityTimeout"
+ },
+ {
+ "$ref": "#/parameters/MessageTTL"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "Created",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/EnqueuedMessageList"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": []
+ },
+ "/{queueName}/messages?peekonly=true": {
+ "get": {
+ "tags": [
+ "message"
+ ],
+ "operationId": "Messages_Peek",
+ "description": "The Peek operation retrieves one or more messages from the front of the queue, but does not alter the visibility of the message.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/NumOfMessages"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/PeekedMessagesList"
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "peekonly",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "true"
+ ]
+ }
+ ]
+ },
+ "/{queueName}/messages/{messageid}?popreceipt={popReceipt}&visibilitytimeout={visibilityTimeout}": {
+ "put": {
+ "tags": [
+ "messageId"
+ ],
+ "operationId": "MessageId_Update",
+ "description": "The Update operation was introduced with version 2011-08-18 of the Queue service API. The Update Message operation updates the visibility timeout of a message. You can also use this operation to update the contents of a message. A message must be in a format that can be included in an XML request with UTF-8 encoding, and the encoded message can be up to 64KB in size.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/QueueMessage"
+ },
+ {
+ "$ref": "#/parameters/PopReceipt"
+ },
+ {
+ "$ref": "#/parameters/VisibilityTimeoutRequired"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ },
+ "x-ms-popreceipt": {
+ "x-ms-client-name": "PopReceipt",
+ "type": "string",
+ "description": "The pop receipt of the queue message."
+ },
+ "x-ms-time-next-visible": {
+ "x-ms-client-name": "TimeNextVisible",
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "A UTC date/time value that represents when the message will be visible on the queue."
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": []
+ },
+ "/{queueName}/messages/{messageid}?popreceipt={popReceipt}": {
+ "delete": {
+ "tags": [
+ "messageId"
+ ],
+ "operationId": "MessageId_Delete",
+ "description": "The Delete operation deletes the specified message.",
+ "parameters": [
+ {
+ "$ref": "#/parameters/PopReceipt"
+ },
+ {
+ "$ref": "#/parameters/Timeout"
+ },
+ {
+ "$ref": "#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ClientRequestId"
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "headers": {
+ "x-ms-request-id": {
+ "x-ms-client-name": "RequestId",
+ "type": "string",
+ "description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
+ },
+ "x-ms-version": {
+ "x-ms-client-name": "Version",
+ "type": "string",
+ "description": "Indicates the version of the Queue service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
+ },
+ "Date": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
+ }
+ }
+ },
+ "default": {
+ "description": "Failure",
+ "headers": {
+ "x-ms-error-code": {
+ "x-ms-client-name": "ErrorCode",
+ "type": "string"
+ }
+ },
+ "schema": {
+ "$ref": "#/definitions/StorageError"
+ }
+ }
+ }
+ },
+ "parameters": []
+ }
+ },
+ "definitions": {
+ "AccessPolicy": {
+ "type": "object",
+ "required": [
+ "Start",
+ "Expiry",
+ "Permission"
+ ],
+ "description": "An Access policy",
+ "properties": {
+ "Start": {
+ "description": "the date-time the policy is active",
+ "type": "string",
+ "format": "date-time"
+ },
+ "Expiry": {
+ "description": "the date-time the policy expires",
+ "type": "string",
+ "format": "date-time"
+ },
+ "Permission": {
+ "description": "the permissions for the acl policy",
+ "type": "string"
+ }
+ }
+ },
+ "ListQueuesSegmentResponse": {
+ "xml": {
+ "name": "EnumerationResults"
+ },
+ "description": "The object returned when calling List Queues on a Queue Service.",
+ "type": "object",
+ "required": [
+ "ServiceEndpoint",
+ "Prefix",
+ "MaxResults",
+ "NextMarker"
+ ],
+ "properties": {
+ "ServiceEndpoint": {
+ "type": "string",
+ "xml": {
+ "attribute": true
+ }
+ },
+ "Prefix": {
+ "type": "string"
+ },
+ "Marker": {
+ "type": "string"
+ },
+ "MaxResults": {
+ "type": "integer"
+ },
+ "QueueItems": {
+ "xml": {
+ "wrapped": true,
+ "name": "Queues"
+ },
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/QueueItem"
+ }
+ },
+ "NextMarker": {
+ "type": "string"
+ }
+ }
+ },
+ "CorsRule": {
+ "description": "CORS is an HTTP feature that enables a web application running under one domain to access resources in another domain. Web browsers implement a security restriction known as same-origin policy that prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin domain) to call APIs in another domain",
+ "type": "object",
+ "required": [
+ "AllowedOrigins",
+ "AllowedMethods",
+ "AllowedHeaders",
+ "ExposedHeaders",
+ "MaxAgeInSeconds"
+ ],
+ "properties": {
+ "AllowedOrigins": {
+ "description": "The origin domains that are permitted to make a request against the storage service via CORS. The origin domain is the domain from which the request originates. Note that the origin must be an exact case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' to allow all origin domains to make requests via CORS.",
+ "type": "string"
+ },
+ "AllowedMethods": {
+ "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated)",
+ "type": "string"
+ },
+ "AllowedHeaders": {
+ "description": "the request headers that the origin domain may specify on the CORS request.",
+ "type": "string"
+ },
+ "ExposedHeaders": {
+ "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer",
+ "type": "string"
+ },
+ "MaxAgeInSeconds": {
+ "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.",
+ "type": "integer",
+ "minimum": 0
+ }
+ }
+ },
+ "ErrorCode": {
+ "description": "Error codes returned by the service",
+ "type": "string",
+ "enum": [
+ "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"
+ ],
+ "x-ms-enum": {
+ "name": "StorageErrorCode",
+ "modelAsString": true
+ }
+ },
+ "GeoReplication": {
+ "type": "object",
+ "required": [
+ "Status",
+ "LastSyncTime"
+ ],
+ "properties": {
+ "Status": {
+ "description": "The status of the secondary location",
+ "type": "string",
+ "enum": [
+ "live",
+ "bootstrap",
+ "unavailable"
+ ],
+ "x-ms-enum": {
+ "name": "GeoReplicationStatusType",
+ "modelAsString": true
+ }
+ },
+ "LastSyncTime": {
+ "description": "A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads.",
+ "type": "string",
+ "format": "date-time-rfc1123"
+ }
+ }
+ },
+ "Logging": {
+ "description": "Azure Analytics Logging settings.",
+ "type": "object",
+ "required": [
+ "Version",
+ "Delete",
+ "Read",
+ "Write",
+ "RetentionPolicy"
+ ],
+ "properties": {
+ "Version": {
+ "description": "The version of Storage Analytics to configure.",
+ "type": "string"
+ },
+ "Delete": {
+ "description": "Indicates whether all delete requests should be logged.",
+ "type": "boolean"
+ },
+ "Read": {
+ "description": "Indicates whether all read requests should be logged.",
+ "type": "boolean"
+ },
+ "Write": {
+ "description": "Indicates whether all write requests should be logged.",
+ "type": "boolean"
+ },
+ "RetentionPolicy": {
+ "$ref": "#/definitions/RetentionPolicy"
+ }
+ }
+ },
+ "Metadata": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "StorageError": {
+ "type": "object",
+ "properties": {
+ "Message": {
+ "type": "string"
+ }
+ }
+ },
+ "Metrics": {
+ "description": "",
+ "required": [
+ "Enabled"
+ ],
+ "properties": {
+ "Version": {
+ "description": "The version of Storage Analytics to configure.",
+ "type": "string"
+ },
+ "Enabled": {
+ "description": "Indicates whether metrics are enabled for the Queue service.",
+ "type": "boolean"
+ },
+ "IncludeAPIs": {
+ "description": "Indicates whether metrics should generate summary statistics for called API operations.",
+ "type": "boolean"
+ },
+ "RetentionPolicy": {
+ "$ref": "#/definitions/RetentionPolicy"
+ }
+ }
+ },
+ "QueueItem": {
+ "description": "An Azure Storage Queue.",
+ "type": "object",
+ "required": [
+ "Name"
+ ],
+ "properties": {
+ "Name": {
+ "type": "string",
+ "description": "The name of the Queue."
+ },
+ "Metadata": {
+ "$ref": "#/definitions/Metadata"
+ }
+ },
+ "xml": {
+ "name": "Queue"
+ }
+ },
+ "QueueMessage": {
+ "description": "A Message object which can be stored in a Queue",
+ "type": "object",
+ "required": [
+ "MessageText"
+ ],
+ "properties": {
+ "MessageText": {
+ "type": "string",
+ "description": "The content of the message"
+ }
+ }
+ },
+ "DequeuedMessageItem": {
+ "description": "The object returned in the QueueMessageList array when calling Get Messages on a Queue.",
+ "type": "object",
+ "required": [
+ "MessageId",
+ "InsertionTime",
+ "ExpirationTime",
+ "PopReceipt",
+ "TimeNextVisible",
+ "DequeueCount",
+ "MessageText"
+ ],
+ "properties": {
+ "MessageId": {
+ "type": "string",
+ "description": "The Id of the Message."
+ },
+ "InsertionTime": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time the Message was inserted into the Queue."
+ },
+ "ExpirationTime": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time that the Message will expire and be automatically deleted."
+ },
+ "PopReceipt": {
+ "type": "string",
+ "description": "This value is required to delete the Message. If deletion fails using this popreceipt then the message has been dequeued by another client."
+ },
+ "TimeNextVisible": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time that the message will again become visible in the Queue."
+ },
+ "DequeueCount": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The number of times the message has been dequeued."
+ },
+ "MessageText": {
+ "type": "string",
+ "description": "The content of the Message."
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "QueueMessage"
+ }
+ },
+ "PeekedMessageItem": {
+ "description": "The object returned in the QueueMessageList array when calling Peek Messages on a Queue",
+ "type": "object",
+ "required": [
+ "MessageId",
+ "InsertionTime",
+ "ExpirationTime",
+ "DequeueCount",
+ "MessageText"
+ ],
+ "properties": {
+ "MessageId": {
+ "type": "string",
+ "description": "The Id of the Message."
+ },
+ "InsertionTime": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time the Message was inserted into the Queue."
+ },
+ "ExpirationTime": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time that the Message will expire and be automatically deleted."
+ },
+ "DequeueCount": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The number of times the message has been dequeued."
+ },
+ "MessageText": {
+ "type": "string",
+ "description": "The content of the Message."
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "QueueMessage"
+ }
+ },
+ "EnqueuedMessage": {
+ "description": "The object returned in the QueueMessageList array when calling Put Message on a Queue",
+ "type": "object",
+ "required": [
+ "MessageId",
+ "InsertionTime",
+ "ExpirationTime",
+ "PopReceipt",
+ "TimeNextVisible"
+ ],
+ "properties": {
+ "MessageId": {
+ "type": "string",
+ "description": "The Id of the Message."
+ },
+ "InsertionTime": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time the Message was inserted into the Queue."
+ },
+ "ExpirationTime": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time that the Message will expire and be automatically deleted."
+ },
+ "PopReceipt": {
+ "type": "string",
+ "description": "This value is required to delete the Message. If deletion fails using this popreceipt then the message has been dequeued by another client."
+ },
+ "TimeNextVisible": {
+ "type": "string",
+ "format": "date-time-rfc1123",
+ "description": "The time that the message will again become visible in the Queue."
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "QueueMessage"
+ }
+ },
+ "DequeuedMessagesList": {
+ "description": "The object returned when calling Get Messages on a Queue",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/DequeuedMessageItem",
+ "xml": {
+ "name": "QueueMessage"
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "QueueMessagesList"
+ }
+ },
+ "PeekedMessagesList": {
+ "description": "The object returned when calling Peek Messages on a Queue",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PeekedMessageItem",
+ "xml": {
+ "name": "QueueMessage"
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "QueueMessagesList"
+ }
+ },
+ "EnqueuedMessageList": {
+ "description": "The object returned when calling Put Message on a Queue",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/EnqueuedMessage",
+ "xml": {
+ "name": "QueueMessage"
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "QueueMessagesList"
+ }
+ },
+ "RetentionPolicy": {
+ "description": "the retention policy",
+ "type": "object",
+ "required": [
+ "Enabled"
+ ],
+ "properties": {
+ "Enabled": {
+ "description": "Indicates whether a retention policy is enabled for the storage service",
+ "type": "boolean"
+ },
+ "Days": {
+ "description": "Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted",
+ "type": "integer",
+ "minimum": 1
+ }
+ }
+ },
+ "SignedIdentifier": {
+ "description": "signed identifier",
+ "type": "object",
+ "required": [
+ "Id",
+ "AccessPolicy"
+ ],
+ "properties": {
+ "Id": {
+ "type": "string",
+ "description": "a unique id"
+ },
+ "AccessPolicy": {
+ "description": "The access policy",
+ "$ref": "#/definitions/AccessPolicy"
+ }
+ }
+ },
+ "SignedIdentifiers": {
+ "description": "a collection of signed identifiers",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SignedIdentifier",
+ "xml": {
+ "name": "SignedIdentifier"
+ }
+ },
+ "xml": {
+ "wrapped": true,
+ "name": "SignedIdentifiers"
+ }
+ },
+ "StorageServiceProperties": {
+ "description": "Storage Service Properties.",
+ "type": "object",
+ "properties": {
+ "Logging": {
+ "description": "Azure Analytics Logging settings",
+ "$ref": "#/definitions/Logging"
+ },
+ "HourMetrics": {
+ "description": "A summary of request statistics grouped by API in hourly aggregates for queues",
+ "$ref": "#/definitions/Metrics"
+ },
+ "MinuteMetrics": {
+ "description": "a summary of request statistics grouped by API in minute aggregates for queues",
+ "$ref": "#/definitions/Metrics"
+ },
+ "Cors": {
+ "description": "The set of CORS rules.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/CorsRule",
+ "xml": {
+ "name": "CorsRule"
+ }
+ },
+ "xml": {
+ "wrapped": true
+ }
+ }
+ }
+ },
+ "StorageServiceStats": {
+ "description": "Stats for the storage service.",
+ "type": "object",
+ "properties": {
+ "GeoReplication": {
+ "description": "Geo-Replication information for the Secondary Storage Service",
+ "$ref": "#/definitions/GeoReplication"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "Url": {
+ "name": "url",
+ "description": "The URL of the service account, queue or message that is the targe of the desired operation.",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ },
+ "ApiVersionParameter": {
+ "name": "x-ms-version",
+ "x-ms-client-name": "version",
+ "in": "header",
+ "required": true,
+ "type": "string",
+ "description": "Specifies the version of the operation to use for this request.",
+ "enum": [
+ "2018-03-28"
+ ]
+ },
+ "Body": {
+ "name": "body",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "type": "object",
+ "format": "file"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "Initial data"
+ },
+ "QueueAcl": {
+ "name": "queueAcl",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/SignedIdentifiers"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "the acls for the queue"
+ },
+ "ClientRequestId": {
+ "name": "x-ms-client-request-id",
+ "x-ms-client-name": "requestId",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "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."
+ },
+ "ContentLength": {
+ "name": "Content-Length",
+ "in": "header",
+ "required": true,
+ "type": "integer",
+ "format": "int64",
+ "x-ms-parameter-location": "method",
+ "description": "The length of the request."
+ },
+ "ListQueuesInclude": {
+ "name": "include",
+ "in": "query",
+ "required": false,
+ "type": "array",
+ "collectionFormat": "csv",
+ "items": {
+ "type": "string",
+ "enum": [
+ "metadata"
+ ],
+ "x-ms-enum": {
+ "name": "ListQueuesIncludeType",
+ "modelAsString": false
+ }
+ },
+ "x-ms-parameter-location": "method",
+ "description": "Include this parameter to specify that the queues's metadata be returned as part of the response body."
+ },
+ "Marker": {
+ "name": "marker",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "A string value that identifies the portion of the list of queues to be returned with the next listing operation. The operation returns the NextMarker value within the response body if the listing operation did not return all queues remaining to be listed with the current page. The NextMarker value can be used as the value for the marker parameter in a subsequent call to request the next page of list items. The marker value is opaque to the client.",
+ "x-ms-parameter-location": "method"
+ },
+ "MaxResults": {
+ "name": "maxresults",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": 1,
+ "x-ms-parameter-location": "method",
+ "description": "Specifies the maximum number of queues to return. If the request does not specify maxresults, or specifies a value greater than 5000, the server will return up to 5000 items. Note that if the listing operation crosses a partition boundary, then the service will return a continuation token for retrieving the remainder of the results. For this reason, it is possible that the service will return fewer results than specified by maxresults, or than the default of 5000."
+ },
+ "MessageId": {
+ "name": "messageid",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "The container name."
+ },
+ "MessageTTL": {
+ "name": "messagettl",
+ "x-ms-client-name": "MessageTimeToLive",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": -1,
+ "x-ms-parameter-location": "method",
+ "description": "Optional. Specifies the time-to-live interval for the message, in seconds. Prior to version 2017-07-29, the maximum time-to-live allowed is 7 days. For version 2017-07-29 or later, the maximum time-to-live can be any positive number, as well as -1 indicating that the message does not expire. If this parameter is omitted, the default time-to-live is 7 days."
+ },
+ "Metadata": {
+ "name": "x-ms-meta",
+ "x-ms-client-name": "metadata",
+ "in": "header",
+ "required": false,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "Optional. Include this parameter to specify that the queue's metadata be returned as part of the response body. Note that metadata requested with this parameter must be stored in accordance with the naming restrictions imposed by the 2009-09-19 version of the Queue service. Beginning with this version, all metadata names must adhere to the naming conventions for C# identifiers.",
+ "x-ms-header-collection-prefix": "x-ms-meta-"
+ },
+ "NumOfMessages": {
+ "name": "numofmessages",
+ "x-ms-client-name": "numberOfMessages",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": 1,
+ "x-ms-parameter-location": "method",
+ "description": "Optional. A nonzero integer value that specifies the number of messages to retrieve from the queue, up to a maximum of 32. If fewer are visible, the visible messages are returned. By default, a single message is retrieved from the queue with this operation."
+ },
+ "PopReceipt": {
+ "name": "popreceipt",
+ "x-ms-client-name": "popReceipt",
+ "in": "query",
+ "required": true,
+ "x-ms-parameter-location": "method",
+ "description": "Required. Specifies the valid pop receipt value returned from an earlier call to the Get Messages or Update Message operation.",
+ "type": "string"
+ },
+ "Prefix": {
+ "name": "prefix",
+ "in": "query",
+ "required": false,
+ "type": "string",
+ "description": "Filters the results to return only queues whose name begins with the specified prefix.",
+ "x-ms-parameter-location": "method"
+ },
+ "QueueMessage": {
+ "name": "QueueMessage",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/QueueMessage"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "A Message object which can be stored in a Queue"
+ },
+ "QueueName": {
+ "name": "queueName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method",
+ "description": "The queue name."
+ },
+ "StorageServiceProperties": {
+ "name": "StorageServiceProperties",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/StorageServiceProperties"
+ },
+ "x-ms-parameter-location": "method",
+ "description": "The StorageService properties."
+ },
+ "Timeout": {
+ "name": "timeout",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": 0,
+ "x-ms-parameter-location": "method",
+ "description": "The The timeout parameter is expressed in seconds. For more information, see Setting Timeouts for Queue Service Operations."
+ },
+ "VisibilityTimeout": {
+ "name": "visibilitytimeout",
+ "in": "query",
+ "required": false,
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 604800,
+ "x-ms-parameter-location": "method",
+ "description": "Optional. Specifies the new visibility timeout value, in seconds, relative to server time. The default value is 30 seconds. A specified value must be larger than or equal to 1 second, and cannot be larger than 7 days, or larger than 2 hours on REST protocol versions prior to version 2011-08-18. The visibility timeout of a message can be set to a value later than the expiry time."
+ },
+ "VisibilityTimeoutRequired": {
+ "name": "visibilitytimeout",
+ "in": "query",
+ "required": true,
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 604800,
+ "x-ms-parameter-location": "method",
+ "description": "Optional. Specifies the new visibility timeout value, in seconds, relative to server time. The default value is 30 seconds. A specified value must be larger than or equal to 1 second, and cannot be larger than 7 days, or larger than 2 hours on REST protocol versions prior to version 2011-08-18. The visibility timeout of a message can be set to a value later than the expiry time."
+ }
+ }
+}
\ No newline at end of file
diff --git a/sdk/storage/storage-queue/test/retrypolicy.spec.ts b/sdk/storage/storage-queue/test/retrypolicy.spec.ts
index 6658521a40d5..d659df9f50b9 100644
--- a/sdk/storage/storage-queue/test/retrypolicy.spec.ts
+++ b/sdk/storage/storage-queue/test/retrypolicy.spec.ts
@@ -1,4 +1,4 @@
-import { URLBuilder } from "@azure/ms-rest-js";
+import { URLBuilder } from "@azure/core-http";
import * as assert from "assert";
import { QueueClient, RestError, newPipeline } from "../src";
import { Pipeline } from "../src/Pipeline";