@azure/arm-selfhelp 2.0.0-alpha.20250718.1 → 2.0.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.
Files changed (106) hide show
  1. package/dist/browser/helpRP.js +21 -5
  2. package/dist/browser/helpRP.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +99 -45
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/checkNameAvailability.js +1 -0
  8. package/dist/browser/operations/checkNameAvailability.js.map +1 -1
  9. package/dist/browser/operations/diagnostics.js +12 -6
  10. package/dist/browser/operations/diagnostics.js.map +1 -1
  11. package/dist/browser/operations/discoverySolution.js +23 -40
  12. package/dist/browser/operations/discoverySolution.js.map +1 -1
  13. package/dist/browser/operations/discoverySolutionNLP.js +1 -0
  14. package/dist/browser/operations/discoverySolutionNLP.js.map +1 -1
  15. package/dist/browser/operations/operations.js +23 -40
  16. package/dist/browser/operations/operations.js.map +1 -1
  17. package/dist/browser/operations/simplifiedSolutions.js +12 -6
  18. package/dist/browser/operations/simplifiedSolutions.js.map +1 -1
  19. package/dist/browser/operations/solution.js +23 -12
  20. package/dist/browser/operations/solution.js.map +1 -1
  21. package/dist/browser/operations/solutionSelfHelp.js +1 -0
  22. package/dist/browser/operations/solutionSelfHelp.js.map +1 -1
  23. package/dist/browser/operations/troubleshooters.js +1 -0
  24. package/dist/browser/operations/troubleshooters.js.map +1 -1
  25. package/dist/browser/pagingHelper.js +2 -4
  26. package/dist/browser/pagingHelper.js.map +1 -1
  27. package/dist/commonjs/helpRP.js +21 -5
  28. package/dist/commonjs/helpRP.js.map +1 -1
  29. package/dist/commonjs/lroImpl.js +7 -3
  30. package/dist/commonjs/lroImpl.js.map +1 -1
  31. package/dist/commonjs/models/mappers.js +99 -45
  32. package/dist/commonjs/models/mappers.js.map +1 -1
  33. package/dist/commonjs/operations/checkNameAvailability.js +1 -0
  34. package/dist/commonjs/operations/checkNameAvailability.js.map +1 -1
  35. package/dist/commonjs/operations/diagnostics.js +12 -6
  36. package/dist/commonjs/operations/diagnostics.js.map +1 -1
  37. package/dist/commonjs/operations/discoverySolution.js +23 -39
  38. package/dist/commonjs/operations/discoverySolution.js.map +1 -1
  39. package/dist/commonjs/operations/discoverySolutionNLP.js +1 -0
  40. package/dist/commonjs/operations/discoverySolutionNLP.js.map +1 -1
  41. package/dist/commonjs/operations/operations.js +23 -39
  42. package/dist/commonjs/operations/operations.js.map +1 -1
  43. package/dist/commonjs/operations/simplifiedSolutions.js +12 -6
  44. package/dist/commonjs/operations/simplifiedSolutions.js.map +1 -1
  45. package/dist/commonjs/operations/solution.js +23 -12
  46. package/dist/commonjs/operations/solution.js.map +1 -1
  47. package/dist/commonjs/operations/solutionSelfHelp.js +1 -0
  48. package/dist/commonjs/operations/solutionSelfHelp.js.map +1 -1
  49. package/dist/commonjs/operations/troubleshooters.js +1 -0
  50. package/dist/commonjs/operations/troubleshooters.js.map +1 -1
  51. package/dist/commonjs/pagingHelper.js +2 -4
  52. package/dist/commonjs/pagingHelper.js.map +1 -1
  53. package/dist/commonjs/tsdoc-metadata.json +1 -1
  54. package/dist/esm/helpRP.js +21 -5
  55. package/dist/esm/helpRP.js.map +1 -1
  56. package/dist/esm/lroImpl.js +7 -3
  57. package/dist/esm/lroImpl.js.map +1 -1
  58. package/dist/esm/models/mappers.js +99 -45
  59. package/dist/esm/models/mappers.js.map +1 -1
  60. package/dist/esm/operations/checkNameAvailability.js +1 -0
  61. package/dist/esm/operations/checkNameAvailability.js.map +1 -1
  62. package/dist/esm/operations/diagnostics.js +12 -6
  63. package/dist/esm/operations/diagnostics.js.map +1 -1
  64. package/dist/esm/operations/discoverySolution.js +23 -40
  65. package/dist/esm/operations/discoverySolution.js.map +1 -1
  66. package/dist/esm/operations/discoverySolutionNLP.js +1 -0
  67. package/dist/esm/operations/discoverySolutionNLP.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/simplifiedSolutions.js +12 -6
  71. package/dist/esm/operations/simplifiedSolutions.js.map +1 -1
  72. package/dist/esm/operations/solution.js +23 -12
  73. package/dist/esm/operations/solution.js.map +1 -1
  74. package/dist/esm/operations/solutionSelfHelp.js +1 -0
  75. package/dist/esm/operations/solutionSelfHelp.js.map +1 -1
  76. package/dist/esm/operations/troubleshooters.js +1 -0
  77. package/dist/esm/operations/troubleshooters.js.map +1 -1
  78. package/dist/esm/pagingHelper.js +2 -4
  79. package/dist/esm/pagingHelper.js.map +1 -1
  80. package/dist/react-native/helpRP.js +21 -5
  81. package/dist/react-native/helpRP.js.map +1 -1
  82. package/dist/react-native/lroImpl.js +7 -3
  83. package/dist/react-native/lroImpl.js.map +1 -1
  84. package/dist/react-native/models/mappers.js +99 -45
  85. package/dist/react-native/models/mappers.js.map +1 -1
  86. package/dist/react-native/operations/checkNameAvailability.js +1 -0
  87. package/dist/react-native/operations/checkNameAvailability.js.map +1 -1
  88. package/dist/react-native/operations/diagnostics.js +12 -6
  89. package/dist/react-native/operations/diagnostics.js.map +1 -1
  90. package/dist/react-native/operations/discoverySolution.js +23 -40
  91. package/dist/react-native/operations/discoverySolution.js.map +1 -1
  92. package/dist/react-native/operations/discoverySolutionNLP.js +1 -0
  93. package/dist/react-native/operations/discoverySolutionNLP.js.map +1 -1
  94. package/dist/react-native/operations/operations.js +23 -40
  95. package/dist/react-native/operations/operations.js.map +1 -1
  96. package/dist/react-native/operations/simplifiedSolutions.js +12 -6
  97. package/dist/react-native/operations/simplifiedSolutions.js.map +1 -1
  98. package/dist/react-native/operations/solution.js +23 -12
  99. package/dist/react-native/operations/solution.js.map +1 -1
  100. package/dist/react-native/operations/solutionSelfHelp.js +1 -0
  101. package/dist/react-native/operations/solutionSelfHelp.js.map +1 -1
  102. package/dist/react-native/operations/troubleshooters.js +1 -0
  103. package/dist/react-native/operations/troubleshooters.js.map +1 -1
  104. package/dist/react-native/pagingHelper.js +2 -4
  105. package/dist/react-native/pagingHelper.js.map +1 -1
  106. package/package.json +2 -2
@@ -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 (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
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 = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
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;;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,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,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(\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"]}
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"]}
@@ -13,13 +13,14 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
13
  const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
14
  const index_js_1 = require("./operations/index.js");
15
15
  class HelpRP extends coreClient.ServiceClient {
16
+ $host;
17
+ apiVersion;
16
18
  /**
17
19
  * Initializes a new instance of the HelpRP class.
18
20
  * @param credentials Subscription credentials which uniquely identify client subscription.
19
21
  * @param options The parameter options
20
22
  */
21
23
  constructor(credentials, options) {
22
- var _a, _b, _c;
23
24
  if (credentials === undefined) {
24
25
  throw new Error("'credentials' cannot be null");
25
26
  }
@@ -35,12 +36,17 @@ class HelpRP extends coreClient.ServiceClient {
35
36
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
37
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
38
  : `${packageDetails}`;
38
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39
+ const optionsWithDefaults = {
40
+ ...defaults,
41
+ ...options,
42
+ userAgentOptions: {
39
43
  userAgentPrefix,
40
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
44
+ },
45
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
46
+ };
41
47
  super(optionsWithDefaults);
42
48
  let bearerTokenAuthenticationPolicyFound = false;
43
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
49
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
44
50
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
51
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
52
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -54,7 +60,8 @@ class HelpRP extends coreClient.ServiceClient {
54
60
  });
55
61
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
62
  credential: credentials,
57
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
63
+ scopes: optionsWithDefaults.credentialScopes ??
64
+ `${optionsWithDefaults.endpoint}/.default`,
58
65
  challengeCallbacks: {
59
66
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
60
67
  },
@@ -99,6 +106,15 @@ class HelpRP extends coreClient.ServiceClient {
99
106
  };
100
107
  this.pipeline.addPolicy(apiVersionPolicy);
101
108
  }
109
+ operations;
110
+ checkNameAvailability;
111
+ diagnostics;
112
+ discoverySolution;
113
+ solution;
114
+ simplifiedSolutions;
115
+ troubleshooters;
116
+ solutionSelfHelp;
117
+ discoverySolutionNLP;
102
118
  }
103
119
  exports.HelpRP = HelpRP;
104
120
  //# sourceMappingURL=helpRP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpRP.js","sourceRoot":"","sources":["../../src/helpRP.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAU+B;AAc/B,MAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAIlD;;;;OAIG;IACH,YACE,WAAqC,EACrC,OAA8B;;QAE9B,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAyB;YACrC,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,oCAAoC,CAAC;QAC5D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EACN,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,GACxE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CA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BACH,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;CAWF;AAhID,wBAgIC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n CheckNameAvailabilityImpl,\n DiagnosticsImpl,\n DiscoverySolutionImpl,\n SolutionImpl,\n SimplifiedSolutionsImpl,\n TroubleshootersImpl,\n SolutionSelfHelpImpl,\n DiscoverySolutionNLPImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n CheckNameAvailability,\n Diagnostics,\n DiscoverySolution,\n Solution,\n SimplifiedSolutions,\n Troubleshooters,\n SolutionSelfHelp,\n DiscoverySolutionNLP,\n} from \"./operationsInterfaces/index.js\";\nimport { HelpRPOptionalParams } from \"./models/index.js\";\n\nexport class HelpRP extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the HelpRP class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: HelpRPOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: HelpRPOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.6`;\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:\n 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 ===\n 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 ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-03-01-preview\";\n this.operations = new OperationsImpl(this);\n this.checkNameAvailability = new CheckNameAvailabilityImpl(this);\n this.diagnostics = new DiagnosticsImpl(this);\n this.discoverySolution = new DiscoverySolutionImpl(this);\n this.solution = new SolutionImpl(this);\n this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);\n this.troubleshooters = new TroubleshootersImpl(this);\n this.solutionSelfHelp = new SolutionSelfHelpImpl(this);\n this.discoverySolutionNLP = new DiscoverySolutionNLPImpl(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(\n request: PipelineRequest,\n next: SendRequest,\n ): 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 operations: Operations;\n checkNameAvailability: CheckNameAvailability;\n diagnostics: Diagnostics;\n discoverySolution: DiscoverySolution;\n solution: Solution;\n simplifiedSolutions: SimplifiedSolutions;\n troubleshooters: Troubleshooters;\n solutionSelfHelp: SolutionSelfHelp;\n discoverySolutionNLP: DiscoverySolutionNLP;\n}\n"]}
1
+ {"version":3,"file":"helpRP.js","sourceRoot":"","sources":["../../src/helpRP.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAU+B;AAc/B,MAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAClD,KAAK,CAAS;IACd,UAAU,CAAS;IAEnB;;;;OAIG;IACH,YACE,WAAqC,EACrC,OAA8B;QAE9B,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ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AE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,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,UAAU,CAAa;IACvB,qBAAqB,CAAwB;IAC7C,WAAW,CAAc;IACzB,iBAAiB,CAAoB;IACrC,QAAQ,CAAW;IACnB,mBAAmB,CAAsB;IACzC,eAAe,CAAkB;IACjC,gBAAgB,CAAmB;IACnC,oBAAoB,CAAuB;CAC5C;AAhID,wBAgIC","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 {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n CheckNameAvailabilityImpl,\n DiagnosticsImpl,\n DiscoverySolutionImpl,\n SolutionImpl,\n SimplifiedSolutionsImpl,\n TroubleshootersImpl,\n SolutionSelfHelpImpl,\n DiscoverySolutionNLPImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n CheckNameAvailability,\n Diagnostics,\n DiscoverySolution,\n Solution,\n SimplifiedSolutions,\n Troubleshooters,\n SolutionSelfHelp,\n DiscoverySolutionNLP,\n} from \"./operationsInterfaces/index.js\";\nimport { HelpRPOptionalParams } from \"./models/index.js\";\n\nexport class HelpRP extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the HelpRP class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: HelpRPOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: HelpRPOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.6`;\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:\n 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 ===\n 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 ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-03-01-preview\";\n this.operations = new OperationsImpl(this);\n this.checkNameAvailability = new CheckNameAvailabilityImpl(this);\n this.diagnostics = new DiagnosticsImpl(this);\n this.discoverySolution = new DiscoverySolutionImpl(this);\n this.solution = new SolutionImpl(this);\n this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);\n this.troubleshooters = new TroubleshootersImpl(this);\n this.solutionSelfHelp = new SolutionSelfHelpImpl(this);\n this.discoverySolutionNLP = new DiscoverySolutionNLPImpl(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(\n request: PipelineRequest,\n next: SendRequest,\n ): 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 operations: Operations;\n checkNameAvailability: CheckNameAvailability;\n diagnostics: Diagnostics;\n discoverySolution: DiscoverySolution;\n solution: Solution;\n simplifiedSolutions: SimplifiedSolutions;\n troubleshooters: Troubleshooters;\n solutionSelfHelp: SolutionSelfHelp;\n discoverySolutionNLP: DiscoverySolutionNLP;\n}\n"]}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createLroSpec = createLroSpec;
4
- const tslib_1 = require("tslib");
5
4
  function createLroSpec(inputs) {
6
5
  const { args, spec, sendOperationFn } = inputs;
7
6
  return {
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
9
8
  requestPath: spec.path,
10
9
  sendInitialRequest: () => sendOperationFn(args, spec),
11
10
  sendPollRequest: (path, options) => {
12
- const { requestBody } = spec, restSpec = tslib_1.__rest(spec, ["requestBody"]);
13
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
11
+ const { requestBody, ...restSpec } = spec;
12
+ return sendOperationFn(args, {
13
+ ...restSpec,
14
+ httpMethod: "GET",
15
+ path,
16
+ abortSignal: options?.abortSignal,
17
+ });
14
18
  },
15
19
  };
16
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,kBAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;AA3BD,SAAgB,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
@@ -1544,32 +1544,40 @@ exports.ProxyResource = {
1544
1544
  type: {
1545
1545
  name: "Composite",
1546
1546
  className: "ProxyResource",
1547
- modelProperties: Object.assign({}, exports.Resource.type.modelProperties),
1547
+ modelProperties: {
1548
+ ...exports.Resource.type.modelProperties,
1549
+ },
1548
1550
  },
1549
1551
  };
1550
1552
  exports.Video = {
1551
1553
  type: {
1552
1554
  name: "Composite",
1553
1555
  className: "Video",
1554
- modelProperties: Object.assign(Object.assign({}, exports.VideoGroupVideo.type.modelProperties), { replacementKey: {
1556
+ modelProperties: {
1557
+ ...exports.VideoGroupVideo.type.modelProperties,
1558
+ replacementKey: {
1555
1559
  serializedName: "replacementKey",
1556
1560
  type: {
1557
1561
  name: "String",
1558
1562
  },
1559
- } }),
1563
+ },
1564
+ },
1560
1565
  },
1561
1566
  };
1562
1567
  exports.DiagnosticResource = {
1563
1568
  type: {
1564
1569
  name: "Composite",
1565
1570
  className: "DiagnosticResource",
1566
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { globalParameters: {
1571
+ modelProperties: {
1572
+ ...exports.ProxyResource.type.modelProperties,
1573
+ globalParameters: {
1567
1574
  serializedName: "properties.globalParameters",
1568
1575
  type: {
1569
1576
  name: "Dictionary",
1570
1577
  value: { type: { name: "String" } },
1571
1578
  },
1572
- }, insights: {
1579
+ },
1580
+ insights: {
1573
1581
  serializedName: "properties.insights",
1574
1582
  type: {
1575
1583
  name: "Sequence",
@@ -1580,19 +1588,22 @@ exports.DiagnosticResource = {
1580
1588
  },
1581
1589
  },
1582
1590
  },
1583
- }, acceptedAt: {
1591
+ },
1592
+ acceptedAt: {
1584
1593
  serializedName: "properties.acceptedAt",
1585
1594
  readOnly: true,
1586
1595
  type: {
1587
1596
  name: "String",
1588
1597
  },
1589
- }, provisioningState: {
1598
+ },
1599
+ provisioningState: {
1590
1600
  serializedName: "properties.provisioningState",
1591
1601
  readOnly: true,
1592
1602
  type: {
1593
1603
  name: "String",
1594
1604
  },
1595
- }, diagnostics: {
1605
+ },
1606
+ diagnostics: {
1596
1607
  serializedName: "properties.diagnostics",
1597
1608
  readOnly: true,
1598
1609
  type: {
@@ -1604,14 +1615,17 @@ exports.DiagnosticResource = {
1604
1615
  },
1605
1616
  },
1606
1617
  },
1607
- } }),
1618
+ },
1619
+ },
1608
1620
  },
1609
1621
  };
