@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.
Files changed (115) hide show
  1. package/dist/browser/lroImpl.js +11 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +288 -137
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/disasterRecoveryConfigs.js +45 -79
  6. package/dist/browser/operations/disasterRecoveryConfigs.js.map +1 -1
  7. package/dist/browser/operations/migrationConfigs.js +34 -46
  8. package/dist/browser/operations/migrationConfigs.js.map +1 -1
  9. package/dist/browser/operations/namespaces.js +111 -169
  10. package/dist/browser/operations/namespaces.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/privateEndpointConnections.js +34 -46
  14. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  15. package/dist/browser/operations/privateLinkResources.js +1 -0
  16. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  17. package/dist/browser/operations/queues.js +45 -79
  18. package/dist/browser/operations/queues.js.map +1 -1
  19. package/dist/browser/operations/rules.js +23 -40
  20. package/dist/browser/operations/rules.js.map +1 -1
  21. package/dist/browser/operations/subscriptions.js +23 -40
  22. package/dist/browser/operations/subscriptions.js.map +1 -1
  23. package/dist/browser/operations/topics.js +45 -79
  24. package/dist/browser/operations/topics.js.map +1 -1
  25. package/dist/browser/pagingHelper.js +2 -4
  26. package/dist/browser/pagingHelper.js.map +1 -1
  27. package/dist/browser/serviceBusManagementClient.js +23 -5
  28. package/dist/browser/serviceBusManagementClient.js.map +1 -1
  29. package/dist/commonjs/lroImpl.js +11 -3
  30. package/dist/commonjs/lroImpl.js.map +1 -1
  31. package/dist/commonjs/models/mappers.js +288 -137
  32. package/dist/commonjs/models/mappers.js.map +1 -1
  33. package/dist/commonjs/operations/disasterRecoveryConfigs.js +45 -78
  34. package/dist/commonjs/operations/disasterRecoveryConfigs.js.map +1 -1
  35. package/dist/commonjs/operations/migrationConfigs.js +34 -45
  36. package/dist/commonjs/operations/migrationConfigs.js.map +1 -1
  37. package/dist/commonjs/operations/namespaces.js +111 -168
  38. package/dist/commonjs/operations/namespaces.js.map +1 -1
  39. package/dist/commonjs/operations/operations.js +23 -39
  40. package/dist/commonjs/operations/operations.js.map +1 -1
  41. package/dist/commonjs/operations/privateEndpointConnections.js +34 -45
  42. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  43. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  44. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  45. package/dist/commonjs/operations/queues.js +45 -78
  46. package/dist/commonjs/operations/queues.js.map +1 -1
  47. package/dist/commonjs/operations/rules.js +23 -39
  48. package/dist/commonjs/operations/rules.js.map +1 -1
  49. package/dist/commonjs/operations/subscriptions.js +23 -39
  50. package/dist/commonjs/operations/subscriptions.js.map +1 -1
  51. package/dist/commonjs/operations/topics.js +45 -78
  52. package/dist/commonjs/operations/topics.js.map +1 -1
  53. package/dist/commonjs/pagingHelper.js +2 -4
  54. package/dist/commonjs/pagingHelper.js.map +1 -1
  55. package/dist/commonjs/serviceBusManagementClient.js +23 -5
  56. package/dist/commonjs/serviceBusManagementClient.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +11 -11
  58. package/dist/esm/lroImpl.js +11 -3
  59. package/dist/esm/lroImpl.js.map +1 -1
  60. package/dist/esm/models/mappers.js +288 -137
  61. package/dist/esm/models/mappers.js.map +1 -1
  62. package/dist/esm/operations/disasterRecoveryConfigs.js +45 -79
  63. package/dist/esm/operations/disasterRecoveryConfigs.js.map +1 -1
  64. package/dist/esm/operations/migrationConfigs.js +34 -46
  65. package/dist/esm/operations/migrationConfigs.js.map +1 -1
  66. package/dist/esm/operations/namespaces.js +111 -169
  67. package/dist/esm/operations/namespaces.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/privateEndpointConnections.js +34 -46
  71. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  72. package/dist/esm/operations/privateLinkResources.js +1 -0
  73. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  74. package/dist/esm/operations/queues.js +45 -79
  75. package/dist/esm/operations/queues.js.map +1 -1
  76. package/dist/esm/operations/rules.js +23 -40
  77. package/dist/esm/operations/rules.js.map +1 -1
  78. package/dist/esm/operations/subscriptions.js +23 -40
  79. package/dist/esm/operations/subscriptions.js.map +1 -1
  80. package/dist/esm/operations/topics.js +45 -79
  81. package/dist/esm/operations/topics.js.map +1 -1
  82. package/dist/esm/pagingHelper.js +2 -4
  83. package/dist/esm/pagingHelper.js.map +1 -1
  84. package/dist/esm/serviceBusManagementClient.js +23 -5
  85. package/dist/esm/serviceBusManagementClient.js.map +1 -1
  86. package/dist/react-native/lroImpl.js +11 -3
  87. package/dist/react-native/lroImpl.js.map +1 -1
  88. package/dist/react-native/models/mappers.js +288 -137
  89. package/dist/react-native/models/mappers.js.map +1 -1
  90. package/dist/react-native/operations/disasterRecoveryConfigs.js +45 -79
  91. package/dist/react-native/operations/disasterRecoveryConfigs.js.map +1 -1
  92. package/dist/react-native/operations/migrationConfigs.js +34 -46
  93. package/dist/react-native/operations/migrationConfigs.js.map +1 -1
  94. package/dist/react-native/operations/namespaces.js +111 -169
  95. package/dist/react-native/operations/namespaces.js.map +1 -1
  96. package/dist/react-native/operations/operations.js +23 -40
  97. package/dist/react-native/operations/operations.js.map +1 -1
  98. package/dist/react-native/operations/privateEndpointConnections.js +34 -46
  99. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  100. package/dist/react-native/operations/privateLinkResources.js +1 -0
  101. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  102. package/dist/react-native/operations/queues.js +45 -79
  103. package/dist/react-native/operations/queues.js.map +1 -1
  104. package/dist/react-native/operations/rules.js +23 -40
  105. package/dist/react-native/operations/rules.js.map +1 -1
  106. package/dist/react-native/operations/subscriptions.js +23 -40
  107. package/dist/react-native/operations/subscriptions.js.map +1 -1
  108. package/dist/react-native/operations/topics.js +45 -79
  109. package/dist/react-native/operations/topics.js.map +1 -1
  110. package/dist/react-native/pagingHelper.js +2 -4
  111. package/dist/react-native/pagingHelper.js.map +1 -1
  112. package/dist/react-native/serviceBusManagementClient.js +23 -5
  113. package/dist/react-native/serviceBusManagementClient.js.map +1 -1
  114. package/package.json +2 -2
  115. /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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,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,EA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EACF,mMAAmM;IACrM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,IAAI;SACzB;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,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"]}
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../src/operations/rules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAC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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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Subscriptions operations. */
15
14
  export class SubscriptionsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Subscriptions class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class SubscriptionsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings);
