@azure/arm-selfhelp 2.0.0-alpha.20250619.1 → 2.0.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 (107) 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 +11 -11
  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
  107. /package/review/{arm-selfhelp.api.md → arm-selfhelp-node.api.md} +0 -0
@@ -9,13 +9,14 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { OperationsImpl, CheckNameAvailabilityImpl, DiagnosticsImpl, DiscoverySolutionImpl, SolutionImpl, SimplifiedSolutionsImpl, TroubleshootersImpl, SolutionSelfHelpImpl, DiscoverySolutionNLPImpl, } from "./operations/index.js";
11
11
  export class HelpRP extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
12
14
  /**
13
15
  * Initializes a new instance of the HelpRP class.
14
16
  * @param credentials Subscription credentials which uniquely identify client subscription.
15
17
  * @param options The parameter options
16
18
  */
17
19
  constructor(credentials, options) {
18
- var _a, _b, _c;
19
20
  if (credentials === undefined) {
20
21
  throw new Error("'credentials' cannot be null");
21
22
  }
@@ -31,12 +32,17 @@ export class HelpRP extends coreClient.ServiceClient {
31
32
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
32
33
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
33
34
  : `${packageDetails}`;
34
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
35
+ const optionsWithDefaults = {
36
+ ...defaults,
37
+ ...options,
38
+ userAgentOptions: {
35
39
  userAgentPrefix,
36
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
40
+ },
41
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
42
+ };
37
43
  super(optionsWithDefaults);
38
44
  let bearerTokenAuthenticationPolicyFound = false;
39
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
45
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
40
46
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
41
47
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
42
48
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -50,7 +56,8 @@ export class HelpRP extends coreClient.ServiceClient {
50
56
  });
51
57
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
52
58
  credential: credentials,
53
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
59
+ scopes: optionsWithDefaults.credentialScopes ??
60
+ `${optionsWithDefaults.endpoint}/.default`,
54
61
  challengeCallbacks: {
55
62
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
56
63
  },
@@ -95,5 +102,14 @@ export class HelpRP extends coreClient.ServiceClient {
95
102
  };
96
103
  this.pipeline.addPolicy(apiVersionPolicy);
97
104
  }
105
+ operations;
106
+ checkNameAvailability;
107
+ diagnostics;
108
+ discoverySolution;
109
+ solution;
110
+ simplifiedSolutions;
111
+ troubleshooters;
112
+ solutionSelfHelp;
113
+ discoverySolutionNLP;
98
114
  }
99
115
  //# sourceMappingURL=helpRP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpRP.js","sourceRoot":"","sources":["../../src/helpRP.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAc/B,MAAM,OAAO,MAAO,SAAQ,UAAU,CAAC,aAAa;IAIlD;;;;OAIG;IACH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C,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,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;CAWF","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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAc/B,MAAM,OAAO,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,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,E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,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","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,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  export function createLroSpec(inputs) {
3
2
  const { args, spec, sendOperationFn } = inputs;
4
3
  return {
@@ -6,8 +5,13 @@ export function createLroSpec(inputs) {
6
5
  requestPath: spec.path,
7
6
  sendInitialRequest: () => sendOperationFn(args, spec),
8
7
  sendPollRequest: (path, options) => {
9
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
10
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
8
+ const { requestBody, ...restSpec } = spec;
9
+ return sendOperationFn(args, {
10
+ ...restSpec,
11
+ httpMethod: "GET",
12
+ path,
13
+ abortSignal: options?.abortSignal,
14
+ });
11
15
  },
12
16
  };
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,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,UAAK,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,MAAM,UAAU,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"]}
@@ -1540,32 +1540,40 @@ export const ProxyResource = {
1540
1540
  type: {
1541
1541
  name: "Composite",
1542
1542
  className: "ProxyResource",
1543
- modelProperties: Object.assign({}, Resource.type.modelProperties),
1543
+ modelProperties: {
1544
+ ...Resource.type.modelProperties,
1545
+ },
1544
1546
  },
1545
1547
  };
1546
1548
  export const Video = {
1547
1549
  type: {
1548
1550
  name: "Composite",
1549
1551
  className: "Video",
1550
- modelProperties: Object.assign(Object.assign({}, VideoGroupVideo.type.modelProperties), { replacementKey: {
1552
+ modelProperties: {
1553
+ ...VideoGroupVideo.type.modelProperties,
1554
+ replacementKey: {
1551
1555
  serializedName: "replacementKey",
1552
1556
  type: {
1553
1557
  name: "String",
1554
1558
  },
1555
- } }),
1559
+ },
1560
+ },
1556
1561
  },
1557
1562
  };
1558
1563
  export const DiagnosticResource = {
1559
1564
  type: {
1560
1565
  name: "Composite",
1561
1566
  className: "DiagnosticResource",
1562
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { globalParameters: {
1567
+ modelProperties: {
1568
+ ...ProxyResource.type.modelProperties,
1569
+ globalParameters: {
1563
1570
  serializedName: "properties.globalParameters",
1564
1571
  type: {
1565
1572
  name: "Dictionary",
1566
1573
  value: { type: { name: "String" } },
1567
1574
  },
1568
- }, insights: {
1575
+ },
1576
+ insights: {
1569
1577
  serializedName: "properties.insights",
1570
1578
  type: {
1571
1579
  name: "Sequence",
@@ -1576,19 +1584,22 @@ export const DiagnosticResource = {
1576
1584
  },
1577
1585
  },
1578
1586
  },
1579
- }, acceptedAt: {
1587
+ },
1588
+ acceptedAt: {
1580
1589
  serializedName: "properties.acceptedAt",
1581
1590
  readOnly: true,
1582
1591
  type: {
1583
1592
  name: "String",
1584
1593
  },
1585
- }, provisioningState: {
1594
+ },
1595
+ provisioningState: {
1586
1596
  serializedName: "properties.provisioningState",
1587
1597
  readOnly: true,
1588
1598
  type: {
1589
1599
  name: "String",
1590
1600
  },
1591
- }, diagnostics: {
1601
+ },
1602
+ diagnostics: {
1592
1603
  serializedName: "properties.diagnostics",
1593
1604
  readOnly: true,
1594
1605
  type: {
@@ -1600,14 +1611,17 @@ export const DiagnosticResource = {
1600
1611
  },
1601
1612
  },
1602
1613
  },
1603
- } }),
1614
+ },
1615
+ },
1604
1616
  },
1605
1617
  };
1606
1618
  export const SolutionMetadataResource = {
1607
1619
  type: {
1608
1620
  name: "Composite",
1609
1621
  className: "SolutionMetadataResource",
1610
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutions: {
1622
+ modelProperties: {
1623
+ ...ProxyResource.type.modelProperties,
1624
+ solutions: {
1611
1625
  serializedName: "properties.solutions",
1612
1626
  type: {
1613
1627
  name: "Sequence",
@@ -1618,14 +1632,17 @@ export const SolutionMetadataResource = {
1618
1632
  },
1619
1633
  },
1620
1634
  },
1621
- } }),
1635
+ },
1636
+ },
1622
1637
  },
1623
1638
  };