1610
1622
  exports.SolutionMetadataResource = {
1611
1623
  type: {
1612
1624
  name: "Composite",
1613
1625
  className: "SolutionMetadataResource",
1614
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { solutions: {
1626
+ modelProperties: {
1627
+ ...exports.ProxyResource.type.modelProperties,
1628
+ solutions: {
1615
1629
  serializedName: "properties.solutions",
1616
1630
  type: {
1617
1631
  name: "Sequence",
@@ -1622,14 +1636,17 @@ exports.SolutionMetadataResource = {
1622
1636
  },
1623
1637
  },
1624
1638
  },
1625
- } }),
1639
+ },
1640
+ },
1626
1641
  },
1627
1642
  };
1628
1643
  exports.SolutionResource = {
1629
1644
  type: {
1630
1645
  name: "Composite",
1631
1646
  className: "SolutionResource",
1632
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { triggerCriteria: {
1647
+ modelProperties: {
1648
+ ...exports.ProxyResource.type.modelProperties,
1649
+ triggerCriteria: {
1633
1650
  serializedName: "properties.triggerCriteria",
1634
1651
  type: {
1635
1652
  name: "Sequence",
@@ -1640,43 +1657,50 @@ exports.SolutionResource = {
1640
1657
  },
1641
1658
  },
1642
1659
  },
1643
- }, parameters: {
1660
+ },
1661
+ parameters: {
1644
1662
  serializedName: "properties.parameters",
1645
1663
  type: {
1646
1664
  name: "Dictionary",
1647
1665
  value: { type: { name: "String" } },
1648
1666
  },
1649
- }, solutionId: {
1667
+ },
1668
+ solutionId: {
1650
1669
  serializedName: "properties.solutionId",
1651
1670
  readOnly: true,
1652
1671
  type: {
1653
1672
  name: "String",
1654
1673
  },
1655
- }, provisioningState: {
1674
+ },
1675
+ provisioningState: {
1656
1676
  serializedName: "properties.provisioningState",
1657
1677
  readOnly: true,
1658
1678
  type: {
1659
1679
  name: "String",
1660
1680
  },
1661
- }, title: {
1681
+ },
1682
+ title: {
1662
1683
  serializedName: "properties.title",
1663
1684
  readOnly: true,
1664
1685
  type: {
1665
1686
  name: "String",
1666
1687
  },
1667
- }, content: {
1688
+ },
1689
+ content: {
1668
1690
  serializedName: "properties.content",
1669
1691
  readOnly: true,
1670
1692
  type: {
1671
1693
  name: "String",
1672
1694
  },
1673
- }, replacementMaps: {
1695
+ },
1696
+ replacementMaps: {
1674
1697
  serializedName: "properties.replacementMaps",
1675
1698
  type: {
1676
1699
  name: "Composite",
1677
1700
  className: "ReplacementMaps",
1678
1701
  },
1679
- }, sections: {
1702
+ },
1703
+ sections: {
1680
1704
  serializedName: "properties.sections",
1681
1705
  readOnly: true,
1682
1706
  type: {
@@ -1688,74 +1712,88 @@ exports.SolutionResource = {
1688
1712
  },
1689
1713
  },
1690
1714
  },
1691
- } }),
1715
+ },
1716
+ },
1692
1717
  },
