Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR servicebus/resource-manager] ServiceBus: removed 'enableSubscriptionPartitioning' deprecated property from old API versions #2509

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/services/serviceBusManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ export interface MessageCountDetails {
* messaging entity. Possible values include: 'Active', 'Disabled',
* 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
* 'Renaming', 'Unknown'
* @member {boolean} [enableBatchedOperations] Value that indicates whether
* server-side batched operations are enabled.
* @member {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle interval
* after which the queue is automatically deleted. The minimum duration is 5
* minutes.
Expand Down Expand Up @@ -310,6 +312,7 @@ export interface SBQueue extends Resource {
duplicateDetectionHistoryTimeWindow?: moment.Duration;
maxDeliveryCount?: number;
status?: string;
enableBatchedOperations?: boolean;
autoDeleteOnIdle?: moment.Duration;
enablePartitioning?: boolean;
enableExpress?: boolean;
Expand Down
9 changes: 9 additions & 0 deletions lib/services/serviceBusManagement2/lib/models/sBQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class SBQueue extends models['Resource'] {
* a messaging entity. Possible values include: 'Active', 'Disabled',
* 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
* 'Renaming', 'Unknown'
* @member {boolean} [enableBatchedOperations] Value that indicates whether
* server-side batched operations are enabled.
* @member {moment.duration} [autoDeleteOnIdle] ISO 8061 timeSpan idle
* interval after which the queue is automatically deleted. The minimum
* duration is 5 minutes.
Expand Down Expand Up @@ -233,6 +235,13 @@ class SBQueue extends models['Resource'] {
allowedValues: [ 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown' ]
}
},
enableBatchedOperations: {
required: false,
serializedName: 'properties.enableBatchedOperations',
type: {
name: 'Boolean'
}
},
autoDeleteOnIdle: {
required: false,
serializedName: 'properties.autoDeleteOnIdle',
Expand Down
6 changes: 6 additions & 0 deletions lib/services/serviceBusManagement2/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2323,6 +2323,9 @@ export interface Queues {
* 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
* 'Renaming', 'Unknown'
*
* @param {boolean} [parameters.enableBatchedOperations] Value that indicates
* whether server-side batched operations are enabled.
*
* @param {moment.duration} [parameters.autoDeleteOnIdle] ISO 8061 timeSpan
* idle interval after which the queue is automatically deleted. The minimum
* duration is 5 minutes.
Expand Down Expand Up @@ -2402,6 +2405,9 @@ export interface Queues {
* 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
* 'Renaming', 'Unknown'
*
* @param {boolean} [parameters.enableBatchedOperations] Value that indicates
* whether server-side batched operations are enabled.
*
* @param {moment.duration} [parameters.autoDeleteOnIdle] ISO 8061 timeSpan
* idle interval after which the queue is automatically deleted. The minimum
* duration is 5 minutes.
Expand Down
9 changes: 9 additions & 0 deletions lib/services/serviceBusManagement2/lib/operations/queues.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ function _listByNamespace(resourceGroupName, namespaceName, options, callback) {
* 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
* 'Renaming', 'Unknown'
*
* @param {boolean} [parameters.enableBatchedOperations] Value that indicates
* whether server-side batched operations are enabled.
*
* @param {moment.duration} [parameters.autoDeleteOnIdle] ISO 8061 timeSpan
* idle interval after which the queue is automatically deleted. The minimum
* duration is 5 minutes.
Expand Down Expand Up @@ -2374,6 +2377,9 @@ class Queues {
* 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
* 'Renaming', 'Unknown'
*
* @param {boolean} [parameters.enableBatchedOperations] Value that indicates
* whether server-side batched operations are enabled.
*
* @param {moment.duration} [parameters.autoDeleteOnIdle] ISO 8061 timeSpan
* idle interval after which the queue is automatically deleted. The minimum
* duration is 5 minutes.
Expand Down Expand Up @@ -2465,6 +2471,9 @@ class Queues {
* 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
* 'Renaming', 'Unknown'
*
* @param {boolean} [parameters.enableBatchedOperations] Value that indicates
* whether server-side batched operations are enabled.
*
* @param {moment.duration} [parameters.autoDeleteOnIdle] ISO 8061 timeSpan
* idle interval after which the queue is automatically deleted. The minimum
* duration is 5 minutes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class ServiceBusManagementClient extends AzureServiceClient {
export default class ServiceBusManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the ServiceBusManagementClient class.
* @constructor
Expand Down Expand Up @@ -67,4 +68,4 @@ declare class ServiceBusManagementClient extends AzureServiceClient {
eventHubs: operations.EventHubs;
}

export = ServiceBusManagementClient;
export { ServiceBusManagementClient, models as ServiceBusManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ class ServiceBusManagementClient extends ServiceClient {
}

module.exports = ServiceBusManagementClient;
module.exports['default'] = ServiceBusManagementClient;
module.exports.ServiceBusManagementClient = ServiceBusManagementClient;
module.exports.ServiceBusManagementModels = models;