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..30d3b6fcbdc1 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 listIpFilterRules namespaces as an example written in JavaScript. ##### Sample code @@ -51,8 +49,9 @@ 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) => { +const resourceGroupName = "testresourceGroupName"; +const namespaceName = "testnamespaceName"; +client.namespaces.listIpFilterRules(resourceGroupName, namespaceName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -61,7 +60,7 @@ client.operations.list().then((result) => { }); ``` -#### browser - Authentication, client creation, and list operations as an example written in JavaScript. +#### browser - Authentication, client creation, and listIpFilterRules 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 +85,12 @@ 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) => { + const resourceGroupName = "testresourceGroupName"; + const namespaceName = "testnamespaceName"; + client.namespaces.listIpFilterRules(resourceGroupName, namespaceName).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 fe7310bb84d2..2052e9ba694a 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/main/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..e19138f1ce08 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. @@ -15,10 +15,18 @@ export { CaptureDescription, CheckNameAvailability, CheckNameAvailabilityResult, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + FailoverProperties, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -26,6 +34,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, @@ -40,5 +50,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/eventHubsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/eventHubsMappers.ts index e46a707ff34d..1a0c848afa53 100644 --- a/sdk/servicebus/arm-servicebus/src/models/eventHubsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/eventHubsMappers.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,11 +11,18 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, EventHubListResult, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -23,6 +30,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, @@ -36,5 +45,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } 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..305bf243fe9a 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,6 +32,24 @@ export interface Resource extends BaseResource { readonly type?: string; } +/** + * Single item in a List or Get IpFilterRules operation + */ +export interface IpFilterRule extends Resource { + /** + * IP Mask + */ + ipMask?: string; + /** + * The IP Filter Action. Possible values include: 'Accept', 'Reject' + */ + action?: IPAction; + /** + * IP Filter name + */ + filterName?: string; +} + /** * The Resource definition. */ @@ -46,6 +64,63 @@ export interface TrackedResource extends Resource { tags?: { [propertyName: string]: 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 Resource definition. */ @@ -79,21 +154,78 @@ export interface SBSku { capacity?: number; } +/** + * Properties to configure Identity for Bring your Own Keys + */ +export interface Identity { + /** + * ObjectId from the KeyVault + */ + principalId?: string; + /** + * TenantId from the KeyVault + */ + tenantId?: string; + /** + * Enumerates the possible value Identity type, which currently supports only 'SystemAssigned'. + * Possible values include: 'SystemAssigned'. Default value: 'SystemAssigned'. + */ + type?: IdentityType; +} + +/** + * Properties to configure keyVault Properties + */ +export interface KeyVaultProperties { + /** + * Name of the Key from KeyVault + */ + keyName?: string; + /** + * Uri of KeyVault + */ + keyVaultUri?: string; +} + +/** + * 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; +} + /** * 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; /** * 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; @@ -112,6 +244,15 @@ export interface SBNamespace extends TrackedResource { * **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; } /** @@ -119,7 +260,7 @@ export interface SBNamespace extends TrackedResource { */ export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { /** - * Properties of Sku + * Properties of SKU */ sku?: SBSku; /** @@ -128,7 +269,12 @@ export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { */ 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; @@ -147,33 +293,120 @@ export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { * **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; + /** + * Properties of BYOK Identity description + */ + identity?: Identity; } /** - * Namespace Migrate Object + * PrivateEndpoint information. */ -export interface SBNamespaceMigrate { +export interface PrivateEndpoint { /** - * Type of namespaces. Possible values include: 'Messaging', 'NotificationHub', 'Mixed', - * 'EventHub', 'Relay' + * The ARM identifier for Private Endpoint. */ - targetNamespaceType: NameSpaceType; + id?: string; } /** - * Description of a namespace authorization rule. + * ConnectionState information. */ -export interface SBAuthorizationRule extends Resource { +export interface ConnectionState { /** - * The rights associated with the rule. + * Status of the connection. Possible values include: 'Pending', 'Approved', 'Rejected', + * 'Disconnected' */ - rights: AccessRights[]; + 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; +} + +/** + * 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; +} + +/** + * Single item in a List or Get VirtualNetworkRules operation + */ +export interface VirtualNetworkRule extends Resource { + /** + * Resource ID of Virtual Network Subnet + */ + virtualNetworkSubnetId?: string; } /** - * AuthorizationRule properties. + * Description of a namespace authorization rule. */ -export interface AuthorizationRuleProperties { +export interface SBAuthorizationRule extends Resource { /** * The rights associated with the rule. */ @@ -238,47 +471,146 @@ export interface RegenerateAccessKeyParameters { } /** - * Message Count Details. + * Description of a Check Name availability request properties. */ -export interface MessageCountDetails { +export interface CheckNameAvailability { /** - * Number of active messages in the queue, topic, or subscription. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly activeMessageCount?: number; + name: string; +} + +/** + * Description of a Check Name availability request properties. + */ +export interface CheckNameAvailabilityResult { /** - * Number of messages that are dead lettered. + * 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 deadLetterMessageCount?: number; + readonly message?: string; /** - * Number of scheduled messages. + * 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 scheduledMessageCount?: number; + readonly provisioningState?: ProvisioningStateDR; /** - * Number of messages transferred to another queue, topic, or subscription. + * Number of entities pending to be replicated. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly transferMessageCount?: number; + readonly pendingReplicationOperationsCount?: number; /** - * Number of messages transferred into dead letters. + * 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 transferDeadLetterMessageCount?: number; + readonly role?: RoleDisasterRecovery; } /** - * Description of queue Resource. + * Safe failover is to indicate the service should wait for pending replication to finish before + * switching to the secondary. */ -export interface SBQueue extends Resource { +export interface FailoverProperties { /** - * Message Count Details. + * Safe failover is to indicate the service should wait for pending replication to finish before + * switching to the secondary. + */ + isSafeFailover?: boolean; +} + +/** + * Capture storage details for capture description + */ +export interface Destination { + /** + * Name for capture destination + */ + name?: string; + /** + * Resource id of the storage account to be used to create the blobs + */ + storageAccountResourceId?: string; + /** + * Blob container Name + */ + blobContainer?: string; + /** + * Blob naming convention for archive, e.g. + * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all + * the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order + */ + archiveNameFormat?: string; +} + +/** + * Properties to configure capture description for eventhub + */ +export interface CaptureDescription { + /** + * A value that indicates whether capture description is enabled. + */ + enabled?: boolean; + /** + * Enumerates the possible values for the encoding format of capture description. Possible values + * include: 'Avro', 'AvroDeflate' + */ + encoding?: EncodingCaptureDescription; + /** + * The time window allows you to set the frequency with which the capture to Azure Blobs will + * happen, value should between 60 to 900 seconds + */ + intervalInSeconds?: number; + /** + * The size window defines the amount of data built up in your Event Hub before an capture + * operation, value should be between 10485760 and 524288000 bytes + */ + sizeLimitInBytes?: number; + /** + * Properties of Destination where capture will be stored. (Storage Account, Blob Names) + */ + destination?: Destination; +} + +/** + * Single item in List or Get Event Hub operation + */ +export interface Eventhub extends Resource { + /** + * Current number of shards on the Event Hub. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly countDetails?: MessageCountDetails; + readonly partitionIds?: string[]; /** - * The exact time the message was created. + * Exact time the Event Hub was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; @@ -288,104 +620,187 @@ export interface SBQueue extends Resource { */ readonly updatedAt?: Date; /** - * Last time a message was sent, or the last time there was a receive request to this queue. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Number of days to retain the events for this Event Hub, value should be 1 to 7 days */ - readonly accessedAt?: Date; + messageRetentionInDays?: number; /** - * The size of the queue, in bytes. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. */ - readonly sizeInBytes?: number; + partitionCount?: number; /** - * The number of messages in the queue. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Enumerates the possible values for the status of a Event Hub. Possible values include: + * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', + * 'Renaming', 'Unknown' */ - readonly messageCount?: number; + status?: EntityStatus; /** - * ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is - * locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value - * is 1 minute. + * Properties of capture description */ - lockDuration?: string; + captureDescription?: CaptureDescription; +} + +/** + * Description of NetWorkRuleSet - IpRules resource. + */ +export interface NWRuleSetIpRules { /** - * The maximum size of the queue in megabytes, which is the size of memory allocated for the - * queue. Default is 1024. + * IP Mask */ - maxSizeInMegabytes?: number; + ipMask?: string; /** - * A value indicating if this queue requires duplicate detection. + * The IP Filter Action. Possible values include: 'Allow'. Default value: 'Allow'. */ - requiresDuplicateDetection?: boolean; + action?: NetworkRuleIPAction; +} + +/** + * Properties supplied for Subnet + */ +export interface Subnet { /** - * A value that indicates whether the queue supports the concept of sessions. + * Resource ID of Virtual Network Subnet */ - requiresSession?: boolean; + id: string; +} + +/** + * Description of VirtualNetworkRules - NetworkRules resource. + */ +export interface NWRuleSetVirtualNetworkRules { /** - * ISO 8601 default message timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is the default value used - * when TimeToLive is not set on a message itself. + * Subnet properties */ - defaultMessageTimeToLive?: string; + subnet?: Subnet; /** - * A value that indicates whether this queue has dead letter support when a message expires. + * Value that indicates whether to ignore missing VNet Service Endpoint */ - deadLetteringOnMessageExpiration?: boolean; + ignoreMissingVnetServiceEndpoint?: boolean; +} + +/** + * Description of NetworkRuleSet resource. + */ +export interface NetworkRuleSet extends Resource { /** - * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The - * default value is 10 minutes. + * Default Action for Network Rule Set. Possible values include: 'Allow', 'Deny' */ - duplicateDetectionHistoryTimeWindow?: string; + defaultAction?: DefaultAction; /** - * The maximum delivery count. A message is automatically deadlettered after this number of - * deliveries. default value is 10. + * List VirtualNetwork Rules */ - maxDeliveryCount?: number; + virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; /** - * Enumerates the possible values for the status of a messaging entity. Possible values include: - * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - * 'Renaming', 'Unknown' + * List of IpRules */ - status?: EntityStatus; + ipRules?: NWRuleSetIpRules[]; +} + +/** + * Namespace Migrate Object + */ +export interface SBNamespaceMigrate { /** - * Value that indicates whether server-side batched operations are enabled. + * Type of namespaces. Possible values include: 'Messaging', 'NotificationHub', 'Mixed', + * 'EventHub', 'Relay' */ - enableBatchedOperations?: boolean; + targetNamespaceType: NameSpaceType; +} + +/** + * Single item in List or Get Migration Config operation + */ +export interface MigrationConfigProperties extends Resource { /** - * ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum - * duration is 5 minutes. + * Provisioning state of Migration Configuration + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - autoDeleteOnIdle?: string; + readonly provisioningState?: string; /** - * A value that indicates whether the queue is to be partitioned across multiple message brokers. + * Number of entities pending to be replicated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enablePartitioning?: boolean; + readonly pendingReplicationOperationsCount?: number; /** - * A value that indicates whether Express Entities are enabled. An express queue holds a message - * in memory temporarily before writing it to persistent storage. + * Existing premium Namespace ARM Id name which has no entities, will be used for migration */ - enableExpress?: boolean; + targetNamespace: string; /** - * Queue/Topic name to forward the messages + * Name to access Standard Namespace after migration */ - forwardTo?: string; + postMigrationName: string; /** - * Queue/Topic name to forward the Dead Letter message + * 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.** */ - forwardDeadLetteredMessagesTo?: string; + readonly migrationState?: string; } /** - * Description of topic resource. + * An interface representing PremiumMessagingRegionsProperties. */ -export interface SBTopic extends Resource { +export interface PremiumMessagingRegionsProperties { /** - * Size of the topic, in bytes. + * Region code * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly sizeInBytes?: number; + readonly code?: string; /** - * Exact time the message was created. + * Full name of the region + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fullName?: string; +} + +/** + * Premium Messaging Region + */ +export interface PremiumMessagingRegions extends ResourceNamespacePatch { + properties?: PremiumMessagingRegionsProperties; +} + +/** + * Message Count Details. + */ +export interface MessageCountDetails { + /** + * Number of active messages in the queue, topic, or subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly activeMessageCount?: number; + /** + * Number of messages that are dead lettered. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deadLetterMessageCount?: number; + /** + * Number of scheduled messages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scheduledMessageCount?: number; + /** + * Number of messages transferred to another queue, topic, or subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly transferMessageCount?: number; + /** + * Number of messages transferred into dead letters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly transferDeadLetterMessageCount?: number; +} + +/** + * Description of queue Resource. + */ +export interface SBQueue extends Resource { + /** + * Message Count Details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly countDetails?: MessageCountDetails; + /** + * The exact time the message was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdAt?: Date; @@ -395,44 +810,59 @@ export interface SBTopic extends Resource { */ readonly updatedAt?: Date; /** - * Last time the message was sent, or a request was received, for this topic. + * Last time a message was sent, or the last time there was a receive request to this queue. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly accessedAt?: Date; /** - * Number of subscriptions. + * The size of the queue, in bytes. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly subscriptionCount?: number; + readonly sizeInBytes?: number; /** - * Message count details + * The number of messages in the queue. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly countDetails?: MessageCountDetails; + readonly messageCount?: number; /** - * ISO 8601 Default message timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is the default value used - * when TimeToLive is not set on a message itself. + * ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is + * locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value + * is 1 minute. */ - defaultMessageTimeToLive?: string; + lockDuration?: string; /** - * Maximum size of the topic in megabytes, which is the size of the memory allocated for the - * topic. Default is 1024. + * The maximum size of the queue in megabytes, which is the size of memory allocated for the + * queue. Default is 1024. */ maxSizeInMegabytes?: number; /** - * Value indicating if this topic requires duplicate detection. + * A value indicating if this queue requires duplicate detection. */ requiresDuplicateDetection?: boolean; /** - * ISO8601 timespan structure that defines the duration of the duplicate detection history. The + * A value that indicates whether the queue supports the concept of sessions. + */ + requiresSession?: boolean; + /** + * ISO 8601 default message timespan to live value. This is the duration after which the message + * expires, starting from when the message is sent to Service Bus. This is the default value used + * when TimeToLive is not set on a message itself. + */ + defaultMessageTimeToLive?: string; + /** + * A value that indicates whether this queue has dead letter support when a message expires. + */ + deadLetteringOnMessageExpiration?: boolean; + /** + * ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The * default value is 10 minutes. */ duplicateDetectionHistoryTimeWindow?: string; /** - * Value that indicates whether server-side batched operations are enabled. + * The maximum delivery count. A message is automatically deadlettered after this number of + * deliveries. default value is 10. */ - enableBatchedOperations?: boolean; + maxDeliveryCount?: number; /** * Enumerates the possible values for the status of a messaging entity. Possible values include: * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', @@ -440,24 +870,31 @@ export interface SBTopic extends Resource { */ status?: EntityStatus; /** - * Value that indicates whether the topic supports ordering. + * Value that indicates whether server-side batched operations are enabled. */ - supportOrdering?: boolean; + enableBatchedOperations?: boolean; /** - * ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum + * ISO 8061 timeSpan idle interval after which the queue 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. + * A value that indicates whether the queue is to be partitioned across multiple message brokers. */ 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. + * A value that indicates whether Express Entities are enabled. An express queue holds a message + * in memory temporarily before writing it to persistent storage. */ enableExpress?: boolean; + /** + * Queue/Topic name to forward the messages + */ + forwardTo?: string; + /** + * Queue/Topic name to forward the Dead Letter message + */ + forwardDeadLetteredMessagesTo?: string; } /** @@ -547,88 +984,88 @@ export interface SBSubscription extends Resource { } /** - * Description of a Check Name availability request properties. + * Description of topic resource. */ -export interface CheckNameAvailability { +export interface SBTopic extends Resource { /** - * 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. + * Size of the topic, in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name: string; -} - -/** - * Description of a Check Name availability request properties. - */ -export interface CheckNameAvailabilityResult { + readonly sizeInBytes?: number; /** - * The detailed info regarding the reason associated with the namespace. + * Exact time the message was created. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly message?: string; + readonly createdAt?: Date; /** - * Value indicating namespace is availability, true if the namespace is available; otherwise, - * false. + * The exact time the message was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nameAvailable?: boolean; + readonly updatedAt?: Date; /** - * The reason for unavailability of a namespace. Possible values include: 'None', 'InvalidName', - * 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', - * 'TooManyNamespaceInCurrentSubscription' + * Last time the message was sent, or a request was received, for this topic. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - reason?: UnavailableReason; -} - -/** - * The object that represents the operation. - */ -export interface OperationDisplay { + readonly accessedAt?: Date; /** - * Service provider: Microsoft.ServiceBus + * Number of subscriptions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provider?: string; + readonly subscriptionCount?: number; /** - * Resource on which the operation is performed: Invoice, etc. + * Message count details * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resource?: string; + readonly countDetails?: MessageCountDetails; /** - * Operation type: Read, write, delete, etc. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * ISO 8601 Default message timespan to live value. This is the duration after which the message + * expires, starting from when the message is sent to Service Bus. This is the default value used + * when TimeToLive is not set on a message itself. */ - readonly operation?: string; -} - -/** - * A ServiceBus REST API operation - */ -export interface Operation { + defaultMessageTimeToLive?: string; /** - * Operation name: {provider}/{resource}/{operation} - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Maximum size of the topic in megabytes, which is the size of the memory allocated for the + * topic. Default is 1024. */ - readonly name?: string; + maxSizeInMegabytes?: number; /** - * The object that represents the operation. + * Value indicating if this topic requires duplicate detection. */ - 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 { + 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; /** - * Error code. + * Value that indicates whether the topic to be partitioned across multiple message brokers is + * enabled. */ - code?: string; + enablePartitioning?: boolean; /** - * Error message indicating why the operation failed. + * Value that indicates whether Express Entities are enabled. An express topic holds a message in + * memory temporarily before writing it to persistent storage. */ - message?: string; + enableExpress?: boolean; } /** @@ -734,256 +1171,134 @@ export interface Rule extends Resource { /** * Properties of sqlFilter */ - sqlFilter?: SqlFilter; - /** - * Properties of correlationFilter - */ - correlationFilter?: CorrelationFilter; -} - -/** - * Represents set of actions written in SQL language-based syntax that is performed against a - * ServiceBus.Messaging.BrokeredMessage - */ -export interface SqlRuleAction extends Action { -} - -/** - * An interface representing PremiumMessagingRegionsProperties. - */ -export interface PremiumMessagingRegionsProperties { - /** - * Region code - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: string; - /** - * Full name of the region - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fullName?: string; -} - -/** - * Premium Messaging Region - */ -export interface PremiumMessagingRegions extends ResourceNamespacePatch { - properties?: PremiumMessagingRegionsProperties; -} - -/** - * Capture storage details for capture description - */ -export interface Destination { - /** - * Name for capture destination - */ - name?: string; - /** - * Resource id of the storage account to be used to create the blobs - */ - storageAccountResourceId?: string; - /** - * Blob container Name - */ - blobContainer?: string; - /** - * Blob naming convention for archive, e.g. - * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all - * the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order - */ - archiveNameFormat?: string; -} - -/** - * Properties to configure capture description for eventhub - */ -export interface CaptureDescription { - /** - * A value that indicates whether capture description is enabled. - */ - enabled?: boolean; - /** - * Enumerates the possible values for the encoding format of capture description. Possible values - * include: 'Avro', 'AvroDeflate' - */ - encoding?: EncodingCaptureDescription; - /** - * The time window allows you to set the frequency with which the capture to Azure Blobs will - * happen, value should between 60 to 900 seconds - */ - intervalInSeconds?: number; - /** - * The size window defines the amount of data built up in your Event Hub before an capture - * operation, value should be between 10485760 and 524288000 bytes - */ - sizeLimitInBytes?: number; - /** - * Properties of Destination where capture will be stored. (Storage Account, Blob Names) - */ - destination?: Destination; -} - -/** - * Single item in List or Get Event Hub operation - */ -export interface Eventhub extends Resource { - /** - * Current number of shards on the Event Hub. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly partitionIds?: string[]; - /** - * Exact time the Event Hub was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdAt?: Date; - /** - * 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; - /** - * Number of days to retain the events for this Event Hub, value should be 1 to 7 days - */ - messageRetentionInDays?: number; - /** - * Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. - */ - partitionCount?: number; - /** - * Enumerates the possible values for the status of the Event Hub. Possible values include: - * 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - * 'Renaming', 'Unknown' - */ - status?: EntityStatus; + sqlFilter?: SqlFilter; /** - * Properties of capture description + * Properties of correlationFilter */ - captureDescription?: CaptureDescription; + correlationFilter?: CorrelationFilter; } /** - * Single item in List or Get Alias(Disaster Recovery configuration) operation + * Represents set of actions written in SQL language-based syntax that is performed against a + * ServiceBus.Messaging.BrokeredMessage */ -export interface ArmDisasterRecovery extends Resource { +export interface SqlRuleAction extends Action { +} + +/** + * The object that represents the operation. + */ +export interface OperationDisplay { /** - * Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' - * or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' + * Service provider: Microsoft.ServiceBus * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningStateDR; + readonly provider?: string; /** - * Number of entities pending to be replicated. + * 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 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; + readonly resource?: string; /** - * role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or - * 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' + * Operation type: Read, write, delete, etc. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly role?: RoleDisasterRecovery; + readonly operation?: string; } /** - * Single item in List or Get Migration Config operation + * A ServiceBus REST API operation */ -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; +export interface Operation { /** - * Number of entities pending to be replicated. + * Operation name: {provider}/{resource}/{operation} * **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; + readonly name?: 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.** + * The object that represents the operation. */ - readonly migrationState?: string; + display?: OperationDisplay; } /** - * Properties supplied for Subnet + * Optional Parameters. */ -export interface Subnet { +export interface DisasterRecoveryConfigsFailOverOptionalParams extends msRest.RequestOptionsBase { /** - * Resource ID of Virtual Network Subnet + * Parameters required to create an Alias(Disaster Recovery configuration) */ - id: string; + parameters?: FailoverProperties; } /** - * Description of NetWorkRuleSet - IpRules resource. + * Optional Parameters. */ -export interface NWRuleSetIpRules { +export interface QueuesListByNamespaceOptionalParams 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 QueuesListByNamespaceNextOptionalParams 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 { +export interface TopicsListByNamespaceOptionalParams extends msRest.RequestOptionsBase { /** - * Default Action for Network Rule Set. Possible values include: 'Allow', 'Deny' + * 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. */ - defaultAction?: DefaultAction; + skip?: number; /** - * List VirtualNetwork Rules + * May be used to limit the number of results to the most recent N usageDetails. */ - virtualNetworkRules?: NWRuleSetVirtualNetworkRules[]; + top?: number; +} + +/** + * Optional Parameters. + */ +export interface TopicsListByNamespaceNextOptionalParams extends msRest.RequestOptionsBase { /** - * List of IpRules + * 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. */ - ipRules?: NWRuleSetIpRules[]; + skip?: number; + /** + * May be used to limit the number of results to the most recent N usageDetails. + */ + top?: number; } /** * Optional Parameters. */ -export interface QueuesListByNamespaceOptionalParams extends msRest.RequestOptionsBase { +export interface SubscriptionsListByTopicOptionalParams 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 +1314,7 @@ export interface QueuesListByNamespaceOptionalParams extends msRest.RequestOptio /** * Optional Parameters. */ -export interface TopicsListByNamespaceOptionalParams 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 @@ -1015,7 +1330,7 @@ export interface TopicsListByNamespaceOptionalParams extends msRest.RequestOptio /** * Optional Parameters. */ -export interface SubscriptionsListByTopicOptionalParams 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 @@ -1031,7 +1346,7 @@ export interface SubscriptionsListByTopicOptionalParams extends msRest.RequestOp /** * Optional Parameters. */ -export interface RulesListBySubscriptionsOptionalParams 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 @@ -1053,16 +1368,15 @@ 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 from the List namespace operation. + * @extends Array */ -export interface OperationListResult extends Array { +export interface IpFilterRuleListResult 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 an incomplete list of IpFilter + * Rules */ - readonly nextLink?: string; + nextLink?: string; } /** @@ -1077,6 +1391,19 @@ export interface SBNamespaceListResult extends Array { nextLink?: string; } +/** + * @interface + * The response from the List namespace operation. + * @extends Array + */ +export interface VirtualNetworkRuleListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains an incomplete list of + * VirtualNetwork Rules + */ + nextLink?: string; +} + /** * @interface * The response to the List Namespace operation. @@ -1105,27 +1432,25 @@ export interface NetworkRuleSetListResult extends Array { /** * @interface - * The result of the List Alias(Disaster Recovery configuration) operation. - * @extends Array + * Result of the list of all private endpoint connections operation. + * @extends Array */ -export interface ArmDisasterRecoveryListResult extends Array { +export interface PrivateEndpointConnectionListResult extends Array { /** - * Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster - * Recovery configuration) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A link for the next page of private endpoint connection resources. */ - readonly nextLink?: string; + nextLink?: string; } /** * @interface - * The result of the List migrationConfigurations operation. - * @extends Array + * The result of the List Alias(Disaster Recovery configuration) operation. + * @extends Array */ -export interface MigrationConfigListResult extends Array { +export interface ArmDisasterRecoveryListResult extends Array { /** - * Link to the next set of results. Not empty if Value contains incomplete list of - * migrationConfigurations + * Link to the next set of results. Not empty if Value contains incomplete list of Alias(Disaster + * Recovery configuration) * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; @@ -1157,26 +1482,29 @@ export interface SBTopicListResult extends Array { /** * @interface - * The response to the List Subscriptions operation. - * @extends Array + * The result of the List EventHubs operation. + * @extends Array */ -export interface SBSubscriptionListResult extends Array { +export interface EventHubListResult extends Array { /** - * Link to the next set of results. Not empty if Value contains incomplete list of subscriptions. + * Link to the next set of results. Not empty if Value contains incomplete list of EventHubs. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly nextLink?: string; } /** * @interface - * The response of the List rule operation. - * @extends Array + * The result of the List migrationConfigurations operation. + * @extends Array */ -export interface RuleListResult extends Array { +export interface MigrationConfigListResult extends Array { /** - * Link to the next set of results. Not empty if Value contains incomplete list of rules + * Link to the next set of results. Not empty if Value contains incomplete list of + * migrationConfigurations + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly nextLink?: string; } /** @@ -1195,17 +1523,50 @@ export interface PremiumMessagingRegionsListResult 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. + * 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. + * @extends Array + */ +export interface RuleListResult extends Array { + /** + * Link to the next set of results. Not empty if Value contains incomplete list of rules + */ + 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; } +/** + * Defines values for IPAction. + * Possible values include: 'Accept', 'Reject' + * @readonly + * @enum {string} + */ +export type IPAction = 'Accept' | 'Reject'; + /** * Defines values for SkuName. * Possible values include: 'Basic', 'Standard', 'Premium' @@ -1223,37 +1584,52 @@ 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 IdentityType. + * Possible values include: 'SystemAssigned' * @readonly * @enum {string} */ -export type NameSpaceType = 'Messaging' | 'NotificationHub' | 'Mixed' | 'EventHub' | 'Relay'; +export type IdentityType = 'SystemAssigned'; /** - * Defines values for AccessRights. - * Possible values include: 'Manage', 'Send', 'Listen' + * Defines values for KeySource. + * Possible values include: 'Microsoft.KeyVault' * @readonly * @enum {string} */ -export type AccessRights = 'Manage' | 'Send' | 'Listen'; +export type KeySource = 'Microsoft.KeyVault'; /** - * Defines values for KeyType. - * Possible values include: 'PrimaryKey', 'SecondaryKey' + * Defines values for PrivateLinkConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' * @readonly * @enum {string} */ -export type KeyType = 'PrimaryKey' | 'SecondaryKey'; +export type PrivateLinkConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; /** - * Defines values for EntityStatus. - * Possible values include: 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', - * 'Creating', 'Deleting', 'Renaming', 'Unknown' + * Defines values for EndPointProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' * @readonly * @enum {string} */ -export type EntityStatus = 'Active' | 'Disabled' | 'Restoring' | 'SendDisabled' | 'ReceiveDisabled' | 'Creating' | 'Deleting' | 'Renaming' | 'Unknown'; +export type EndPointProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for AccessRights. + * Possible values include: 'Manage', 'Send', 'Listen' + * @readonly + * @enum {string} + */ +export type AccessRights = 'Manage' | 'Send' | 'Listen'; + +/** + * Defines values for KeyType. + * Possible values include: 'PrimaryKey', 'SecondaryKey' + * @readonly + * @enum {string} + */ +export type KeyType = 'PrimaryKey' | 'SecondaryKey'; /** * Defines values for UnavailableReason. @@ -1265,36 +1641,37 @@ export type EntityStatus = 'Active' | 'Disabled' | 'Restoring' | 'SendDisabled' export type UnavailableReason = 'None' | 'InvalidName' | 'SubscriptionIsDisabled' | 'NameInUse' | 'NameInLockdown' | 'TooManyNamespaceInCurrentSubscription'; /** - * Defines values for FilterType. - * Possible values include: 'SqlFilter', 'CorrelationFilter' + * Defines values for ProvisioningStateDR. + * Possible values include: 'Accepted', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export type FilterType = 'SqlFilter' | 'CorrelationFilter'; +export type ProvisioningStateDR = 'Accepted' | 'Succeeded' | 'Failed'; /** - * Defines values for EncodingCaptureDescription. - * Possible values include: 'Avro', 'AvroDeflate' + * Defines values for RoleDisasterRecovery. + * Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' * @readonly * @enum {string} */ -export type EncodingCaptureDescription = 'Avro' | 'AvroDeflate'; +export type RoleDisasterRecovery = 'Primary' | 'PrimaryNotReplicating' | 'Secondary'; /** - * Defines values for ProvisioningStateDR. - * Possible values include: 'Accepted', 'Succeeded', 'Failed' + * Defines values for EntityStatus. + * Possible values include: 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', + * 'Creating', 'Deleting', 'Renaming', 'Unknown' * @readonly * @enum {string} */ -export type ProvisioningStateDR = 'Accepted' | 'Succeeded' | 'Failed'; +export type EntityStatus = 'Active' | 'Disabled' | 'Restoring' | 'SendDisabled' | 'ReceiveDisabled' | 'Creating' | 'Deleting' | 'Renaming' | 'Unknown'; /** - * Defines values for RoleDisasterRecovery. - * Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' + * Defines values for EncodingCaptureDescription. + * Possible values include: 'Avro', 'AvroDeflate' * @readonly * @enum {string} */ -export type RoleDisasterRecovery = 'Primary' | 'PrimaryNotReplicating' | 'Secondary'; +export type EncodingCaptureDescription = 'Avro' | 'AvroDeflate'; /** * Defines values for NetworkRuleIPAction. @@ -1313,9 +1690,25 @@ export type NetworkRuleIPAction = 'Allow'; export type DefaultAction = 'Allow' | 'Deny'; /** - * Contains response data for the list operation. + * Defines values for NameSpaceType. + * Possible values include: 'Messaging', 'NotificationHub', 'Mixed', 'EventHub', 'Relay' + * @readonly + * @enum {string} */ -export type OperationsListResponse = OperationListResult & { +export type NameSpaceType = 'Messaging' | 'NotificationHub' | 'Mixed' | 'EventHub' | 'Relay'; + +/** + * Defines values for FilterType. + * Possible values include: 'SqlFilter', 'CorrelationFilter' + * @readonly + * @enum {string} + */ +export type FilterType = 'SqlFilter' | 'CorrelationFilter'; + +/** + * Contains response data for the listIpFilterRules operation. + */ +export type NamespacesListIpFilterRulesResponse = IpFilterRuleListResult & { /** * The underlying HTTP response. */ @@ -1328,14 +1721,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: IpFilterRuleListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdateIpFilterRule operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type NamespacesCreateOrUpdateIpFilterRuleResponse = IpFilterRule & { /** * The underlying HTTP response. */ @@ -1348,14 +1741,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: IpFilterRule; }; }; /** - * Contains response data for the checkNameAvailabilityMethod operation. + * Contains response data for the getIpFilterRule operation. */ -export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilityResult & { +export type NamespacesGetIpFilterRuleResponse = IpFilterRule & { /** * The underlying HTTP response. */ @@ -1368,7 +1761,7 @@ export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilit /** * The response body as parsed JSON or XML */ - parsedBody: CheckNameAvailabilityResult; + parsedBody: IpFilterRule; }; }; @@ -1472,6 +1865,66 @@ export type NamespacesUpdateResponse = SBNamespace & { }; }; +/** + * Contains response data for the listVirtualNetworkRules operation. + */ +export type NamespacesListVirtualNetworkRulesResponse = VirtualNetworkRuleListResult & { + /** + * 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: VirtualNetworkRuleListResult; + }; +}; + +/** + * Contains response data for the createOrUpdateVirtualNetworkRule operation. + */ +export type NamespacesCreateOrUpdateVirtualNetworkRuleResponse = VirtualNetworkRule & { + /** + * 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: VirtualNetworkRule; + }; +}; + +/** + * Contains response data for the getVirtualNetworkRule operation. + */ +export type NamespacesGetVirtualNetworkRuleResponse = VirtualNetworkRule & { + /** + * 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: VirtualNetworkRule; + }; +}; + /** * Contains response data for the listAuthorizationRules operation. */ @@ -1572,6 +2025,26 @@ export type NamespacesRegenerateKeysResponse = AccessKeys & { }; }; +/** + * Contains response data for the checkNameAvailabilityMethod operation. + */ +export type NamespacesCheckNameAvailabilityMethodResponse = CheckNameAvailabilityResult & { + /** + * 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: CheckNameAvailabilityResult; + }; +}; + /** * Contains response data for the createOrUpdateNetworkRuleSet operation. */ @@ -1608,14 +2081,154 @@ export type NamespacesGetNetworkRuleSetResponse = NetworkRuleSet & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkRuleSet; + parsedBody: NetworkRuleSet; + }; +}; + +/** + * 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 beginCreateOrUpdate operation. + */ +export type NamespacesBeginCreateOrUpdateResponse = SBNamespace & { + /** + * 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: SBNamespace; + }; +}; + +/** + * Contains response data for the listIpFilterRulesNext operation. + */ +export type NamespacesListIpFilterRulesNextResponse = IpFilterRuleListResult & { + /** + * 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: IpFilterRuleListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type NamespacesListNextResponse = SBNamespaceListResult & { + /** + * 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: SBNamespaceListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type NamespacesListByResourceGroupNextResponse = SBNamespaceListResult & { + /** + * 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: SBNamespaceListResult; + }; +}; + +/** + * Contains response data for the listVirtualNetworkRulesNext operation. + */ +export type NamespacesListVirtualNetworkRulesNextResponse = VirtualNetworkRuleListResult & { + /** + * 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: VirtualNetworkRuleListResult; + }; +}; + +/** + * Contains response data for the listAuthorizationRulesNext operation. + */ +export type NamespacesListAuthorizationRulesNextResponse = 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 listNetworkRuleSets operation. + * Contains response data for the listNetworkRuleSetsNext operation. */ -export type NamespacesListNetworkRuleSetsResponse = NetworkRuleSetListResult & { +export type NamespacesListNetworkRuleSetsNextResponse = NetworkRuleSetListResult & { /** * The underlying HTTP response. */ @@ -1633,9 +2246,9 @@ export type NamespacesListNetworkRuleSetsResponse = NetworkRuleSetListResult & { }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type NamespacesBeginCreateOrUpdateResponse = SBNamespace & { +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -1648,14 +2261,14 @@ export type NamespacesBeginCreateOrUpdateResponse = SBNamespace & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespace; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type NamespacesListNextResponse = SBNamespaceListResult & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1668,14 +2281,14 @@ export type NamespacesListNextResponse = SBNamespaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespaceListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type NamespacesListByResourceGroupNextResponse = SBNamespaceListResult & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1688,14 +2301,14 @@ export type NamespacesListByResourceGroupNextResponse = SBNamespaceListResult & /** * The response body as parsed JSON or XML */ - parsedBody: SBNamespaceListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listAuthorizationRulesNext operation. + * Contains response data for the listNext operation. */ -export type NamespacesListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { +export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -1708,14 +2321,14 @@ export type NamespacesListAuthorizationRulesNextResponse = SBAuthorizationRuleLi /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRuleListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listNetworkRuleSetsNext operation. + * Contains response data for the get operation. */ -export type NamespacesListNetworkRuleSetsNextResponse = NetworkRuleSetListResult & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResourcesListResult & { /** * The underlying HTTP response. */ @@ -1728,7 +2341,7 @@ export type NamespacesListNetworkRuleSetsNextResponse = NetworkRuleSetListResult /** * The response body as parsed JSON or XML */ - parsedBody: NetworkRuleSetListResult; + parsedBody: PrivateLinkResourcesListResult; }; }; @@ -1913,9 +2526,9 @@ export type DisasterRecoveryConfigsListAuthorizationRulesNextResponse = SBAuthor }; /** - * Contains response data for the list operation. + * Contains response data for the listAuthorizationRules operation. */ -export type MigrationConfigsListResponse = MigrationConfigListResult & { +export type QueuesListAuthorizationRulesResponse = SBAuthorizationRuleListResult & { /** * The underlying HTTP response. */ @@ -1928,14 +2541,14 @@ export type MigrationConfigsListResponse = MigrationConfigListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MigrationConfigListResult; + parsedBody: SBAuthorizationRuleListResult; }; }; /** - * Contains response data for the createAndStartMigration operation. + * Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type MigrationConfigsCreateAndStartMigrationResponse = MigrationConfigProperties & { +export type QueuesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule & { /** * The underlying HTTP response. */ @@ -1948,14 +2561,14 @@ export type MigrationConfigsCreateAndStartMigrationResponse = MigrationConfigPro /** * The response body as parsed JSON or XML */ - parsedBody: MigrationConfigProperties; + parsedBody: SBAuthorizationRule; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getAuthorizationRule operation. */ -export type MigrationConfigsGetResponse = MigrationConfigProperties & { +export type QueuesGetAuthorizationRuleResponse = SBAuthorizationRule & { /** * The underlying HTTP response. */ @@ -1968,14 +2581,14 @@ export type MigrationConfigsGetResponse = MigrationConfigProperties & { /** * The response body as parsed JSON or XML */ - parsedBody: MigrationConfigProperties; + parsedBody: SBAuthorizationRule; }; }; /** - * Contains response data for the beginCreateAndStartMigration operation. + * Contains response data for the listKeys operation. */ -export type MigrationConfigsBeginCreateAndStartMigrationResponse = MigrationConfigProperties & { +export type QueuesListKeysResponse = AccessKeys & { /** * The underlying HTTP response. */ @@ -1988,14 +2601,14 @@ export type MigrationConfigsBeginCreateAndStartMigrationResponse = MigrationConf /** * The response body as parsed JSON or XML */ - parsedBody: MigrationConfigProperties; + parsedBody: AccessKeys; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the regenerateKeys operation. */ -export type MigrationConfigsListNextResponse = MigrationConfigListResult & { +export type QueuesRegenerateKeysResponse = AccessKeys & { /** * The underlying HTTP response. */ @@ -2008,7 +2621,7 @@ export type MigrationConfigsListNextResponse = MigrationConfigListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MigrationConfigListResult; + parsedBody: AccessKeys; }; }; @@ -2073,9 +2686,9 @@ export type QueuesGetResponse = SBQueue & { }; /** - * Contains response data for the listAuthorizationRules operation. + * Contains response data for the listAuthorizationRulesNext operation. */ -export type QueuesListAuthorizationRulesResponse = SBAuthorizationRuleListResult & { +export type QueuesListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { /** * The underlying HTTP response. */ @@ -2093,9 +2706,9 @@ export type QueuesListAuthorizationRulesResponse = SBAuthorizationRuleListResult }; /** - * Contains response data for the createOrUpdateAuthorizationRule operation. + * Contains response data for the listByNamespaceNext operation. */ -export type QueuesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule & { +export type QueuesListByNamespaceNextResponse = SBQueueListResult & { /** * The underlying HTTP response. */ @@ -2108,14 +2721,14 @@ export type QueuesCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRule; + parsedBody: SBQueueListResult; }; }; /** - * Contains response data for the getAuthorizationRule operation. + * Contains response data for the listAuthorizationRules operation. */ -export type QueuesGetAuthorizationRuleResponse = SBAuthorizationRule & { +export type TopicsListAuthorizationRulesResponse = SBAuthorizationRuleListResult & { /** * The underlying HTTP response. */ @@ -2128,14 +2741,14 @@ export type QueuesGetAuthorizationRuleResponse = SBAuthorizationRule & { /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRule; + parsedBody: SBAuthorizationRuleListResult; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type QueuesListKeysResponse = AccessKeys & { +export type TopicsCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule & { /** * The underlying HTTP response. */ @@ -2148,14 +2761,14 @@ export type QueuesListKeysResponse = AccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessKeys; + parsedBody: SBAuthorizationRule; }; }; /** - * Contains response data for the regenerateKeys operation. + * Contains response data for the getAuthorizationRule operation. */ -export type QueuesRegenerateKeysResponse = AccessKeys & { +export type TopicsGetAuthorizationRuleResponse = SBAuthorizationRule & { /** * The underlying HTTP response. */ @@ -2168,14 +2781,14 @@ export type QueuesRegenerateKeysResponse = AccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessKeys; + parsedBody: SBAuthorizationRule; }; }; /** - * Contains response data for the listByNamespaceNext operation. + * Contains response data for the listKeys operation. */ -export type QueuesListByNamespaceNextResponse = SBQueueListResult & { +export type TopicsListKeysResponse = AccessKeys & { /** * The underlying HTTP response. */ @@ -2188,14 +2801,14 @@ export type QueuesListByNamespaceNextResponse = SBQueueListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBQueueListResult; + parsedBody: AccessKeys; }; }; /** - * Contains response data for the listAuthorizationRulesNext operation. + * Contains response data for the regenerateKeys operation. */ -export type QueuesListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { +export type TopicsRegenerateKeysResponse = AccessKeys & { /** * The underlying HTTP response. */ @@ -2208,7 +2821,7 @@ export type QueuesListAuthorizationRulesNextResponse = SBAuthorizationRuleListRe /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRuleListResult; + parsedBody: AccessKeys; }; }; @@ -2273,9 +2886,9 @@ export type TopicsGetResponse = SBTopic & { }; /** - * Contains response data for the listAuthorizationRules operation. + * Contains response data for the listAuthorizationRulesNext operation. */ -export type TopicsListAuthorizationRulesResponse = SBAuthorizationRuleListResult & { +export type TopicsListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { /** * The underlying HTTP response. */ @@ -2293,9 +2906,9 @@ export type TopicsListAuthorizationRulesResponse = SBAuthorizationRuleListResult }; /** - * Contains response data for the createOrUpdateAuthorizationRule operation. + * Contains response data for the listByNamespaceNext operation. */ -export type TopicsCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule & { +export type TopicsListByNamespaceNextResponse = SBTopicListResult & { /** * The underlying HTTP response. */ @@ -2308,14 +2921,14 @@ export type TopicsCreateOrUpdateAuthorizationRuleResponse = SBAuthorizationRule /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRule; + parsedBody: SBTopicListResult; }; }; /** - * Contains response data for the getAuthorizationRule operation. + * Contains response data for the listByNamespace operation. */ -export type TopicsGetAuthorizationRuleResponse = SBAuthorizationRule & { +export type EventHubsListByNamespaceResponse = EventHubListResult & { /** * The underlying HTTP response. */ @@ -2328,14 +2941,14 @@ export type TopicsGetAuthorizationRuleResponse = SBAuthorizationRule & { /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRule; + parsedBody: EventHubListResult; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the listByNamespaceNext operation. */ -export type TopicsListKeysResponse = AccessKeys & { +export type EventHubsListByNamespaceNextResponse = EventHubListResult & { /** * The underlying HTTP response. */ @@ -2348,14 +2961,14 @@ export type TopicsListKeysResponse = AccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessKeys; + parsedBody: EventHubListResult; }; }; /** - * Contains response data for the regenerateKeys operation. + * Contains response data for the list operation. */ -export type TopicsRegenerateKeysResponse = AccessKeys & { +export type MigrationConfigsListResponse = MigrationConfigListResult & { /** * The underlying HTTP response. */ @@ -2368,14 +2981,14 @@ export type TopicsRegenerateKeysResponse = AccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: AccessKeys; + parsedBody: MigrationConfigListResult; }; }; /** - * Contains response data for the listByNamespaceNext operation. + * Contains response data for the createAndStartMigration operation. */ -export type TopicsListByNamespaceNextResponse = SBTopicListResult & { +export type MigrationConfigsCreateAndStartMigrationResponse = MigrationConfigProperties & { /** * The underlying HTTP response. */ @@ -2388,14 +3001,14 @@ export type TopicsListByNamespaceNextResponse = SBTopicListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBTopicListResult; + parsedBody: MigrationConfigProperties; }; }; /** - * Contains response data for the listAuthorizationRulesNext operation. + * Contains response data for the get operation. */ -export type TopicsListAuthorizationRulesNextResponse = SBAuthorizationRuleListResult & { +export type MigrationConfigsGetResponse = MigrationConfigProperties & { /** * The underlying HTTP response. */ @@ -2408,14 +3021,14 @@ export type TopicsListAuthorizationRulesNextResponse = SBAuthorizationRuleListRe /** * The response body as parsed JSON or XML */ - parsedBody: SBAuthorizationRuleListResult; + parsedBody: MigrationConfigProperties; }; }; /** - * Contains response data for the listByTopic operation. + * Contains response data for the beginCreateAndStartMigration operation. */ -export type SubscriptionsListByTopicResponse = SBSubscriptionListResult & { +export type MigrationConfigsBeginCreateAndStartMigrationResponse = MigrationConfigProperties & { /** * The underlying HTTP response. */ @@ -2428,14 +3041,14 @@ export type SubscriptionsListByTopicResponse = SBSubscriptionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscriptionListResult; + parsedBody: MigrationConfigProperties; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type SubscriptionsCreateOrUpdateResponse = SBSubscription & { +export type MigrationConfigsListNextResponse = MigrationConfigListResult & { /** * The underlying HTTP response. */ @@ -2448,14 +3061,14 @@ export type SubscriptionsCreateOrUpdateResponse = SBSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscription; + parsedBody: MigrationConfigListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type SubscriptionsGetResponse = SBSubscription & { +export type PremiumMessagingRegionsListResponse = PremiumMessagingRegionsListResult & { /** * The underlying HTTP response. */ @@ -2468,14 +3081,14 @@ export type SubscriptionsGetResponse = SBSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscription; + parsedBody: PremiumMessagingRegionsListResult; }; }; /** - * Contains response data for the listByTopicNext operation. + * Contains response data for the listNext operation. */ -export type SubscriptionsListByTopicNextResponse = SBSubscriptionListResult & { +export type PremiumMessagingRegionsListNextResponse = PremiumMessagingRegionsListResult & { /** * The underlying HTTP response. */ @@ -2488,14 +3101,14 @@ export type SubscriptionsListByTopicNextResponse = SBSubscriptionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SBSubscriptionListResult; + parsedBody: PremiumMessagingRegionsListResult; }; }; /** - * Contains response data for the listBySubscriptions operation. + * Contains response data for the listBySku operation. */ -export type RulesListBySubscriptionsResponse = RuleListResult & { +export type RegionsListBySkuResponse = PremiumMessagingRegionsListResult & { /** * The underlying HTTP response. */ @@ -2508,14 +3121,54 @@ export type RulesListBySubscriptionsResponse = RuleListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RuleListResult; + 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 listByTopic operation. + */ +export type SubscriptionsListByTopicResponse = SBSubscriptionListResult & { + /** + * 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: SBSubscriptionListResult; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type RulesCreateOrUpdateResponse = Rule & { +export type SubscriptionsCreateOrUpdateResponse = SBSubscription & { /** * The underlying HTTP response. */ @@ -2528,14 +3181,14 @@ export type RulesCreateOrUpdateResponse = Rule & { /** * The response body as parsed JSON or XML */ - parsedBody: Rule; + parsedBody: SBSubscription; }; }; /** * Contains response data for the get operation. */ -export type RulesGetResponse = Rule & { +export type SubscriptionsGetResponse = SBSubscription & { /** * The underlying HTTP response. */ @@ -2548,14 +3201,14 @@ export type RulesGetResponse = Rule & { /** * The response body as parsed JSON or XML */ - parsedBody: Rule; + parsedBody: SBSubscription; }; }; /** - * Contains response data for the listBySubscriptionsNext operation. + * Contains response data for the listByTopicNext operation. */ -export type RulesListBySubscriptionsNextResponse = RuleListResult & { +export type SubscriptionsListByTopicNextResponse = SBSubscriptionListResult & { /** * The underlying HTTP response. */ @@ -2568,14 +3221,14 @@ export type RulesListBySubscriptionsNextResponse = RuleListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RuleListResult; + parsedBody: SBSubscriptionListResult; }; }; /** - * Contains response data for the listBySku operation. + * Contains response data for the listBySubscriptions operation. */ -export type RegionsListBySkuResponse = PremiumMessagingRegionsListResult & { +export type RulesListBySubscriptionsResponse = RuleListResult & { /** * The underlying HTTP response. */ @@ -2588,14 +3241,14 @@ export type RegionsListBySkuResponse = PremiumMessagingRegionsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PremiumMessagingRegionsListResult; + parsedBody: RuleListResult; }; }; /** - * Contains response data for the listBySkuNext operation. + * Contains response data for the createOrUpdate operation. */ -export type RegionsListBySkuNextResponse = PremiumMessagingRegionsListResult & { +export type RulesCreateOrUpdateResponse = Rule & { /** * The underlying HTTP response. */ @@ -2608,14 +3261,14 @@ export type RegionsListBySkuNextResponse = PremiumMessagingRegionsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PremiumMessagingRegionsListResult; + parsedBody: Rule; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type PremiumMessagingRegionsListResponse = PremiumMessagingRegionsListResult & { +export type RulesGetResponse = Rule & { /** * The underlying HTTP response. */ @@ -2628,14 +3281,14 @@ export type PremiumMessagingRegionsListResponse = PremiumMessagingRegionsListRes /** * The response body as parsed JSON or XML */ - parsedBody: PremiumMessagingRegionsListResult; + parsedBody: Rule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listBySubscriptionsNext operation. */ -export type PremiumMessagingRegionsListNextResponse = PremiumMessagingRegionsListResult & { +export type RulesListBySubscriptionsNextResponse = RuleListResult & { /** * The underlying HTTP response. */ @@ -2648,14 +3301,14 @@ export type PremiumMessagingRegionsListNextResponse = PremiumMessagingRegionsLis /** * The response body as parsed JSON or XML */ - parsedBody: PremiumMessagingRegionsListResult; + parsedBody: RuleListResult; }; }; /** - * Contains response data for the listByNamespace operation. + * Contains response data for the list operation. */ -export type EventHubsListByNamespaceResponse = EventHubListResult & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2668,14 +3321,14 @@ export type EventHubsListByNamespaceResponse = EventHubListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventHubListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the listByNamespaceNext operation. + * Contains response data for the listNext operation. */ -export type EventHubsListByNamespaceNextResponse = EventHubListResult & { +export type OperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -2688,6 +3341,6 @@ export type EventHubsListByNamespaceNextResponse = EventHubListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventHubListResult; + parsedBody: OperationListResult; }; }; diff --git a/sdk/servicebus/arm-servicebus/src/models/mappers.ts b/sdk/servicebus/arm-servicebus/src/models/mappers.ts index 391ff4d395bc..cf76cb9502b1 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,6 +43,35 @@ export const Resource: msRest.CompositeMapper = { } }; +export const IpFilterRule: msRest.CompositeMapper = { + serializedName: "IpFilterRule", + type: { + name: "Composite", + className: "IpFilterRule", + modelProperties: { + ...Resource.type.modelProperties, + ipMask: { + serializedName: "properties.ipMask", + type: { + name: "String" + } + }, + action: { + serializedName: "properties.action", + type: { + name: "String" + } + }, + filterName: { + serializedName: "properties.filterName", + type: { + name: "String" + } + } + } + } +}; + export const TrackedResource: msRest.CompositeMapper = { serializedName: "TrackedResource", type: { @@ -72,6 +101,104 @@ export const TrackedResource: msRest.CompositeMapper = { } }; +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 ResourceNamespacePatch: msRest.CompositeMapper = { serializedName: "ResourceNamespacePatch", type: { @@ -139,6 +266,87 @@ export const SBSku: msRest.CompositeMapper = { } }; +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + defaultValue: 'SystemAssigned', + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned" + ] + } + } + } + } +}; + +export const KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "KeyVaultProperties", + type: { + name: "Composite", + className: "KeyVaultProperties", + modelProperties: { + keyName: { + serializedName: "keyName", + type: { + name: "String" + } + }, + keyVaultUri: { + serializedName: "keyVaultUri", + type: { + name: "String" + } + } + } + } +}; + +export const Encryption: msRest.CompositeMapper = { + serializedName: "Encryption", + type: { + name: "Composite", + className: "Encryption", + modelProperties: { + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "KeyVaultProperties" + } + }, + keySource: { + serializedName: "keySource", + defaultValue: 'Microsoft.KeyVault', + type: { + name: "Enum", + allowedValues: [ + "Microsoft.KeyVault" + ] + } + } + } + } +}; + export const SBNamespace: msRest.CompositeMapper = { serializedName: "SBNamespace", type: { @@ -153,6 +361,13 @@ export const SBNamespace: msRest.CompositeMapper = { className: "SBSku" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -160,6 +375,13 @@ export const SBNamespace: msRest.CompositeMapper = { name: "String" } }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, createdAt: { readOnly: true, serializedName: "properties.createdAt", @@ -187,6 +409,19 @@ export const SBNamespace: msRest.CompositeMapper = { type: { name: "String" } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } } } } @@ -213,6 +448,13 @@ export const SBNamespaceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, createdAt: { readOnly: true, serializedName: "properties.createdAt", @@ -240,89 +482,228 @@ export const SBNamespaceUpdateParameters: msRest.CompositeMapper = { type: { name: "String" } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "Encryption" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } } } } }; -export const SBNamespaceMigrate: msRest.CompositeMapper = { - serializedName: "SBNamespaceMigrate", +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", type: { name: "Composite", - className: "SBNamespaceMigrate", + className: "PrivateEndpoint", modelProperties: { - targetNamespaceType: { - required: true, - serializedName: "targetNamespaceType", + id: { + serializedName: "id", type: { - name: "Enum", - allowedValues: [ - "Messaging", - "NotificationHub", - "Mixed", - "EventHub", - "Relay" - ] + name: "String" } } } } }; -export const SBAuthorizationRule: msRest.CompositeMapper = { - serializedName: "SBAuthorizationRule", +export const ConnectionState: msRest.CompositeMapper = { + serializedName: "ConnectionState", type: { name: "Composite", - className: "SBAuthorizationRule", + className: "ConnectionState", modelProperties: { - ...Resource.type.modelProperties, - rights: { - required: true, - serializedName: "properties.rights", + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "Manage", - "Send", - "Listen" - ] - } - } + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" } } } } }; -export const AuthorizationRuleProperties: msRest.CompositeMapper = { - serializedName: "AuthorizationRuleProperties", +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", type: { name: "Composite", - className: "AuthorizationRuleProperties", + className: "PrivateEndpointConnection", modelProperties: { - rights: { - required: true, - serializedName: "rights", + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "Manage", - "Send", - "Listen" - ] - } - } + name: "Composite", + className: "PrivateEndpoint" } - } - } - } -}; + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "ConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +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 VirtualNetworkRule: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRule", + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...Resource.type.modelProperties, + virtualNetworkSubnetId: { + serializedName: "properties.virtualNetworkSubnetId", + type: { + name: "String" + } + } + } + } +}; + +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" + ] + } + } + } + } + } + } +}; export const AccessKeys: msRest.CompositeMapper = { serializedName: "AccessKeys", @@ -410,218 +791,234 @@ export const RegenerateAccessKeyParameters: msRest.CompositeMapper = { } }; -export const MessageCountDetails: msRest.CompositeMapper = { - serializedName: "MessageCountDetails", +export const CheckNameAvailability: msRest.CompositeMapper = { + serializedName: "CheckNameAvailability", type: { name: "Composite", - className: "MessageCountDetails", + className: "CheckNameAvailability", modelProperties: { - activeMessageCount: { - readOnly: true, - serializedName: "activeMessageCount", - type: { - name: "Number" - } - }, - deadLetterMessageCount: { - readOnly: true, - serializedName: "deadLetterMessageCount", + name: { + required: true, + serializedName: "name", type: { - name: "Number" + name: "String" } - }, - scheduledMessageCount: { + } + } + } +}; + +export const CheckNameAvailabilityResult: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityResult", + type: { + name: "Composite", + className: "CheckNameAvailabilityResult", + modelProperties: { + message: { readOnly: true, - serializedName: "scheduledMessageCount", + serializedName: "message", type: { - name: "Number" + name: "String" } }, - transferMessageCount: { - readOnly: true, - serializedName: "transferMessageCount", + nameAvailable: { + serializedName: "nameAvailable", type: { - name: "Number" + name: "Boolean" } }, - transferDeadLetterMessageCount: { - readOnly: true, - serializedName: "transferDeadLetterMessageCount", + reason: { + serializedName: "reason", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "None", + "InvalidName", + "SubscriptionIsDisabled", + "NameInUse", + "NameInLockdown", + "TooManyNamespaceInCurrentSubscription" + ] } } } } }; -export const SBQueue: msRest.CompositeMapper = { - serializedName: "SBQueue", +export const ArmDisasterRecovery: msRest.CompositeMapper = { + serializedName: "ArmDisasterRecovery", type: { name: "Composite", - className: "SBQueue", + className: "ArmDisasterRecovery", modelProperties: { ...Resource.type.modelProperties, - countDetails: { - readOnly: true, - serializedName: "properties.countDetails", - type: { - name: "Composite", - className: "MessageCountDetails" - } - }, - createdAt: { + provisioningState: { readOnly: true, - serializedName: "properties.createdAt", + serializedName: "properties.provisioningState", type: { - name: "DateTime" + name: "Enum", + allowedValues: [ + "Accepted", + "Succeeded", + "Failed" + ] } }, - updatedAt: { + pendingReplicationOperationsCount: { readOnly: true, - serializedName: "properties.updatedAt", + serializedName: "properties.pendingReplicationOperationsCount", type: { - name: "DateTime" + name: "Number" } }, - accessedAt: { - readOnly: true, - serializedName: "properties.accessedAt", + partnerNamespace: { + serializedName: "properties.partnerNamespace", type: { - name: "DateTime" + name: "String" } }, - sizeInBytes: { - readOnly: true, - serializedName: "properties.sizeInBytes", + alternateName: { + serializedName: "properties.alternateName", type: { - name: "Number" + name: "String" } }, - messageCount: { + role: { readOnly: true, - serializedName: "properties.messageCount", + serializedName: "properties.role", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Primary", + "PrimaryNotReplicating", + "Secondary" + ] } - }, - lockDuration: { - serializedName: "properties.lockDuration", + } + } + } +}; + +export const FailoverProperties: msRest.CompositeMapper = { + serializedName: "FailoverProperties", + type: { + name: "Composite", + className: "FailoverProperties", + modelProperties: { + isSafeFailover: { + serializedName: "properties.IsSafeFailover", type: { - name: "TimeSpan" + name: "Boolean" } - }, - maxSizeInMegabytes: { - serializedName: "properties.maxSizeInMegabytes", + } + } + } +}; + +export const Destination: msRest.CompositeMapper = { + serializedName: "Destination", + type: { + name: "Composite", + className: "Destination", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - requiresDuplicateDetection: { - serializedName: "properties.requiresDuplicateDetection", + storageAccountResourceId: { + serializedName: "properties.storageAccountResourceId", type: { - name: "Boolean" + name: "String" } }, - requiresSession: { - serializedName: "properties.requiresSession", + blobContainer: { + serializedName: "properties.blobContainer", type: { - name: "Boolean" + name: "String" } }, - defaultMessageTimeToLive: { - serializedName: "properties.defaultMessageTimeToLive", + archiveNameFormat: { + serializedName: "properties.archiveNameFormat", type: { - name: "TimeSpan" + name: "String" } - }, - deadLetteringOnMessageExpiration: { - serializedName: "properties.deadLetteringOnMessageExpiration", + } + } + } +}; + +export const CaptureDescription: msRest.CompositeMapper = { + serializedName: "CaptureDescription", + type: { + name: "Composite", + className: "CaptureDescription", + modelProperties: { + enabled: { + serializedName: "enabled", type: { name: "Boolean" } }, - duplicateDetectionHistoryTimeWindow: { - serializedName: "properties.duplicateDetectionHistoryTimeWindow", - type: { - name: "TimeSpan" - } - }, - maxDeliveryCount: { - serializedName: "properties.maxDeliveryCount", - type: { - name: "Number" - } - }, - status: { - serializedName: "properties.status", + encoding: { + serializedName: "encoding", type: { name: "Enum", allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" + "Avro", + "AvroDeflate" ] } }, - enableBatchedOperations: { - serializedName: "properties.enableBatchedOperations", - type: { - name: "Boolean" - } - }, - autoDeleteOnIdle: { - serializedName: "properties.autoDeleteOnIdle", - type: { - name: "TimeSpan" - } - }, - enablePartitioning: { - serializedName: "properties.enablePartitioning", - type: { - name: "Boolean" - } - }, - enableExpress: { - serializedName: "properties.enableExpress", + intervalInSeconds: { + serializedName: "intervalInSeconds", + constraints: { + InclusiveMaximum: 900, + InclusiveMinimum: 60 + }, type: { - name: "Boolean" + name: "Number" } }, - forwardTo: { - serializedName: "properties.forwardTo", + sizeLimitInBytes: { + serializedName: "sizeLimitInBytes", + constraints: { + InclusiveMaximum: 524288000, + InclusiveMinimum: 10485760 + }, type: { - name: "String" + name: "Number" } }, - forwardDeadLetteredMessagesTo: { - serializedName: "properties.forwardDeadLetteredMessagesTo", + destination: { + serializedName: "destination", type: { - name: "String" + name: "Composite", + className: "Destination" } } } } }; -export const SBTopic: msRest.CompositeMapper = { - serializedName: "SBTopic", +export const Eventhub: msRest.CompositeMapper = { + serializedName: "Eventhub", type: { name: "Composite", - className: "SBTopic", + className: "Eventhub", modelProperties: { ...Resource.type.modelProperties, - sizeInBytes: { + partitionIds: { readOnly: true, - serializedName: "properties.sizeInBytes", + serializedName: "properties.partitionIds", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, createdAt: { @@ -638,58 +1035,26 @@ export const SBTopic: msRest.CompositeMapper = { name: "DateTime" } }, - accessedAt: { - readOnly: true, - serializedName: "properties.accessedAt", - type: { - name: "DateTime" - } - }, - subscriptionCount: { - readOnly: true, - serializedName: "properties.subscriptionCount", + messageRetentionInDays: { + serializedName: "properties.messageRetentionInDays", + constraints: { + InclusiveMaximum: 7, + InclusiveMinimum: 1 + }, type: { name: "Number" } }, - countDetails: { - readOnly: true, - serializedName: "properties.countDetails", - type: { - name: "Composite", - className: "MessageCountDetails" - } - }, - defaultMessageTimeToLive: { - serializedName: "properties.defaultMessageTimeToLive", - type: { - name: "TimeSpan" - } - }, - maxSizeInMegabytes: { - serializedName: "properties.maxSizeInMegabytes", + partitionCount: { + serializedName: "properties.partitionCount", + constraints: { + InclusiveMaximum: 32, + InclusiveMinimum: 1 + }, type: { 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: { @@ -707,241 +1072,183 @@ export const SBTopic: msRest.CompositeMapper = { ] } }, - supportOrdering: { - serializedName: "properties.supportOrdering", - type: { - name: "Boolean" - } - }, - autoDeleteOnIdle: { - serializedName: "properties.autoDeleteOnIdle", + captureDescription: { + serializedName: "properties.captureDescription", type: { - name: "TimeSpan" + name: "Composite", + className: "CaptureDescription" } - }, - enablePartitioning: { - serializedName: "properties.enablePartitioning", + } + } + } +}; + +export const NWRuleSetIpRules: msRest.CompositeMapper = { + serializedName: "NWRuleSetIpRules", + type: { + name: "Composite", + className: "NWRuleSetIpRules", + modelProperties: { + ipMask: { + serializedName: "ipMask", type: { - name: "Boolean" + name: "String" } }, - enableExpress: { - serializedName: "properties.enableExpress", + action: { + serializedName: "action", + defaultValue: 'Allow', type: { - name: "Boolean" + name: "String" } } } } }; -export const SBSubscription: msRest.CompositeMapper = { - serializedName: "SBSubscription", +export const Subnet: msRest.CompositeMapper = { + serializedName: "Subnet", type: { name: "Composite", - className: "SBSubscription", + className: "Subnet", modelProperties: { - ...Resource.type.modelProperties, - messageCount: { - readOnly: true, - serializedName: "properties.messageCount", - type: { - name: "Number" - } - }, - createdAt: { - readOnly: true, - serializedName: "properties.createdAt", + id: { + required: true, + serializedName: "id", type: { - name: "DateTime" + name: "String" } - }, - accessedAt: { - readOnly: true, - serializedName: "properties.accessedAt", - type: { - name: "DateTime" - } - }, - updatedAt: { - readOnly: true, - serializedName: "properties.updatedAt", - type: { - name: "DateTime" - } - }, - countDetails: { - readOnly: true, - serializedName: "properties.countDetails", + } + } + } +}; + +export const NWRuleSetVirtualNetworkRules: msRest.CompositeMapper = { + serializedName: "NWRuleSetVirtualNetworkRules", + type: { + name: "Composite", + className: "NWRuleSetVirtualNetworkRules", + modelProperties: { + subnet: { + serializedName: "subnet", 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", - type: { - name: "Boolean" - } - }, - duplicateDetectionHistoryTimeWindow: { - serializedName: "properties.duplicateDetectionHistoryTimeWindow", - type: { - 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" - ] + className: "Subnet" } }, - enableBatchedOperations: { - serializedName: "properties.enableBatchedOperations", + ignoreMissingVnetServiceEndpoint: { + serializedName: "ignoreMissingVnetServiceEndpoint", type: { name: "Boolean" } - }, - autoDeleteOnIdle: { - serializedName: "properties.autoDeleteOnIdle", + } + } + } +}; + +export const NetworkRuleSet: msRest.CompositeMapper = { + serializedName: "NetworkRuleSet", + type: { + name: "Composite", + className: "NetworkRuleSet", + modelProperties: { + ...Resource.type.modelProperties, + defaultAction: { + serializedName: "properties.defaultAction", type: { - name: "TimeSpan" + name: "String" } }, - forwardTo: { - serializedName: "properties.forwardTo", + virtualNetworkRules: { + serializedName: "properties.virtualNetworkRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NWRuleSetVirtualNetworkRules" + } + } } }, - forwardDeadLetteredMessagesTo: { - serializedName: "properties.forwardDeadLetteredMessagesTo", + ipRules: { + serializedName: "properties.ipRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NWRuleSetIpRules" + } + } } } } } }; -export const CheckNameAvailability: msRest.CompositeMapper = { - serializedName: "CheckNameAvailability", +export const SBNamespaceMigrate: msRest.CompositeMapper = { + serializedName: "SBNamespaceMigrate", type: { name: "Composite", - className: "CheckNameAvailability", + className: "SBNamespaceMigrate", modelProperties: { - name: { + targetNamespaceType: { required: true, - serializedName: "name", + serializedName: "targetNamespaceType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Messaging", + "NotificationHub", + "Mixed", + "EventHub", + "Relay" + ] } } } } }; -export const CheckNameAvailabilityResult: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityResult", +export const MigrationConfigProperties: msRest.CompositeMapper = { + serializedName: "MigrationConfigProperties", type: { name: "Composite", - className: "CheckNameAvailabilityResult", + className: "MigrationConfigProperties", modelProperties: { - message: { + ...Resource.type.modelProperties, + provisioningState: { readOnly: true, - serializedName: "message", + serializedName: "properties.provisioningState", type: { name: "String" } }, - nameAvailable: { - serializedName: "nameAvailable", + pendingReplicationOperationsCount: { + readOnly: true, + serializedName: "properties.pendingReplicationOperationsCount", type: { - name: "Boolean" + name: "Number" } }, - reason: { - serializedName: "reason", - type: { - name: "Enum", - allowedValues: [ - "None", - "InvalidName", - "SubscriptionIsDisabled", - "NameInUse", - "NameInLockdown", - "TooManyNamespaceInCurrentSubscription" - ] - } - } - } - } -}; - -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", + targetNamespace: { + required: true, + serializedName: "properties.targetNamespace", type: { name: "String" } }, - resource: { - readOnly: true, - serializedName: "resource", + postMigrationName: { + required: true, + serializedName: "properties.postMigrationName", type: { name: "String" } }, - operation: { + migrationState: { readOnly: true, - serializedName: "operation", + serializedName: "properties.migrationState", type: { name: "String" } @@ -950,260 +1257,240 @@ export const OperationDisplay: msRest.CompositeMapper = { } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const PremiumMessagingRegionsProperties: msRest.CompositeMapper = { + serializedName: "PremiumMessagingRegions_properties", type: { name: "Composite", - className: "Operation", + className: "PremiumMessagingRegionsProperties", modelProperties: { - name: { + code: { readOnly: true, - serializedName: "name", + serializedName: "code", type: { name: "String" } }, - display: { - serializedName: "display", + fullName: { + readOnly: true, + serializedName: "fullName", type: { - name: "Composite", - className: "OperationDisplay" + name: "String" } } } } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const PremiumMessagingRegions: msRest.CompositeMapper = { + serializedName: "PremiumMessagingRegions", type: { name: "Composite", - className: "ErrorResponse", + className: "PremiumMessagingRegions", modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", + ...ResourceNamespacePatch.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PremiumMessagingRegionsProperties" } } } } }; -export const Action: msRest.CompositeMapper = { - serializedName: "Action", - type: { +export const MessageCountDetails: msRest.CompositeMapper = { + serializedName: "MessageCountDetails", + type: { name: "Composite", - className: "Action", + className: "MessageCountDetails", modelProperties: { - sqlExpression: { - serializedName: "sqlExpression", + activeMessageCount: { + readOnly: true, + serializedName: "activeMessageCount", type: { - name: "String" + name: "Number" } }, - compatibilityLevel: { - serializedName: "compatibilityLevel", + deadLetterMessageCount: { + readOnly: true, + serializedName: "deadLetterMessageCount", type: { name: "Number" } }, - requiresPreprocessing: { - serializedName: "requiresPreprocessing", - defaultValue: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const SqlFilter: msRest.CompositeMapper = { - serializedName: "SqlFilter", - type: { - name: "Composite", - className: "SqlFilter", - modelProperties: { - sqlExpression: { - serializedName: "sqlExpression", + scheduledMessageCount: { + readOnly: true, + serializedName: "scheduledMessageCount", type: { - name: "String" + name: "Number" } }, - compatibilityLevel: { - serializedName: "compatibilityLevel", - defaultValue: 20, - constraints: { - InclusiveMaximum: 20, - InclusiveMinimum: 20 - }, + transferMessageCount: { + readOnly: true, + serializedName: "transferMessageCount", type: { name: "Number" } }, - requiresPreprocessing: { - serializedName: "requiresPreprocessing", - defaultValue: true, + transferDeadLetterMessageCount: { + readOnly: true, + serializedName: "transferDeadLetterMessageCount", type: { - name: "Boolean" + name: "Number" } } } } }; -export const CorrelationFilter: msRest.CompositeMapper = { - serializedName: "CorrelationFilter", +export const SBQueue: msRest.CompositeMapper = { + serializedName: "SBQueue", type: { name: "Composite", - className: "CorrelationFilter", + className: "SBQueue", modelProperties: { - properties: { - serializedName: "properties", + ...Resource.type.modelProperties, + countDetails: { + readOnly: true, + serializedName: "properties.countDetails", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "MessageCountDetails" } }, - correlationId: { - serializedName: "correlationId", + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", type: { - name: "String" + name: "DateTime" } }, - messageId: { - serializedName: "messageId", + updatedAt: { + readOnly: true, + serializedName: "properties.updatedAt", type: { - name: "String" + name: "DateTime" } }, - to: { - serializedName: "to", + accessedAt: { + readOnly: true, + serializedName: "properties.accessedAt", type: { - name: "String" + name: "DateTime" } }, - replyTo: { - serializedName: "replyTo", + sizeInBytes: { + readOnly: true, + serializedName: "properties.sizeInBytes", type: { - name: "String" + name: "Number" } }, - label: { - serializedName: "label", + messageCount: { + readOnly: true, + serializedName: "properties.messageCount", type: { - name: "String" + name: "Number" } }, - sessionId: { - serializedName: "sessionId", + lockDuration: { + serializedName: "properties.lockDuration", type: { - name: "String" + name: "TimeSpan" } }, - replyToSessionId: { - serializedName: "replyToSessionId", + maxSizeInMegabytes: { + serializedName: "properties.maxSizeInMegabytes", type: { - name: "String" + name: "Number" } }, - contentType: { - serializedName: "contentType", + requiresDuplicateDetection: { + serializedName: "properties.requiresDuplicateDetection", type: { - name: "String" + name: "Boolean" } }, - requiresPreprocessing: { - serializedName: "requiresPreprocessing", - defaultValue: true, + requiresSession: { + serializedName: "properties.requiresSession", type: { name: "Boolean" } - } - } - } -}; - -export const Rule: msRest.CompositeMapper = { - serializedName: "Rule", - type: { - name: "Composite", - className: "Rule", - modelProperties: { - ...Resource.type.modelProperties, - action: { - serializedName: "properties.action", + }, + defaultMessageTimeToLive: { + serializedName: "properties.defaultMessageTimeToLive", type: { - name: "Composite", - className: "Action" + name: "TimeSpan" } }, - filterType: { - serializedName: "properties.filterType", + deadLetteringOnMessageExpiration: { + serializedName: "properties.deadLetteringOnMessageExpiration", + type: { + name: "Boolean" + } + }, + duplicateDetectionHistoryTimeWindow: { + serializedName: "properties.duplicateDetectionHistoryTimeWindow", + type: { + name: "TimeSpan" + } + }, + maxDeliveryCount: { + serializedName: "properties.maxDeliveryCount", + type: { + name: "Number" + } + }, + status: { + serializedName: "properties.status", type: { name: "Enum", allowedValues: [ - "SqlFilter", - "CorrelationFilter" + "Active", + "Disabled", + "Restoring", + "SendDisabled", + "ReceiveDisabled", + "Creating", + "Deleting", + "Renaming", + "Unknown" ] } }, - sqlFilter: { - serializedName: "properties.sqlFilter", + enableBatchedOperations: { + serializedName: "properties.enableBatchedOperations", type: { - name: "Composite", - className: "SqlFilter" + name: "Boolean" } }, - correlationFilter: { - serializedName: "properties.correlationFilter", + autoDeleteOnIdle: { + serializedName: "properties.autoDeleteOnIdle", type: { - name: "Composite", - className: "CorrelationFilter" + name: "TimeSpan" } - } - } - } -}; - -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", + }, + enablePartitioning: { + serializedName: "properties.enablePartitioning", + type: { + name: "Boolean" + } + }, + enableExpress: { + serializedName: "properties.enableExpress", + type: { + name: "Boolean" + } + }, + forwardTo: { + serializedName: "properties.forwardTo", type: { name: "String" } }, - fullName: { - readOnly: true, - serializedName: "fullName", + forwardDeadLetteredMessagesTo: { + serializedName: "properties.forwardDeadLetteredMessagesTo", type: { name: "String" } @@ -1212,128 +1499,148 @@ export const PremiumMessagingRegionsProperties: msRest.CompositeMapper = { } }; -export const PremiumMessagingRegions: msRest.CompositeMapper = { - serializedName: "PremiumMessagingRegions", +export const SBSubscription: msRest.CompositeMapper = { + serializedName: "SBSubscription", type: { name: "Composite", - className: "PremiumMessagingRegions", + className: "SBSubscription", modelProperties: { - ...ResourceNamespacePatch.type.modelProperties, - properties: { - serializedName: "properties", + ...Resource.type.modelProperties, + messageCount: { + readOnly: true, + serializedName: "properties.messageCount", + 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: "PremiumMessagingRegionsProperties" + className: "MessageCountDetails" } - } - } - } -}; - -export const Destination: msRest.CompositeMapper = { - serializedName: "Destination", - type: { - name: "Composite", - className: "Destination", - modelProperties: { - name: { - serializedName: "name", + }, + lockDuration: { + serializedName: "properties.lockDuration", type: { - name: "String" + name: "TimeSpan" } }, - storageAccountResourceId: { - serializedName: "properties.storageAccountResourceId", + requiresSession: { + serializedName: "properties.requiresSession", type: { - name: "String" + name: "Boolean" } }, - blobContainer: { - serializedName: "properties.blobContainer", + defaultMessageTimeToLive: { + serializedName: "properties.defaultMessageTimeToLive", type: { - name: "String" + name: "TimeSpan" } }, - archiveNameFormat: { - serializedName: "properties.archiveNameFormat", + deadLetteringOnFilterEvaluationExceptions: { + serializedName: "properties.deadLetteringOnFilterEvaluationExceptions", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const CaptureDescription: msRest.CompositeMapper = { - serializedName: "CaptureDescription", - type: { - name: "Composite", - className: "CaptureDescription", - modelProperties: { - enabled: { - serializedName: "enabled", + }, + deadLetteringOnMessageExpiration: { + serializedName: "properties.deadLetteringOnMessageExpiration", type: { name: "Boolean" } }, - encoding: { - serializedName: "encoding", + duplicateDetectionHistoryTimeWindow: { + serializedName: "properties.duplicateDetectionHistoryTimeWindow", + type: { + name: "TimeSpan" + } + }, + maxDeliveryCount: { + serializedName: "properties.maxDeliveryCount", + type: { + name: "Number" + } + }, + status: { + serializedName: "properties.status", type: { name: "Enum", allowedValues: [ - "Avro", - "AvroDeflate" + "Active", + "Disabled", + "Restoring", + "SendDisabled", + "ReceiveDisabled", + "Creating", + "Deleting", + "Renaming", + "Unknown" ] } }, - intervalInSeconds: { - serializedName: "intervalInSeconds", - constraints: { - InclusiveMaximum: 900, - InclusiveMinimum: 60 - }, + enableBatchedOperations: { + serializedName: "properties.enableBatchedOperations", + type: { + name: "Boolean" + } + }, + autoDeleteOnIdle: { + serializedName: "properties.autoDeleteOnIdle", type: { - name: "Number" + name: "TimeSpan" } }, - sizeLimitInBytes: { - serializedName: "sizeLimitInBytes", - constraints: { - InclusiveMaximum: 524288000, - InclusiveMinimum: 10485760 - }, + forwardTo: { + serializedName: "properties.forwardTo", type: { - name: "Number" + name: "String" } }, - destination: { - serializedName: "destination", + forwardDeadLetteredMessagesTo: { + serializedName: "properties.forwardDeadLetteredMessagesTo", type: { - name: "Composite", - className: "Destination" + name: "String" } } } } }; -export const Eventhub: msRest.CompositeMapper = { - serializedName: "Eventhub", +export const SBTopic: msRest.CompositeMapper = { + serializedName: "SBTopic", type: { name: "Composite", - className: "Eventhub", + className: "SBTopic", modelProperties: { ...Resource.type.modelProperties, - partitionIds: { + sizeInBytes: { readOnly: true, - serializedName: "properties.partitionIds", + serializedName: "properties.sizeInBytes", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, createdAt: { @@ -1350,26 +1657,58 @@ export const Eventhub: msRest.CompositeMapper = { name: "DateTime" } }, - messageRetentionInDays: { - serializedName: "properties.messageRetentionInDays", - constraints: { - InclusiveMaximum: 7, - InclusiveMinimum: 1 - }, + accessedAt: { + readOnly: true, + serializedName: "properties.accessedAt", + type: { + name: "DateTime" + } + }, + subscriptionCount: { + readOnly: true, + serializedName: "properties.subscriptionCount", type: { name: "Number" } }, - partitionCount: { - serializedName: "properties.partitionCount", - constraints: { - InclusiveMaximum: 32, - InclusiveMinimum: 1 - }, + countDetails: { + readOnly: true, + serializedName: "properties.countDetails", + type: { + name: "Composite", + className: "MessageCountDetails" + } + }, + defaultMessageTimeToLive: { + serializedName: "properties.defaultMessageTimeToLive", + type: { + name: "TimeSpan" + } + }, + maxSizeInMegabytes: { + serializedName: "properties.maxSizeInMegabytes", type: { 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: { @@ -1387,149 +1726,249 @@ export const Eventhub: msRest.CompositeMapper = { ] } }, - captureDescription: { - serializedName: "properties.captureDescription", + supportOrdering: { + serializedName: "properties.supportOrdering", type: { - name: "Composite", - className: "CaptureDescription" + 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 ArmDisasterRecovery: msRest.CompositeMapper = { - serializedName: "ArmDisasterRecovery", +export const Action: msRest.CompositeMapper = { + serializedName: "Action", type: { name: "Composite", - className: "ArmDisasterRecovery", + className: "Action", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + sqlExpression: { + serializedName: "sqlExpression", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Succeeded", - "Failed" - ] + name: "String" } }, - pendingReplicationOperationsCount: { - readOnly: true, - serializedName: "properties.pendingReplicationOperationsCount", + compatibilityLevel: { + serializedName: "compatibilityLevel", type: { name: "Number" } }, - partnerNamespace: { - serializedName: "properties.partnerNamespace", + requiresPreprocessing: { + serializedName: "requiresPreprocessing", + defaultValue: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const SqlFilter: msRest.CompositeMapper = { + serializedName: "SqlFilter", + type: { + name: "Composite", + className: "SqlFilter", + modelProperties: { + sqlExpression: { + serializedName: "sqlExpression", type: { name: "String" } }, - alternateName: { - serializedName: "properties.alternateName", + compatibilityLevel: { + serializedName: "compatibilityLevel", + defaultValue: 20, + constraints: { + InclusiveMaximum: 20, + InclusiveMinimum: 20 + }, + type: { + name: "Number" + } + }, + requiresPreprocessing: { + serializedName: "requiresPreprocessing", + defaultValue: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const CorrelationFilter: msRest.CompositeMapper = { + serializedName: "CorrelationFilter", + type: { + name: "Composite", + className: "CorrelationFilter", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + correlationId: { + serializedName: "correlationId", type: { name: "String" } }, - role: { - readOnly: true, - serializedName: "properties.role", + messageId: { + serializedName: "messageId", + type: { + name: "String" + } + }, + to: { + serializedName: "to", + type: { + name: "String" + } + }, + replyTo: { + serializedName: "replyTo", + type: { + name: "String" + } + }, + label: { + serializedName: "label", + type: { + name: "String" + } + }, + sessionId: { + serializedName: "sessionId", + type: { + name: "String" + } + }, + replyToSessionId: { + serializedName: "replyToSessionId", + type: { + name: "String" + } + }, + contentType: { + serializedName: "contentType", + type: { + name: "String" + } + }, + requiresPreprocessing: { + serializedName: "requiresPreprocessing", + defaultValue: true, type: { - name: "Enum", - allowedValues: [ - "Primary", - "PrimaryNotReplicating", - "Secondary" - ] + name: "Boolean" } } } } }; -export const MigrationConfigProperties: msRest.CompositeMapper = { - serializedName: "MigrationConfigProperties", +export const Rule: msRest.CompositeMapper = { + serializedName: "Rule", type: { name: "Composite", - className: "MigrationConfigProperties", + className: "Rule", modelProperties: { ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - pendingReplicationOperationsCount: { - readOnly: true, - serializedName: "properties.pendingReplicationOperationsCount", + action: { + serializedName: "properties.action", type: { - name: "Number" + name: "Composite", + className: "Action" } }, - targetNamespace: { - required: true, - serializedName: "properties.targetNamespace", + filterType: { + serializedName: "properties.filterType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SqlFilter", + "CorrelationFilter" + ] } }, - postMigrationName: { - required: true, - serializedName: "properties.postMigrationName", + sqlFilter: { + serializedName: "properties.sqlFilter", type: { - name: "String" + name: "Composite", + className: "SqlFilter" } }, - migrationState: { - readOnly: true, - serializedName: "properties.migrationState", + correlationFilter: { + serializedName: "properties.correlationFilter", type: { - name: "String" + name: "Composite", + className: "CorrelationFilter" } } } } }; -export const Subnet: msRest.CompositeMapper = { - serializedName: "Subnet", +export const SqlRuleAction: msRest.CompositeMapper = { + serializedName: "SqlRuleAction", type: { name: "Composite", - className: "Subnet", + className: "SqlRuleAction", modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - } + ...Action.type.modelProperties } } }; -export const NWRuleSetIpRules: msRest.CompositeMapper = { - serializedName: "NWRuleSetIpRules", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", type: { name: "Composite", - className: "NWRuleSetIpRules", + className: "OperationDisplay", modelProperties: { - ipMask: { - serializedName: "ipMask", + provider: { + readOnly: true, + serializedName: "provider", type: { name: "String" } }, - action: { - serializedName: "action", - defaultValue: 'Allow', + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", type: { name: "String" } @@ -1538,91 +1977,77 @@ export const NWRuleSetIpRules: msRest.CompositeMapper = { } }; -export const NWRuleSetVirtualNetworkRules: msRest.CompositeMapper = { - serializedName: "NWRuleSetVirtualNetworkRules", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "NWRuleSetVirtualNetworkRules", + className: "Operation", modelProperties: { - subnet: { - serializedName: "subnet", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Composite", - className: "Subnet" + name: "String" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "ignoreMissingVnetServiceEndpoint", + display: { + serializedName: "display", type: { - name: "Boolean" + name: "Composite", + className: "OperationDisplay" } } } } }; -export const NetworkRuleSet: msRest.CompositeMapper = { - serializedName: "NetworkRuleSet", +export const IpFilterRuleListResult: msRest.CompositeMapper = { + serializedName: "IpFilterRuleListResult", type: { name: "Composite", - className: "NetworkRuleSet", + className: "IpFilterRuleListResult", 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: "IpFilterRule" } } } }, - 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 SBNamespaceListResult: msRest.CompositeMapper = { + serializedName: "SBNamespaceListResult", type: { name: "Composite", - className: "OperationListResult", + className: "SBNamespaceListResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" + className: "SBNamespace" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -1632,11 +2057,11 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const SBNamespaceListResult: msRest.CompositeMapper = { - serializedName: "SBNamespaceListResult", +export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRuleListResult", type: { name: "Composite", - className: "SBNamespaceListResult", + className: "VirtualNetworkRuleListResult", modelProperties: { value: { serializedName: "", @@ -1645,7 +2070,7 @@ export const SBNamespaceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SBNamespace" + className: "VirtualNetworkRule" } } } @@ -1716,11 +2141,11 @@ export const NetworkRuleSetListResult: msRest.CompositeMapper = { } }; -export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { - serializedName: "ArmDisasterRecoveryListResult", +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", type: { name: "Composite", - className: "ArmDisasterRecoveryListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { serializedName: "", @@ -1729,13 +2154,12 @@ export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ArmDisasterRecovery" + className: "PrivateEndpointConnection" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -1745,11 +2169,11 @@ export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { } }; -export const MigrationConfigListResult: msRest.CompositeMapper = { - serializedName: "MigrationConfigListResult", +export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { + serializedName: "ArmDisasterRecoveryListResult", type: { name: "Composite", - className: "MigrationConfigListResult", + className: "ArmDisasterRecoveryListResult", modelProperties: { value: { serializedName: "", @@ -1758,7 +2182,7 @@ export const MigrationConfigListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MigrationConfigProperties" + className: "ArmDisasterRecovery" } } } @@ -1830,11 +2254,11 @@ export const SBTopicListResult: msRest.CompositeMapper = { } }; -export const SBSubscriptionListResult: msRest.CompositeMapper = { - serializedName: "SBSubscriptionListResult", +export const EventHubListResult: msRest.CompositeMapper = { + serializedName: "EventHubListResult", type: { name: "Composite", - className: "SBSubscriptionListResult", + className: "EventHubListResult", modelProperties: { value: { serializedName: "", @@ -1843,12 +2267,13 @@ export const SBSubscriptionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SBSubscription" + className: "Eventhub" } } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -1858,11 +2283,11 @@ export const SBSubscriptionListResult: msRest.CompositeMapper = { } }; -export const RuleListResult: msRest.CompositeMapper = { - serializedName: "RuleListResult", +export const MigrationConfigListResult: msRest.CompositeMapper = { + serializedName: "MigrationConfigListResult", type: { name: "Composite", - className: "RuleListResult", + className: "MigrationConfigListResult", modelProperties: { value: { serializedName: "", @@ -1871,12 +2296,13 @@ export const RuleListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Rule" + className: "MigrationConfigProperties" } } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -1915,11 +2341,11 @@ export const PremiumMessagingRegionsListResult: msRest.CompositeMapper = { } }; -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,7 +2354,64 @@ export const EventHubListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Eventhub" + className: "SBSubscription" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RuleListResult: msRest.CompositeMapper = { + serializedName: "RuleListResult", + type: { + name: "Composite", + className: "RuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" } } } diff --git a/sdk/servicebus/arm-servicebus/src/models/migrationConfigsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/migrationConfigsMappers.ts index 903d5200dc1e..c0992011c01d 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. @@ -11,10 +11,17 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigListResult, MigrationConfigProperties, @@ -23,6 +30,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, @@ -36,5 +45,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } 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..0723195308bb 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. @@ -14,10 +14,18 @@ export { CaptureDescription, CheckNameAvailability, CheckNameAvailabilityResult, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + IpFilterRuleListResult, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -26,6 +34,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, RegenerateAccessKeyParameters, Resource, ResourceNamespacePatch, @@ -43,5 +53,7 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule, + VirtualNetworkRuleListResult } 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..55ae49ae1cda 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 @@ -70,17 +69,20 @@ export const configName: msRest.OperationURLParameter = { } } }; -export const namespaceName0: msRest.OperationURLParameter = { - parameterPath: "namespaceName", +export const ipFilterRuleName: msRest.OperationURLParameter = { + parameterPath: "ipFilterRuleName", mapper: { required: true, - serializedName: "namespaceName", + serializedName: "ipFilterRuleName", + constraints: { + MinLength: 1 + }, type: { name: "String" } } }; -export const namespaceName1: msRest.OperationURLParameter = { +export const namespaceName0: msRest.OperationURLParameter = { parameterPath: "namespaceName", mapper: { required: true, @@ -94,6 +96,16 @@ export const namespaceName1: msRest.OperationURLParameter = { } } }; +export const namespaceName1: msRest.OperationURLParameter = { + parameterPath: "namespaceName", + mapper: { + required: true, + serializedName: "namespaceName", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -105,6 +117,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: { @@ -229,3 +251,16 @@ export const topicName: msRest.OperationURLParameter = { } } }; +export const virtualNetworkRuleName: msRest.OperationURLParameter = { + parameterPath: "virtualNetworkRuleName", + mapper: { + required: true, + serializedName: "virtualNetworkRuleName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; diff --git a/sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts index ac8de9d04d7d..548cda8c2a12 100644 --- a/sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/premiumMessagingRegionsOperationsMappers.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,10 +11,17 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -23,6 +30,8 @@ export { PremiumMessagingRegions, PremiumMessagingRegionsListResult, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, @@ -36,5 +45,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/privateEndpointConnectionsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..5ddaea0830fd --- /dev/null +++ b/sdk/servicebus/arm-servicebus/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,50 @@ +/* + * 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 { + Action, + ArmDisasterRecovery, + BaseResource, + CaptureDescription, + ConnectionState, + CorrelationFilter, + Destination, + Encryption, + ErrorAdditionalInfo, + ErrorResponse, + ErrorResponseError, + Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, + MessageCountDetails, + MigrationConfigProperties, + NetworkRuleSet, + NWRuleSetIpRules, + NWRuleSetVirtualNetworkRules, + PremiumMessagingRegions, + PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, + Resource, + ResourceNamespacePatch, + Rule, + SBAuthorizationRule, + SBNamespace, + SBNamespaceUpdateParameters, + SBQueue, + SBSku, + SBSubscription, + SBTopic, + SqlFilter, + SqlRuleAction, + Subnet, + TrackedResource, + VirtualNetworkRule +} 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..ec26c658e94f 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. @@ -12,10 +12,17 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -23,6 +30,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, RegenerateAccessKeyParameters, Resource, ResourceNamespacePatch, @@ -39,5 +48,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } from "../models/mappers"; diff --git a/sdk/servicebus/arm-servicebus/src/models/regionsMappers.ts b/sdk/servicebus/arm-servicebus/src/models/regionsMappers.ts index ac8de9d04d7d..548cda8c2a12 100644 --- a/sdk/servicebus/arm-servicebus/src/models/regionsMappers.ts +++ b/sdk/servicebus/arm-servicebus/src/models/regionsMappers.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,10 +11,17 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -23,6 +30,8 @@ export { PremiumMessagingRegions, PremiumMessagingRegionsListResult, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, @@ -36,5 +45,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } 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..83b1120a8fc4 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. @@ -11,10 +11,17 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -22,6 +29,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, @@ -36,5 +45,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } 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..ff7f805d5b88 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. @@ -11,10 +11,17 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -22,6 +29,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, Resource, ResourceNamespacePatch, Rule, @@ -36,5 +45,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } 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..01ffbd991d97 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. @@ -12,10 +12,17 @@ export { ArmDisasterRecovery, BaseResource, CaptureDescription, + ConnectionState, CorrelationFilter, Destination, + Encryption, + ErrorAdditionalInfo, ErrorResponse, + ErrorResponseError, Eventhub, + Identity, + IpFilterRule, + KeyVaultProperties, MessageCountDetails, MigrationConfigProperties, NetworkRuleSet, @@ -23,6 +30,8 @@ export { NWRuleSetVirtualNetworkRules, PremiumMessagingRegions, PremiumMessagingRegionsProperties, + PrivateEndpoint, + PrivateEndpointConnection, RegenerateAccessKeyParameters, Resource, ResourceNamespacePatch, @@ -39,5 +48,6 @@ export { SqlFilter, SqlRuleAction, Subnet, - TrackedResource + TrackedResource, + VirtualNetworkRule } 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..edb0d12073b2 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, @@ -459,7 +458,7 @@ const checkNameAvailabilityMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -491,7 +490,7 @@ const listOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -516,7 +515,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.alias, Parameters.subscriptionId ], @@ -550,7 +549,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.alias, Parameters.subscriptionId ], @@ -574,7 +573,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.alias, Parameters.subscriptionId ], @@ -600,7 +599,7 @@ const breakPairingOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.alias, Parameters.subscriptionId ], @@ -624,7 +623,7 @@ const failOverOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.alias, Parameters.subscriptionId ], @@ -634,6 +633,13 @@ const failOverOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.FailoverProperties + }, responses: { 200: {}, default: { @@ -645,10 +651,10 @@ 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, + Parameters.namespaceName0, Parameters.alias, Parameters.subscriptionId ], @@ -671,10 +677,10 @@ 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, + Parameters.namespaceName0, Parameters.alias, Parameters.authorizationRuleName, Parameters.subscriptionId @@ -698,10 +704,10 @@ 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, + Parameters.namespaceName0, Parameters.alias, Parameters.authorizationRuleName, Parameters.subscriptionId @@ -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 index 1e93057274ba..679dec25bd45 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/eventHubs.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/eventHubs.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 @@ -94,7 +93,7 @@ const listByNamespaceOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/eventhubs", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -121,6 +120,9 @@ const listByNamespaceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/servicebus/arm-servicebus/src/operations/index.ts b/sdk/servicebus/arm-servicebus/src/operations/index.ts index 6e521e6da18f..1fb3bf6ace7e 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/index.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/index.ts @@ -1,21 +1,22 @@ /* - * 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 "./disasterRecoveryConfigs"; -export * from "./migrationConfigs"; export * from "./queues"; export * from "./topics"; +export * from "./eventHubs"; +export * from "./migrationConfigs"; +export * from "./premiumMessagingRegionsOperations"; +export * from "./regions"; export * from "./subscriptions"; export * from "./rules"; -export * from "./regions"; -export * from "./premiumMessagingRegionsOperations"; -export * from "./eventHubs"; +export * from "./operations"; diff --git a/sdk/servicebus/arm-servicebus/src/operations/migrationConfigs.ts b/sdk/servicebus/arm-servicebus/src/operations/migrationConfigs.ts index f3f456574707..e20593fa35fb 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 @@ -260,7 +259,7 @@ const listOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -285,7 +284,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations/{configName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.configName, Parameters.subscriptionId ], @@ -310,7 +309,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations/{configName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.configName, Parameters.subscriptionId ], @@ -336,7 +335,7 @@ const completeMigrationOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations/{configName}/upgrade", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.configName, Parameters.subscriptionId ], @@ -360,7 +359,7 @@ const revertOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations/{configName}/revert", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.configName, Parameters.subscriptionId ], @@ -384,7 +383,7 @@ const beginCreateAndStartMigrationOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations/{configName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.configName, Parameters.subscriptionId ], @@ -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..5abff9dce1c4 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 @@ -28,31 +27,147 @@ export class Namespaces { } /** - * Check the give namespace name availability. - * @param parameters Parameters to check availability of the given namespace name + * Gets a list of IP Filter rules for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options?: msRest.RequestOptionsBase): Promise; + listIpFilterRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param parameters Parameters to check availability of the given namespace name + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name * @param callback The callback */ - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, callback: msRest.ServiceCallback): void; + listIpFilterRules(resourceGroupName: string, namespaceName: string, callback: msRest.ServiceCallback): void; /** - * @param parameters Parameters to check availability of the given namespace name + * @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 */ - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailabilityMethod(parameters: Models.CheckNameAvailability, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listIpFilterRules(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listIpFilterRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + options + }, + listIpFilterRulesOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an IpFilterRule for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param parameters The Namespace IpFilterRule. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param parameters The Namespace IpFilterRule. + * @param callback The callback + */ + createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param parameters The Namespace IpFilterRule. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, parameters: Models.IpFilterRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, + namespaceName, + ipFilterRuleName, parameters, options }, - checkNameAvailabilityMethodOperationSpec, - callback) as Promise; + createOrUpdateIpFilterRuleOperationSpec, + callback) as Promise; + } + + /** + * Deletes an IpFilterRule for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param callback The callback + */ + deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param options The optional parameters + * @param callback The callback + */ + deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + ipFilterRuleName, + options + }, + deleteIpFilterRuleOperationSpec, + callback); + } + + /** + * Gets an IpFilterRule for a Namespace by rule name. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param [options] The optional parameters + * @returns Promise + */ + getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param callback The callback + */ + getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param ipFilterRuleName The IP Filter Rule name. + * @param options The optional parameters + * @param callback The callback + */ + getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getIpFilterRule(resourceGroupName: string, namespaceName: string, ipFilterRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + ipFilterRuleName, + options + }, + getIpFilterRuleOperationSpec, + callback) as Promise; } /** @@ -203,6 +318,150 @@ export class Namespaces { callback) as Promise; } + /** + * Gets a list of VirtualNetwork rules for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param [options] The optional parameters + * @returns Promise + */ + listVirtualNetworkRules(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 + */ + listVirtualNetworkRules(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 + */ + listVirtualNetworkRules(resourceGroupName: string, namespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVirtualNetworkRules(resourceGroupName: string, namespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + options + }, + listVirtualNetworkRulesOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an VirtualNetworkRule for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param parameters The Namespace VirtualNetworkRule. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param parameters The Namespace VirtualNetworkRule. + * @param callback The callback + */ + createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param parameters The Namespace VirtualNetworkRule. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdateVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, parameters: Models.VirtualNetworkRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + virtualNetworkRuleName, + parameters, + options + }, + createOrUpdateVirtualNetworkRuleOperationSpec, + callback) as Promise; + } + + /** + * Deletes an VirtualNetworkRule for a Namespace. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param callback The callback + */ + deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param options The optional parameters + * @param callback The callback + */ + deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + virtualNetworkRuleName, + options + }, + deleteVirtualNetworkRuleOperationSpec, + callback); + } + + /** + * Gets an VirtualNetworkRule for a Namespace by rule name. + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param [options] The optional parameters + * @returns Promise + */ + getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param callback The callback + */ + getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the Resource group within the Azure subscription. + * @param namespaceName The namespace name + * @param virtualNetworkRuleName The Virtual Network Rule name. + * @param options The optional parameters + * @param callback The callback + */ + getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVirtualNetworkRule(resourceGroupName: string, namespaceName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + virtualNetworkRuleName, + options + }, + getVirtualNetworkRuleOperationSpec, + callback) as Promise; + } + /** * Gets the authorization rules for a namespace. * @param resourceGroupName Name of the Resource group within the Azure subscription. @@ -424,39 +683,31 @@ export class Namespaces { } /** - * This operation Migrate the given namespace to provided name type - * @param resourceGroupName Name of the Resource group within the Azure subscription. - * @param namespaceName The namespace name - * @param parameters Parameters supplied to migrate namespace type. + * 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 */ - migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, 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 supplied to migrate namespace type. + * @param parameters Parameters to check availability of the given namespace name * @param callback The callback */ - migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, 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 supplied to migrate namespace type. + * @param parameters Parameters to check availability of the given namespace 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 { + 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 }, - migrateOperationSpec, - callback); + checkNameAvailabilityMethodOperationSpec, + callback) as Promise; } /** @@ -559,6 +810,42 @@ export class Namespaces { callback) as Promise; } + /** + * This operation Migrate the given namespace to provided name type + * @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 [options] The optional parameters + * @returns Promise + */ + migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, 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 callback The callback + */ + migrate(resourceGroupName: string, namespaceName: string, parameters: Models.SBNamespaceMigrate, 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + parameters, + options + }, + migrateOperationSpec, + callback); + } + /** * Creates or updates a service namespace. Once created, this namespace's resource manifest is * immutable. This operation is idempotent. @@ -599,6 +886,34 @@ export class Namespaces { options); } + /** + * Gets a list of IP Filter rules for a Namespace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listIpFilterRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listIpFilterRulesNext(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 + */ + listIpFilterRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listIpFilterRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listIpFilterRulesNextOperationSpec, + callback) as Promise; + } + /** * Gets all the available namespaces within the subscription, irrespective of the resource groups. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -655,6 +970,34 @@ export class Namespaces { callback) as Promise; } + /** + * Gets a list of VirtualNetwork rules for a Namespace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listVirtualNetworkRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listVirtualNetworkRulesNext(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 + */ + listVirtualNetworkRulesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVirtualNetworkRulesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listVirtualNetworkRulesNextOperationSpec, + callback) as Promise; + } + /** * Gets the authorization rules for a namespace. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -712,12 +1055,73 @@ export class Namespaces { } } -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const checkNameAvailabilityMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability", +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listIpFilterRulesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IpFilterRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateIpFilterRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.ipFilterRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.IpFilterRule, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IpFilterRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteIpFilterRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.ipFilterRuleName, Parameters.subscriptionId ], queryParameters: [ @@ -726,16 +1130,34 @@ const checkNameAvailabilityMethodOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.CheckNameAvailability, - required: true + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse } }, + serializer +}; + +const getIpFilterRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.ipFilterRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.IpFilterRule }, default: { bodyMapper: Mappers.ErrorResponse @@ -796,7 +1218,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -821,7 +1243,7 @@ const updateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -852,12 +1274,121 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; +const listVirtualNetworkRulesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/virtualnetworkrules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateVirtualNetworkRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.virtualNetworkRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VirtualNetworkRule, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteVirtualNetworkRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.virtualNetworkRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getVirtualNetworkRuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/virtualnetworkrules/{virtualNetworkRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.virtualNetworkRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listAuthorizationRulesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -882,7 +1413,7 @@ const createOrUpdateAuthorizationRuleOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.authorizationRuleName, Parameters.subscriptionId ], @@ -915,7 +1446,7 @@ const deleteAuthorizationRuleOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.authorizationRuleName, Parameters.subscriptionId ], @@ -940,7 +1471,7 @@ const getAuthorizationRuleOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.authorizationRuleName, Parameters.subscriptionId ], @@ -966,7 +1497,7 @@ const listKeysOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.authorizationRuleName, Parameters.subscriptionId ], @@ -992,7 +1523,7 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.authorizationRuleName, Parameters.subscriptionId ], @@ -1020,12 +1551,10 @@ const regenerateKeysOperationSpec: msRest.OperationSpec = { serializer }; -const migrateOperationSpec: msRest.OperationSpec = { +const checkNameAvailabilityMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrate", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability", urlParameters: [ - Parameters.resourceGroupName, - Parameters.namespaceName1, Parameters.subscriptionId ], queryParameters: [ @@ -1037,12 +1566,14 @@ const migrateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.SBNamespaceMigrate, + ...Mappers.CheckNameAvailability, required: true } }, responses: { - 200: {}, + 200: { + bodyMapper: Mappers.CheckNameAvailabilityResult + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -1055,7 +1586,7 @@ const createOrUpdateNetworkRuleSetOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -1087,7 +1618,7 @@ const getNetworkRuleSetOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -1112,7 +1643,7 @@ const listNetworkRuleSetsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -1132,12 +1663,42 @@ const listNetworkRuleSetsOperationSpec: msRest.OperationSpec = { serializer }; +const migrateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrate", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.namespaceName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SBNamespaceMigrate, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName0, + Parameters.namespaceName1, Parameters.subscriptionId ], queryParameters: [ @@ -1173,7 +1734,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.subscriptionId ], queryParameters: [ @@ -1193,6 +1754,30 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const listIpFilterRulesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IpFilterRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -1200,6 +1785,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1221,6 +1809,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1235,6 +1826,30 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { serializer }; +const listVirtualNetworkRulesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -1242,6 +1857,9 @@ const listAuthorizationRulesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1263,6 +1881,9 @@ const listNetworkRuleSetsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], 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 index 789f8b3b372e..4d1bafeca014 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/premiumMessagingRegionsOperations.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/premiumMessagingRegionsOperations.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 @@ -111,6 +110,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], 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..9a1fbc786c66 --- /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.namespaceName0, + 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.namespaceName0, + 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.namespaceName0, + 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.namespaceName0, + 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..3fcdeced9bf4 --- /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.namespaceName0, + 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..adeeb7788113 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.namespaceName0, + 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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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,12 +612,12 @@ 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, + Parameters.namespaceName0, Parameters.queueName, Parameters.authorizationRuleName, Parameters.subscriptionId @@ -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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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 index 5783f9c72e9c..01b651e0754a 100644 --- a/sdk/servicebus/arm-servicebus/src/operations/regions.ts +++ b/sdk/servicebus/arm-servicebus/src/operations/regions.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 @@ -116,6 +115,9 @@ const listBySkuNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/servicebus/arm-servicebus/src/operations/rules.ts b/sdk/servicebus/arm-servicebus/src/operations/rules.ts index 1b0507a95657..50f7024bc5f2 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, @@ -238,7 +237,7 @@ const listBySubscriptionsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionName, Parameters.subscriptionId @@ -267,7 +266,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionName, Parameters.ruleName, @@ -302,7 +301,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionName, Parameters.ruleName, @@ -329,7 +328,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionName, Parameters.ruleName, @@ -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..bdf4f503f842 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, @@ -222,7 +221,7 @@ const listByTopicOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionId ], @@ -250,7 +249,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionName, Parameters.subscriptionId @@ -284,7 +283,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionName, Parameters.subscriptionId @@ -310,7 +309,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.namespaceName1, + Parameters.namespaceName0, Parameters.topicName, Parameters.subscriptionName, Parameters.subscriptionId @@ -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..06c56a7015f7 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.namespaceName0, + 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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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,12 +612,12 @@ 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, + Parameters.namespaceName0, Parameters.topicName, Parameters.authorizationRuleName, Parameters.subscriptionId @@ -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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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.namespaceName0, 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..e8acf229488d 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,19 @@ import { ServiceBusManagementClientContext } from "./serviceBusManagementClientC class ServiceBusManagementClient extends ServiceBusManagementClientContext { // Operation groups - operations: operations.Operations; namespaces: operations.Namespaces; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; disasterRecoveryConfigs: operations.DisasterRecoveryConfigs; - migrationConfigs: operations.MigrationConfigs; queues: operations.Queues; topics: operations.Topics; + eventHubs: operations.EventHubs; + migrationConfigs: operations.MigrationConfigs; + premiumMessagingRegions: operations.PremiumMessagingRegionsOperations; + regions: operations.Regions; subscriptions: operations.Subscriptions; rules: operations.Rules; - regions: operations.Regions; - premiumMessagingRegions: operations.PremiumMessagingRegionsOperations; - eventHubs: operations.EventHubs; + operations: operations.Operations; /** * Initializes a new instance of the ServiceBusManagementClient class. @@ -44,17 +45,19 @@ 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.disasterRecoveryConfigs = new operations.DisasterRecoveryConfigs(this); - this.migrationConfigs = new operations.MigrationConfigs(this); this.queues = new operations.Queues(this); this.topics = new operations.Topics(this); + this.eventHubs = new operations.EventHubs(this); + this.migrationConfigs = new operations.MigrationConfigs(this); + this.premiumMessagingRegions = new operations.PremiumMessagingRegionsOperations(this); + this.regions = new operations.Regions(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.operations = new operations.Operations(this); } } diff --git a/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts b/sdk/servicebus/arm-servicebus/src/serviceBusManagementClientContext.ts index 44ffe2155450..f35d018e7eb9 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.0"; @@ -44,14 +43,14 @@ export class ServiceBusManagementClientContext extends msRestAzure.AzureServiceC if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2017-04-01'; + this.apiVersion = '2018-01-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -59,10 +58,10 @@ export class ServiceBusManagementClientContext extends msRestAzure.AzureServiceC this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }