@azure/arm-advisor 3.2.0-alpha.20250718.1 → 3.2.0-alpha.20250721.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/commonjs/advisorManagementClient.js +17 -5
  2. package/dist/commonjs/advisorManagementClient.js.map +1 -1
  3. package/dist/commonjs/models/mappers.js +59 -28
  4. package/dist/commonjs/models/mappers.js.map +1 -1
  5. package/dist/commonjs/operations/configurations.js +32 -65
  6. package/dist/commonjs/operations/configurations.js.map +1 -1
  7. package/dist/commonjs/operations/operations.js +23 -39
  8. package/dist/commonjs/operations/operations.js.map +1 -1
  9. package/dist/commonjs/operations/recommendationMetadata.js +23 -39
  10. package/dist/commonjs/operations/recommendationMetadata.js.map +1 -1
  11. package/dist/commonjs/operations/recommendations.js +23 -39
  12. package/dist/commonjs/operations/recommendations.js.map +1 -1
  13. package/dist/commonjs/operations/suppressions.js +23 -39
  14. package/dist/commonjs/operations/suppressions.js.map +1 -1
  15. package/dist/commonjs/pagingHelper.js +2 -4
  16. package/dist/commonjs/pagingHelper.js.map +1 -1
  17. package/dist/commonjs/tsdoc-metadata.json +11 -11
  18. package/dist/esm/advisorManagementClient.js +17 -5
  19. package/dist/esm/advisorManagementClient.js.map +1 -1
  20. package/dist/esm/models/mappers.js +59 -28
  21. package/dist/esm/models/mappers.js.map +1 -1
  22. package/dist/esm/operations/configurations.js +32 -66
  23. package/dist/esm/operations/configurations.js.map +1 -1
  24. package/dist/esm/operations/operations.js +23 -40
  25. package/dist/esm/operations/operations.js.map +1 -1
  26. package/dist/esm/operations/recommendationMetadata.js +23 -40
  27. package/dist/esm/operations/recommendationMetadata.js.map +1 -1
  28. package/dist/esm/operations/recommendations.js +23 -40
  29. package/dist/esm/operations/recommendations.js.map +1 -1
  30. package/dist/esm/operations/suppressions.js +23 -40
  31. package/dist/esm/operations/suppressions.js.map +1 -1
  32. package/dist/esm/pagingHelper.js +2 -4
  33. package/dist/esm/pagingHelper.js.map +1 -1
  34. package/package.json +2 -2
  35. package/review/arm-advisor-node.api.md +446 -446