1693
1718
  };
1694
1719
  exports.SimplifiedSolutionsResource = {
1695
1720
  type: {
1696
1721
  name: "Composite",
1697
1722
  className: "SimplifiedSolutionsResource",
1698
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { solutionId: {
1723
+ modelProperties: {
1724
+ ...exports.ProxyResource.type.modelProperties,
1725
+ solutionId: {
1699
1726
  serializedName: "properties.solutionId",
1700
1727
  type: {
1701
1728
  name: "String",
1702
1729
  },
1703
- }, parameters: {
1730
+ },
1731
+ parameters: {
1704
1732
  serializedName: "properties.parameters",
1705
1733
  type: {
1706
1734
  name: "Dictionary",
1707
1735
  value: { type: { name: "String" } },
1708
1736
  },
1709
- }, title: {
1737
+ },
1738
+ title: {
1710
1739
  serializedName: "properties.title",
1711
1740
  readOnly: true,
1712
1741
  type: {
1713
1742
  name: "String",
1714
1743
  },
1715
- }, appendix: {
1744
+ },
1745
+ appendix: {
1716
1746
  serializedName: "properties.appendix",
1717
1747
  readOnly: true,
1718
1748
  type: {
1719
1749
  name: "Dictionary",
1720
1750
  value: { type: { name: "String" } },
1721
1751
  },
1722
- }, content: {
1752
+ },
1753
+ content: {
1723
1754
  serializedName: "properties.content",
1724
1755
  readOnly: true,
1725
1756
  type: {
1726
1757
  name: "String",
1727
1758
  },
1728
- }, provisioningState: {
1759
+ },
1760
+ provisioningState: {
1729
1761
  serializedName: "properties.provisioningState",
1730
1762
  readOnly: true,
1731
1763
  type: {
1732
1764
  name: "String",
1733
1765
  },
1734
- } }),
1766
+ },
1767
+ },
1735
1768
  },
