@azure/arm-resourcehealth 4.1.0-alpha.20250619.1 → 4.1.0-alpha.20250718.2

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 (107) hide show
  1. package/dist/browser/microsoftResourceHealth.js +23 -5
  2. package/dist/browser/microsoftResourceHealth.js.map +1 -1
  3. package/dist/browser/models/mappers.js +124 -59
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/availabilityStatuses.js +67 -118
  6. package/dist/browser/operations/availabilityStatuses.js.map +1 -1
  7. package/dist/browser/operations/childAvailabilityStatuses.js +23 -40
  8. package/dist/browser/operations/childAvailabilityStatuses.js.map +1 -1
  9. package/dist/browser/operations/childResources.js +23 -40
  10. package/dist/browser/operations/childResources.js.map +1 -1
  11. package/dist/browser/operations/emergingIssues.js +23 -40
  12. package/dist/browser/operations/emergingIssues.js.map +1 -1
  13. package/dist/browser/operations/eventOperations.js +1 -0
  14. package/dist/browser/operations/eventOperations.js.map +1 -1
  15. package/dist/browser/operations/eventsOperations.js +67 -118
  16. package/dist/browser/operations/eventsOperations.js.map +1 -1
  17. package/dist/browser/operations/impactedResources.js +45 -79
  18. package/dist/browser/operations/impactedResources.js.map +1 -1
  19. package/dist/browser/operations/metadata.js +23 -40
  20. package/dist/browser/operations/metadata.js.map +1 -1
  21. package/dist/browser/operations/operations.js +1 -0
  22. package/dist/browser/operations/operations.js.map +1 -1
  23. package/dist/browser/operations/securityAdvisoryImpactedResources.js +45 -79
  24. package/dist/browser/operations/securityAdvisoryImpactedResources.js.map +1 -1
  25. package/dist/browser/pagingHelper.js +2 -4
  26. package/dist/browser/pagingHelper.js.map +1 -1
  27. package/dist/commonjs/microsoftResourceHealth.js +23 -5
  28. package/dist/commonjs/microsoftResourceHealth.js.map +1 -1
  29. package/dist/commonjs/models/mappers.js +124 -59
  30. package/dist/commonjs/models/mappers.js.map +1 -1
  31. package/dist/commonjs/operations/availabilityStatuses.js +67 -117
  32. package/dist/commonjs/operations/availabilityStatuses.js.map +1 -1
  33. package/dist/commonjs/operations/childAvailabilityStatuses.js +23 -39
  34. package/dist/commonjs/operations/childAvailabilityStatuses.js.map +1 -1
  35. package/dist/commonjs/operations/childResources.js +23 -39
  36. package/dist/commonjs/operations/childResources.js.map +1 -1
  37. package/dist/commonjs/operations/emergingIssues.js +23 -39
  38. package/dist/commonjs/operations/emergingIssues.js.map +1 -1
  39. package/dist/commonjs/operations/eventOperations.js +1 -0
  40. package/dist/commonjs/operations/eventOperations.js.map +1 -1
  41. package/dist/commonjs/operations/eventsOperations.js +67 -117
  42. package/dist/commonjs/operations/eventsOperations.js.map +1 -1
  43. package/dist/commonjs/operations/impactedResources.js +45 -78
  44. package/dist/commonjs/operations/impactedResources.js.map +1 -1
  45. package/dist/commonjs/operations/metadata.js +23 -39
  46. package/dist/commonjs/operations/metadata.js.map +1 -1
  47. package/dist/commonjs/operations/operations.js +1 -0
  48. package/dist/commonjs/operations/operations.js.map +1 -1
  49. package/dist/commonjs/operations/securityAdvisoryImpactedResources.js +45 -78
  50. package/dist/commonjs/operations/securityAdvisoryImpactedResources.js.map +1 -1
  51. package/dist/commonjs/pagingHelper.js +2 -4
  52. package/dist/commonjs/pagingHelper.js.map +1 -1
  53. package/dist/commonjs/tsdoc-metadata.json +11 -11
  54. package/dist/esm/microsoftResourceHealth.js +23 -5
  55. package/dist/esm/microsoftResourceHealth.js.map +1 -1
  56. package/dist/esm/models/mappers.js +124 -59
  57. package/dist/esm/models/mappers.js.map +1 -1
  58. package/dist/esm/operations/availabilityStatuses.js +67 -118
  59. package/dist/esm/operations/availabilityStatuses.js.map +1 -1
  60. package/dist/esm/operations/childAvailabilityStatuses.js +23 -40
  61. package/dist/esm/operations/childAvailabilityStatuses.js.map +1 -1
  62. package/dist/esm/operations/childResources.js +23 -40
  63. package/dist/esm/operations/childResources.js.map +1 -1
  64. package/dist/esm/operations/emergingIssues.js +23 -40
  65. package/dist/esm/operations/emergingIssues.js.map +1 -1
  66. package/dist/esm/operations/eventOperations.js +1 -0
  67. package/dist/esm/operations/eventOperations.js.map +1 -1
  68. package/dist/esm/operations/eventsOperations.js +67 -118
  69. package/dist/esm/operations/eventsOperations.js.map +1 -1
  70. package/dist/esm/operations/impactedResources.js +45 -79
  71. package/dist/esm/operations/impactedResources.js.map +1 -1
  72. package/dist/esm/operations/metadata.js +23 -40
  73. package/dist/esm/operations/metadata.js.map +1 -1
  74. package/dist/esm/operations/operations.js +1 -0
  75. package/dist/esm/operations/operations.js.map +1 -1
  76. package/dist/esm/operations/securityAdvisoryImpactedResources.js +45 -79
  77. package/dist/esm/operations/securityAdvisoryImpactedResources.js.map +1 -1
  78. package/dist/esm/pagingHelper.js +2 -4
  79. package/dist/esm/pagingHelper.js.map +1 -1
  80. package/dist/react-native/microsoftResourceHealth.js +23 -5
  81. package/dist/react-native/microsoftResourceHealth.js.map +1 -1
  82. package/dist/react-native/models/mappers.js +124 -59
  83. package/dist/react-native/models/mappers.js.map +1 -1
  84. package/dist/react-native/operations/availabilityStatuses.js +67 -118
  85. package/dist/react-native/operations/availabilityStatuses.js.map +1 -1
  86. package/dist/react-native/operations/childAvailabilityStatuses.js +23 -40
  87. package/dist/react-native/operations/childAvailabilityStatuses.js.map +1 -1
  88. package/dist/react-native/operations/childResources.js +23 -40
  89. package/dist/react-native/operations/childResources.js.map +1 -1
  90. package/dist/react-native/operations/emergingIssues.js +23 -40
  91. package/dist/react-native/operations/emergingIssues.js.map +1 -1
  92. package/dist/react-native/operations/eventOperations.js +1 -0
  93. package/dist/react-native/operations/eventOperations.js.map +1 -1
  94. package/dist/react-native/operations/eventsOperations.js +67 -118
  95. package/dist/react-native/operations/eventsOperations.js.map +1 -1
  96. package/dist/react-native/operations/impactedResources.js +45 -79
  97. package/dist/react-native/operations/impactedResources.js.map +1 -1
  98. package/dist/react-native/operations/metadata.js +23 -40
  99. package/dist/react-native/operations/metadata.js.map +1 -1
  100. package/dist/react-native/operations/operations.js +1 -0
  101. package/dist/react-native/operations/operations.js.map +1 -1
  102. package/dist/react-native/operations/securityAdvisoryImpactedResources.js +45 -79
  103. package/dist/react-native/operations/securityAdvisoryImpactedResources.js.map +1 -1
  104. package/dist/react-native/pagingHelper.js +2 -4
  105. package/dist/react-native/pagingHelper.js.map +1 -1
  106. package/package.json +2 -2
  107. /package/review/{arm-resourcehealth.api.md → arm-resourcehealth-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"availabilityStatuses.js","sourceRoot":"","sources":["../../../src/operations/availabilityStatuses.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;AAoBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,oBAAoB,CACzB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;QACzD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,8BAA8B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChE,CAAC;SAC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CAAC,QAAQ;KACpB;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,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;QACtB,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 { AvailabilityStatuses } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n AvailabilityStatus,\n AvailabilityStatusesListBySubscriptionIdNextOptionalParams,\n AvailabilityStatusesListBySubscriptionIdOptionalParams,\n AvailabilityStatusesListBySubscriptionIdResponse,\n AvailabilityStatusesListByResourceGroupNextOptionalParams,\n AvailabilityStatusesListByResourceGroupOptionalParams,\n AvailabilityStatusesListByResourceGroupResponse,\n AvailabilityStatusesListNextOptionalParams,\n AvailabilityStatusesListOptionalParams,\n AvailabilityStatusesListResponse,\n AvailabilityStatusesGetByResourceOptionalParams,\n AvailabilityStatusesGetByResourceResponse,\n AvailabilityStatusesListBySubscriptionIdNextResponse,\n AvailabilityStatusesListByResourceGroupNextResponse,\n AvailabilityStatusesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvailabilityStatuses operations. */\nexport class AvailabilityStatusesImpl implements AvailabilityStatuses {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class AvailabilityStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists the current availability status for all the resources in the subscription.\n * @param options The options parameters.\n */\n public listBySubscriptionId(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listBySubscriptionIdPagingAll(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.listBySubscriptionIdPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionIdPagingPage(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: AvailabilityStatusesListBySubscriptionIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptionId(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._listBySubscriptionIdNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionIdPagingAll(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listBySubscriptionIdPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the current availability status for all the resources in the resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: AvailabilityStatusesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all historical availability transitions and impacting events for a single resource.\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listPagingAll(resourceUri, 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(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: AvailabilityStatusesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceUri, 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(resourceUri, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the current availability status for all the resources in the subscription.\n * @param options The options parameters.\n */\n private _listBySubscriptionId(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams\n ): Promise<AvailabilityStatusesListBySubscriptionIdResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionIdOperationSpec\n );\n }\n\n /**\n * Lists the current availability status for all the resources in the resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams\n ): Promise<AvailabilityStatusesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets current availability status for a single resource\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n getByResource(\n resourceUri: string,\n options?: AvailabilityStatusesGetByResourceOptionalParams\n ): Promise<AvailabilityStatusesGetByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n getByResourceOperationSpec\n );\n }\n\n /**\n * Lists all historical availability transitions and impacting events for a single resource.\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams\n ): Promise<AvailabilityStatusesListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionIdNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdNext(\n nextLink: string,\n options?: AvailabilityStatusesListBySubscriptionIdNextOptionalParams\n ): Promise<AvailabilityStatusesListBySubscriptionIdNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionIdNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AvailabilityStatusesListByResourceGroupNextOptionalParams\n ): Promise<AvailabilityStatusesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\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 resourceUri: string,\n nextLink: string,\n options?: AvailabilityStatusesListNextOptionalParams\n ): Promise<AvailabilityStatusesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByResourceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\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.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"availabilityStatuses.js","sourceRoot":"","sources":["../../../src/operations/availabilityStatuses.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;AAoBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,oBAAoB,CACzB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;QACzD,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,8BAA8B,CAAC,OAAO,EAAE,QAA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ensed 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 { AvailabilityStatuses } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n AvailabilityStatus,\n AvailabilityStatusesListBySubscriptionIdNextOptionalParams,\n AvailabilityStatusesListBySubscriptionIdOptionalParams,\n AvailabilityStatusesListBySubscriptionIdResponse,\n AvailabilityStatusesListByResourceGroupNextOptionalParams,\n AvailabilityStatusesListByResourceGroupOptionalParams,\n AvailabilityStatusesListByResourceGroupResponse,\n AvailabilityStatusesListNextOptionalParams,\n AvailabilityStatusesListOptionalParams,\n AvailabilityStatusesListResponse,\n AvailabilityStatusesGetByResourceOptionalParams,\n AvailabilityStatusesGetByResourceResponse,\n AvailabilityStatusesListBySubscriptionIdNextResponse,\n AvailabilityStatusesListByResourceGroupNextResponse,\n AvailabilityStatusesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvailabilityStatuses operations. */\nexport class AvailabilityStatusesImpl implements AvailabilityStatuses {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class AvailabilityStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists the current availability status for all the resources in the subscription.\n * @param options The options parameters.\n */\n public listBySubscriptionId(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listBySubscriptionIdPagingAll(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.listBySubscriptionIdPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionIdPagingPage(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: AvailabilityStatusesListBySubscriptionIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptionId(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._listBySubscriptionIdNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionIdPagingAll(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listBySubscriptionIdPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the current availability status for all the resources in the resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: AvailabilityStatusesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all historical availability transitions and impacting events for a single resource.\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listPagingAll(resourceUri, 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(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: AvailabilityStatusesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceUri, 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(resourceUri, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the current availability status for all the resources in the subscription.\n * @param options The options parameters.\n */\n private _listBySubscriptionId(\n options?: AvailabilityStatusesListBySubscriptionIdOptionalParams\n ): Promise<AvailabilityStatusesListBySubscriptionIdResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionIdOperationSpec\n );\n }\n\n /**\n * Lists the current availability status for all the resources in the resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AvailabilityStatusesListByResourceGroupOptionalParams\n ): Promise<AvailabilityStatusesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Gets current availability status for a single resource\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n getByResource(\n resourceUri: string,\n options?: AvailabilityStatusesGetByResourceOptionalParams\n ): Promise<AvailabilityStatusesGetByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n getByResourceOperationSpec\n );\n }\n\n /**\n * Lists all historical availability transitions and impacting events for a single resource.\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: AvailabilityStatusesListOptionalParams\n ): Promise<AvailabilityStatusesListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionIdNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdNext(\n nextLink: string,\n options?: AvailabilityStatusesListBySubscriptionIdNextOptionalParams\n ): Promise<AvailabilityStatusesListBySubscriptionIdNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionIdNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AvailabilityStatusesListByResourceGroupNextOptionalParams\n ): Promise<AvailabilityStatusesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API support not nested and one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * and\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\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 resourceUri: string,\n nextLink: string,\n options?: AvailabilityStatusesListNextOptionalParams\n ): Promise<AvailabilityStatusesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByResourceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\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.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri,\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 ChildAvailabilityStatuses operations. */
15
14
  export class ChildAvailabilityStatusesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class ChildAvailabilityStatuses class.
18
18
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class ChildAvailabilityStatusesImpl {
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.listPagingPage(resourceUri, options, settings);
45
45
  }
46
46
  };
47
47
  }
48
- listPagingPage(resourceUri, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._list(resourceUri, 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._listNext(resourceUri, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listPagingPage(resourceUri, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(resourceUri, 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._listNext(resourceUri, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listPagingAll(resourceUri, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceUri, 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 *listPagingAll(resourceUri, options) {
67
+ for await (const page of this.listPagingPage(resourceUri, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Gets current availability status for a single resource
@@ -1 +1 @@
1
- {"version":3,"file":"childAvailabilityStatuses.js","sourceRoot":"","sources":["../../../src/operations/childAvailabilityStatuses.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;AAYtD,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAIxC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,WAAmB,EACnB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBAC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AC,MAAM;KAClB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,6EAA6E;IAC/E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,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,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;QACtB,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 { ChildAvailabilityStatuses } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n AvailabilityStatus,\n ChildAvailabilityStatusesListNextOptionalParams,\n ChildAvailabilityStatusesListOptionalParams,\n ChildAvailabilityStatusesListResponse,\n ChildAvailabilityStatusesGetByResourceOptionalParams,\n ChildAvailabilityStatusesGetByResourceResponse,\n ChildAvailabilityStatusesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ChildAvailabilityStatuses operations. */\nexport class ChildAvailabilityStatusesImpl\n implements ChildAvailabilityStatuses {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class ChildAvailabilityStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists the historical availability statuses for a single child resource. Use the nextLink property in\n * the response to get the next page of availability status\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listPagingAll(resourceUri, 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(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: ChildAvailabilityStatusesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceUri, 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(resourceUri, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets current availability status for a single resource\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n getByResource(\n resourceUri: string,\n options?: ChildAvailabilityStatusesGetByResourceOptionalParams\n ): Promise<ChildAvailabilityStatusesGetByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n getByResourceOperationSpec\n );\n }\n\n /**\n * Lists the historical availability statuses for a single child resource. Use the nextLink property in\n * the response to get the next page of availability status\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams\n ): Promise<ChildAvailabilityStatusesListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\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 resourceUri: string,\n nextLink: string,\n options?: ChildAvailabilityStatusesListNextOptionalParams\n ): Promise<ChildAvailabilityStatusesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByResourceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"childAvailabilityStatuses.js","sourceRoot":"","sources":["../../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SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;QACtB,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 { ChildAvailabilityStatuses } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n AvailabilityStatus,\n ChildAvailabilityStatusesListNextOptionalParams,\n ChildAvailabilityStatusesListOptionalParams,\n ChildAvailabilityStatusesListResponse,\n ChildAvailabilityStatusesGetByResourceOptionalParams,\n ChildAvailabilityStatusesGetByResourceResponse,\n ChildAvailabilityStatusesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ChildAvailabilityStatuses operations. */\nexport class ChildAvailabilityStatusesImpl\n implements ChildAvailabilityStatuses {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class ChildAvailabilityStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists the historical availability statuses for a single child resource. Use the nextLink property in\n * the response to get the next page of availability status\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listPagingAll(resourceUri, 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(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: ChildAvailabilityStatusesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceUri, 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(resourceUri, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets current availability status for a single resource\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n getByResource(\n resourceUri: string,\n options?: ChildAvailabilityStatusesGetByResourceOptionalParams\n ): Promise<ChildAvailabilityStatusesGetByResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n getByResourceOperationSpec\n );\n }\n\n /**\n * Lists the historical availability statuses for a single child resource. Use the nextLink property in\n * the response to get the next page of availability status\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: ChildAvailabilityStatusesListOptionalParams\n ): Promise<ChildAvailabilityStatusesListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support one nesting level resource types :\n * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}\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 resourceUri: string,\n nextLink: string,\n options?: ChildAvailabilityStatusesListNextOptionalParams\n ): Promise<ChildAvailabilityStatusesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByResourceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri,\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 ChildResources operations. */
15
14
  export class ChildResourcesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class ChildResources class.
18
18
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class ChildResourcesImpl {
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.listPagingPage(resourceUri, options, settings);
45
45
  }
46
46
  };
47
47
  }
48
- listPagingPage(resourceUri, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._list(resourceUri, 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._listNext(resourceUri, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listPagingPage(resourceUri, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(resourceUri, 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._listNext(resourceUri, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listPagingAll(resourceUri, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceUri, 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 *listPagingAll(resourceUri, options) {
67
+ for await (const page of this.listPagingPage(resourceUri, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Lists the all the children and its current health status for a parent resource. Use the nextLink
@@ -1 +1 @@
1
- {"version":3,"file":"childResources.js","sourceRoot":"","sources":["../../../src/operations/childResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAM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AAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kEAAkE;IACxE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,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,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;QACtB,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 { ChildResources } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n AvailabilityStatus,\n ChildResourcesListNextOptionalParams,\n ChildResourcesListOptionalParams,\n ChildResourcesListResponse,\n ChildResourcesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ChildResources operations. */\nexport class ChildResourcesImpl implements ChildResources {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class ChildResources class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists the all the children and its current health status for a parent resource. Use the nextLink\n * property in the response to get the next page of children current health\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support not nested parent resource type:\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listPagingAll(resourceUri, 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(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: ChildResourcesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceUri, 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(resourceUri, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the all the children and its current health status for a parent resource. Use the nextLink\n * property in the response to get the next page of children current health\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support not nested parent resource type:\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams\n ): Promise<ChildResourcesListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support not nested parent resource type:\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-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 resourceUri: string,\n nextLink: string,\n options?: ChildResourcesListNextOptionalParams\n ): Promise<ChildResourcesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.ResourceHealth/childResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"childResources.js","sourceRoot":"","sources":["../../../src/operations/childResources.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;AAUtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,WAAmB,EACnB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtD,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,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC7D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,WAAm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I,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,EAClC,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kEAAkE;IACxE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,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,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;QACtB,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 { ChildResources } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n AvailabilityStatus,\n ChildResourcesListNextOptionalParams,\n ChildResourcesListOptionalParams,\n ChildResourcesListResponse,\n ChildResourcesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ChildResources operations. */\nexport class ChildResourcesImpl implements ChildResources {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class ChildResources class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists the all the children and its current health status for a parent resource. Use the nextLink\n * property in the response to get the next page of children current health\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support not nested parent resource type:\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * @param options The options parameters.\n */\n public list(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams\n ): PagedAsyncIterableIterator<AvailabilityStatus> {\n const iter = this.listPagingAll(resourceUri, 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(resourceUri, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AvailabilityStatus[]> {\n let result: ChildResourcesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceUri, 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(resourceUri, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams\n ): AsyncIterableIterator<AvailabilityStatus> {\n for await (const page of this.listPagingPage(resourceUri, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the all the children and its current health status for a parent resource. Use the nextLink\n * property in the response to get the next page of children current health\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support not nested parent resource type:\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}\n * @param options The options parameters.\n */\n private _list(\n resourceUri: string,\n options?: ChildResourcesListOptionalParams\n ): Promise<ChildResourcesListResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceUri The fully qualified ID of the resource, including the resource name and resource\n * type. Currently the API only support not nested parent resource type:\n * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-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 resourceUri: string,\n nextLink: string,\n options?: ChildResourcesListNextOptionalParams\n ): Promise<ChildResourcesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.ResourceHealth/childResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand\n ],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailabilityStatusListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceUri,\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 EmergingIssues operations. */
15
14
  export class EmergingIssuesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class EmergingIssues class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class EmergingIssuesImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  }
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * Lists Azure services' emerging issues.
@@ -1 +1 @@
1
- {"version":3,"file":"emergingIssues.js","sourceRoot":"","sources":["../../../src/operations/emergingIssues.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,CA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UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,gEAAgE;IACtE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC;IACvD,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,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { EmergingIssues } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n EmergingIssuesGetResult,\n EmergingIssuesListNextOptionalParams,\n EmergingIssuesListOptionalParams,\n EmergingIssuesListResponse,\n IssueNameParameter,\n EmergingIssuesGetOptionalParams,\n EmergingIssuesGetResponse,\n EmergingIssuesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EmergingIssues operations. */\nexport class EmergingIssuesImpl implements EmergingIssues {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class EmergingIssues class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists Azure services' emerging issues.\n * @param options The options parameters.\n */\n public list(\n options?: EmergingIssuesListOptionalParams\n ): PagedAsyncIterableIterator<EmergingIssuesGetResult> {\n const iter = this.listPagingAll(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(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: EmergingIssuesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EmergingIssuesGetResult[]> {\n let result: EmergingIssuesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: EmergingIssuesListOptionalParams\n ): AsyncIterableIterator<EmergingIssuesGetResult> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Azure services' emerging issues.\n * @param options The options parameters.\n */\n private _list(\n options?: EmergingIssuesListOptionalParams\n ): Promise<EmergingIssuesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets Azure services' emerging issues.\n * @param issueName The name of the emerging issue.\n * @param options The options parameters.\n */\n get(\n issueName: IssueNameParameter,\n options?: EmergingIssuesGetOptionalParams\n ): Promise<EmergingIssuesGetResponse> {\n return this.client.sendOperationRequest(\n { issueName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: EmergingIssuesListNextOptionalParams\n ): Promise<EmergingIssuesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/emergingIssues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssueListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssuesGetResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.issueName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssueListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"emergingIssues.js","sourceRoot":"","sources":["../../../src/operations/emergingIssues.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;AAatD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAA0C,EAC1C,Q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OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { EmergingIssues } 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 { MicrosoftResourceHealth } from \"../microsoftResourceHealth.js\";\nimport {\n EmergingIssuesGetResult,\n EmergingIssuesListNextOptionalParams,\n EmergingIssuesListOptionalParams,\n EmergingIssuesListResponse,\n IssueNameParameter,\n EmergingIssuesGetOptionalParams,\n EmergingIssuesGetResponse,\n EmergingIssuesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EmergingIssues operations. */\nexport class EmergingIssuesImpl implements EmergingIssues {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class EmergingIssues class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists Azure services' emerging issues.\n * @param options The options parameters.\n */\n public list(\n options?: EmergingIssuesListOptionalParams\n ): PagedAsyncIterableIterator<EmergingIssuesGetResult> {\n const iter = this.listPagingAll(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(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: EmergingIssuesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EmergingIssuesGetResult[]> {\n let result: EmergingIssuesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: EmergingIssuesListOptionalParams\n ): AsyncIterableIterator<EmergingIssuesGetResult> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Azure services' emerging issues.\n * @param options The options parameters.\n */\n private _list(\n options?: EmergingIssuesListOptionalParams\n ): Promise<EmergingIssuesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets Azure services' emerging issues.\n * @param issueName The name of the emerging issue.\n * @param options The options parameters.\n */\n get(\n issueName: IssueNameParameter,\n options?: EmergingIssuesGetOptionalParams\n ): Promise<EmergingIssuesGetResponse> {\n return this.client.sendOperationRequest(\n { issueName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListNext\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 nextLink: string,\n options?: EmergingIssuesListNextOptionalParams\n ): Promise<EmergingIssuesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/emergingIssues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssueListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssuesGetResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.issueName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EmergingIssueListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\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 EventOperations operations. */
12
12
  export class EventOperationsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class EventOperations class.
15
16
  * @param client Reference to the service client