@azure/arm-appcomplianceautomation 1.0.1-alpha.20250718.1 → 1.0.1-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 (91) hide show
  1. package/dist/browser/appComplianceAutomationToolForMicrosoft365.js +19 -5
  2. package/dist/browser/appComplianceAutomationToolForMicrosoft365.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 +28 -11
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/evidence.js +23 -40
  8. package/dist/browser/operations/evidence.js.map +1 -1
  9. package/dist/browser/operations/operations.js +23 -40
  10. package/dist/browser/operations/operations.js.map +1 -1
  11. package/dist/browser/operations/providerActions.js +23 -12
  12. package/dist/browser/operations/providerActions.js.map +1 -1
  13. package/dist/browser/operations/report.js +89 -76
  14. package/dist/browser/operations/report.js.map +1 -1
  15. package/dist/browser/operations/scopingConfiguration.js +23 -40
  16. package/dist/browser/operations/scopingConfiguration.js.map +1 -1
  17. package/dist/browser/operations/snapshot.js +34 -46
  18. package/dist/browser/operations/snapshot.js.map +1 -1
  19. package/dist/browser/operations/webhook.js +23 -40
  20. package/dist/browser/operations/webhook.js.map +1 -1
  21. package/dist/browser/pagingHelper.js +2 -4
  22. package/dist/browser/pagingHelper.js.map +1 -1
  23. package/dist/commonjs/appComplianceAutomationToolForMicrosoft365.js +19 -5
  24. package/dist/commonjs/appComplianceAutomationToolForMicrosoft365.js.map +1 -1
  25. package/dist/commonjs/lroImpl.js +7 -3
  26. package/dist/commonjs/lroImpl.js.map +1 -1
  27. package/dist/commonjs/models/mappers.js +28 -11
  28. package/dist/commonjs/models/mappers.js.map +1 -1
  29. package/dist/commonjs/operations/evidence.js +23 -39
  30. package/dist/commonjs/operations/evidence.js.map +1 -1
  31. package/dist/commonjs/operations/operations.js +23 -39
  32. package/dist/commonjs/operations/operations.js.map +1 -1
  33. package/dist/commonjs/operations/providerActions.js +23 -12
  34. package/dist/commonjs/operations/providerActions.js.map +1 -1
  35. package/dist/commonjs/operations/report.js +89 -75
  36. package/dist/commonjs/operations/report.js.map +1 -1
  37. package/dist/commonjs/operations/scopingConfiguration.js +23 -39
  38. package/dist/commonjs/operations/scopingConfiguration.js.map +1 -1
  39. package/dist/commonjs/operations/snapshot.js +34 -45
  40. package/dist/commonjs/operations/snapshot.js.map +1 -1
  41. package/dist/commonjs/operations/webhook.js +23 -39
  42. package/dist/commonjs/operations/webhook.js.map +1 -1
  43. package/dist/commonjs/pagingHelper.js +2 -4
  44. package/dist/commonjs/pagingHelper.js.map +1 -1
  45. package/dist/commonjs/tsdoc-metadata.json +11 -11
  46. package/dist/esm/appComplianceAutomationToolForMicrosoft365.js +19 -5
  47. package/dist/esm/appComplianceAutomationToolForMicrosoft365.js.map +1 -1
  48. package/dist/esm/lroImpl.js +7 -3
  49. package/dist/esm/lroImpl.js.map +1 -1
  50. package/dist/esm/models/mappers.js +28 -11
  51. package/dist/esm/models/mappers.js.map +1 -1
  52. package/dist/esm/operations/evidence.js +23 -40
  53. package/dist/esm/operations/evidence.js.map +1 -1
  54. package/dist/esm/operations/operations.js +23 -40
  55. package/dist/esm/operations/operations.js.map +1 -1
  56. package/dist/esm/operations/providerActions.js +23 -12
  57. package/dist/esm/operations/providerActions.js.map +1 -1
  58. package/dist/esm/operations/report.js +89 -76
  59. package/dist/esm/operations/report.js.map +1 -1
  60. package/dist/esm/operations/scopingConfiguration.js +23 -40
  61. package/dist/esm/operations/scopingConfiguration.js.map +1 -1
  62. package/dist/esm/operations/snapshot.js +34 -46
  63. package/dist/esm/operations/snapshot.js.map +1 -1
  64. package/dist/esm/operations/webhook.js +23 -40
  65. package/dist/esm/operations/webhook.js.map +1 -1
  66. package/dist/esm/pagingHelper.js +2 -4
  67. package/dist/esm/pagingHelper.js.map +1 -1
  68. package/dist/react-native/appComplianceAutomationToolForMicrosoft365.js +19 -5
  69. package/dist/react-native/appComplianceAutomationToolForMicrosoft365.js.map +1 -1
  70. package/dist/react-native/lroImpl.js +7 -3
  71. package/dist/react-native/lroImpl.js.map +1 -1
  72. package/dist/react-native/models/mappers.js +28 -11
  73. package/dist/react-native/models/mappers.js.map +1 -1
  74. package/dist/react-native/operations/evidence.js +23 -40
  75. package/dist/react-native/operations/evidence.js.map +1 -1
  76. package/dist/react-native/operations/operations.js +23 -40
  77. package/dist/react-native/operations/operations.js.map +1 -1
  78. package/dist/react-native/operations/providerActions.js +23 -12
  79. package/dist/react-native/operations/providerActions.js.map +1 -1
  80. package/dist/react-native/operations/report.js +89 -76
  81. package/dist/react-native/operations/report.js.map +1 -1
  82. package/dist/react-native/operations/scopingConfiguration.js +23 -40
  83. package/dist/react-native/operations/scopingConfiguration.js.map +1 -1
  84. package/dist/react-native/operations/snapshot.js +34 -46
  85. package/dist/react-native/operations/snapshot.js.map +1 -1
  86. package/dist/react-native/operations/webhook.js +23 -40
  87. package/dist/react-native/operations/webhook.js.map +1 -1
  88. package/dist/react-native/pagingHelper.js +2 -4
  89. package/dist/react-native/pagingHelper.js.map +1 -1
  90. package/package.json +2 -2
  91. package/review/arm-appcomplianceautomation-node.api.md +1333 -1333
