diff --git a/packages/@azure/arm-servicebus/README.md b/packages/@azure/arm-servicebus/README.md index 57c425a72b8f..9a28dc999a32 100644 --- a/packages/@azure/arm-servicebus/README.md +++ b/packages/@azure/arm-servicebus/README.md @@ -1,15 +1,18 @@ -# Azure ServiceBusManagementClient SDK for JavaScript -This package contains an isomorphic SDK for ServiceBusManagementClient. - -## Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +# Microsoft Azure SDK for isomorphic javascript - ServiceBusManagementClient +This project provides an isomorphic javascript package for accessing Azure. Right now it supports: +- node.js version 6.x.x or higher +- browser javascript ## How to Install + +- nodejs ``` npm install @azure/arm-servicebus ``` - +- browser +```html + +``` ## How to use @@ -33,8 +36,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -### browser - Authentication, client creation and list operations as an example written in JavaScript. -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. +### browser - Authentication, client creation and list operations as an example written in javascript. - index.html ```html @@ -42,29 +44,20 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to @azure/arm-servicebus sample - - - - - + + + diff --git a/packages/@azure/arm-servicebus/lib/models/index.ts b/packages/@azure/arm-servicebus/lib/models/index.ts index 762c6f437466..962b050e680e 100644 --- a/packages/@azure/arm-servicebus/lib/models/index.ts +++ b/packages/@azure/arm-servicebus/lib/models/index.ts @@ -102,46 +102,6 @@ export interface SBSku { capacity?: number; } -/** - * @interface - * An interface representing SBNamespaceProperties. - * Properties of the namespace. - * - */ -export interface SBNamespaceProperties { - /** - * @member {string} [provisioningState] Provisioning state of the namespace. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {Date} [createdAt] The time the namespace was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdAt?: Date; - /** - * @member {Date} [updatedAt] The time the namespace was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly updatedAt?: Date; - /** - * @member {string} [serviceBusEndpoint] Endpoint you can use to perform - * Service Bus operations. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serviceBusEndpoint?: string; - /** - * @member {string} [metricId] Identifier for Azure Insights metrics - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly metricId?: string; -} - /** * @interface * An interface representing SBNamespace. @@ -232,19 +192,6 @@ export interface SBNamespaceUpdateParameters extends ResourceNamespacePatch { readonly metricId?: string; } -/** - * @interface - * An interface representing SBAuthorizationRuleProperties. - * AuthorizationRule properties. - * - */ -export interface SBAuthorizationRuleProperties { - /** - * @member {AccessRights[]} rights The rights associated with the rule. - */ - rights: AccessRights[]; -} - /** * @interface * An interface representing SBAuthorizationRule. @@ -392,138 +339,6 @@ export interface MessageCountDetails { readonly transferDeadLetterMessageCount?: number; } -/** - * @interface - * An interface representing SBQueueProperties. - * The Queue Properties definition. - * - */ -export interface SBQueueProperties { - /** - * @member {MessageCountDetails} [countDetails] Message Count Details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly countDetails?: MessageCountDetails; - /** - * @member {Date} [createdAt] The exact time the message was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdAt?: Date; - /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly updatedAt?: Date; - /** - * @member {Date} [accessedAt] Last time a message was sent, or the last time - * there was a receive request to this queue. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly accessedAt?: Date; - /** - * @member {number} [sizeInBytes] The size of the queue, in bytes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly sizeInBytes?: number; - /** - * @member {number} [messageCount] The number of messages in the queue. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly messageCount?: number; - /** - * @member {string} [lockDuration] ISO 8601 timespan duration of a peek-lock; - * that is, the amount of time that the message is locked for other - * receivers. The maximum value for LockDuration is 5 minutes; the default - * value is 1 minute. - */ - lockDuration?: string; - /** - * @member {number} [maxSizeInMegabytes] The maximum size of the queue in - * megabytes, which is the size of memory allocated for the queue. Default is - * 1024. - */ - maxSizeInMegabytes?: number; - /** - * @member {boolean} [requiresDuplicateDetection] A value indicating if this - * queue requires duplicate detection. - */ - requiresDuplicateDetection?: boolean; - /** - * @member {boolean} [requiresSession] A value that indicates whether the - * queue supports the concept of sessions. - */ - requiresSession?: boolean; - /** - * @member {string} [defaultMessageTimeToLive] ISO 8601 default message - * timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is - * the default value used when TimeToLive is not set on a message itself. - */ - defaultMessageTimeToLive?: string; - /** - * @member {boolean} [deadLetteringOnMessageExpiration] A value that - * indicates whether this queue has dead letter support when a message - * expires. - */ - deadLetteringOnMessageExpiration?: boolean; - /** - * @member {string} [duplicateDetectionHistoryTimeWindow] ISO 8601 timeSpan - * structure that defines the duration of the duplicate detection history. - * The default value is 10 minutes. - */ - duplicateDetectionHistoryTimeWindow?: string; - /** - * @member {number} [maxDeliveryCount] The maximum delivery count. A message - * is automatically deadlettered after this number of deliveries. default - * value is 10. - */ - maxDeliveryCount?: number; - /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of a messaging entity. Possible values include: 'Active', - * 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', - * 'Deleting', 'Renaming', 'Unknown' - */ - status?: EntityStatus; - /** - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. - */ - enableBatchedOperations?: boolean; - /** - * @member {string} [autoDeleteOnIdle] ISO 8061 timeSpan idle interval after - * which the queue is automatically deleted. The minimum duration is 5 - * minutes. - */ - autoDeleteOnIdle?: string; - /** - * @member {boolean} [enablePartitioning] A value that indicates whether the - * queue is to be partitioned across multiple message brokers. - */ - enablePartitioning?: boolean; - /** - * @member {boolean} [enableExpress] A value that indicates whether Express - * Entities are enabled. An express queue holds a message in memory - * temporarily before writing it to persistent storage. - */ - enableExpress?: boolean; - /** - * @member {string} [forwardTo] Queue/Topic name to forward the messages - */ - forwardTo?: string; - /** - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to - * forward the Dead Letter message - */ - forwardDeadLetteredMessagesTo?: string; -} - /** * @interface * An interface representing SBQueue. @@ -657,110 +472,6 @@ export interface SBQueue extends Resource { forwardDeadLetteredMessagesTo?: string; } -/** - * @interface - * An interface representing SBTopicProperties. - * The Tpoic Properties definition. - * - */ -export interface SBTopicProperties { - /** - * @member {number} [sizeInBytes] Size of the topic, in bytes. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly sizeInBytes?: number; - /** - * @member {Date} [createdAt] Exact time the message was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdAt?: Date; - /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly updatedAt?: Date; - /** - * @member {Date} [accessedAt] Last time the message was sent, or a request - * was received, for this topic. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly accessedAt?: Date; - /** - * @member {number} [subscriptionCount] Number of subscriptions. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly subscriptionCount?: number; - /** - * @member {MessageCountDetails} [countDetails] Message count deatils - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly countDetails?: MessageCountDetails; - /** - * @member {string} [defaultMessageTimeToLive] ISO 8601 Default message - * timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is - * the default value used when TimeToLive is not set on a message itself. - */ - defaultMessageTimeToLive?: string; - /** - * @member {number} [maxSizeInMegabytes] Maximum size of the topic in - * megabytes, which is the size of the memory allocated for the topic. - * Default is 1024. - */ - maxSizeInMegabytes?: number; - /** - * @member {boolean} [requiresDuplicateDetection] Value indicating if this - * topic requires duplicate detection. - */ - requiresDuplicateDetection?: boolean; - /** - * @member {string} [duplicateDetectionHistoryTimeWindow] ISO8601 timespan - * structure that defines the duration of the duplicate detection history. - * The default value is 10 minutes. - */ - duplicateDetectionHistoryTimeWindow?: string; - /** - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. - */ - enableBatchedOperations?: boolean; - /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of a messaging entity. Possible values include: 'Active', - * 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', - * 'Deleting', 'Renaming', 'Unknown' - */ - status?: EntityStatus; - /** - * @member {boolean} [supportOrdering] Value that indicates whether the topic - * supports ordering. - */ - supportOrdering?: boolean; - /** - * @member {string} [autoDeleteOnIdle] ISO 8601 timespan idle interval after - * which the topic is automatically deleted. The minimum duration is 5 - * minutes. - */ - autoDeleteOnIdle?: string; - /** - * @member {boolean} [enablePartitioning] Value that indicates whether the - * topic to be partitioned across multiple message brokers is enabled. - */ - enablePartitioning?: boolean; - /** - * @member {boolean} [enableExpress] Value that indicates whether Express - * Entities are enabled. An express topic holds a message in memory - * temporarily before writing it to persistent storage. - */ - enableExpress?: boolean; -} - /** * @interface * An interface representing SBTopic. @@ -799,149 +510,42 @@ export interface SBTopic extends Resource { * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly subscriptionCount?: number; - /** - * @member {MessageCountDetails} [countDetails] Message count deatils - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly countDetails?: MessageCountDetails; - /** - * @member {string} [defaultMessageTimeToLive] ISO 8601 Default message - * timespan to live value. This is the duration after which the message - * expires, starting from when the message is sent to Service Bus. This is - * the default value used when TimeToLive is not set on a message itself. - */ - defaultMessageTimeToLive?: string; - /** - * @member {number} [maxSizeInMegabytes] Maximum size of the topic in - * megabytes, which is the size of the memory allocated for the topic. - * Default is 1024. - */ - maxSizeInMegabytes?: number; - /** - * @member {boolean} [requiresDuplicateDetection] Value indicating if this - * topic requires duplicate detection. - */ - requiresDuplicateDetection?: boolean; - /** - * @member {string} [duplicateDetectionHistoryTimeWindow] ISO8601 timespan - * structure that defines the duration of the duplicate detection history. - * The default value is 10 minutes. - */ - duplicateDetectionHistoryTimeWindow?: string; - /** - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. - */ - enableBatchedOperations?: boolean; - /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of a messaging entity. Possible values include: 'Active', - * 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', - * 'Deleting', 'Renaming', 'Unknown' - */ - status?: EntityStatus; - /** - * @member {boolean} [supportOrdering] Value that indicates whether the topic - * supports ordering. - */ - supportOrdering?: boolean; - /** - * @member {string} [autoDeleteOnIdle] ISO 8601 timespan idle interval after - * which the topic is automatically deleted. The minimum duration is 5 - * minutes. - */ - autoDeleteOnIdle?: string; - /** - * @member {boolean} [enablePartitioning] Value that indicates whether the - * topic to be partitioned across multiple message brokers is enabled. - */ - enablePartitioning?: boolean; - /** - * @member {boolean} [enableExpress] Value that indicates whether Express - * Entities are enabled. An express topic holds a message in memory - * temporarily before writing it to persistent storage. - */ - enableExpress?: boolean; -} - -/** - * @interface - * An interface representing SBSubscriptionProperties. - * Description of Subscription Resource. - * - */ -export interface SBSubscriptionProperties { - /** - * @member {number} [messageCount] Number of messages. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly messageCount?: number; - /** - * @member {Date} [createdAt] Exact time the message was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdAt?: Date; - /** - * @member {Date} [accessedAt] Last time there was a receive request to this - * subscription. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly accessedAt?: Date; - /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly updatedAt?: Date; - /** - * @member {MessageCountDetails} [countDetails] Message count details - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly countDetails?: MessageCountDetails; - /** - * @member {string} [lockDuration] ISO 8061 lock duration timespan for the - * subscription. The default value is 1 minute. - */ - lockDuration?: string; + readonly subscriptionCount?: number; /** - * @member {boolean} [requiresSession] Value indicating if a subscription - * supports the concept of sessions. + * @member {MessageCountDetails} [countDetails] Message count deatils + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - requiresSession?: boolean; + readonly countDetails?: MessageCountDetails; /** - * @member {string} [defaultMessageTimeToLive] ISO 8061 Default message + * @member {string} [defaultMessageTimeToLive] ISO 8601 Default message * timespan to live value. This is the duration after which the message * expires, starting from when the message is sent to Service Bus. This is * the default value used when TimeToLive is not set on a message itself. */ defaultMessageTimeToLive?: string; /** - * @member {boolean} [deadLetteringOnFilterEvaluationExceptions] Value that - * indicates whether a subscription has dead letter support on filter - * evaluation exceptions. + * @member {number} [maxSizeInMegabytes] Maximum size of the topic in + * megabytes, which is the size of the memory allocated for the topic. + * Default is 1024. */ - deadLetteringOnFilterEvaluationExceptions?: boolean; + maxSizeInMegabytes?: number; /** - * @member {boolean} [deadLetteringOnMessageExpiration] Value that indicates - * whether a subscription has dead letter support when a message expires. + * @member {boolean} [requiresDuplicateDetection] Value indicating if this + * topic requires duplicate detection. */ - deadLetteringOnMessageExpiration?: boolean; + requiresDuplicateDetection?: boolean; /** - * @member {string} [duplicateDetectionHistoryTimeWindow] ISO 8601 timeSpan + * @member {string} [duplicateDetectionHistoryTimeWindow] ISO8601 timespan * structure that defines the duration of the duplicate detection history. * The default value is 10 minutes. */ duplicateDetectionHistoryTimeWindow?: string; /** - * @member {number} [maxDeliveryCount] Number of maximum deliveries. + * @member {boolean} [enableBatchedOperations] Value that indicates whether + * server-side batched operations are enabled. */ - maxDeliveryCount?: number; + enableBatchedOperations?: boolean; /** * @member {EntityStatus} [status] Enumerates the possible values for the * status of a messaging entity. Possible values include: 'Active', @@ -950,25 +554,27 @@ export interface SBSubscriptionProperties { */ status?: EntityStatus; /** - * @member {boolean} [enableBatchedOperations] Value that indicates whether - * server-side batched operations are enabled. + * @member {boolean} [supportOrdering] Value that indicates whether the topic + * supports ordering. */ - enableBatchedOperations?: boolean; + supportOrdering?: boolean; /** - * @member {string} [autoDeleteOnIdle] ISO 8061 timeSpan idle interval after + * @member {string} [autoDeleteOnIdle] ISO 8601 timespan idle interval after * which the topic is automatically deleted. The minimum duration is 5 * minutes. */ autoDeleteOnIdle?: string; /** - * @member {string} [forwardTo] Queue/Topic name to forward the messages + * @member {boolean} [enablePartitioning] Value that indicates whether the + * topic to be partitioned across multiple message brokers is enabled. */ - forwardTo?: string; + enablePartitioning?: boolean; /** - * @member {string} [forwardDeadLetteredMessagesTo] Queue/Topic name to - * forward the Dead Letter message + * @member {boolean} [enableExpress] Value that indicates whether Express + * Entities are enabled. An express topic holds a message in memory + * temporarily before writing it to persistent storage. */ - forwardDeadLetteredMessagesTo?: string; + enableExpress?: boolean; } /** @@ -1291,35 +897,6 @@ export interface CorrelationFilter { requiresPreprocessing?: boolean; } -/** - * @interface - * An interface representing Ruleproperties. - * Description of Rule Resource. - * - */ -export interface Ruleproperties { - /** - * @member {Action} [action] Represents the filter actions which are allowed - * for the transformation of a message that have been matched by a filter - * expression. - */ - action?: Action; - /** - * @member {FilterType} [filterType] Filter type that is evaluated against a - * BrokeredMessage. Possible values include: 'SqlFilter', 'CorrelationFilter' - */ - filterType?: FilterType; - /** - * @member {SqlFilter} [sqlFilter] Properties of sqlFilter - */ - sqlFilter?: SqlFilter; - /** - * @member {CorrelationFilter} [correlationFilter] Properties of - * correlationFilter - */ - correlationFilter?: CorrelationFilter; -} - /** * @interface * An interface representing Rule. @@ -1394,33 +971,6 @@ export interface PremiumMessagingRegions extends ResourceNamespacePatch { properties?: PremiumMessagingRegionsProperties; } -/** - * @interface - * An interface representing DestinationProperties. - * Properties describing the storage account, blob container and acrchive name - * format for capture destination - * - */ -export interface DestinationProperties { - /** - * @member {string} [storageAccountResourceId] Resource id of the storage - * account to be used to create the blobs - */ - storageAccountResourceId?: string; - /** - * @member {string} [blobContainer] Blob container Name - */ - blobContainer?: string; - /** - * @member {string} [archiveNameFormat] Blob naming convention for archive, - * e.g. - * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. - * Here all the parameters (Namespace,EventHub .. etc) are mandatory - * irrespective of order - */ - archiveNameFormat?: string; -} - /** * @interface * An interface representing Destination. @@ -1488,56 +1038,6 @@ export interface CaptureDescription { destination?: Destination; } -/** - * @interface - * An interface representing EventhubProperties. - * Properties supplied to the Create Or Update Event Hub operation. - * - */ -export interface EventhubProperties { - /** - * @member {string[]} [partitionIds] Current number of shards on the Event - * Hub. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly partitionIds?: string[]; - /** - * @member {Date} [createdAt] Exact time the Event Hub was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdAt?: Date; - /** - * @member {Date} [updatedAt] The exact time the message was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly updatedAt?: Date; - /** - * @member {number} [messageRetentionInDays] Number of days to retain the - * events for this Event Hub, value should be 1 to 7 days - */ - messageRetentionInDays?: number; - /** - * @member {number} [partitionCount] Number of partitions created for the - * Event Hub, allowed values are from 1 to 32 partitions. - */ - partitionCount?: number; - /** - * @member {EntityStatus} [status] Enumerates the possible values for the - * status of the Event Hub. Possible values include: 'Active', 'Disabled', - * 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - * 'Renaming', 'Unknown' - */ - status?: EntityStatus; - /** - * @member {CaptureDescription} [captureDescription] Properties of capture - * description - */ - captureDescription?: CaptureDescription; -} - /** * @interface * An interface representing Eventhub. @@ -1589,50 +1089,6 @@ export interface Eventhub extends Resource { captureDescription?: CaptureDescription; } -/** - * @interface - * An interface representing ArmDisasterRecoveryProperties. - * Properties required to the Create Or Update Alias(Disaster Recovery - * configurations) - * - */ -export interface ArmDisasterRecoveryProperties { - /** - * @member {ProvisioningStateDR} [provisioningState] Provisioning state of - * the Alias(Disaster Recovery configuration) - possible values 'Accepted' or - * 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', - * 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: ProvisioningStateDR; - /** - * @member {number} [pendingReplicationOperationsCount] Number of entities - * pending to be replicated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly pendingReplicationOperationsCount?: number; - /** - * @member {string} [partnerNamespace] ARM Id of the Primary/Secondary - * eventhub namespace name, which is part of GEO DR pairning - */ - partnerNamespace?: string; - /** - * @member {string} [alternateName] Primary/Secondary eventhub namespace - * name, which is part of GEO DR pairning - */ - alternateName?: string; - /** - * @member {RoleDisasterRecovery} [role] role of namespace in GEO DR - - * possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. - * Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly role?: RoleDisasterRecovery; -} - /** * @interface * An interface representing ArmDisasterRecovery. @@ -1677,47 +1133,6 @@ export interface ArmDisasterRecovery extends Resource { readonly role?: RoleDisasterRecovery; } -/** - * @interface - * An interface representing MigrationConfigPropertiesProperties. - * Properties required to the Create Migration Configuration - * - */ -export interface MigrationConfigPropertiesProperties { - /** - * @member {string} [provisioningState] Provisioning state of Migration - * Configuration - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {number} [pendingReplicationOperationsCount] Number of entities - * pending to be replicated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly pendingReplicationOperationsCount?: number; - /** - * @member {string} targetNamespace Existing premium Namespace ARM Id name - * which has no entities, will be used for migration - */ - targetNamespace: string; - /** - * @member {string} postMigrationName Name to access Standard Namespace after - * migration - */ - postMigrationName: string; - /** - * @member {string} [migrationState] State in which Standard to Premium - * Migration is, possible values : Unknown, Reverting, Completing, - * Initiating, Syncing, Active - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly migrationState?: string; -} - /** * @interface * An interface representing MigrationConfigProperties. @@ -1760,28 +1175,6 @@ export interface MigrationConfigProperties extends Resource { readonly migrationState?: string; } -/** - * @interface - * An interface representing IpFilterRuleProperties. - * Properties supplied to create or update IpFilterRules - * - */ -export interface IpFilterRuleProperties { - /** - * @member {string} [ipMask] IP Mask - */ - ipMask?: string; - /** - * @member {IPAction} [action] The IP Filter Action. Possible values include: - * 'Accept', 'Reject' - */ - action?: IPAction; - /** - * @member {string} [filterName] IP Filter name - */ - filterName?: string; -} - /** * @interface * An interface representing IpFilterRule. @@ -1805,20 +1198,6 @@ export interface IpFilterRule extends Resource { filterName?: string; } -/** - * @interface - * An interface representing VirtualNetworkRuleProperties. - * Properties supplied to create or update VirtualNetworkRules - * - */ -export interface VirtualNetworkRuleProperties { - /** - * @member {string} [virtualNetworkSubnetId] Resource ID of Virtual Network - * Subnet - */ - virtualNetworkSubnetId?: string; -} - /** * @interface * An interface representing VirtualNetworkRule. diff --git a/packages/@azure/arm-servicebus/lib/models/mappers.ts b/packages/@azure/arm-servicebus/lib/models/mappers.ts index e5162b78d0e5..99e5274c3617 100644 --- a/packages/@azure/arm-servicebus/lib/models/mappers.ts +++ b/packages/@azure/arm-servicebus/lib/models/mappers.ts @@ -141,51 +141,6 @@ export const SBSku: msRest.CompositeMapper = { } }; -export const SBNamespaceProperties: msRest.CompositeMapper = { - serializedName: "SBNamespaceProperties", - type: { - name: "Composite", - className: "SBNamespaceProperties", - modelProperties: { - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - }, - createdAt: { - readOnly: true, - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - updatedAt: { - readOnly: true, - serializedName: "updatedAt", - type: { - name: "DateTime" - } - }, - serviceBusEndpoint: { - readOnly: true, - serializedName: "serviceBusEndpoint", - type: { - name: "String" - } - }, - metricId: { - readOnly: true, - serializedName: "metricId", - type: { - name: "String" - } - } - } - } -}; - export const SBNamespace: msRest.CompositeMapper = { serializedName: "SBNamespace", type: { @@ -292,33 +247,6 @@ export const SBNamespaceUpdateParameters: msRest.CompositeMapper = { } }; -export const SBAuthorizationRuleProperties: msRest.CompositeMapper = { - serializedName: "SBAuthorizationRule_properties", - type: { - name: "Composite", - className: "SBAuthorizationRuleProperties", - modelProperties: { - rights: { - required: true, - serializedName: "rights", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "Manage", - "Send", - "Listen" - ] - } - } - } - } - } - } -}; - export const SBAuthorizationRule: msRest.CompositeMapper = { serializedName: "SBAuthorizationRule", type: { @@ -505,160 +433,6 @@ export const MessageCountDetails: msRest.CompositeMapper = { } }; -export const SBQueueProperties: msRest.CompositeMapper = { - serializedName: "SBQueueProperties", - type: { - name: "Composite", - className: "SBQueueProperties", - modelProperties: { - countDetails: { - readOnly: true, - serializedName: "countDetails", - type: { - name: "Composite", - className: "MessageCountDetails" - } - }, - createdAt: { - readOnly: true, - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - updatedAt: { - readOnly: true, - serializedName: "updatedAt", - type: { - name: "DateTime" - } - }, - accessedAt: { - readOnly: true, - serializedName: "accessedAt", - type: { - name: "DateTime" - } - }, - sizeInBytes: { - readOnly: true, - serializedName: "sizeInBytes", - type: { - name: "Number" - } - }, - messageCount: { - readOnly: true, - serializedName: "messageCount", - type: { - name: "Number" - } - }, - lockDuration: { - serializedName: "lockDuration", - type: { - name: "TimeSpan" - } - }, - maxSizeInMegabytes: { - serializedName: "maxSizeInMegabytes", - type: { - name: "Number" - } - }, - requiresDuplicateDetection: { - serializedName: "requiresDuplicateDetection", - type: { - name: "Boolean" - } - }, - requiresSession: { - serializedName: "requiresSession", - type: { - name: "Boolean" - } - }, - defaultMessageTimeToLive: { - serializedName: "defaultMessageTimeToLive", - type: { - name: "TimeSpan" - } - }, - deadLetteringOnMessageExpiration: { - serializedName: "deadLetteringOnMessageExpiration", - type: { - name: "Boolean" - } - }, - duplicateDetectionHistoryTimeWindow: { - serializedName: "duplicateDetectionHistoryTimeWindow", - type: { - name: "TimeSpan" - } - }, - maxDeliveryCount: { - serializedName: "maxDeliveryCount", - type: { - name: "Number" - } - }, - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] - } - }, - enableBatchedOperations: { - serializedName: "enableBatchedOperations", - type: { - name: "Boolean" - } - }, - autoDeleteOnIdle: { - serializedName: "autoDeleteOnIdle", - type: { - name: "TimeSpan" - } - }, - enablePartitioning: { - serializedName: "enablePartitioning", - type: { - name: "Boolean" - } - }, - enableExpress: { - serializedName: "enableExpress", - type: { - name: "Boolean" - } - }, - forwardTo: { - serializedName: "forwardTo", - type: { - name: "String" - } - }, - forwardDeadLetteredMessagesTo: { - serializedName: "forwardDeadLetteredMessagesTo", - type: { - name: "String" - } - } - } - } -}; - export const SBQueue: msRest.CompositeMapper = { serializedName: "SBQueue", type: { @@ -814,130 +588,6 @@ export const SBQueue: msRest.CompositeMapper = { } }; -export const SBTopicProperties: msRest.CompositeMapper = { - serializedName: "SBTopicProperties", - type: { - name: "Composite", - className: "SBTopicProperties", - modelProperties: { - sizeInBytes: { - readOnly: true, - serializedName: "sizeInBytes", - type: { - name: "Number" - } - }, - createdAt: { - readOnly: true, - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - updatedAt: { - readOnly: true, - serializedName: "updatedAt", - type: { - name: "DateTime" - } - }, - accessedAt: { - readOnly: true, - serializedName: "accessedAt", - type: { - name: "DateTime" - } - }, - subscriptionCount: { - readOnly: true, - serializedName: "subscriptionCount", - type: { - name: "Number" - } - }, - countDetails: { - readOnly: true, - serializedName: "countDetails", - type: { - name: "Composite", - className: "MessageCountDetails" - } - }, - defaultMessageTimeToLive: { - serializedName: "defaultMessageTimeToLive", - type: { - name: "TimeSpan" - } - }, - maxSizeInMegabytes: { - serializedName: "maxSizeInMegabytes", - type: { - name: "Number" - } - }, - requiresDuplicateDetection: { - serializedName: "requiresDuplicateDetection", - type: { - name: "Boolean" - } - }, - duplicateDetectionHistoryTimeWindow: { - serializedName: "duplicateDetectionHistoryTimeWindow", - type: { - name: "TimeSpan" - } - }, - enableBatchedOperations: { - serializedName: "enableBatchedOperations", - type: { - name: "Boolean" - } - }, - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] - } - }, - supportOrdering: { - serializedName: "supportOrdering", - type: { - name: "Boolean" - } - }, - autoDeleteOnIdle: { - serializedName: "autoDeleteOnIdle", - type: { - name: "TimeSpan" - } - }, - enablePartitioning: { - serializedName: "enablePartitioning", - type: { - name: "Boolean" - } - }, - enableExpress: { - serializedName: "enableExpress", - type: { - name: "Boolean" - } - } - } - } -}; - export const SBTopic: msRest.CompositeMapper = { serializedName: "SBTopic", type: { @@ -1035,157 +685,28 @@ export const SBTopic: msRest.CompositeMapper = { ] } }, - supportOrdering: { - serializedName: "properties.supportOrdering", - type: { - name: "Boolean" - } - }, - autoDeleteOnIdle: { - serializedName: "properties.autoDeleteOnIdle", - type: { - name: "TimeSpan" - } - }, - enablePartitioning: { - serializedName: "properties.enablePartitioning", - type: { - name: "Boolean" - } - }, - enableExpress: { - serializedName: "properties.enableExpress", - type: { - name: "Boolean" - } - } - } - } -}; - -export const SBSubscriptionProperties: msRest.CompositeMapper = { - serializedName: "SBSubscriptionProperties", - type: { - name: "Composite", - className: "SBSubscriptionProperties", - modelProperties: { - messageCount: { - readOnly: true, - serializedName: "messageCount", - type: { - name: "Number" - } - }, - createdAt: { - readOnly: true, - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - accessedAt: { - readOnly: true, - serializedName: "accessedAt", - type: { - name: "DateTime" - } - }, - updatedAt: { - readOnly: true, - serializedName: "updatedAt", - type: { - name: "DateTime" - } - }, - countDetails: { - readOnly: true, - serializedName: "countDetails", - type: { - name: "Composite", - className: "MessageCountDetails" - } - }, - lockDuration: { - serializedName: "lockDuration", - type: { - name: "TimeSpan" - } - }, - requiresSession: { - serializedName: "requiresSession", - type: { - name: "Boolean" - } - }, - defaultMessageTimeToLive: { - serializedName: "defaultMessageTimeToLive", - type: { - name: "TimeSpan" - } - }, - deadLetteringOnFilterEvaluationExceptions: { - serializedName: "deadLetteringOnFilterEvaluationExceptions", - type: { - name: "Boolean" - } - }, - deadLetteringOnMessageExpiration: { - serializedName: "deadLetteringOnMessageExpiration", - type: { - name: "Boolean" - } - }, - duplicateDetectionHistoryTimeWindow: { - serializedName: "duplicateDetectionHistoryTimeWindow", - type: { - name: "TimeSpan" - } - }, - maxDeliveryCount: { - serializedName: "maxDeliveryCount", - type: { - name: "Number" - } - }, - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] - } - }, - enableBatchedOperations: { - serializedName: "enableBatchedOperations", + supportOrdering: { + serializedName: "properties.supportOrdering", type: { name: "Boolean" } }, autoDeleteOnIdle: { - serializedName: "autoDeleteOnIdle", + serializedName: "properties.autoDeleteOnIdle", type: { name: "TimeSpan" } }, - forwardTo: { - serializedName: "forwardTo", + enablePartitioning: { + serializedName: "properties.enablePartitioning", type: { - name: "String" + name: "Boolean" } }, - forwardDeadLetteredMessagesTo: { - serializedName: "forwardDeadLetteredMessagesTo", + enableExpress: { + serializedName: "properties.enableExpress", type: { - name: "String" + name: "Boolean" } } } @@ -1589,47 +1110,6 @@ export const CorrelationFilter: msRest.CompositeMapper = { } }; -export const Ruleproperties: msRest.CompositeMapper = { - serializedName: "Ruleproperties", - type: { - name: "Composite", - className: "Ruleproperties", - modelProperties: { - action: { - serializedName: "action", - type: { - name: "Composite", - className: "Action" - } - }, - filterType: { - serializedName: "filterType", - type: { - name: "Enum", - allowedValues: [ - "SqlFilter", - "CorrelationFilter" - ] - } - }, - sqlFilter: { - serializedName: "sqlFilter", - type: { - name: "Composite", - className: "SqlFilter" - } - }, - correlationFilter: { - serializedName: "correlationFilter", - type: { - name: "Composite", - className: "CorrelationFilter" - } - } - } - } -}; - export const Rule: msRest.CompositeMapper = { serializedName: "Rule", type: { @@ -1725,34 +1205,6 @@ export const PremiumMessagingRegions: msRest.CompositeMapper = { } }; -export const DestinationProperties: msRest.CompositeMapper = { - serializedName: "Destination_properties", - type: { - name: "Composite", - className: "DestinationProperties", - modelProperties: { - storageAccountResourceId: { - serializedName: "storageAccountResourceId", - type: { - name: "String" - } - }, - blobContainer: { - serializedName: "blobContainer", - type: { - name: "String" - } - }, - archiveNameFormat: { - serializedName: "archiveNameFormat", - type: { - name: "String" - } - } - } - } -}; - export const Destination: msRest.CompositeMapper = { serializedName: "Destination", type: { @@ -1840,86 +1292,6 @@ export const CaptureDescription: msRest.CompositeMapper = { } }; -export const EventhubProperties: msRest.CompositeMapper = { - serializedName: "Eventhub_properties", - type: { - name: "Composite", - className: "EventhubProperties", - modelProperties: { - partitionIds: { - readOnly: true, - serializedName: "partitionIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - createdAt: { - readOnly: true, - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - updatedAt: { - readOnly: true, - serializedName: "updatedAt", - type: { - name: "DateTime" - } - }, - messageRetentionInDays: { - serializedName: "messageRetentionInDays", - constraints: { - InclusiveMaximum: 7, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - }, - partitionCount: { - serializedName: "partitionCount", - constraints: { - InclusiveMaximum: 32, - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - }, - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ] - } - }, - captureDescription: { - serializedName: "captureDescription", - type: { - name: "Composite", - className: "CaptureDescription" - } - } - } - } -}; - export const Eventhub: msRest.CompositeMapper = { serializedName: "Eventhub", type: { @@ -2001,59 +1373,6 @@ export const Eventhub: msRest.CompositeMapper = { } }; -export const ArmDisasterRecoveryProperties: msRest.CompositeMapper = { - serializedName: "ArmDisasterRecovery_properties", - type: { - name: "Composite", - className: "ArmDisasterRecoveryProperties", - modelProperties: { - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Succeeded", - "Failed" - ] - } - }, - pendingReplicationOperationsCount: { - readOnly: true, - serializedName: "pendingReplicationOperationsCount", - type: { - name: "Number" - } - }, - partnerNamespace: { - serializedName: "partnerNamespace", - type: { - name: "String" - } - }, - alternateName: { - serializedName: "alternateName", - type: { - name: "String" - } - }, - role: { - readOnly: true, - serializedName: "role", - type: { - name: "Enum", - allowedValues: [ - "Primary", - "PrimaryNotReplicating", - "Secondary" - ] - } - } - } - } -}; - export const ArmDisasterRecovery: msRest.CompositeMapper = { serializedName: "ArmDisasterRecovery", type: { @@ -2108,51 +1427,6 @@ export const ArmDisasterRecovery: msRest.CompositeMapper = { } }; -export const MigrationConfigPropertiesProperties: msRest.CompositeMapper = { - serializedName: "MigrationConfigProperties_properties", - type: { - name: "Composite", - className: "MigrationConfigPropertiesProperties", - modelProperties: { - provisioningState: { - readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - }, - pendingReplicationOperationsCount: { - readOnly: true, - serializedName: "pendingReplicationOperationsCount", - type: { - name: "Number" - } - }, - targetNamespace: { - required: true, - serializedName: "targetNamespace", - type: { - name: "String" - } - }, - postMigrationName: { - required: true, - serializedName: "postMigrationName", - type: { - name: "String" - } - }, - migrationState: { - readOnly: true, - serializedName: "migrationState", - type: { - name: "String" - } - } - } - } -}; - export const MigrationConfigProperties: msRest.CompositeMapper = { serializedName: "MigrationConfigProperties", type: { @@ -2199,34 +1473,6 @@ export const MigrationConfigProperties: msRest.CompositeMapper = { } }; -export const IpFilterRuleProperties: msRest.CompositeMapper = { - serializedName: "IpFilterRule_properties", - type: { - name: "Composite", - className: "IpFilterRuleProperties", - modelProperties: { - ipMask: { - serializedName: "ipMask", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - filterName: { - serializedName: "filterName", - type: { - name: "String" - } - } - } - } -}; - export const IpFilterRule: msRest.CompositeMapper = { serializedName: "IpFilterRule", type: { @@ -2256,22 +1502,6 @@ export const IpFilterRule: msRest.CompositeMapper = { } }; -export const VirtualNetworkRuleProperties: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule_properties", - type: { - name: "Composite", - className: "VirtualNetworkRuleProperties", - modelProperties: { - virtualNetworkSubnetId: { - serializedName: "virtualNetworkSubnetId", - type: { - name: "String" - } - } - } - } -}; - export const VirtualNetworkRule: msRest.CompositeMapper = { serializedName: "VirtualNetworkRule", type: { diff --git a/packages/@azure/arm-servicebus/package.json b/packages/@azure/arm-servicebus/package.json index 8e8f67808e00..60400e615358 100644 --- a/packages/@azure/arm-servicebus/package.json +++ b/packages/@azure/arm-servicebus/package.json @@ -4,9 +4,7 @@ "description": "ServiceBusManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.0.0", "dependencies": { - "ms-rest-azure-js": "^1.0.172", - "ms-rest-js": "^1.0.443", - "tslib": "^1.9.3" + "ms-rest-azure-js": "~0.17.165" }, "keywords": [ "node", @@ -16,14 +14,14 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/arm-servicebus.js", + "main": "./cjs/serviceBusManagementClient.js", "module": "./esm/serviceBusManagementClient.js", - "types": "./esm/serviceBusManagementClient.d.ts", + "types": "./cjs/serviceBusManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "tslib": "^1.9.3", + "typescript": "^3.0.3", + "webpack": "^4.17.2", + "webpack-cli": "^3.1.0" }, "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { @@ -34,9 +32,7 @@ "url": "https://github.com/azure/azure-sdk-for-js/issues" }, "scripts": { - "build": "tsc && rollup -c rollup.config.js && npm run minify", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-servicebus.js.map'\" -o ./dist/arm-servicebus.min.js ./dist/arm-servicebus.js", + "build": "tsc && tsc -p tsconfig.esm.json && webpack", "prepare": "npm run build" - }, - "sideEffects": false + } } diff --git a/packages/@azure/arm-servicebus/tsconfig.json b/packages/@azure/arm-servicebus/tsconfig.json index f32d1664f320..d5b25971c029 100644 --- a/packages/@azure/arm-servicebus/tsconfig.json +++ b/packages/@azure/arm-servicebus/tsconfig.json @@ -1,9 +1,9 @@ { "compilerOptions": { - "module": "es6", + "module": "commonjs", "moduleResolution": "node", "strict": true, - "target": "es5", + "target": "es6", "sourceMap": true, "declarationMap": true, "esModuleInterop": true, @@ -11,8 +11,7 @@ "forceConsistentCasingInFileNames": true, "lib": ["es6"], "declaration": true, - "outDir": "./esm", - "importHelpers": true + "outDir": "./cjs" }, "include": ["./lib/**/*"], "exclude": ["node_modules"]