@@ -1 +1 @@
1
- {"version":3,"file":"suppressions.js","sourceRoot":"","sources":["../../../src/operations/suppressions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAAwC;QAExC,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,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;IAEc,cAAc,CAC3B,OAAwC,EACxC,QAAuB;;YAEvB,IAAI,MAAgC,CAAC;YACrC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,sBAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;gBACnC,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE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;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9E,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IACjF,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 { Suppressions } 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 { AdvisorManagementClient } from \"../advisorManagementClient.js\";\nimport {\n SuppressionContract,\n SuppressionsListNextOptionalParams,\n SuppressionsListOptionalParams,\n SuppressionsListResponse,\n SuppressionsGetOptionalParams,\n SuppressionsGetResponse,\n SuppressionsCreateOptionalParams,\n SuppressionsCreateResponse,\n SuppressionsDeleteOptionalParams,\n SuppressionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Suppressions operations. */\nexport class SuppressionsImpl implements Suppressions {\n private readonly client: AdvisorManagementClient;\n\n /**\n * Initialize a new instance of the class Suppressions class.\n * @param client Reference to the service client\n */\n constructor(client: AdvisorManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed\n * attribute of a recommendation is referred to as a suppression.\n * @param options The options parameters.\n */\n public list(\n options?: SuppressionsListOptionalParams,\n ): PagedAsyncIterableIterator<SuppressionContract> {\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?: SuppressionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SuppressionContract[]> {\n let result: SuppressionsListResponse;\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?: SuppressionsListOptionalParams,\n ): AsyncIterableIterator<SuppressionContract> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Obtains the details of a suppression.\n * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which\n * the recommendation applies.\n * @param recommendationId The recommendation ID.\n * @param name The name of the suppression.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n recommendationId: string,\n name: string,\n options?: SuppressionsGetOptionalParams,\n ): Promise<SuppressionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, recommendationId, name, options },\n getOperationSpec,\n );\n }\n\n /**\n * Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute\n * is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of\n * a recommendation.\n * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which\n * the recommendation applies.\n * @param recommendationId The recommendation ID.\n * @param name The name of the suppression.\n * @param suppressionContract The snoozed or dismissed attribute; for example, the snooze duration.\n * @param options The options parameters.\n */\n create(\n resourceUri: string,\n recommendationId: string,\n name: string,\n suppressionContract: SuppressionContract,\n options?: SuppressionsCreateOptionalParams,\n ): Promise<SuppressionsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, recommendationId, name, suppressionContract, options },\n createOperationSpec,\n );\n }\n\n /**\n * Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute\n * of a recommendation is referred to as a suppression.\n * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which\n * the recommendation applies.\n * @param recommendationId The recommendation ID.\n * @param name The name of the suppression.\n * @param options The options parameters.\n */\n delete(\n resourceUri: string,\n recommendationId: string,\n name: string,\n options?: SuppressionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceUri, recommendationId, name, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed\n * attribute of a recommendation is referred to as a suppression.\n * @param options The options parameters.\n */\n private _list(options?: SuppressionsListOptionalParams): Promise<SuppressionsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\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?: SuppressionsListNextOptionalParams,\n ): Promise<SuppressionsListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContract,\n },\n 404: {\n bodyMapper: Mappers.ArmErrorResponse,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.resourceUri,\n Parameters.recommendationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContract,\n },\n 404: {\n bodyMapper: Mappers.ArmErrorResponse,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n requestBody: Parameters.suppressionContract,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.resourceUri,\n Parameters.recommendationId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.resourceUri,\n Parameters.recommendationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContractListResult,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContractListResult,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"suppressions.js","sourceRoot":"","sources":["../../../src/operations/suppressions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,gBAAgB;IACV,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,OAAwC;QAExC,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;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ACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,0EAA0E;IAChF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9E,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IACjF,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 { Suppressions } 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 { AdvisorManagementClient } from \"../advisorManagementClient.js\";\nimport {\n SuppressionContract,\n SuppressionsListNextOptionalParams,\n SuppressionsListOptionalParams,\n SuppressionsListResponse,\n SuppressionsGetOptionalParams,\n SuppressionsGetResponse,\n SuppressionsCreateOptionalParams,\n SuppressionsCreateResponse,\n SuppressionsDeleteOptionalParams,\n SuppressionsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Suppressions operations. */\nexport class SuppressionsImpl implements Suppressions {\n private readonly client: AdvisorManagementClient;\n\n /**\n * Initialize a new instance of the class Suppressions class.\n * @param client Reference to the service client\n */\n constructor(client: AdvisorManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed\n * attribute of a recommendation is referred to as a suppression.\n * @param options The options parameters.\n */\n public list(\n options?: SuppressionsListOptionalParams,\n ): PagedAsyncIterableIterator<SuppressionContract> {\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?: SuppressionsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<SuppressionContract[]> {\n let result: SuppressionsListResponse;\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?: SuppressionsListOptionalParams,\n ): AsyncIterableIterator<SuppressionContract> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Obtains the details of a suppression.\n * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which\n * the recommendation applies.\n * @param recommendationId The recommendation ID.\n * @param name The name of the suppression.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n recommendationId: string,\n name: string,\n options?: SuppressionsGetOptionalParams,\n ): Promise<SuppressionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, recommendationId, name, options },\n getOperationSpec,\n );\n }\n\n /**\n * Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute\n * is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of\n * a recommendation.\n * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which\n * the recommendation applies.\n * @param recommendationId The recommendation ID.\n * @param name The name of the suppression.\n * @param suppressionContract The snoozed or dismissed attribute; for example, the snooze duration.\n * @param options The options parameters.\n */\n create(\n resourceUri: string,\n recommendationId: string,\n name: string,\n suppressionContract: SuppressionContract,\n options?: SuppressionsCreateOptionalParams,\n ): Promise<SuppressionsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, recommendationId, name, suppressionContract, options },\n createOperationSpec,\n );\n }\n\n /**\n * Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute\n * of a recommendation is referred to as a suppression.\n * @param resourceUri The fully qualified Azure Resource Manager identifier of the resource to which\n * the recommendation applies.\n * @param recommendationId The recommendation ID.\n * @param name The name of the suppression.\n * @param options The options parameters.\n */\n delete(\n resourceUri: string,\n recommendationId: string,\n name: string,\n options?: SuppressionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceUri, recommendationId, name, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed\n * attribute of a recommendation is referred to as a suppression.\n * @param options The options parameters.\n */\n private _list(options?: SuppressionsListOptionalParams): Promise<SuppressionsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\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?: SuppressionsListNextOptionalParams,\n ): Promise<SuppressionsListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContract,\n },\n 404: {\n bodyMapper: Mappers.ArmErrorResponse,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.resourceUri,\n Parameters.recommendationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContract,\n },\n 404: {\n bodyMapper: Mappers.ArmErrorResponse,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n requestBody: Parameters.suppressionContract,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.resourceUri,\n Parameters.recommendationId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}/suppressions/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.name,\n Parameters.resourceUri,\n Parameters.recommendationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContractListResult,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skipToken],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuppressionContractListResult,\n },\n default: {\n bodyMapper: Mappers.ArmErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,18 +18,16 @@ const pageMap = new WeakMap();
18
18
  * @returns The continuation token that can be passed into byPage() during future calls.
19
19
  */
20
20
  function getContinuationToken(page) {
21
- var _a;
22
21
  if (typeof page !== "object" || page === null) {
23
22
  return undefined;
24
23
  }
25
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
24
+ return pageMap.get(page)?.continuationToken;
26
25
  }
27
26
  function setContinuationToken(page, continuationToken) {
28
- var _a;
29
27
  if (typeof page !== "object" || page === null || !continuationToken) {
30
28
  return;
31
29
  }
32
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
30
+ const pageInfo = pageMap.get(page) ?? {};
33
31
  pageInfo.continuationToken = continuationToken;
34
32
  pageMap.set(page, pageInfo);
35
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAOC;AAvBD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,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(page: unknown, continuationToken: string | undefined): 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"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAOC;AAvBD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,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,SAAgB,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;IACvF,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(page: unknown, continuationToken: string | undefined): 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"]}
@@ -1,11 +1,11 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.8"
9
- }
10
- ]
11
- }
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.52.8"
9
+ }
10
+ ]
11
+ }
@@ -9,8 +9,10 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { RecommendationMetadataImpl, ConfigurationsImpl, RecommendationsImpl, OperationsImpl, SuppressionsImpl, } from "./operations/index.js";
11
11
  export class AdvisorManagementClient 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 AdvisorManagementClient extends coreClient.ServiceClient {
33
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
37
  : `${packageDetails}`;
36
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
38
+ const optionsWithDefaults = {
39
+ ...defaults,
40
+ ...options,
41
+ userAgentOptions: {
37
42
  userAgentPrefix,
38
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
43
+ },
44
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
45
+ };
39
46
  super(optionsWithDefaults);
40
47
  let bearerTokenAuthenticationPolicyFound = false;
41
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
48
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
42
49
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
43
50
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
44
51
  }
@@ -51,7 +58,7 @@ export class AdvisorManagementClient extends coreClient.ServiceClient {
51
58
  });
52
59
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
53
60
  credential: credentials,
54
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
61
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
55
62
  challengeCallbacks: {
56
63
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
57
64
  },
@@ -94,5 +101,10 @@ export class AdvisorManagementClient extends coreClient.ServiceClient {
94
101
  };
95
102
  this.pipeline.addPolicy(apiVersionPolicy);
96
103
  }
104
+ recommendationMetadata;
105
+ configurations;
106
+ recommendations;
107
+ operations;
108
+ suppressions;
97
109
  }
98
110
  //# sourceMappingURL=advisorManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"advisorManagementClient.js","sourceRoot":"","sources":["../../src/advisorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,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,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAOF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n RecommendationMetadataImpl,\n ConfigurationsImpl,\n RecommendationsImpl,\n OperationsImpl,\n SuppressionsImpl,\n} from \"./operations/index.js\";\nimport {\n RecommendationMetadata,\n Configurations,\n Recommendations,\n Operations,\n Suppressions,\n} from \"./operationsInterfaces/index.js\";\nimport { AdvisorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AdvisorManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the AdvisorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: AdvisorManagementClientOptionalParams | string,\n options?: AdvisorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AdvisorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-advisor/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-01-01\";\n this.recommendationMetadata = new RecommendationMetadataImpl(this);\n this.configurations = new ConfigurationsImpl(this);\n this.recommendations = new RecommendationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.suppressions = new SuppressionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n recommendationMetadata: RecommendationMetadata;\n configurations: Configurations;\n recommendations: Recommendations;\n operations: Operations;\n suppressions: Suppressions;\n}\n"]}