1736
1769
  };
1737
1770
  exports.TroubleshooterResource = {
1738
1771
  type: {
1739
1772
  name: "Composite",
1740
1773
  className: "TroubleshooterResource",
1741
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { solutionId: {
1774
+ modelProperties: {
1775
+ ...exports.ProxyResource.type.modelProperties,
1776
+ solutionId: {
1742
1777
  serializedName: "properties.solutionId",
1743
1778
  type: {
1744
1779
  name: "String",
1745
1780
  },
1746
- }, parameters: {
1781
+ },
1782
+ parameters: {
1747
1783
  serializedName: "properties.parameters",
1748
1784
  type: {
1749
1785
  name: "Dictionary",
1750
1786
  value: { type: { name: "String" } },
1751
1787
  },
1752
- }, provisioningState: {
1788
+ },
1789
+ provisioningState: {
1753
1790
  serializedName: "properties.provisioningState",
1754
1791
  readOnly: true,
1755
1792
  type: {
1756
1793
  name: "String",
1757
1794
  },
1758
- }, steps: {
1795
+ },
1796
+ steps: {
1759
1797
  serializedName: "properties.steps",
1760
1798
  readOnly: true,
1761
1799
  type: {
@@ -1767,38 +1805,45 @@ exports.TroubleshooterResource = {
1767
1805
  },
1768
1806
  },
1769
1807
  },
1770
- } }),
1808
+ },
1809
+ },
1771
1810
  },