44
44
  }
45
45
  };
46
46
  }
47
- listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listByTopicPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._listByTopic(resourceGroupName, namespaceName, topicName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listByTopicNext(resourceGroupName, namespaceName, topicName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._listByTopic(resourceGroupName, namespaceName, topicName, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listByTopicNext(resourceGroupName, namespaceName, topicName, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listByTopicPagingAll(resourceGroupName, namespaceName, topicName, options) {
68
- return __asyncGenerator(this, arguments, function* listByTopicPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listByTopicPagingAll(resourceGroupName, namespaceName, topicName, options) {
66
+ for await (const page of this.listByTopicPagingPage(resourceGroupName, namespaceName, topicName, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * 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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,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iBAAiB;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,gBAAgB,GAA6B;IACjD,IAAI,EACF,kLAAkL;IACpL,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,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;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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,iDAAiD;AACjD,MAAM,OAAO,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,E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ChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Topics operations. */
15
14
  export class TopicsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Topics class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class TopicsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings);
44
44
  }
45
45
  };
46
46
  }
47
- listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._listAuthorizationRules(resourceGroupName, namespaceName, topicName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listAuthorizationRulesNext(resourceGroupName, namespaceName, topicName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._listAuthorizationRules(resourceGroupName, namespaceName, topicName, options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listAuthorizationRulesNext(resourceGroupName, namespaceName, topicName, continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, topicName, options) {
68
- return __asyncGenerator(this, arguments, function* listAuthorizationRulesPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, topicName, options) {
66
+ for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, topicName, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * Gets all the topics in a namespace.
@@ -100,52 +83,35 @@ export class TopicsImpl {
100
83
  return this;
101
84
  },
102
85
  byPage: (settings) => {
103
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
86
+ if (settings?.maxPageSize) {
104
87
  throw new Error("maxPageSize is not supported by this operation.");
105
88
  }
106
89
  return this.listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings);
107
90
  }
108
91
  };
109
92
  }
110
- listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
111
- return __asyncGenerator(this, arguments, function* listByNamespacePagingPage_1() {
112
- let result;
113
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
114
- if (!continuationToken) {
115
- result = yield __await(this._listByNamespace(resourceGroupName, namespaceName, options));
116
- let page = result.value || [];
117
- continuationToken = result.nextLink;
118
- setContinuationToken(page, continuationToken);
119
- yield yield __await(page);
120
- }
121
- while (continuationToken) {
122
- result = yield __await(this._listByNamespaceNext(resourceGroupName, namespaceName, continuationToken, options));
123
- continuationToken = result.nextLink;
124
- let page = result.value || [];
125
- setContinuationToken(page, continuationToken);
126
- yield yield __await(page);
127
- }
128
- });
93
+ async *listByNamespacePagingPage(resourceGroupName, namespaceName, options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._listByNamespace(resourceGroupName, namespaceName, options);
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ setContinuationToken(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listByNamespaceNext(resourceGroupName, namespaceName, continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ let page = result.value || [];
107
+ setContinuationToken(page, continuationToken);
108
+ yield page;
109
+ }
129
110
  }
130
- listByNamespacePagingAll(resourceGroupName, namespaceName, options) {
131
- return __asyncGenerator(this, arguments, function* listByNamespacePagingAll_1() {
132
- var _a, e_2, _b, _c;
133
- try {
134
- for (var _d = true, _e = __asyncValues(this.listByNamespacePagingPage(resourceGroupName, namespaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
135
- _c = _f.value;
136
- _d = false;
137
- const page = _c;
138
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
139
- }
140
- }
141
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
142
- finally {
143
- try {
144
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
145
- }
146
- finally { if (e_2) throw e_2.error; }
147
- }
148
- });
111
+ async *listByNamespacePagingAll(resourceGroupName, namespaceName, options) {
112
+ for await (const page of this.listByNamespacePagingPage(resourceGroupName, namespaceName, options)) {
113
+ yield* page;
114
+ }
149
115
  }
150
116
  /**
151
117
  * Gets authorization rules for a topic.
@@ -1 +1 @@
1
- {"version":3,"file":"topics.js","sourceRoot":"","sources":["../../../src/operations/topics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA8BtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,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,CAAE,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tC;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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA8BtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IACJ,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,iBAAyB,EACzB,aAAqB,EACrB,SAAiB,EACjB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,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,gCAAgC,CAC1C,iBAAiB,EACjB,aAAa,E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C5B,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"]}