1
+ {"version":3,"file":"advisorManagementClient.js","sourceRoot":"","sources":["../../src/advisorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAU/B,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAU;IAiBxB,YACE,WAAqC,EACrC,uBAAwE,EACxE,OAA+C;QAE/C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,cAAkC,CAAC;QAEvC,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YAChD,cAAc,GAAG,uBAAuB,CAAC;QAC3C,CAAC;aAAM,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,GAAG,uBAAuB,CA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AAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,sBAAsB,CAAyB;IAC/C,cAAc,CAAiB;IAC/B,eAAe,CAAkB;IACjC,UAAU,CAAa;IACvB,YAAY,CAAe;CAC5B","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n RecommendationMetadataImpl,\n ConfigurationsImpl,\n RecommendationsImpl,\n OperationsImpl,\n SuppressionsImpl,\n} from \"./operations/index.js\";\nimport {\n RecommendationMetadata,\n Configurations,\n Recommendations,\n Operations,\n Suppressions,\n} from \"./operationsInterfaces/index.js\";\nimport { AdvisorManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class AdvisorManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the AdvisorManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: AdvisorManagementClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?: AdvisorManagementClientOptionalParams | string,\n options?: AdvisorManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AdvisorManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-advisor/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2020-01-01\";\n this.recommendationMetadata = new RecommendationMetadataImpl(this);\n this.configurations = new ConfigurationsImpl(this);\n this.recommendations = new RecommendationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.suppressions = new SuppressionsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n recommendationMetadata: RecommendationMetadata;\n configurations: Configurations;\n recommendations: Recommendations;\n operations: Operations;\n suppressions: Suppressions;\n}\n"]}
@@ -452,17 +452,21 @@ export const ConfigData = {
452
452
  type: {
453
453
  name: "Composite",
454
454
  className: "ConfigData",
455
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { exclude: {
455
+ modelProperties: {
456
+ ...Resource.type.modelProperties,
457
+ exclude: {
456
458
  serializedName: "properties.exclude",
457
459
  type: {
458
460
  name: "Boolean",
459
461
  },
460
- }, lowCpuThreshold: {
462
+ },
463
+ lowCpuThreshold: {
461
464
  serializedName: "properties.lowCpuThreshold",
462
465
  type: {
463
466
  name: "String",
464
467
  },
465
- }, digests: {
468
+ },
469
+ digests: {
466
470
  serializedName: "properties.digests",
467
471
  type: {
468
472
  name: "Sequence",
@@ -473,39 +477,47 @@ export const ConfigData = {
473
477
  },
474
478
  },
475
479
  },
476
- } }),
480
+ },
481
+ },
477
482
  },
478
483
  };