1624
1639
  export const SolutionResource = {
1625
1640
  type: {
1626
1641
  name: "Composite",
1627
1642
  className: "SolutionResource",
1628
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { triggerCriteria: {
1643
+ modelProperties: {
1644
+ ...ProxyResource.type.modelProperties,
1645
+ triggerCriteria: {
1629
1646
  serializedName: "properties.triggerCriteria",
1630
1647
  type: {
1631
1648
  name: "Sequence",
@@ -1636,43 +1653,50 @@ export const SolutionResource = {
1636
1653
  },
1637
1654
  },
1638
1655
  },
1639
- }, parameters: {
1656
+ },
1657
+ parameters: {
1640
1658
  serializedName: "properties.parameters",
1641
1659
  type: {
1642
1660
  name: "Dictionary",
1643
1661
  value: { type: { name: "String" } },
1644
1662
  },
1645
- }, solutionId: {
1663
+ },
1664
+ solutionId: {
1646
1665
  serializedName: "properties.solutionId",
1647
1666
  readOnly: true,
1648
1667
  type: {
1649
1668
  name: "String",
1650
1669
  },
1651
- }, provisioningState: {
1670
+ },
1671
+ provisioningState: {
1652
1672
  serializedName: "properties.provisioningState",
1653
1673
  readOnly: true,
1654
1674
  type: {
1655
1675
  name: "String",
1656
1676
  },
1657
- }, title: {
1677
+ },
1678
+ title: {
1658
1679
  serializedName: "properties.title",
1659
1680
  readOnly: true,
1660
1681
  type: {
1661
1682
  name: "String",
1662
1683
  },
1663
- }, content: {
1684
+ },
1685
+ content: {
1664
1686
  serializedName: "properties.content",
1665
1687
  readOnly: true,
1666
1688
  type: {
1667
1689
  name: "String",
1668
1690
  },
1669
- }, replacementMaps: {
1691
+ },
1692
+ replacementMaps: {
1670
1693
  serializedName: "properties.replacementMaps",
1671
1694
  type: {
1672
1695
  name: "Composite",
1673
1696
  className: "ReplacementMaps",
1674
1697
  },
1675
- }, sections: {
1698
+ },
1699
+ sections: {
1676
1700
  serializedName: "properties.sections",
1677
1701
  readOnly: true,
1678
1702
  type: {
@@ -1684,74 +1708,88 @@ export const SolutionResource = {
1684
1708
  },
1685
1709
  },
1686
1710
  },
1687
- } }),
1711
+ },
1712
+ },
1688
1713
  },
1689
1714
  };
1690
1715
  export const SimplifiedSolutionsResource = {
1691
1716
  type: {
1692
1717
  name: "Composite",
1693
1718
  className: "SimplifiedSolutionsResource",
1694
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutionId: {
1719
+ modelProperties: {
1720
+ ...ProxyResource.type.modelProperties,
1721
+ solutionId: {
1695
1722
  serializedName: "properties.solutionId",
1696
1723
  type: {
1697
1724
  name: "String",
1698
1725
  },
1699
- }, parameters: {
1726
+ },
1727
+ parameters: {
1700
1728
  serializedName: "properties.parameters",
1701
1729
  type: {
1702
1730
  name: "Dictionary",
1703
1731
  value: { type: { name: "String" } },
1704
1732
  },
1705
- }, title: {
1733
+ },
1734
+ title: {
1706
1735
  serializedName: "properties.title",
1707
1736
  readOnly: true,
1708
1737
  type: {
1709
1738
  name: "String",
1710
1739
  },
1711
- }, appendix: {
1740
+ },
1741
+ appendix: {
1712
1742
  serializedName: "properties.appendix",
1713
1743
  readOnly: true,
1714
1744
  type: {
1715
1745
  name: "Dictionary",
1716
1746
  value: { type: { name: "String" } },
1717
1747
  },
1718
- }, content: {
1748
+ },
1749
+ content: {
1719
1750
  serializedName: "properties.content",
1720
1751
  readOnly: true,
1721
1752
  type: {
1722
1753
  name: "String",
1723
1754
  },
1724
- }, provisioningState: {
1755
+ },
1756
+ provisioningState: {
1725
1757
  serializedName: "properties.provisioningState",
1726
1758
  readOnly: true,
1727
1759
  type: {
1728
1760
  name: "String",
1729
1761
  },
1730
- } }),
1762
+ },
1763
+ },
1731
1764
  },
1732
1765
  };
1733
1766
  export const TroubleshooterResource = {
1734
1767
  type: {
1735
1768
  name: "Composite",
1736
1769
  className: "TroubleshooterResource",
1737
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutionId: {
1770
+ modelProperties: {
1771
+ ...ProxyResource.type.modelProperties,
1772
+ solutionId: {
1738
1773
  serializedName: "properties.solutionId",
1739
1774
  type: {
1740
1775
  name: "String",
1741
1776
  },
1742
- }, parameters: {
1777
+ },
1778
+ parameters: {
1743
1779
  serializedName: "properties.parameters",
1744
1780
  type: {
1745
1781
  name: "Dictionary",
1746
1782
  value: { type: { name: "String" } },
1747
1783
  },
1748
- }, provisioningState: {
1784
+ },
1785
+ provisioningState: {
1749
1786
  serializedName: "properties.provisioningState",
1750
1787
  readOnly: true,
1751
1788
  type: {
1752
1789
  name: "String",
1753
1790
  },
1754
- }, steps: {
1791
+ },
1792
+ steps: {
1755
1793
  serializedName: "properties.steps",
1756
1794
  readOnly: true,
1757
1795
  type: {
@@ -1763,38 +1801,45 @@ export const TroubleshooterResource = {
1763
1801
  },
1764
1802
  },
1765
1803
  },
1766
- } }),
1804
+ },
1805
+ },
1767
1806
  },
