From 897aff6a783c4762e6377b5b99273144b6bd9a0f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 15 Mar 2019 18:19:15 +0000 Subject: [PATCH] Generated from ba179ab792139616c7b8812464f6814eba64c87b updated with review comments resolve --- .../serviceBusManagement2/LICENSE.txt | 2 +- lib/services/serviceBusManagement2/README.md | 32 +- .../lib/models/accessKeys.js | 17 +- .../lib/models/action.js | 10 +- .../lib/models/armDisasterRecovery.js | 14 +- .../models/armDisasterRecoveryListResult.js | 5 +- .../lib/models/authorizationRuleProperties.js | 2 +- .../lib/models/captureDescription.js | 28 +- .../lib/models/checkNameAvailability.js | 4 +- .../lib/models/checkNameAvailabilityResult.js | 6 +- .../lib/models/correlationFilter.js | 22 +- .../lib/models/destination.js | 8 +- .../lib/models/errorResponse.js | 6 +- .../lib/models/eventHubListResult.js | 4 +- .../lib/models/eventhub.js | 42 +- .../lib/models/index.d.ts | 1263 +++++++++-------- .../serviceBusManagement2/lib/models/index.js | 4 + .../lib/models/messageCountDetails.js | 14 +- .../lib/models/migrationConfigListResult.js | 4 +- .../lib/models/migrationConfigProperties.js | 12 +- .../lib/models/nWRuleSetIpRules.js | 62 + .../models/nWRuleSetVirtualNetworkRules.js | 63 + .../lib/models/networkRuleSet.js | 113 ++ .../lib/models/operation.js | 14 +- .../lib/models/operationDisplay.js | 8 +- .../lib/models/operationListResult.js | 2 +- .../lib/models/premiumMessagingRegions.js | 6 +- .../premiumMessagingRegionsListResult.js | 4 +- .../premiumMessagingRegionsProperties.js | 4 +- .../models/regenerateAccessKeyParameters.js | 6 +- .../lib/models/resource.js | 6 +- .../lib/models/resourceNamespacePatch.js | 4 +- .../serviceBusManagement2/lib/models/rule.js | 53 +- .../lib/models/ruleListResult.js | 4 +- .../lib/models/sBAuthorizationRule.js | 2 +- .../models/sBAuthorizationRuleListResult.js | 4 +- .../lib/models/sBNamespace.js | 19 +- .../lib/models/sBNamespaceListResult.js | 4 +- .../lib/models/sBNamespaceMigrate.js | 2 +- .../lib/models/sBNamespaceUpdateParameters.js | 19 +- .../lib/models/sBQueue.js | 68 +- .../lib/models/sBQueueListResult.js | 4 +- .../serviceBusManagement2/lib/models/sBSku.js | 10 +- .../lib/models/sBSubscription.js | 55 +- .../lib/models/sBSubscriptionListResult.js | 4 +- .../lib/models/sBTopic.js | 50 +- .../lib/models/sBTopicListResult.js | 4 +- .../lib/models/sqlFilter.js | 11 +- .../lib/models/subnet.js | 52 + .../lib/models/trackedResource.js | 4 +- .../lib/operations/disasterRecoveryConfigs.js | 36 +- .../lib/operations/index.d.ts | 268 +++- .../lib/operations/migrationConfigs.js | 36 +- .../lib/operations/namespaces.js | 610 +++++++- .../lib/operations/queues.js | 30 +- .../lib/operations/topics.js | 36 +- .../serviceBusManagement2/package.json | 2 +- 57 files changed, 2092 insertions(+), 1086 deletions(-) create mode 100644 lib/services/serviceBusManagement2/lib/models/nWRuleSetIpRules.js create mode 100644 lib/services/serviceBusManagement2/lib/models/nWRuleSetVirtualNetworkRules.js create mode 100644 lib/services/serviceBusManagement2/lib/models/networkRuleSet.js create mode 100644 lib/services/serviceBusManagement2/lib/models/subnet.js diff --git a/lib/services/serviceBusManagement2/LICENSE.txt b/lib/services/serviceBusManagement2/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/serviceBusManagement2/LICENSE.txt +++ b/lib/services/serviceBusManagement2/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/lib/services/serviceBusManagement2/README.md b/lib/services/serviceBusManagement2/README.md index 396de8aaf3..9fee0b6f51 100644 --- a/lib/services/serviceBusManagement2/README.md +++ b/lib/services/serviceBusManagement2/README.md @@ -3,41 +3,41 @@ uid: azure-arm-sb summary: *content --- -# Microsoft Azure SDK for Node.js - ServiceBusManagementClient +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** +## Microsoft Azure SDK for Node.js - ServiceBusManagementClient + This project provides a Node.js package for accessing Azure. Right now it supports: - **Node.js version 6.x.x or higher** -## Features +### Features -## How to Install +### How to Install ```bash npm install azure-arm-sb ``` -## How to use +### How to use -### Authentication, client creation and list operations as an example. +#### Authentication, client creation, and list operations as an example. ```javascript const msRestAzure = require("ms-rest-azure"); const ServiceBusManagementClient = require("azure-arm-sb"); msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new ServiceBusManagementClient(creds, subscriptionId); - return client.operations.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); + const subscriptionId = ""; + const client = new ServiceBusManagementClient(creds, subscriptionId); + + return client.operations.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); }).catch((err) => { console.log('An error occurred:'); console.dir(err, {depth: null, colors: true}); }); - -## Related projects +``` +### Related projects - [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-node%2Flib%2Fservices%2FserviceBusManagement2%2FREADME.png) diff --git a/lib/services/serviceBusManagement2/lib/models/accessKeys.js b/lib/services/serviceBusManagement2/lib/models/accessKeys.js index 6a75e6fde2..89b0783c40 100644 --- a/lib/services/serviceBusManagement2/lib/models/accessKeys.js +++ b/lib/services/serviceBusManagement2/lib/models/accessKeys.js @@ -17,19 +17,20 @@ class AccessKeys { /** * Create a AccessKeys. - * @member {string} [primaryConnectionString] Primary connection string of + * @property {string} [primaryConnectionString] Primary connection string of * the created namespace authorization rule. - * @member {string} [secondaryConnectionString] Secondary connection string + * @property {string} [secondaryConnectionString] Secondary connection string * of the created namespace authorization rule. - * @member {string} [aliasPrimaryConnectionString] Primary connection string - * of the alias if GEO DR is enabled - * @member {string} [aliasSecondaryConnectionString] Secondary connection + * @property {string} [aliasPrimaryConnectionString] Primary connection * string of the alias if GEO DR is enabled - * @member {string} [primaryKey] A base64-encoded 256-bit primary key for + * @property {string} [aliasSecondaryConnectionString] Secondary connection + * string of the alias if GEO DR is enabled + * @property {string} [primaryKey] A base64-encoded 256-bit primary key for * signing and validating the SAS token. - * @member {string} [secondaryKey] A base64-encoded 256-bit primary key for + * @property {string} [secondaryKey] A base64-encoded 256-bit primary key for * signing and validating the SAS token. - * @member {string} [keyName] A string that describes the authorization rule. + * @property {string} [keyName] A string that describes the authorization + * rule. */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/action.js b/lib/services/serviceBusManagement2/lib/models/action.js index a281878fcc..c4e2d97265 100644 --- a/lib/services/serviceBusManagement2/lib/models/action.js +++ b/lib/services/serviceBusManagement2/lib/models/action.js @@ -18,12 +18,12 @@ class Action { /** * Create a Action. - * @member {string} [sqlExpression] SQL expression. e.g. MyProperty='ABC' - * @member {number} [compatibilityLevel] This property is reserved for future - * use. An integer value showing the compatibility level, currently + * @property {string} [sqlExpression] SQL expression. e.g. MyProperty='ABC' + * @property {number} [compatibilityLevel] This property is reserved for + * future use. An integer value showing the compatibility level, currently * hard-coded to 20. - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * @property {boolean} [requiresPreprocessing] Value that indicates whether + * the rule action requires preprocessing. Default value: true . */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/armDisasterRecovery.js b/lib/services/serviceBusManagement2/lib/models/armDisasterRecovery.js index 517a600c9b..583e14f081 100644 --- a/lib/services/serviceBusManagement2/lib/models/armDisasterRecovery.js +++ b/lib/services/serviceBusManagement2/lib/models/armDisasterRecovery.js @@ -20,17 +20,17 @@ const models = require('./index'); class ArmDisasterRecovery extends models['Resource'] { /** * Create a ArmDisasterRecovery. - * @member {string} [provisioningState] Provisioning state of the + * @property {string} [provisioningState] Provisioning state of the * Alias(Disaster Recovery configuration) - possible values 'Accepted' or * 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', * 'Failed' - * @member {number} [pendingReplicationOperationsCount] Number of entities + * @property {number} [pendingReplicationOperationsCount] Number of entities * pending to be replicated. - * @member {string} [partnerNamespace] ARM Id of the Primary/Secondary - * eventhub namespace name, which is part of GEO DR pairning - * @member {string} [alternateName] Primary/Secondary eventhub namespace - * name, which is part of GEO DR pairning - * @member {string} [role] role of namespace in GEO DR - possible values + * @property {string} [partnerNamespace] ARM Id of the Primary/Secondary + * eventhub namespace name, which is part of GEO DR pairing + * @property {string} [alternateName] Primary/Secondary eventhub namespace + * name, which is part of GEO DR pairing + * @property {string} [role] role of namespace in GEO DR - possible values * 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values * include: 'Primary', 'PrimaryNotReplicating', 'Secondary' */ diff --git a/lib/services/serviceBusManagement2/lib/models/armDisasterRecoveryListResult.js b/lib/services/serviceBusManagement2/lib/models/armDisasterRecoveryListResult.js index d8a87a64ce..ecb9cdd1cc 100644 --- a/lib/services/serviceBusManagement2/lib/models/armDisasterRecoveryListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/armDisasterRecoveryListResult.js @@ -16,8 +16,9 @@ class ArmDisasterRecoveryListResult extends Array { /** * Create a ArmDisasterRecoveryListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Alias(Disaster Recovery configuration) + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of Alias(Disaster Recovery + * configuration) */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/authorizationRuleProperties.js b/lib/services/serviceBusManagement2/lib/models/authorizationRuleProperties.js index 024bf6d9ee..9652108971 100644 --- a/lib/services/serviceBusManagement2/lib/models/authorizationRuleProperties.js +++ b/lib/services/serviceBusManagement2/lib/models/authorizationRuleProperties.js @@ -17,7 +17,7 @@ class AuthorizationRuleProperties { /** * Create a AuthorizationRuleProperties. - * @member {array} rights The rights associated with the rule. + * @property {array} rights The rights associated with the rule. */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/captureDescription.js b/lib/services/serviceBusManagement2/lib/models/captureDescription.js index 5c07b4f62f..939ec7c315 100644 --- a/lib/services/serviceBusManagement2/lib/models/captureDescription.js +++ b/lib/services/serviceBusManagement2/lib/models/captureDescription.js @@ -17,24 +17,24 @@ class CaptureDescription { /** * Create a CaptureDescription. - * @member {boolean} [enabled] A value that indicates whether capture + * @property {boolean} [enabled] A value that indicates whether capture * description is enabled. - * @member {string} [encoding] Enumerates the possible values for the + * @property {string} [encoding] Enumerates the possible values for the * encoding format of capture description. Possible values include: 'Avro', * 'AvroDeflate' - * @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 - * @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 - * @member {object} [destination] Properties of Destination where capture + * @property {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 + * @property {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 + * @property {object} [destination] Properties of Destination where capture * will be stored. (Storage Account, Blob Names) - * @member {string} [destination.name] Name for capture destination - * @member {string} [destination.storageAccountResourceId] Resource id of the - * storage account to be used to create the blobs - * @member {string} [destination.blobContainer] Blob container Name - * @member {string} [destination.archiveNameFormat] Blob naming convention + * @property {string} [destination.name] Name for capture destination + * @property {string} [destination.storageAccountResourceId] Resource id of + * the storage account to be used to create the blobs + * @property {string} [destination.blobContainer] Blob container Name + * @property {string} [destination.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 diff --git a/lib/services/serviceBusManagement2/lib/models/checkNameAvailability.js b/lib/services/serviceBusManagement2/lib/models/checkNameAvailability.js index 866d6891e1..789a58466d 100644 --- a/lib/services/serviceBusManagement2/lib/models/checkNameAvailability.js +++ b/lib/services/serviceBusManagement2/lib/models/checkNameAvailability.js @@ -17,8 +17,8 @@ class CheckNameAvailability { /** * Create a CheckNameAvailability. - * @member {string} name The Name to check the namespce name availability and - * The namespace name can contain only letters, numbers, and hyphens. The + * @property {string} name 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. */ diff --git a/lib/services/serviceBusManagement2/lib/models/checkNameAvailabilityResult.js b/lib/services/serviceBusManagement2/lib/models/checkNameAvailabilityResult.js index dc60f8be04..35386bd8a4 100644 --- a/lib/services/serviceBusManagement2/lib/models/checkNameAvailabilityResult.js +++ b/lib/services/serviceBusManagement2/lib/models/checkNameAvailabilityResult.js @@ -17,11 +17,11 @@ class CheckNameAvailabilityResult { /** * Create a CheckNameAvailabilityResult. - * @member {string} [message] The detailed info regarding the reason + * @property {string} [message] The detailed info regarding the reason * associated with the namespace. - * @member {boolean} [nameAvailable] Value indicating namespace is + * @property {boolean} [nameAvailable] Value indicating namespace is * availability, true if the namespace is available; otherwise, false. - * @member {string} [reason] The reason for unavailability of a namespace. + * @property {string} [reason] The reason for unavailability of a namespace. * Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', * 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription' */ diff --git a/lib/services/serviceBusManagement2/lib/models/correlationFilter.js b/lib/services/serviceBusManagement2/lib/models/correlationFilter.js index bee515f0d9..ba3eca3a74 100644 --- a/lib/services/serviceBusManagement2/lib/models/correlationFilter.js +++ b/lib/services/serviceBusManagement2/lib/models/correlationFilter.js @@ -17,17 +17,17 @@ class CorrelationFilter { /** * Create a CorrelationFilter. - * @member {object} [properties] dictionary object for custom filters - * @member {string} [correlationId] Identifier of the correlation. - * @member {string} [messageId] Identifier of the message. - * @member {string} [to] Address to send to. - * @member {string} [replyTo] Address of the queue to reply to. - * @member {string} [label] Application specific label. - * @member {string} [sessionId] Session identifier. - * @member {string} [replyToSessionId] Session identifier to reply to. - * @member {string} [contentType] Content type of the message. - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * @property {object} [properties] dictionary object for custom filters + * @property {string} [correlationId] Identifier of the correlation. + * @property {string} [messageId] Identifier of the message. + * @property {string} [to] Address to send to. + * @property {string} [replyTo] Address of the queue to reply to. + * @property {string} [label] Application specific label. + * @property {string} [sessionId] Session identifier. + * @property {string} [replyToSessionId] Session identifier to reply to. + * @property {string} [contentType] Content type of the message. + * @property {boolean} [requiresPreprocessing] Value that indicates whether + * the rule action requires preprocessing. Default value: true . */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/destination.js b/lib/services/serviceBusManagement2/lib/models/destination.js index 58e8dbaf5b..7e128de431 100644 --- a/lib/services/serviceBusManagement2/lib/models/destination.js +++ b/lib/services/serviceBusManagement2/lib/models/destination.js @@ -17,11 +17,11 @@ class Destination { /** * Create a Destination. - * @member {string} [name] Name for capture destination - * @member {string} [storageAccountResourceId] Resource id of the storage + * @property {string} [name] Name for capture destination + * @property {string} [storageAccountResourceId] Resource id of the storage * account to be used to create the blobs - * @member {string} [blobContainer] Blob container Name - * @member {string} [archiveNameFormat] Blob naming convention for archive, + * @property {string} [blobContainer] Blob container Name + * @property {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 diff --git a/lib/services/serviceBusManagement2/lib/models/errorResponse.js b/lib/services/serviceBusManagement2/lib/models/errorResponse.js index d799435c2b..9c79375cb7 100644 --- a/lib/services/serviceBusManagement2/lib/models/errorResponse.js +++ b/lib/services/serviceBusManagement2/lib/models/errorResponse.js @@ -11,15 +11,15 @@ 'use strict'; /** - * Error reponse indicates ServiceBus service is not able to process the + * Error response indicates ServiceBus service is not able to process the * incoming request. The reason is provided in the error message. * */ class ErrorResponse { /** * Create a ErrorResponse. - * @member {string} [code] Error code. - * @member {string} [message] Error message indicating why the operation + * @property {string} [code] Error code. + * @property {string} [message] Error message indicating why the operation * failed. */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/eventHubListResult.js b/lib/services/serviceBusManagement2/lib/models/eventHubListResult.js index 26b76fc1c4..bd136d6e21 100644 --- a/lib/services/serviceBusManagement2/lib/models/eventHubListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/eventHubListResult.js @@ -16,8 +16,8 @@ class EventHubListResult extends Array { /** * Create a EventHubListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of EventHubs. + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of EventHubs. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/eventhub.js b/lib/services/serviceBusManagement2/lib/models/eventhub.js index 63a4aa629a..0dbd9cf849 100644 --- a/lib/services/serviceBusManagement2/lib/models/eventhub.js +++ b/lib/services/serviceBusManagement2/lib/models/eventhub.js @@ -20,38 +20,40 @@ const models = require('./index'); class Eventhub extends models['Resource'] { /** * Create a Eventhub. - * @member {array} [partitionIds] Current number of shards on the Event Hub. - * @member {date} [createdAt] Exact time the Event Hub was created. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {number} [messageRetentionInDays] Number of days to retain the + * @property {array} [partitionIds] Current number of shards on the Event + * Hub. + * @property {date} [createdAt] Exact time the Event Hub was created. + * @property {date} [updatedAt] The exact time the message was updated. + * @property {number} [messageRetentionInDays] Number of days to retain the * events for this Event Hub, value should be 1 to 7 days - * @member {number} [partitionCount] Number of partitions created for the + * @property {number} [partitionCount] Number of partitions created for the * Event Hub, allowed values are from 1 to 32 partitions. - * @member {string} [status] Enumerates the possible values for the status of - * the Event Hub. Possible values include: 'Active', 'Disabled', 'Restoring', - * 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', - * 'Unknown' - * @member {object} [captureDescription] Properties of capture description - * @member {boolean} [captureDescription.enabled] A value that indicates + * @property {string} [status] Enumerates the possible values for the status + * of the Event Hub. Possible values include: 'Active', 'Disabled', + * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' + * @property {object} [captureDescription] Properties of capture description + * @property {boolean} [captureDescription.enabled] A value that indicates * whether capture description is enabled. - * @member {string} [captureDescription.encoding] Enumerates the possible + * @property {string} [captureDescription.encoding] Enumerates the possible * values for the encoding format of capture description. Possible values * include: 'Avro', 'AvroDeflate' - * @member {number} [captureDescription.intervalInSeconds] The time window + * @property {number} [captureDescription.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 - * @member {number} [captureDescription.sizeLimitInBytes] The size window + * @property {number} [captureDescription.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 - * @member {object} [captureDescription.destination] Properties of + * @property {object} [captureDescription.destination] Properties of * Destination where capture will be stored. (Storage Account, Blob Names) - * @member {string} [captureDescription.destination.name] Name for capture + * @property {string} [captureDescription.destination.name] Name for capture * destination - * @member {string} [captureDescription.destination.storageAccountResourceId] - * Resource id of the storage account to be used to create the blobs - * @member {string} [captureDescription.destination.blobContainer] Blob + * @property {string} + * [captureDescription.destination.storageAccountResourceId] Resource id of + * the storage account to be used to create the blobs + * @property {string} [captureDescription.destination.blobContainer] Blob * container Name - * @member {string} [captureDescription.destination.archiveNameFormat] Blob + * @property {string} [captureDescription.destination.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 diff --git a/lib/services/serviceBusManagement2/lib/models/index.d.ts b/lib/services/serviceBusManagement2/lib/models/index.d.ts index ca2cde4747..f040acb7dc 100644 --- a/lib/services/serviceBusManagement2/lib/models/index.d.ts +++ b/lib/services/serviceBusManagement2/lib/models/index.d.ts @@ -1,1034 +1,1039 @@ /* * 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 } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * The Resource definition for other than namespace. - * - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type */ export interface Resource extends BaseResource { + /** + * Resource Id + */ readonly id?: string; + /** + * Resource name + */ readonly name?: string; + /** + * Resource type + */ readonly type?: string; } /** - * @class - * Initializes a new instance of the TrackedResource class. - * @constructor * The Resource definition. - * - * @member {string} location The Geo-location where the resource lives - * @member {object} [tags] Resource tags */ export interface TrackedResource extends Resource { + /** + * The Geo-location where the resource lives + */ location: string; + /** + * Resource tags + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the ResourceNamespacePatch class. - * @constructor * The Resource definition. - * - * @member {string} [location] Resource location - * @member {object} [tags] Resource tags */ export interface ResourceNamespacePatch extends Resource { + /** + * Resource location + */ location?: string; + /** + * Resource tags + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the SBSku class. - * @constructor * SKU of the namespace. - * - * @member {string} name Name of this SKU. Possible values include: 'Basic', - * 'Standard', 'Premium' - * @member {string} [tier] The billing tier of this particular SKU. Possible - * values include: 'Basic', 'Standard', 'Premium' - * @member {number} [capacity] The specified messaging units for the tier. For - * Premium tier, capacity are 1,2 and 4. */ export interface SBSku { + /** + * Name of this SKU. Possible values include: 'Basic', 'Standard', 'Premium' + */ name: string; + /** + * The billing tier of this particular SKU. Possible values include: 'Basic', 'Standard', + * 'Premium' + */ tier?: string; + /** + * The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4. + */ capacity?: number; } /** - * @class - * Initializes a new instance of the SBNamespace class. - * @constructor * Description of a namespace resource. - * - * @member {object} [sku] Porperties of Sku - * @member {string} [sku.name] Name of this SKU. Possible values include: - * 'Basic', 'Standard', 'Premium' - * @member {string} [sku.tier] The billing tier of this particular SKU. - * Possible values include: 'Basic', 'Standard', 'Premium' - * @member {number} [sku.capacity] The specified messaging units for the tier. - * For Premium tier, capacity are 1,2 and 4. - * @member {string} [provisioningState] Provisioning state of the namespace. - * @member {date} [createdAt] The time the namespace was created. - * @member {date} [updatedAt] The time the namespace was updated. - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * Service Bus operations. - * @member {string} [metricId] Identifier for Azure Insights metrics */ export interface SBNamespace extends TrackedResource { + /** + * Properties of Sku + */ sku?: SBSku; + /** + * Provisioning state of the namespace. + */ readonly provisioningState?: string; + /** + * The time the namespace was created. + */ readonly createdAt?: Date; + /** + * The time the namespace was updated. + */ readonly updatedAt?: Date; + /** + * Endpoint you can use to perform Service Bus operations. + */ readonly serviceBusEndpoint?: string; + /** + * Identifier for Azure Insights metrics + */ readonly metricId?: string; } /** - * @class - * Initializes a new instance of the SBNamespaceUpdateParameters class. - * @constructor * Description of a namespace resource. - * - * @member {object} [sku] Porperties of Sku - * @member {string} [sku.name] Name of this SKU. Possible values include: - * 'Basic', 'Standard', 'Premium' - * @member {string} [sku.tier] The billing tier of this particular SKU. - * Possible values include: 'Basic', 'Standard', 'Premium' - * @member {number} [sku.capacity] The specified messaging units for the tier. - * For Premium tier, capacity are 1,2 and 4. - * @member {string} [provisioningState] Provisioning state of the namespace. - * @member {date} [createdAt] The time the namespace was created. - * @member {date} [updatedAt] The time the namespace was updated. - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * Service Bus operations. - * @member {string} [metricId] Identifier for Azure Insights metrics */ export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { + /** + * Properties of Sku + */ sku?: SBSku; + /** + * Provisioning state of the namespace. + */ readonly provisioningState?: string; + /** + * The time the namespace was created. + */ readonly createdAt?: Date; + /** + * The time the namespace was updated. + */ readonly updatedAt?: Date; + /** + * Endpoint you can use to perform Service Bus operations. + */ readonly serviceBusEndpoint?: string; + /** + * Identifier for Azure Insights metrics + */ readonly metricId?: string; } /** - * @class - * Initializes a new instance of the SBNamespaceMigrate class. - * @constructor * Namespace Migrate Object - * - * @member {string} targetNamespaceType Type of namespaces. Possible values - * include: 'Messaging', 'NotificationHub', 'Mixed', 'EventHub', 'Relay' */ export interface SBNamespaceMigrate { + /** + * Type of namespaces. Possible values include: 'Messaging', 'NotificationHub', 'Mixed', + * 'EventHub', 'Relay' + */ targetNamespaceType: string; } /** - * @class - * Initializes a new instance of the SBAuthorizationRule class. - * @constructor * Description of a namespace authorization rule. - * - * @member {array} rights The rights associated with the rule. */ export interface SBAuthorizationRule extends Resource { + /** + * The rights associated with the rule. + */ rights: string[]; } /** - * @class - * Initializes a new instance of the AuthorizationRuleProperties class. - * @constructor * AuthorizationRule properties. - * - * @member {array} rights The rights associated with the rule. */ export interface AuthorizationRuleProperties { + /** + * The rights associated with the rule. + */ rights: string[]; } /** - * @class - * Initializes a new instance of the AccessKeys class. - * @constructor * Namespace/ServiceBus Connection String - * - * @member {string} [primaryConnectionString] Primary connection string of the - * created namespace authorization rule. - * @member {string} [secondaryConnectionString] Secondary connection string of - * the created namespace authorization rule. - * @member {string} [aliasPrimaryConnectionString] Primary connection string of - * the alias if GEO DR is enabled - * @member {string} [aliasSecondaryConnectionString] Secondary connection - * string of the alias if GEO DR is enabled - * @member {string} [primaryKey] A base64-encoded 256-bit primary key for - * signing and validating the SAS token. - * @member {string} [secondaryKey] A base64-encoded 256-bit primary key for - * signing and validating the SAS token. - * @member {string} [keyName] A string that describes the authorization rule. */ export interface AccessKeys { + /** + * Primary connection string of the created namespace authorization rule. + */ readonly primaryConnectionString?: string; + /** + * Secondary connection string of the created namespace authorization rule. + */ readonly secondaryConnectionString?: string; + /** + * Primary connection string of the alias if GEO DR is enabled + */ readonly aliasPrimaryConnectionString?: string; + /** + * Secondary connection string of the alias if GEO DR is enabled + */ readonly aliasSecondaryConnectionString?: string; + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS token. + */ readonly primaryKey?: string; + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS token. + */ readonly secondaryKey?: string; + /** + * A string that describes the authorization rule. + */ readonly keyName?: string; } /** - * @class - * Initializes a new instance of the RegenerateAccessKeyParameters class. - * @constructor - * Parameters supplied to the Regenerate Authorization Rule operation, - * specifies which key neeeds to be reset. - * - * @member {string} keyType The access key to regenerate. Possible values - * include: 'PrimaryKey', 'SecondaryKey' - * @member {string} [key] Optional, if the key value provided, is reset for - * KeyType value or autogenerate Key value set for keyType + * Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to + * be reset. */ export interface RegenerateAccessKeyParameters { + /** + * The access key to regenerate. Possible values include: 'PrimaryKey', 'SecondaryKey' + */ keyType: string; + /** + * Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set + * for keyType + */ key?: string; } /** - * @class - * Initializes a new instance of the MessageCountDetails class. - * @constructor * Message Count Details. - * - * @member {number} [activeMessageCount] Number of active messages in the - * queue, topic, or subscription. - * @member {number} [deadLetterMessageCount] Number of messages that are dead - * lettered. - * @member {number} [scheduledMessageCount] Number of scheduled messages. - * @member {number} [transferMessageCount] Number of messages transferred to - * another queue, topic, or subscription. - * @member {number} [transferDeadLetterMessageCount] Number of messages - * transferred into dead letters. */ export interface MessageCountDetails { + /** + * Number of active messages in the queue, topic, or subscription. + */ readonly activeMessageCount?: number; + /** + * Number of messages that are dead lettered. + */ readonly deadLetterMessageCount?: number; + /** + * Number of scheduled messages. + */ readonly scheduledMessageCount?: number; + /** + * Number of messages transferred to another queue, topic, or subscription. + */ readonly transferMessageCount?: number; + /** + * Number of messages transferred into dead letters. + */ readonly transferDeadLetterMessageCount?: number; } /** - * @class - * Initializes a new instance of the SBQueue class. - * @constructor * Description of queue Resource. - * - * @member {object} [countDetails] Message Count Details. - * @member {number} [countDetails.activeMessageCount] Number of active messages - * in the queue, topic, or subscription. - * @member {number} [countDetails.deadLetterMessageCount] Number of messages - * that are dead lettered. - * @member {number} [countDetails.scheduledMessageCount] Number of scheduled - * messages. - * @member {number} [countDetails.transferMessageCount] Number of messages - * transferred to another queue, topic, or subscription. - * @member {number} [countDetails.transferDeadLetterMessageCount] Number of - * messages transferred into dead letters. - * @member {date} [createdAt] The exact time the message was created. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {date} [accessedAt] Last time a message was sent, or the last time - * there was a receive request to this queue. - * @member {number} [sizeInBytes] The size of the queue, in bytes. - * @member {number} [messageCount] The number of messages in the queue. - * @member {moment.duration} [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. - * @member {number} [maxSizeInMegabytes] The maximum size of the queue in - * megabytes, which is the size of memory allocated for the queue. Default is - * 1024. - * @member {boolean} [requiresDuplicateDetection] A value indicating if this - * queue requires duplicate detection. - * @member {boolean} [requiresSession] A value that indicates whether the queue - * supports the concept of sessions. - * @member {moment.duration} [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. - * @member {boolean} [deadLetteringOnMessageExpiration] A value that indicates - * whether this queue has dead letter support when a message expires. - * @member {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO 8601 - * timeSpan structure that defines the duration of the duplicate detection - * history. The default value is 10 minutes. - * @member {number} [maxDeliveryCount] The maximum delivery count. A message is - * automatically deadlettered after this number of deliveries. default value is - * 10. - * @member {string} [status] Enumerates the possible values for the status of a - * messaging entity. Possible values include: 'Active', 'Disabled', - * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - * 'Renaming', 'Unknown' - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. - * @member {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle interval - * after which the queue is automatically deleted. The minimum duration is 5 - * minutes. - * @member {boolean} [enablePartitioning] A value that indicates whether the - * queue is to be partitioned across multiple message brokers. - * @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. - * @member {string} [forwardTo] Queue/Topic name to forward the messages - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to forward - * the Dead Letter message */ export interface SBQueue extends Resource { + /** + * Message Count Details. + */ readonly countDetails?: MessageCountDetails; + /** + * The exact time the message was created. + */ readonly createdAt?: Date; + /** + * The exact time the message was updated. + */ readonly updatedAt?: Date; + /** + * Last time a message was sent, or the last time there was a receive request to this queue. + */ readonly accessedAt?: Date; + /** + * The size of the queue, in bytes. + */ readonly sizeInBytes?: number; + /** + * The number of messages in the queue. + */ readonly messageCount?: number; + /** + * 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?: moment.Duration; + /** + * The maximum size of the queue in megabytes, which is the size of memory allocated for the + * queue. Default is 1024. + */ maxSizeInMegabytes?: number; + /** + * A value indicating if this queue requires duplicate detection. + */ requiresDuplicateDetection?: boolean; + /** + * A value that indicates whether the queue supports the concept of sessions. + */ requiresSession?: boolean; + /** + * 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?: moment.Duration; + /** + * A value that indicates whether this queue has dead letter support when a message expires. + */ deadLetteringOnMessageExpiration?: boolean; + /** + * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. + */ duplicateDetectionHistoryTimeWindow?: moment.Duration; + /** + * The maximum delivery count. A message is automatically deadlettered after this number of + * deliveries. default value is 10. + */ maxDeliveryCount?: number; + /** + * Enumerates the possible values for the status of a messaging entity. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' + */ status?: string; + /** + * Value that indicates whether server-side batched operations are enabled. + */ enableBatchedOperations?: boolean; + /** + * ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum + * duration is 5 minutes. + */ autoDeleteOnIdle?: moment.Duration; + /** + * A value that indicates whether the queue is to be partitioned across multiple message brokers. + */ enablePartitioning?: boolean; + /** + * 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; + /** + * Queue/Topic name to forward the messages + */ forwardTo?: string; + /** + * Queue/Topic name to forward the Dead Letter message + */ forwardDeadLetteredMessagesTo?: string; } /** - * @class - * Initializes a new instance of the SBTopic class. - * @constructor * Description of topic resource. - * - * @member {number} [sizeInBytes] Size of the topic, in bytes. - * @member {date} [createdAt] Exact time the message was created. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {date} [accessedAt] Last time the message was sent, or a request was - * received, for this topic. - * @member {number} [subscriptionCount] Number of subscriptions. - * @member {object} [countDetails] Message count deatils - * @member {number} [countDetails.activeMessageCount] Number of active messages - * in the queue, topic, or subscription. - * @member {number} [countDetails.deadLetterMessageCount] Number of messages - * that are dead lettered. - * @member {number} [countDetails.scheduledMessageCount] Number of scheduled - * messages. - * @member {number} [countDetails.transferMessageCount] Number of messages - * transferred to another queue, topic, or subscription. - * @member {number} [countDetails.transferDeadLetterMessageCount] Number of - * messages transferred into dead letters. - * @member {moment.duration} [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. - * @member {number} [maxSizeInMegabytes] Maximum size of the topic in - * megabytes, which is the size of the memory allocated for the topic. Default - * is 1024. - * @member {boolean} [requiresDuplicateDetection] Value indicating if this - * topic requires duplicate detection. - * @member {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO8601 - * timespan structure that defines the duration of the duplicate detection - * history. The default value is 10 minutes. - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. - * @member {string} [status] Enumerates the possible values for the status of a - * messaging entity. Possible values include: 'Active', 'Disabled', - * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - * 'Renaming', 'Unknown' - * @member {boolean} [supportOrdering] Value that indicates whether the topic - * supports ordering. - * @member {moment.duration} [autoDeleteOnIdle] ISO 8601 timespan idle interval - * after which the topic is automatically deleted. The minimum duration is 5 - * minutes. - * @member {boolean} [enablePartitioning] Value that indicates whether the - * topic to be partitioned across multiple message brokers is enabled. - * @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. */ export interface SBTopic extends Resource { + /** + * Size of the topic, in bytes. + */ readonly sizeInBytes?: number; + /** + * Exact time the message was created. + */ readonly createdAt?: Date; + /** + * The exact time the message was updated. + */ readonly updatedAt?: Date; + /** + * Last time the message was sent, or a request was received, for this topic. + */ readonly accessedAt?: Date; + /** + * Number of subscriptions. + */ readonly subscriptionCount?: number; + /** + * Message count details + */ readonly countDetails?: MessageCountDetails; + /** + * 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?: moment.Duration; + /** + * Maximum size of the topic in megabytes, which is the size of the memory allocated for the + * topic. Default is 1024. + */ maxSizeInMegabytes?: number; + /** + * Value indicating if this topic requires duplicate detection. + */ requiresDuplicateDetection?: boolean; + /** + * ISO8601 timespan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. + */ duplicateDetectionHistoryTimeWindow?: moment.Duration; + /** + * Value that indicates whether server-side batched operations are enabled. + */ enableBatchedOperations?: boolean; + /** + * Enumerates the possible values for the status of a messaging entity. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' + */ status?: string; + /** + * Value that indicates whether the topic supports ordering. + */ supportOrdering?: boolean; + /** + * ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum + * duration is 5 minutes. + */ autoDeleteOnIdle?: moment.Duration; + /** + * Value that indicates whether the topic to be partitioned across multiple message brokers is + * enabled. + */ enablePartitioning?: boolean; + /** + * 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; } /** - * @class - * Initializes a new instance of the SBSubscription class. - * @constructor * Description of subscription resource. - * - * @member {number} [messageCount] Number of messages. - * @member {date} [createdAt] Exact time the message was created. - * @member {date} [accessedAt] Last time there was a receive request to this - * subscription. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {object} [countDetails] Message count details - * @member {number} [countDetails.activeMessageCount] Number of active messages - * in the queue, topic, or subscription. - * @member {number} [countDetails.deadLetterMessageCount] Number of messages - * that are dead lettered. - * @member {number} [countDetails.scheduledMessageCount] Number of scheduled - * messages. - * @member {number} [countDetails.transferMessageCount] Number of messages - * transferred to another queue, topic, or subscription. - * @member {number} [countDetails.transferDeadLetterMessageCount] Number of - * messages transferred into dead letters. - * @member {moment.duration} [lockDuration] ISO 8061 lock duration timespan for - * the subscription. The default value is 1 minute. - * @member {boolean} [requiresSession] Value indicating if a subscription - * supports the concept of sessions. - * @member {moment.duration} [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. - * @member {boolean} [deadLetteringOnFilterEvaluationExceptions] Value that - * indicates whether a subscription has dead letter support on filter - * evaluation exceptions. - * @member {boolean} [deadLetteringOnMessageExpiration] Value that indicates - * whether a subscription has dead letter support when a message expires. - * @member {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO 8601 - * timeSpan structure that defines the duration of the duplicate detection - * history. The default value is 10 minutes. - * @member {number} [maxDeliveryCount] Number of maximum deliveries. - * @member {string} [status] Enumerates the possible values for the status of a - * messaging entity. Possible values include: 'Active', 'Disabled', - * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - * 'Renaming', 'Unknown' - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. - * @member {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle interval - * after which the topic is automatically deleted. The minimum duration is 5 - * minutes. - * @member {string} [forwardTo] Queue/Topic name to forward the messages - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to forward - * the Dead Letter message */ export interface SBSubscription extends Resource { + /** + * Number of messages. + */ readonly messageCount?: number; + /** + * Exact time the message was created. + */ readonly createdAt?: Date; + /** + * Last time there was a receive request to this subscription. + */ readonly accessedAt?: Date; + /** + * The exact time the message was updated. + */ readonly updatedAt?: Date; + /** + * Message count details + */ readonly countDetails?: MessageCountDetails; + /** + * ISO 8061 lock duration timespan for the subscription. The default value is 1 minute. + */ lockDuration?: moment.Duration; + /** + * Value indicating if a subscription supports the concept of sessions. + */ requiresSession?: boolean; + /** + * 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?: moment.Duration; + /** + * Value that indicates whether a subscription has dead letter support on filter evaluation + * exceptions. + */ deadLetteringOnFilterEvaluationExceptions?: boolean; + /** + * Value that indicates whether a subscription has dead letter support when a message expires. + */ deadLetteringOnMessageExpiration?: boolean; + /** + * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. + */ duplicateDetectionHistoryTimeWindow?: moment.Duration; + /** + * Number of maximum deliveries. + */ maxDeliveryCount?: number; + /** + * Enumerates the possible values for the status of a messaging entity. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' + */ status?: string; + /** + * Value that indicates whether server-side batched operations are enabled. + */ enableBatchedOperations?: boolean; + /** + * ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum + * duration is 5 minutes. + */ autoDeleteOnIdle?: moment.Duration; + /** + * Queue/Topic name to forward the messages + */ forwardTo?: string; + /** + * Queue/Topic name to forward the Dead Letter message + */ forwardDeadLetteredMessagesTo?: string; } /** - * @class - * Initializes a new instance of the CheckNameAvailability class. - * @constructor * Description of a Check Name availability request properties. - * - * @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. */ export interface CheckNameAvailability { + /** + * 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; } /** - * @class - * Initializes a new instance of the CheckNameAvailabilityResult class. - * @constructor * Description of a Check Name availability request properties. - * - * @member {string} [message] The detailed info regarding the reason associated - * with the namespace. - * @member {boolean} [nameAvailable] Value indicating namespace is - * availability, true if the namespace is available; otherwise, false. - * @member {string} [reason] The reason for unavailability of a namespace. - * Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', - * 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription' */ export interface CheckNameAvailabilityResult { + /** + * The detailed info regarding the reason associated with the namespace. + */ readonly message?: string; + /** + * Value indicating namespace is availability, true if the namespace is available; otherwise, + * false. + */ nameAvailable?: boolean; + /** + * The reason for unavailability of a namespace. Possible values include: 'None', 'InvalidName', + * 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', + * 'TooManyNamespaceInCurrentSubscription' + */ reason?: string; } /** - * @class - * Initializes a new instance of the OperationDisplay class. - * @constructor * The object that represents the operation. - * - * @member {string} [provider] Service provider: Microsoft.ServiceBus - * @member {string} [resource] Resource on which the operation is performed: - * Invoice, etc. - * @member {string} [operation] Operation type: Read, write, delete, etc. */ export interface OperationDisplay { + /** + * Service provider: Microsoft.ServiceBus + */ readonly provider?: string; + /** + * Resource on which the operation is performed: Invoice, etc. + */ readonly resource?: string; + /** + * Operation type: Read, write, delete, etc. + */ readonly operation?: string; } /** - * @class - * Initializes a new instance of the Operation class. - * @constructor * A ServiceBus REST API operation - * - * @member {string} [name] Operation name: {provider}/{resource}/{operation} - * @member {object} [display] The object that represents the operation. - * @member {string} [display.provider] Service provider: Microsoft.ServiceBus - * @member {string} [display.resource] Resource on which the operation is - * performed: Invoice, etc. - * @member {string} [display.operation] Operation type: Read, write, delete, - * etc. */ export interface Operation { + /** + * Operation name: {provider}/{resource}/{operation} + */ readonly name?: string; + /** + * The object that represents the operation. + */ display?: OperationDisplay; } /** - * @class - * Initializes a new instance of the ErrorResponse class. - * @constructor - * Error reponse indicates ServiceBus service is not able to process the - * incoming request. The reason is provided in the error message. - * - * @member {string} [code] Error code. - * @member {string} [message] Error message indicating why the operation - * failed. + * Error response indicates ServiceBus service is not able to process the incoming request. The + * reason is provided in the error message. */ export interface ErrorResponse { + /** + * Error code. + */ code?: string; + /** + * Error message indicating why the operation failed. + */ message?: string; } /** - * @class - * Initializes a new instance of the Action class. - * @constructor - * Represents the filter actions which are allowed for the transformation of a - * message that have been matched by a filter expression. - * - * @member {string} [sqlExpression] SQL expression. e.g. MyProperty='ABC' - * @member {number} [compatibilityLevel] This property is reserved for future - * use. An integer value showing the compatibility level, currently hard-coded - * to 20. - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * Represents the filter actions which are allowed for the transformation of a message that have + * been matched by a filter expression. */ export interface Action { + /** + * SQL expression. e.g. MyProperty='ABC' + */ sqlExpression?: string; + /** + * This property is reserved for future use. An integer value showing the compatibility level, + * currently hard-coded to 20. + */ compatibilityLevel?: number; + /** + * Value that indicates whether the rule action requires preprocessing. + */ requiresPreprocessing?: boolean; } /** - * @class - * Initializes a new instance of the SqlFilter class. - * @constructor - * Represents a filter which is a composition of an expression and an action - * that is executed in the pub/sub pipeline. - * - * @member {string} [sqlExpression] The SQL expression. e.g. MyProperty='ABC' - * @member {number} [compatibilityLevel] This property is reserved for future - * use. An integer value showing the compatibility level, currently hard-coded - * to 20. Default value: 20 . - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * Represents a filter which is a composition of an expression and an action that is executed in + * the pub/sub pipeline. */ export interface SqlFilter { + /** + * The SQL expression. e.g. MyProperty='ABC' + */ sqlExpression?: string; + /** + * This property is reserved for future use. An integer value showing the compatibility level, + * currently hard-coded to 20. + */ readonly compatibilityLevel?: number; + /** + * Value that indicates whether the rule action requires preprocessing. + */ requiresPreprocessing?: boolean; } /** - * @class - * Initializes a new instance of the CorrelationFilter class. - * @constructor * Represents the correlation filter expression. - * - * @member {object} [properties] dictionary object for custom filters - * @member {string} [correlationId] Identifier of the correlation. - * @member {string} [messageId] Identifier of the message. - * @member {string} [to] Address to send to. - * @member {string} [replyTo] Address of the queue to reply to. - * @member {string} [label] Application specific label. - * @member {string} [sessionId] Session identifier. - * @member {string} [replyToSessionId] Session identifier to reply to. - * @member {string} [contentType] Content type of the message. - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . */ export interface CorrelationFilter { + /** + * dictionary object for custom filters + */ properties?: { [propertyName: string]: string }; + /** + * Identifier of the correlation. + */ correlationId?: string; + /** + * Identifier of the message. + */ messageId?: string; + /** + * Address to send to. + */ to?: string; + /** + * Address of the queue to reply to. + */ replyTo?: string; + /** + * Application specific label. + */ label?: string; + /** + * Session identifier. + */ sessionId?: string; + /** + * Session identifier to reply to. + */ replyToSessionId?: string; + /** + * Content type of the message. + */ contentType?: string; + /** + * Value that indicates whether the rule action requires preprocessing. + */ requiresPreprocessing?: boolean; } /** - * @class - * Initializes a new instance of the Rule class. - * @constructor * Description of Rule Resource. - * - * @member {object} [action] Represents the filter actions which are allowed - * for the transformation of a message that have been matched by a filter - * expression. - * @member {string} [action.sqlExpression] SQL expression. e.g. - * MyProperty='ABC' - * @member {number} [action.compatibilityLevel] This property is reserved for - * future use. An integer value showing the compatibility level, currently - * hard-coded to 20. - * @member {boolean} [action.requiresPreprocessing] Value that indicates - * whether the rule action requires preprocessing. - * @member {string} [filterType] Filter type that is evaluated against a - * BrokeredMessage. Possible values include: 'SqlFilter', 'CorrelationFilter' - * @member {object} [sqlFilter] Properties of sqlFilter - * @member {string} [sqlFilter.sqlExpression] The SQL expression. e.g. - * MyProperty='ABC' - * @member {number} [sqlFilter.compatibilityLevel] This property is reserved - * for future use. An integer value showing the compatibility level, currently - * hard-coded to 20. - * @member {boolean} [sqlFilter.requiresPreprocessing] Value that indicates - * whether the rule action requires preprocessing. - * @member {object} [correlationFilter] Properties of correlationFilter - * @member {object} [correlationFilter.properties] dictionary object for custom - * filters - * @member {string} [correlationFilter.correlationId] Identifier of the - * correlation. - * @member {string} [correlationFilter.messageId] Identifier of the message. - * @member {string} [correlationFilter.to] Address to send to. - * @member {string} [correlationFilter.replyTo] Address of the queue to reply - * to. - * @member {string} [correlationFilter.label] Application specific label. - * @member {string} [correlationFilter.sessionId] Session identifier. - * @member {string} [correlationFilter.replyToSessionId] Session identifier to - * reply to. - * @member {string} [correlationFilter.contentType] Content type of the - * message. - * @member {boolean} [correlationFilter.requiresPreprocessing] Value that - * indicates whether the rule action requires preprocessing. */ export interface Rule extends Resource { + /** + * Represents the filter actions which are allowed for the transformation of a message that have + * been matched by a filter expression. + */ action?: Action; + /** + * Filter type that is evaluated against a BrokeredMessage. Possible values include: 'SqlFilter', + * 'CorrelationFilter' + */ filterType?: string; + /** + * Properties of sqlFilter + */ sqlFilter?: SqlFilter; + /** + * Properties of correlationFilter + */ correlationFilter?: CorrelationFilter; } /** - * @class - * Initializes a new instance of the SqlRuleAction class. - * @constructor - * Represents set of actions written in SQL language-based syntax that is - * performed against a ServiceBus.Messaging.BrokeredMessage - * + * Represents set of actions written in SQL language-based syntax that is performed against a + * ServiceBus.Messaging.BrokeredMessage */ export interface SqlRuleAction extends Action { } -/** - * @class - * Initializes a new instance of the PremiumMessagingRegionsProperties class. - * @constructor - * @member {string} [code] Region code - * @member {string} [fullName] Full name of the region - */ export interface PremiumMessagingRegionsProperties { + /** + * Region code + */ readonly code?: string; + /** + * Full name of the region + */ readonly fullName?: string; } /** - * @class - * Initializes a new instance of the PremiumMessagingRegions class. - * @constructor * Premium Messaging Region - * - * @member {object} [properties] - * @member {string} [properties.code] Region code - * @member {string} [properties.fullName] Full name of the region - */ +*/ export interface PremiumMessagingRegions extends ResourceNamespacePatch { properties?: PremiumMessagingRegionsProperties; } /** - * @class - * Initializes a new instance of the Destination class. - * @constructor * Capture storage details for capture description - * - * @member {string} [name] Name for capture destination - * @member {string} [storageAccountResourceId] Resource id of the storage - * account to be used to create the blobs - * @member {string} [blobContainer] Blob container Name - * @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 - */ +*/ export interface Destination { + /** + * Name for capture destination + */ name?: string; + /** + * Resource id of the storage account to be used to create the blobs + */ storageAccountResourceId?: string; + /** + * Blob container Name + */ blobContainer?: string; + /** + * 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; } /** - * @class - * Initializes a new instance of the CaptureDescription class. - * @constructor * Properties to configure capture description for eventhub - * - * @member {boolean} [enabled] A value that indicates whether capture - * description is enabled. - * @member {string} [encoding] Enumerates the possible values for the encoding - * format of capture description. Possible values include: 'Avro', - * 'AvroDeflate' - * @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 - * @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 - * @member {object} [destination] Properties of Destination where capture will - * be stored. (Storage Account, Blob Names) - * @member {string} [destination.name] Name for capture destination - * @member {string} [destination.storageAccountResourceId] Resource id of the - * storage account to be used to create the blobs - * @member {string} [destination.blobContainer] Blob container Name - * @member {string} [destination.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 - */ +*/ export interface CaptureDescription { + /** + * A value that indicates whether capture description is enabled. + */ enabled?: boolean; + /** + * Enumerates the possible values for the encoding format of capture description. Possible values + * include: 'Avro', 'AvroDeflate' + */ encoding?: string; + /** + * 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; + /** + * 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; + /** + * Properties of Destination where capture will be stored. (Storage Account, Blob Names) + */ destination?: Destination; } /** - * @class - * Initializes a new instance of the Eventhub class. - * @constructor * Single item in List or Get Event Hub operation - * - * @member {array} [partitionIds] Current number of shards on the Event Hub. - * @member {date} [createdAt] Exact time the Event Hub was created. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {number} [messageRetentionInDays] Number of days to retain the - * events for this Event Hub, value should be 1 to 7 days - * @member {number} [partitionCount] Number of partitions created for the Event - * Hub, allowed values are from 1 to 32 partitions. - * @member {string} [status] Enumerates the possible values for the status of - * the Event Hub. Possible values include: 'Active', 'Disabled', 'Restoring', - * 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', - * 'Unknown' - * @member {object} [captureDescription] Properties of capture description - * @member {boolean} [captureDescription.enabled] A value that indicates - * whether capture description is enabled. - * @member {string} [captureDescription.encoding] Enumerates the possible - * values for the encoding format of capture description. Possible values - * include: 'Avro', 'AvroDeflate' - * @member {number} [captureDescription.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 - * @member {number} [captureDescription.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 - * @member {object} [captureDescription.destination] Properties of Destination - * where capture will be stored. (Storage Account, Blob Names) - * @member {string} [captureDescription.destination.name] Name for capture - * destination - * @member {string} [captureDescription.destination.storageAccountResourceId] - * Resource id of the storage account to be used to create the blobs - * @member {string} [captureDescription.destination.blobContainer] Blob - * container Name - * @member {string} [captureDescription.destination.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 - */ +*/ export interface Eventhub extends Resource { + /** + * Current number of shards on the Event Hub. + */ readonly partitionIds?: string[]; + /** + * Exact time the Event Hub was created. + */ readonly createdAt?: Date; + /** + * The exact time the message was updated. + */ readonly updatedAt?: Date; + /** + * Number of days to retain the events for this Event Hub, value should be 1 to 7 days + */ messageRetentionInDays?: number; + /** + * Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. + */ partitionCount?: number; + /** + * Enumerates the possible values for the status of the Event Hub. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' + */ status?: string; + /** + * Properties of capture description + */ captureDescription?: CaptureDescription; } /** - * @class - * Initializes a new instance of the ArmDisasterRecovery class. - * @constructor * Single item in List or Get Alias(Disaster Recovery configuration) operation - * - * @member {string} [provisioningState] Provisioning state of the - * Alias(Disaster Recovery configuration) - possible values 'Accepted' or - * 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', - * 'Failed' - * @member {number} [pendingReplicationOperationsCount] Number of entities - * pending to be replicated. - * @member {string} [partnerNamespace] ARM Id of the Primary/Secondary eventhub - * namespace name, which is part of GEO DR pairning - * @member {string} [alternateName] Primary/Secondary eventhub namespace name, - * which is part of GEO DR pairning - * @member {string} [role] role of namespace in GEO DR - possible values - * 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values - * include: 'Primary', 'PrimaryNotReplicating', 'Secondary' - */ +*/ export interface ArmDisasterRecovery extends Resource { + /** + * Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' + * or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' + */ readonly provisioningState?: string; + /** + * Number of entities pending to be replicated. + */ readonly pendingReplicationOperationsCount?: number; + /** + * ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing + */ partnerNamespace?: string; + /** + * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing + */ alternateName?: string; + /** + * role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or + * 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' + */ readonly role?: string; } /** - * @class - * Initializes a new instance of the MigrationConfigProperties class. - * @constructor * Single item in List or Get Migration Config operation - * - * @member {string} [provisioningState] Provisioning state of Migration - * Configuration - * @member {number} [pendingReplicationOperationsCount] Number of entities - * pending to be replicated. - * @member {string} targetNamespace Existing premium Namespace ARM Id name - * which has no entities, will be used for migration - * @member {string} postMigrationName Name to access Standard Namespace after - * migration - * @member {string} [migrationState] State in which Standard to Premium - * Migration is, possible values : Unknown, Reverting, Completing, Initiating, - * Syncing, Active - */ +*/ export interface MigrationConfigProperties extends Resource { + /** + * Provisioning state of Migration Configuration + */ readonly provisioningState?: string; + /** + * Number of entities pending to be replicated. + */ readonly pendingReplicationOperationsCount?: number; + /** + * Existing premium Namespace ARM Id name which has no entities, will be used for migration + */ targetNamespace: string; + /** + * Name to access Standard Namespace after migration + */ postMigrationName: string; + /** + * State in which Standard to Premium Migration is, possible values : Unknown, Reverting, + * Completing, Initiating, Syncing, Active + */ readonly migrationState?: string; } +/** + * Properties supplied for Subnet +*/ +export interface Subnet { + /** + * Resource ID of Virtual Network Subnet + */ + id: string; +} /** - * @class - * Initializes a new instance of the OperationListResult class. - * @constructor - * 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. - * - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ + * Description of NetWorkRuleSet - IpRules resource. +*/ +export interface NWRuleSetIpRules { + /** + * IP Mask + */ + ipMask?: string; + /** + * The IP Filter Action. Possible values include: 'Allow' + */ + action?: string; +} + +/** + * 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?: string; + /** + * List VirtualNetwork Rules + */ + virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; + /** + * List of IpRules + */ + ipRules?: NWRuleSetIpRules[]; +} + +/** + * 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. +*/ export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the SBNamespaceListResult class. - * @constructor * The response of the List Namespace operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Namespaces. - */ +*/ export interface SBNamespaceListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of Namespaces. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the SBAuthorizationRuleListResult class. - * @constructor * The response to the List Namespace operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Authorization Rules. - */ +*/ export interface SBAuthorizationRuleListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of Authorization + * Rules. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ArmDisasterRecoveryListResult class. - * @constructor * The result of the List Alias(Disaster Recovery configuration) operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Alias(Disaster Recovery configuration) - */ +*/ export interface ArmDisasterRecoveryListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster + * Recovery configuration) + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the MigrationConfigListResult class. - * @constructor * The result of the List migrationConfigurations operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of migrationConfigurations - */ +*/ export interface MigrationConfigListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of + * migrationConfigurations + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the SBQueueListResult class. - * @constructor * The response to the List Queues operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of queues. - */ +*/ export interface SBQueueListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of queues. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the SBTopicListResult class. - * @constructor * The response to the List Topics operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of topics. - */ +*/ export interface SBTopicListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of topics. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the SBSubscriptionListResult class. - * @constructor * The response to the List Subscriptions operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of subscriptions. - */ +*/ export interface SBSubscriptionListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of subscriptions. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the RuleListResult class. - * @constructor * The response of the List rule operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of rules - */ +*/ export interface RuleListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of rules + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the PremiumMessagingRegionsListResult class. - * @constructor * The response of the List PremiumMessagingRegions operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of PremiumMessagingRegions. - */ +*/ export interface PremiumMessagingRegionsListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of + * PremiumMessagingRegions. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the EventHubListResult class. - * @constructor * The result of the List EventHubs operation. - * - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of EventHubs. - */ +*/ export interface EventHubListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of EventHubs. + */ readonly nextLink?: string; } diff --git a/lib/services/serviceBusManagement2/lib/models/index.js b/lib/services/serviceBusManagement2/lib/models/index.js index 06995f9860..b8d762adfd 100644 --- a/lib/services/serviceBusManagement2/lib/models/index.js +++ b/lib/services/serviceBusManagement2/lib/models/index.js @@ -50,6 +50,10 @@ exports.CaptureDescription = require('./captureDescription'); exports.Eventhub = require('./eventhub'); exports.ArmDisasterRecovery = require('./armDisasterRecovery'); exports.MigrationConfigProperties = require('./migrationConfigProperties'); +exports.Subnet = require('./subnet'); +exports.NWRuleSetIpRules = require('./nWRuleSetIpRules'); +exports.NWRuleSetVirtualNetworkRules = require('./nWRuleSetVirtualNetworkRules'); +exports.NetworkRuleSet = require('./networkRuleSet'); exports.OperationListResult = require('./operationListResult'); exports.SBNamespaceListResult = require('./sBNamespaceListResult'); exports.SBAuthorizationRuleListResult = require('./sBAuthorizationRuleListResult'); diff --git a/lib/services/serviceBusManagement2/lib/models/messageCountDetails.js b/lib/services/serviceBusManagement2/lib/models/messageCountDetails.js index f116fae910..ffc35d05c8 100644 --- a/lib/services/serviceBusManagement2/lib/models/messageCountDetails.js +++ b/lib/services/serviceBusManagement2/lib/models/messageCountDetails.js @@ -17,14 +17,14 @@ class MessageCountDetails { /** * Create a MessageCountDetails. - * @member {number} [activeMessageCount] Number of active messages in the + * @property {number} [activeMessageCount] Number of active messages in the * queue, topic, or subscription. - * @member {number} [deadLetterMessageCount] Number of messages that are dead - * lettered. - * @member {number} [scheduledMessageCount] Number of scheduled messages. - * @member {number} [transferMessageCount] Number of messages transferred to - * another queue, topic, or subscription. - * @member {number} [transferDeadLetterMessageCount] Number of messages + * @property {number} [deadLetterMessageCount] Number of messages that are + * dead lettered. + * @property {number} [scheduledMessageCount] Number of scheduled messages. + * @property {number} [transferMessageCount] Number of messages transferred + * to another queue, topic, or subscription. + * @property {number} [transferDeadLetterMessageCount] Number of messages * transferred into dead letters. */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/migrationConfigListResult.js b/lib/services/serviceBusManagement2/lib/models/migrationConfigListResult.js index b6e1711ccb..322a60be33 100644 --- a/lib/services/serviceBusManagement2/lib/models/migrationConfigListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/migrationConfigListResult.js @@ -16,8 +16,8 @@ class MigrationConfigListResult extends Array { /** * Create a MigrationConfigListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of migrationConfigurations + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of migrationConfigurations */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/migrationConfigProperties.js b/lib/services/serviceBusManagement2/lib/models/migrationConfigProperties.js index 156dbaf167..378102c150 100644 --- a/lib/services/serviceBusManagement2/lib/models/migrationConfigProperties.js +++ b/lib/services/serviceBusManagement2/lib/models/migrationConfigProperties.js @@ -20,15 +20,15 @@ const models = require('./index'); class MigrationConfigProperties extends models['Resource'] { /** * Create a MigrationConfigProperties. - * @member {string} [provisioningState] Provisioning state of Migration + * @property {string} [provisioningState] Provisioning state of Migration * Configuration - * @member {number} [pendingReplicationOperationsCount] Number of entities + * @property {number} [pendingReplicationOperationsCount] Number of entities * pending to be replicated. - * @member {string} targetNamespace Existing premium Namespace ARM Id name + * @property {string} targetNamespace Existing premium Namespace ARM Id name * which has no entities, will be used for migration - * @member {string} postMigrationName Name to access Standard Namespace after - * migration - * @member {string} [migrationState] State in which Standard to Premium + * @property {string} postMigrationName Name to access Standard Namespace + * after migration + * @property {string} [migrationState] State in which Standard to Premium * Migration is, possible values : Unknown, Reverting, Completing, * Initiating, Syncing, Active */ diff --git a/lib/services/serviceBusManagement2/lib/models/nWRuleSetIpRules.js b/lib/services/serviceBusManagement2/lib/models/nWRuleSetIpRules.js new file mode 100644 index 0000000000..2730346718 --- /dev/null +++ b/lib/services/serviceBusManagement2/lib/models/nWRuleSetIpRules.js @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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. + */ + +'use strict'; + +/** + * Description of NetWorkRuleSet - IpRules resource. + * + */ +class NWRuleSetIpRules { + /** + * Create a NWRuleSetIpRules. + * @property {string} [ipMask] IP Mask + * @property {string} [action] The IP Filter Action. Possible values include: + * 'Allow'. Default value: 'Allow' . + */ + constructor() { + } + + /** + * Defines the metadata of NWRuleSetIpRules + * + * @returns {object} metadata of NWRuleSetIpRules + * + */ + mapper() { + return { + required: false, + serializedName: 'NWRuleSetIpRules', + type: { + name: 'Composite', + className: 'NWRuleSetIpRules', + modelProperties: { + ipMask: { + required: false, + serializedName: 'ipMask', + type: { + name: 'String' + } + }, + action: { + required: false, + serializedName: 'action', + defaultValue: 'Allow', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = NWRuleSetIpRules; diff --git a/lib/services/serviceBusManagement2/lib/models/nWRuleSetVirtualNetworkRules.js b/lib/services/serviceBusManagement2/lib/models/nWRuleSetVirtualNetworkRules.js new file mode 100644 index 0000000000..c933947def --- /dev/null +++ b/lib/services/serviceBusManagement2/lib/models/nWRuleSetVirtualNetworkRules.js @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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. + */ + +'use strict'; + +/** + * Description of VirtualNetworkRules - NetworkRules resource. + * + */ +class NWRuleSetVirtualNetworkRules { + /** + * Create a NWRuleSetVirtualNetworkRules. + * @property {object} [subnet] Subnet properties + * @property {string} [subnet.id] Resource ID of Virtual Network Subnet + * @property {boolean} [ignoreMissingVnetServiceEndpoint] Value that + * indicates whether to ignore missing VNet Service Endpoint + */ + constructor() { + } + + /** + * Defines the metadata of NWRuleSetVirtualNetworkRules + * + * @returns {object} metadata of NWRuleSetVirtualNetworkRules + * + */ + mapper() { + return { + required: false, + serializedName: 'NWRuleSetVirtualNetworkRules', + type: { + name: 'Composite', + className: 'NWRuleSetVirtualNetworkRules', + modelProperties: { + subnet: { + required: false, + serializedName: 'subnet', + type: { + name: 'Composite', + className: 'Subnet' + } + }, + ignoreMissingVnetServiceEndpoint: { + required: false, + serializedName: 'ignoreMissingVnetServiceEndpoint', + type: { + name: 'Boolean' + } + } + } + } + }; + } +} + +module.exports = NWRuleSetVirtualNetworkRules; diff --git a/lib/services/serviceBusManagement2/lib/models/networkRuleSet.js b/lib/services/serviceBusManagement2/lib/models/networkRuleSet.js new file mode 100644 index 0000000000..f5a80f65ee --- /dev/null +++ b/lib/services/serviceBusManagement2/lib/models/networkRuleSet.js @@ -0,0 +1,113 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Description of NetworkRuleSet resource. + * + * @extends models['Resource'] + */ +class NetworkRuleSet extends models['Resource'] { + /** + * Create a NetworkRuleSet. + * @property {string} [defaultAction] Default Action for Network Rule Set. + * Possible values include: 'Allow', 'Deny' + * @property {array} [virtualNetworkRules] List VirtualNetwork Rules + * @property {array} [ipRules] List of IpRules + */ + constructor() { + super(); + } + + /** + * Defines the metadata of NetworkRuleSet + * + * @returns {object} metadata of NetworkRuleSet + * + */ + mapper() { + return { + required: false, + serializedName: 'NetworkRuleSet', + type: { + name: 'Composite', + className: 'NetworkRuleSet', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + defaultAction: { + required: false, + serializedName: 'properties.defaultAction', + type: { + name: 'String' + } + }, + virtualNetworkRules: { + required: false, + serializedName: 'properties.virtualNetworkRules', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NWRuleSetVirtualNetworkRulesElementType', + type: { + name: 'Composite', + className: 'NWRuleSetVirtualNetworkRules' + } + } + } + }, + ipRules: { + required: false, + serializedName: 'properties.ipRules', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'NWRuleSetIpRulesElementType', + type: { + name: 'Composite', + className: 'NWRuleSetIpRules' + } + } + } + } + } + } + }; + } +} + +module.exports = NetworkRuleSet; diff --git a/lib/services/serviceBusManagement2/lib/models/operation.js b/lib/services/serviceBusManagement2/lib/models/operation.js index f1569bdb5c..49919f3e3b 100644 --- a/lib/services/serviceBusManagement2/lib/models/operation.js +++ b/lib/services/serviceBusManagement2/lib/models/operation.js @@ -17,13 +17,15 @@ class Operation { /** * Create a Operation. - * @member {string} [name] Operation name: {provider}/{resource}/{operation} - * @member {object} [display] The object that represents the operation. - * @member {string} [display.provider] Service provider: Microsoft.ServiceBus - * @member {string} [display.resource] Resource on which the operation is + * @property {string} [name] Operation name: + * {provider}/{resource}/{operation} + * @property {object} [display] The object that represents the operation. + * @property {string} [display.provider] Service provider: + * Microsoft.ServiceBus + * @property {string} [display.resource] Resource on which the operation is * performed: Invoice, etc. - * @member {string} [display.operation] Operation type: Read, write, delete, - * etc. + * @property {string} [display.operation] Operation type: Read, write, + * delete, etc. */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/operationDisplay.js b/lib/services/serviceBusManagement2/lib/models/operationDisplay.js index 0c973bf0b8..665e299961 100644 --- a/lib/services/serviceBusManagement2/lib/models/operationDisplay.js +++ b/lib/services/serviceBusManagement2/lib/models/operationDisplay.js @@ -17,10 +17,10 @@ class OperationDisplay { /** * Create a OperationDisplay. - * @member {string} [provider] Service provider: Microsoft.ServiceBus - * @member {string} [resource] Resource on which the operation is performed: - * Invoice, etc. - * @member {string} [operation] Operation type: Read, write, delete, etc. + * @property {string} [provider] Service provider: Microsoft.ServiceBus + * @property {string} [resource] Resource on which the operation is + * performed: Invoice, etc. + * @property {string} [operation] Operation type: Read, write, delete, etc. */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/operationListResult.js b/lib/services/serviceBusManagement2/lib/models/operationListResult.js index 38b3fbf262..d93f1a752e 100644 --- a/lib/services/serviceBusManagement2/lib/models/operationListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/operationListResult.js @@ -17,7 +17,7 @@ class OperationListResult extends Array { /** * Create a OperationListResult. - * @member {string} [nextLink] URL to get the next set of operation list + * @property {string} [nextLink] URL to get the next set of operation list * results if there are any. */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegions.js b/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegions.js index 0c7e9f2d14..3bc0e3a6ec 100644 --- a/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegions.js +++ b/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegions.js @@ -20,9 +20,9 @@ const models = require('./index'); class PremiumMessagingRegions extends models['ResourceNamespacePatch'] { /** * Create a PremiumMessagingRegions. - * @member {object} [properties] - * @member {string} [properties.code] Region code - * @member {string} [properties.fullName] Full name of the region + * @property {object} [properties] + * @property {string} [properties.code] Region code + * @property {string} [properties.fullName] Full name of the region */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsListResult.js b/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsListResult.js index 86f0f09e17..e9fe0b1471 100644 --- a/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsListResult.js @@ -16,8 +16,8 @@ class PremiumMessagingRegionsListResult extends Array { /** * Create a PremiumMessagingRegionsListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of PremiumMessagingRegions. + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of PremiumMessagingRegions. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsProperties.js b/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsProperties.js index 2ceeccfca5..1df121bf06 100644 --- a/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsProperties.js +++ b/lib/services/serviceBusManagement2/lib/models/premiumMessagingRegionsProperties.js @@ -16,8 +16,8 @@ class PremiumMessagingRegionsProperties { /** * Create a PremiumMessagingRegionsProperties. - * @member {string} [code] Region code - * @member {string} [fullName] Full name of the region + * @property {string} [code] Region code + * @property {string} [fullName] Full name of the region */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/regenerateAccessKeyParameters.js b/lib/services/serviceBusManagement2/lib/models/regenerateAccessKeyParameters.js index e3359939d1..938f87ba3e 100644 --- a/lib/services/serviceBusManagement2/lib/models/regenerateAccessKeyParameters.js +++ b/lib/services/serviceBusManagement2/lib/models/regenerateAccessKeyParameters.js @@ -12,15 +12,15 @@ /** * Parameters supplied to the Regenerate Authorization Rule operation, - * specifies which key neeeds to be reset. + * specifies which key needs to be reset. * */ class RegenerateAccessKeyParameters { /** * Create a RegenerateAccessKeyParameters. - * @member {string} keyType The access key to regenerate. Possible values + * @property {string} keyType The access key to regenerate. Possible values * include: 'PrimaryKey', 'SecondaryKey' - * @member {string} [key] Optional, if the key value provided, is reset for + * @property {string} [key] Optional, if the key value provided, is reset for * KeyType value or autogenerate Key value set for keyType */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/resource.js b/lib/services/serviceBusManagement2/lib/models/resource.js index 45c9dd0dc2..0eb59b691b 100644 --- a/lib/services/serviceBusManagement2/lib/models/resource.js +++ b/lib/services/serviceBusManagement2/lib/models/resource.js @@ -20,9 +20,9 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/resourceNamespacePatch.js b/lib/services/serviceBusManagement2/lib/models/resourceNamespacePatch.js index a11fd7d271..e7e7fd9291 100644 --- a/lib/services/serviceBusManagement2/lib/models/resourceNamespacePatch.js +++ b/lib/services/serviceBusManagement2/lib/models/resourceNamespacePatch.js @@ -20,8 +20,8 @@ const models = require('./index'); class ResourceNamespacePatch extends models['Resource'] { /** * Create a ResourceNamespacePatch. - * @member {string} [location] Resource location - * @member {object} [tags] Resource tags + * @property {string} [location] Resource location + * @property {object} [tags] Resource tags */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/rule.js b/lib/services/serviceBusManagement2/lib/models/rule.js index 119a83310b..287a6d0d94 100644 --- a/lib/services/serviceBusManagement2/lib/models/rule.js +++ b/lib/services/serviceBusManagement2/lib/models/rule.js @@ -20,42 +20,43 @@ const models = require('./index'); class Rule extends models['Resource'] { /** * Create a Rule. - * @member {object} [action] Represents the filter actions which are allowed - * for the transformation of a message that have been matched by a filter - * expression. - * @member {string} [action.sqlExpression] SQL expression. e.g. + * @property {object} [action] Represents the filter actions which are + * allowed for the transformation of a message that have been matched by a + * filter expression. + * @property {string} [action.sqlExpression] SQL expression. e.g. * MyProperty='ABC' - * @member {number} [action.compatibilityLevel] This property is reserved for - * future use. An integer value showing the compatibility level, currently - * hard-coded to 20. - * @member {boolean} [action.requiresPreprocessing] Value that indicates + * @property {number} [action.compatibilityLevel] This property is reserved + * for future use. An integer value showing the compatibility level, + * currently hard-coded to 20. + * @property {boolean} [action.requiresPreprocessing] Value that indicates * whether the rule action requires preprocessing. - * @member {string} [filterType] Filter type that is evaluated against a + * @property {string} [filterType] Filter type that is evaluated against a * BrokeredMessage. Possible values include: 'SqlFilter', 'CorrelationFilter' - * @member {object} [sqlFilter] Properties of sqlFilter - * @member {string} [sqlFilter.sqlExpression] The SQL expression. e.g. + * @property {object} [sqlFilter] Properties of sqlFilter + * @property {string} [sqlFilter.sqlExpression] The SQL expression. e.g. * MyProperty='ABC' - * @member {number} [sqlFilter.compatibilityLevel] This property is reserved - * for future use. An integer value showing the compatibility level, + * @property {number} [sqlFilter.compatibilityLevel] This property is + * reserved for future use. An integer value showing the compatibility level, * currently hard-coded to 20. - * @member {boolean} [sqlFilter.requiresPreprocessing] Value that indicates + * @property {boolean} [sqlFilter.requiresPreprocessing] Value that indicates * whether the rule action requires preprocessing. - * @member {object} [correlationFilter] Properties of correlationFilter - * @member {object} [correlationFilter.properties] dictionary object for + * @property {object} [correlationFilter] Properties of correlationFilter + * @property {object} [correlationFilter.properties] dictionary object for * custom filters - * @member {string} [correlationFilter.correlationId] Identifier of the + * @property {string} [correlationFilter.correlationId] Identifier of the * correlation. - * @member {string} [correlationFilter.messageId] Identifier of the message. - * @member {string} [correlationFilter.to] Address to send to. - * @member {string} [correlationFilter.replyTo] Address of the queue to reply - * to. - * @member {string} [correlationFilter.label] Application specific label. - * @member {string} [correlationFilter.sessionId] Session identifier. - * @member {string} [correlationFilter.replyToSessionId] Session identifier + * @property {string} [correlationFilter.messageId] Identifier of the + * message. + * @property {string} [correlationFilter.to] Address to send to. + * @property {string} [correlationFilter.replyTo] Address of the queue to + * reply to. + * @property {string} [correlationFilter.label] Application specific label. + * @property {string} [correlationFilter.sessionId] Session identifier. + * @property {string} [correlationFilter.replyToSessionId] Session identifier * to reply to. - * @member {string} [correlationFilter.contentType] Content type of the + * @property {string} [correlationFilter.contentType] Content type of the * message. - * @member {boolean} [correlationFilter.requiresPreprocessing] Value that + * @property {boolean} [correlationFilter.requiresPreprocessing] Value that * indicates whether the rule action requires preprocessing. */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/ruleListResult.js b/lib/services/serviceBusManagement2/lib/models/ruleListResult.js index 848e8a35c6..bc68f4e6f3 100644 --- a/lib/services/serviceBusManagement2/lib/models/ruleListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/ruleListResult.js @@ -16,8 +16,8 @@ class RuleListResult extends Array { /** * Create a RuleListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of rules + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of rules */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRule.js b/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRule.js index 5dbfe48666..b1328e6da9 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRule.js +++ b/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRule.js @@ -20,7 +20,7 @@ const models = require('./index'); class SBAuthorizationRule extends models['Resource'] { /** * Create a SBAuthorizationRule. - * @member {array} rights The rights associated with the rule. + * @property {array} rights The rights associated with the rule. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRuleListResult.js b/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRuleListResult.js index 751bb37d90..58c32b8c3f 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRuleListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/sBAuthorizationRuleListResult.js @@ -16,8 +16,8 @@ class SBAuthorizationRuleListResult extends Array { /** * Create a SBAuthorizationRuleListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Authorization Rules. + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of Authorization Rules. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBNamespace.js b/lib/services/serviceBusManagement2/lib/models/sBNamespace.js index 7150f9737a..10bdfe59bd 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBNamespace.js +++ b/lib/services/serviceBusManagement2/lib/models/sBNamespace.js @@ -20,19 +20,20 @@ const models = require('./index'); class SBNamespace extends models['TrackedResource'] { /** * Create a SBNamespace. - * @member {object} [sku] Porperties of Sku - * @member {string} [sku.name] Name of this SKU. Possible values include: + * @property {object} [sku] Properties of Sku + * @property {string} [sku.name] Name of this SKU. Possible values include: * 'Basic', 'Standard', 'Premium' - * @member {string} [sku.tier] The billing tier of this particular SKU. + * @property {string} [sku.tier] The billing tier of this particular SKU. * Possible values include: 'Basic', 'Standard', 'Premium' - * @member {number} [sku.capacity] The specified messaging units for the + * @property {number} [sku.capacity] The specified messaging units for the * tier. For Premium tier, capacity are 1,2 and 4. - * @member {string} [provisioningState] Provisioning state of the namespace. - * @member {date} [createdAt] The time the namespace was created. - * @member {date} [updatedAt] The time the namespace was updated. - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform + * @property {string} [provisioningState] Provisioning state of the + * namespace. + * @property {date} [createdAt] The time the namespace was created. + * @property {date} [updatedAt] The time the namespace was updated. + * @property {string} [serviceBusEndpoint] Endpoint you can use to perform * Service Bus operations. - * @member {string} [metricId] Identifier for Azure Insights metrics + * @property {string} [metricId] Identifier for Azure Insights metrics */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBNamespaceListResult.js b/lib/services/serviceBusManagement2/lib/models/sBNamespaceListResult.js index 9378b3b8a5..2c23460da8 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBNamespaceListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/sBNamespaceListResult.js @@ -16,8 +16,8 @@ class SBNamespaceListResult extends Array { /** * Create a SBNamespaceListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of Namespaces. + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of Namespaces. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBNamespaceMigrate.js b/lib/services/serviceBusManagement2/lib/models/sBNamespaceMigrate.js index c5c45aef82..e6b3f4ba00 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBNamespaceMigrate.js +++ b/lib/services/serviceBusManagement2/lib/models/sBNamespaceMigrate.js @@ -17,7 +17,7 @@ class SBNamespaceMigrate { /** * Create a SBNamespaceMigrate. - * @member {string} targetNamespaceType Type of namespaces. Possible values + * @property {string} targetNamespaceType Type of namespaces. Possible values * include: 'Messaging', 'NotificationHub', 'Mixed', 'EventHub', 'Relay' */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/sBNamespaceUpdateParameters.js b/lib/services/serviceBusManagement2/lib/models/sBNamespaceUpdateParameters.js index a74b37faeb..a19493b5f6 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBNamespaceUpdateParameters.js +++ b/lib/services/serviceBusManagement2/lib/models/sBNamespaceUpdateParameters.js @@ -20,19 +20,20 @@ const models = require('./index'); class SBNamespaceUpdateParameters extends models['ResourceNamespacePatch'] { /** * Create a SBNamespaceUpdateParameters. - * @member {object} [sku] Porperties of Sku - * @member {string} [sku.name] Name of this SKU. Possible values include: + * @property {object} [sku] Properties of Sku + * @property {string} [sku.name] Name of this SKU. Possible values include: * 'Basic', 'Standard', 'Premium' - * @member {string} [sku.tier] The billing tier of this particular SKU. + * @property {string} [sku.tier] The billing tier of this particular SKU. * Possible values include: 'Basic', 'Standard', 'Premium' - * @member {number} [sku.capacity] The specified messaging units for the + * @property {number} [sku.capacity] The specified messaging units for the * tier. For Premium tier, capacity are 1,2 and 4. - * @member {string} [provisioningState] Provisioning state of the namespace. - * @member {date} [createdAt] The time the namespace was created. - * @member {date} [updatedAt] The time the namespace was updated. - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform + * @property {string} [provisioningState] Provisioning state of the + * namespace. + * @property {date} [createdAt] The time the namespace was created. + * @property {date} [updatedAt] The time the namespace was updated. + * @property {string} [serviceBusEndpoint] Endpoint you can use to perform * Service Bus operations. - * @member {string} [metricId] Identifier for Azure Insights metrics + * @property {string} [metricId] Identifier for Azure Insights metrics */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBQueue.js b/lib/services/serviceBusManagement2/lib/models/sBQueue.js index 0d903b1054..cc62d937de 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBQueue.js +++ b/lib/services/serviceBusManagement2/lib/models/sBQueue.js @@ -20,64 +20,64 @@ const models = require('./index'); class SBQueue extends models['Resource'] { /** * Create a SBQueue. - * @member {object} [countDetails] Message Count Details. - * @member {number} [countDetails.activeMessageCount] Number of active + * @property {object} [countDetails] Message Count Details. + * @property {number} [countDetails.activeMessageCount] Number of active * messages in the queue, topic, or subscription. - * @member {number} [countDetails.deadLetterMessageCount] Number of messages - * that are dead lettered. - * @member {number} [countDetails.scheduledMessageCount] Number of scheduled - * messages. - * @member {number} [countDetails.transferMessageCount] Number of messages + * @property {number} [countDetails.deadLetterMessageCount] Number of + * messages that are dead lettered. + * @property {number} [countDetails.scheduledMessageCount] Number of + * scheduled messages. + * @property {number} [countDetails.transferMessageCount] Number of messages * transferred to another queue, topic, or subscription. - * @member {number} [countDetails.transferDeadLetterMessageCount] Number of + * @property {number} [countDetails.transferDeadLetterMessageCount] Number of * messages transferred into dead letters. - * @member {date} [createdAt] The exact time the message was created. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {date} [accessedAt] Last time a message was sent, or the last time - * there was a receive request to this queue. - * @member {number} [sizeInBytes] The size of the queue, in bytes. - * @member {number} [messageCount] The number of messages in the queue. - * @member {moment.duration} [lockDuration] ISO 8601 timespan duration of a + * @property {date} [createdAt] The exact time the message was created. + * @property {date} [updatedAt] The exact time the message was updated. + * @property {date} [accessedAt] Last time a message was sent, or the last + * time there was a receive request to this queue. + * @property {number} [sizeInBytes] The size of the queue, in bytes. + * @property {number} [messageCount] The number of messages in the queue. + * @property {moment.duration} [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. - * @member {number} [maxSizeInMegabytes] The maximum size of the queue in + * @property {number} [maxSizeInMegabytes] The maximum size of the queue in * megabytes, which is the size of memory allocated for the queue. Default is * 1024. - * @member {boolean} [requiresDuplicateDetection] A value indicating if this - * queue requires duplicate detection. - * @member {boolean} [requiresSession] A value that indicates whether the + * @property {boolean} [requiresDuplicateDetection] A value indicating if + * this queue requires duplicate detection. + * @property {boolean} [requiresSession] A value that indicates whether the * queue supports the concept of sessions. - * @member {moment.duration} [defaultMessageTimeToLive] ISO 8601 default + * @property {moment.duration} [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. - * @member {boolean} [deadLetteringOnMessageExpiration] A value that + * @property {boolean} [deadLetteringOnMessageExpiration] A value that * indicates whether this queue has dead letter support when a message * expires. - * @member {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO 8601 + * @property {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO 8601 * timeSpan structure that defines the duration of the duplicate detection * history. The default value is 10 minutes. - * @member {number} [maxDeliveryCount] The maximum delivery count. A message - * is automatically deadlettered after this number of deliveries. default - * value is 10. - * @member {string} [status] Enumerates the possible values for the status of - * a messaging entity. Possible values include: 'Active', 'Disabled', + * @property {number} [maxDeliveryCount] The maximum delivery count. A + * message is automatically deadlettered after this number of deliveries. + * default value is 10. + * @property {string} [status] Enumerates the possible values for the status + * of a messaging entity. Possible values include: 'Active', 'Disabled', * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', * 'Renaming', 'Unknown' - * @member {boolean} [enableBatchedOperations] Value that indicates whether + * @property {boolean} [enableBatchedOperations] Value that indicates whether * server-side batched operations are enabled. - * @member {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle + * @property {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle * interval after which the queue is automatically deleted. The minimum * duration is 5 minutes. - * @member {boolean} [enablePartitioning] A value that indicates whether the - * queue is to be partitioned across multiple message brokers. - * @member {boolean} [enableExpress] A value that indicates whether Express + * @property {boolean} [enablePartitioning] A value that indicates whether + * the queue is to be partitioned across multiple message brokers. + * @property {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. - * @member {string} [forwardTo] Queue/Topic name to forward the messages - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to + * @property {string} [forwardTo] Queue/Topic name to forward the messages + * @property {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to * forward the Dead Letter message */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/sBQueueListResult.js b/lib/services/serviceBusManagement2/lib/models/sBQueueListResult.js index 9bcb8c8592..dd45db242c 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBQueueListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/sBQueueListResult.js @@ -16,8 +16,8 @@ class SBQueueListResult extends Array { /** * Create a SBQueueListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of queues. + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of queues. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBSku.js b/lib/services/serviceBusManagement2/lib/models/sBSku.js index 3b6f9c70a1..77f0e12563 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBSku.js +++ b/lib/services/serviceBusManagement2/lib/models/sBSku.js @@ -17,11 +17,11 @@ class SBSku { /** * Create a SBSku. - * @member {string} name Name of this SKU. Possible values include: 'Basic', - * 'Standard', 'Premium' - * @member {string} [tier] The billing tier of this particular SKU. Possible - * values include: 'Basic', 'Standard', 'Premium' - * @member {number} [capacity] The specified messaging units for the tier. + * @property {string} name Name of this SKU. Possible values include: + * 'Basic', 'Standard', 'Premium' + * @property {string} [tier] The billing tier of this particular SKU. + * Possible values include: 'Basic', 'Standard', 'Premium' + * @property {number} [capacity] The specified messaging units for the tier. * For Premium tier, capacity are 1,2 and 4. */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/sBSubscription.js b/lib/services/serviceBusManagement2/lib/models/sBSubscription.js index 075b0e9a41..b01fb546d7 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBSubscription.js +++ b/lib/services/serviceBusManagement2/lib/models/sBSubscription.js @@ -20,51 +20,52 @@ const models = require('./index'); class SBSubscription extends models['Resource'] { /** * Create a SBSubscription. - * @member {number} [messageCount] Number of messages. - * @member {date} [createdAt] Exact time the message was created. - * @member {date} [accessedAt] Last time there was a receive request to this - * subscription. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {object} [countDetails] Message count details - * @member {number} [countDetails.activeMessageCount] Number of active + * @property {number} [messageCount] Number of messages. + * @property {date} [createdAt] Exact time the message was created. + * @property {date} [accessedAt] Last time there was a receive request to + * this subscription. + * @property {date} [updatedAt] The exact time the message was updated. + * @property {object} [countDetails] Message count details + * @property {number} [countDetails.activeMessageCount] Number of active * messages in the queue, topic, or subscription. - * @member {number} [countDetails.deadLetterMessageCount] Number of messages - * that are dead lettered. - * @member {number} [countDetails.scheduledMessageCount] Number of scheduled - * messages. - * @member {number} [countDetails.transferMessageCount] Number of messages + * @property {number} [countDetails.deadLetterMessageCount] Number of + * messages that are dead lettered. + * @property {number} [countDetails.scheduledMessageCount] Number of + * scheduled messages. + * @property {number} [countDetails.transferMessageCount] Number of messages * transferred to another queue, topic, or subscription. - * @member {number} [countDetails.transferDeadLetterMessageCount] Number of + * @property {number} [countDetails.transferDeadLetterMessageCount] Number of * messages transferred into dead letters. - * @member {moment.duration} [lockDuration] ISO 8061 lock duration timespan + * @property {moment.duration} [lockDuration] ISO 8061 lock duration timespan * for the subscription. The default value is 1 minute. - * @member {boolean} [requiresSession] Value indicating if a subscription + * @property {boolean} [requiresSession] Value indicating if a subscription * supports the concept of sessions. - * @member {moment.duration} [defaultMessageTimeToLive] ISO 8061 Default + * @property {moment.duration} [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. - * @member {boolean} [deadLetteringOnFilterEvaluationExceptions] Value that + * @property {boolean} [deadLetteringOnFilterEvaluationExceptions] Value that * indicates whether a subscription has dead letter support on filter * evaluation exceptions. - * @member {boolean} [deadLetteringOnMessageExpiration] Value that indicates - * whether a subscription has dead letter support when a message expires. - * @member {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO 8601 + * @property {boolean} [deadLetteringOnMessageExpiration] Value that + * indicates whether a subscription has dead letter support when a message + * expires. + * @property {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO 8601 * timeSpan structure that defines the duration of the duplicate detection * history. The default value is 10 minutes. - * @member {number} [maxDeliveryCount] Number of maximum deliveries. - * @member {string} [status] Enumerates the possible values for the status of - * a messaging entity. Possible values include: 'Active', 'Disabled', + * @property {number} [maxDeliveryCount] Number of maximum deliveries. + * @property {string} [status] Enumerates the possible values for the status + * of a messaging entity. Possible values include: 'Active', 'Disabled', * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', * 'Renaming', 'Unknown' - * @member {boolean} [enableBatchedOperations] Value that indicates whether + * @property {boolean} [enableBatchedOperations] Value that indicates whether * server-side batched operations are enabled. - * @member {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle + * @property {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle * interval after which the topic is automatically deleted. The minimum * duration is 5 minutes. - * @member {string} [forwardTo] Queue/Topic name to forward the messages - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to + * @property {string} [forwardTo] Queue/Topic name to forward the messages + * @property {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to * forward the Dead Letter message */ constructor() { diff --git a/lib/services/serviceBusManagement2/lib/models/sBSubscriptionListResult.js b/lib/services/serviceBusManagement2/lib/models/sBSubscriptionListResult.js index 300f37cf5b..a22aa2ecd5 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBSubscriptionListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/sBSubscriptionListResult.js @@ -16,8 +16,8 @@ class SBSubscriptionListResult extends Array { /** * Create a SBSubscriptionListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of subscriptions. + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of subscriptions. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sBTopic.js b/lib/services/serviceBusManagement2/lib/models/sBTopic.js index 6386bc4382..f794f72d55 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBTopic.js +++ b/lib/services/serviceBusManagement2/lib/models/sBTopic.js @@ -20,50 +20,50 @@ const models = require('./index'); class SBTopic extends models['Resource'] { /** * Create a SBTopic. - * @member {number} [sizeInBytes] Size of the topic, in bytes. - * @member {date} [createdAt] Exact time the message was created. - * @member {date} [updatedAt] The exact time the message was updated. - * @member {date} [accessedAt] Last time the message was sent, or a request + * @property {number} [sizeInBytes] Size of the topic, in bytes. + * @property {date} [createdAt] Exact time the message was created. + * @property {date} [updatedAt] The exact time the message was updated. + * @property {date} [accessedAt] Last time the message was sent, or a request * was received, for this topic. - * @member {number} [subscriptionCount] Number of subscriptions. - * @member {object} [countDetails] Message count deatils - * @member {number} [countDetails.activeMessageCount] Number of active + * @property {number} [subscriptionCount] Number of subscriptions. + * @property {object} [countDetails] Message count details + * @property {number} [countDetails.activeMessageCount] Number of active * messages in the queue, topic, or subscription. - * @member {number} [countDetails.deadLetterMessageCount] Number of messages - * that are dead lettered. - * @member {number} [countDetails.scheduledMessageCount] Number of scheduled - * messages. - * @member {number} [countDetails.transferMessageCount] Number of messages + * @property {number} [countDetails.deadLetterMessageCount] Number of + * messages that are dead lettered. + * @property {number} [countDetails.scheduledMessageCount] Number of + * scheduled messages. + * @property {number} [countDetails.transferMessageCount] Number of messages * transferred to another queue, topic, or subscription. - * @member {number} [countDetails.transferDeadLetterMessageCount] Number of + * @property {number} [countDetails.transferDeadLetterMessageCount] Number of * messages transferred into dead letters. - * @member {moment.duration} [defaultMessageTimeToLive] ISO 8601 Default + * @property {moment.duration} [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. - * @member {number} [maxSizeInMegabytes] Maximum size of the topic in + * @property {number} [maxSizeInMegabytes] Maximum size of the topic in * megabytes, which is the size of the memory allocated for the topic. * Default is 1024. - * @member {boolean} [requiresDuplicateDetection] Value indicating if this + * @property {boolean} [requiresDuplicateDetection] Value indicating if this * topic requires duplicate detection. - * @member {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO8601 + * @property {moment.duration} [duplicateDetectionHistoryTimeWindow] ISO8601 * timespan structure that defines the duration of the duplicate detection * history. The default value is 10 minutes. - * @member {boolean} [enableBatchedOperations] Value that indicates whether + * @property {boolean} [enableBatchedOperations] Value that indicates whether * server-side batched operations are enabled. - * @member {string} [status] Enumerates the possible values for the status of - * a messaging entity. Possible values include: 'Active', 'Disabled', + * @property {string} [status] Enumerates the possible values for the status + * of a messaging entity. Possible values include: 'Active', 'Disabled', * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', * 'Renaming', 'Unknown' - * @member {boolean} [supportOrdering] Value that indicates whether the topic - * supports ordering. - * @member {moment.duration} [autoDeleteOnIdle] ISO 8601 timespan idle + * @property {boolean} [supportOrdering] Value that indicates whether the + * topic supports ordering. + * @property {moment.duration} [autoDeleteOnIdle] ISO 8601 timespan idle * interval after which the topic is automatically deleted. The minimum * duration is 5 minutes. - * @member {boolean} [enablePartitioning] Value that indicates whether the + * @property {boolean} [enablePartitioning] Value that indicates whether the * topic to be partitioned across multiple message brokers is enabled. - * @member {boolean} [enableExpress] Value that indicates whether Express + * @property {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. */ diff --git a/lib/services/serviceBusManagement2/lib/models/sBTopicListResult.js b/lib/services/serviceBusManagement2/lib/models/sBTopicListResult.js index 1c0bd6c6c0..31f521e76c 100644 --- a/lib/services/serviceBusManagement2/lib/models/sBTopicListResult.js +++ b/lib/services/serviceBusManagement2/lib/models/sBTopicListResult.js @@ -16,8 +16,8 @@ class SBTopicListResult extends Array { /** * Create a SBTopicListResult. - * @member {string} [nextLink] Link to the next set of results. Not empty if - * Value contains incomplete list of topics. + * @property {string} [nextLink] Link to the next set of results. Not empty + * if Value contains incomplete list of topics. */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/models/sqlFilter.js b/lib/services/serviceBusManagement2/lib/models/sqlFilter.js index 461dd98a45..7cd38c785b 100644 --- a/lib/services/serviceBusManagement2/lib/models/sqlFilter.js +++ b/lib/services/serviceBusManagement2/lib/models/sqlFilter.js @@ -18,12 +18,13 @@ class SqlFilter { /** * Create a SqlFilter. - * @member {string} [sqlExpression] The SQL expression. e.g. MyProperty='ABC' - * @member {number} [compatibilityLevel] This property is reserved for future - * use. An integer value showing the compatibility level, currently + * @property {string} [sqlExpression] The SQL expression. e.g. + * MyProperty='ABC' + * @property {number} [compatibilityLevel] This property is reserved for + * future use. An integer value showing the compatibility level, currently * hard-coded to 20. Default value: 20 . - * @member {boolean} [requiresPreprocessing] Value that indicates whether the - * rule action requires preprocessing. Default value: true . + * @property {boolean} [requiresPreprocessing] Value that indicates whether + * the rule action requires preprocessing. Default value: true . */ constructor() { } diff --git a/lib/services/serviceBusManagement2/lib/models/subnet.js b/lib/services/serviceBusManagement2/lib/models/subnet.js new file mode 100644 index 0000000000..61494558c2 --- /dev/null +++ b/lib/services/serviceBusManagement2/lib/models/subnet.js @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * 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. + */ + +'use strict'; + +/** + * Properties supplied for Subnet + * + */ +class Subnet { + /** + * Create a Subnet. + * @property {string} id Resource ID of Virtual Network Subnet + */ + constructor() { + } + + /** + * Defines the metadata of Subnet + * + * @returns {object} metadata of Subnet + * + */ + mapper() { + return { + required: false, + serializedName: 'Subnet', + type: { + name: 'Composite', + className: 'Subnet', + modelProperties: { + id: { + required: true, + serializedName: 'id', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = Subnet; diff --git a/lib/services/serviceBusManagement2/lib/models/trackedResource.js b/lib/services/serviceBusManagement2/lib/models/trackedResource.js index 08196c1baf..7c34c76498 100644 --- a/lib/services/serviceBusManagement2/lib/models/trackedResource.js +++ b/lib/services/serviceBusManagement2/lib/models/trackedResource.js @@ -20,8 +20,8 @@ const models = require('./index'); class TrackedResource extends models['Resource'] { /** * Create a TrackedResource. - * @member {string} location The Geo-location where the resource lives - * @member {object} [tags] Resource tags + * @property {string} location The Geo-location where the resource lives + * @property {object} [tags] Resource tags */ constructor() { super(); diff --git a/lib/services/serviceBusManagement2/lib/operations/disasterRecoveryConfigs.js b/lib/services/serviceBusManagement2/lib/operations/disasterRecoveryConfigs.js index f514b5b3df..9748fefd6d 100644 --- a/lib/services/serviceBusManagement2/lib/operations/disasterRecoveryConfigs.js +++ b/lib/services/serviceBusManagement2/lib/operations/disasterRecoveryConfigs.js @@ -25,7 +25,7 @@ const WebResource = msRest.WebResource; * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -389,10 +389,10 @@ function _list(resourceGroupName, namespaceName, options, callback) { * Recovery configuration) * * @param {string} [parameters.partnerNamespace] ARM Id of the - * Primary/Secondary eventhub namespace name, which is part of GEO DR pairning + * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing * * @param {string} [parameters.alternateName] Primary/Secondary eventhub - * namespace name, which is part of GEO DR pairning + * namespace name, which is part of GEO DR pairing * * @param {object} [options] Optional Parameters. * @@ -1100,7 +1100,7 @@ function _breakPairing(resourceGroupName, namespaceName, alias, options, callbac } /** - * envokes GEO DR failover and reconfigure the alias to point to the secondary + * Invokes GEO DR failover and reconfigure the alias to point to the secondary * namespace * * @param {string} resourceGroupName Name of the Resource group within the @@ -1459,7 +1459,7 @@ function _listAuthorizationRules(resourceGroupName, namespaceName, alias, option * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1658,7 +1658,7 @@ function _getAuthorizationRule(resourceGroupName, namespaceName, alias, authoriz * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -2138,7 +2138,7 @@ class DisasterRecoveryConfigs { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -2179,7 +2179,7 @@ class DisasterRecoveryConfigs { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -2335,10 +2335,10 @@ class DisasterRecoveryConfigs { * Recovery configuration) * * @param {string} [parameters.partnerNamespace] ARM Id of the - * Primary/Secondary eventhub namespace name, which is part of GEO DR pairning + * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing * * @param {string} [parameters.alternateName] Primary/Secondary eventhub - * namespace name, which is part of GEO DR pairning + * namespace name, which is part of GEO DR pairing * * @param {object} [options] Optional Parameters. * @@ -2379,10 +2379,10 @@ class DisasterRecoveryConfigs { * Recovery configuration) * * @param {string} [parameters.partnerNamespace] ARM Id of the - * Primary/Secondary eventhub namespace name, which is part of GEO DR pairning + * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing * * @param {string} [parameters.alternateName] Primary/Secondary eventhub - * namespace name, which is part of GEO DR pairning + * namespace name, which is part of GEO DR pairing * * @param {object} [options] Optional Parameters. * @@ -2710,7 +2710,7 @@ class DisasterRecoveryConfigs { } /** - * envokes GEO DR failover and reconfigure the alias to point to the secondary + * Invokes GEO DR failover and reconfigure the alias to point to the secondary * namespace * * @param {string} resourceGroupName Name of the Resource group within the @@ -2746,7 +2746,7 @@ class DisasterRecoveryConfigs { } /** - * envokes GEO DR failover and reconfigure the alias to point to the secondary + * Invokes GEO DR failover and reconfigure the alias to point to the secondary * namespace * * @param {string} resourceGroupName Name of the Resource group within the @@ -2905,7 +2905,7 @@ class DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -2942,7 +2942,7 @@ class DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3001,7 +3001,7 @@ class DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3038,7 +3038,7 @@ class DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/serviceBusManagement2/lib/operations/index.d.ts b/lib/services/serviceBusManagement2/lib/operations/index.d.ts index 9118444b28..45130a668a 100644 --- a/lib/services/serviceBusManagement2/lib/operations/index.d.ts +++ b/lib/services/serviceBusManagement2/lib/operations/index.d.ts @@ -145,7 +145,7 @@ export interface Namespaces { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -169,7 +169,7 @@ export interface Namespaces { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -329,7 +329,7 @@ export interface Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -370,7 +370,7 @@ export interface Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -553,7 +553,7 @@ export interface Namespaces { * @param {object} parameters Parameters supplied to update a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -593,7 +593,7 @@ export interface Namespaces { * @param {object} parameters Parameters supplied to update a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -710,7 +710,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -737,7 +737,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -783,7 +783,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -806,7 +806,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -847,7 +847,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -870,7 +870,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -912,7 +912,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -935,7 +935,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -977,7 +977,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -1009,7 +1009,7 @@ export interface Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -1122,6 +1122,146 @@ export interface Namespaces { migrate(resourceGroupName: string, namespaceName: string, parameters: models.SBNamespaceMigrate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} parameters The Namespace IpFilterRule. + * + * @param {string} [parameters.defaultAction] Default Action for Network Rule + * Set. Possible values include: 'Allow', 'Deny' + * + * @param {array} [parameters.virtualNetworkRules] List VirtualNetwork Rules + * + * @param {array} [parameters.ipRules] List of IpRules + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + createOrUpdateNetworkRuleSetWithHttpOperationResponse(resourceGroupName: string, namespaceName: string, parameters: models.NetworkRuleSet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} parameters The Namespace IpFilterRule. + * + * @param {string} [parameters.defaultAction] Default Action for Network Rule + * Set. Possible values include: 'Allow', 'Deny' + * + * @param {array} [parameters.virtualNetworkRules] List VirtualNetwork Rules + * + * @param {array} [parameters.ipRules] List of IpRules + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {NetworkRuleSet} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {NetworkRuleSet} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkRuleSet} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: models.NetworkRuleSet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: models.NetworkRuleSet, callback: ServiceCallback): void; + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: models.NetworkRuleSet, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getNetworkRuleSetWithHttpOperationResponse(resourceGroupName: string, namespaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {NetworkRuleSet} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {NetworkRuleSet} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkRuleSet} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, callback: ServiceCallback): void; + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Creates or updates a service namespace. Once created, this namespace's * resource manifest is immutable. This operation is idempotent. @@ -1134,7 +1274,7 @@ export interface Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -1175,7 +1315,7 @@ export interface Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -1479,7 +1619,7 @@ export interface DisasterRecoveryConfigs { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -1508,7 +1648,7 @@ export interface DisasterRecoveryConfigs { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -1622,10 +1762,10 @@ export interface DisasterRecoveryConfigs { * Recovery configuration) * * @param {string} [parameters.partnerNamespace] ARM Id of the - * Primary/Secondary eventhub namespace name, which is part of GEO DR pairning + * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing * * @param {string} [parameters.alternateName] Primary/Secondary eventhub - * namespace name, which is part of GEO DR pairning + * namespace name, which is part of GEO DR pairing * * @param {object} [options] Optional Parameters. * @@ -1654,10 +1794,10 @@ export interface DisasterRecoveryConfigs { * Recovery configuration) * * @param {string} [parameters.partnerNamespace] ARM Id of the - * Primary/Secondary eventhub namespace name, which is part of GEO DR pairning + * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing * * @param {string} [parameters.alternateName] Primary/Secondary eventhub - * namespace name, which is part of GEO DR pairning + * namespace name, which is part of GEO DR pairing * * @param {object} [options] Optional Parameters. * @@ -1889,7 +2029,7 @@ export interface DisasterRecoveryConfigs { /** - * envokes GEO DR failover and reconfigure the alias to point to the secondary + * Invokes GEO DR failover and reconfigure the alias to point to the secondary * namespace * * @param {string} resourceGroupName Name of the Resource group within the @@ -1913,7 +2053,7 @@ export interface DisasterRecoveryConfigs { failOverWithHttpOperationResponse(resourceGroupName: string, namespaceName: string, alias: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * envokes GEO DR failover and reconfigure the alias to point to the secondary + * Invokes GEO DR failover and reconfigure the alias to point to the secondary * namespace * * @param {string} resourceGroupName Name of the Resource group within the @@ -2030,7 +2170,7 @@ export interface DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -2055,7 +2195,7 @@ export interface DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -2099,7 +2239,7 @@ export interface DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -2124,7 +2264,7 @@ export interface DisasterRecoveryConfigs { * * @param {string} alias The Disaster Recovery configuration name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -2346,8 +2486,8 @@ export interface MigrationConfigs { /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -2377,8 +2517,8 @@ export interface MigrationConfigs { createAndStartMigrationWithHttpOperationResponse(resourceGroupName: string, namespaceName: string, parameters: models.MigrationConfigProperties, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -2551,8 +2691,8 @@ export interface 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. CompleteMigration operation will fail when + * strings to Premium namespace and any entities created after the operation + * will be under Premium Namespace. CompleteMigration operation will fail when * entity migration is in-progress. * * @param {string} resourceGroupName Name of the Resource group within the @@ -2575,8 +2715,8 @@ export interface 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. CompleteMigration operation will fail when + * strings to Premium namespace and any entities created after the operation + * will be under Premium Namespace. CompleteMigration operation will fail when * entity migration is in-progress. * * @param {string} resourceGroupName Name of the Resource group within the @@ -2676,8 +2816,8 @@ export interface MigrationConfigs { /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -2707,8 +2847,8 @@ export interface MigrationConfigs { beginCreateAndStartMigrationWithHttpOperationResponse(resourceGroupName: string, namespaceName: string, parameters: models.MigrationConfigProperties, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -3289,7 +3429,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -3318,7 +3458,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -3366,7 +3506,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3391,7 +3531,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3434,7 +3574,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3459,7 +3599,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3503,7 +3643,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3528,7 +3668,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3572,7 +3712,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -3606,7 +3746,7 @@ export interface Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -4193,7 +4333,7 @@ export interface Topics { /** - * Creates an authorizatio rule for the specified topic. + * Creates an authorization rule for the specified topic. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -4202,7 +4342,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -4222,7 +4362,7 @@ export interface Topics { createOrUpdateAuthorizationRuleWithHttpOperationResponse(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: models.SBAuthorizationRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates an authorizatio rule for the specified topic. + * Creates an authorization rule for the specified topic. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -4231,7 +4371,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -4279,7 +4419,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4304,7 +4444,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4348,7 +4488,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4373,7 +4513,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4416,7 +4556,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4441,7 +4581,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4485,7 +4625,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -4519,7 +4659,7 @@ export interface Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. diff --git a/lib/services/serviceBusManagement2/lib/operations/migrationConfigs.js b/lib/services/serviceBusManagement2/lib/operations/migrationConfigs.js index a4b333ccfa..4d4fca06da 100644 --- a/lib/services/serviceBusManagement2/lib/operations/migrationConfigs.js +++ b/lib/services/serviceBusManagement2/lib/operations/migrationConfigs.js @@ -184,8 +184,8 @@ function _list(resourceGroupName, namespaceName, options, callback) { /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -595,8 +595,8 @@ function _get(resourceGroupName, namespaceName, options, callback) { /** * 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. CompleteMigration operation will fail when + * strings to Premium namespace and any entities created after the operation + * will be under Premium Namespace. CompleteMigration operation will fail when * entity migration is in-progress. * * @param {string} resourceGroupName Name of the Resource group within the @@ -899,8 +899,8 @@ function _revert(resourceGroupName, namespaceName, options, callback) { } /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -1332,8 +1332,8 @@ class MigrationConfigs { } /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -1375,8 +1375,8 @@ class MigrationConfigs { } /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -1618,8 +1618,8 @@ 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. CompleteMigration operation will fail when + * strings to Premium namespace and any entities created after the operation + * will be under Premium Namespace. CompleteMigration operation will fail when * entity migration is in-progress. * * @param {string} resourceGroupName Name of the Resource group within the @@ -1654,8 +1654,8 @@ 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. CompleteMigration operation will fail when + * strings to Premium namespace and any entities created after the operation + * will be under Premium Namespace. CompleteMigration operation will fail when * entity migration is in-progress. * * @param {string} resourceGroupName Name of the Resource group within the @@ -1797,8 +1797,8 @@ class MigrationConfigs { } /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -1840,8 +1840,8 @@ class MigrationConfigs { } /** - * Creates Migration configuration and starts migration of enties from Standard - * to Premium namespace + * Creates Migration configuration and starts migration of entities from + * Standard to Premium namespace * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. diff --git a/lib/services/serviceBusManagement2/lib/operations/namespaces.js b/lib/services/serviceBusManagement2/lib/operations/namespaces.js index ce11ac55bf..e58f1a21a7 100644 --- a/lib/services/serviceBusManagement2/lib/operations/namespaces.js +++ b/lib/services/serviceBusManagement2/lib/operations/namespaces.js @@ -20,7 +20,7 @@ const WebResource = msRest.WebResource; * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -473,7 +473,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -803,7 +803,7 @@ function _get(resourceGroupName, namespaceName, options, callback) { * @param {object} parameters Parameters supplied to update a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -1187,7 +1187,7 @@ function _listAuthorizationRules(resourceGroupName, namespaceName, options, call * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -1391,7 +1391,7 @@ function _createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, auth * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1556,7 +1556,7 @@ function _deleteAuthorizationRule(resourceGroupName, namespaceName, authorizatio * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1739,7 +1739,7 @@ function _getAuthorizationRule(resourceGroupName, namespaceName, authorizationRu * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1922,7 +1922,7 @@ function _listKeys(resourceGroupName, namespaceName, authorizationRuleName, opti * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -2294,6 +2294,366 @@ function _migrate(resourceGroupName, namespaceName, parameters, options, callbac }); } +/** + * Create or update NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} parameters The Namespace IpFilterRule. + * + * @param {string} [parameters.defaultAction] Default Action for Network Rule + * Set. Possible values include: 'Allow', 'Deny' + * + * @param {array} [parameters.virtualNetworkRules] List VirtualNetwork Rules + * + * @param {array} [parameters.ipRules] List of IpRules + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkRuleSet} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _createOrUpdateNetworkRuleSet(resourceGroupName, namespaceName, parameters, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { + throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); + } + if (namespaceName !== null && namespaceName !== undefined) { + if (namespaceName.length > 50) + { + throw new Error('"namespaceName" should satisfy the constraint - "MaxLength": 50'); + } + if (namespaceName.length < 6) + { + throw new Error('"namespaceName" should satisfy the constraint - "MinLength": 6'); + } + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'PUT'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['NetworkRuleSet']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['ErrorResponse']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkRuleSet']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Gets NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkRuleSet} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _getNetworkRuleSet(resourceGroupName, namespaceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + } + if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { + throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); + } + if (namespaceName !== null && namespaceName !== undefined) { + if (namespaceName.length > 50) + { + throw new Error('"namespaceName" should satisfy the constraint - "MaxLength": 50'); + } + if (namespaceName.length < 6) + { + throw new Error('"namespaceName" should satisfy the constraint - "MinLength": 6'); + } + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['ErrorResponse']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['NetworkRuleSet']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * Creates or updates a service namespace. Once created, this namespace's * resource manifest is immutable. This operation is idempotent. @@ -2306,7 +2666,7 @@ function _migrate(resourceGroupName, namespaceName, parameters, options, callbac * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -3063,6 +3423,8 @@ class Namespaces { this._listKeys = _listKeys; this._regenerateKeys = _regenerateKeys; this._migrate = _migrate; + this._createOrUpdateNetworkRuleSet = _createOrUpdateNetworkRuleSet; + this._getNetworkRuleSet = _getNetworkRuleSet; this._beginCreateOrUpdate = _beginCreateOrUpdate; this._beginDeleteMethod = _beginDeleteMethod; this._listNext = _listNext; @@ -3076,7 +3438,7 @@ class Namespaces { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -3112,7 +3474,7 @@ class Namespaces { * @param {object} parameters Parameters to check availability of the given * namespace name * - * @param {string} parameters.name The Name to check the namespce name + * @param {string} parameters.name 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. @@ -3341,7 +3703,7 @@ class Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -3394,7 +3756,7 @@ class Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -3646,7 +4008,7 @@ class Namespaces { * @param {object} parameters Parameters supplied to update a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -3698,7 +4060,7 @@ class Namespaces { * @param {object} parameters Parameters supplied to update a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -3857,7 +4219,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -3896,7 +4258,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -3957,7 +4319,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3992,7 +4354,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4048,7 +4410,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4083,7 +4445,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4140,7 +4502,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4175,7 +4537,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -4232,7 +4594,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -4276,7 +4638,7 @@ class Namespaces { * * @param {string} namespaceName The namespace name * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -4431,6 +4793,200 @@ class Namespaces { } } + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} parameters The Namespace IpFilterRule. + * + * @param {string} [parameters.defaultAction] Default Action for Network Rule + * Set. Possible values include: 'Allow', 'Deny' + * + * @param {array} [parameters.virtualNetworkRules] List VirtualNetwork Rules + * + * @param {array} [parameters.ipRules] List of IpRules + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + createOrUpdateNetworkRuleSetWithHttpOperationResponse(resourceGroupName, namespaceName, parameters, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._createOrUpdateNetworkRuleSet(resourceGroupName, namespaceName, parameters, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Create or update NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} parameters The Namespace IpFilterRule. + * + * @param {string} [parameters.defaultAction] Default Action for Network Rule + * Set. Possible values include: 'Allow', 'Deny' + * + * @param {array} [parameters.virtualNetworkRules] List VirtualNetwork Rules + * + * @param {array} [parameters.ipRules] List of IpRules + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {NetworkRuleSet} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkRuleSet} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + createOrUpdateNetworkRuleSet(resourceGroupName, namespaceName, parameters, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._createOrUpdateNetworkRuleSet(resourceGroupName, namespaceName, parameters, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._createOrUpdateNetworkRuleSet(resourceGroupName, namespaceName, parameters, options, optionalCallback); + } + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + getNetworkRuleSetWithHttpOperationResponse(resourceGroupName, namespaceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._getNetworkRuleSet(resourceGroupName, namespaceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets NetworkRuleSet for a Namespace. + * + * @param {string} resourceGroupName Name of the Resource group within the + * Azure subscription. + * + * @param {string} namespaceName The namespace name + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {NetworkRuleSet} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkRuleSet} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + getNetworkRuleSet(resourceGroupName, namespaceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._getNetworkRuleSet(resourceGroupName, namespaceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getNetworkRuleSet(resourceGroupName, namespaceName, options, optionalCallback); + } + } + /** * Creates or updates a service namespace. Once created, this namespace's * resource manifest is immutable. This operation is idempotent. @@ -4443,7 +4999,7 @@ class Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' @@ -4496,7 +5052,7 @@ class Namespaces { * @param {object} parameters Parameters supplied to create a namespace * resource. * - * @param {object} [parameters.sku] Porperties of Sku + * @param {object} [parameters.sku] Properties of Sku * * @param {string} parameters.sku.name Name of this SKU. Possible values * include: 'Basic', 'Standard', 'Premium' diff --git a/lib/services/serviceBusManagement2/lib/operations/queues.js b/lib/services/serviceBusManagement2/lib/operations/queues.js index f84f61d7fa..1b39c573b7 100644 --- a/lib/services/serviceBusManagement2/lib/operations/queues.js +++ b/lib/services/serviceBusManagement2/lib/operations/queues.js @@ -1009,7 +1009,7 @@ function _listAuthorizationRules(resourceGroupName, namespaceName, queueName, op * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -1225,7 +1225,7 @@ function _createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, queu * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1402,7 +1402,7 @@ function _deleteAuthorizationRule(resourceGroupName, namespaceName, queueName, a * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1597,7 +1597,7 @@ function _getAuthorizationRule(resourceGroupName, namespaceName, queueName, auth * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1792,7 +1792,7 @@ function _listKeys(resourceGroupName, namespaceName, queueName, authorizationRul * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -2882,7 +2882,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -2923,7 +2923,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -2986,7 +2986,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3023,7 +3023,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3081,7 +3081,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3118,7 +3118,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3177,7 +3177,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3214,7 +3214,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3273,7 +3273,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -3319,7 +3319,7 @@ class Queues { * * @param {string} queueName The queue name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. diff --git a/lib/services/serviceBusManagement2/lib/operations/topics.js b/lib/services/serviceBusManagement2/lib/operations/topics.js index 8bd778266e..476043b0c8 100644 --- a/lib/services/serviceBusManagement2/lib/operations/topics.js +++ b/lib/services/serviceBusManagement2/lib/operations/topics.js @@ -982,7 +982,7 @@ function _listAuthorizationRules(resourceGroupName, namespaceName, topicName, op } /** - * Creates an authorizatio rule for the specified topic. + * Creates an authorization rule for the specified topic. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -991,7 +991,7 @@ function _listAuthorizationRules(resourceGroupName, namespaceName, topicName, op * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -1207,7 +1207,7 @@ function _createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, topi * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1402,7 +1402,7 @@ function _getAuthorizationRule(resourceGroupName, namespaceName, topicName, auth * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1579,7 +1579,7 @@ function _deleteAuthorizationRule(resourceGroupName, namespaceName, topicName, a * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -1774,7 +1774,7 @@ function _listKeys(resourceGroupName, namespaceName, topicName, authorizationRul * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -2819,7 +2819,7 @@ class Topics { } /** - * Creates an authorizatio rule for the specified topic. + * Creates an authorization rule for the specified topic. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -2828,7 +2828,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -2860,7 +2860,7 @@ class Topics { } /** - * Creates an authorizatio rule for the specified topic. + * Creates an authorization rule for the specified topic. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. @@ -2869,7 +2869,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters The shared access authorization rule. * @@ -2932,7 +2932,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -2969,7 +2969,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3028,7 +3028,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3065,7 +3065,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3123,7 +3123,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3160,7 +3160,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} [options] Optional Parameters. * @@ -3219,7 +3219,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. @@ -3265,7 +3265,7 @@ class Topics { * * @param {string} topicName The topic name. * - * @param {string} authorizationRuleName The authorizationrule name. + * @param {string} authorizationRuleName The authorization rule name. * * @param {object} parameters Parameters supplied to regenerate the * authorization rule. diff --git a/lib/services/serviceBusManagement2/package.json b/lib/services/serviceBusManagement2/package.json index 0f7ccc09af..47e61e68dd 100644 --- a/lib/services/serviceBusManagement2/package.json +++ b/lib/services/serviceBusManagement2/package.json @@ -22,4 +22,4 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}