From f66cc924dab8df2efc9dcd0d704f41cd4ef49a3d Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik <41709775+kpajdzik@users.noreply.github.com> Date: Tue, 9 Apr 2019 13:16:41 -0700 Subject: [PATCH] Generate @azure/arm-servicebus package (#2100) * Generate @azure/arm-servicebus package * Add src directory * Bump the version * Bump the version --- packages/@azure/arm-servicebus/LICENSE.txt | 2 +- packages/@azure/arm-servicebus/README.md | 11 +- packages/@azure/arm-servicebus/package.json | 12 +- .../@azure/arm-servicebus/rollup.config.js | 22 +- .../models/disasterRecoveryConfigsMappers.ts | 49 +- .../{lib => src}/models/eventHubsMappers.ts | 41 +- .../{lib => src}/models/index.ts | 1119 +++++++---------- .../{lib => src}/models/mappers.ts | 110 +- .../models/migrationConfigsMappers.ts | 43 +- .../{lib => src}/models/namespacesMappers.ts | 53 +- .../{lib => src}/models/operationsMappers.ts | 11 +- .../{lib => src}/models/parameters.ts | 0 ...remiumMessagingRegionsOperationsMappers.ts | 47 +- .../{lib => src}/models/queuesMappers.ts | 51 +- .../{lib => src}/models/regionsMappers.ts | 47 +- .../{lib => src}/models/rulesMappers.ts | 45 +- .../models/subscriptionsMappers.ts | 45 +- .../{lib => src}/models/topicsMappers.ts | 49 +- .../operations/disasterRecoveryConfigs.ts | 14 +- .../{lib => src}/operations/eventHubs.ts | 0 .../{lib => src}/operations/index.ts | 0 .../operations/migrationConfigs.ts | 6 +- .../{lib => src}/operations/namespaces.ts | 155 ++- .../{lib => src}/operations/operations.ts | 0 .../premiumMessagingRegionsOperations.ts | 0 .../{lib => src}/operations/queues.ts | 30 +- .../{lib => src}/operations/regions.ts | 0 .../{lib => src}/operations/rules.ts | 0 .../{lib => src}/operations/subscriptions.ts | 0 .../{lib => src}/operations/topics.ts | 32 +- .../serviceBusManagementClient.ts | 0 .../serviceBusManagementClientContext.ts | 2 +- packages/@azure/arm-servicebus/tsconfig.json | 2 +- 33 files changed, 1043 insertions(+), 955 deletions(-) rename packages/@azure/arm-servicebus/{lib => src}/models/disasterRecoveryConfigsMappers.ts (82%) rename packages/@azure/arm-servicebus/{lib => src}/models/eventHubsMappers.ts (80%) rename packages/@azure/arm-servicebus/{lib => src}/models/index.ts (64%) rename packages/@azure/arm-servicebus/{lib => src}/models/mappers.ts (94%) rename packages/@azure/arm-servicebus/{lib => src}/models/migrationConfigsMappers.ts (81%) rename packages/@azure/arm-servicebus/{lib => src}/models/namespacesMappers.ts (83%) rename packages/@azure/arm-servicebus/{lib => src}/models/operationsMappers.ts (76%) rename packages/@azure/arm-servicebus/{lib => src}/models/parameters.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/models/premiumMessagingRegionsOperationsMappers.ts (80%) rename packages/@azure/arm-servicebus/{lib => src}/models/queuesMappers.ts (81%) rename packages/@azure/arm-servicebus/{lib => src}/models/regionsMappers.ts (80%) rename packages/@azure/arm-servicebus/{lib => src}/models/rulesMappers.ts (80%) rename packages/@azure/arm-servicebus/{lib => src}/models/subscriptionsMappers.ts (80%) rename packages/@azure/arm-servicebus/{lib => src}/models/topicsMappers.ts (81%) rename packages/@azure/arm-servicebus/{lib => src}/operations/disasterRecoveryConfigs.ts (98%) rename packages/@azure/arm-servicebus/{lib => src}/operations/eventHubs.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/operations/index.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/operations/migrationConfigs.ts (99%) rename packages/@azure/arm-servicebus/{lib => src}/operations/namespaces.ts (86%) rename packages/@azure/arm-servicebus/{lib => src}/operations/operations.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/operations/premiumMessagingRegionsOperations.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/operations/queues.ts (97%) rename packages/@azure/arm-servicebus/{lib => src}/operations/regions.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/operations/rules.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/operations/subscriptions.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/operations/topics.ts (96%) rename packages/@azure/arm-servicebus/{lib => src}/serviceBusManagementClient.ts (100%) rename packages/@azure/arm-servicebus/{lib => src}/serviceBusManagementClientContext.ts (98%) diff --git a/packages/@azure/arm-servicebus/LICENSE.txt b/packages/@azure/arm-servicebus/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-servicebus/LICENSE.txt +++ b/packages/@azure/arm-servicebus/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/arm-servicebus/README.md b/packages/@azure/arm-servicebus/README.md index 4c1e4bdb2dc5..870e40706c60 100644 --- a/packages/@azure/arm-servicebus/README.md +++ b/packages/@azure/arm-servicebus/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for ServiceBusManagementClient. ### How to Install -``` +```bash npm install @azure/arm-servicebus ``` @@ -19,13 +19,13 @@ npm install @azure/arm-servicebus ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-servicebus%2FREADME.png) diff --git a/packages/@azure/arm-servicebus/package.json b/packages/@azure/arm-servicebus/package.json index 3d15625c1c55..89590f01d81c 100644 --- a/packages/@azure/arm-servicebus/package.json +++ b/packages/@azure/arm-servicebus/package.json @@ -2,10 +2,10 @@ "name": "@azure/arm-servicebus", "author": "Microsoft Corporation", "description": "ServiceBusManagementClient Library with typescript type definitions for node.js and browser.", - "version": "3.1.0", + "version": "3.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-servicebus", @@ -42,7 +43,8 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "lib/**/*.ts", + "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/packages/@azure/arm-servicebus/rollup.config.js b/packages/@azure/arm-servicebus/rollup.config.js index 1a19480dc1a0..4f5c67554fcb 100644 --- a/packages/@azure/arm-servicebus/rollup.config.js +++ b/packages/@azure/arm-servicebus/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/serviceBusManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/serviceBusManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-servicebus.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * 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. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/packages/@azure/arm-servicebus/lib/models/disasterRecoveryConfigsMappers.ts b/packages/@azure/arm-servicebus/src/models/disasterRecoveryConfigsMappers.ts similarity index 82% rename from packages/@azure/arm-servicebus/lib/models/disasterRecoveryConfigsMappers.ts rename to packages/@azure/arm-servicebus/src/models/disasterRecoveryConfigsMappers.ts index d5fcdad27398..4d8031905fed 100644 --- a/packages/@azure/arm-servicebus/lib/models/disasterRecoveryConfigsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/disasterRecoveryConfigsMappers.ts @@ -1,43 +1,44 @@ /* * 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 { + AccessKeys, + Action, + ArmDisasterRecovery, + ArmDisasterRecoveryListResult, + BaseResource, + CaptureDescription, CheckNameAvailability, CheckNameAvailabilityResult, + CorrelationFilter, + Destination, ErrorResponse, - ArmDisasterRecoveryListResult, - ArmDisasterRecovery, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, Resource, - BaseResource, - SBAuthorizationRuleListResult, - SBAuthorizationRule, - AccessKeys, - TrackedResource, ResourceNamespacePatch, + Rule, + SBAuthorizationRule, + SBAuthorizationRuleListResult, SBNamespace, - SBSku, SBNamespaceUpdateParameters, SBQueue, - MessageCountDetails, - SBTopic, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, SqlFilter, - CorrelationFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - Eventhub, - CaptureDescription, - Destination, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/eventHubsMappers.ts b/packages/@azure/arm-servicebus/src/models/eventHubsMappers.ts similarity index 80% rename from packages/@azure/arm-servicebus/lib/models/eventHubsMappers.ts rename to packages/@azure/arm-servicebus/src/models/eventHubsMappers.ts index 52aad1ae182b..e46a707ff34d 100644 --- a/packages/@azure/arm-servicebus/lib/models/eventHubsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/eventHubsMappers.ts @@ -1,39 +1,40 @@ /* * 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 { - EventHubListResult, - Eventhub, - Resource, + Action, + ArmDisasterRecovery, BaseResource, CaptureDescription, + CorrelationFilter, Destination, ErrorResponse, - TrackedResource, + Eventhub, + EventHubListResult, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, + Resource, ResourceNamespacePatch, + Rule, + SBAuthorizationRule, SBNamespace, - SBSku, SBNamespaceUpdateParameters, - SBAuthorizationRule, SBQueue, - MessageCountDetails, - SBTopic, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, SqlFilter, - CorrelationFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/index.ts b/packages/@azure/arm-servicebus/src/models/index.ts similarity index 64% rename from packages/@azure/arm-servicebus/lib/models/index.ts rename to packages/@azure/arm-servicebus/src/models/index.ts index f41acabac9df..61b634f09ef6 100644 --- a/packages/@azure/arm-servicebus/lib/models/index.ts +++ b/packages/@azure/arm-servicebus/src/models/index.ts @@ -1,11 +1,9 @@ /* * 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 { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,729 +11,569 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Resource. * The Resource definition for other than namespace. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing TrackedResource. * The Resource definition. - * - * @extends Resource */ export interface TrackedResource extends Resource { /** - * @member {string} location The Geo-location where the resource lives + * The Geo-location where the resource lives */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing ResourceNamespacePatch. * The Resource definition. - * - * @extends Resource */ export interface ResourceNamespacePatch extends Resource { /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing SBSku. * SKU of the namespace. - * */ export interface SBSku { /** - * @member {SkuName} name Name of this SKU. Possible values include: 'Basic', - * 'Standard', 'Premium' + * Name of this SKU. Possible values include: 'Basic', 'Standard', 'Premium' */ name: SkuName; /** - * @member {SkuTier} [tier] The billing tier of this particular SKU. Possible - * values include: 'Basic', 'Standard', 'Premium' + * The billing tier of this particular SKU. Possible values include: 'Basic', 'Standard', + * 'Premium' */ tier?: SkuTier; /** - * @member {number} [capacity] The specified messaging units for the tier. - * For Premium tier, capacity are 1,2 and 4. + * The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4. */ capacity?: number; } /** - * @interface - * An interface representing SBNamespace. * Description of a namespace resource. - * - * @extends TrackedResource */ export interface SBNamespace extends TrackedResource { /** - * @member {SBSku} [sku] Porperties of Sku + * Properties of Sku */ sku?: SBSku; /** - * @member {string} [provisioningState] Provisioning state of the namespace. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Provisioning state of the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {Date} [createdAt] The time the namespace was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * Service Bus operations. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Endpoint you can use to perform Service Bus operations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceBusEndpoint?: string; /** - * @member {string} [metricId] Identifier for Azure Insights metrics - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Identifier for Azure Insights metrics + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly metricId?: string; } /** - * @interface - * An interface representing SBNamespaceUpdateParameters. * Description of a namespace resource. - * - * @extends ResourceNamespacePatch */ export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { /** - * @member {SBSku} [sku] Porperties of Sku + * Properties of Sku */ sku?: SBSku; /** - * @member {string} [provisioningState] Provisioning state of the namespace. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Provisioning state of the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {Date} [createdAt] The time the namespace was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the namespace was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * Service Bus operations. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Endpoint you can use to perform Service Bus operations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceBusEndpoint?: string; /** - * @member {string} [metricId] Identifier for Azure Insights metrics - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Identifier for Azure Insights metrics + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly metricId?: string; } /** - * @interface - * An interface representing SBNamespaceMigrate. * Namespace Migrate Object - * */ export interface SBNamespaceMigrate { /** - * @member {NameSpaceType} targetNamespaceType Type of namespaces. Possible - * values include: 'Messaging', 'NotificationHub', 'Mixed', 'EventHub', - * 'Relay' + * Type of namespaces. Possible values include: 'Messaging', 'NotificationHub', 'Mixed', + * 'EventHub', 'Relay' */ targetNamespaceType: NameSpaceType; } /** - * @interface - * An interface representing SBAuthorizationRule. * Description of a namespace authorization rule. - * - * @extends Resource */ export interface SBAuthorizationRule extends Resource { /** - * @member {AccessRights[]} rights The rights associated with the rule. + * The rights associated with the rule. */ rights: AccessRights[]; } /** - * @interface - * An interface representing AuthorizationRuleProperties. * AuthorizationRule properties. - * */ export interface AuthorizationRuleProperties { /** - * @member {AccessRights[]} rights The rights associated with the rule. + * The rights associated with the rule. */ rights: AccessRights[]; } /** - * @interface - * An interface representing AccessKeys. * Namespace/ServiceBus Connection String - * */ export interface AccessKeys { /** - * @member {string} [primaryConnectionString] Primary connection string of - * the created namespace authorization rule. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Primary connection string of the created namespace authorization rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly primaryConnectionString?: string; /** - * @member {string} [secondaryConnectionString] Secondary connection string - * of the created namespace authorization rule. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Secondary connection string of the created namespace authorization rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly secondaryConnectionString?: string; /** - * @member {string} [aliasPrimaryConnectionString] Primary connection string - * of the alias if GEO DR is enabled - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Primary connection string of the alias if GEO DR is enabled + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly aliasPrimaryConnectionString?: string; /** - * @member {string} [aliasSecondaryConnectionString] Secondary connection - * string of the alias if GEO DR is enabled - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Secondary connection string of the alias if GEO DR is enabled + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly aliasSecondaryConnectionString?: string; /** - * @member {string} [primaryKey] A base64-encoded 256-bit primary key for - * signing and validating the SAS token. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly primaryKey?: string; /** - * @member {string} [secondaryKey] A base64-encoded 256-bit primary key for - * signing and validating the SAS token. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly secondaryKey?: string; /** - * @member {string} [keyName] A string that describes the authorization rule. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A string that describes the authorization rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly keyName?: string; } /** - * @interface - * An interface representing RegenerateAccessKeyParameters. - * Parameters supplied to the Regenerate Authorization Rule operation, - * specifies which key neeeds to be reset. - * + * Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to + * be reset. */ export interface RegenerateAccessKeyParameters { /** - * @member {KeyType} keyType The access key to regenerate. Possible values - * include: 'PrimaryKey', 'SecondaryKey' + * The access key to regenerate. Possible values include: 'PrimaryKey', 'SecondaryKey' */ keyType: KeyType; /** - * @member {string} [key] Optional, if the key value provided, is reset for - * KeyType value or autogenerate Key value set for keyType + * Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set + * for keyType */ key?: string; } /** - * @interface - * An interface representing MessageCountDetails. * Message Count Details. - * */ export interface MessageCountDetails { /** - * @member {number} [activeMessageCount] Number of active messages in the - * queue, topic, or subscription. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of active messages in the queue, topic, or subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly activeMessageCount?: number; /** - * @member {number} [deadLetterMessageCount] Number of messages that are dead - * lettered. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of messages that are dead lettered. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deadLetterMessageCount?: number; /** - * @member {number} [scheduledMessageCount] Number of scheduled messages. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of scheduled messages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly scheduledMessageCount?: number; /** - * @member {number} [transferMessageCount] Number of messages transferred to - * another queue, topic, or subscription. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of messages transferred to another queue, topic, or subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly transferMessageCount?: number; /** - * @member {number} [transferDeadLetterMessageCount] Number of messages - * transferred into dead letters. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of messages transferred into dead letters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly transferDeadLetterMessageCount?: number; } /** - * @interface - * An interface representing SBQueue. * Description of queue Resource. - * - * @extends Resource */ export interface SBQueue extends Resource { /** - * @member {MessageCountDetails} [countDetails] Message Count Details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Message Count Details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly countDetails?: MessageCountDetails; /** - * @member {Date} [createdAt] The exact time the message was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The exact time the message was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The exact time the message was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {Date} [accessedAt] Last time a message was sent, or the last time - * there was a receive request to this queue. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Last time a message was sent, or the last time there was a receive request to this queue. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accessedAt?: Date; /** - * @member {number} [sizeInBytes] The size of the queue, in bytes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The size of the queue, in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly sizeInBytes?: number; /** - * @member {number} [messageCount] The number of messages in the queue. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The number of messages in the queue. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly messageCount?: number; /** - * @member {string} [lockDuration] ISO 8601 timespan duration of a peek-lock; - * that is, the amount of time that the message is locked for other - * receivers. The maximum value for LockDuration is 5 minutes; the default - * value is 1 minute. + * ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is + * locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value + * is 1 minute. */ lockDuration?: string; /** - * @member {number} [maxSizeInMegabytes] The maximum size of the queue in - * megabytes, which is the size of memory allocated for the queue. Default is - * 1024. + * The maximum size of the queue in megabytes, which is the size of memory allocated for the + * queue. Default is 1024. */ maxSizeInMegabytes?: number; /** - * @member {boolean} [requiresDuplicateDetection] A value indicating if this - * queue requires duplicate detection. + * A value indicating if this queue requires duplicate detection. */ requiresDuplicateDetection?: boolean; /** - * @member {boolean} [requiresSession] A value that indicates whether the - * queue supports the concept of sessions. + * A value that indicates whether the queue supports the concept of sessions. */ requiresSession?: boolean; /** - * @member {string} [defaultMessageTimeToLive] ISO 8601 default message - * timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is - * the default value used when TimeToLive is not set on a message itself. + * ISO 8601 default message timespan to live value. This is the duration after which the message + * expires, starting from when the message is sent to Service Bus. This is the default value used + * when TimeToLive is not set on a message itself. */ defaultMessageTimeToLive?: string; /** - * @member {boolean} [deadLetteringOnMessageExpiration] A value that - * indicates whether this queue has dead letter support when a message - * expires. + * A value that indicates whether this queue has dead letter support when a message expires. */ deadLetteringOnMessageExpiration?: boolean; /** - * @member {string} [duplicateDetectionHistoryTimeWindow] ISO 8601 timeSpan - * structure that defines the duration of the duplicate detection history. - * The default value is 10 minutes. + * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. */ duplicateDetectionHistoryTimeWindow?: string; /** - * @member {number} [maxDeliveryCount] The maximum delivery count. A message - * is automatically deadlettered after this number of deliveries. default - * value is 10. + * The maximum delivery count. A message is automatically deadlettered after this number of + * deliveries. default value is 10. */ maxDeliveryCount?: number; /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of a messaging entity. Possible values include: 'Active', - * 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', - * 'Deleting', 'Renaming', 'Unknown' + * Enumerates the possible values for the status of a messaging entity. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' */ status?: EntityStatus; /** - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. + * Value that indicates whether server-side batched operations are enabled. */ enableBatchedOperations?: boolean; /** - * @member {string} [autoDeleteOnIdle] ISO 8061 timeSpan idle interval after - * which the queue is automatically deleted. The minimum duration is 5 - * minutes. + * ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum + * duration is 5 minutes. */ autoDeleteOnIdle?: string; /** - * @member {boolean} [enablePartitioning] A value that indicates whether the - * queue is to be partitioned across multiple message brokers. + * A value that indicates whether the queue is to be partitioned across multiple message brokers. */ enablePartitioning?: boolean; /** - * @member {boolean} [enableExpress] A value that indicates whether Express - * Entities are enabled. An express queue holds a message in memory - * temporarily before writing it to persistent storage. + * A value that indicates whether Express Entities are enabled. An express queue holds a message + * in memory temporarily before writing it to persistent storage. */ enableExpress?: boolean; /** - * @member {string} [forwardTo] Queue/Topic name to forward the messages + * Queue/Topic name to forward the messages */ forwardTo?: string; /** - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to - * forward the Dead Letter message + * Queue/Topic name to forward the Dead Letter message */ forwardDeadLetteredMessagesTo?: string; } /** - * @interface - * An interface representing SBTopic. * Description of topic resource. - * - * @extends Resource */ export interface SBTopic extends Resource { /** - * @member {number} [sizeInBytes] Size of the topic, in bytes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Size of the topic, in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly sizeInBytes?: number; /** - * @member {Date} [createdAt] Exact time the message was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Exact time the message was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The exact time the message was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {Date} [accessedAt] Last time the message was sent, or a request - * was received, for this topic. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Last time the message was sent, or a request was received, for this topic. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accessedAt?: Date; /** - * @member {number} [subscriptionCount] Number of subscriptions. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of subscriptions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly subscriptionCount?: number; /** - * @member {MessageCountDetails} [countDetails] Message count deatils - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Message count details + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly countDetails?: MessageCountDetails; /** - * @member {string} [defaultMessageTimeToLive] ISO 8601 Default message - * timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is - * the default value used when TimeToLive is not set on a message itself. + * ISO 8601 Default message timespan to live value. This is the duration after which the message + * expires, starting from when the message is sent to Service Bus. This is the default value used + * when TimeToLive is not set on a message itself. */ defaultMessageTimeToLive?: string; /** - * @member {number} [maxSizeInMegabytes] Maximum size of the topic in - * megabytes, which is the size of the memory allocated for the topic. - * Default is 1024. + * Maximum size of the topic in megabytes, which is the size of the memory allocated for the + * topic. Default is 1024. */ maxSizeInMegabytes?: number; /** - * @member {boolean} [requiresDuplicateDetection] Value indicating if this - * topic requires duplicate detection. + * Value indicating if this topic requires duplicate detection. */ requiresDuplicateDetection?: boolean; /** - * @member {string} [duplicateDetectionHistoryTimeWindow] ISO8601 timespan - * structure that defines the duration of the duplicate detection history. - * The default value is 10 minutes. + * ISO8601 timespan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. */ duplicateDetectionHistoryTimeWindow?: string; /** - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. + * Value that indicates whether server-side batched operations are enabled. */ enableBatchedOperations?: boolean; /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of a messaging entity. Possible values include: 'Active', - * 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', - * 'Deleting', 'Renaming', 'Unknown' + * Enumerates the possible values for the status of a messaging entity. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' */ status?: EntityStatus; /** - * @member {boolean} [supportOrdering] Value that indicates whether the topic - * supports ordering. + * Value that indicates whether the topic supports ordering. */ supportOrdering?: boolean; /** - * @member {string} [autoDeleteOnIdle] ISO 8601 timespan idle interval after - * which the topic is automatically deleted. The minimum duration is 5 - * minutes. + * ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum + * duration is 5 minutes. */ autoDeleteOnIdle?: string; /** - * @member {boolean} [enablePartitioning] Value that indicates whether the - * topic to be partitioned across multiple message brokers is enabled. + * Value that indicates whether the topic to be partitioned across multiple message brokers is + * enabled. */ enablePartitioning?: boolean; /** - * @member {boolean} [enableExpress] Value that indicates whether Express - * Entities are enabled. An express topic holds a message in memory - * temporarily before writing it to persistent storage. + * Value that indicates whether Express Entities are enabled. An express topic holds a message in + * memory temporarily before writing it to persistent storage. */ enableExpress?: boolean; } /** - * @interface - * An interface representing SBSubscription. * Description of subscription resource. - * - * @extends Resource */ export interface SBSubscription extends Resource { /** - * @member {number} [messageCount] Number of messages. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of messages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly messageCount?: number; /** - * @member {Date} [createdAt] Exact time the message was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Exact time the message was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [accessedAt] Last time there was a receive request to this - * subscription. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Last time there was a receive request to this subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accessedAt?: Date; /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The exact time the message was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {MessageCountDetails} [countDetails] Message count details - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Message count details + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly countDetails?: MessageCountDetails; /** - * @member {string} [lockDuration] ISO 8061 lock duration timespan for the - * subscription. The default value is 1 minute. + * ISO 8061 lock duration timespan for the subscription. The default value is 1 minute. */ lockDuration?: string; /** - * @member {boolean} [requiresSession] Value indicating if a subscription - * supports the concept of sessions. + * Value indicating if a subscription supports the concept of sessions. */ requiresSession?: boolean; /** - * @member {string} [defaultMessageTimeToLive] ISO 8061 Default message - * timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is - * the default value used when TimeToLive is not set on a message itself. + * ISO 8061 Default message timespan to live value. This is the duration after which the message + * expires, starting from when the message is sent to Service Bus. This is the default value used + * when TimeToLive is not set on a message itself. */ defaultMessageTimeToLive?: string; /** - * @member {boolean} [deadLetteringOnFilterEvaluationExceptions] Value that - * indicates whether a subscription has dead letter support on filter - * evaluation exceptions. + * Value that indicates whether a subscription has dead letter support on filter evaluation + * exceptions. */ deadLetteringOnFilterEvaluationExceptions?: boolean; /** - * @member {boolean} [deadLetteringOnMessageExpiration] Value that indicates - * whether a subscription has dead letter support when a message expires. + * Value that indicates whether a subscription has dead letter support when a message expires. */ deadLetteringOnMessageExpiration?: boolean; /** - * @member {string} [duplicateDetectionHistoryTimeWindow] ISO 8601 timeSpan - * structure that defines the duration of the duplicate detection history. - * The default value is 10 minutes. + * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. */ duplicateDetectionHistoryTimeWindow?: string; /** - * @member {number} [maxDeliveryCount] Number of maximum deliveries. + * Number of maximum deliveries. */ maxDeliveryCount?: number; /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of a messaging entity. Possible values include: 'Active', - * 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', - * 'Deleting', 'Renaming', 'Unknown' + * Enumerates the possible values for the status of a messaging entity. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' */ status?: EntityStatus; /** - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. + * Value that indicates whether server-side batched operations are enabled. */ enableBatchedOperations?: boolean; /** - * @member {string} [autoDeleteOnIdle] ISO 8061 timeSpan idle interval after - * which the topic is automatically deleted. The minimum duration is 5 - * minutes. + * ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum + * duration is 5 minutes. */ autoDeleteOnIdle?: string; /** - * @member {string} [forwardTo] Queue/Topic name to forward the messages + * Queue/Topic name to forward the messages */ forwardTo?: string; /** - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to - * forward the Dead Letter message + * Queue/Topic name to forward the Dead Letter message */ forwardDeadLetteredMessagesTo?: string; } /** - * @interface - * An interface representing CheckNameAvailability. * Description of a Check Name availability request properties. - * */ export interface CheckNameAvailability { /** - * @member {string} name The Name to check the namespce name availability and - * The namespace name can contain only letters, numbers, and hyphens. The - * namespace must start with a letter, and it must end with a letter or - * number. + * The Name to check the namespace name availability and The namespace name can contain only + * letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a + * letter or number. */ name: string; } /** - * @interface - * An interface representing CheckNameAvailabilityResult. * Description of a Check Name availability request properties. - * */ export interface CheckNameAvailabilityResult { /** - * @member {string} [message] The detailed info regarding the reason - * associated with the namespace. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The detailed info regarding the reason associated with the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * @member {boolean} [nameAvailable] Value indicating namespace is - * availability, true if the namespace is available; otherwise, false. + * Value indicating namespace is availability, true if the namespace is available; otherwise, + * false. */ nameAvailable?: boolean; /** - * @member {UnavailableReason} [reason] The reason for unavailability of a - * namespace. Possible values include: 'None', 'InvalidName', + * The reason for unavailability of a namespace. Possible values include: 'None', 'InvalidName', * 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', * 'TooManyNamespaceInCurrentSubscription' */ @@ -743,726 +581,616 @@ export interface CheckNameAvailabilityResult { } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft.ServiceBus - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Service provider: Microsoft.ServiceBus + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Invoice, etc. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource on which the operation is performed: Invoice, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation type: Read, write, delete, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operation?: string; } /** - * @interface - * An interface representing Operation. * A ServiceBus REST API operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation name: {provider}/{resource}/{operation} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing ErrorResponse. - * Error reponse indicates ServiceBus service is not able to process the - * incoming request. The reason is provided in the error message. - * + * Error response indicates ServiceBus service is not able to process the incoming request. The + * reason is provided in the error message. */ export interface ErrorResponse { /** - * @member {string} [code] Error code. + * Error code. */ code?: string; /** - * @member {string} [message] Error message indicating why the operation - * failed. + * Error message indicating why the operation failed. */ message?: string; } /** - * @interface - * An interface representing Action. - * Represents the filter actions which are allowed for the transformation of a - * message that have been matched by a filter expression. - * + * Represents the filter actions which are allowed for the transformation of a message that have + * been matched by a filter expression. */ export interface Action { /** - * @member {string} [sqlExpression] SQL expression. e.g. MyProperty='ABC' + * SQL expression. e.g. MyProperty='ABC' */ sqlExpression?: string; /** - * @member {number} [compatibilityLevel] This property is reserved for future - * use. An integer value showing the compatibility level, currently - * hard-coded to 20. + * This property is reserved for future use. An integer value showing the compatibility level, + * currently hard-coded to 20. */ compatibilityLevel?: number; /** - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * Value that indicates whether the rule action requires preprocessing. Default value: true. */ requiresPreprocessing?: boolean; } /** - * @interface - * An interface representing SqlFilter. - * Represents a filter which is a composition of an expression and an action - * that is executed in the pub/sub pipeline. - * + * Represents a filter which is a composition of an expression and an action that is executed in + * the pub/sub pipeline. */ export interface SqlFilter { /** - * @member {string} [sqlExpression] The SQL expression. e.g. MyProperty='ABC' + * The SQL expression. e.g. MyProperty='ABC' */ sqlExpression?: string; /** - * @member {number} [compatibilityLevel] This property is reserved for future - * use. An integer value showing the compatibility level, currently - * hard-coded to 20. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.**. Default value: 20 . + * This property is reserved for future use. An integer value showing the compatibility level, + * currently hard-coded to 20. + * **NOTE: This property will not be serialized. It can only be populated by the server.**. + * Default value: 20. */ readonly compatibilityLevel?: number; /** - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * Value that indicates whether the rule action requires preprocessing. Default value: true. */ requiresPreprocessing?: boolean; } /** - * @interface - * An interface representing CorrelationFilter. * Represents the correlation filter expression. - * */ export interface CorrelationFilter { /** - * @member {{ [propertyName: string]: string }} [properties] dictionary - * object for custom filters + * dictionary object for custom filters */ properties?: { [propertyName: string]: string }; /** - * @member {string} [correlationId] Identifier of the correlation. + * Identifier of the correlation. */ correlationId?: string; /** - * @member {string} [messageId] Identifier of the message. + * Identifier of the message. */ messageId?: string; /** - * @member {string} [to] Address to send to. + * Address to send to. */ to?: string; /** - * @member {string} [replyTo] Address of the queue to reply to. + * Address of the queue to reply to. */ replyTo?: string; /** - * @member {string} [label] Application specific label. + * Application specific label. */ label?: string; /** - * @member {string} [sessionId] Session identifier. + * Session identifier. */ sessionId?: string; /** - * @member {string} [replyToSessionId] Session identifier to reply to. + * Session identifier to reply to. */ replyToSessionId?: string; /** - * @member {string} [contentType] Content type of the message. + * Content type of the message. */ contentType?: string; /** - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * Value that indicates whether the rule action requires preprocessing. Default value: true. */ requiresPreprocessing?: boolean; } /** - * @interface - * An interface representing Rule. * Description of Rule Resource. - * - * @extends Resource */ export interface Rule extends Resource { /** - * @member {Action} [action] Represents the filter actions which are allowed - * for the transformation of a message that have been matched by a filter - * expression. + * Represents the filter actions which are allowed for the transformation of a message that have + * been matched by a filter expression. */ action?: Action; /** - * @member {FilterType} [filterType] Filter type that is evaluated against a - * BrokeredMessage. Possible values include: 'SqlFilter', 'CorrelationFilter' + * Filter type that is evaluated against a BrokeredMessage. Possible values include: 'SqlFilter', + * 'CorrelationFilter' */ filterType?: FilterType; /** - * @member {SqlFilter} [sqlFilter] Properties of sqlFilter + * Properties of sqlFilter */ sqlFilter?: SqlFilter; /** - * @member {CorrelationFilter} [correlationFilter] Properties of - * correlationFilter + * Properties of correlationFilter */ correlationFilter?: CorrelationFilter; } /** - * @interface - * An interface representing SqlRuleAction. - * Represents set of actions written in SQL language-based syntax that is - * performed against a ServiceBus.Messaging.BrokeredMessage - * - * @extends Action + * Represents set of actions written in SQL language-based syntax that is performed against a + * ServiceBus.Messaging.BrokeredMessage */ export interface SqlRuleAction extends Action { } /** - * @interface * An interface representing PremiumMessagingRegionsProperties. */ export interface PremiumMessagingRegionsProperties { /** - * @member {string} [code] Region code - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Region code + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * @member {string} [fullName] Full name of the region - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Full name of the region + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly fullName?: string; } /** - * @interface - * An interface representing PremiumMessagingRegions. * Premium Messaging Region - * - * @extends ResourceNamespacePatch */ export interface PremiumMessagingRegions extends ResourceNamespacePatch { - /** - * @member {PremiumMessagingRegionsProperties} [properties] - */ properties?: PremiumMessagingRegionsProperties; } /** - * @interface - * An interface representing Destination. * Capture storage details for capture description - * */ export interface Destination { /** - * @member {string} [name] Name for capture destination + * Name for capture destination */ name?: string; /** - * @member {string} [storageAccountResourceId] Resource id of the storage - * account to be used to create the blobs + * Resource id of the storage account to be used to create the blobs */ storageAccountResourceId?: string; /** - * @member {string} [blobContainer] Blob container Name + * Blob container Name */ blobContainer?: string; /** - * @member {string} [archiveNameFormat] Blob naming convention for archive, - * e.g. - * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. - * Here all the parameters (Namespace,EventHub .. etc) are mandatory - * irrespective of order + * Blob naming convention for archive, e.g. + * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all + * the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order */ archiveNameFormat?: string; } /** - * @interface - * An interface representing CaptureDescription. * Properties to configure capture description for eventhub - * */ export interface CaptureDescription { /** - * @member {boolean} [enabled] A value that indicates whether capture - * description is enabled. + * A value that indicates whether capture description is enabled. */ enabled?: boolean; /** - * @member {EncodingCaptureDescription} [encoding] Enumerates the possible - * values for the encoding format of capture description. Possible values + * Enumerates the possible values for the encoding format of capture description. Possible values * include: 'Avro', 'AvroDeflate' */ encoding?: EncodingCaptureDescription; /** - * @member {number} [intervalInSeconds] The time window allows you to set the - * frequency with which the capture to Azure Blobs will happen, value should - * between 60 to 900 seconds + * The time window allows you to set the frequency with which the capture to Azure Blobs will + * happen, value should between 60 to 900 seconds */ intervalInSeconds?: number; /** - * @member {number} [sizeLimitInBytes] The size window defines the amount of - * data built up in your Event Hub before an capture operation, value should - * be between 10485760 and 524288000 bytes + * The size window defines the amount of data built up in your Event Hub before an capture + * operation, value should be between 10485760 and 524288000 bytes */ sizeLimitInBytes?: number; /** - * @member {Destination} [destination] Properties of Destination where - * capture will be stored. (Storage Account, Blob Names) + * Properties of Destination where capture will be stored. (Storage Account, Blob Names) */ destination?: Destination; } /** - * @interface - * An interface representing Eventhub. * Single item in List or Get Event Hub operation - * - * @extends Resource */ export interface Eventhub extends Resource { /** - * @member {string[]} [partitionIds] Current number of shards on the Event - * Hub. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Current number of shards on the Event Hub. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly partitionIds?: string[]; /** - * @member {Date} [createdAt] Exact time the Event Hub was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Exact time the Event Hub was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The exact time the message was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly updatedAt?: Date; /** - * @member {number} [messageRetentionInDays] Number of days to retain the - * events for this Event Hub, value should be 1 to 7 days + * Number of days to retain the events for this Event Hub, value should be 1 to 7 days */ messageRetentionInDays?: number; /** - * @member {number} [partitionCount] Number of partitions created for the - * Event Hub, allowed values are from 1 to 32 partitions. + * Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. */ partitionCount?: number; /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of the Event Hub. Possible values include: 'Active', 'Disabled', - * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * Enumerates the possible values for the status of the Event Hub. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', * 'Renaming', 'Unknown' */ status?: EntityStatus; /** - * @member {CaptureDescription} [captureDescription] Properties of capture - * description + * Properties of capture description */ captureDescription?: CaptureDescription; } /** - * @interface - * An interface representing ArmDisasterRecovery. * Single item in List or Get Alias(Disaster Recovery configuration) operation - * - * @extends Resource */ export interface ArmDisasterRecovery extends Resource { /** - * @member {ProvisioningStateDR} [provisioningState] Provisioning state of - * the Alias(Disaster Recovery configuration) - possible values 'Accepted' or - * 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', - * 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' + * or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningStateDR; /** - * @member {number} [pendingReplicationOperationsCount] Number of entities - * pending to be replicated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of entities pending to be replicated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly pendingReplicationOperationsCount?: number; /** - * @member {string} [partnerNamespace] ARM Id of the Primary/Secondary - * eventhub namespace name, which is part of GEO DR pairning + * ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing */ partnerNamespace?: string; /** - * @member {string} [alternateName] Primary/Secondary eventhub namespace - * name, which is part of GEO DR pairning + * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing */ alternateName?: string; /** - * @member {RoleDisasterRecovery} [role] role of namespace in GEO DR - - * possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. - * Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or + * 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly role?: RoleDisasterRecovery; } /** - * @interface - * An interface representing MigrationConfigProperties. * Single item in List or Get Migration Config operation - * - * @extends Resource */ export interface MigrationConfigProperties extends Resource { /** - * @member {string} [provisioningState] Provisioning state of Migration - * Configuration - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Provisioning state of Migration Configuration + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {number} [pendingReplicationOperationsCount] Number of entities - * pending to be replicated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Number of entities pending to be replicated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly pendingReplicationOperationsCount?: number; /** - * @member {string} targetNamespace Existing premium Namespace ARM Id name - * which has no entities, will be used for migration + * Existing premium Namespace ARM Id name which has no entities, will be used for migration */ targetNamespace: string; /** - * @member {string} postMigrationName Name to access Standard Namespace after - * migration + * Name to access Standard Namespace after migration */ postMigrationName: string; /** - * @member {string} [migrationState] State in which Standard to Premium - * Migration is, possible values : Unknown, Reverting, Completing, - * Initiating, Syncing, Active - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * State in which Standard to Premium Migration is, possible values : Unknown, Reverting, + * Completing, Initiating, Syncing, Active + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly migrationState?: string; } /** - * @interface - * An interface representing QueuesListByNamespaceOptionalParams. + * Properties supplied for Subnet + */ +export interface Subnet { + /** + * Resource ID of Virtual Network Subnet + */ + id: string; +} + +/** + * Description of NetWorkRuleSet - IpRules resource. + */ +export interface NWRuleSetIpRules { + /** + * IP Mask + */ + ipMask?: string; + /** + * The IP Filter Action. Possible values include: 'Allow'. Default value: 'Allow'. + */ + action?: NetworkRuleIPAction; +} + +/** + * Description of VirtualNetworkRules - NetworkRules resource. + */ +export interface NWRuleSetVirtualNetworkRules { + /** + * Subnet properties + */ + subnet?: Subnet; + /** + * Value that indicates whether to ignore missing VNet Service Endpoint + */ + ignoreMissingVnetServiceEndpoint?: boolean; +} + +/** + * Description of NetworkRuleSet resource. + */ +export interface NetworkRuleSet extends Resource { + /** + * Default Action for Network Rule Set. Possible values include: 'Allow', 'Deny' + */ + defaultAction?: DefaultAction; + /** + * List VirtualNetwork Rules + */ + virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; + /** + * List of IpRules + */ + ipRules?: NWRuleSetIpRules[]; +} + +/** * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface QueuesListByNamespaceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Skip is only used if a previous operation returned - * a partial result. If a previous response contains a nextLink element, the - * value of the nextLink element will include a skip parameter that specifies - * a starting point to use for subsequent calls. + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ skip?: number; /** - * @member {number} [top] May be used to limit the number of results to the - * most recent N usageDetails. + * May be used to limit the number of results to the most recent N usageDetails. */ top?: number; } /** - * @interface - * An interface representing TopicsListByNamespaceOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface TopicsListByNamespaceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Skip is only used if a previous operation returned - * a partial result. If a previous response contains a nextLink element, the - * value of the nextLink element will include a skip parameter that specifies - * a starting point to use for subsequent calls. + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ skip?: number; /** - * @member {number} [top] May be used to limit the number of results to the - * most recent N usageDetails. + * May be used to limit the number of results to the most recent N usageDetails. */ top?: number; } /** - * @interface - * An interface representing SubscriptionsListByTopicOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface SubscriptionsListByTopicOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Skip is only used if a previous operation returned - * a partial result. If a previous response contains a nextLink element, the - * value of the nextLink element will include a skip parameter that specifies - * a starting point to use for subsequent calls. + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ skip?: number; /** - * @member {number} [top] May be used to limit the number of results to the - * most recent N usageDetails. + * May be used to limit the number of results to the most recent N usageDetails. */ top?: number; } /** - * @interface - * An interface representing RulesListBySubscriptionsOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface RulesListBySubscriptionsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Skip is only used if a previous operation returned - * a partial result. If a previous response contains a nextLink element, the - * value of the nextLink element will include a skip parameter that specifies - * a starting point to use for subsequent calls. + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ skip?: number; /** - * @member {number} [top] May be used to limit the number of results to the - * most recent N usageDetails. + * May be used to limit the number of results to the most recent N usageDetails. */ top?: number; } /** - * @interface * An interface representing ServiceBusManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface ServiceBusManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list ServiceBus operations. It contains a list of - * operations and a URL link to get the next set of results. - * + * Result of the request to list ServiceBus operations. It contains a list of operations and a URL + * link to get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * URL to get the next set of operation list results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the SBNamespaceListResult. * The response of the List Namespace operation. - * * @extends Array */ export interface SBNamespaceListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Namespaces. + * Link to the next set of results. Not empty if Value contains incomplete list of Namespaces. */ nextLink?: string; } /** * @interface - * An interface representing the SBAuthorizationRuleListResult. * The response to the List Namespace operation. - * * @extends Array */ export interface SBAuthorizationRuleListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Authorization Rules. + * Link to the next set of results. Not empty if Value contains incomplete list of Authorization + * Rules. */ nextLink?: string; } /** * @interface - * An interface representing the ArmDisasterRecoveryListResult. * The result of the List Alias(Disaster Recovery configuration) operation. - * * @extends Array */ export interface ArmDisasterRecoveryListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Alias(Disaster Recovery configuration) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster + * Recovery configuration) + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the MigrationConfigListResult. * The result of the List migrationConfigurations operation. - * * @extends Array */ export interface MigrationConfigListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of migrationConfigurations - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link to the next set of results. Not empty if Value contains incomplete list of + * migrationConfigurations + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the SBQueueListResult. * The response to the List Queues operation. - * * @extends Array */ export interface SBQueueListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of queues. + * Link to the next set of results. Not empty if Value contains incomplete list of queues. */ nextLink?: string; } /** * @interface - * An interface representing the SBTopicListResult. * The response to the List Topics operation. - * * @extends Array */ export interface SBTopicListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of topics. + * Link to the next set of results. Not empty if Value contains incomplete list of topics. */ nextLink?: string; } /** * @interface - * An interface representing the SBSubscriptionListResult. * The response to the List Subscriptions operation. - * * @extends Array */ export interface SBSubscriptionListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of subscriptions. + * Link to the next set of results. Not empty if Value contains incomplete list of subscriptions. */ nextLink?: string; } /** * @interface - * An interface representing the RuleListResult. * The response of the List rule operation. - * * @extends Array */ export interface RuleListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of rules + * Link to the next set of results. Not empty if Value contains incomplete list of rules */ nextLink?: string; } /** * @interface - * An interface representing the PremiumMessagingRegionsListResult. * The response of the List PremiumMessagingRegions operation. - * * @extends Array */ export interface PremiumMessagingRegionsListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of PremiumMessagingRegions. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link to the next set of results. Not empty if Value contains incomplete list of + * PremiumMessagingRegions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the EventHubListResult. * The result of the List EventHubs operation. - * * @extends Array */ export interface EventHubListResult extends Array { /** - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of EventHubs. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Link to the next set of results. Not empty if Value contains incomplete list of EventHubs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } @@ -1557,6 +1285,22 @@ export type ProvisioningStateDR = 'Accepted' | 'Succeeded' | 'Failed'; */ export type RoleDisasterRecovery = 'Primary' | 'PrimaryNotReplicating' | 'Secondary'; +/** + * Defines values for NetworkRuleIPAction. + * Possible values include: 'Allow' + * @readonly + * @enum {string} + */ +export type NetworkRuleIPAction = 'Allow'; + +/** + * Defines values for DefaultAction. + * Possible values include: 'Allow', 'Deny' + * @readonly + * @enum {string} + */ +export type DefaultAction = 'Allow' | 'Deny'; + /** * Contains response data for the list operation. */ @@ -1569,6 +1313,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1588,6 +1333,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1607,6 +1353,7 @@ export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilit * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1626,6 +1373,7 @@ export type NamespacesListResponse = SBNamespaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1645,6 +1393,7 @@ export type NamespacesListByResourceGroupResponse = SBNamespaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1664,6 +1413,7 @@ export type NamespacesCreateOrUpdateResponse = SBNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1683,6 +1433,7 @@ export type NamespacesGetResponse = SBNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1702,6 +1453,7 @@ export type NamespacesUpdateResponse = SBNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1721,6 +1473,7 @@ export type NamespacesListAuthorizationRulesResponse = SBAuthorizationRuleListRe * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1740,6 +1493,7 @@ export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1759,6 +1513,7 @@ export type NamespacesGetAuthorizationRuleResponse = SBAuthorizationRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1778,6 +1533,7 @@ export type NamespacesListKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1797,6 +1553,7 @@ export type NamespacesRegenerateKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1804,6 +1561,46 @@ export type NamespacesRegenerateKeysResponse = AccessKeys & { }; }; +/** + * Contains response data for the createOrUpdateNetworkRuleSet operation. + */ +export type NamespacesCreateOrUpdateNetworkRuleSetResponse = NetworkRuleSet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkRuleSet; + }; +}; + +/** + * Contains response data for the getNetworkRuleSet operation. + */ +export type NamespacesGetNetworkRuleSetResponse = NetworkRuleSet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkRuleSet; + }; +}; + /** * Contains response data for the beginCreateOrUpdate operation. */ @@ -1816,6 +1613,7 @@ export type NamespacesBeginCreateOrUpdateResponse = SBNamespace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1835,6 +1633,7 @@ export type NamespacesListNextResponse = SBNamespaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1854,6 +1653,7 @@ export type NamespacesListByResourceGroupNextResponse = SBNamespaceListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1873,6 +1673,7 @@ export type NamespacesListAuthorizationRulesNextResponse = SBAuthorizationRuleLi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1892,6 +1693,7 @@ export type DisasterRecoveryConfigsCheckNameAvailabilityMethodResponse = CheckNa * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1911,6 +1713,7 @@ export type DisasterRecoveryConfigsListResponse = ArmDisasterRecoveryListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1930,6 +1733,7 @@ export type DisasterRecoveryConfigsCreateOrUpdateResponse = ArmDisasterRecovery * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1949,6 +1753,7 @@ export type DisasterRecoveryConfigsGetResponse = ArmDisasterRecovery & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1968,6 +1773,7 @@ export type DisasterRecoveryConfigsListAuthorizationRulesResponse = SBAuthorizat * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1987,6 +1793,7 @@ export type DisasterRecoveryConfigsGetAuthorizationRuleResponse = SBAuthorizatio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2006,6 +1813,7 @@ export type DisasterRecoveryConfigsListKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2025,6 +1833,7 @@ export type DisasterRecoveryConfigsListNextResponse = ArmDisasterRecoveryListRes * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2044,6 +1853,7 @@ export type DisasterRecoveryConfigsListAuthorizationRulesNextResponse = SBAuthor * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2063,6 +1873,7 @@ export type MigrationConfigsListResponse = MigrationConfigListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2082,6 +1893,7 @@ export type MigrationConfigsCreateAndStartMigrationResponse = MigrationConfigPro * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2101,6 +1913,7 @@ export type MigrationConfigsGetResponse = MigrationConfigProperties & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2120,6 +1933,7 @@ export type MigrationConfigsBeginCreateAndStartMigrationResponse = MigrationConf * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2139,6 +1953,7 @@ export type MigrationConfigsListNextResponse = MigrationConfigListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2158,6 +1973,7 @@ export type QueuesListByNamespaceResponse = SBQueueListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2177,6 +1993,7 @@ export type QueuesCreateOrUpdateResponse = SBQueue & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2196,6 +2013,7 @@ export type QueuesGetResponse = SBQueue & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2215,6 +2033,7 @@ export type QueuesListAuthorizationRulesResponse = SBAuthorizationRuleListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2234,6 +2053,7 @@ export type QueuesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2253,6 +2073,7 @@ export type QueuesGetAuthorizationRuleResponse = SBAuthorizationRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2272,6 +2093,7 @@ export type QueuesListKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2291,6 +2113,7 @@ export type QueuesRegenerateKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2310,6 +2133,7 @@ export type QueuesListByNamespaceNextResponse = SBQueueListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2329,6 +2153,7 @@ export type QueuesListAuthorizationRulesNextResponse = SBAuthorizationRuleListRe * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2348,6 +2173,7 @@ export type TopicsListByNamespaceResponse = SBTopicListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2367,6 +2193,7 @@ export type TopicsCreateOrUpdateResponse = SBTopic & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2386,6 +2213,7 @@ export type TopicsGetResponse = SBTopic & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2405,6 +2233,7 @@ export type TopicsListAuthorizationRulesResponse = SBAuthorizationRuleListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2424,6 +2253,7 @@ export type TopicsCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2443,6 +2273,7 @@ export type TopicsGetAuthorizationRuleResponse = SBAuthorizationRule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2462,6 +2293,7 @@ export type TopicsListKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2481,6 +2313,7 @@ export type TopicsRegenerateKeysResponse = AccessKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2500,6 +2333,7 @@ export type TopicsListByNamespaceNextResponse = SBTopicListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2519,6 +2353,7 @@ export type TopicsListAuthorizationRulesNextResponse = SBAuthorizationRuleListRe * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2538,6 +2373,7 @@ export type SubscriptionsListByTopicResponse = SBSubscriptionListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2557,6 +2393,7 @@ export type SubscriptionsCreateOrUpdateResponse = SBSubscription & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2576,6 +2413,7 @@ export type SubscriptionsGetResponse = SBSubscription & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2595,6 +2433,7 @@ export type SubscriptionsListByTopicNextResponse = SBSubscriptionListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2614,6 +2453,7 @@ export type RulesListBySubscriptionsResponse = RuleListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2633,6 +2473,7 @@ export type RulesCreateOrUpdateResponse = Rule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2652,6 +2493,7 @@ export type RulesGetResponse = Rule & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2671,6 +2513,7 @@ export type RulesListBySubscriptionsNextResponse = RuleListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2690,6 +2533,7 @@ export type RegionsListBySkuResponse = PremiumMessagingRegionsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2709,6 +2553,7 @@ export type RegionsListBySkuNextResponse = PremiumMessagingRegionsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2728,6 +2573,7 @@ export type PremiumMessagingRegionsListResponse = PremiumMessagingRegionsListRes * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2747,6 +2593,7 @@ export type PremiumMessagingRegionsListNextResponse = PremiumMessagingRegionsLis * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2766,6 +2613,7 @@ export type EventHubsListByNamespaceResponse = EventHubListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2785,6 +2633,7 @@ export type EventHubsListByNamespaceNextResponse = EventHubListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/packages/@azure/arm-servicebus/lib/models/mappers.ts b/packages/@azure/arm-servicebus/src/models/mappers.ts similarity index 94% rename from packages/@azure/arm-servicebus/lib/models/mappers.ts rename to packages/@azure/arm-servicebus/src/models/mappers.ts index e35fc9c709a4..28e290d0d37d 100644 --- a/packages/@azure/arm-servicebus/lib/models/mappers.ts +++ b/packages/@azure/arm-servicebus/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * 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 { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -1497,6 +1495,110 @@ export const MigrationConfigProperties: msRest.CompositeMapper = { } }; +export const Subnet: msRest.CompositeMapper = { + serializedName: "Subnet", + type: { + name: "Composite", + className: "Subnet", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const NWRuleSetIpRules: msRest.CompositeMapper = { + serializedName: "NWRuleSetIpRules", + type: { + name: "Composite", + className: "NWRuleSetIpRules", + modelProperties: { + ipMask: { + serializedName: "ipMask", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + defaultValue: 'Allow', + type: { + name: "String" + } + } + } + } +}; + +export const NWRuleSetVirtualNetworkRules: msRest.CompositeMapper = { + serializedName: "NWRuleSetVirtualNetworkRules", + type: { + name: "Composite", + className: "NWRuleSetVirtualNetworkRules", + modelProperties: { + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + ignoreMissingVnetServiceEndpoint: { + serializedName: "ignoreMissingVnetServiceEndpoint", + type: { + name: "Boolean" + } + } + } + } +}; + +export const NetworkRuleSet: msRest.CompositeMapper = { + serializedName: "NetworkRuleSet", + type: { + name: "Composite", + className: "NetworkRuleSet", + modelProperties: { + ...Resource.type.modelProperties, + defaultAction: { + serializedName: "properties.defaultAction", + type: { + name: "String" + } + }, + virtualNetworkRules: { + serializedName: "properties.virtualNetworkRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NWRuleSetVirtualNetworkRules" + } + } + } + }, + ipRules: { + serializedName: "properties.ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NWRuleSetIpRules" + } + } + } + } + } + } +}; + export const OperationListResult: msRest.CompositeMapper = { serializedName: "OperationListResult", type: { diff --git a/packages/@azure/arm-servicebus/lib/models/migrationConfigsMappers.ts b/packages/@azure/arm-servicebus/src/models/migrationConfigsMappers.ts similarity index 81% rename from packages/@azure/arm-servicebus/lib/models/migrationConfigsMappers.ts rename to packages/@azure/arm-servicebus/src/models/migrationConfigsMappers.ts index 3b3cb0551077..903d5200dc1e 100644 --- a/packages/@azure/arm-servicebus/lib/models/migrationConfigsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/migrationConfigsMappers.ts @@ -1,39 +1,40 @@ /* * 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 { + Action, + ArmDisasterRecovery, + BaseResource, + CaptureDescription, + CorrelationFilter, + Destination, + ErrorResponse, + Eventhub, + MessageCountDetails, MigrationConfigListResult, MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, Resource, - BaseResource, - ErrorResponse, - TrackedResource, ResourceNamespacePatch, + Rule, + SBAuthorizationRule, SBNamespace, - SBSku, SBNamespaceUpdateParameters, - SBAuthorizationRule, SBQueue, - MessageCountDetails, - SBTopic, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, SqlFilter, - CorrelationFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/namespacesMappers.ts b/packages/@azure/arm-servicebus/src/models/namespacesMappers.ts similarity index 83% rename from packages/@azure/arm-servicebus/lib/models/namespacesMappers.ts rename to packages/@azure/arm-servicebus/src/models/namespacesMappers.ts index 35595140ba37..3bb20e1c0cd7 100644 --- a/packages/@azure/arm-servicebus/lib/models/namespacesMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/namespacesMappers.ts @@ -1,45 +1,46 @@ /* * 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 { + AccessKeys, + Action, + ArmDisasterRecovery, + BaseResource, + CaptureDescription, CheckNameAvailability, CheckNameAvailabilityResult, + CorrelationFilter, + Destination, ErrorResponse, - SBNamespaceListResult, - SBNamespace, - TrackedResource, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, + RegenerateAccessKeyParameters, Resource, - BaseResource, - SBSku, - SBNamespaceUpdateParameters, ResourceNamespacePatch, - SBAuthorizationRuleListResult, + Rule, SBAuthorizationRule, - AccessKeys, - RegenerateAccessKeyParameters, + SBAuthorizationRuleListResult, + SBNamespace, + SBNamespaceListResult, SBNamespaceMigrate, + SBNamespaceUpdateParameters, SBQueue, - MessageCountDetails, - SBTopic, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, SqlFilter, - CorrelationFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/operationsMappers.ts b/packages/@azure/arm-servicebus/src/models/operationsMappers.ts similarity index 76% rename from packages/@azure/arm-servicebus/lib/models/operationsMappers.ts rename to packages/@azure/arm-servicebus/src/models/operationsMappers.ts index 715467ec9522..b8de8606cf9d 100644 --- a/packages/@azure/arm-servicebus/lib/models/operationsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/operationsMappers.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 { - OperationListResult, + ErrorResponse, Operation, OperationDisplay, - ErrorResponse + OperationListResult } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/parameters.ts b/packages/@azure/arm-servicebus/src/models/parameters.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/models/parameters.ts rename to packages/@azure/arm-servicebus/src/models/parameters.ts diff --git a/packages/@azure/arm-servicebus/lib/models/premiumMessagingRegionsOperationsMappers.ts b/packages/@azure/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts similarity index 80% rename from packages/@azure/arm-servicebus/lib/models/premiumMessagingRegionsOperationsMappers.ts rename to packages/@azure/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts index b2ee4f41d85e..ac8de9d04d7d 100644 --- a/packages/@azure/arm-servicebus/lib/models/premiumMessagingRegionsOperationsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts @@ -1,39 +1,40 @@ /* * 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 { - PremiumMessagingRegionsListResult, - PremiumMessagingRegions, - ResourceNamespacePatch, - Resource, + Action, + ArmDisasterRecovery, BaseResource, - PremiumMessagingRegionsProperties, + CaptureDescription, + CorrelationFilter, + Destination, ErrorResponse, - TrackedResource, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsListResult, + PremiumMessagingRegionsProperties, + Resource, + ResourceNamespacePatch, + Rule, + SBAuthorizationRule, SBNamespace, - SBSku, SBNamespaceUpdateParameters, - SBAuthorizationRule, SBQueue, - MessageCountDetails, - SBTopic, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, SqlFilter, - CorrelationFilter, SqlRuleAction, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/queuesMappers.ts b/packages/@azure/arm-servicebus/src/models/queuesMappers.ts similarity index 81% rename from packages/@azure/arm-servicebus/lib/models/queuesMappers.ts rename to packages/@azure/arm-servicebus/src/models/queuesMappers.ts index 731125768d90..dd993b8117d6 100644 --- a/packages/@azure/arm-servicebus/lib/models/queuesMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/queuesMappers.ts @@ -1,42 +1,43 @@ /* * 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 { - SBQueueListResult, - SBQueue, - Resource, + AccessKeys, + Action, + ArmDisasterRecovery, BaseResource, - MessageCountDetails, + CaptureDescription, + CorrelationFilter, + Destination, ErrorResponse, - SBAuthorizationRuleListResult, - SBAuthorizationRule, - AccessKeys, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, RegenerateAccessKeyParameters, - TrackedResource, + Resource, ResourceNamespacePatch, + Rule, + SBAuthorizationRule, + SBAuthorizationRuleListResult, SBNamespace, - SBSku, SBNamespaceUpdateParameters, - SBTopic, + SBQueue, + SBQueueListResult, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, SqlFilter, - CorrelationFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/regionsMappers.ts b/packages/@azure/arm-servicebus/src/models/regionsMappers.ts similarity index 80% rename from packages/@azure/arm-servicebus/lib/models/regionsMappers.ts rename to packages/@azure/arm-servicebus/src/models/regionsMappers.ts index b2ee4f41d85e..ac8de9d04d7d 100644 --- a/packages/@azure/arm-servicebus/lib/models/regionsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/regionsMappers.ts @@ -1,39 +1,40 @@ /* * 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 { - PremiumMessagingRegionsListResult, - PremiumMessagingRegions, - ResourceNamespacePatch, - Resource, + Action, + ArmDisasterRecovery, BaseResource, - PremiumMessagingRegionsProperties, + CaptureDescription, + CorrelationFilter, + Destination, ErrorResponse, - TrackedResource, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsListResult, + PremiumMessagingRegionsProperties, + Resource, + ResourceNamespacePatch, + Rule, + SBAuthorizationRule, SBNamespace, - SBSku, SBNamespaceUpdateParameters, - SBAuthorizationRule, SBQueue, - MessageCountDetails, - SBTopic, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, SqlFilter, - CorrelationFilter, SqlRuleAction, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/rulesMappers.ts b/packages/@azure/arm-servicebus/src/models/rulesMappers.ts similarity index 80% rename from packages/@azure/arm-servicebus/lib/models/rulesMappers.ts rename to packages/@azure/arm-servicebus/src/models/rulesMappers.ts index 1515090abc1b..c0691c1a2c77 100644 --- a/packages/@azure/arm-servicebus/lib/models/rulesMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/rulesMappers.ts @@ -1,39 +1,40 @@ /* * 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 { - RuleListResult, - Rule, - Resource, - BaseResource, Action, - SqlFilter, + ArmDisasterRecovery, + BaseResource, + CaptureDescription, CorrelationFilter, + Destination, ErrorResponse, - TrackedResource, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, + Resource, ResourceNamespacePatch, + Rule, + RuleListResult, + SBAuthorizationRule, SBNamespace, - SBSku, SBNamespaceUpdateParameters, - SBAuthorizationRule, SBQueue, - MessageCountDetails, - SBTopic, + SBSku, SBSubscription, + SBTopic, + SqlFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/subscriptionsMappers.ts b/packages/@azure/arm-servicebus/src/models/subscriptionsMappers.ts similarity index 80% rename from packages/@azure/arm-servicebus/lib/models/subscriptionsMappers.ts rename to packages/@azure/arm-servicebus/src/models/subscriptionsMappers.ts index 32293dcf9088..c560d9ac5076 100644 --- a/packages/@azure/arm-servicebus/lib/models/subscriptionsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/subscriptionsMappers.ts @@ -1,39 +1,40 @@ /* * 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 { - SBSubscriptionListResult, - SBSubscription, - Resource, + Action, + ArmDisasterRecovery, BaseResource, - MessageCountDetails, + CaptureDescription, + CorrelationFilter, + Destination, ErrorResponse, - TrackedResource, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, + Resource, ResourceNamespacePatch, + Rule, + SBAuthorizationRule, SBNamespace, - SBSku, SBNamespaceUpdateParameters, - SBAuthorizationRule, SBQueue, + SBSku, + SBSubscription, + SBSubscriptionListResult, SBTopic, - Rule, - Action, SqlFilter, - CorrelationFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/models/topicsMappers.ts b/packages/@azure/arm-servicebus/src/models/topicsMappers.ts similarity index 81% rename from packages/@azure/arm-servicebus/lib/models/topicsMappers.ts rename to packages/@azure/arm-servicebus/src/models/topicsMappers.ts index a9a1215ec788..30dc7a077dd7 100644 --- a/packages/@azure/arm-servicebus/lib/models/topicsMappers.ts +++ b/packages/@azure/arm-servicebus/src/models/topicsMappers.ts @@ -1,42 +1,43 @@ /* * 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 { - SBTopicListResult, - SBTopic, - Resource, + AccessKeys, + Action, + ArmDisasterRecovery, BaseResource, - MessageCountDetails, + CaptureDescription, + CorrelationFilter, + Destination, ErrorResponse, - SBAuthorizationRuleListResult, - SBAuthorizationRule, - AccessKeys, + Eventhub, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, RegenerateAccessKeyParameters, - TrackedResource, + Resource, ResourceNamespacePatch, + Rule, + SBAuthorizationRule, + SBAuthorizationRuleListResult, SBNamespace, - SBSku, SBNamespaceUpdateParameters, SBQueue, + SBSku, SBSubscription, - Rule, - Action, + SBTopic, + SBTopicListResult, SqlFilter, - CorrelationFilter, SqlRuleAction, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, - Eventhub, - CaptureDescription, - Destination, - ArmDisasterRecovery, - MigrationConfigProperties + Subnet, + TrackedResource } from "../models/mappers"; - diff --git a/packages/@azure/arm-servicebus/lib/operations/disasterRecoveryConfigs.ts b/packages/@azure/arm-servicebus/src/operations/disasterRecoveryConfigs.ts similarity index 98% rename from packages/@azure/arm-servicebus/lib/operations/disasterRecoveryConfigs.ts rename to packages/@azure/arm-servicebus/src/operations/disasterRecoveryConfigs.ts index 8d08af8a251a..5e526c08ffbc 100644 --- a/packages/@azure/arm-servicebus/lib/operations/disasterRecoveryConfigs.ts +++ b/packages/@azure/arm-servicebus/src/operations/disasterRecoveryConfigs.ts @@ -244,7 +244,7 @@ export class DisasterRecoveryConfigs { } /** - * envokes GEO DR failover and reconfigure the alias to point to the secondary namespace + * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param alias The Disaster Recovery configuration name @@ -320,7 +320,7 @@ export class DisasterRecoveryConfigs { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -329,7 +329,7 @@ export class DisasterRecoveryConfigs { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ getAuthorizationRule(resourceGroupName: string, namespaceName: string, alias: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -337,7 +337,7 @@ export class DisasterRecoveryConfigs { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -360,7 +360,7 @@ export class DisasterRecoveryConfigs { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -369,7 +369,7 @@ export class DisasterRecoveryConfigs { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ listKeys(resourceGroupName: string, namespaceName: string, alias: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -377,7 +377,7 @@ export class DisasterRecoveryConfigs { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param alias The Disaster Recovery configuration name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ diff --git a/packages/@azure/arm-servicebus/lib/operations/eventHubs.ts b/packages/@azure/arm-servicebus/src/operations/eventHubs.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/operations/eventHubs.ts rename to packages/@azure/arm-servicebus/src/operations/eventHubs.ts diff --git a/packages/@azure/arm-servicebus/lib/operations/index.ts b/packages/@azure/arm-servicebus/src/operations/index.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/operations/index.ts rename to packages/@azure/arm-servicebus/src/operations/index.ts diff --git a/packages/@azure/arm-servicebus/lib/operations/migrationConfigs.ts b/packages/@azure/arm-servicebus/src/operations/migrationConfigs.ts similarity index 99% rename from packages/@azure/arm-servicebus/lib/operations/migrationConfigs.ts rename to packages/@azure/arm-servicebus/src/operations/migrationConfigs.ts index 42e517945582..f3f456574707 100644 --- a/packages/@azure/arm-servicebus/lib/operations/migrationConfigs.ts +++ b/packages/@azure/arm-servicebus/src/operations/migrationConfigs.ts @@ -60,7 +60,7 @@ export class MigrationConfigs { } /** - * Creates Migration configuration and starts migration of enties from Standard to Premium + * Creates Migration configuration and starts migration of entities from Standard to Premium * namespace * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name @@ -139,7 +139,7 @@ export class MigrationConfigs { /** * This operation Completes Migration of entities by pointing the connection strings to Premium - * namespace and any enties created after the operation will be under Premium Namespace. + * namespace and any entities created after the operation will be under Premium Namespace. * CompleteMigration operation will fail when entity migration is in-progress. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name @@ -204,7 +204,7 @@ export class MigrationConfigs { } /** - * Creates Migration configuration and starts migration of enties from Standard to Premium + * Creates Migration configuration and starts migration of entities from Standard to Premium * namespace * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name diff --git a/packages/@azure/arm-servicebus/lib/operations/namespaces.ts b/packages/@azure/arm-servicebus/src/operations/namespaces.ts similarity index 86% rename from packages/@azure/arm-servicebus/lib/operations/namespaces.ts rename to packages/@azure/arm-servicebus/src/operations/namespaces.ts index ce119bb82582..53f80812c147 100644 --- a/packages/@azure/arm-servicebus/lib/operations/namespaces.ts +++ b/packages/@azure/arm-servicebus/src/operations/namespaces.ts @@ -239,7 +239,7 @@ export class Namespaces { * Creates or updates an authorization rule for a namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param [options] The optional parameters * @returns Promise @@ -248,7 +248,7 @@ export class Namespaces { /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param callback The callback */ @@ -256,7 +256,7 @@ export class Namespaces { /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param options The optional parameters * @param callback The callback @@ -279,7 +279,7 @@ export class Namespaces { * Deletes a namespace authorization rule. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -287,14 +287,14 @@ export class Namespaces { /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -315,7 +315,7 @@ export class Namespaces { * Gets an authorization rule for a namespace by rule name. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -323,14 +323,14 @@ export class Namespaces { /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -351,7 +351,7 @@ export class Namespaces { * Gets the primary and secondary connection strings for the namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -359,14 +359,14 @@ export class Namespaces { /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -387,7 +387,7 @@ export class Namespaces { * Regenerates the primary or secondary connection strings for the namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters * @returns Promise @@ -396,7 +396,7 @@ export class Namespaces { /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ @@ -404,7 +404,7 @@ export class Namespaces { /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback @@ -459,6 +459,74 @@ export class Namespaces { callback); } + /** + * Create or update NetworkRuleSet for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param parameters The Namespace IpFilterRule. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param parameters The Namespace IpFilterRule. + * @param callback The callback + */ + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param parameters The Namespace IpFilterRule. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + parameters, + options + }, + createOrUpdateNetworkRuleSetOperationSpec, + callback) as Promise; + } + + /** + * Gets NetworkRuleSet for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param [options] The optional parameters + * @returns Promise + */ + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param callback The callback + */ + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param options The optional parameters + * @param callback The callback + */ + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + options + }, + getNetworkRuleSetOperationSpec, + callback) as Promise; + } + /** * Creates or updates a service namespace. Once created, this namespace's resource manifest is * immutable. This operation is idempotent. @@ -922,6 +990,63 @@ const migrateOperationSpec: msRest.OperationSpec = { serializer }; +const createOrUpdateNetworkRuleSetOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.NetworkRuleSet, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NetworkRuleSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getNetworkRuleSetOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkRuleSet + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}", diff --git a/packages/@azure/arm-servicebus/lib/operations/operations.ts b/packages/@azure/arm-servicebus/src/operations/operations.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/operations/operations.ts rename to packages/@azure/arm-servicebus/src/operations/operations.ts diff --git a/packages/@azure/arm-servicebus/lib/operations/premiumMessagingRegionsOperations.ts b/packages/@azure/arm-servicebus/src/operations/premiumMessagingRegionsOperations.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/operations/premiumMessagingRegionsOperations.ts rename to packages/@azure/arm-servicebus/src/operations/premiumMessagingRegionsOperations.ts diff --git a/packages/@azure/arm-servicebus/lib/operations/queues.ts b/packages/@azure/arm-servicebus/src/operations/queues.ts similarity index 97% rename from packages/@azure/arm-servicebus/lib/operations/queues.ts rename to packages/@azure/arm-servicebus/src/operations/queues.ts index b1f2221172fb..94e844861442 100644 --- a/packages/@azure/arm-servicebus/lib/operations/queues.ts +++ b/packages/@azure/arm-servicebus/src/operations/queues.ts @@ -211,7 +211,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param [options] The optional parameters * @returns Promise @@ -221,7 +221,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param callback The callback */ @@ -230,7 +230,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param options The optional parameters * @param callback The callback @@ -255,7 +255,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -264,7 +264,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -272,7 +272,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -295,7 +295,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -304,7 +304,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -312,7 +312,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -335,7 +335,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -344,7 +344,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -352,7 +352,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -375,7 +375,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters * @returns Promise @@ -385,7 +385,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ @@ -394,7 +394,7 @@ export class Queues { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback diff --git a/packages/@azure/arm-servicebus/lib/operations/regions.ts b/packages/@azure/arm-servicebus/src/operations/regions.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/operations/regions.ts rename to packages/@azure/arm-servicebus/src/operations/regions.ts diff --git a/packages/@azure/arm-servicebus/lib/operations/rules.ts b/packages/@azure/arm-servicebus/src/operations/rules.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/operations/rules.ts rename to packages/@azure/arm-servicebus/src/operations/rules.ts diff --git a/packages/@azure/arm-servicebus/lib/operations/subscriptions.ts b/packages/@azure/arm-servicebus/src/operations/subscriptions.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/operations/subscriptions.ts rename to packages/@azure/arm-servicebus/src/operations/subscriptions.ts diff --git a/packages/@azure/arm-servicebus/lib/operations/topics.ts b/packages/@azure/arm-servicebus/src/operations/topics.ts similarity index 96% rename from packages/@azure/arm-servicebus/lib/operations/topics.ts rename to packages/@azure/arm-servicebus/src/operations/topics.ts index 373df303c69e..e94ad2f30243 100644 --- a/packages/@azure/arm-servicebus/lib/operations/topics.ts +++ b/packages/@azure/arm-servicebus/src/operations/topics.ts @@ -207,11 +207,11 @@ export class Topics { } /** - * Creates an authorizatio rule for the specified topic. + * Creates an authorization rule for the specified topic. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param [options] The optional parameters * @returns Promise @@ -221,7 +221,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param callback The callback */ @@ -230,7 +230,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters The shared access authorization rule. * @param options The optional parameters * @param callback The callback @@ -255,7 +255,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -264,7 +264,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -272,7 +272,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -295,7 +295,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -304,7 +304,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -312,7 +312,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -335,7 +335,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ @@ -344,7 +344,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; @@ -352,7 +352,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ @@ -375,7 +375,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters * @returns Promise @@ -385,7 +385,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ @@ -394,7 +394,7 @@ export class Topics { * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorizationrule name. + * @param authorizationRuleName The authorization rule name. * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback diff --git a/packages/@azure/arm-servicebus/lib/serviceBusManagementClient.ts b/packages/@azure/arm-servicebus/src/serviceBusManagementClient.ts similarity index 100% rename from packages/@azure/arm-servicebus/lib/serviceBusManagementClient.ts rename to packages/@azure/arm-servicebus/src/serviceBusManagementClient.ts diff --git a/packages/@azure/arm-servicebus/lib/serviceBusManagementClientContext.ts b/packages/@azure/arm-servicebus/src/serviceBusManagementClientContext.ts similarity index 98% rename from packages/@azure/arm-servicebus/lib/serviceBusManagementClientContext.ts rename to packages/@azure/arm-servicebus/src/serviceBusManagementClientContext.ts index d2f3fa7271c3..d798d17a369c 100644 --- a/packages/@azure/arm-servicebus/lib/serviceBusManagementClientContext.ts +++ b/packages/@azure/arm-servicebus/src/serviceBusManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-servicebus"; -const packageVersion = "0.1.0"; +const packageVersion = "3.2.0"; export class ServiceBusManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/packages/@azure/arm-servicebus/tsconfig.json b/packages/@azure/arm-servicebus/tsconfig.json index 51ea90961ce5..87bbf5b5fa49 100644 --- a/packages/@azure/arm-servicebus/tsconfig.json +++ b/packages/@azure/arm-servicebus/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./lib/**/*.ts"], + "include": ["./src/**/*.ts"], "exclude": ["node_modules"] }