479
484
  export const ResourceRecommendationBase = {
480
485
  type: {
481
486
  name: "Composite",
482
487
  className: "ResourceRecommendationBase",
483
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { category: {
488
+ modelProperties: {
489
+ ...Resource.type.modelProperties,
490
+ category: {
484
491
  serializedName: "properties.category",
485
492
  type: {
486
493
  name: "String",
487
494
  },
488
- }, impact: {
495
+ },
496
+ impact: {
489
497
  serializedName: "properties.impact",
490
498
  type: {
491
499
  name: "String",
492
500
  },
493
- }, impactedField: {
501
+ },
502
+ impactedField: {
494
503
  serializedName: "properties.impactedField",
495
504
  type: {
496
505
  name: "String",
497
506
  },
498
- }, impactedValue: {
507
+ },
508
+ impactedValue: {
499
509
  serializedName: "properties.impactedValue",
500
510
  type: {
501
511
  name: "String",
502
512
  },
503
- }, lastUpdated: {
513
+ },
514
+ lastUpdated: {
504
515
  serializedName: "properties.lastUpdated",
505
516
  type: {
506
517
  name: "DateTime",
507
518
  },
508
- }, metadata: {
519
+ },
520
+ metadata: {
509
521
  serializedName: "properties.metadata",
510
522
  type: {
511
523
  name: "Dictionary",
@@ -513,23 +525,27 @@ export const ResourceRecommendationBase = {
513
525
  type: { name: "Dictionary", value: { type: { name: "any" } } },
514
526
  },
515
527
  },
516
- }, recommendationTypeId: {
528
+ },
529
+ recommendationTypeId: {
517
530
  serializedName: "properties.recommendationTypeId",
518
531
  type: {
519
532
  name: "String",
520
533
  },
521
- }, risk: {
534
+ },
535
+ risk: {
522
536
  serializedName: "properties.risk",
523
537
  type: {
524
538
  name: "String",
525
539
  },
526
- }, shortDescription: {
540
+ },
541
+ shortDescription: {
527
542
  serializedName: "properties.shortDescription",
528
543
  type: {
529
544
  name: "Composite",
530
545
  className: "ShortDescription",
531
546
  },
532
- }, suppressionIds: {
547
+ },
548
+ suppressionIds: {
533
549
  serializedName: "properties.suppressionIds",
534
550
  type: {
535
551
  name: "Sequence",
@@ -539,39 +555,46 @@ export const ResourceRecommendationBase = {
539
555
  },
540
556
  },
541
557
  },
542
- }, extendedProperties: {
558
+ },
559
+ extendedProperties: {
543
560
  serializedName: "properties.extendedProperties",
544
561
  type: {
545
562
  name: "Dictionary",
546
563
  value: { type: { name: "String" } },
547
564
  },
548
- }, resourceMetadata: {
565
+ },
566
+ resourceMetadata: {
549
567
  serializedName: "properties.resourceMetadata",
550
568
  type: {
551
569
  name: "Composite",
552
570
  className: "ResourceMetadata",
553
571
  },
554
- }, description: {
572
+ },
573
+ description: {
555
574
  serializedName: "properties.description",
556
575
  type: {
557
576
  name: "String",
558
577
  },
559
- }, label: {
578
+ },
579
+ label: {
560
580
  serializedName: "properties.label",
561
581
  type: {
562
582
  name: "String",
563
583
  },
564
- }, learnMoreLink: {
584
+ },
585
+ learnMoreLink: {
565
586
  serializedName: "properties.learnMoreLink",
566
587
  type: {
567
588
  name: "String",
568
589
  },
569
- }, potentialBenefits: {
590
+ },
591
+ potentialBenefits: {
570
592
  serializedName: "properties.potentialBenefits",
571
593
  type: {
572
594
  name: "String",
573
595
  },
574
- }, actions: {
596
+ },
597
+ actions: {
575
598
  serializedName: "properties.actions",
576
599
  type: {
577
600
  name: "Sequence",
@@ -584,7 +607,8 @@ export const ResourceRecommendationBase = {
584
607
  },
585
608
  },
586
609
  },
587
- }, remediation: {
610
+ },
611
+ remediation: {
588
612
  serializedName: "properties.remediation",
589
613
  type: {
590
614
  name: "Dictionary",
@@ -592,7 +616,8 @@ export const ResourceRecommendationBase = {
592
616
  type: { name: "Dictionary", value: { type: { name: "any" } } },
593
617
  },
594
618
  },
595
- }, exposedMetadataProperties: {
619
+ },
620
+ exposedMetadataProperties: {
596
621
  serializedName: "properties.exposedMetadataProperties",
597
622
  type: {
598
623
  name: "Dictionary",
@@ -600,30 +625,36 @@ export const ResourceRecommendationBase = {
600
625
  type: { name: "Dictionary", value: { type: { name: "any" } } },
601
626
  },
602
627
  },
603
- } }),
628
+ },
629
+ },
604
630
  },