@@ -9,13 +9,14 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { ProviderActionsImpl, OperationsImpl, ReportImpl, EvidenceImpl, ScopingConfigurationImpl, SnapshotImpl, WebhookImpl, } from "./operations/index.js";
11
11
  export class AppComplianceAutomationToolForMicrosoft365 extends coreClient.ServiceClient {
12
+ $host;
13
+ apiVersion;
12
14
  /**
13
15
  * Initializes a new instance of the AppComplianceAutomationToolForMicrosoft365 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 AppComplianceAutomationToolForMicrosoft365 extends coreClient.Servi
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 AppComplianceAutomationToolForMicrosoft365 extends coreClient.Servi
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
  },
@@ -93,5 +100,12 @@ export class AppComplianceAutomationToolForMicrosoft365 extends coreClient.Servi
93
100
  };
94
101
  this.pipeline.addPolicy(apiVersionPolicy);
95
102
  }
103
+ providerActions;
104
+ operations;
105
+ report;
106
+ evidence;
107
+ scopingConfiguration;
108
+ snapshot;
109
+ webhook;
96
110
  }
97
111
  //# sourceMappingURL=appComplianceAutomationToolForMicrosoft365.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appComplianceAutomationToolForMicrosoft365.js","sourceRoot":"","sources":["../../src/appComplianceAutomationToolForMicrosoft365.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,YAAY,EACZ,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAY/B,MAAM,OAAO,0CAA2C,SAAQ,UAAU,CAAC,aAAa;IAItF;;;;OAIG;IACH,YACE,WAAqC,EACrC,OAAkE;;QAElE,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,GAA6D;YACzE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,4CAA4C,CAAC;QACpE,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;a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C;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;CASF","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 ProviderActionsImpl,\n OperationsImpl,\n ReportImpl,\n EvidenceImpl,\n ScopingConfigurationImpl,\n SnapshotImpl,\n WebhookImpl,\n} from \"./operations/index.js\";\nimport {\n ProviderActions,\n Operations,\n Report,\n Evidence,\n ScopingConfiguration,\n Snapshot,\n Webhook,\n} from \"./operationsInterfaces/index.js\";\nimport { AppComplianceAutomationToolForMicrosoft365OptionalParams } from \"./models/index.js\";\n\nexport class AppComplianceAutomationToolForMicrosoft365 extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the AppComplianceAutomationToolForMicrosoft365 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?: AppComplianceAutomationToolForMicrosoft365OptionalParams,\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: AppComplianceAutomationToolForMicrosoft365OptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-appcomplianceautomation/1.0.1`;\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-06-27\";\n this.providerActions = new ProviderActionsImpl(this);\n this.operations = new OperationsImpl(this);\n this.report = new ReportImpl(this);\n this.evidence = new EvidenceImpl(this);\n this.scopingConfiguration = new ScopingConfigurationImpl(this);\n this.snapshot = new SnapshotImpl(this);\n this.webhook = new WebhookImpl(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 providerActions: ProviderActions;\n operations: Operations;\n report: Report;\n evidence: Evidence;\n scopingConfiguration: ScopingConfiguration;\n snapshot: Snapshot;\n webhook: Webhook;\n}\n"]}
1
+ {"version":3,"file":"appComplianceAutomationToolForMicrosoft365.js","sourceRoot":"","sources":["../../src/appComplianceAutomationToolForMicrosoft365.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,YAAY,EACZ,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAY/B,MAAM,OAAO,0CAA2C,SAAQ,UAAU,CAAC,aAAa;IACtF,KAAK,CAAS;IACd,UAAU,CAAS;IAEnB;;;;OAIG;IACH,YACE,WAAqC,EACrC,OAAkE;QAElE,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,GAA6D;YACzE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU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,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,eAAe,CAAkB;IACjC,UAAU,CAAa;IACvB,MAAM,CAAS;IACf,QAAQ,CAAW;IACnB,oBAAoB,CAAuB;IAC3C,QAAQ,CAAW;IACnB,OAAO,CAAU;CAClB","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 ProviderActionsImpl,\n OperationsImpl,\n ReportImpl,\n EvidenceImpl,\n ScopingConfigurationImpl,\n SnapshotImpl,\n WebhookImpl,\n} from \"./operations/index.js\";\nimport {\n ProviderActions,\n Operations,\n Report,\n Evidence,\n ScopingConfiguration,\n Snapshot,\n Webhook,\n} from \"./operationsInterfaces/index.js\";\nimport { AppComplianceAutomationToolForMicrosoft365OptionalParams } from \"./models/index.js\";\n\nexport class AppComplianceAutomationToolForMicrosoft365 extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the AppComplianceAutomationToolForMicrosoft365 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?: AppComplianceAutomationToolForMicrosoft365OptionalParams,\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: AppComplianceAutomationToolForMicrosoft365OptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-appcomplianceautomation/1.0.1`;\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-06-27\";\n this.providerActions = new ProviderActionsImpl(this);\n this.operations = new OperationsImpl(this);\n this.report = new ReportImpl(this);\n this.evidence = new EvidenceImpl(this);\n this.scopingConfiguration = new ScopingConfigurationImpl(this);\n this.snapshot = new SnapshotImpl(this);\n this.webhook = new WebhookImpl(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 providerActions: ProviderActions;\n operations: Operations;\n report: Report;\n evidence: Evidence;\n scopingConfiguration: ScopingConfiguration;\n snapshot: Snapshot;\n webhook: Webhook;\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"]}
@@ -2352,72 +2352,89 @@ export const ProxyResource = {
2352
2352
  type: {
2353
2353
  name: "Composite",
2354
2354
  className: "ProxyResource",
2355
- modelProperties: Object.assign({}, Resource.type.modelProperties),
2355
+ modelProperties: {
2356
+ ...Resource.type.modelProperties,
2357
+ },
2356
2358
  },
2357
2359
  };
2358
2360
  export const ReportResource = {
2359
2361
  type: {
2360
2362
  name: "Composite",
2361
2363
  className: "ReportResource",
2362
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2364
+ modelProperties: {
2365
+ ...ProxyResource.type.modelProperties,
2366
+ properties: {
2363
2367
  serializedName: "properties",
2364
2368
  type: {
2365
2369
  name: "Composite",
2366
2370
  className: "ReportProperties",
2367
2371
  },
2368
- } }),
2372
+ },
2373
+ },
2369
2374
  },
2370
2375
  };
2371
2376
  export const EvidenceResource = {
2372
2377
  type: {
2373
2378
  name: "Composite",
2374
2379
  className: "EvidenceResource",
2375
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2380
+ modelProperties: {
2381
+ ...ProxyResource.type.modelProperties,
2382
+ properties: {
2376
2383
  serializedName: "properties",
2377
2384
  type: {
2378
2385
  name: "Composite",
2379
2386
  className: "EvidenceProperties",
2380
2387
  },
2381
- } }),
2388
+ },
2389
+ },
2382
2390
  },
2383
2391
  };
2384
2392
  export const ScopingConfigurationResource = {
2385
2393
  type: {
2386
2394
  name: "Composite",
2387
2395
  className: "ScopingConfigurationResource",
2388
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2396
+ modelProperties: {
2397
+ ...ProxyResource.type.modelProperties,
2398
+ properties: {
2389
2399
  serializedName: "properties",
2390
2400
  type: {
2391
2401
  name: "Composite",
2392
2402
  className: "ScopingConfigurationProperties",
2393
2403
  },
2394
- } }),
2404
+ },
2405
+ },
2395
2406
  },
2396
2407
  };
2397
2408
  export const SnapshotResource = {
2398
2409
  type: {
2399
2410
  name: "Composite",
2400
2411
  className: "SnapshotResource",
2401
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2412
+ modelProperties: {
2413
+ ...ProxyResource.type.modelProperties,
2414
+ properties: {
2402
2415
  serializedName: "properties",
2403
2416
  type: {
2404
2417
  name: "Composite",
2405
2418
  className: "SnapshotProperties",
2406
2419
  },
2407
- } }),
2420
+ },
2421
+ },
2408
2422
  },
2409
2423
  };
2410
2424
  export const WebhookResource = {
2411
2425
  type: {
2412
2426
  name: "Composite",
2413
2427
  className: "WebhookResource",
2414
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
2428
+ modelProperties: {
2429
+ ...ProxyResource.type.modelProperties,
2430
+ properties: {
2415
2431
  serializedName: "properties",
2416
2432
  type: {
2417
2433
  name: "Composite",
2418
2434
  className: "WebhookProperties",
2419
2435
  },
2420
- } }),
2436
+ },
2437
+ },
2421
2438
  },
2422
2439
  };
2423
2440
  export const ProviderActionsOnboardHeaders = {