@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":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.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,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAcxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,O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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,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;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 { PrivateEndpointConnections } 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 { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListNextOptionalParams,\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the available PrivateEndpointConnections within 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 list(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listPagingAll(resourceGroupName, namespaceName, options);\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.listPagingPage(\n resourceGroupName,\n namespaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, namespaceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\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 *listPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n namespaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the available PrivateEndpointConnections within 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 _list(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Creates or updates PrivateEndpointConnections of service namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace\n * resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes an existing Private Endpoint Connection.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Private Endpoint Connection.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a description for the specified Private Endpoint Connection.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * ListNext\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 List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n namespaceName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionsListNextOptionalParams\n ): Promise<PrivateEndpointConnectionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.privateEndpointConnectionName\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\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.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\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.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult\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":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.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,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAcxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAExB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,aAAqB,EACrB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,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,cAAc,CACxB,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CA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AClC;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 { PrivateEndpointConnections } 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 { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListNextOptionalParams,\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the available PrivateEndpointConnections within 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 list(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listPagingAll(resourceGroupName, namespaceName, options);\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.listPagingPage(\n resourceGroupName,\n namespaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, namespaceName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\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 *listPagingAll(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n namespaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the available PrivateEndpointConnections within 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 _list(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Creates or updates PrivateEndpointConnections of service namespace.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param parameters Parameters supplied to update Status of PrivateEndPoint Connection to namespace\n * resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes an existing Private Endpoint Connection.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing Private Endpoint Connection.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a description for the specified Private Endpoint Connection.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param privateEndpointConnectionName The PrivateEndpointConnection name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * ListNext\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 List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n namespaceName: string,\n nextLink: string,\n options?: PrivateEndpointConnectionsListNextOptionalParams\n ): Promise<PrivateEndpointConnectionsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.privateEndpointConnectionName\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\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.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\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.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult\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"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing PrivateLinkResources operations. */
12
12
  export class PrivateLinkResourcesImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class PrivateLinkResources class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,mJAAmJ;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;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;KAC1B;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 { PrivateLinkResources } 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 PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets lists of resources that supports Privatelinks.\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 get(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateLinkResourcesGetOptionalParams\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourcesListResult\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAA6B;IAEpD;;;OAGG;IACH,YAAY,MAAkC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,aAAqB,EACrB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,EAC7C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,mJAAmJ;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;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;KAC1B;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 { PrivateLinkResources } 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 PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets lists of resources that supports Privatelinks.\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 get(\n resourceGroupName: string,\n namespaceName: string,\n options?: PrivateLinkResourcesGetOptionalParams\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourcesListResult\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 ],\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 Queues operations. */
15
14
  export class QueuesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Queues class.
18
18
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class QueuesImpl {
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, queueName, options, settings);
44
44
  }
45
45
  };
46
46
  }
47
- listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, queueName, 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, queueName, 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, queueName, 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, queueName, options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._listAuthorizationRules(resourceGroupName, namespaceName, queueName, 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, queueName, 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, queueName, 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, queueName, 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, queueName, options) {
66
+ for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, queueName, options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * Gets the queues within a namespace.
@@ -100,52 +83,35 @@ export class QueuesImpl {
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 all authorization rules for a queue.
@@ -1 +1 @@
1
- {"version":3,"file":"queues.js","sourceRoot":"","sources":["../../../src/operations/queues.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;A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AAc;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 { Queues } 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 QueuesListAuthorizationRulesNextOptionalParams,\n QueuesListAuthorizationRulesOptionalParams,\n QueuesListAuthorizationRulesResponse,\n SBQueue,\n QueuesListByNamespaceNextOptionalParams,\n QueuesListByNamespaceOptionalParams,\n QueuesListByNamespaceResponse,\n QueuesCreateOrUpdateAuthorizationRuleOptionalParams,\n QueuesCreateOrUpdateAuthorizationRuleResponse,\n QueuesDeleteAuthorizationRuleOptionalParams,\n QueuesGetAuthorizationRuleOptionalParams,\n QueuesGetAuthorizationRuleResponse,\n QueuesListKeysOptionalParams,\n QueuesListKeysResponse,\n RegenerateAccessKeyParameters,\n QueuesRegenerateKeysOptionalParams,\n QueuesRegenerateKeysResponse,\n QueuesCreateOrUpdateOptionalParams,\n QueuesCreateOrUpdateResponse,\n QueuesDeleteOptionalParams,\n QueuesGetOptionalParams,\n QueuesGetResponse,\n QueuesListAuthorizationRulesNextResponse,\n QueuesListByNamespaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queues operations. */\nexport class QueuesImpl implements Queues {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Queues class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all authorization rules for a queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n public listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams\n ): PagedAsyncIterableIterator<SBAuthorizationRule> {\n const iter = this.listAuthorizationRulesPagingAll(\n resourceGroupName,\n namespaceName,\n queueName,\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 queueName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAuthorizationRulesPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBAuthorizationRule[]> {\n let result: QueuesListAuthorizationRulesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAuthorizationRules(\n resourceGroupName,\n namespaceName,\n queueName,\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 queueName,\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 queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams\n ): AsyncIterableIterator<SBAuthorizationRule> {\n for await (const page of this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n queueName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the queues within 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?: QueuesListByNamespaceOptionalParams\n ): PagedAsyncIterableIterator<SBQueue> {\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?: QueuesListByNamespaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBQueue[]> {\n let result: QueuesListByNamespaceResponse;\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?: QueuesListByNamespaceOptionalParams\n ): AsyncIterableIterator<SBQueue> {\n for await (const page of this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all authorization rules for a queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n private _listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams\n ): Promise<QueuesListAuthorizationRulesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, options },\n listAuthorizationRulesOperationSpec\n );\n }\n\n /**\n * Creates an authorization rule for a queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue 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 queueName: string,\n authorizationRuleName: string,\n parameters: SBAuthorizationRule,\n options?: QueuesCreateOrUpdateAuthorizationRuleOptionalParams\n ): Promise<QueuesCreateOrUpdateAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n parameters,\n options\n },\n createOrUpdateAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Deletes a queue authorization rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n deleteAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n authorizationRuleName: string,\n options?: QueuesDeleteAuthorizationRuleOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n options\n },\n deleteAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Gets an authorization rule for a queue by rule name.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n getAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n authorizationRuleName: string,\n options?: QueuesGetAuthorizationRuleOptionalParams\n ): Promise<QueuesGetAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n options\n },\n getAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Primary and secondary connection strings to the queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n authorizationRuleName: string,\n options?: QueuesListKeysOptionalParams\n ): Promise<QueuesListKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n options\n },\n listKeysOperationSpec\n );\n }\n\n /**\n * Regenerates the primary or secondary connection strings to the queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue 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 queueName: string,\n authorizationRuleName: string,\n parameters: RegenerateAccessKeyParameters,\n options?: QueuesRegenerateKeysOptionalParams\n ): Promise<QueuesRegenerateKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n parameters,\n options\n },\n regenerateKeysOperationSpec\n );\n }\n\n /**\n * Gets the queues within 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?: QueuesListByNamespaceOptionalParams\n ): Promise<QueuesListByNamespaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listByNamespaceOperationSpec\n );\n }\n\n /**\n * Creates or updates a Service Bus queue. This operation is idempotent.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param parameters Parameters supplied to create or update a queue resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n parameters: SBQueue,\n options?: QueuesCreateOrUpdateOptionalParams\n ): Promise<QueuesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a queue from the specified namespace in a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a description for the specified queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesGetOptionalParams\n ): Promise<QueuesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, 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 queueName The queue 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 queueName: string,\n nextLink: string,\n options?: QueuesListAuthorizationRulesNextOptionalParams\n ): Promise<QueuesListAuthorizationRulesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, 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?: QueuesListByNamespaceNextOptionalParams\n ): Promise<QueuesListByNamespaceNextResponse> {\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}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst regenerateKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\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}/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBQueueListResult\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}/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBQueue\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.queueName\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}/queues/{queueName}\",\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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBQueue\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.queueName\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.queueName\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.SBQueueListResult\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":"queues.js","sourceRoot":"","sources":["../../../src/operations/queues.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,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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 { Queues } 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 QueuesListAuthorizationRulesNextOptionalParams,\n QueuesListAuthorizationRulesOptionalParams,\n QueuesListAuthorizationRulesResponse,\n SBQueue,\n QueuesListByNamespaceNextOptionalParams,\n QueuesListByNamespaceOptionalParams,\n QueuesListByNamespaceResponse,\n QueuesCreateOrUpdateAuthorizationRuleOptionalParams,\n QueuesCreateOrUpdateAuthorizationRuleResponse,\n QueuesDeleteAuthorizationRuleOptionalParams,\n QueuesGetAuthorizationRuleOptionalParams,\n QueuesGetAuthorizationRuleResponse,\n QueuesListKeysOptionalParams,\n QueuesListKeysResponse,\n RegenerateAccessKeyParameters,\n QueuesRegenerateKeysOptionalParams,\n QueuesRegenerateKeysResponse,\n QueuesCreateOrUpdateOptionalParams,\n QueuesCreateOrUpdateResponse,\n QueuesDeleteOptionalParams,\n QueuesGetOptionalParams,\n QueuesGetResponse,\n QueuesListAuthorizationRulesNextResponse,\n QueuesListByNamespaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queues operations. */\nexport class QueuesImpl implements Queues {\n private readonly client: ServiceBusManagementClient;\n\n /**\n * Initialize a new instance of the class Queues class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceBusManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all authorization rules for a queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n public listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams\n ): PagedAsyncIterableIterator<SBAuthorizationRule> {\n const iter = this.listAuthorizationRulesPagingAll(\n resourceGroupName,\n namespaceName,\n queueName,\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 queueName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listAuthorizationRulesPagingPage(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBAuthorizationRule[]> {\n let result: QueuesListAuthorizationRulesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listAuthorizationRules(\n resourceGroupName,\n namespaceName,\n queueName,\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 queueName,\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 queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams\n ): AsyncIterableIterator<SBAuthorizationRule> {\n for await (const page of this.listAuthorizationRulesPagingPage(\n resourceGroupName,\n namespaceName,\n queueName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the queues within 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?: QueuesListByNamespaceOptionalParams\n ): PagedAsyncIterableIterator<SBQueue> {\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?: QueuesListByNamespaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SBQueue[]> {\n let result: QueuesListByNamespaceResponse;\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?: QueuesListByNamespaceOptionalParams\n ): AsyncIterableIterator<SBQueue> {\n for await (const page of this.listByNamespacePagingPage(\n resourceGroupName,\n namespaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets all authorization rules for a queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n private _listAuthorizationRules(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesListAuthorizationRulesOptionalParams\n ): Promise<QueuesListAuthorizationRulesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, options },\n listAuthorizationRulesOperationSpec\n );\n }\n\n /**\n * Creates an authorization rule for a queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue 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 queueName: string,\n authorizationRuleName: string,\n parameters: SBAuthorizationRule,\n options?: QueuesCreateOrUpdateAuthorizationRuleOptionalParams\n ): Promise<QueuesCreateOrUpdateAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n parameters,\n options\n },\n createOrUpdateAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Deletes a queue authorization rule.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n deleteAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n authorizationRuleName: string,\n options?: QueuesDeleteAuthorizationRuleOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n options\n },\n deleteAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Gets an authorization rule for a queue by rule name.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n getAuthorizationRule(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n authorizationRuleName: string,\n options?: QueuesGetAuthorizationRuleOptionalParams\n ): Promise<QueuesGetAuthorizationRuleResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n options\n },\n getAuthorizationRuleOperationSpec\n );\n }\n\n /**\n * Primary and secondary connection strings to the queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param authorizationRuleName The authorization rule name.\n * @param options The options parameters.\n */\n listKeys(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n authorizationRuleName: string,\n options?: QueuesListKeysOptionalParams\n ): Promise<QueuesListKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n options\n },\n listKeysOperationSpec\n );\n }\n\n /**\n * Regenerates the primary or secondary connection strings to the queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue 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 queueName: string,\n authorizationRuleName: string,\n parameters: RegenerateAccessKeyParameters,\n options?: QueuesRegenerateKeysOptionalParams\n ): Promise<QueuesRegenerateKeysResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n namespaceName,\n queueName,\n authorizationRuleName,\n parameters,\n options\n },\n regenerateKeysOperationSpec\n );\n }\n\n /**\n * Gets the queues within 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?: QueuesListByNamespaceOptionalParams\n ): Promise<QueuesListByNamespaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, options },\n listByNamespaceOperationSpec\n );\n }\n\n /**\n * Creates or updates a Service Bus queue. This operation is idempotent.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param parameters Parameters supplied to create or update a queue resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n parameters: SBQueue,\n options?: QueuesCreateOrUpdateOptionalParams\n ): Promise<QueuesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a queue from the specified namespace in a resource group.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Returns a description for the specified queue.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param namespaceName The namespace name\n * @param queueName The queue name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n namespaceName: string,\n queueName: string,\n options?: QueuesGetOptionalParams\n ): Promise<QueuesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, 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 queueName The queue 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 queueName: string,\n nextLink: string,\n options?: QueuesListAuthorizationRulesNextOptionalParams\n ): Promise<QueuesListAuthorizationRulesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, namespaceName, queueName, 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?: QueuesListByNamespaceNextOptionalParams\n ): Promise<QueuesListByNamespaceNextResponse> {\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}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst regenerateKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/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.queueName\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}/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBQueueListResult\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}/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBQueue\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.namespaceName1,\n Parameters.queueName\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}/queues/{queueName}\",\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.queueName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SBQueue\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.queueName\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.queueName\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.SBQueueListResult\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"]}
@@ -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 Rules operations. */
15
14
  export class RulesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Rules class.
18
18
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class RulesImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listBySubscriptionsPagingPage(resourceGroupName, namespaceName, topicName, subscriptionName, options, settings);
45
45
  }
46
46
  };
47
47
  }
48
- listBySubscriptionsPagingPage(resourceGroupName, namespaceName, topicName, subscriptionName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listBySubscriptionsPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listBySubscriptionsNext(resourceGroupName, namespaceName, topicName, subscriptionName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listBySubscriptionsPagingPage(resourceGroupName, namespaceName, topicName, subscriptionName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listBySubscriptionsNext(resourceGroupName, namespaceName, topicName, subscriptionName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listBySubscriptionsPagingAll(resourceGroupName, namespaceName, topicName, subscriptionName, options) {
69
- return __asyncGenerator(this, arguments, function* listBySubscriptionsPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionsPagingPage(resourceGroupName, namespaceName, topicName, subscriptionName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listBySubscriptionsPagingAll(resourceGroupName, namespaceName, topicName, subscriptionName, options) {
67
+ for await (const page of this.listBySubscriptionsPagingPage(resourceGroupName, namespaceName, topicName, subscriptionName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * List all the rules within given topic-subscription