@azure/arm-servicebus 6.2.0-alpha.20250619.1 → 6.2.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +288 -137
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/browser/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/browser/operations/migrationConfigs.js +34 -46
- package/dist/browser/operations/migrationConfigs.js.map +1 -1
- package/dist/browser/operations/namespaces.js +111 -169
- package/dist/browser/operations/namespaces.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +34 -46
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/queues.js +45 -79
- package/dist/browser/operations/queues.js.map +1 -1
- package/dist/browser/operations/rules.js +23 -40
- package/dist/browser/operations/rules.js.map +1 -1
- package/dist/browser/operations/subscriptions.js +23 -40
- package/dist/browser/operations/subscriptions.js.map +1 -1
- package/dist/browser/operations/topics.js +45 -79
- package/dist/browser/operations/topics.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/serviceBusManagementClient.js +23 -5
- package/dist/browser/serviceBusManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +288 -137
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/disasterRecoveryConfigs.js +45 -78
- package/dist/commonjs/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/commonjs/operations/migrationConfigs.js +34 -45
- package/dist/commonjs/operations/migrationConfigs.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +111 -168
- package/dist/commonjs/operations/namespaces.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +34 -45
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/queues.js +45 -78
- package/dist/commonjs/operations/queues.js.map +1 -1
- package/dist/commonjs/operations/rules.js +23 -39
- package/dist/commonjs/operations/rules.js.map +1 -1
- package/dist/commonjs/operations/subscriptions.js +23 -39
- package/dist/commonjs/operations/subscriptions.js.map +1 -1
- package/dist/commonjs/operations/topics.js +45 -78
- package/dist/commonjs/operations/topics.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/serviceBusManagementClient.js +23 -5
- package/dist/commonjs/serviceBusManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +288 -137
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/esm/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/esm/operations/migrationConfigs.js +34 -46
- package/dist/esm/operations/migrationConfigs.js.map +1 -1
- package/dist/esm/operations/namespaces.js +111 -169
- package/dist/esm/operations/namespaces.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +34 -46
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/queues.js +45 -79
- package/dist/esm/operations/queues.js.map +1 -1
- package/dist/esm/operations/rules.js +23 -40
- package/dist/esm/operations/rules.js.map +1 -1
- package/dist/esm/operations/subscriptions.js +23 -40
- package/dist/esm/operations/subscriptions.js.map +1 -1
- package/dist/esm/operations/topics.js +45 -79
- package/dist/esm/operations/topics.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/serviceBusManagementClient.js +23 -5
- package/dist/esm/serviceBusManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +288 -137
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/react-native/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/react-native/operations/migrationConfigs.js +34 -46
- package/dist/react-native/operations/migrationConfigs.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +111 -169
- package/dist/react-native/operations/namespaces.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +34 -46
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/queues.js +45 -79
- package/dist/react-native/operations/queues.js.map +1 -1
- package/dist/react-native/operations/rules.js +23 -40
- package/dist/react-native/operations/rules.js.map +1 -1
- package/dist/react-native/operations/subscriptions.js +23 -40
- package/dist/react-native/operations/subscriptions.js.map +1 -1
- package/dist/react-native/operations/topics.js +45 -79
- package/dist/react-native/operations/topics.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/serviceBusManagementClient.js +23 -5
- package/dist/react-native/serviceBusManagementClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-servicebus.api.md → arm-servicebus-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/operations/rules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,gBAAwB,EACxB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,gBAAwB,EACxB,OAAgD,EAChD,QAAuB;;YAEvB,IAAI,MA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CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Rules } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceBusManagementClient } from \"../serviceBusManagementClient.js\";\nimport {\n Rule,\n RulesListBySubscriptionsNextOptionalParams,\n RulesListBySubscriptionsOptionalParams,\n RulesListBySubscriptionsResponse,\n RulesCreateOrUpdateOptionalParams,\n RulesCreateOrUpdateResponse,\n RulesDeleteOptionalParams,\n RulesGetOptionalParams,\n RulesGetResponse,\n RulesListBySubscriptionsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Rules operations. */\nexport class RulesImpl implements Rules {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Rules class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the rules within given topic-subscription\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n public listBySubscriptions(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams\n ): PagedAsyncIterableIterator<Rule> {\n const iter = this.listBySubscriptionsPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionsPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionsPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Rule[]> {\n let result: RulesListBySubscriptionsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptions(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionsNext(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionsPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams\n ): AsyncIterableIterator<Rule> {\n for await (const page of this.listBySubscriptionsPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the rules within given topic-subscription\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n private _listBySubscriptions(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams\n ): Promise<RulesListBySubscriptionsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n },\n listBySubscriptionsOperationSpec\n );\n }\n\n /**\n * Creates a new rule and updates an existing rule\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param ruleName The rule name.\n * @param parameters Parameters supplied to create a rule.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n ruleName: string,\n parameters: Rule,\n options?: RulesCreateOrUpdateOptionalParams\n ): Promise<RulesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n ruleName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes an existing rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param ruleName The rule name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n ruleName: string,\n options?: RulesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n ruleName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieves the description for the specified rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param ruleName The rule name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n ruleName: string,\n options?: RulesGetOptionalParams\n ): Promise<RulesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n ruleName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionsNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptions method.\n * @param options The options parameters.\n */\n private _listBySubscriptionsNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n nextLink: string,\n options?: RulesListBySubscriptionsNextOptionalParams\n ): Promise<RulesListBySubscriptionsNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n nextLink,\n options\n },\n listBySubscriptionsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName,\n Parameters.ruleName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName,\n Parameters.ruleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName,\n Parameters.ruleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/operations/rules.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IACH,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,gBAAwB,EACxB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAu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O,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Rules } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceBusManagementClient } from \"../serviceBusManagementClient.js\";\nimport {\n Rule,\n RulesListBySubscriptionsNextOptionalParams,\n RulesListBySubscriptionsOptionalParams,\n RulesListBySubscriptionsResponse,\n RulesCreateOrUpdateOptionalParams,\n RulesCreateOrUpdateResponse,\n RulesDeleteOptionalParams,\n RulesGetOptionalParams,\n RulesGetResponse,\n RulesListBySubscriptionsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Rules operations. */\nexport class RulesImpl implements Rules {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Rules class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the rules within given topic-subscription\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n public listBySubscriptions(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams\n ): PagedAsyncIterableIterator<Rule> {\n const iter = this.listBySubscriptionsPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionsPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionsPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Rule[]> {\n let result: RulesListBySubscriptionsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptions(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionsNext(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionsPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams\n ): AsyncIterableIterator<Rule> {\n for await (const page of this.listBySubscriptionsPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the rules within given topic-subscription\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n private _listBySubscriptions(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: RulesListBySubscriptionsOptionalParams\n ): Promise<RulesListBySubscriptionsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n },\n listBySubscriptionsOperationSpec\n );\n }\n\n /**\n * Creates a new rule and updates an existing rule\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param ruleName The rule name.\n * @param parameters Parameters supplied to create a rule.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n ruleName: string,\n parameters: Rule,\n options?: RulesCreateOrUpdateOptionalParams\n ): Promise<RulesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n ruleName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes an existing rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param ruleName The rule name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n ruleName: string,\n options?: RulesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n ruleName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieves the description for the specified rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param ruleName The rule name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n ruleName: string,\n options?: RulesGetOptionalParams\n ): Promise<RulesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n ruleName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionsNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptions method.\n * @param options The options parameters.\n */\n private _listBySubscriptionsNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n nextLink: string,\n options?: RulesListBySubscriptionsNextOptionalParams\n ): Promise<RulesListBySubscriptionsNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n nextLink,\n options\n },\n listBySubscriptionsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName,\n Parameters.ruleName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName,\n Parameters.ruleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Rule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName,\n Parameters.ruleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Subscriptions operations. */
|
|
18
18
|
class SubscriptionsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Subscriptions class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class SubscriptionsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByTopic(resourceGroupName, namespaceName, topicName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByTopicNext(resourceGroupName, namespaceName, topicName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listByTopicPagingAll(resourceGroupName, namespaceName, topicName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listByTopicPagingAll(resourceGroupName, namespaceName, topicName, options) {
|
|
70
|
+
for await (const page of this.listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* List all the subscriptions under a specified topic.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAChB,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,oBAAoB,CACpC,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,C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;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Subscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceBusManagementClient } from \"../serviceBusManagementClient.js\";\nimport {\n SBSubscription,\n SubscriptionsListByTopicNextOptionalParams,\n SubscriptionsListByTopicOptionalParams,\n SubscriptionsListByTopicResponse,\n SubscriptionsCreateOrUpdateOptionalParams,\n SubscriptionsCreateOrUpdateResponse,\n SubscriptionsDeleteOptionalParams,\n SubscriptionsGetOptionalParams,\n SubscriptionsGetResponse,\n SubscriptionsListByTopicNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Subscriptions operations. */\nexport class SubscriptionsImpl implements Subscriptions {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Subscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the subscriptions under a specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n public listByTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams\n ): PagedAsyncIterableIterator<SBSubscription> {\n const iter = this.listByTopicPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTopicPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBSubscription[]> {\n let result: SubscriptionsListByTopicResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTopic(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByTopicNext(\n resourceGroupName,\n namespaceName,\n topicName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByTopicPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams\n ): AsyncIterableIterator<SBSubscription> {\n for await (const page of this.listByTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the subscriptions under a specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n private _listByTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams\n ): Promise<SubscriptionsListByTopicResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n listByTopicOperationSpec\n );\n }\n\n /**\n * Creates a topic subscription.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param parameters Parameters supplied to create a subscription resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n parameters: SBSubscription,\n options?: SubscriptionsCreateOrUpdateOptionalParams\n ): Promise<SubscriptionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a subscription from the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: SubscriptionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a subscription description for the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: SubscriptionsGetOptionalParams\n ): Promise<SubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * ListByTopicNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param nextLink The nextLink from the previous successful call to the ListByTopic method.\n * @param options The options parameters.\n */\n private _listByTopicNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n nextLink: string,\n options?: SubscriptionsListByTopicNextOptionalParams\n ): Promise<SubscriptionsListByTopicNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, nextLink, options },\n listByTopicNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByTopicOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTopicNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/operations/subscriptions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IACX,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAChB,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,oBAAoB,CACpC,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,qBAAqB,CAC/B,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,qBAAqB,CAClC,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAAgD,EAChD,QAAuB;QAEvB,IAAI,MAAwC,CAAC;QAC7C,IAAI,iBAAiB,GAAG,QAAQ,EAAE,i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CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Subscriptions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceBusManagementClient } from \"../serviceBusManagementClient.js\";\nimport {\n SBSubscription,\n SubscriptionsListByTopicNextOptionalParams,\n SubscriptionsListByTopicOptionalParams,\n SubscriptionsListByTopicResponse,\n SubscriptionsCreateOrUpdateOptionalParams,\n SubscriptionsCreateOrUpdateResponse,\n SubscriptionsDeleteOptionalParams,\n SubscriptionsGetOptionalParams,\n SubscriptionsGetResponse,\n SubscriptionsListByTopicNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Subscriptions operations. */\nexport class SubscriptionsImpl implements Subscriptions {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Subscriptions class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the subscriptions under a specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n public listByTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams\n ): PagedAsyncIterableIterator<SBSubscription> {\n const iter = this.listByTopicPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTopicPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBSubscription[]> {\n let result: SubscriptionsListByTopicResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTopic(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByTopicNext(\n resourceGroupName,\n namespaceName,\n topicName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByTopicPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams\n ): AsyncIterableIterator<SBSubscription> {\n for await (const page of this.listByTopicPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the subscriptions under a specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n private _listByTopic(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: SubscriptionsListByTopicOptionalParams\n ): Promise<SubscriptionsListByTopicResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n listByTopicOperationSpec\n );\n }\n\n /**\n * Creates a topic subscription.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param parameters Parameters supplied to create a subscription resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n parameters: SBSubscription,\n options?: SubscriptionsCreateOrUpdateOptionalParams\n ): Promise<SubscriptionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a subscription from the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: SubscriptionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a subscription description for the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param subscriptionName The subscription name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n subscriptionName: string,\n options?: SubscriptionsGetOptionalParams\n ): Promise<SubscriptionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n subscriptionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * ListByTopicNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param nextLink The nextLink from the previous successful call to the ListByTopic method.\n * @param options The options parameters.\n */\n private _listByTopicNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n nextLink: string,\n options?: SubscriptionsListByTopicNextOptionalParams\n ): Promise<SubscriptionsListByTopicNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, nextLink, options },\n listByTopicNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByTopicOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscription\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName,\n Parameters.subscriptionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTopicNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBSubscriptionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Topics operations. */
|
|
18
18
|
class TopicsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Topics class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class TopicsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listAuthorizationRules(resourceGroupName, namespaceName, topicName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listAuthorizationRulesNext(resourceGroupName, namespaceName, topicName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, topicName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, topicName, options) {
|
|
70
|
+
for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Gets all the topics in a namespace.
|
|
@@ -103,52 +87,35 @@ class TopicsImpl {
|
|
|
103
87
|
return this;
|
|
104
88
|
},
|
|
105
89
|
byPage: (settings) => {
|
|
106
|
-
if (settings
|
|
90
|
+
if (settings?.maxPageSize) {
|
|
107
91
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
108
92
|
}
|
|
109
93
|
return this.listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings);
|
|
110
94
|
}
|
|
111
95
|
};
|
|
112
96
|
}
|
|
113
|
-
listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
});
|
|
97
|
+
async *listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
98
|
+
let result;
|
|
99
|
+
let continuationToken = settings?.continuationToken;
|
|
100
|
+
if (!continuationToken) {
|
|
101
|
+
result = await this._listByNamespace(resourceGroupName, namespaceName, options);
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
107
|
+
while (continuationToken) {
|
|
108
|
+
result = await this._listByNamespaceNext(resourceGroupName, namespaceName, continuationToken, options);
|
|
109
|
+
continuationToken = result.nextLink;
|
|
110
|
+
let page = result.value || [];
|
|
111
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
132
114
|
}
|
|
133
|
-
listByNamespacePagingAll(resourceGroupName, namespaceName, options) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByNamespacePagingPage(resourceGroupName, namespaceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
138
|
-
_c = _f.value;
|
|
139
|
-
_d = false;
|
|
140
|
-
const page = _c;
|
|
141
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
145
|
-
finally {
|
|
146
|
-
try {
|
|
147
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
148
|
-
}
|
|
149
|
-
finally { if (e_2) throw e_2.error; }
|
|
150
|
-
}
|
|
151
|
-
});
|
|
115
|
+
async *listByNamespacePagingAll(resourceGroupName, namespaceName, options) {
|
|
116
|
+
for await (const page of this.listByNamespacePagingPage(resourceGroupName, namespaceName, options)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
152
119
|
}
|
|
153
120
|
/**
|
|
154
121
|
* Gets authorization rules for a topic.
|
|
@@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CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Topics } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceBusManagementClient } from \"../serviceBusManagementClient.js\";\nimport {\n SBAuthorizationRule,\n TopicsListAuthorizationRulesNextOptionalParams,\n TopicsListAuthorizationRulesOptionalParams,\n TopicsListAuthorizationRulesResponse,\n SBTopic,\n TopicsListByNamespaceNextOptionalParams,\n TopicsListByNamespaceOptionalParams,\n TopicsListByNamespaceResponse,\n TopicsCreateOrUpdateAuthorizationRuleOptionalParams,\n TopicsCreateOrUpdateAuthorizationRuleResponse,\n TopicsGetAuthorizationRuleOptionalParams,\n TopicsGetAuthorizationRuleResponse,\n TopicsDeleteAuthorizationRuleOptionalParams,\n TopicsListKeysOptionalParams,\n TopicsListKeysResponse,\n RegenerateAccessKeyParameters,\n TopicsRegenerateKeysOptionalParams,\n TopicsRegenerateKeysResponse,\n TopicsCreateOrUpdateOptionalParams,\n TopicsCreateOrUpdateResponse,\n TopicsDeleteOptionalParams,\n TopicsGetOptionalParams,\n TopicsGetResponse,\n TopicsListAuthorizationRulesNextResponse,\n TopicsListByNamespaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Topics operations. */\nexport class TopicsImpl implements Topics {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Topics class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets authorization rules for a topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n public listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams\n ): PagedAsyncIterableIterator<SBAuthorizationRule> {\n const iter = this.listAuthorizationRulesPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAuthorizationRulesPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBAuthorizationRule[]> {\n let result: TopicsListAuthorizationRulesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAuthorizationRules(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAuthorizationRulesNext(\n resourceGroupName,\n namespaceName,\n topicName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAuthorizationRulesPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams\n ): AsyncIterableIterator<SBAuthorizationRule> {\n for await (const page of this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the topics in a namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param options The options parameters.\n */\n public listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams\n ): PagedAsyncIterableIterator<SBTopic> {\n const iter = this.listByNamespacePagingAll(\n resourceGroupName,\n namespaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByNamespacePagingPage(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBTopic[]> {\n let result: TopicsListByNamespaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByNamespace(\n resourceGroupName,\n namespaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByNamespaceNext(\n resourceGroupName,\n namespaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByNamespacePagingAll(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams\n ): AsyncIterableIterator<SBTopic> {\n for await (const page of this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets authorization rules for a topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n private _listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams\n ): Promise<TopicsListAuthorizationRulesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n listAuthorizationRulesOperationSpec\n );\n }\n\n /**\n * Creates an authorization rule for the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param parameters The shared access authorization rule.\n * @param options The options parameters.\n */\n createOrUpdateAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n parameters: SBAuthorizationRule,\n options?: TopicsCreateOrUpdateAuthorizationRuleOptionalParams\n ): Promise<TopicsCreateOrUpdateAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n parameters,\n options\n },\n createOrUpdateAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Returns the specified authorization rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n getAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n options?: TopicsGetAuthorizationRuleOptionalParams\n ): Promise<TopicsGetAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n options\n },\n getAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Deletes a topic authorization rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n deleteAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n options?: TopicsDeleteAuthorizationRuleOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n options\n },\n deleteAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Gets the primary and secondary connection strings for the topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n options?: TopicsListKeysOptionalParams\n ): Promise<TopicsListKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n options\n },\n listKeysOperationSpec\n );\n }\n\n /**\n * Regenerates primary or secondary connection strings for the topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param parameters Parameters supplied to regenerate the authorization rule.\n * @param options The options parameters.\n */\n regenerateKeys(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n parameters: RegenerateAccessKeyParameters,\n options?: TopicsRegenerateKeysOptionalParams\n ): Promise<TopicsRegenerateKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n parameters,\n options\n },\n regenerateKeysOperationSpec\n );\n }\n\n /**\n * Gets all the topics in a namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param options The options parameters.\n */\n private _listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams\n ): Promise<TopicsListByNamespaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listByNamespaceOperationSpec\n );\n }\n\n /**\n * Creates a topic in the specified namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param parameters Parameters supplied to create a topic resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n parameters: SBTopic,\n options?: TopicsCreateOrUpdateOptionalParams\n ): Promise<TopicsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a topic from the specified namespace and resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a description for the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsGetOptionalParams\n ): Promise<TopicsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListAuthorizationRulesNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.\n * @param options The options parameters.\n */\n private _listAuthorizationRulesNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n nextLink: string,\n options?: TopicsListAuthorizationRulesNextOptionalParams\n ): Promise<TopicsListAuthorizationRulesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, nextLink, options },\n listAuthorizationRulesNextOperationSpec\n );\n }\n\n /**\n * ListByNamespaceNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param nextLink The nextLink from the previous successful call to the ListByNamespace method.\n * @param options The options parameters.\n */\n private _listByNamespaceNext(\n resourceGroupName: string,\n namespaceName: string,\n nextLink: string,\n options?: TopicsListByNamespaceNextOptionalParams\n ): Promise<TopicsListByNamespaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, nextLink, options },\n listByNamespaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAuthorizationRulesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst regenerateKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/regenerateKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByNamespaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopicListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopic\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopic\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByNamespaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopicListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"topics.js","sourceRoot":"","sources":["../../../src/operations/topics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA8BtD,4CAA4C;AAC5C,0CAA0C;AAC1C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AAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Topics } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceBusManagementClient } from \"../serviceBusManagementClient.js\";\nimport {\n SBAuthorizationRule,\n TopicsListAuthorizationRulesNextOptionalParams,\n TopicsListAuthorizationRulesOptionalParams,\n TopicsListAuthorizationRulesResponse,\n SBTopic,\n TopicsListByNamespaceNextOptionalParams,\n TopicsListByNamespaceOptionalParams,\n TopicsListByNamespaceResponse,\n TopicsCreateOrUpdateAuthorizationRuleOptionalParams,\n TopicsCreateOrUpdateAuthorizationRuleResponse,\n TopicsGetAuthorizationRuleOptionalParams,\n TopicsGetAuthorizationRuleResponse,\n TopicsDeleteAuthorizationRuleOptionalParams,\n TopicsListKeysOptionalParams,\n TopicsListKeysResponse,\n RegenerateAccessKeyParameters,\n TopicsRegenerateKeysOptionalParams,\n TopicsRegenerateKeysResponse,\n TopicsCreateOrUpdateOptionalParams,\n TopicsCreateOrUpdateResponse,\n TopicsDeleteOptionalParams,\n TopicsGetOptionalParams,\n TopicsGetResponse,\n TopicsListAuthorizationRulesNextResponse,\n TopicsListByNamespaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Topics operations. */\nexport class TopicsImpl implements Topics {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Topics class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets authorization rules for a topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n public listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams\n ): PagedAsyncIterableIterator<SBAuthorizationRule> {\n const iter = this.listAuthorizationRulesPagingAll(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAuthorizationRulesPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBAuthorizationRule[]> {\n let result: TopicsListAuthorizationRulesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAuthorizationRules(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listAuthorizationRulesNext(\n resourceGroupName,\n namespaceName,\n topicName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listAuthorizationRulesPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams\n ): AsyncIterableIterator<SBAuthorizationRule> {\n for await (const page of this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n topicName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all the topics in a namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param options The options parameters.\n */\n public listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams\n ): PagedAsyncIterableIterator<SBTopic> {\n const iter = this.listByNamespacePagingAll(\n resourceGroupName,\n namespaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByNamespacePagingPage(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBTopic[]> {\n let result: TopicsListByNamespaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByNamespace(\n resourceGroupName,\n namespaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByNamespaceNext(\n resourceGroupName,\n namespaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByNamespacePagingAll(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams\n ): AsyncIterableIterator<SBTopic> {\n for await (const page of this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets authorization rules for a topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n private _listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsListAuthorizationRulesOptionalParams\n ): Promise<TopicsListAuthorizationRulesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n listAuthorizationRulesOperationSpec\n );\n }\n\n /**\n * Creates an authorization rule for the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param parameters The shared access authorization rule.\n * @param options The options parameters.\n */\n createOrUpdateAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n parameters: SBAuthorizationRule,\n options?: TopicsCreateOrUpdateAuthorizationRuleOptionalParams\n ): Promise<TopicsCreateOrUpdateAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n parameters,\n options\n },\n createOrUpdateAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Returns the specified authorization rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n getAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n options?: TopicsGetAuthorizationRuleOptionalParams\n ): Promise<TopicsGetAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n options\n },\n getAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Deletes a topic authorization rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n deleteAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n options?: TopicsDeleteAuthorizationRuleOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n options\n },\n deleteAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Gets the primary and secondary connection strings for the topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n options?: TopicsListKeysOptionalParams\n ): Promise<TopicsListKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n options\n },\n listKeysOperationSpec\n );\n }\n\n /**\n * Regenerates primary or secondary connection strings for the topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param authorizationRuleName The authorization rule name.\n * @param parameters Parameters supplied to regenerate the authorization rule.\n * @param options The options parameters.\n */\n regenerateKeys(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n authorizationRuleName: string,\n parameters: RegenerateAccessKeyParameters,\n options?: TopicsRegenerateKeysOptionalParams\n ): Promise<TopicsRegenerateKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n topicName,\n authorizationRuleName,\n parameters,\n options\n },\n regenerateKeysOperationSpec\n );\n }\n\n /**\n * Gets all the topics in a namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param options The options parameters.\n */\n private _listByNamespace(\n resourceGroupName: string,\n namespaceName: string,\n options?: TopicsListByNamespaceOptionalParams\n ): Promise<TopicsListByNamespaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listByNamespaceOperationSpec\n );\n }\n\n /**\n * Creates a topic in the specified namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param parameters Parameters supplied to create a topic resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n parameters: SBTopic,\n options?: TopicsCreateOrUpdateOptionalParams\n ): Promise<TopicsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a topic from the specified namespace and resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a description for the specified topic.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n options?: TopicsGetOptionalParams\n ): Promise<TopicsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListAuthorizationRulesNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param topicName The topic name.\n * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.\n * @param options The options parameters.\n */\n private _listAuthorizationRulesNext(\n resourceGroupName: string,\n namespaceName: string,\n topicName: string,\n nextLink: string,\n options?: TopicsListAuthorizationRulesNextOptionalParams\n ): Promise<TopicsListAuthorizationRulesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, topicName, nextLink, options },\n listAuthorizationRulesNextOperationSpec\n );\n }\n\n /**\n * ListByNamespaceNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param nextLink The nextLink from the previous successful call to the ListByNamespace method.\n * @param options The options parameters.\n */\n private _listByNamespaceNext(\n resourceGroupName: string,\n namespaceName: string,\n nextLink: string,\n options?: TopicsListByNamespaceNextOptionalParams\n ): Promise<TopicsListByNamespaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, nextLink, options },\n listByNamespaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listAuthorizationRulesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRule\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst regenerateKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/regenerateKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessKeys\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.authorizationRuleName,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByNamespaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopicListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopic\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopic\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBAuthorizationRuleListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink,\n Parameters.topicName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByNamespaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBTopicListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|