1768
1807
  };
1769
1808
  export const SolutionResourceSelfHelp = {
1770
1809
  type: {
1771
1810
  name: "Composite",
1772
1811
  className: "SolutionResourceSelfHelp",
1773
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutionId: {
1812
+ modelProperties: {
1813
+ ...ProxyResource.type.modelProperties,
1814
+ solutionId: {
1774
1815
  serializedName: "properties.solutionId",
1775
1816
  readOnly: true,
1776
1817
  type: {
1777
1818
  name: "String",
1778
1819
  },
1779
- }, title: {
1820
+ },
1821
+ title: {
1780
1822
  serializedName: "properties.title",
1781
1823
  readOnly: true,
1782
1824
  type: {
1783
1825
  name: "String",
1784
1826
  },
1785
- }, content: {
1827
+ },
1828
+ content: {
1786
1829
  serializedName: "properties.content",
1787
1830
  readOnly: true,
1788
1831
  type: {
1789
1832
  name: "String",
1790
1833
  },
1791
- }, replacementMaps: {
1834
+ },
1835
+ replacementMaps: {
1792
1836
  serializedName: "properties.replacementMaps",
1793
1837
  type: {
1794
1838
  name: "Composite",
1795
1839
  className: "ReplacementMapsSelfHelp",
1796
1840
  },
1797
- }, sections: {
1841
+ },
1842
+ sections: {
1798
1843
  serializedName: "properties.sections",
1799
1844
  readOnly: true,
1800
1845
  type: {
@@ -1806,34 +1851,41 @@ export const SolutionResourceSelfHelp = {
1806
1851
  },
1807
1852
  },
1808
1853
  },
1809
- } }),
1854
+ },
1855
+ },
1810
1856
  },
1811
1857
  };
1812
1858
  export const SolutionNlpMetadataResource = {
1813
1859
  type: {
1814
1860
  name: "Composite",
1815
1861
  className: "SolutionNlpMetadataResource",
1816
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { problemTitle: {
1862
+ modelProperties: {
1863
+ ...ProxyResource.type.modelProperties,
1864
+ problemTitle: {
1817
1865
  serializedName: "properties.problemTitle",
1818
1866
  type: {
1819
1867
  name: "String",
1820
1868
  },
1821
- }, problemDescription: {
1869
+ },
1870
+ problemDescription: {
1822
1871
  serializedName: "properties.problemDescription",
1823
1872
  type: {
1824
1873
  name: "String",
1825
1874
  },
1826
- }, serviceId: {
1875
+ },
1876
+ serviceId: {
1827
1877
  serializedName: "properties.serviceId",
1828
1878
  type: {
1829
1879
  name: "String",
1830
1880
  },
1831
- }, problemClassificationId: {
1881
+ },
1882
+ problemClassificationId: {
1832
1883
  serializedName: "properties.problemClassificationId",
1833
1884
  type: {
1834
1885
  name: "String",
1835
1886
  },
1836
- }, solutions: {
1887
+ },
1888
+ solutions: {
1837
1889
  serializedName: "properties.solutions",
1838
1890
  type: {
1839
1891
  name: "Sequence",
@@ -1844,7 +1896,8 @@ export const SolutionNlpMetadataResource = {
1844
1896
  },
1845
1897
  },
1846
1898
  },
1847
- }, relatedServices: {
1899
+ },
1900
+ relatedServices: {
1848
1901
  serializedName: "properties.relatedServices",
1849
1902
  type: {
1850
1903
  name: "Sequence",
@@ -1855,7 +1908,8 @@ export const SolutionNlpMetadataResource = {
1855
1908
  },
1856
1909
  },
1857
1910
  },
1858
- } }),
1911
+ },
1912
+ },
1859
1913
  },
1860
1914
  };
1861
1915
  export const SolutionUpdateHeaders = {