From fc13f0d837f63e5ec93f235107c8a1cfc7b6b531 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 30 Sep 2021 01:45:56 +0000 Subject: [PATCH] CodeGen from PR 16229 in Azure/azure-rest-api-specs Merge 3be99a2eef14243a60ee518243b258022c0fee28 into 0685b1be3b0703ddc1e89e982bf3b7b03a379c86 --- sdk/servicebus/arm-servicebus/LICENSE.txt | 2 +- sdk/servicebus/arm-servicebus/README.md | 17 +- sdk/servicebus/arm-servicebus/package.json | 2 +- .../arm-servicebus/rollup.config.js | 4 +- .../models/disasterRecoveryConfigsMappers.ts | 24 +- .../arm-servicebus/src/models/index.ts | 1773 ++++++++------ .../arm-servicebus/src/models/mappers.ts | 2078 ++++++++++------- .../src/models/migrationConfigsMappers.ts | 23 +- .../src/models/namespacesMappers.ts | 24 +- .../src/models/operationsMappers.ts | 6 +- .../arm-servicebus/src/models/parameters.ts | 29 +- ...remiumMessagingRegionsOperationsMappers.ts | 40 - ...s => privateEndpointConnectionsMappers.ts} | 25 +- .../src/models/privateLinkResourcesMappers.ts | 15 + .../src/models/queuesMappers.ts | 23 +- .../src/models/regionsMappers.ts | 40 - .../arm-servicebus/src/models/rulesMappers.ts | 23 +- .../src/models/subscriptionsMappers.ts | 23 +- .../src/models/topicsMappers.ts | 23 +- .../src/operations/disasterRecoveryConfigs.ts | 30 +- .../src/operations/eventHubs.ts | 136 -- .../arm-servicebus/src/operations/index.ts | 14 +- .../src/operations/migrationConfigs.ts | 8 +- .../src/operations/namespaces.ts | 489 ++-- .../src/operations/operations.ts | 8 +- .../premiumMessagingRegionsOperations.ts | 126 - .../operations/privateEndpointConnections.ts | 339 +++ .../src/operations/privateLinkResources.ts | 86 + .../arm-servicebus/src/operations/queues.ts | 381 +-- .../arm-servicebus/src/operations/regions.ts | 131 -- .../arm-servicebus/src/operations/rules.ts | 16 +- .../src/operations/subscriptions.ts | 16 +- .../arm-servicebus/src/operations/topics.ts | 395 ++-- .../src/serviceBusManagementClient.ts | 23 +- .../src/serviceBusManagementClientContext.ts | 9 +- 35 files changed, 3566 insertions(+), 2835 deletions(-) delete mode 100644 sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts rename sdk/servicebus/arm-servicebus/src/models/{eventHubsMappers.ts => privateEndpointConnectionsMappers.ts} (60%) create mode 100644 sdk/servicebus/arm-servicebus/src/models/privateLinkResourcesMappers.ts delete mode 100644 sdk/servicebus/arm-servicebus/src/models/regionsMappers.ts delete mode 100644 sdk/servicebus/arm-servicebus/src/operations/eventHubs.ts delete mode 100644 sdk/servicebus/arm-servicebus/src/operations/premiumMessagingRegionsOperations.ts create mode 100644 sdk/servicebus/arm-servicebus/src/operations/privateEndpointConnections.ts create mode 100644 sdk/servicebus/arm-servicebus/src/operations/privateLinkResources.ts delete mode 100644 sdk/servicebus/arm-servicebus/src/operations/regions.ts diff --git a/sdk/servicebus/arm-servicebus/LICENSE.txt b/sdk/servicebus/arm-servicebus/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/servicebus/arm-servicebus/LICENSE.txt +++ b/sdk/servicebus/arm-servicebus/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 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/sdk/servicebus/arm-servicebus/README.md b/sdk/servicebus/arm-servicebus/README.md index 81020e0cfe26..1349edd08028 100644 --- a/sdk/servicebus/arm-servicebus/README.md +++ b/sdk/servicebus/arm-servicebus/README.md @@ -1,11 +1,11 @@ ## Azure ServiceBusManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ServiceBusManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for ServiceBusManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-servicebus @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - -#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. +#### nodejs - Authentication, client creation, and list namespaces as an example written in JavaScript. ##### Sample code @@ -51,8 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new ServiceBusManagementClient(creds, subscriptionId); - -client.operations.list().then((result) => { +client.namespaces.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -61,7 +58,7 @@ client.operations.list().then((result) => { }); ``` -#### browser - Authentication, client creation, and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and list namespaces as an example written in JavaScript. In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. @@ -86,10 +83,10 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmServicebus.ServiceBusManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { + client.namespaces.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/servicebus/arm-servicebus/package.json b/sdk/servicebus/arm-servicebus/package.json index 3fb24f5b4121..680198b5e3a1 100644 --- a/sdk/servicebus/arm-servicebus/package.json +++ b/sdk/servicebus/arm-servicebus/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/servicebus/arm-servicebus", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/arm-servicebus", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/servicebus/arm-servicebus/rollup.config.js b/sdk/servicebus/arm-servicebus/rollup.config.js index c02ea096bd42..4a3ab8e139ae 100644 --- a/sdk/servicebus/arm-servicebus/rollup.config.js +++ b/sdk/servicebus/arm-servicebus/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/servicebus/arm-servicebus/src/models/disasterRecoveryConfigsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/disasterRecoveryConfigsMappers.ts index 4d8031905fed..fa78ba7cb83f 100644 --- a/sdk/servicebus/arm-servicebus/src/models/disasterRecoveryConfigsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/disasterRecoveryConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,25 +12,30 @@ export { ArmDisasterRecovery, ArmDisasterRecoveryListResult, BaseResource, - CaptureDescription, CheckNameAvailability, CheckNameAvailabilityResult, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, + ErrorResponseError, + FailoverProperties, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, SBAuthorizationRule, SBAuthorizationRuleListResult, + SBClientAffineProperties, SBNamespace, SBNamespaceUpdateParameters, SBQueue, @@ -40,5 +45,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/index.ts b/sdk/servicebus/arm-servicebus/src/models/index.ts index ec9393b6a174..a23c6220841b 100644 --- a/sdk/servicebus/arm-servicebus/src/models/index.ts +++ b/sdk/servicebus/arm-servicebus/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -32,20 +32,6 @@ export interface Resource extends BaseResource { readonly type?: string; } -/** - * The Resource definition. - */ -export interface TrackedResource extends Resource { - /** - * The Geo-location where the resource lives - */ - location: string; - /** - * Resource tags - */ - tags?: { [propertyName: string]: string }; -} - /** * The Resource definition. */ @@ -79,21 +65,219 @@ export interface SBSku { capacity?: number; } +/** + * Recognized Dictionary value. + */ +export interface UserAssignedIdentity { + /** + * Principal Id of user assigned identity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * Client Id of user assigned identity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * Properties to configure User Assigned Identities for Bring your Own Keys + */ +export interface Identity { + /** + * ObjectId from the KeyVault + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * TenantId from the KeyVault + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * Type of managed service identity. Possible values include: 'SystemAssigned', 'UserAssigned', + * 'SystemAssigned, UserAssigned', 'None' + */ + type?: ManagedServiceIdentityType; + /** + * Properties for User Assigned Identities + */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The type of identity that last modified the resource. + */ + lastModifiedAt?: Date; +} + +/** + * An interface representing UserAssignedIdentityProperties. + */ +export interface UserAssignedIdentityProperties { + /** + * ARM ID of user Identity selected for encryption + */ + userAssignedIdentity?: string; +} + +/** + * Properties to configure keyVault Properties + */ +export interface KeyVaultProperties { + /** + * Name of the Key from KeyVault + */ + keyName?: string; + /** + * Uri of KeyVault + */ + keyVaultUri?: string; + /** + * Version of KeyVault + */ + keyVersion?: string; + identity?: UserAssignedIdentityProperties; +} + +/** + * Properties to configure Encryption + */ +export interface Encryption { + /** + * Properties of KeyVault + */ + keyVaultProperties?: KeyVaultProperties[]; + /** + * Enumerates the possible value of keySource for Encryption. Possible values include: + * 'Microsoft.KeyVault'. Default value: 'Microsoft.KeyVault'. + */ + keySource?: KeySource; + /** + * Enable Infrastructure Encryption (Double Encryption) + */ + requireInfrastructureEncryption?: boolean; +} + +/** + * PrivateEndpoint information. + */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint. + */ + id?: string; +} + +/** + * ConnectionState information. + */ +export interface ConnectionState { + /** + * Status of the connection. Possible values include: 'Pending', 'Approved', 'Rejected', + * 'Disconnected' + */ + status?: PrivateLinkConnectionStatus; + /** + * Description of the connection state. + */ + description?: string; +} + +/** + * Properties of the PrivateEndpointConnection. + */ +export interface PrivateEndpointConnection extends Resource { + /** + * The Private Endpoint resource for this Connection. + */ + privateEndpoint?: PrivateEndpoint; + /** + * Details about the state of the connection. + */ + privateLinkServiceConnectionState?: ConnectionState; + /** + * Provisioning state of the Private Endpoint Connection. Possible values include: 'Creating', + * 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + */ + provisioningState?: EndPointProvisioningState; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * The Resource definition. + */ +export interface TrackedResource extends Resource { + /** + * The Geo-location where the resource lives + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + /** * Description of a namespace resource. */ export interface SBNamespace extends TrackedResource { /** - * Properties of Sku + * Properties of SKU */ sku?: SBSku; + /** + * Properties of BYOK Identity description + */ + identity?: Identity; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; /** * Provisioning state of the namespace. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * The time the namespace was created. + * Status of the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * The time the namespace was created * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; @@ -108,133 +292,481 @@ export interface SBNamespace extends TrackedResource { */ readonly serviceBusEndpoint?: string; /** - * Identifier for Azure Insights metrics + * Identifier for Azure Insights metrics + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly metricId?: string; + /** + * Enabling this property creates a Premium Service Bus Namespace in regions supported + * availability zones. + */ + zoneRedundant?: boolean; + /** + * Properties of BYOK Encryption description + */ + encryption?: Encryption; + /** + * List of private endpoint connections. + */ + privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * This property disables SAS authentication for the Service Bus namespace. + */ + disableLocalAuth?: boolean; +} + +/** + * Description of a namespace resource. + */ +export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { + /** + * Properties of SKU + */ + sku?: SBSku; + /** + * Provisioning state of the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Status of the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * The time the namespace was created + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: Date; + /** + * The time the namespace was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly updatedAt?: Date; + /** + * Endpoint you can use to perform Service Bus operations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceBusEndpoint?: string; + /** + * Identifier for Azure Insights metrics + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly metricId?: string; + /** + * Enabling this property creates a Premium Service Bus Namespace in regions supported + * availability zones. + */ + zoneRedundant?: boolean; + /** + * Properties of BYOK Encryption description + */ + encryption?: Encryption; + /** + * List of private endpoint connections. + */ + privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * This property disables SAS authentication for the Service Bus namespace. + */ + disableLocalAuth?: boolean; + /** + * Properties of BYOK Identity description + */ + identity?: Identity; +} + +/** + * Information of the private link resource. + */ +export interface PrivateLinkResource { + groupId?: string; + /** + * Required Members + */ + requiredMembers?: string[]; + /** + * Required Zone Names + */ + requiredZoneNames?: string[]; + /** + * Fully qualified identifier of the resource. + */ + id?: string; + /** + * Name of the resource + */ + name?: string; + /** + * Type of the resource + */ + type?: string; +} + +/** + * Result of the List private link resources operation. + */ +export interface PrivateLinkResourcesListResult { + /** + * A collection of private link resources + */ + value?: PrivateLinkResource[]; + /** + * A link for the next page of private link resources. + */ + nextLink?: string; +} + +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * The error object. + */ +export interface ErrorResponseError { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorResponse[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * The resource management error response. + */ +export interface ErrorResponse { + /** + * The error object. + */ + error?: ErrorResponseError; +} + +/** + * The object that represents the operation. + */ +export interface OperationDisplay { + /** + * Service provider: Microsoft.ServiceBus + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provider?: string; + /** + * Resource on which the operation is performed: Invoice, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resource?: string; + /** + * Operation type: Read, write, delete, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; +} + +/** + * A ServiceBus REST API operation + */ +export interface Operation { + /** + * Operation name: {provider}/{resource}/{operation} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The object that represents the operation. + */ + display?: OperationDisplay; +} + +/** + * Description of a namespace authorization rule. + */ +export interface SBAuthorizationRule extends Resource { + /** + * The rights associated with the rule. + */ + rights: AccessRights[]; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Namespace/ServiceBus Connection String + */ +export interface AccessKeys { + /** + * Primary connection string of the created namespace authorization rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly primaryConnectionString?: string; + /** + * Secondary connection string of the created namespace authorization rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly secondaryConnectionString?: string; + /** + * Primary connection string of the alias if GEO DR is enabled + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly aliasPrimaryConnectionString?: string; + /** + * Secondary connection string of the alias if GEO DR is enabled + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly aliasSecondaryConnectionString?: string; + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly primaryKey?: string; + /** + * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly secondaryKey?: string; + /** + * A string that describes the authorization rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly keyName?: string; +} + +/** + * 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: KeyType; + /** + * Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set + * for keyType + */ + key?: string; +} + +/** + * Description of a Check Name availability request properties. + */ +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; +} + +/** + * Description of a Check Name availability request properties. + */ +export interface CheckNameAvailabilityResult { + /** + * The detailed info regarding the reason associated with the namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * 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?: UnavailableReason; +} + +/** + * Single item in List or Get Alias(Disaster Recovery configuration) operation + */ +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' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningStateDR; + /** + * Number of entities pending to be replicated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly pendingReplicationOperationsCount?: number; + /** + * 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' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly role?: RoleDisasterRecovery; + /** + * The system meta data relating to this resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricId?: string; + readonly systemData?: SystemData; } /** - * Description of a namespace resource. + * Safe failover is to indicate the service should wait for pending replication to finish before + * switching to the secondary. */ -export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { +export interface FailoverProperties { /** - * Properties of Sku + * Safe failover is to indicate the service should wait for pending replication to finish before + * switching to the secondary. */ - sku?: SBSku; + isSafeFailover?: boolean; +} + +/** + * Single item in List or Get Migration Config operation + */ +export interface MigrationConfigProperties extends Resource { /** - * Provisioning state of the namespace. + * Provisioning state of Migration Configuration * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * The time the namespace was created. + * Number of entities pending to be replicated. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly createdAt?: Date; + readonly pendingReplicationOperationsCount?: number; /** - * The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Existing premium Namespace ARM Id name which has no entities, will be used for migration */ - readonly updatedAt?: Date; + targetNamespace: string; /** - * Endpoint you can use to perform Service Bus operations. + * 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 * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serviceBusEndpoint?: string; + readonly migrationState?: string; /** - * Identifier for Azure Insights metrics + * The system meta data relating to this resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricId?: string; + readonly systemData?: SystemData; } /** - * Namespace Migrate Object + * Description of NetWorkRuleSet - IpRules resource. */ -export interface SBNamespaceMigrate { +export interface NWRuleSetIpRules { + /** + * IP Mask + */ + ipMask?: string; /** - * Type of namespaces. Possible values include: 'Messaging', 'NotificationHub', 'Mixed', - * 'EventHub', 'Relay' + * The IP Filter Action. Possible values include: 'Allow'. Default value: 'Allow'. */ - targetNamespaceType: NameSpaceType; + action?: NetworkRuleIPAction; } /** - * Description of a namespace authorization rule. + * Properties supplied for Subnet */ -export interface SBAuthorizationRule extends Resource { +export interface Subnet { /** - * The rights associated with the rule. + * Resource ID of Virtual Network Subnet */ - rights: AccessRights[]; + id: string; } /** - * AuthorizationRule properties. + * Description of VirtualNetworkRules - NetworkRules resource. */ -export interface AuthorizationRuleProperties { +export interface NWRuleSetVirtualNetworkRules { /** - * The rights associated with the rule. + * Subnet properties */ - rights: AccessRights[]; + subnet?: Subnet; + /** + * Value that indicates whether to ignore missing VNet Service Endpoint + */ + ignoreMissingVnetServiceEndpoint?: boolean; } /** - * Namespace/ServiceBus Connection String + * Description of NetworkRuleSet resource. */ -export interface AccessKeys { - /** - * Primary connection string of the created namespace authorization rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly primaryConnectionString?: string; +export interface NetworkRuleSet extends Resource { /** - * Secondary connection string of the created namespace authorization rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value that indicates whether Trusted Service Access is Enabled or not. */ - readonly secondaryConnectionString?: string; + trustedServiceAccessEnabled?: boolean; /** - * Primary connection string of the alias if GEO DR is enabled - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Default Action for Network Rule Set. Possible values include: 'Allow', 'Deny' */ - readonly aliasPrimaryConnectionString?: string; + defaultAction?: DefaultAction; /** - * Secondary connection string of the alias if GEO DR is enabled - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List VirtualNetwork Rules */ - readonly aliasSecondaryConnectionString?: string; + virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of IpRules */ - readonly primaryKey?: string; + ipRules?: NWRuleSetIpRules[]; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * This determines if traffic is allowed over public network. By default it is enabled. Possible + * values include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - readonly secondaryKey?: string; + publicNetworkAccess?: PublicNetworkAccessFlag; /** - * A string that describes the authorization rule. + * The system meta data relating to this resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly keyName?: string; -} - -/** - * 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: KeyType; - /** - * Optional, if the key value provided, is reset for KeyType value or autogenerate Key value set - * for keyType - */ - key?: string; + readonly systemData?: SystemData; } /** @@ -313,6 +845,11 @@ export interface SBQueue extends Resource { * queue. Default is 1024. */ maxSizeInMegabytes?: number; + /** + * Maximum size (in KB) of the message payload that can be accepted by the queue. This property + * is only used in Premium today and default is 1024. + */ + maxMessageSizeInKilobytes?: number; /** * A value indicating if this queue requires duplicate detection. */ @@ -373,6 +910,11 @@ export interface SBQueue extends Resource { * Queue/Topic name to forward the Dead Letter message */ forwardDeadLetteredMessagesTo?: string; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -421,214 +963,53 @@ export interface SBTopic extends Resource { */ 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?: string; - /** - * 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?: EntityStatus; - /** - * 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?: string; - /** - * 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; -} - -/** - * Description of subscription resource. - */ -export interface SBSubscription extends Resource { - /** - * Number of messages. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly messageCount?: number; - /** - * Exact time the message was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdAt?: Date; - /** - * Last time there was a receive request to this subscription. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly accessedAt?: Date; - /** - * The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly updatedAt?: Date; - /** - * Message count details - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly countDetails?: MessageCountDetails; - /** - * ISO 8061 lock duration timespan for the subscription. The default value is 1 minute. - */ - lockDuration?: string; - /** - * 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?: string; - /** - * 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?: string; - /** - * 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?: EntityStatus; - /** - * 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?: string; - /** - * Queue/Topic name to forward the messages - */ - forwardTo?: string; - /** - * Queue/Topic name to forward the Dead Letter message - */ - forwardDeadLetteredMessagesTo?: string; -} - -/** - * Description of a Check Name availability request properties. - */ -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; -} - -/** - * Description of a Check Name availability request properties. - */ -export interface CheckNameAvailabilityResult { - /** - * The detailed info regarding the reason associated with the namespace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Maximum size (in KB) of the message payload that can be accepted by the topic. This property + * is only used in Premium today and default is 1024. */ - readonly message?: string; + maxMessageSizeInKilobytes?: number; /** - * Value indicating namespace is availability, true if the namespace is available; otherwise, - * false. + * Value indicating if this topic requires duplicate detection. */ - nameAvailable?: boolean; + requiresDuplicateDetection?: boolean; /** - * The reason for unavailability of a namespace. Possible values include: 'None', 'InvalidName', - * 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', - * 'TooManyNamespaceInCurrentSubscription' + * ISO8601 timespan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. */ - reason?: UnavailableReason; -} - -/** - * The object that represents the operation. - */ -export interface OperationDisplay { + duplicateDetectionHistoryTimeWindow?: string; /** - * Service provider: Microsoft.ServiceBus - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value that indicates whether server-side batched operations are enabled. */ - readonly provider?: string; + enableBatchedOperations?: boolean; /** - * Resource on which the operation is performed: Invoice, etc. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Enumerates the possible values for the status of a messaging entity. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' */ - readonly resource?: string; + status?: EntityStatus; /** - * Operation type: Read, write, delete, etc. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value that indicates whether the topic supports ordering. */ - readonly operation?: string; -} - -/** - * A ServiceBus REST API operation - */ -export interface Operation { + supportOrdering?: boolean; /** - * Operation name: {provider}/{resource}/{operation} - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum + * duration is 5 minutes. */ - readonly name?: string; + autoDeleteOnIdle?: string; /** - * The object that represents the operation. + * Value that indicates whether the topic to be partitioned across multiple message brokers is + * enabled. */ - display?: OperationDisplay; -} - -/** - * Error response indicates ServiceBus service is not able to process the incoming request. The - * reason is provided in the error message. - */ -export interface ErrorResponse { + enablePartitioning?: boolean; /** - * Error code. + * Value that indicates whether Express Entities are enabled. An express topic holds a message in + * memory temporarily before writing it to persistent storage. */ - code?: string; + enableExpress?: boolean; /** - * Error message indicating why the operation failed. + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - message?: string; + readonly systemData?: SystemData; } /** @@ -662,7 +1043,7 @@ export interface SqlFilter { sqlExpression?: string; /** * This property is reserved for future use. An integer value showing the compatibility level, - * currently hard-coded to 20. Default value: 20. + * currently hard-coded to 20. */ compatibilityLevel?: number; /** @@ -739,6 +1120,11 @@ export interface Rule extends Resource { * Properties of correlationFilter */ correlationFilter?: CorrelationFilter; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -749,241 +1135,202 @@ export interface SqlRuleAction extends Action { } /** - * An interface representing PremiumMessagingRegionsProperties. + * Properties specific to client affine subscriptions. */ -export interface PremiumMessagingRegionsProperties { +export interface SBClientAffineProperties { /** - * Region code - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Indicates the Client ID of the application that created the client-affine subscription. */ - readonly code?: string; + clientId?: string; /** - * Full name of the region - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * For client-affine subscriptions, this value indicates whether the subscription is durable or + * not. */ - readonly fullName?: string; -} - -/** - * Premium Messaging Region - */ -export interface PremiumMessagingRegions extends ResourceNamespacePatch { - properties?: PremiumMessagingRegionsProperties; + isDurable?: boolean; + /** + * For client-affine subscriptions, this value indicates whether the subscription is shared or + * not. + */ + isShared?: boolean; } /** - * Capture storage details for capture description + * Description of subscription resource. */ -export interface Destination { - /** - * Name for capture destination - */ - name?: string; - /** - * Resource id of the storage account to be used to create the blobs - */ - storageAccountResourceId?: string; +export interface SBSubscription extends Resource { /** - * Blob container Name + * Number of messages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - blobContainer?: string; + readonly messageCount?: number; /** - * 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 + * Exact time the message was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - archiveNameFormat?: string; -} - -/** - * Properties to configure capture description for eventhub - */ -export interface CaptureDescription { + readonly createdAt?: Date; /** - * A value that indicates whether capture description is enabled. + * Last time there was a receive request to this subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enabled?: boolean; + readonly accessedAt?: Date; /** - * Enumerates the possible values for the encoding format of capture description. Possible values - * include: 'Avro', 'AvroDeflate' + * The exact time the message was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - encoding?: EncodingCaptureDescription; + readonly updatedAt?: Date; /** - * 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 + * Message count details + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - intervalInSeconds?: number; + readonly countDetails?: MessageCountDetails; /** - * 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 + * ISO 8061 lock duration timespan for the subscription. The default value is 1 minute. */ - sizeLimitInBytes?: number; + lockDuration?: string; /** - * Properties of Destination where capture will be stored. (Storage Account, Blob Names) + * Value indicating if a subscription supports the concept of sessions. */ - destination?: Destination; -} - -/** - * Single item in List or Get Event Hub operation - */ -export interface Eventhub extends Resource { + requiresSession?: boolean; /** - * Current number of shards on the Event Hub. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly partitionIds?: string[]; + defaultMessageTimeToLive?: string; /** - * Exact time the Event Hub was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value that indicates whether a subscription has dead letter support on filter evaluation + * exceptions. */ - readonly createdAt?: Date; + deadLetteringOnFilterEvaluationExceptions?: boolean; /** - * The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value that indicates whether a subscription has dead letter support when a message expires. */ - readonly updatedAt?: Date; + deadLetteringOnMessageExpiration?: boolean; /** - * Number of days to retain the events for this Event Hub, value should be 1 to 7 days + * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The + * default value is 10 minutes. */ - messageRetentionInDays?: number; + duplicateDetectionHistoryTimeWindow?: string; /** - * Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. + * Number of maximum deliveries. */ - partitionCount?: number; + maxDeliveryCount?: number; /** - * Enumerates the possible values for the status of the Event Hub. Possible values include: + * Enumerates the possible values for the status of a messaging entity. Possible values include: * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', * 'Renaming', 'Unknown' */ status?: EntityStatus; /** - * Properties of capture description + * Value that indicates whether server-side batched operations are enabled. */ - captureDescription?: CaptureDescription; -} - -/** - * Single item in List or Get Alias(Disaster Recovery configuration) operation - */ -export interface ArmDisasterRecovery extends Resource { + enableBatchedOperations?: boolean; /** - * Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' - * or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum + * duration is 5 minutes. */ - readonly provisioningState?: ProvisioningStateDR; + autoDeleteOnIdle?: string; /** - * Number of entities pending to be replicated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Queue/Topic name to forward the messages */ - readonly pendingReplicationOperationsCount?: number; + forwardTo?: string; /** - * ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing + * Queue/Topic name to forward the Dead Letter message */ - partnerNamespace?: string; + forwardDeadLetteredMessagesTo?: string; /** - * Primary/Secondary eventhub namespace name, which is part of GEO DR pairing + * Value that indicates whether the subscription has an affinity to the client id. */ - alternateName?: string; + isClientAffine?: boolean; /** - * role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or - * 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' + * Properties specific to client affine subscriptions. + */ + clientAffineProperties?: SBClientAffineProperties; + /** + * The system meta data relating to this resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly role?: RoleDisasterRecovery; + readonly systemData?: SystemData; } /** - * Single item in List or Get Migration Config operation + * Optional Parameters. */ -export interface MigrationConfigProperties extends Resource { - /** - * Provisioning state of Migration Configuration - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * Number of entities pending to be replicated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly pendingReplicationOperationsCount?: number; - /** - * 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; +export interface DisasterRecoveryConfigsFailOverOptionalParams extends msRest.RequestOptionsBase { /** - * State in which Standard to Premium Migration is, possible values : Unknown, Reverting, - * Completing, Initiating, Syncing, Active - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Parameters required to create an Alias(Disaster Recovery configuration) */ - readonly migrationState?: string; + parameters?: FailoverProperties; } /** - * Properties supplied for Subnet + * Optional Parameters. */ -export interface Subnet { +export interface QueuesListByNamespaceOptionalParams extends msRest.RequestOptionsBase { /** - * Resource ID of Virtual Network Subnet + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ - id: string; + skip?: number; + /** + * May be used to limit the number of results to the most recent N usageDetails. + */ + top?: number; } /** - * Description of NetWorkRuleSet - IpRules resource. + * Optional Parameters. */ -export interface NWRuleSetIpRules { +export interface QueuesListByNamespaceNextOptionalParams extends msRest.RequestOptionsBase { /** - * IP Mask + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ - ipMask?: string; + skip?: number; /** - * The IP Filter Action. Possible values include: 'Allow'. Default value: 'Allow'. + * May be used to limit the number of results to the most recent N usageDetails. */ - action?: NetworkRuleIPAction; + top?: number; } /** - * Description of VirtualNetworkRules - NetworkRules resource. + * Optional Parameters. */ -export interface NWRuleSetVirtualNetworkRules { +export interface TopicsListByNamespaceOptionalParams extends msRest.RequestOptionsBase { /** - * Subnet properties + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ - subnet?: Subnet; + skip?: number; /** - * Value that indicates whether to ignore missing VNet Service Endpoint + * May be used to limit the number of results to the most recent N usageDetails. */ - ignoreMissingVnetServiceEndpoint?: boolean; + top?: number; } /** - * Description of NetworkRuleSet resource. + * Optional Parameters. */ -export interface NetworkRuleSet extends Resource { - /** - * Default Action for Network Rule Set. Possible values include: 'Allow', 'Deny' - */ - defaultAction?: DefaultAction; +export interface TopicsListByNamespaceNextOptionalParams extends msRest.RequestOptionsBase { /** - * List VirtualNetwork Rules + * Skip is only used if a previous operation returned a partial result. If a previous response + * contains a nextLink element, the value of the nextLink element will include a skip parameter + * that specifies a starting point to use for subsequent calls. */ - virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; + skip?: number; /** - * List of IpRules + * May be used to limit the number of results to the most recent N usageDetails. */ - ipRules?: NWRuleSetIpRules[]; + top?: number; } /** * Optional Parameters. */ -export interface QueuesListByNamespaceOptionalParams extends msRest.RequestOptionsBase { +export interface RulesListBySubscriptionsOptionalParams extends msRest.RequestOptionsBase { /** * Skip is only used if a previous operation returned a partial result. If a previous response * contains a nextLink element, the value of the nextLink element will include a skip parameter @@ -999,7 +1346,7 @@ export interface QueuesListByNamespaceOptionalParams extends msRest.RequestOptio /** * Optional Parameters. */ -export interface TopicsListByNamespaceOptionalParams extends msRest.RequestOptionsBase { +export interface RulesListBySubscriptionsNextOptionalParams extends msRest.RequestOptionsBase { /** * Skip is only used if a previous operation returned a partial result. If a previous response * contains a nextLink element, the value of the nextLink element will include a skip parameter @@ -1031,7 +1378,7 @@ export interface SubscriptionsListByTopicOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface RulesListBySubscriptionsOptionalParams extends msRest.RequestOptionsBase { +export interface SubscriptionsListByTopicNextOptionalParams extends msRest.RequestOptionsBase { /** * Skip is only used if a previous operation returned a partial result. If a previous response * contains a nextLink element, the value of the nextLink element will include a skip parameter @@ -1053,26 +1400,25 @@ export interface ServiceBusManagementClientOptions extends AzureServiceClientOpt /** * @interface - * Result of the request to list ServiceBus operations. It contains a list of operations and a URL - * link to get the next set of results. - * @extends Array + * The response of the List Namespace operation. + * @extends Array */ -export interface OperationListResult extends Array { +export interface SBNamespaceListResult extends Array { /** - * URL to get the next set of operation list results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to the next set of results. Not empty if Value contains incomplete list of Namespaces. */ - readonly nextLink?: string; + nextLink?: string; } /** * @interface - * The response of the List Namespace operation. - * @extends Array + * The response of the List NetworkRuleSet operation. + * @extends Array */ -export interface SBNamespaceListResult extends Array { +export interface NetworkRuleSetListResult extends Array { /** - * Link to the next set of results. Not empty if Value contains incomplete list of Namespaces. + * Link to the next set of results. Not empty if Value contains incomplete list of + * NetworkRuleSet. */ nextLink?: string; } @@ -1092,17 +1438,30 @@ export interface SBAuthorizationRuleListResult extends Array + * Result of the list of all private endpoint connections operation. + * @extends Array */ -export interface NetworkRuleSetListResult extends Array { +export interface PrivateEndpointConnectionListResult extends Array { /** - * Link to the next set of results. Not empty if Value contains incomplete list of - * NetworkRuleSet. + * A link for the next page of private endpoint connection resources. */ nextLink?: string; } +/** + * @interface + * Result of the request to list ServiceBus operations. It contains a list of operations and a URL + * link to get the next set of results. + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * @interface * The result of the List Alias(Disaster Recovery configuration) operation. @@ -1155,18 +1514,6 @@ export interface SBTopicListResult extends Array { nextLink?: string; } -/** - * @interface - * The response to the List Subscriptions operation. - * @extends Array - */ -export interface SBSubscriptionListResult extends Array { - /** - * Link to the next set of results. Not empty if Value contains incomplete list of subscriptions. - */ - nextLink?: string; -} - /** * @interface * The response of the List rule operation. @@ -1181,29 +1528,14 @@ export interface RuleListResult extends Array { /** * @interface - * The response of the List PremiumMessagingRegions operation. - * @extends Array - */ -export interface PremiumMessagingRegionsListResult extends Array { - /** - * Link to the next set of results. Not empty if Value contains incomplete list of - * PremiumMessagingRegions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - -/** - * @interface - * The result of the List EventHubs operation. - * @extends Array + * The response to the List Subscriptions operation. + * @extends Array */ -export interface EventHubListResult extends Array { +export interface SBSubscriptionListResult extends Array { /** - * Link to the next set of results. Not empty if Value contains incomplete list of EventHubs. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to the next set of results. Not empty if Value contains incomplete list of subscriptions. */ - readonly nextLink?: string; + nextLink?: string; } /** @@ -1223,62 +1555,70 @@ export type SkuName = 'Basic' | 'Standard' | 'Premium'; export type SkuTier = 'Basic' | 'Standard' | 'Premium'; /** - * Defines values for NameSpaceType. - * Possible values include: 'Messaging', 'NotificationHub', 'Mixed', 'EventHub', 'Relay' + * Defines values for ManagedServiceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + * 'None' * @readonly * @enum {string} */ -export type NameSpaceType = 'Messaging' | 'NotificationHub' | 'Mixed' | 'EventHub' | 'Relay'; +export type ManagedServiceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; /** - * Defines values for AccessRights. - * Possible values include: 'Manage', 'Send', 'Listen' + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' * @readonly * @enum {string} */ -export type AccessRights = 'Manage' | 'Send' | 'Listen'; +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** - * Defines values for KeyType. - * Possible values include: 'PrimaryKey', 'SecondaryKey' + * Defines values for KeySource. + * Possible values include: 'Microsoft.KeyVault' * @readonly * @enum {string} */ -export type KeyType = 'PrimaryKey' | 'SecondaryKey'; +export type KeySource = 'Microsoft.KeyVault'; /** - * Defines values for EntityStatus. - * Possible values include: 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', - * 'Creating', 'Deleting', 'Renaming', 'Unknown' + * Defines values for PrivateLinkConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' * @readonly * @enum {string} */ -export type EntityStatus = 'Active' | 'Disabled' | 'Restoring' | 'SendDisabled' | 'ReceiveDisabled' | 'Creating' | 'Deleting' | 'Renaming' | 'Unknown'; +export type PrivateLinkConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; /** - * Defines values for UnavailableReason. - * Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', - * 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription' + * Defines values for EndPointProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' * @readonly * @enum {string} */ -export type UnavailableReason = 'None' | 'InvalidName' | 'SubscriptionIsDisabled' | 'NameInUse' | 'NameInLockdown' | 'TooManyNamespaceInCurrentSubscription'; +export type EndPointProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; /** - * Defines values for FilterType. - * Possible values include: 'SqlFilter', 'CorrelationFilter' + * Defines values for AccessRights. + * Possible values include: 'Manage', 'Send', 'Listen' * @readonly * @enum {string} */ -export type FilterType = 'SqlFilter' | 'CorrelationFilter'; +export type AccessRights = 'Manage' | 'Send' | 'Listen'; /** - * Defines values for EncodingCaptureDescription. - * Possible values include: 'Avro', 'AvroDeflate' + * Defines values for KeyType. + * Possible values include: 'PrimaryKey', 'SecondaryKey' + * @readonly + * @enum {string} + */ +export type KeyType = 'PrimaryKey' | 'SecondaryKey'; + +/** + * Defines values for UnavailableReason. + * Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', + * 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription' * @readonly * @enum {string} */ -export type EncodingCaptureDescription = 'Avro' | 'AvroDeflate'; +export type UnavailableReason = 'None' | 'InvalidName' | 'SubscriptionIsDisabled' | 'NameInUse' | 'NameInLockdown' | 'TooManyNamespaceInCurrentSubscription'; /** * Defines values for ProvisioningStateDR. @@ -1312,10 +1652,35 @@ export type NetworkRuleIPAction = 'Allow'; */ export type DefaultAction = 'Allow' | 'Deny'; +/** + * Defines values for PublicNetworkAccessFlag. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccessFlag = 'Enabled' | 'Disabled'; + +/** + * Defines values for EntityStatus. + * Possible values include: 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', + * 'Creating', 'Deleting', 'Renaming', 'Unknown' + * @readonly + * @enum {string} + */ +export type EntityStatus = 'Active' | 'Disabled' | 'Restoring' | 'SendDisabled' | 'ReceiveDisabled' | 'Creating' | 'Deleting' | 'Renaming' | 'Unknown'; + +/** + * Defines values for FilterType. + * Possible values include: 'SqlFilter', 'CorrelationFilter' + * @readonly + * @enum {string} + */ +export type FilterType = 'SqlFilter' | 'CorrelationFilter'; + /** * Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult & { +export type NamespacesListResponse = SBNamespaceListResult & { /** * The underlying HTTP response. */ @@ -1328,14 +1693,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SBNamespaceListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type NamespacesListByResourceGroupResponse = SBNamespaceListResult & { /** * The underlying HTTP response. */ @@ -1348,14 +1713,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SBNamespaceListResult; }; }; /** - * Contains response data for the checkNameAvailabilityMethod operation. + * Contains response data for the createOrUpdate operation. */ -export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilityResult & { +export type NamespacesCreateOrUpdateResponse = SBNamespace & { /** * The underlying HTTP response. */ @@ -1368,14 +1733,14 @@ export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilit /** * The response body as parsed JSON or XML */ - parsedBody: CheckNameAvailabilityResult; + parsedBody: SBNamespace; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type NamespacesListResponse = SBNamespaceListResult & { +export type NamespacesGetResponse = SBNamespace & { /** * The underlying HTTP response. */ @@ -1388,14 +1753,14 @@ export type NamespacesListResponse = SBNamespaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespaceListResult; + parsedBody: SBNamespace; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the update operation. */ -export type NamespacesListByResourceGroupResponse = SBNamespaceListResult & { +export type NamespacesUpdateResponse = SBNamespace & { /** * The underlying HTTP response. */ @@ -1408,14 +1773,14 @@ export type NamespacesListByResourceGroupResponse = SBNamespaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespaceListResult; + parsedBody: SBNamespace; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the createOrUpdateNetworkRuleSet operation. */ -export type NamespacesCreateOrUpdateResponse = SBNamespace & { +export type NamespacesCreateOrUpdateNetworkRuleSetResponse = NetworkRuleSet & { /** * The underlying HTTP response. */ @@ -1428,14 +1793,14 @@ export type NamespacesCreateOrUpdateResponse = SBNamespace & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespace; + parsedBody: NetworkRuleSet; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getNetworkRuleSet operation. */ -export type NamespacesGetResponse = SBNamespace & { +export type NamespacesGetNetworkRuleSetResponse = NetworkRuleSet & { /** * The underlying HTTP response. */ @@ -1448,14 +1813,114 @@ export type NamespacesGetResponse = SBNamespace & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespace; + parsedBody: NetworkRuleSet; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNetworkRuleSets operation. + */ +export type NamespacesListNetworkRuleSetsResponse = NetworkRuleSetListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkRuleSetListResult; + }; +}; + +/** + * Contains response data for the listAuthorizationRules operation. + */ +export type NamespacesListAuthorizationRulesResponse = SBAuthorizationRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SBAuthorizationRuleListResult; + }; +}; + +/** + * Contains response data for the createOrUpdateAuthorizationRule operation. + */ +export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SBAuthorizationRule; + }; +}; + +/** + * Contains response data for the getAuthorizationRule operation. + */ +export type NamespacesGetAuthorizationRuleResponse = SBAuthorizationRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SBAuthorizationRule; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type NamespacesListKeysResponse = AccessKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccessKeys; + }; +}; + +/** + * Contains response data for the regenerateKeys operation. */ -export type NamespacesUpdateResponse = SBNamespace & { +export type NamespacesRegenerateKeysResponse = AccessKeys & { /** * The underlying HTTP response. */ @@ -1468,14 +1933,14 @@ export type NamespacesUpdateResponse = SBNamespace & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespace; + parsedBody: AccessKeys; }; }; /** - * Contains response data for the listAuthorizationRules operation. + * Contains response data for the checkNameAvailabilityMethod operation. */ -export type NamespacesListAuthorizationRulesResponse = SBAuthorizationRuleListResult & { +export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilityResult & { /** * The underlying HTTP response. */ @@ -1488,14 +1953,14 @@ export type NamespacesListAuthorizationRulesResponse = SBAuthorizationRuleListRe /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRuleListResult; + parsedBody: CheckNameAvailabilityResult; }; }; /** - * Contains response data for the createOrUpdateAuthorizationRule operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule & { +export type NamespacesBeginCreateOrUpdateResponse = SBNamespace & { /** * The underlying HTTP response. */ @@ -1508,14 +1973,14 @@ export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationR /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRule; + parsedBody: SBNamespace; }; }; /** - * Contains response data for the getAuthorizationRule operation. + * Contains response data for the listNext operation. */ -export type NamespacesGetAuthorizationRuleResponse = SBAuthorizationRule & { +export type NamespacesListNextResponse = SBNamespaceListResult & { /** * The underlying HTTP response. */ @@ -1528,14 +1993,14 @@ export type NamespacesGetAuthorizationRuleResponse = SBAuthorizationRule & { /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRule; + parsedBody: SBNamespaceListResult; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type NamespacesListKeysResponse = AccessKeys & { +export type NamespacesListByResourceGroupNextResponse = SBNamespaceListResult & { /** * The underlying HTTP response. */ @@ -1548,14 +2013,14 @@ export type NamespacesListKeysResponse = AccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessKeys; + parsedBody: SBNamespaceListResult; }; }; /** - * Contains response data for the regenerateKeys operation. + * Contains response data for the listNetworkRuleSetsNext operation. */ -export type NamespacesRegenerateKeysResponse = AccessKeys & { +export type NamespacesListNetworkRuleSetsNextResponse = NetworkRuleSetListResult & { /** * The underlying HTTP response. */ @@ -1568,14 +2033,14 @@ export type NamespacesRegenerateKeysResponse = AccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessKeys; + parsedBody: NetworkRuleSetListResult; }; }; /** - * Contains response data for the createOrUpdateNetworkRuleSet operation. + * Contains response data for the listAuthorizationRulesNext operation. */ -export type NamespacesCreateOrUpdateNetworkRuleSetResponse = NetworkRuleSet & { +export type NamespacesListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { /** * The underlying HTTP response. */ @@ -1588,14 +2053,14 @@ export type NamespacesCreateOrUpdateNetworkRuleSetResponse = NetworkRuleSet & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkRuleSet; + parsedBody: SBAuthorizationRuleListResult; }; }; /** - * Contains response data for the getNetworkRuleSet operation. + * Contains response data for the list operation. */ -export type NamespacesGetNetworkRuleSetResponse = NetworkRuleSet & { +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -1608,14 +2073,14 @@ export type NamespacesGetNetworkRuleSetResponse = NetworkRuleSet & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkRuleSet; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listNetworkRuleSets operation. + * Contains response data for the createOrUpdate operation. */ -export type NamespacesListNetworkRuleSetsResponse = NetworkRuleSetListResult & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1628,14 +2093,14 @@ export type NamespacesListNetworkRuleSetsResponse = NetworkRuleSetListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkRuleSetListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type NamespacesBeginCreateOrUpdateResponse = SBNamespace & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1648,14 +2113,14 @@ export type NamespacesBeginCreateOrUpdateResponse = SBNamespace & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespace; + parsedBody: PrivateEndpointConnection; }; }; /** * Contains response data for the listNext operation. */ -export type NamespacesListNextResponse = SBNamespaceListResult & { +export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -1668,14 +2133,14 @@ export type NamespacesListNextResponse = SBNamespaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespaceListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type NamespacesListByResourceGroupNextResponse = SBNamespaceListResult & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResourcesListResult & { /** * The underlying HTTP response. */ @@ -1688,14 +2153,14 @@ export type NamespacesListByResourceGroupNextResponse = SBNamespaceListResult & /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespaceListResult; + parsedBody: PrivateLinkResourcesListResult; }; }; /** - * Contains response data for the listAuthorizationRulesNext operation. + * Contains response data for the list operation. */ -export type NamespacesListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -1708,14 +2173,14 @@ export type NamespacesListAuthorizationRulesNextResponse = SBAuthorizationRuleLi /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRuleListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the listNetworkRuleSetsNext operation. + * Contains response data for the listNext operation. */ -export type NamespacesListNetworkRuleSetsNextResponse = NetworkRuleSetListResult & { +export type OperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -1728,7 +2193,7 @@ export type NamespacesListNetworkRuleSetsNextResponse = NetworkRuleSetListResult /** * The response body as parsed JSON or XML */ - parsedBody: NetworkRuleSetListResult; + parsedBody: OperationListResult; }; }; @@ -2012,66 +2477,6 @@ export type MigrationConfigsListNextResponse = MigrationConfigListResult & { }; }; -/** - * Contains response data for the listByNamespace operation. - */ -export type QueuesListByNamespaceResponse = SBQueueListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SBQueueListResult; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type QueuesCreateOrUpdateResponse = SBQueue & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SBQueue; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type QueuesGetResponse = SBQueue & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SBQueue; - }; -}; - /** * Contains response data for the listAuthorizationRules operation. */ @@ -2173,9 +2578,9 @@ export type QueuesRegenerateKeysResponse = AccessKeys & { }; /** - * Contains response data for the listByNamespaceNext operation. + * Contains response data for the listByNamespace operation. */ -export type QueuesListByNamespaceNextResponse = SBQueueListResult & { +export type QueuesListByNamespaceResponse = SBQueueListResult & { /** * The underlying HTTP response. */ @@ -2193,9 +2598,9 @@ export type QueuesListByNamespaceNextResponse = SBQueueListResult & { }; /** - * Contains response data for the listAuthorizationRulesNext operation. + * Contains response data for the createOrUpdate operation. */ -export type QueuesListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { +export type QueuesCreateOrUpdateResponse = SBQueue & { /** * The underlying HTTP response. */ @@ -2208,14 +2613,14 @@ export type QueuesListAuthorizationRulesNextResponse = SBAuthorizationRuleListRe /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRuleListResult; + parsedBody: SBQueue; }; }; /** - * Contains response data for the listByNamespace operation. + * Contains response data for the get operation. */ -export type TopicsListByNamespaceResponse = SBTopicListResult & { +export type QueuesGetResponse = SBQueue & { /** * The underlying HTTP response. */ @@ -2228,14 +2633,14 @@ export type TopicsListByNamespaceResponse = SBTopicListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBTopicListResult; + parsedBody: SBQueue; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listAuthorizationRulesNext operation. */ -export type TopicsCreateOrUpdateResponse = SBTopic & { +export type QueuesListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { /** * The underlying HTTP response. */ @@ -2248,14 +2653,14 @@ export type TopicsCreateOrUpdateResponse = SBTopic & { /** * The response body as parsed JSON or XML */ - parsedBody: SBTopic; + parsedBody: SBAuthorizationRuleListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByNamespaceNext operation. */ -export type TopicsGetResponse = SBTopic & { +export type QueuesListByNamespaceNextResponse = SBQueueListResult & { /** * The underlying HTTP response. */ @@ -2268,7 +2673,7 @@ export type TopicsGetResponse = SBTopic & { /** * The response body as parsed JSON or XML */ - parsedBody: SBTopic; + parsedBody: SBQueueListResult; }; }; @@ -2373,9 +2778,9 @@ export type TopicsRegenerateKeysResponse = AccessKeys & { }; /** - * Contains response data for the listByNamespaceNext operation. + * Contains response data for the listByNamespace operation. */ -export type TopicsListByNamespaceNextResponse = SBTopicListResult & { +export type TopicsListByNamespaceResponse = SBTopicListResult & { /** * The underlying HTTP response. */ @@ -2393,29 +2798,9 @@ export type TopicsListByNamespaceNextResponse = SBTopicListResult & { }; /** - * Contains response data for the listAuthorizationRulesNext operation. - */ -export type TopicsListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SBAuthorizationRuleListResult; - }; -}; - -/** - * Contains response data for the listByTopic operation. + * Contains response data for the createOrUpdate operation. */ -export type SubscriptionsListByTopicResponse = SBSubscriptionListResult & { +export type TopicsCreateOrUpdateResponse = SBTopic & { /** * The underlying HTTP response. */ @@ -2428,14 +2813,14 @@ export type SubscriptionsListByTopicResponse = SBSubscriptionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscriptionListResult; + parsedBody: SBTopic; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type SubscriptionsCreateOrUpdateResponse = SBSubscription & { +export type TopicsGetResponse = SBTopic & { /** * The underlying HTTP response. */ @@ -2448,14 +2833,14 @@ export type SubscriptionsCreateOrUpdateResponse = SBSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscription; + parsedBody: SBTopic; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listAuthorizationRulesNext operation. */ -export type SubscriptionsGetResponse = SBSubscription & { +export type TopicsListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { /** * The underlying HTTP response. */ @@ -2468,14 +2853,14 @@ export type SubscriptionsGetResponse = SBSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscription; + parsedBody: SBAuthorizationRuleListResult; }; }; /** - * Contains response data for the listByTopicNext operation. + * Contains response data for the listByNamespaceNext operation. */ -export type SubscriptionsListByTopicNextResponse = SBSubscriptionListResult & { +export type TopicsListByNamespaceNextResponse = SBTopicListResult & { /** * The underlying HTTP response. */ @@ -2488,7 +2873,7 @@ export type SubscriptionsListByTopicNextResponse = SBSubscriptionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscriptionListResult; + parsedBody: SBTopicListResult; }; }; @@ -2573,49 +2958,9 @@ export type RulesListBySubscriptionsNextResponse = RuleListResult & { }; /** - * Contains response data for the listBySku operation. - */ -export type RegionsListBySkuResponse = PremiumMessagingRegionsListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PremiumMessagingRegionsListResult; - }; -}; - -/** - * Contains response data for the listBySkuNext operation. - */ -export type RegionsListBySkuNextResponse = PremiumMessagingRegionsListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PremiumMessagingRegionsListResult; - }; -}; - -/** - * Contains response data for the list operation. + * Contains response data for the listByTopic operation. */ -export type PremiumMessagingRegionsListResponse = PremiumMessagingRegionsListResult & { +export type SubscriptionsListByTopicResponse = SBSubscriptionListResult & { /** * The underlying HTTP response. */ @@ -2628,14 +2973,14 @@ export type PremiumMessagingRegionsListResponse = PremiumMessagingRegionsListRes /** * The response body as parsed JSON or XML */ - parsedBody: PremiumMessagingRegionsListResult; + parsedBody: SBSubscriptionListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type PremiumMessagingRegionsListNextResponse = PremiumMessagingRegionsListResult & { +export type SubscriptionsCreateOrUpdateResponse = SBSubscription & { /** * The underlying HTTP response. */ @@ -2648,14 +2993,14 @@ export type PremiumMessagingRegionsListNextResponse = PremiumMessagingRegionsLis /** * The response body as parsed JSON or XML */ - parsedBody: PremiumMessagingRegionsListResult; + parsedBody: SBSubscription; }; }; /** - * Contains response data for the listByNamespace operation. + * Contains response data for the get operation. */ -export type EventHubsListByNamespaceResponse = EventHubListResult & { +export type SubscriptionsGetResponse = SBSubscription & { /** * The underlying HTTP response. */ @@ -2668,14 +3013,14 @@ export type EventHubsListByNamespaceResponse = EventHubListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventHubListResult; + parsedBody: SBSubscription; }; }; /** - * Contains response data for the listByNamespaceNext operation. + * Contains response data for the listByTopicNext operation. */ -export type EventHubsListByNamespaceNextResponse = EventHubListResult & { +export type SubscriptionsListByTopicNextResponse = SBSubscriptionListResult & { /** * The underlying HTTP response. */ @@ -2688,6 +3033,6 @@ export type EventHubsListByNamespaceNextResponse = EventHubListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventHubListResult; + parsedBody: SBSubscriptionListResult; }; }; diff --git a/sdk/servicebus/arm-servicebus/src/models/mappers.ts b/sdk/servicebus/arm-servicebus/src/models/mappers.ts index 391ff4d395bc..d4a0538fb3d0 100644 --- a/sdk/servicebus/arm-servicebus/src/models/mappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -43,35 +43,6 @@ export const Resource: msRest.CompositeMapper = { } }; -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const ResourceNamespacePatch: msRest.CompositeMapper = { serializedName: "ResourceNamespacePatch", type: { @@ -139,104 +110,132 @@ export const SBSku: msRest.CompositeMapper = { } }; -export const SBNamespace: msRest.CompositeMapper = { - serializedName: "SBNamespace", +export const UserAssignedIdentity: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentity", type: { name: "Composite", - className: "SBNamespace", + className: "UserAssignedIdentity", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + principalId: { + readOnly: true, + serializedName: "principalId", type: { - name: "Composite", - className: "SBSku" + name: "String" } }, - provisioningState: { + clientId: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "clientId", type: { name: "String" } - }, - createdAt: { + } + } + } +}; + +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { readOnly: true, - serializedName: "properties.createdAt", + serializedName: "principalId", type: { - name: "DateTime" + name: "String" } }, - updatedAt: { + tenantId: { readOnly: true, - serializedName: "properties.updatedAt", + serializedName: "tenantId", type: { - name: "DateTime" + name: "String" } }, - serviceBusEndpoint: { - readOnly: true, - serializedName: "properties.serviceBusEndpoint", + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, - metricId: { - readOnly: true, - serializedName: "properties.metricId", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentity" + } + } } } } } }; -export const SBNamespaceUpdateParameters: msRest.CompositeMapper = { - serializedName: "SBNamespaceUpdateParameters", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "SBNamespaceUpdateParameters", + className: "SystemData", modelProperties: { - ...ResourceNamespacePatch.type.modelProperties, - sku: { - serializedName: "sku", + createdBy: { + serializedName: "createdBy", type: { - name: "Composite", - className: "SBSku" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, createdAt: { - readOnly: true, - serializedName: "properties.createdAt", + serializedName: "createdAt", type: { name: "DateTime" } }, - updatedAt: { - readOnly: true, - serializedName: "properties.updatedAt", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { - name: "DateTime" + name: "String" } }, - serviceBusEndpoint: { - readOnly: true, - serializedName: "properties.serviceBusEndpoint", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - metricId: { - readOnly: true, - serializedName: "properties.metricId", + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const UserAssignedIdentityProperties: msRest.CompositeMapper = { + serializedName: "userAssignedIdentityProperties", + type: { + name: "Composite", + className: "UserAssignedIdentityProperties", + modelProperties: { + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } @@ -245,165 +244,1053 @@ export const SBNamespaceUpdateParameters: msRest.CompositeMapper = { } }; -export const SBNamespaceMigrate: msRest.CompositeMapper = { - serializedName: "SBNamespaceMigrate", +export const KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "KeyVaultProperties", type: { name: "Composite", - className: "SBNamespaceMigrate", + className: "KeyVaultProperties", modelProperties: { - targetNamespaceType: { - required: true, - serializedName: "targetNamespaceType", + keyName: { + serializedName: "keyName", type: { - name: "Enum", - allowedValues: [ - "Messaging", - "NotificationHub", - "Mixed", - "EventHub", - "Relay" - ] + name: "String" + } + }, + keyVaultUri: { + serializedName: "keyVaultUri", + type: { + name: "String" + } + }, + keyVersion: { + serializedName: "keyVersion", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "UserAssignedIdentityProperties" } } } } }; -export const SBAuthorizationRule: msRest.CompositeMapper = { - serializedName: "SBAuthorizationRule", +export const Encryption: msRest.CompositeMapper = { + serializedName: "Encryption", type: { name: "Composite", - className: "SBAuthorizationRule", + className: "Encryption", modelProperties: { - ...Resource.type.modelProperties, - rights: { - required: true, - serializedName: "properties.rights", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "Manage", - "Send", - "Listen" - ] + name: "Composite", + className: "KeyVaultProperties" } } } + }, + keySource: { + serializedName: "keySource", + defaultValue: 'Microsoft.KeyVault', + type: { + name: "Enum", + allowedValues: [ + "Microsoft.KeyVault" + ] + } + }, + requireInfrastructureEncryption: { + serializedName: "requireInfrastructureEncryption", + type: { + name: "Boolean" + } } } } }; -export const AuthorizationRuleProperties: msRest.CompositeMapper = { - serializedName: "AuthorizationRuleProperties", +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", type: { name: "Composite", - className: "AuthorizationRuleProperties", + className: "PrivateEndpoint", modelProperties: { - rights: { - required: true, - serializedName: "rights", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "Manage", - "Send", - "Listen" - ] - } - } + name: "String" } } } } }; -export const AccessKeys: msRest.CompositeMapper = { - serializedName: "AccessKeys", +export const ConnectionState: msRest.CompositeMapper = { + serializedName: "ConnectionState", type: { name: "Composite", - className: "AccessKeys", + className: "ConnectionState", modelProperties: { - primaryConnectionString: { - readOnly: true, - serializedName: "primaryConnectionString", + status: { + serializedName: "status", type: { name: "String" } }, - secondaryConnectionString: { - readOnly: true, - serializedName: "secondaryConnectionString", + description: { + serializedName: "description", type: { name: "String" } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } }, - aliasPrimaryConnectionString: { - readOnly: true, - serializedName: "aliasPrimaryConnectionString", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "ConnectionState" } }, - aliasSecondaryConnectionString: { - readOnly: true, - serializedName: "aliasSecondaryConnectionString", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - primaryKey: { + systemData: { readOnly: true, - serializedName: "primaryKey", + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + location: { + required: true, + serializedName: "location", type: { name: "String" } }, - secondaryKey: { - readOnly: true, - serializedName: "secondaryKey", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SBNamespace: msRest.CompositeMapper = { + serializedName: "SBNamespace", + type: { + name: "Composite", + className: "SBNamespace", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SBSku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + updatedAt: { + readOnly: true, + serializedName: "properties.updatedAt", + type: { + name: "DateTime" + } + }, + serviceBusEndpoint: { + readOnly: true, + serializedName: "properties.serviceBusEndpoint", + type: { + name: "String" + } + }, + metricId: { + readOnly: true, + serializedName: "properties.metricId", + type: { + name: "String" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SBNamespaceUpdateParameters: msRest.CompositeMapper = { + serializedName: "SBNamespaceUpdateParameters", + type: { + name: "Composite", + className: "SBNamespaceUpdateParameters", + modelProperties: { + ...ResourceNamespacePatch.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SBSku" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + updatedAt: { + readOnly: true, + serializedName: "properties.updatedAt", + type: { + name: "DateTime" + } + }, + serviceBusEndpoint: { + readOnly: true, + serializedName: "properties.serviceBusEndpoint", + type: { + name: "String" + } + }, + metricId: { + readOnly: true, + serializedName: "properties.metricId", + type: { + name: "String" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + groupId: { + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourcesListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourcesListResult", + type: { + name: "Composite", + className: "PrivateLinkResourcesListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + +export const ErrorResponseError: msRest.CompositeMapper = { + serializedName: "ErrorResponse_error", + type: { + name: "Composite", + className: "ErrorResponseError", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseError" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + readOnly: true, + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const SBAuthorizationRule: msRest.CompositeMapper = { + serializedName: "SBAuthorizationRule", + type: { + name: "Composite", + className: "SBAuthorizationRule", + modelProperties: { + ...Resource.type.modelProperties, + rights: { + required: true, + serializedName: "properties.rights", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "Manage", + "Send", + "Listen" + ] + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const AccessKeys: msRest.CompositeMapper = { + serializedName: "AccessKeys", + type: { + name: "Composite", + className: "AccessKeys", + modelProperties: { + primaryConnectionString: { + readOnly: true, + serializedName: "primaryConnectionString", + type: { + name: "String" + } + }, + secondaryConnectionString: { + readOnly: true, + serializedName: "secondaryConnectionString", + type: { + name: "String" + } + }, + aliasPrimaryConnectionString: { + readOnly: true, + serializedName: "aliasPrimaryConnectionString", + type: { + name: "String" + } + }, + aliasSecondaryConnectionString: { + readOnly: true, + serializedName: "aliasSecondaryConnectionString", + type: { + name: "String" + } + }, + primaryKey: { + readOnly: true, + serializedName: "primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + readOnly: true, + serializedName: "secondaryKey", + type: { + name: "String" + } + }, + keyName: { + readOnly: true, + serializedName: "keyName", + type: { + name: "String" + } + } + } + } +}; + +export const RegenerateAccessKeyParameters: msRest.CompositeMapper = { + serializedName: "RegenerateAccessKeyParameters", + type: { + name: "Composite", + className: "RegenerateAccessKeyParameters", + modelProperties: { + keyType: { + required: true, + serializedName: "keyType", + type: { + name: "Enum", + allowedValues: [ + "PrimaryKey", + "SecondaryKey" + ] + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailability: msRest.CompositeMapper = { + serializedName: "CheckNameAvailability", + type: { + name: "Composite", + className: "CheckNameAvailability", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailabilityResult: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityResult", + type: { + name: "Composite", + className: "CheckNameAvailabilityResult", + modelProperties: { + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + nameAvailable: { + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + type: { + name: "Enum", + allowedValues: [ + "None", + "InvalidName", + "SubscriptionIsDisabled", + "NameInUse", + "NameInLockdown", + "TooManyNamespaceInCurrentSubscription" + ] + } + } + } + } +}; + +export const ArmDisasterRecovery: msRest.CompositeMapper = { + serializedName: "ArmDisasterRecovery", + type: { + name: "Composite", + className: "ArmDisasterRecovery", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Accepted", + "Succeeded", + "Failed" + ] + } + }, + pendingReplicationOperationsCount: { + readOnly: true, + serializedName: "properties.pendingReplicationOperationsCount", + type: { + name: "Number" + } + }, + partnerNamespace: { + serializedName: "properties.partnerNamespace", + type: { + name: "String" + } + }, + alternateName: { + serializedName: "properties.alternateName", + type: { + name: "String" + } + }, + role: { + readOnly: true, + serializedName: "properties.role", + type: { + name: "Enum", + allowedValues: [ + "Primary", + "PrimaryNotReplicating", + "Secondary" + ] + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const FailoverProperties: msRest.CompositeMapper = { + serializedName: "FailoverProperties", + type: { + name: "Composite", + className: "FailoverProperties", + modelProperties: { + isSafeFailover: { + serializedName: "properties.IsSafeFailover", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MigrationConfigProperties: msRest.CompositeMapper = { + serializedName: "MigrationConfigProperties", + type: { + name: "Composite", + className: "MigrationConfigProperties", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + pendingReplicationOperationsCount: { + readOnly: true, + serializedName: "properties.pendingReplicationOperationsCount", + type: { + name: "Number" + } + }, + targetNamespace: { + required: true, + serializedName: "properties.targetNamespace", + type: { + name: "String" + } + }, + postMigrationName: { + required: true, + serializedName: "properties.postMigrationName", + type: { + name: "String" + } + }, + migrationState: { + readOnly: true, + serializedName: "properties.migrationState", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const NWRuleSetIpRules: msRest.CompositeMapper = { + serializedName: "NWRuleSetIpRules", + type: { + name: "Composite", + className: "NWRuleSetIpRules", + modelProperties: { + ipMask: { + serializedName: "ipMask", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + defaultValue: 'Allow', + type: { + name: "String" + } + } + } + } +}; + +export const Subnet: msRest.CompositeMapper = { + serializedName: "Subnet", + type: { + name: "Composite", + className: "Subnet", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const NWRuleSetVirtualNetworkRules: msRest.CompositeMapper = { + serializedName: "NWRuleSetVirtualNetworkRules", + type: { + name: "Composite", + className: "NWRuleSetVirtualNetworkRules", + modelProperties: { + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + ignoreMissingVnetServiceEndpoint: { + serializedName: "ignoreMissingVnetServiceEndpoint", + type: { + name: "Boolean" + } + } + } + } +}; + +export const NetworkRuleSet: msRest.CompositeMapper = { + serializedName: "NetworkRuleSet", + type: { + name: "Composite", + className: "NetworkRuleSet", + modelProperties: { + ...Resource.type.modelProperties, + trustedServiceAccessEnabled: { + serializedName: "properties.trustedServiceAccessEnabled", + type: { + name: "Boolean" + } + }, + defaultAction: { + serializedName: "properties.defaultAction", + type: { + name: "String" + } + }, + virtualNetworkRules: { + serializedName: "properties.virtualNetworkRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NWRuleSetVirtualNetworkRules" + } + } + } + }, + ipRules: { + serializedName: "properties.ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NWRuleSetIpRules" + } + } + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + defaultValue: 'Enabled', type: { name: "String" } }, - keyName: { + systemData: { readOnly: true, - serializedName: "keyName", - type: { - name: "String" - } - } - } - } -}; - -export const RegenerateAccessKeyParameters: msRest.CompositeMapper = { - serializedName: "RegenerateAccessKeyParameters", - type: { - name: "Composite", - className: "RegenerateAccessKeyParameters", - modelProperties: { - keyType: { - required: true, - serializedName: "keyType", - type: { - name: "Enum", - allowedValues: [ - "PrimaryKey", - "SecondaryKey" - ] - } - }, - key: { - serializedName: "key", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } @@ -517,6 +1404,12 @@ export const SBQueue: msRest.CompositeMapper = { name: "Number" } }, + maxMessageSizeInKilobytes: { + serializedName: "properties.maxMessageSizeInKilobytes", + type: { + name: "Number" + } + }, requiresDuplicateDetection: { serializedName: "properties.requiresDuplicateDetection", type: { @@ -605,6 +1498,14 @@ export const SBQueue: msRest.CompositeMapper = { type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -672,138 +1573,14 @@ export const SBTopic: msRest.CompositeMapper = { name: "Number" } }, - requiresDuplicateDetection: { - serializedName: "properties.requiresDuplicateDetection", - type: { - name: "Boolean" - } - }, - duplicateDetectionHistoryTimeWindow: { - serializedName: "properties.duplicateDetectionHistoryTimeWindow", - type: { - name: "TimeSpan" - } - }, - enableBatchedOperations: { - serializedName: "properties.enableBatchedOperations", - type: { - name: "Boolean" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] - } - }, - supportOrdering: { - serializedName: "properties.supportOrdering", - type: { - name: "Boolean" - } - }, - autoDeleteOnIdle: { - serializedName: "properties.autoDeleteOnIdle", - type: { - name: "TimeSpan" - } - }, - enablePartitioning: { - serializedName: "properties.enablePartitioning", - type: { - name: "Boolean" - } - }, - enableExpress: { - serializedName: "properties.enableExpress", - type: { - name: "Boolean" - } - } - } - } -}; - -export const SBSubscription: msRest.CompositeMapper = { - serializedName: "SBSubscription", - type: { - name: "Composite", - className: "SBSubscription", - modelProperties: { - ...Resource.type.modelProperties, - messageCount: { - readOnly: true, - serializedName: "properties.messageCount", + maxMessageSizeInKilobytes: { + serializedName: "properties.maxMessageSizeInKilobytes", type: { name: "Number" } }, - createdAt: { - readOnly: true, - serializedName: "properties.createdAt", - type: { - name: "DateTime" - } - }, - accessedAt: { - readOnly: true, - serializedName: "properties.accessedAt", - type: { - name: "DateTime" - } - }, - updatedAt: { - readOnly: true, - serializedName: "properties.updatedAt", - type: { - name: "DateTime" - } - }, - countDetails: { - readOnly: true, - serializedName: "properties.countDetails", - type: { - name: "Composite", - className: "MessageCountDetails" - } - }, - lockDuration: { - serializedName: "properties.lockDuration", - type: { - name: "TimeSpan" - } - }, - requiresSession: { - serializedName: "properties.requiresSession", - type: { - name: "Boolean" - } - }, - defaultMessageTimeToLive: { - serializedName: "properties.defaultMessageTimeToLive", - type: { - name: "TimeSpan" - } - }, - deadLetteringOnFilterEvaluationExceptions: { - serializedName: "properties.deadLetteringOnFilterEvaluationExceptions", - type: { - name: "Boolean" - } - }, - deadLetteringOnMessageExpiration: { - serializedName: "properties.deadLetteringOnMessageExpiration", + requiresDuplicateDetection: { + serializedName: "properties.requiresDuplicateDetection", type: { name: "Boolean" } @@ -814,182 +1591,59 @@ export const SBSubscription: msRest.CompositeMapper = { name: "TimeSpan" } }, - maxDeliveryCount: { - serializedName: "properties.maxDeliveryCount", - type: { - name: "Number" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] - } - }, - enableBatchedOperations: { - serializedName: "properties.enableBatchedOperations", - type: { - name: "Boolean" - } - }, - autoDeleteOnIdle: { - serializedName: "properties.autoDeleteOnIdle", - type: { - name: "TimeSpan" - } - }, - forwardTo: { - serializedName: "properties.forwardTo", - type: { - name: "String" - } - }, - forwardDeadLetteredMessagesTo: { - serializedName: "properties.forwardDeadLetteredMessagesTo", - type: { - name: "String" - } - } - } - } -}; - -export const CheckNameAvailability: msRest.CompositeMapper = { - serializedName: "CheckNameAvailability", - type: { - name: "Composite", - className: "CheckNameAvailability", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const CheckNameAvailabilityResult: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityResult", - type: { - name: "Composite", - className: "CheckNameAvailabilityResult", - modelProperties: { - message: { - readOnly: true, - serializedName: "message", - type: { - name: "String" - } - }, - nameAvailable: { - serializedName: "nameAvailable", + enableBatchedOperations: { + serializedName: "properties.enableBatchedOperations", type: { name: "Boolean" } }, - reason: { - serializedName: "reason", + status: { + serializedName: "properties.status", type: { name: "Enum", allowedValues: [ - "None", - "InvalidName", - "SubscriptionIsDisabled", - "NameInUse", - "NameInLockdown", - "TooManyNamespaceInCurrentSubscription" + "Active", + "Disabled", + "Restoring", + "SendDisabled", + "ReceiveDisabled", + "Creating", + "Deleting", + "Renaming", + "Unknown" ] } - } - } - } -}; - -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", - type: { - name: "String" - } }, - resource: { - readOnly: true, - serializedName: "resource", + supportOrdering: { + serializedName: "properties.supportOrdering", type: { - name: "String" + name: "Boolean" } }, - operation: { - readOnly: true, - serializedName: "operation", - type: { - name: "String" - } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", + autoDeleteOnIdle: { + serializedName: "properties.autoDeleteOnIdle", type: { - name: "String" + name: "TimeSpan" } }, - display: { - serializedName: "display", + enablePartitioning: { + serializedName: "properties.enablePartitioning", type: { - name: "Composite", - className: "OperationDisplay" + name: "Boolean" } - } - } - } -}; - -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - serializedName: "code", + }, + enableExpress: { + serializedName: "properties.enableExpress", type: { - name: "String" + name: "Boolean" } }, - message: { - serializedName: "message", + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } @@ -1039,11 +1693,6 @@ export const SqlFilter: msRest.CompositeMapper = { }, compatibilityLevel: { serializedName: "compatibilityLevel", - defaultValue: 20, - constraints: { - InclusiveMaximum: 20, - InclusiveMinimum: 20 - }, type: { name: "Number" } @@ -1172,168 +1821,70 @@ export const Rule: msRest.CompositeMapper = { name: "Composite", className: "CorrelationFilter" } - } - } - } -}; - -export const SqlRuleAction: msRest.CompositeMapper = { - serializedName: "SqlRuleAction", - type: { - name: "Composite", - className: "SqlRuleAction", - modelProperties: { - ...Action.type.modelProperties - } - } -}; - -export const PremiumMessagingRegionsProperties: msRest.CompositeMapper = { - serializedName: "PremiumMessagingRegions_properties", - type: { - name: "Composite", - className: "PremiumMessagingRegionsProperties", - modelProperties: { - code: { - readOnly: true, - serializedName: "code", - type: { - name: "String" - } }, - fullName: { + systemData: { readOnly: true, - serializedName: "fullName", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const PremiumMessagingRegions: msRest.CompositeMapper = { - serializedName: "PremiumMessagingRegions", +export const SqlRuleAction: msRest.CompositeMapper = { + serializedName: "SqlRuleAction", type: { name: "Composite", - className: "PremiumMessagingRegions", + className: "SqlRuleAction", modelProperties: { - ...ResourceNamespacePatch.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PremiumMessagingRegionsProperties" - } - } + ...Action.type.modelProperties } } }; -export const Destination: msRest.CompositeMapper = { - serializedName: "Destination", +export const SBClientAffineProperties: msRest.CompositeMapper = { + serializedName: "SBClientAffineProperties", type: { name: "Composite", - className: "Destination", + className: "SBClientAffineProperties", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - storageAccountResourceId: { - serializedName: "properties.storageAccountResourceId", - type: { - name: "String" - } - }, - blobContainer: { - serializedName: "properties.blobContainer", + clientId: { + serializedName: "clientId", type: { name: "String" } }, - archiveNameFormat: { - serializedName: "properties.archiveNameFormat", - type: { - name: "String" - } - } - } - } -}; - -export const CaptureDescription: msRest.CompositeMapper = { - serializedName: "CaptureDescription", - type: { - name: "Composite", - className: "CaptureDescription", - modelProperties: { - enabled: { - serializedName: "enabled", + isDurable: { + serializedName: "isDurable", type: { name: "Boolean" } }, - encoding: { - serializedName: "encoding", - type: { - name: "Enum", - allowedValues: [ - "Avro", - "AvroDeflate" - ] - } - }, - intervalInSeconds: { - serializedName: "intervalInSeconds", - constraints: { - InclusiveMaximum: 900, - InclusiveMinimum: 60 - }, - type: { - name: "Number" - } - }, - sizeLimitInBytes: { - serializedName: "sizeLimitInBytes", - constraints: { - InclusiveMaximum: 524288000, - InclusiveMinimum: 10485760 - }, + isShared: { + serializedName: "isShared", type: { - name: "Number" - } - }, - destination: { - serializedName: "destination", - type: { - name: "Composite", - className: "Destination" + name: "Boolean" } } } } }; -export const Eventhub: msRest.CompositeMapper = { - serializedName: "Eventhub", +export const SBSubscription: msRest.CompositeMapper = { + serializedName: "SBSubscription", type: { name: "Composite", - className: "Eventhub", + className: "SBSubscription", modelProperties: { ...Resource.type.modelProperties, - partitionIds: { + messageCount: { readOnly: true, - serializedName: "properties.partitionIds", + serializedName: "properties.messageCount", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, createdAt: { @@ -1343,286 +1894,183 @@ export const Eventhub: msRest.CompositeMapper = { name: "DateTime" } }, - updatedAt: { + accessedAt: { readOnly: true, - serializedName: "properties.updatedAt", + serializedName: "properties.accessedAt", type: { name: "DateTime" } }, - messageRetentionInDays: { - serializedName: "properties.messageRetentionInDays", - constraints: { - InclusiveMaximum: 7, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - }, - partitionCount: { - serializedName: "properties.partitionCount", - constraints: { - InclusiveMaximum: 32, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - }, - status: { - serializedName: "properties.status", + updatedAt: { + readOnly: true, + serializedName: "properties.updatedAt", type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] + name: "DateTime" } }, - captureDescription: { - serializedName: "properties.captureDescription", + countDetails: { + readOnly: true, + serializedName: "properties.countDetails", type: { name: "Composite", - className: "CaptureDescription" + className: "MessageCountDetails" } - } - } - } -}; - -export const ArmDisasterRecovery: msRest.CompositeMapper = { - serializedName: "ArmDisasterRecovery", - type: { - name: "Composite", - className: "ArmDisasterRecovery", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + }, + lockDuration: { + serializedName: "properties.lockDuration", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Succeeded", - "Failed" - ] + name: "TimeSpan" } }, - pendingReplicationOperationsCount: { - readOnly: true, - serializedName: "properties.pendingReplicationOperationsCount", + requiresSession: { + serializedName: "properties.requiresSession", type: { - name: "Number" + name: "Boolean" } }, - partnerNamespace: { - serializedName: "properties.partnerNamespace", + defaultMessageTimeToLive: { + serializedName: "properties.defaultMessageTimeToLive", type: { - name: "String" + name: "TimeSpan" } }, - alternateName: { - serializedName: "properties.alternateName", + deadLetteringOnFilterEvaluationExceptions: { + serializedName: "properties.deadLetteringOnFilterEvaluationExceptions", type: { - name: "String" + name: "Boolean" } }, - role: { - readOnly: true, - serializedName: "properties.role", + deadLetteringOnMessageExpiration: { + serializedName: "properties.deadLetteringOnMessageExpiration", type: { - name: "Enum", - allowedValues: [ - "Primary", - "PrimaryNotReplicating", - "Secondary" - ] + name: "Boolean" } - } - } - } -}; - -export const MigrationConfigProperties: msRest.CompositeMapper = { - serializedName: "MigrationConfigProperties", - type: { - name: "Composite", - className: "MigrationConfigProperties", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + }, + duplicateDetectionHistoryTimeWindow: { + serializedName: "properties.duplicateDetectionHistoryTimeWindow", type: { - name: "String" + name: "TimeSpan" } }, - pendingReplicationOperationsCount: { - readOnly: true, - serializedName: "properties.pendingReplicationOperationsCount", + maxDeliveryCount: { + serializedName: "properties.maxDeliveryCount", type: { name: "Number" } }, - targetNamespace: { - required: true, - serializedName: "properties.targetNamespace", + status: { + serializedName: "properties.status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Active", + "Disabled", + "Restoring", + "SendDisabled", + "ReceiveDisabled", + "Creating", + "Deleting", + "Renaming", + "Unknown" + ] } }, - postMigrationName: { - required: true, - serializedName: "properties.postMigrationName", + enableBatchedOperations: { + serializedName: "properties.enableBatchedOperations", type: { - name: "String" + name: "Boolean" } }, - migrationState: { - readOnly: true, - serializedName: "properties.migrationState", + autoDeleteOnIdle: { + serializedName: "properties.autoDeleteOnIdle", type: { - name: "String" + name: "TimeSpan" } - } - } - } -}; - -export const Subnet: msRest.CompositeMapper = { - serializedName: "Subnet", - type: { - name: "Composite", - className: "Subnet", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + forwardTo: { + serializedName: "properties.forwardTo", type: { name: "String" } - } - } - } -}; - -export const NWRuleSetIpRules: msRest.CompositeMapper = { - serializedName: "NWRuleSetIpRules", - type: { - name: "Composite", - className: "NWRuleSetIpRules", - modelProperties: { - ipMask: { - serializedName: "ipMask", + }, + forwardDeadLetteredMessagesTo: { + serializedName: "properties.forwardDeadLetteredMessagesTo", type: { name: "String" } }, - action: { - serializedName: "action", - defaultValue: 'Allow', + isClientAffine: { + serializedName: "properties.isClientAffine", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const NWRuleSetVirtualNetworkRules: msRest.CompositeMapper = { - serializedName: "NWRuleSetVirtualNetworkRules", - type: { - name: "Composite", - className: "NWRuleSetVirtualNetworkRules", - modelProperties: { - subnet: { - serializedName: "subnet", + }, + clientAffineProperties: { + serializedName: "properties.clientAffineProperties", type: { name: "Composite", - className: "Subnet" + className: "SBClientAffineProperties" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "ignoreMissingVnetServiceEndpoint", + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "Boolean" + name: "Composite", + className: "SystemData" } } } } }; -export const NetworkRuleSet: msRest.CompositeMapper = { - serializedName: "NetworkRuleSet", +export const SBNamespaceListResult: msRest.CompositeMapper = { + serializedName: "SBNamespaceListResult", type: { name: "Composite", - className: "NetworkRuleSet", + className: "SBNamespaceListResult", modelProperties: { - ...Resource.type.modelProperties, - defaultAction: { - serializedName: "properties.defaultAction", - type: { - name: "String" - } - }, - virtualNetworkRules: { - serializedName: "properties.virtualNetworkRules", + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NWRuleSetVirtualNetworkRules" + className: "SBNamespace" } } } }, - ipRules: { - serializedName: "properties.ipRules", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NWRuleSetIpRules" - } - } + name: "String" } } } } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const NetworkRuleSetListResult: msRest.CompositeMapper = { + serializedName: "NetworkRuleSetListResult", type: { name: "Composite", - className: "OperationListResult", + className: "NetworkRuleSetListResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" + className: "NetworkRuleSet" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -1632,11 +2080,11 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const SBNamespaceListResult: msRest.CompositeMapper = { - serializedName: "SBNamespaceListResult", +export const SBAuthorizationRuleListResult: msRest.CompositeMapper = { + serializedName: "SBAuthorizationRuleListResult", type: { name: "Composite", - className: "SBNamespaceListResult", + className: "SBAuthorizationRuleListResult", modelProperties: { value: { serializedName: "", @@ -1645,7 +2093,7 @@ export const SBNamespaceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SBNamespace" + className: "SBAuthorizationRule" } } } @@ -1660,11 +2108,11 @@ export const SBNamespaceListResult: msRest.CompositeMapper = { } }; -export const SBAuthorizationRuleListResult: msRest.CompositeMapper = { - serializedName: "SBAuthorizationRuleListResult", +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", type: { name: "Composite", - className: "SBAuthorizationRuleListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "", @@ -1673,7 +2121,7 @@ export const SBAuthorizationRuleListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SBAuthorizationRule" + className: "PrivateEndpointConnection" } } } @@ -1688,25 +2136,27 @@ export const SBAuthorizationRuleListResult: msRest.CompositeMapper = { } }; -export const NetworkRuleSetListResult: msRest.CompositeMapper = { - serializedName: "NetworkRuleSetListResult", +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", - className: "NetworkRuleSetListResult", + className: "OperationListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkRuleSet" + className: "Operation" } } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -1830,34 +2280,6 @@ export const SBTopicListResult: msRest.CompositeMapper = { } }; -export const SBSubscriptionListResult: msRest.CompositeMapper = { - serializedName: "SBSubscriptionListResult", - type: { - name: "Composite", - className: "SBSubscriptionListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SBSubscription" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const RuleListResult: msRest.CompositeMapper = { serializedName: "RuleListResult", type: { @@ -1886,40 +2308,11 @@ export const RuleListResult: msRest.CompositeMapper = { } }; -export const PremiumMessagingRegionsListResult: msRest.CompositeMapper = { - serializedName: "PremiumMessagingRegionsListResult", - type: { - name: "Composite", - className: "PremiumMessagingRegionsListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PremiumMessagingRegions" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const EventHubListResult: msRest.CompositeMapper = { - serializedName: "EventHubListResult", +export const SBSubscriptionListResult: msRest.CompositeMapper = { + serializedName: "SBSubscriptionListResult", type: { name: "Composite", - className: "EventHubListResult", + className: "SBSubscriptionListResult", modelProperties: { value: { serializedName: "", @@ -1928,13 +2321,12 @@ export const EventHubListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Eventhub" + className: "SBSubscription" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" diff --git a/sdk/servicebus/arm-servicebus/src/models/migrationConfigsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/migrationConfigsMappers.ts index 903d5200dc1e..93ba2a3e82fa 100644 --- a/sdk/servicebus/arm-servicebus/src/models/migrationConfigsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/migrationConfigsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -10,23 +10,27 @@ export { Action, ArmDisasterRecovery, BaseResource, - CaptureDescription, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, + ErrorResponseError, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigListResult, MigrationConfigProperties, NetworkRuleSet, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, SBAuthorizationRule, + SBClientAffineProperties, SBNamespace, SBNamespaceUpdateParameters, SBQueue, @@ -36,5 +40,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/namespacesMappers.ts b/sdk/servicebus/arm-servicebus/src/models/namespacesMappers.ts index 0c2fce3036e1..78fa45e9f5af 100644 --- a/sdk/servicebus/arm-servicebus/src/models/namespacesMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/namespacesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -11,30 +11,33 @@ export { Action, ArmDisasterRecovery, BaseResource, - CaptureDescription, CheckNameAvailability, CheckNameAvailabilityResult, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, + ErrorResponseError, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, NetworkRuleSetListResult, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, RegenerateAccessKeyParameters, Resource, ResourceNamespacePatch, Rule, SBAuthorizationRule, SBAuthorizationRuleListResult, + SBClientAffineProperties, SBNamespace, SBNamespaceListResult, - SBNamespaceMigrate, SBNamespaceUpdateParameters, SBQueue, SBSku, @@ -43,5 +46,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/operationsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/operationsMappers.ts index b8de8606cf9d..c79dbc670a99 100644 --- a/sdk/servicebus/arm-servicebus/src/models/operationsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/operationsMappers.ts @@ -1,13 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Operation, OperationDisplay, OperationListResult diff --git a/sdk/servicebus/arm-servicebus/src/models/parameters.ts b/sdk/servicebus/arm-servicebus/src/models/parameters.ts index 245f981e895a..3b36b81d82bc 100644 --- a/sdk/servicebus/arm-servicebus/src/models/parameters.ts +++ b/sdk/servicebus/arm-servicebus/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -105,6 +104,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; export const queueName: msRest.OperationURLParameter = { parameterPath: "queueName", mapper: { @@ -162,20 +171,6 @@ export const skip: msRest.OperationQueryParameter = { } } }; -export const sku: msRest.OperationURLParameter = { - parameterPath: "sku", - mapper: { - required: true, - serializedName: "sku", - constraints: { - MaxLength: 50, - MinLength: 1 - }, - type: { - name: "String" - } - } -}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { diff --git a/sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts deleted file mode 100644 index ac8de9d04d7d..000000000000 --- a/sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -export { - Action, - ArmDisasterRecovery, - BaseResource, - CaptureDescription, - CorrelationFilter, - Destination, - ErrorResponse, - Eventhub, - MessageCountDetails, - MigrationConfigProperties, - NetworkRuleSet, - NWRuleSetIpRules, - NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsListResult, - PremiumMessagingRegionsProperties, - Resource, - ResourceNamespacePatch, - Rule, - SBAuthorizationRule, - SBNamespace, - SBNamespaceUpdateParameters, - SBQueue, - SBSku, - SBSubscription, - SBTopic, - SqlFilter, - SqlRuleAction, - Subnet, - TrackedResource -} from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/eventHubsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/privateEndpointConnectionsMappers.ts similarity index 60% rename from sdk/servicebus/arm-servicebus/src/models/eventHubsMappers.ts rename to sdk/servicebus/arm-servicebus/src/models/privateEndpointConnectionsMappers.ts index e46a707ff34d..6dbe129d38b2 100644 --- a/sdk/servicebus/arm-servicebus/src/models/eventHubsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/privateEndpointConnectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -10,23 +10,27 @@ export { Action, ArmDisasterRecovery, BaseResource, - CaptureDescription, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, - EventHubListResult, + ErrorResponseError, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, Resource, ResourceNamespacePatch, Rule, SBAuthorizationRule, + SBClientAffineProperties, SBNamespace, SBNamespaceUpdateParameters, SBQueue, @@ -36,5 +40,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/privateLinkResourcesMappers.ts b/sdk/servicebus/arm-servicebus/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..d4317e732fb9 --- /dev/null +++ b/sdk/servicebus/arm-servicebus/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ErrorAdditionalInfo, + ErrorResponse, + ErrorResponseError, + PrivateLinkResource, + PrivateLinkResourcesListResult +} from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/queuesMappers.ts b/sdk/servicebus/arm-servicebus/src/models/queuesMappers.ts index dd993b8117d6..de45c1ddf27a 100644 --- a/sdk/servicebus/arm-servicebus/src/models/queuesMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/queuesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -11,24 +11,28 @@ export { Action, ArmDisasterRecovery, BaseResource, - CaptureDescription, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, + ErrorResponseError, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, RegenerateAccessKeyParameters, Resource, ResourceNamespacePatch, Rule, SBAuthorizationRule, SBAuthorizationRuleListResult, + SBClientAffineProperties, SBNamespace, SBNamespaceUpdateParameters, SBQueue, @@ -39,5 +43,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/regionsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/regionsMappers.ts deleted file mode 100644 index ac8de9d04d7d..000000000000 --- a/sdk/servicebus/arm-servicebus/src/models/regionsMappers.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -export { - Action, - ArmDisasterRecovery, - BaseResource, - CaptureDescription, - CorrelationFilter, - Destination, - ErrorResponse, - Eventhub, - MessageCountDetails, - MigrationConfigProperties, - NetworkRuleSet, - NWRuleSetIpRules, - NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsListResult, - PremiumMessagingRegionsProperties, - Resource, - ResourceNamespacePatch, - Rule, - SBAuthorizationRule, - SBNamespace, - SBNamespaceUpdateParameters, - SBQueue, - SBSku, - SBSubscription, - SBTopic, - SqlFilter, - SqlRuleAction, - Subnet, - TrackedResource -} from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/rulesMappers.ts b/sdk/servicebus/arm-servicebus/src/models/rulesMappers.ts index c0691c1a2c77..a7e655eafa18 100644 --- a/sdk/servicebus/arm-servicebus/src/models/rulesMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/rulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -10,23 +10,27 @@ export { Action, ArmDisasterRecovery, BaseResource, - CaptureDescription, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, + ErrorResponseError, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, RuleListResult, SBAuthorizationRule, + SBClientAffineProperties, SBNamespace, SBNamespaceUpdateParameters, SBQueue, @@ -36,5 +40,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/subscriptionsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/subscriptionsMappers.ts index c560d9ac5076..876fa485e63d 100644 --- a/sdk/servicebus/arm-servicebus/src/models/subscriptionsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/subscriptionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -10,22 +10,26 @@ export { Action, ArmDisasterRecovery, BaseResource, - CaptureDescription, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, + ErrorResponseError, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, SBAuthorizationRule, + SBClientAffineProperties, SBNamespace, SBNamespaceUpdateParameters, SBQueue, @@ -36,5 +40,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/topicsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/topicsMappers.ts index 30dc7a077dd7..4a9e6b1b1edf 100644 --- a/sdk/servicebus/arm-servicebus/src/models/topicsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/topicsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -11,24 +11,28 @@ export { Action, ArmDisasterRecovery, BaseResource, - CaptureDescription, + ConnectionState, CorrelationFilter, - Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, - Eventhub, + ErrorResponseError, + Identity, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, NWRuleSetIpRules, NWRuleSetVirtualNetworkRules, - PremiumMessagingRegions, - PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, RegenerateAccessKeyParameters, Resource, ResourceNamespacePatch, Rule, SBAuthorizationRule, SBAuthorizationRuleListResult, + SBClientAffineProperties, SBNamespace, SBNamespaceUpdateParameters, SBQueue, @@ -39,5 +43,8 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + SystemData, + TrackedResource, + UserAssignedIdentity, + UserAssignedIdentityProperties } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/operations/disasterRecoveryConfigs.ts b/sdk/servicebus/arm-servicebus/src/operations/disasterRecoveryConfigs.ts index 5e526c08ffbc..2732db6f7b5e 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/disasterRecoveryConfigs.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/disasterRecoveryConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -251,7 +250,7 @@ export class DisasterRecoveryConfigs { * @param [options] The optional parameters * @returns Promise */ - failOver(resourceGroupName: string, namespaceName: string, alias: string, options?: msRest.RequestOptionsBase): Promise; + failOver(resourceGroupName: string, namespaceName: string, alias: string, options?: Models.DisasterRecoveryConfigsFailOverOptionalParams): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name @@ -266,8 +265,8 @@ export class DisasterRecoveryConfigs { * @param options The optional parameters * @param callback The callback */ - failOver(resourceGroupName: string, namespaceName: string, alias: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - failOver(resourceGroupName: string, namespaceName: string, alias: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + failOver(resourceGroupName: string, namespaceName: string, alias: string, options: Models.DisasterRecoveryConfigsFailOverOptionalParams, callback: msRest.ServiceCallback): void; + failOver(resourceGroupName: string, namespaceName: string, alias: string, options?: Models.DisasterRecoveryConfigsFailOverOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -634,6 +633,13 @@ const failOverOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.FailoverProperties + }, responses: { 200: {}, default: { @@ -645,7 +651,7 @@ const failOverOperationSpec: msRest.OperationSpec = { const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -671,7 +677,7 @@ const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -698,7 +704,7 @@ const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { const listKeysOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}/listKeys", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -730,6 +736,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -751,6 +760,9 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/servicebus/arm-servicebus/src/operations/eventHubs.ts b/sdk/servicebus/arm-servicebus/src/operations/eventHubs.ts deleted file mode 100644 index 1e93057274ba..000000000000 --- a/sdk/servicebus/arm-servicebus/src/operations/eventHubs.ts +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/eventHubsMappers"; -import * as Parameters from "../models/parameters"; -import { ServiceBusManagementClientContext } from "../serviceBusManagementClientContext"; - -/** Class representing a EventHubs. */ -export class EventHubs { - private readonly client: ServiceBusManagementClientContext; - - /** - * Create a EventHubs. - * @param {ServiceBusManagementClientContext} client Reference to the service client. - */ - constructor(client: ServiceBusManagementClientContext) { - this.client = client; - } - - /** - * Gets all the Event Hubs in a service bus Namespace. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param namespaceName The namespace name - * @param [options] The optional parameters - * @returns Promise - */ - listByNamespace(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param namespaceName The namespace name - * @param callback The callback - */ - listByNamespace(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param namespaceName The namespace name - * @param options The optional parameters - * @param callback The callback - */ - listByNamespace(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByNamespace(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - namespaceName, - options - }, - listByNamespaceOperationSpec, - callback) as Promise; - } - - /** - * Gets all the Event Hubs in a service bus Namespace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByNamespaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByNamespaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByNamespaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByNamespaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByNamespaceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByNamespaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/eventhubs", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName1, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.EventHubListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const listByNamespaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.EventHubListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/servicebus/arm-servicebus/src/operations/index.ts b/sdk/servicebus/arm-servicebus/src/operations/index.ts index 6e521e6da18f..a76cd6f960f1 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/index.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/index.ts @@ -1,21 +1,19 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./operations"; export * from "./namespaces"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./operations"; export * from "./disasterRecoveryConfigs"; export * from "./migrationConfigs"; export * from "./queues"; export * from "./topics"; -export * from "./subscriptions"; export * from "./rules"; -export * from "./regions"; -export * from "./premiumMessagingRegionsOperations"; -export * from "./eventHubs"; +export * from "./subscriptions"; diff --git a/sdk/servicebus/arm-servicebus/src/operations/migrationConfigs.ts b/sdk/servicebus/arm-servicebus/src/operations/migrationConfigs.ts index f3f456574707..c6459e340d87 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/migrationConfigs.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/migrationConfigs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -420,6 +419,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/servicebus/arm-servicebus/src/operations/namespaces.ts b/sdk/servicebus/arm-servicebus/src/operations/namespaces.ts index 05263ac80a14..91e85076a279 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/namespaces.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/namespaces.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,34 +26,6 @@ export class Namespaces { this.client = client; } - /** - * Check the give namespace name availability. - * @param parameters Parameters to check availability of the given namespace name - * @param [options] The optional parameters - * @returns Promise - */ - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options?: msRest.RequestOptionsBase): Promise; - /** - * @param parameters Parameters to check availability of the given namespace name - * @param callback The callback - */ - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, callback: msRest.ServiceCallback): void; - /** - * @param parameters Parameters to check availability of the given namespace name - * @param options The optional parameters - * @param callback The callback - */ - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - parameters, - options - }, - checkNameAvailabilityMethodOperationSpec, - callback) as Promise; - } - /** * Gets all the available namespaces within the subscription, irrespective of the resource groups. * @param [options] The optional parameters @@ -204,359 +175,351 @@ export class Namespaces { } /** - * Gets the authorization rules for a namespace. + * Create or update NetworkRuleSet for a Namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param parameters The Namespace IpFilterRule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param parameters The Namespace IpFilterRule. * @param callback The callback */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param parameters The Namespace IpFilterRule. * @param options The optional parameters * @param callback The callback */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, + parameters, options }, - listAuthorizationRulesOperationSpec, - callback) as Promise; + createOrUpdateNetworkRuleSetOperationSpec, + callback) as Promise; } /** - * Creates or updates an authorization rule for a namespace. + * Gets NetworkRuleSet for a Namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase): Promise; + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. * @param callback The callback */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, callback: msRest.ServiceCallback): void; + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. * @param options The optional parameters * @param callback The callback */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, - authorizationRuleName, - parameters, options }, - createOrUpdateAuthorizationRuleOperationSpec, - callback) as Promise; + getNetworkRuleSetOperationSpec, + callback) as Promise; } /** - * Deletes a namespace authorization rule. + * Gets list of NetworkRuleSet for a Namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + listNetworkRuleSets(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, - authorizationRuleName, options }, - deleteAuthorizationRuleOperationSpec, - callback); + listNetworkRuleSetsOperationSpec, + callback) as Promise; } /** - * Gets an authorization rule for a namespace by rule name. + * Gets the authorization rules for a namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAuthorizationRules(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, - authorizationRuleName, options }, - getAuthorizationRuleOperationSpec, - callback) as Promise; + listAuthorizationRulesOperationSpec, + callback) as Promise; } /** - * Gets the primary and secondary connection strings for the namespace. + * Creates or updates an authorization rule for a namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param callback The callback */ - listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param options The optional parameters * @param callback The callback */ - listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, + parameters, options }, - listKeysOperationSpec, - callback) as Promise; + createOrUpdateAuthorizationRuleOperationSpec, + callback) as Promise; } /** - * Regenerates the primary or secondary connection strings for the namespace. + * Deletes a namespace authorization rule. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase): Promise; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ - regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, callback: msRest.ServiceCallback): void; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback */ - regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, - parameters, options }, - regenerateKeysOperationSpec, - callback) as Promise; + deleteAuthorizationRuleOperationSpec, + callback); } /** - * This operation Migrate the given namespace to provided name type + * Gets an authorization rule for a namespace by rule name. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param parameters Parameters supplied to migrate namespace type. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, options?: msRest.RequestOptionsBase): Promise; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param parameters Parameters supplied to migrate namespace type. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, callback: msRest.ServiceCallback): void; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param parameters Parameters supplied to migrate namespace type. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, - parameters, + authorizationRuleName, options }, - migrateOperationSpec, - callback); + getAuthorizationRuleOperationSpec, + callback) as Promise; } /** - * Create or update NetworkRuleSet for a Namespace. + * Gets the primary and secondary connection strings for the namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param parameters The Namespace IpFilterRule. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options?: msRest.RequestOptionsBase): Promise; + listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param parameters The Namespace IpFilterRule. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param parameters The Namespace IpFilterRule. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateNetworkRuleSet(resourceGroupName: string, namespaceName: string, parameters: Models.NetworkRuleSet, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, - parameters, + authorizationRuleName, options }, - createOrUpdateNetworkRuleSetOperationSpec, - callback) as Promise; + listKeysOperationSpec, + callback) as Promise; } /** - * Gets NetworkRuleSet for a Namespace. + * Regenerates the primary or secondary connection strings for the namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ - getNetworkRuleSet(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback */ - getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getNetworkRuleSet(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, + authorizationRuleName, + parameters, options }, - getNetworkRuleSetOperationSpec, - callback) as Promise; + regenerateKeysOperationSpec, + callback) as Promise; } /** - * Gets list of NetworkRuleSet for a Namespace. - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param namespaceName The namespace name + * Check the give namespace name availability. + * @param parameters Parameters to check availability of the given namespace name * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; + checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param namespaceName The namespace name + * @param parameters Parameters to check availability of the given namespace name * @param callback The callback */ - listNetworkRuleSets(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param namespaceName The namespace name + * @param parameters Parameters to check availability of the given namespace name * @param options The optional parameters * @param callback The callback */ - listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNetworkRuleSets(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, - namespaceName, + parameters, options }, - listNetworkRuleSetsOperationSpec, - callback) as Promise; + checkNameAvailabilityMethodOperationSpec, + callback) as Promise; } /** @@ -656,94 +619,64 @@ export class Namespaces { } /** - * Gets the authorization rules for a namespace. + * Gets list of NetworkRuleSet for a Namespace. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNetworkRuleSetsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAuthorizationRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listNetworkRuleSetsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAuthorizationRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNetworkRuleSetsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNetworkRuleSetsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listAuthorizationRulesNextOperationSpec, - callback) as Promise; + listNetworkRuleSetsNextOperationSpec, + callback) as Promise; } /** - * Gets list of NetworkRuleSet for a Namespace. + * Gets the authorization rules for a namespace. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listNetworkRuleSetsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNetworkRuleSetsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listAuthorizationRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNetworkRuleSetsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNetworkRuleSetsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAuthorizationRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listNetworkRuleSetsNextOperationSpec, - callback) as Promise; + listAuthorizationRulesNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const checkNameAvailabilityMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.CheckNameAvailability, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces", @@ -852,9 +785,9 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules", +const createOrUpdateNetworkRuleSetOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -866,9 +799,16 @@ const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.NetworkRuleSet, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRuleListResult + bodyMapper: Mappers.NetworkRuleSet }, default: { bodyMapper: Mappers.ErrorResponse @@ -877,13 +817,12 @@ const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", +const getNetworkRuleSetOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -892,16 +831,9 @@ const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SBAuthorizationRule, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRule + bodyMapper: Mappers.NetworkRuleSet }, default: { bodyMapper: Mappers.ErrorResponse @@ -910,13 +842,12 @@ const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", +const listNetworkRuleSetsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -926,8 +857,9 @@ const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.NetworkRuleSetListResult + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -935,13 +867,12 @@ const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { +const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -952,7 +883,7 @@ const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRule + bodyMapper: Mappers.SBAuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -961,9 +892,9 @@ const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const listKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys", +const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -976,9 +907,16 @@ const listKeysOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SBAuthorizationRule, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.SBAuthorizationRule }, default: { bodyMapper: Mappers.ErrorResponse @@ -987,9 +925,9 @@ const listKeysOperationSpec: msRest.OperationSpec = { serializer }; -const regenerateKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", +const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -1002,17 +940,9 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.RegenerateAccessKeyParameters, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.AccessKeys - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -1020,12 +950,13 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { serializer }; -const migrateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrate", +const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -1034,15 +965,10 @@ const migrateOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SBNamespaceMigrate, - required: true - } - }, responses: { - 200: {}, + 200: { + bodyMapper: Mappers.SBAuthorizationRule + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -1050,12 +976,13 @@ const migrateOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateNetworkRuleSetOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -1064,16 +991,9 @@ const createOrUpdateNetworkRuleSetOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.NetworkRuleSet, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.NetworkRuleSet + bodyMapper: Mappers.AccessKeys }, default: { bodyMapper: Mappers.ErrorResponse @@ -1082,12 +1002,13 @@ const createOrUpdateNetworkRuleSetOperationSpec: msRest.OperationSpec = { serializer }; -const getNetworkRuleSetOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", +const regenerateKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -1096,9 +1017,16 @@ const getNetworkRuleSetOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.RegenerateAccessKeyParameters, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.NetworkRuleSet + bodyMapper: Mappers.AccessKeys }, default: { bodyMapper: Mappers.ErrorResponse @@ -1107,12 +1035,10 @@ const getNetworkRuleSetOperationSpec: msRest.OperationSpec = { serializer }; -const listNetworkRuleSetsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets", +const checkNameAvailabilityMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability", urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName1, Parameters.subscriptionId ], queryParameters: [ @@ -1121,9 +1047,16 @@ const listNetworkRuleSetsOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CheckNameAvailability, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.NetworkRuleSetListResult + bodyMapper: Mappers.CheckNameAvailabilityResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -1200,6 +1133,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1221,6 +1157,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1235,19 +1174,22 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { serializer }; -const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { +const listNetworkRuleSetsNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRuleListResult + bodyMapper: Mappers.NetworkRuleSetListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -1256,19 +1198,22 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { serializer }; -const listNetworkRuleSetsNextOperationSpec: msRest.OperationSpec = { +const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.NetworkRuleSetListResult + bodyMapper: Mappers.SBAuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/servicebus/arm-servicebus/src/operations/operations.ts b/sdk/servicebus/arm-servicebus/src/operations/operations.ts index 43dd0e75b0e3..621259ae6617 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/operations.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/servicebus/arm-servicebus/src/operations/premiumMessagingRegionsOperations.ts b/sdk/servicebus/arm-servicebus/src/operations/premiumMessagingRegionsOperations.ts deleted file mode 100644 index 789f8b3b372e..000000000000 --- a/sdk/servicebus/arm-servicebus/src/operations/premiumMessagingRegionsOperations.ts +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/premiumMessagingRegionsOperationsMappers"; -import * as Parameters from "../models/parameters"; -import { ServiceBusManagementClientContext } from "../serviceBusManagementClientContext"; - -/** Class representing a PremiumMessagingRegionsOperations. */ -export class PremiumMessagingRegionsOperations { - private readonly client: ServiceBusManagementClientContext; - - /** - * Create a PremiumMessagingRegionsOperations. - * @param {ServiceBusManagementClientContext} client Reference to the service client. - */ - constructor(client: ServiceBusManagementClientContext) { - this.client = client; - } - - /** - * Gets the available premium messaging regions for servicebus - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Gets the available premium messaging regions for servicebus - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/premiumMessagingRegions", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PremiumMessagingRegionsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PremiumMessagingRegionsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/servicebus/arm-servicebus/src/operations/privateEndpointConnections.ts b/sdk/servicebus/arm-servicebus/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..b03ced04789b --- /dev/null +++ b/sdk/servicebus/arm-servicebus/src/operations/privateEndpointConnections.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceBusManagementClientContext } from "../serviceBusManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: ServiceBusManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {ServiceBusManagementClientContext} client Reference to the service client. + */ + constructor(client: ServiceBusManagementClientContext) { + this.client = client; + } + + /** + * Gets the available PrivateEndpointConnections within a namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param callback The callback + */ + list(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates PrivateEndpointConnections of service namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to + * namespace resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to + * namespace resource. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to + * namespace resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes an existing Private Endpoint Connection. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,namespaceName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a description for the specified Private Endpoint Connection. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param callback The callback + */ + get(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes an existing Private Endpoint Connection. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param privateEndpointConnectionName The PrivateEndpointConnection name + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets the available PrivateEndpointConnections within a namespace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName1, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName1, + Parameters.privateEndpointConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName1, + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/servicebus/arm-servicebus/src/operations/privateLinkResources.ts b/sdk/servicebus/arm-servicebus/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..f416870afe9c --- /dev/null +++ b/sdk/servicebus/arm-servicebus/src/operations/privateLinkResources.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { ServiceBusManagementClientContext } from "../serviceBusManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: ServiceBusManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {ServiceBusManagementClientContext} client Reference to the service client. + */ + constructor(client: ServiceBusManagementClientContext) { + this.client = client; + } + + /** + * Gets lists of resources that supports Privatelinks. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param callback The callback + */ + get(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateLinkResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourcesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/servicebus/arm-servicebus/src/operations/queues.ts b/sdk/servicebus/arm-servicebus/src/operations/queues.ts index 94e844861442..38349f7192ab 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/queues.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/queues.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,216 +26,236 @@ export class Queues { } /** - * Gets the queues within a namespace. + * Gets all authorization rules for a queue. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param queueName The queue name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.QueuesListByNamespaceOptionalParams): Promise; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param queueName The queue name. * @param callback The callback */ - listByNamespace(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param queueName The queue name. * @param options The optional parameters * @param callback The callback */ - listByNamespace(resourceGroupName: string, namespaceName: string, options: Models.QueuesListByNamespaceOptionalParams, callback: msRest.ServiceCallback): void; - listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.QueuesListByNamespaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, + queueName, options }, - listByNamespaceOperationSpec, - callback) as Promise; + listAuthorizationRulesOperationSpec, + callback) as Promise; } /** - * Creates or updates a Service Bus queue. This operation is idempotent. + * Creates an authorization rule for a queue. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param parameters Parameters supplied to create or update a queue resource. + * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, options?: msRest.RequestOptionsBase): Promise; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param parameters Parameters supplied to create or update a queue resource. + * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, callback: msRest.ServiceCallback): void; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param parameters Parameters supplied to create or update a queue resource. + * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, queueName, + authorizationRuleName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateAuthorizationRuleOperationSpec, + callback) as Promise; } /** - * Deletes a queue from the specified namespace in a resource group. + * Deletes a queue authorization rule. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase): Promise; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, callback: msRest.ServiceCallback): void; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, queueName, + authorizationRuleName, options }, - deleteMethodOperationSpec, + deleteAuthorizationRuleOperationSpec, callback); } /** - * Returns a description for the specified queue. + * Gets an authorization rule for a queue by rule name. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase): Promise; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - get(resourceGroupName: string, namespaceName: string, queueName: string, callback: msRest.ServiceCallback): void; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, namespaceName: string, queueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, queueName, + authorizationRuleName, options }, - getOperationSpec, - callback) as Promise; + getAuthorizationRuleOperationSpec, + callback) as Promise; } /** - * Gets all authorization rules for a queue. + * Primary and secondary connection strings to the queue. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase): Promise; + listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAuthorizationRules(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, queueName, + authorizationRuleName, options }, - listAuthorizationRulesOperationSpec, - callback) as Promise; + listKeysOperationSpec, + callback) as Promise; } /** - * Creates an authorization rule for a queue. + * Regenerates the primary or secondary connection strings to the queue. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase): Promise; + regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -246,252 +265,231 @@ export class Queues { parameters, options }, - createOrUpdateAuthorizationRuleOperationSpec, - callback) as Promise; + regenerateKeysOperationSpec, + callback) as Promise; } /** - * Deletes a queue authorization rule. + * Gets the queues within a namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.QueuesListByNamespaceOptionalParams): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + listByNamespace(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByNamespace(resourceGroupName: string, namespaceName: string, options: Models.QueuesListByNamespaceOptionalParams, callback: msRest.ServiceCallback): void; + listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.QueuesListByNamespaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, - queueName, - authorizationRuleName, options }, - deleteAuthorizationRuleOperationSpec, - callback); + listByNamespaceOperationSpec, + callback) as Promise; } /** - * Gets an authorization rule for a queue by rule name. + * Creates or updates a Service Bus queue. This operation is idempotent. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to create or update a queue resource. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to create or update a queue resource. * @param callback The callback */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to create or update a queue resource. * @param options The optional parameters * @param callback The callback */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getAuthorizationRule(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, namespaceName: string, queueName: string, parameters: Models.SBQueue, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, queueName, - authorizationRuleName, + parameters, options }, - getAuthorizationRuleOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec, + callback) as Promise; } /** - * Primary and secondary connection strings to the queue. + * Deletes a queue from the specified namespace in a resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, queueName, - authorizationRuleName, options }, - listKeysOperationSpec, - callback) as Promise; + deleteMethodOperationSpec, + callback); } /** - * Regenerates the primary or secondary connection strings to the queue. + * Returns a description for the specified queue. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ - regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, namespaceName: string, queueName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param queueName The queue name. - * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback */ - regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - regenerateKeys(resourceGroupName: string, namespaceName: string, queueName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, namespaceName: string, queueName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, namespaceName: string, queueName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, queueName, - authorizationRuleName, - parameters, options }, - regenerateKeysOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** - * Gets the queues within a namespace. + * Gets all authorization rules for a queue. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByNamespaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByNamespaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listAuthorizationRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByNamespaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByNamespaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAuthorizationRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByNamespaceNextOperationSpec, - callback) as Promise; + listAuthorizationRulesNextOperationSpec, + callback) as Promise; } /** - * Gets all authorization rules for a queue. + * Gets the queues within a namespace. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByNamespaceNext(nextPageLink: string, options?: Models.QueuesListByNamespaceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAuthorizationRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByNamespaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAuthorizationRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByNamespaceNext(nextPageLink: string, options: Models.QueuesListByNamespaceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByNamespaceNext(nextPageLink: string, options?: Models.QueuesListByNamespaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listAuthorizationRulesNextOperationSpec, - callback) as Promise; + listByNamespaceNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listByNamespaceOperationSpec: msRest.OperationSpec = { +const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, + Parameters.queueName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.top + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBQueueListResult + bodyMapper: Mappers.SBAuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -500,13 +498,14 @@ const listByNamespaceOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.queueName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -518,13 +517,13 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.SBQueue, + ...Mappers.SBAuthorizationRule, required: true } }, responses: { 200: { - bodyMapper: Mappers.SBQueue + bodyMapper: Mappers.SBAuthorizationRule }, default: { bodyMapper: Mappers.ErrorResponse @@ -533,13 +532,14 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { +const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.queueName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -558,13 +558,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.queueName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -575,7 +576,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SBQueue + bodyMapper: Mappers.SBAuthorizationRule }, default: { bodyMapper: Mappers.ErrorResponse @@ -584,13 +585,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules", +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/ListKeys", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.queueName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -601,7 +603,7 @@ const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRuleListResult + bodyMapper: Mappers.AccessKeys }, default: { bodyMapper: Mappers.ErrorResponse @@ -610,9 +612,9 @@ const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}", +const regenerateKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/regenerateKeys", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -629,13 +631,13 @@ const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.SBAuthorizationRule, + ...Mappers.RegenerateAccessKeyParameters, required: true } }, responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRule + bodyMapper: Mappers.AccessKeys }, default: { bodyMapper: Mappers.ErrorResponse @@ -644,25 +646,26 @@ const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}", +const listByNamespaceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, - Parameters.queueName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.skip, + Parameters.top ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.SBQueueListResult + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -670,14 +673,13 @@ const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}", +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.queueName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -686,9 +688,16 @@ const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SBQueue, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRule + bodyMapper: Mappers.SBQueue }, default: { bodyMapper: Mappers.ErrorResponse @@ -697,14 +706,13 @@ const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const listKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/ListKeys", +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.queueName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -714,9 +722,8 @@ const listKeysOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: Mappers.AccessKeys - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -724,14 +731,13 @@ const listKeysOperationSpec: msRest.OperationSpec = { serializer }; -const regenerateKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/regenerateKeys", +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.queueName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -740,16 +746,9 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.RegenerateAccessKeyParameters, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.SBQueue }, default: { bodyMapper: Mappers.ErrorResponse @@ -758,19 +757,22 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { serializer }; -const listByNamespaceNextOperationSpec: msRest.OperationSpec = { +const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBQueueListResult + bodyMapper: Mappers.SBAuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -779,19 +781,24 @@ const listByNamespaceNextOperationSpec: msRest.OperationSpec = { serializer }; -const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { +const listByNamespaceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRuleListResult + bodyMapper: Mappers.SBQueueListResult }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/servicebus/arm-servicebus/src/operations/regions.ts b/sdk/servicebus/arm-servicebus/src/operations/regions.ts deleted file mode 100644 index 5783f9c72e9c..000000000000 --- a/sdk/servicebus/arm-servicebus/src/operations/regions.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * 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. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/regionsMappers"; -import * as Parameters from "../models/parameters"; -import { ServiceBusManagementClientContext } from "../serviceBusManagementClientContext"; - -/** Class representing a Regions. */ -export class Regions { - private readonly client: ServiceBusManagementClientContext; - - /** - * Create a Regions. - * @param {ServiceBusManagementClientContext} client Reference to the service client. - */ - constructor(client: ServiceBusManagementClientContext) { - this.client = client; - } - - /** - * Gets the available Regions for a given sku - * @param sku The sku type. - * @param [options] The optional parameters - * @returns Promise - */ - listBySku(sku: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param sku The sku type. - * @param callback The callback - */ - listBySku(sku: string, callback: msRest.ServiceCallback): void; - /** - * @param sku The sku type. - * @param options The optional parameters - * @param callback The callback - */ - listBySku(sku: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySku(sku: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - sku, - options - }, - listBySkuOperationSpec, - callback) as Promise; - } - - /** - * Gets the available Regions for a given sku - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listBySkuNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listBySkuNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listBySkuNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySkuNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySkuNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listBySkuOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/sku/{sku}/regions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.sku - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PremiumMessagingRegionsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const listBySkuNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PremiumMessagingRegionsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/servicebus/arm-servicebus/src/operations/rules.ts b/sdk/servicebus/arm-servicebus/src/operations/rules.ts index 1b0507a95657..c890c82d2f42 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/rules.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/rules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -208,7 +207,7 @@ export class Rules { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionsNext(nextPageLink: string, options?: Models.RulesListBySubscriptionsNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -219,8 +218,8 @@ export class Rules { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionsNext(nextPageLink: string, options: Models.RulesListBySubscriptionsNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionsNext(nextPageLink: string, options?: Models.RulesListBySubscriptionsNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -359,6 +358,11 @@ const listBySubscriptionsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/servicebus/arm-servicebus/src/operations/subscriptions.ts b/sdk/servicebus/arm-servicebus/src/operations/subscriptions.ts index dca240edc567..58614d173b71 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/subscriptions.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/subscriptions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -192,7 +191,7 @@ export class Subscriptions { * @param [options] The optional parameters * @returns Promise */ - listByTopicNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByTopicNext(nextPageLink: string, options?: Models.SubscriptionsListByTopicNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -203,8 +202,8 @@ export class Subscriptions { * @param options The optional parameters * @param callback The callback */ - listByTopicNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByTopicNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByTopicNext(nextPageLink: string, options: Models.SubscriptionsListByTopicNextOptionalParams, callback: msRest.ServiceCallback): void; + listByTopicNext(nextPageLink: string, options?: Models.SubscriptionsListByTopicNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -339,6 +338,11 @@ const listByTopicNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/servicebus/arm-servicebus/src/operations/topics.ts b/sdk/servicebus/arm-servicebus/src/operations/topics.ts index e94ad2f30243..00da36f2c1ce 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/topics.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/topics.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,216 +26,236 @@ export class Topics { } /** - * Gets all the topics in a namespace. + * Gets authorization rules for a topic. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param topicName The topic name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.TopicsListByNamespaceOptionalParams): Promise; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param topicName The topic name. * @param callback The callback */ - listByNamespace(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name + * @param topicName The topic name. * @param options The optional parameters * @param callback The callback */ - listByNamespace(resourceGroupName: string, namespaceName: string, options: Models.TopicsListByNamespaceOptionalParams, callback: msRest.ServiceCallback): void; - listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.TopicsListByNamespaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, + topicName, options }, - listByNamespaceOperationSpec, - callback) as Promise; + listAuthorizationRulesOperationSpec, + callback) as Promise; } /** - * Creates a topic in the specified namespace. + * Creates an authorization rule for the specified topic. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param parameters Parameters supplied to create a topic resource. + * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, options?: msRest.RequestOptionsBase): Promise; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param parameters Parameters supplied to create a topic resource. + * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, callback: msRest.ServiceCallback): void; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param parameters Parameters supplied to create a topic resource. + * @param authorizationRuleName The authorization rule name. + * @param parameters The shared access authorization rule. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, topicName, + authorizationRuleName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateAuthorizationRuleOperationSpec, + callback) as Promise; } /** - * Deletes a topic from the specified namespace and resource group. + * Returns the specified authorization rule. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase): Promise; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, callback: msRest.ServiceCallback): void; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, topicName, + authorizationRuleName, options }, - deleteMethodOperationSpec, - callback); + getAuthorizationRuleOperationSpec, + callback) as Promise; } /** - * Returns a description for the specified topic. + * Deletes a topic authorization rule. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase): Promise; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - get(resourceGroupName: string, namespaceName: string, topicName: string, callback: msRest.ServiceCallback): void; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, namespaceName: string, topicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, topicName, + authorizationRuleName, options }, - getOperationSpec, - callback) as Promise; + deleteAuthorizationRuleOperationSpec, + callback); } /** - * Gets authorization rules for a topic. + * Gets the primary and secondary connection strings for the topic. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase): Promise; + listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. + * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, topicName, + authorizationRuleName, options }, - listAuthorizationRulesOperationSpec, - callback) as Promise; + listKeysOperationSpec, + callback) as Promise; } /** - * Creates an authorization rule for the specified topic. + * Regenerates primary or secondary connection strings for the topic. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase): Promise; + regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. * @param authorizationRuleName The authorization rule name. - * @param parameters The shared access authorization rule. + * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback */ - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.SBAuthorizationRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -246,252 +265,231 @@ export class Topics { parameters, options }, - createOrUpdateAuthorizationRuleOperationSpec, - callback) as Promise; + regenerateKeysOperationSpec, + callback) as Promise; } /** - * Returns the specified authorization rule. + * Gets all the topics in a namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.TopicsListByNamespaceOptionalParams): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + listByNamespace(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name - * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByNamespace(resourceGroupName: string, namespaceName: string, options: Models.TopicsListByNamespaceOptionalParams, callback: msRest.ServiceCallback): void; + listByNamespace(resourceGroupName: string, namespaceName: string, options?: Models.TopicsListByNamespaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, - topicName, - authorizationRuleName, options }, - getAuthorizationRuleOperationSpec, - callback) as Promise; + listByNamespaceOperationSpec, + callback) as Promise; } /** - * Deletes a topic authorization rule. + * Creates a topic in the specified namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to create a topic resource. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to create a topic resource. * @param callback The callback */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. + * @param parameters Parameters supplied to create a topic resource. * @param options The optional parameters * @param callback The callback */ - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: Models.SBTopic, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, topicName, - authorizationRuleName, + parameters, options }, - deleteAuthorizationRuleOperationSpec, - callback); + createOrUpdateOperationSpec, + callback) as Promise; } /** - * Gets the primary and secondary connection strings for the topic. + * Deletes a topic from the specified namespace and resource group. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. * @param callback The callback */ - listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. * @param options The optional parameters * @param callback The callback */ - listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, topicName, - authorizationRuleName, options }, - listKeysOperationSpec, - callback) as Promise; + deleteMethodOperationSpec, + callback); } /** - * Regenerates primary or secondary connection strings for the topic. + * Returns a description for the specified topic. * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param callback The callback */ - regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, namespaceName: string, topicName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name * @param topicName The topic name. - * @param authorizationRuleName The authorization rule name. - * @param parameters Parameters supplied to regenerate the authorization rule. * @param options The optional parameters * @param callback The callback */ - regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: Models.RegenerateAccessKeyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, namespaceName: string, topicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, namespaceName: string, topicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, topicName, - authorizationRuleName, - parameters, options }, - regenerateKeysOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** - * Gets all the topics in a namespace. + * Gets authorization rules for a topic. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByNamespaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByNamespaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listAuthorizationRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByNamespaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByNamespaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAuthorizationRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByNamespaceNextOperationSpec, - callback) as Promise; + listAuthorizationRulesNextOperationSpec, + callback) as Promise; } /** - * Gets authorization rules for a topic. + * Gets all the topics in a namespace. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByNamespaceNext(nextPageLink: string, options?: Models.TopicsListByNamespaceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listAuthorizationRulesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByNamespaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listAuthorizationRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAuthorizationRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByNamespaceNext(nextPageLink: string, options: Models.TopicsListByNamespaceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByNamespaceNext(nextPageLink: string, options?: Models.TopicsListByNamespaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listAuthorizationRulesNextOperationSpec, - callback) as Promise; + listByNamespaceNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listByNamespaceOperationSpec: msRest.OperationSpec = { +const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, + Parameters.topicName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.top + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBTopicListResult + bodyMapper: Mappers.SBAuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -500,13 +498,14 @@ const listByNamespaceOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.topicName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -518,13 +517,13 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.SBTopic, + ...Mappers.SBAuthorizationRule, required: true } }, responses: { 200: { - bodyMapper: Mappers.SBTopic + bodyMapper: Mappers.SBAuthorizationRule }, default: { bodyMapper: Mappers.ErrorResponse @@ -533,13 +532,14 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}", +const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.topicName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -549,8 +549,9 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.SBAuthorizationRule + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -558,13 +559,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}", +const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.topicName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -574,9 +576,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: Mappers.SBTopic - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -584,13 +585,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules", +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.topicName, + Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -601,7 +603,7 @@ const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRuleListResult + bodyMapper: Mappers.AccessKeys }, default: { bodyMapper: Mappers.ErrorResponse @@ -610,9 +612,9 @@ const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}", +const regenerateKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/regenerateKeys", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, @@ -629,13 +631,13 @@ const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.SBAuthorizationRule, + ...Mappers.RegenerateAccessKeyParameters, required: true } }, responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRule + bodyMapper: Mappers.AccessKeys }, default: { bodyMapper: Mappers.ErrorResponse @@ -644,25 +646,25 @@ const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { +const listByNamespaceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, - Parameters.topicName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.skip, + Parameters.top ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRule + bodyMapper: Mappers.SBTopicListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -671,14 +673,13 @@ const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}", +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.topicName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -687,9 +688,17 @@ const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SBTopic, + required: true + } + }, responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.SBTopic + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -697,14 +706,13 @@ const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { serializer }; -const listKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys", +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.topicName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -714,9 +722,8 @@ const listKeysOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: Mappers.AccessKeys - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -724,14 +731,13 @@ const listKeysOperationSpec: msRest.OperationSpec = { serializer }; -const regenerateKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/regenerateKeys", +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}", urlParameters: [ Parameters.resourceGroupName, Parameters.namespaceName1, Parameters.topicName, - Parameters.authorizationRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -740,16 +746,9 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.RegenerateAccessKeyParameters, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.SBTopic }, default: { bodyMapper: Mappers.ErrorResponse @@ -758,19 +757,22 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { serializer }; -const listByNamespaceNextOperationSpec: msRest.OperationSpec = { +const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBTopicListResult + bodyMapper: Mappers.SBAuthorizationRuleListResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -779,19 +781,24 @@ const listByNamespaceNextOperationSpec: msRest.OperationSpec = { serializer }; -const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { +const listByNamespaceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.SBAuthorizationRuleListResult + bodyMapper: Mappers.SBTopicListResult }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts index f289ed461edd..9767fbddb478 100644 --- a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts +++ b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -18,17 +17,16 @@ import { ServiceBusManagementClientContext } from "./serviceBusManagementClientC class ServiceBusManagementClient extends ServiceBusManagementClientContext { // Operation groups - operations: operations.Operations; namespaces: operations.Namespaces; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; + operations: operations.Operations; disasterRecoveryConfigs: operations.DisasterRecoveryConfigs; migrationConfigs: operations.MigrationConfigs; queues: operations.Queues; topics: operations.Topics; - subscriptions: operations.Subscriptions; rules: operations.Rules; - regions: operations.Regions; - premiumMessagingRegions: operations.PremiumMessagingRegionsOperations; - eventHubs: operations.EventHubs; + subscriptions: operations.Subscriptions; /** * Initializes a new instance of the ServiceBusManagementClient class. @@ -44,17 +42,16 @@ class ServiceBusManagementClient extends ServiceBusManagementClientContext { */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ServiceBusManagementClientOptions) { super(credentials, subscriptionId, options); - this.operations = new operations.Operations(this); this.namespaces = new operations.Namespaces(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.operations = new operations.Operations(this); this.disasterRecoveryConfigs = new operations.DisasterRecoveryConfigs(this); this.migrationConfigs = new operations.MigrationConfigs(this); this.queues = new operations.Queues(this); this.topics = new operations.Topics(this); - this.subscriptions = new operations.Subscriptions(this); this.rules = new operations.Rules(this); - this.regions = new operations.Regions(this); - this.premiumMessagingRegions = new operations.PremiumMessagingRegionsOperations(this); - this.eventHubs = new operations.EventHubs(this); + this.subscriptions = new operations.Subscriptions(this); } } diff --git a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts index 810f06b7eaac..33bc1c1a3216 100644 --- a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts +++ b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-servicebus"; const packageVersion = "4.1.1"; @@ -51,7 +50,7 @@ export class ServiceBusManagementClientContext extends msRestAzure.AzureServiceC super(credentials, options); - this.apiVersion = '2017-04-01'; + this.apiVersion = '2021-06-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";