605
631
  };
606
632
  export const SuppressionContract = {
607
633
  type: {
608
634
  name: "Composite",
609
635
  className: "SuppressionContract",
610
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { suppressionId: {
636
+ modelProperties: {
637
+ ...Resource.type.modelProperties,
638
+ suppressionId: {
611
639
  serializedName: "properties.suppressionId",
612
640
  type: {
613
641
  name: "String",
614
642
  },
615
- }, ttl: {
643
+ },
644
+ ttl: {
616
645
  serializedName: "properties.ttl",
617
646
  type: {
618
647
  name: "String",
619
648
  },
620
- }, expirationTimeStamp: {
649
+ },
650
+ expirationTimeStamp: {
621
651
  serializedName: "properties.expirationTimeStamp",
622
652
  readOnly: true,
623
653
  type: {
624
654
  name: "DateTime",
625
655
  },
626
- } }),
656
+ },
657
+ },
627
658
  },
628
659
  };
629
660
  export const RecommendationsGenerateHeaders = {
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,cAAc,GAA+B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gBAAgB;QAC3B,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,IA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B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,kCACV,QAAQ,CAAC,IAAI,CAAC,eAAe,KAChC,aAAa,EAAE;gBACb,cAAc,EAAE,0BAA0B;gBAC1C,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,GAAG,EAAE;gBACH,cAAc,EAAE,gBAAgB;gBAChC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,mBAAmB,EAAE;gBACnB,cAAc,EAAE,gCAAgC;gBAChD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;iBACjB;aACF,GACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAA+B;IACxE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gCAAgC;QAC3C,eAAe,EAAE;YACf,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,aAAa;gBAC7B,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const MetadataEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\",\n },\n },\n dependsOn: {\n serializedName: \"properties.dependsOn\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n applicableScenarios: {\n serializedName: \"properties.applicableScenarios\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n supportedValues: {\n serializedName: \"properties.supportedValues\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const MetadataSupportedValueDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ARMErrorResponseBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ArmErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ArmErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n },\n },\n },\n },\n};\n\nexport const MetadataEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntityListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigurationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const DigestConfig: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n actionGroupResourceId: {\n serializedName: \"actionGroupResourceId\",\n type: {\n name: \"String\",\n },\n },\n frequency: {\n serializedName: \"frequency\",\n type: {\n name: \"Number\",\n },\n },\n categories: {\n serializedName: \"categories\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n language: {\n serializedName: \"language\",\n type: {\n name: \"String\",\n },\n },\n state: {\n serializedName: \"state\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBaseListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBaseListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ShortDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n modelProperties: {\n problem: {\n serializedName: \"problem\",\n type: {\n name: \"String\",\n },\n },\n solution: {\n serializedName: \"solution\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceMetadata: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n modelProperties: {\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\",\n },\n },\n source: {\n serializedName: \"source\",\n type: {\n name: \"String\",\n },\n },\n action: {\n serializedName: \"action\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n singular: {\n serializedName: \"singular\",\n type: {\n name: \"String\",\n },\n },\n plural: {\n serializedName: \"plural\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OperationEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntityListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OperationEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n },\n },\n },\n },\n};\n\nexport const OperationDisplayInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SuppressionContractListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContractListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ConfigData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n modelProperties: {\n ...Resource.type.modelProperties,\n exclude: {\n serializedName: \"properties.exclude\",\n type: {\n name: \"Boolean\",\n },\n },\n lowCpuThreshold: {\n serializedName: \"properties.lowCpuThreshold\",\n type: {\n name: \"String\",\n },\n },\n digests: {\n serializedName: \"properties.digests\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n modelProperties: {\n ...Resource.type.modelProperties,\n category: {\n serializedName: \"properties.category\",\n type: {\n name: \"String\",\n },\n },\n impact: {\n serializedName: \"properties.impact\",\n type: {\n name: \"String\",\n },\n },\n impactedField: {\n serializedName: \"properties.impactedField\",\n type: {\n name: \"String\",\n },\n },\n impactedValue: {\n serializedName: \"properties.impactedValue\",\n type: {\n name: \"String\",\n },\n },\n lastUpdated: {\n serializedName: \"properties.lastUpdated\",\n type: {\n name: \"DateTime\",\n },\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n recommendationTypeId: {\n serializedName: \"properties.recommendationTypeId\",\n type: {\n name: \"String\",\n },\n },\n risk: {\n serializedName: \"properties.risk\",\n type: {\n name: \"String\",\n },\n },\n shortDescription: {\n serializedName: \"properties.shortDescription\",\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n },\n },\n suppressionIds: {\n serializedName: \"properties.suppressionIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Uuid\",\n },\n },\n },\n },\n extendedProperties: {\n serializedName: \"properties.extendedProperties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n resourceMetadata: {\n serializedName: \"properties.resourceMetadata\",\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n },\n },\n description: {\n serializedName: \"properties.description\",\n type: {\n name: \"String\",\n },\n },\n label: {\n serializedName: \"properties.label\",\n type: {\n name: \"String\",\n },\n },\n learnMoreLink: {\n serializedName: \"properties.learnMoreLink\",\n type: {\n name: \"String\",\n },\n },\n potentialBenefits: {\n serializedName: \"properties.potentialBenefits\",\n type: {\n name: \"String\",\n },\n },\n actions: {\n serializedName: \"properties.actions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n remediation: {\n serializedName: \"properties.remediation\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n exposedMetadataProperties: {\n serializedName: \"properties.exposedMetadataProperties\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n};\n\nexport const SuppressionContract: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n modelProperties: {\n ...Resource.type.modelProperties,\n suppressionId: {\n serializedName: \"properties.suppressionId\",\n type: {\n name: \"String\",\n },\n },\n ttl: {\n serializedName: \"properties.ttl\",\n type: {\n name: \"String\",\n },\n },\n expirationTimeStamp: {\n serializedName: \"properties.expirationTimeStamp\",\n readOnly: true,\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const RecommendationsGenerateHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RecommendationsGenerateHeaders\",\n modelProperties: {\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,cAAc,GAA+B;IACxD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,gBAAgB;QAC3B,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,WAAW,EAAE;gBACX,cAAc,EAAE,wBAAwB;gBACxC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,SAAS,EAAE;gBACT,cAAc,EAAE,sBAAsB;gBACtC,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,mBAAmB,EAAE;gBACnB,cAAc,EAAE,gCAAgC;gBAChD,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;YACD,eAAe,EAAE;gBACf,cAAc,EAAE,4BAA4B;gBAC5C,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ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F;SACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const MetadataEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"properties.displayName\",\n type: {\n name: \"String\",\n },\n },\n dependsOn: {\n serializedName: \"properties.dependsOn\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n applicableScenarios: {\n serializedName: \"properties.applicableScenarios\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n supportedValues: {\n serializedName: \"properties.supportedValues\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const MetadataSupportedValueDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataSupportedValueDetail\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\",\n },\n },\n displayName: {\n serializedName: \"displayName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ARMErrorResponseBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ArmErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ArmErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ARMErrorResponseBody\",\n },\n },\n },\n },\n};\n\nexport const MetadataEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MetadataEntityListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MetadataEntity\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfigurationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigurationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const DigestConfig: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n actionGroupResourceId: {\n serializedName: \"actionGroupResourceId\",\n type: {\n name: \"String\",\n },\n },\n frequency: {\n serializedName: \"frequency\",\n type: {\n name: \"Number\",\n },\n },\n categories: {\n serializedName: \"categories\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n language: {\n serializedName: \"language\",\n type: {\n name: \"String\",\n },\n },\n state: {\n serializedName: \"state\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBaseListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBaseListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ShortDescription: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n modelProperties: {\n problem: {\n serializedName: \"problem\",\n type: {\n name: \"String\",\n },\n },\n solution: {\n serializedName: \"solution\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceMetadata: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n modelProperties: {\n resourceId: {\n serializedName: \"resourceId\",\n type: {\n name: \"String\",\n },\n },\n source: {\n serializedName: \"source\",\n type: {\n name: \"String\",\n },\n },\n action: {\n serializedName: \"action\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n singular: {\n serializedName: \"singular\",\n type: {\n name: \"String\",\n },\n },\n plural: {\n serializedName: \"plural\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const OperationEntityListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntityListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const OperationEntity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationEntity\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n },\n },\n },\n },\n};\n\nexport const OperationDisplayInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplayInfo\",\n modelProperties: {\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const SuppressionContractListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContractListResult\",\n modelProperties: {\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ConfigData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfigData\",\n modelProperties: {\n ...Resource.type.modelProperties,\n exclude: {\n serializedName: \"properties.exclude\",\n type: {\n name: \"Boolean\",\n },\n },\n lowCpuThreshold: {\n serializedName: \"properties.lowCpuThreshold\",\n type: {\n name: \"String\",\n },\n },\n digests: {\n serializedName: \"properties.digests\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"DigestConfig\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ResourceRecommendationBase: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceRecommendationBase\",\n modelProperties: {\n ...Resource.type.modelProperties,\n category: {\n serializedName: \"properties.category\",\n type: {\n name: \"String\",\n },\n },\n impact: {\n serializedName: \"properties.impact\",\n type: {\n name: \"String\",\n },\n },\n impactedField: {\n serializedName: \"properties.impactedField\",\n type: {\n name: \"String\",\n },\n },\n impactedValue: {\n serializedName: \"properties.impactedValue\",\n type: {\n name: \"String\",\n },\n },\n lastUpdated: {\n serializedName: \"properties.lastUpdated\",\n type: {\n name: \"DateTime\",\n },\n },\n metadata: {\n serializedName: \"properties.metadata\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n recommendationTypeId: {\n serializedName: \"properties.recommendationTypeId\",\n type: {\n name: \"String\",\n },\n },\n risk: {\n serializedName: \"properties.risk\",\n type: {\n name: \"String\",\n },\n },\n shortDescription: {\n serializedName: \"properties.shortDescription\",\n type: {\n name: \"Composite\",\n className: \"ShortDescription\",\n },\n },\n suppressionIds: {\n serializedName: \"properties.suppressionIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Uuid\",\n },\n },\n },\n },\n extendedProperties: {\n serializedName: \"properties.extendedProperties\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n resourceMetadata: {\n serializedName: \"properties.resourceMetadata\",\n type: {\n name: \"Composite\",\n className: \"ResourceMetadata\",\n },\n },\n description: {\n serializedName: \"properties.description\",\n type: {\n name: \"String\",\n },\n },\n label: {\n serializedName: \"properties.label\",\n type: {\n name: \"String\",\n },\n },\n learnMoreLink: {\n serializedName: \"properties.learnMoreLink\",\n type: {\n name: \"String\",\n },\n },\n potentialBenefits: {\n serializedName: \"properties.potentialBenefits\",\n type: {\n name: \"String\",\n },\n },\n actions: {\n serializedName: \"properties.actions\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n remediation: {\n serializedName: \"properties.remediation\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n exposedMetadataProperties: {\n serializedName: \"properties.exposedMetadataProperties\",\n type: {\n name: \"Dictionary\",\n value: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n },\n },\n },\n};\n\nexport const SuppressionContract: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SuppressionContract\",\n modelProperties: {\n ...Resource.type.modelProperties,\n suppressionId: {\n serializedName: \"properties.suppressionId\",\n type: {\n name: \"String\",\n },\n },\n ttl: {\n serializedName: \"properties.ttl\",\n type: {\n name: \"String\",\n },\n },\n expirationTimeStamp: {\n serializedName: \"properties.expirationTimeStamp\",\n readOnly: true,\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const RecommendationsGenerateHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"RecommendationsGenerateHeaders\",\n modelProperties: {\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\",\n },\n },\n retryAfter: {\n serializedName: \"retry-after\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}