1772
1811
  };
1773
1812
  exports.SolutionResourceSelfHelp = {
1774
1813
  type: {
1775
1814
  name: "Composite",
1776
1815
  className: "SolutionResourceSelfHelp",
1777
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { solutionId: {
1816
+ modelProperties: {
1817
+ ...exports.ProxyResource.type.modelProperties,
1818
+ solutionId: {
1778
1819
  serializedName: "properties.solutionId",
1779
1820
  readOnly: true,
1780
1821
  type: {
1781
1822
  name: "String",
1782
1823
  },
1783
- }, title: {
1824
+ },
1825
+ title: {
1784
1826
  serializedName: "properties.title",
1785
1827
  readOnly: true,
1786
1828
  type: {
1787
1829
  name: "String",
1788
1830
  },
1789
- }, content: {
1831
+ },
1832
+ content: {
1790
1833
  serializedName: "properties.content",
1791
1834
  readOnly: true,
1792
1835
  type: {
1793
1836
  name: "String",
1794
1837
  },
1795
- }, replacementMaps: {
1838
+ },
1839
+ replacementMaps: {
1796
1840
  serializedName: "properties.replacementMaps",
1797
1841
  type: {
1798
1842
  name: "Composite",
1799
1843
  className: "ReplacementMapsSelfHelp",
1800
1844
  },
1801
- }, sections: {
1845
+ },
1846
+ sections: {
1802
1847
  serializedName: "properties.sections",
1803
1848
  readOnly: true,
1804
1849
  type: {
@@ -1810,34 +1855,41 @@ exports.SolutionResourceSelfHelp = {
1810
1855
  },
1811
1856
  },
1812
1857
  },
1813
- } }),
1858
+ },
1859
+ },
1814
1860
  },
