@azure/arm-resourcehealth 4.1.0-alpha.20250619.1 → 4.1.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/microsoftResourceHealth.js +23 -5
- package/dist/browser/microsoftResourceHealth.js.map +1 -1
- package/dist/browser/models/mappers.js +124 -59
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/availabilityStatuses.js +67 -118
- package/dist/browser/operations/availabilityStatuses.js.map +1 -1
- package/dist/browser/operations/childAvailabilityStatuses.js +23 -40
- package/dist/browser/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/browser/operations/childResources.js +23 -40
- package/dist/browser/operations/childResources.js.map +1 -1
- package/dist/browser/operations/emergingIssues.js +23 -40
- package/dist/browser/operations/emergingIssues.js.map +1 -1
- package/dist/browser/operations/eventOperations.js +1 -0
- package/dist/browser/operations/eventOperations.js.map +1 -1
- package/dist/browser/operations/eventsOperations.js +67 -118
- package/dist/browser/operations/eventsOperations.js.map +1 -1
- package/dist/browser/operations/impactedResources.js +45 -79
- package/dist/browser/operations/impactedResources.js.map +1 -1
- package/dist/browser/operations/metadata.js +23 -40
- package/dist/browser/operations/metadata.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/securityAdvisoryImpactedResources.js +45 -79
- package/dist/browser/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/microsoftResourceHealth.js +23 -5
- package/dist/commonjs/microsoftResourceHealth.js.map +1 -1
- package/dist/commonjs/models/mappers.js +124 -59
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/availabilityStatuses.js +67 -117
- package/dist/commonjs/operations/availabilityStatuses.js.map +1 -1
- package/dist/commonjs/operations/childAvailabilityStatuses.js +23 -39
- package/dist/commonjs/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/commonjs/operations/childResources.js +23 -39
- package/dist/commonjs/operations/childResources.js.map +1 -1
- package/dist/commonjs/operations/emergingIssues.js +23 -39
- package/dist/commonjs/operations/emergingIssues.js.map +1 -1
- package/dist/commonjs/operations/eventOperations.js +1 -0
- package/dist/commonjs/operations/eventOperations.js.map +1 -1
- package/dist/commonjs/operations/eventsOperations.js +67 -117
- package/dist/commonjs/operations/eventsOperations.js.map +1 -1
- package/dist/commonjs/operations/impactedResources.js +45 -78
- package/dist/commonjs/operations/impactedResources.js.map +1 -1
- package/dist/commonjs/operations/metadata.js +23 -39
- package/dist/commonjs/operations/metadata.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.js +45 -78
- package/dist/commonjs/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/microsoftResourceHealth.js +23 -5
- package/dist/esm/microsoftResourceHealth.js.map +1 -1
- package/dist/esm/models/mappers.js +124 -59
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/availabilityStatuses.js +67 -118
- package/dist/esm/operations/availabilityStatuses.js.map +1 -1
- package/dist/esm/operations/childAvailabilityStatuses.js +23 -40
- package/dist/esm/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/esm/operations/childResources.js +23 -40
- package/dist/esm/operations/childResources.js.map +1 -1
- package/dist/esm/operations/emergingIssues.js +23 -40
- package/dist/esm/operations/emergingIssues.js.map +1 -1
- package/dist/esm/operations/eventOperations.js +1 -0
- package/dist/esm/operations/eventOperations.js.map +1 -1
- package/dist/esm/operations/eventsOperations.js +67 -118
- package/dist/esm/operations/eventsOperations.js.map +1 -1
- package/dist/esm/operations/impactedResources.js +45 -79
- package/dist/esm/operations/impactedResources.js.map +1 -1
- package/dist/esm/operations/metadata.js +23 -40
- package/dist/esm/operations/metadata.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/securityAdvisoryImpactedResources.js +45 -79
- package/dist/esm/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/microsoftResourceHealth.js +23 -5
- package/dist/react-native/microsoftResourceHealth.js.map +1 -1
- package/dist/react-native/models/mappers.js +124 -59
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/availabilityStatuses.js +67 -118
- package/dist/react-native/operations/availabilityStatuses.js.map +1 -1
- package/dist/react-native/operations/childAvailabilityStatuses.js +23 -40
- package/dist/react-native/operations/childAvailabilityStatuses.js.map +1 -1
- package/dist/react-native/operations/childResources.js +23 -40
- package/dist/react-native/operations/childResources.js.map +1 -1
- package/dist/react-native/operations/emergingIssues.js +23 -40
- package/dist/react-native/operations/emergingIssues.js.map +1 -1
- package/dist/react-native/operations/eventOperations.js +1 -0
- package/dist/react-native/operations/eventOperations.js.map +1 -1
- package/dist/react-native/operations/eventsOperations.js +67 -118
- package/dist/react-native/operations/eventsOperations.js.map +1 -1
- package/dist/react-native/operations/impactedResources.js +45 -79
- package/dist/react-native/operations/impactedResources.js.map +1 -1
- package/dist/react-native/operations/metadata.js +23 -40
- package/dist/react-native/operations/metadata.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/securityAdvisoryImpactedResources.js +45 -79
- package/dist/react-native/operations/securityAdvisoryImpactedResources.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-resourcehealth.api.md → arm-resourcehealth-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impactedResources.js","sourceRoot":"","sources":["../../../src/operations/impactedResources.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;AAkBtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,8BAA8B,CACnC,eAAuB,EACvB,OAAuE;QAEvE,MAAM,IAAI,GAAG,IAAI,CAAC,uCAAuC,CACvD,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,wCAAwC,CAClD,eAAe,EACf,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,wCAAwC,CACrD,eAAuB,EACvB,OAAuE,EACvE,QAAuB;;YAEvB,IAAI,MAA+D,CAAC;YACpE,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAA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AU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yCAAyC,GAA6B;IAC1E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;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 { ImpactedResources } 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 EventImpactedResource,\n ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams,\n ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n ImpactedResourcesListBySubscriptionIdAndEventIdResponse,\n ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams,\n ImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n ImpactedResourcesListByTenantIdAndEventIdResponse,\n ImpactedResourcesGetOptionalParams,\n ImpactedResourcesGetResponse,\n ImpactedResourcesGetByTenantIdOptionalParams,\n ImpactedResourcesGetByTenantIdResponse,\n ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse,\n ImpactedResourcesListByTenantIdAndEventIdNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ImpactedResources operations. */\nexport class ImpactedResourcesImpl implements ImpactedResources {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class ImpactedResources class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists impacted resources in the subscription by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: ImpactedResourcesListBySubscriptionIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptionIdAndEventId(\n eventTrackingId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionIdAndEventIdNext(\n eventTrackingId,\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 *listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the tenant by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listByTenantIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTenantIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: ImpactedResourcesListByTenantIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTenantIdAndEventId(eventTrackingId, 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._listByTenantIdAndEventIdNext(\n eventTrackingId,\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 *listByTenantIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the subscription by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): Promise<ImpactedResourcesListBySubscriptionIdAndEventIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listBySubscriptionIdAndEventIdOperationSpec\n );\n }\n\n /**\n * Gets the specific impacted resource in the subscription by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param impactedResourceName Name of the Impacted Resource.\n * @param options The options parameters.\n */\n get(\n eventTrackingId: string,\n impactedResourceName: string,\n options?: ImpactedResourcesGetOptionalParams\n ): Promise<ImpactedResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, impactedResourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Lists impacted resources in the tenant by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): Promise<ImpactedResourcesListByTenantIdAndEventIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listByTenantIdAndEventIdOperationSpec\n );\n }\n\n /**\n * Gets the specific impacted resource in the tenant by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param impactedResourceName Name of the Impacted Resource.\n * @param options The options parameters.\n */\n getByTenantId(\n eventTrackingId: string,\n impactedResourceName: string,\n options?: ImpactedResourcesGetByTenantIdOptionalParams\n ): Promise<ImpactedResourcesGetByTenantIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, impactedResourceName, options },\n getByTenantIdOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams\n ): Promise<ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listBySubscriptionIdAndEventIdNextOperationSpec\n );\n }\n\n /**\n * ListByTenantIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams\n ): Promise<ImpactedResourcesListByTenantIdAndEventIdNextResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listByTenantIdAndEventIdNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId,\n Parameters.impactedResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.eventTrackingId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByTenantIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.eventTrackingId,\n Parameters.impactedResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"impactedResources.js","sourceRoot":"","sources":["../../../src/operations/impactedResources.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;AAkBtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,8BAA8B,CACnC,eAAuB,EACvB,OAAuE;QAEvE,MAAM,IAAI,GAAG,IAAI,CAAC,uCAAuC,CACvD,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,wCAAwC,CAClD,eAAe,EACf,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,wCAAwC,CACrD,eAAuB,EACvB,OAAuE,EACvE,QAAuB;QAEvB,IAAI,MAA+D,CAAC;QACpE,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC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UAAU,CAAC,eAAe;KAC3B;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 { ImpactedResources } 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 EventImpactedResource,\n ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams,\n ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n ImpactedResourcesListBySubscriptionIdAndEventIdResponse,\n ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams,\n ImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n ImpactedResourcesListByTenantIdAndEventIdResponse,\n ImpactedResourcesGetOptionalParams,\n ImpactedResourcesGetResponse,\n ImpactedResourcesGetByTenantIdOptionalParams,\n ImpactedResourcesGetByTenantIdResponse,\n ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse,\n ImpactedResourcesListByTenantIdAndEventIdNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ImpactedResources operations. */\nexport class ImpactedResourcesImpl implements ImpactedResources {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class ImpactedResources class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists impacted resources in the subscription by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: ImpactedResourcesListBySubscriptionIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptionIdAndEventId(\n eventTrackingId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionIdAndEventIdNext(\n eventTrackingId,\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 *listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the tenant by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listByTenantIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTenantIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: ImpactedResourcesListByTenantIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTenantIdAndEventId(eventTrackingId, 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._listByTenantIdAndEventIdNext(\n eventTrackingId,\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 *listByTenantIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the subscription by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): Promise<ImpactedResourcesListBySubscriptionIdAndEventIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listBySubscriptionIdAndEventIdOperationSpec\n );\n }\n\n /**\n * Gets the specific impacted resource in the subscription by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param impactedResourceName Name of the Impacted Resource.\n * @param options The options parameters.\n */\n get(\n eventTrackingId: string,\n impactedResourceName: string,\n options?: ImpactedResourcesGetOptionalParams\n ): Promise<ImpactedResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, impactedResourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Lists impacted resources in the tenant by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): Promise<ImpactedResourcesListByTenantIdAndEventIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listByTenantIdAndEventIdOperationSpec\n );\n }\n\n /**\n * Gets the specific impacted resource in the tenant by an event.\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param impactedResourceName Name of the Impacted Resource.\n * @param options The options parameters.\n */\n getByTenantId(\n eventTrackingId: string,\n impactedResourceName: string,\n options?: ImpactedResourcesGetByTenantIdOptionalParams\n ): Promise<ImpactedResourcesGetByTenantIdResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, impactedResourceName, options },\n getByTenantIdOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: ImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams\n ): Promise<ImpactedResourcesListBySubscriptionIdAndEventIdNextResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listBySubscriptionIdAndEventIdNextOperationSpec\n );\n }\n\n /**\n * ListByTenantIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: ImpactedResourcesListByTenantIdAndEventIdNextOptionalParams\n ): Promise<ImpactedResourcesListByTenantIdAndEventIdNextResponse> {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listByTenantIdAndEventIdNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId,\n Parameters.impactedResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.eventTrackingId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getByTenantIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.eventTrackingId,\n Parameters.impactedResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.eventTrackingId\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 Metadata operations. */
|
|
15
14
|
export class MetadataImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class Metadata class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class MetadataImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
* Gets the list of metadata entities.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/operations/metadata.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../src/operations/metadata.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,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAoC;QAE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3D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC;IAClD,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,wBAAwB;SAC7C;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 { Metadata } 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 MetadataEntity,\n MetadataListNextOptionalParams,\n MetadataListOptionalParams,\n MetadataListResponse,\n MetadataGetEntityOptionalParams,\n MetadataGetEntityResponse,\n MetadataListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Metadata operations. */\nexport class MetadataImpl implements Metadata {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class Metadata class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Gets the list of metadata entities.\n * @param options The options parameters.\n */\n public list(\n options?: MetadataListOptionalParams\n ): PagedAsyncIterableIterator<MetadataEntity> {\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?: MetadataListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<MetadataEntity[]> {\n let result: MetadataListResponse;\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?: MetadataListOptionalParams\n ): AsyncIterableIterator<MetadataEntity> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of metadata entities.\n * @param options The options parameters.\n */\n private _list(\n options?: MetadataListOptionalParams\n ): Promise<MetadataListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets the list of metadata entities.\n * @param name Name of metadata entity.\n * @param options The options parameters.\n */\n getEntity(\n name: string,\n options?: MetadataGetEntityOptionalParams\n ): Promise<MetadataGetEntityResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getEntityOperationSpec\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?: MetadataListNextOptionalParams\n ): Promise<MetadataListNextResponse> {\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/metadata\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MetadataEntityListResult\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 getEntityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/metadata/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MetadataEntity\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MetadataEntityListResult\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 Operations operations. */
|
|
12
12
|
export class OperationsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Operations class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,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,gDAAgD;IACtD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;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","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 { Operations } 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 OperationsListOptionalParams,\n OperationsListResponse\n} from \"../models/index.js\";\n\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the resourcehealth resource provider\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ResourceHealth/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\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 SecurityAdvisoryImpactedResources operations. */
|
|
15
14
|
export class SecurityAdvisoryImpactedResourcesImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class SecurityAdvisoryImpactedResources class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -35,52 +35,35 @@ export class SecurityAdvisoryImpactedResourcesImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
});
|
|
45
|
+
async *listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings?.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = await this._listBySubscriptionIdAndEventId(eventTrackingId, options);
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = await this._listBySubscriptionIdAndEventIdNext(eventTrackingId, continuationToken, options);
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
64
62
|
}
|
|
65
|
-
listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
-
_c = _f.value;
|
|
71
|
-
_d = false;
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
-
finally {
|
|
78
|
-
try {
|
|
79
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
-
}
|
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
|
82
|
-
}
|
|
83
|
-
});
|
|
63
|
+
async *listBySubscriptionIdAndEventIdPagingAll(eventTrackingId, options) {
|
|
64
|
+
for await (const page of this.listBySubscriptionIdAndEventIdPagingPage(eventTrackingId, options)) {
|
|
65
|
+
yield* page;
|
|
66
|
+
}
|
|
84
67
|
}
|
|
85
68
|
/**
|
|
86
69
|
* Lists impacted resources in the tenant by an event (Security Advisory).
|
|
@@ -97,52 +80,35 @@ export class SecurityAdvisoryImpactedResourcesImpl {
|
|
|
97
80
|
return this;
|
|
98
81
|
},
|
|
99
82
|
byPage: (settings) => {
|
|
100
|
-
if (settings
|
|
83
|
+
if (settings?.maxPageSize) {
|
|
101
84
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
102
85
|
}
|
|
103
86
|
return this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings);
|
|
104
87
|
}
|
|
105
88
|
};
|
|
106
89
|
}
|
|
107
|
-
listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
});
|
|
90
|
+
async *listByTenantIdAndEventIdPagingPage(eventTrackingId, options, settings) {
|
|
91
|
+
let result;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._listByTenantIdAndEventId(eventTrackingId, options);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = await this._listByTenantIdAndEventIdNext(eventTrackingId, continuationToken, options);
|
|
102
|
+
continuationToken = result.nextLink;
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
126
107
|
}
|
|
127
|
-
listByTenantIdAndEventIdPagingAll(eventTrackingId, options) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
for (var _d = true, _e = __asyncValues(this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
132
|
-
_c = _f.value;
|
|
133
|
-
_d = false;
|
|
134
|
-
const page = _c;
|
|
135
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
139
|
-
finally {
|
|
140
|
-
try {
|
|
141
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
142
|
-
}
|
|
143
|
-
finally { if (e_2) throw e_2.error; }
|
|
144
|
-
}
|
|
145
|
-
});
|
|
108
|
+
async *listByTenantIdAndEventIdPagingAll(eventTrackingId, options) {
|
|
109
|
+
for await (const page of this.listByTenantIdAndEventIdPagingPage(eventTrackingId, options)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
146
112
|
}
|
|
147
113
|
/**
|
|
148
114
|
* Lists impacted resources in the subscription by an event (Security Advisory).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityAdvisoryImpactedResources.js","sourceRoot":"","sources":["../../../src/operations/securityAdvisoryImpactedResources.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;AActD,4CAA4C;AAC5C,qEAAqE;AACrE,MAAM,OAAO,qCAAqC;IAIhD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,8BAA8B,CACnC,eAAuB,EACvB,OAAuF;QAEvF,MAAM,IAAI,GAAG,IAAI,CAAC,uCAAuC,CACvD,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,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U,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yCAAyC,GAA6B;IAC1E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;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 { SecurityAdvisoryImpactedResources } 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 EventImpactedResource,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SecurityAdvisoryImpactedResources operations. */\nexport class SecurityAdvisoryImpactedResourcesImpl\n implements SecurityAdvisoryImpactedResources {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class SecurityAdvisoryImpactedResources class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists impacted resources in the subscription by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptionIdAndEventId(\n eventTrackingId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionIdAndEventIdNext(\n eventTrackingId,\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 *listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the tenant by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listByTenantIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTenantIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTenantIdAndEventId(eventTrackingId, 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._listByTenantIdAndEventIdNext(\n eventTrackingId,\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 *listByTenantIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the subscription by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listBySubscriptionIdAndEventIdOperationSpec\n );\n }\n\n /**\n * Lists impacted resources in the tenant by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listByTenantIdAndEventIdOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listBySubscriptionIdAndEventIdNextOperationSpec\n );\n }\n\n /**\n * ListByTenantIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listByTenantIdAndEventIdNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.eventTrackingId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"securityAdvisoryImpactedResources.js","sourceRoot":"","sources":["../../../src/operations/securityAdvisoryImpactedResources.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;AActD,4CAA4C;AAC5C,qEAAqE;AACrE,MAAM,OAAO,qCAAqC;IAE/B,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,8BAA8B,CACnC,eAAuB,EACvB,OAAuF;QAEvF,MAAM,IAAI,GAAG,IAAI,CAAC,uCAAuC,CACvD,eAAe,EACf,OAAO,CACR,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D,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yCAAyC,GAA6B;IAC1E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;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 { SecurityAdvisoryImpactedResources } 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 EventImpactedResource,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse,\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse,\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SecurityAdvisoryImpactedResources operations. */\nexport class SecurityAdvisoryImpactedResourcesImpl\n implements SecurityAdvisoryImpactedResources {\n private readonly client: MicrosoftResourceHealth;\n\n /**\n * Initialize a new instance of the class SecurityAdvisoryImpactedResources class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftResourceHealth) {\n this.client = client;\n }\n\n /**\n * Lists impacted resources in the subscription by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscriptionIdAndEventId(\n eventTrackingId,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionIdAndEventIdNext(\n eventTrackingId,\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 *listBySubscriptionIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listBySubscriptionIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the tenant by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n public listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): PagedAsyncIterableIterator<EventImpactedResource> {\n const iter = this.listByTenantIdAndEventIdPagingAll(\n eventTrackingId,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTenantIdAndEventIdPagingPage(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<EventImpactedResource[]> {\n let result: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTenantIdAndEventId(eventTrackingId, 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._listByTenantIdAndEventIdNext(\n eventTrackingId,\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 *listByTenantIdAndEventIdPagingAll(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): AsyncIterableIterator<EventImpactedResource> {\n for await (const page of this.listByTenantIdAndEventIdPagingPage(\n eventTrackingId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists impacted resources in the subscription by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listBySubscriptionIdAndEventIdOperationSpec\n );\n }\n\n /**\n * Lists impacted resources in the tenant by an event (Security Advisory).\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventId(\n eventTrackingId: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, options },\n listByTenantIdAndEventIdOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listBySubscriptionIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListBySubscriptionIdAndEventIdNextResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listBySubscriptionIdAndEventIdNextOperationSpec\n );\n }\n\n /**\n * ListByTenantIdAndEventIdNext\n * @param eventTrackingId Event Id which uniquely identifies ServiceHealth event.\n * @param nextLink The nextLink from the previous successful call to the ListByTenantIdAndEventId\n * method.\n * @param options The options parameters.\n */\n private _listByTenantIdAndEventIdNext(\n eventTrackingId: string,\n nextLink: string,\n options?: SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextOptionalParams\n ): Promise<\n SecurityAdvisoryImpactedResourcesListByTenantIdAndEventIdNextResponse\n > {\n return this.client.sendOperationRequest(\n { eventTrackingId, nextLink, options },\n listByTenantIdAndEventIdNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.eventTrackingId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTenantIdAndEventIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EventImpactedResourceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.eventTrackingId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
package/dist/esm/pagingHelper.js
CHANGED
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -9,8 +9,10 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { AvailabilityStatusesImpl, OperationsImpl, MetadataImpl, ImpactedResourcesImpl, SecurityAdvisoryImpactedResourcesImpl, EventsOperationsImpl, EventOperationsImpl, ChildAvailabilityStatusesImpl, ChildResourcesImpl, EmergingIssuesImpl } from "./operations/index.js";
|
|
11
11
|
export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
12
15
|
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
16
|
if (credentials === undefined) {
|
|
15
17
|
throw new Error("'credentials' cannot be null");
|
|
16
18
|
}
|
|
@@ -33,12 +35,17 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
|
33
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
37
|
: `${packageDetails}`;
|
|
36
|
-
const optionsWithDefaults =
|
|
38
|
+
const optionsWithDefaults = {
|
|
39
|
+
...defaults,
|
|
40
|
+
...options,
|
|
41
|
+
userAgentOptions: {
|
|
37
42
|
userAgentPrefix
|
|
38
|
-
},
|
|
43
|
+
},
|
|
44
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
45
|
+
};
|
|
39
46
|
super(optionsWithDefaults);
|
|
40
47
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
41
|
-
if (
|
|
48
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
42
49
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
43
50
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
44
51
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -52,7 +59,8 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
|
52
59
|
});
|
|
53
60
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
54
61
|
credential: credentials,
|
|
55
|
-
scopes:
|
|
62
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
63
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
56
64
|
challengeCallbacks: {
|
|
57
65
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
58
66
|
}
|
|
@@ -100,5 +108,15 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
|
|
|
100
108
|
};
|
|
101
109
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
102
110
|
}
|
|
111
|
+
availabilityStatuses;
|
|
112
|
+
operations;
|
|
113
|
+
metadata;
|
|
114
|
+
impactedResources;
|
|
115
|
+
securityAdvisoryImpactedResources;
|
|
116
|
+
eventsOperations;
|
|
117
|
+
eventOperations;
|
|
118
|
+
childAvailabilityStatuses;
|
|
119
|
+
childResources;
|
|
120
|
+
emergingIssues;
|
|
103
121
|
}
|
|
104
122
|
//# sourceMappingURL=microsoftResourceHealth.js.map
|