1815
1861
  };
1816
1862
  exports.SolutionNlpMetadataResource = {
1817
1863
  type: {
1818
1864
  name: "Composite",
1819
1865
  className: "SolutionNlpMetadataResource",
1820
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { problemTitle: {
1866
+ modelProperties: {
1867
+ ...exports.ProxyResource.type.modelProperties,
1868
+ problemTitle: {
1821
1869
  serializedName: "properties.problemTitle",
1822
1870
  type: {
1823
1871
  name: "String",
1824
1872
  },
1825
- }, problemDescription: {
1873
+ },
1874
+ problemDescription: {
1826
1875
  serializedName: "properties.problemDescription",
1827
1876
  type: {
1828
1877
  name: "String",
1829
1878
  },
1830
- }, serviceId: {
1879
+ },
1880
+ serviceId: {
1831
1881
  serializedName: "properties.serviceId",
1832
1882
  type: {
1833
1883
  name: "String",
1834
1884
  },
1835
- }, problemClassificationId: {
1885
+ },
1886
+ problemClassificationId: {
1836
1887
  serializedName: "properties.problemClassificationId",
1837
1888
  type: {
1838
1889
  name: "String",
1839
1890
  },
1840
- }, solutions: {
1891
+ },
1892
+ solutions: {
1841
1893
  serializedName: "properties.solutions",
1842
1894
  type: {
1843
1895
  name: "Sequence",
@@ -1848,7 +1900,8 @@ exports.SolutionNlpMetadataResource = {
1848
1900
  },
1849
1901
  },
1850
1902
  },
1851
- }, relatedServices: {
1903
+ },
1904
+ relatedServices: {
1852
1905
  serializedName: "properties.relatedServices",
1853
1906
  type: {
1854
1907
  name: "Sequence",
@@ -1859,7 +1912,8 @@ exports.SolutionNlpMetadataResource = {
1859
1912
  },
1860
1913
  },
1861
1914
  },
1862
- } }),
1915
+ },
1916
+ },
1863
1917
  },
1864
1918
  };
1865
1919
  exports.SolutionUpdateHeaders = {