@azure/arm-confidentialledger 1.3.0-alpha.20250717.1 → 1.3.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 (59) hide show
  1. package/dist/browser/confidentialLedgerClient.js +16 -5
  2. package/dist/browser/confidentialLedgerClient.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 +17 -7
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/ledger.js +100 -109
  8. package/dist/browser/operations/ledger.js.map +1 -1
  9. package/dist/browser/operations/managedCCFOperations.js +100 -109
  10. package/dist/browser/operations/managedCCFOperations.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/pagingHelper.js +2 -4
  14. package/dist/browser/pagingHelper.js.map +1 -1
  15. package/dist/commonjs/confidentialLedgerClient.js +16 -5
  16. package/dist/commonjs/confidentialLedgerClient.js.map +1 -1
  17. package/dist/commonjs/lroImpl.js +7 -3
  18. package/dist/commonjs/lroImpl.js.map +1 -1
  19. package/dist/commonjs/models/mappers.js +17 -7
  20. package/dist/commonjs/models/mappers.js.map +1 -1
  21. package/dist/commonjs/operations/ledger.js +100 -108
  22. package/dist/commonjs/operations/ledger.js.map +1 -1
  23. package/dist/commonjs/operations/managedCCFOperations.js +100 -108
  24. package/dist/commonjs/operations/managedCCFOperations.js.map +1 -1
  25. package/dist/commonjs/operations/operations.js +23 -39
  26. package/dist/commonjs/operations/operations.js.map +1 -1
  27. package/dist/commonjs/pagingHelper.js +2 -4
  28. package/dist/commonjs/pagingHelper.js.map +1 -1
  29. package/dist/commonjs/tsdoc-metadata.json +11 -11
  30. package/dist/esm/confidentialLedgerClient.js +16 -5
  31. package/dist/esm/confidentialLedgerClient.js.map +1 -1
  32. package/dist/esm/lroImpl.js +7 -3
  33. package/dist/esm/lroImpl.js.map +1 -1
  34. package/dist/esm/models/mappers.js +17 -7
  35. package/dist/esm/models/mappers.js.map +1 -1
  36. package/dist/esm/operations/ledger.js +100 -109
  37. package/dist/esm/operations/ledger.js.map +1 -1
  38. package/dist/esm/operations/managedCCFOperations.js +100 -109
  39. package/dist/esm/operations/managedCCFOperations.js.map +1 -1
  40. package/dist/esm/operations/operations.js +23 -40
  41. package/dist/esm/operations/operations.js.map +1 -1
  42. package/dist/esm/pagingHelper.js +2 -4
  43. package/dist/esm/pagingHelper.js.map +1 -1
  44. package/dist/react-native/confidentialLedgerClient.js +16 -5
  45. package/dist/react-native/confidentialLedgerClient.js.map +1 -1
  46. package/dist/react-native/lroImpl.js +7 -3
  47. package/dist/react-native/lroImpl.js.map +1 -1
  48. package/dist/react-native/models/mappers.js +17 -7
  49. package/dist/react-native/models/mappers.js.map +1 -1
  50. package/dist/react-native/operations/ledger.js +100 -109
  51. package/dist/react-native/operations/ledger.js.map +1 -1
  52. package/dist/react-native/operations/managedCCFOperations.js +100 -109
  53. package/dist/react-native/operations/managedCCFOperations.js.map +1 -1
  54. package/dist/react-native/operations/operations.js +23 -40
  55. package/dist/react-native/operations/operations.js.map +1 -1
  56. package/dist/react-native/pagingHelper.js +2 -4
  57. package/dist/react-native/pagingHelper.js.map +1 -1
  58. package/package.json +2 -2
  59. package/review/arm-confidentialledger-node.api.md +580 -580
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Operations operations. */
15
14
  export class OperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Operations class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class OperationsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  },
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * Retrieves a list of available API operations
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,O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1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,oDAAoD;IAC1D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ConfidentialLedgerClient } from \"../confidentialLedgerClient.js\";\nimport {\n ResourceProviderOperationDefinition,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ConfidentialLedgerClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ConfidentialLedgerClient) {\n this.client = client;\n }\n\n /**\n * Retrieves a list of available API operations\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<ResourceProviderOperationDefinition> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of available API operations\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ConfidentialLedger/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAA2B;IAElD;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,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D,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ConfidentialLedgerClient } from \"../confidentialLedgerClient.js\";\nimport {\n ResourceProviderOperationDefinition,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ConfidentialLedgerClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ConfidentialLedgerClient) {\n this.client = client;\n }\n\n /**\n * Retrieves a list of available API operations\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<ResourceProviderOperationDefinition> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of available API operations\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ConfidentialLedger/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -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"]}
@@ -11,6 +11,9 @@ import { OperationsImpl, LedgerImpl, ManagedCCFOperationsImpl, } from "./operati
11
11
  import * as Parameters from "./models/parameters.js";
12
12
  import * as Mappers from "./models/mappers.js";
13
13
  export class ConfidentialLedgerClient extends coreClient.ServiceClient {
14
+ $host;
15
+ apiVersion;
16
+ subscriptionId;
14
17
  /**
15
18
  * Initializes a new instance of the ConfidentialLedgerClient class.
16
19
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -18,7 +21,6 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
18
21
  * @param options The parameter options
19
22
  */
20
23
  constructor(credentials, subscriptionId, options) {
21
- var _a, _b, _c;
22
24
  if (credentials === undefined) {
23
25
  throw new Error("'credentials' cannot be null");
24
26
  }
@@ -37,12 +39,17 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
37
39
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
40
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
41
  : `${packageDetails}`;
40
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
42
+ const optionsWithDefaults = {
43
+ ...defaults,
44
+ ...options,
45
+ userAgentOptions: {
41
46
  userAgentPrefix,
42
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
47
+ },
48
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
49
+ };
43
50
  super(optionsWithDefaults);
44
51
  let bearerTokenAuthenticationPolicyFound = false;
45
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
52
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
46
53
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
47
54
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
48
55
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -56,7 +63,8 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
56
63
  });
57
64
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
58
65
  credential: credentials,
59
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
66
+ scopes: optionsWithDefaults.credentialScopes ??
67
+ `${optionsWithDefaults.endpoint}/.default`,
60
68
  challengeCallbacks: {
61
69
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
62
70
  },
@@ -105,6 +113,9 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
105
113
  checkNameAvailability(nameAvailabilityRequest, options) {
106
114
  return this.sendOperationRequest({ nameAvailabilityRequest, options }, checkNameAvailabilityOperationSpec);
107
115
  }
116
+ operations;
117
+ ledger;
118
+ managedCCFOperations;
108
119
  }
109
120
  // Operation Specifications
110
121
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -1 +1 @@
1
- {"version":3,"file":"confidentialLedgerClient.js","sourceRoot":"","sources":["../../src/confidentialLedgerClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,UAAU,EACV,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IAKpE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAgD;;QAEhD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA2C;YACvD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,8CAA8C,CAAC;QACtE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAA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AAC,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;;;;OAIG;IACH,qBAAqB,CACnB,uBAAqD,EACrD,OAA6C;QAE7C,OAAO,IAAI,CAAC,oBAAoB,CAC9B,EAAE,uBAAuB,EAAE,OAAO,EAAE,EACpC,kCAAkC,CACnC,CAAC;IACJ,CAAC;CAKF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,8FAA8F;IACpG,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * 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 LedgerImpl,\n ManagedCCFOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Ledger,\n ManagedCCFOperations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n ConfidentialLedgerClientOptionalParams,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityOperationResponse,\n} from \"./models/index.js\";\n\nexport class ConfidentialLedgerClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ConfidentialLedgerClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ConfidentialLedgerClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ConfidentialLedgerClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.3`;\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 // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-09-19-preview\";\n this.operations = new OperationsImpl(this);\n this.ledger = new LedgerImpl(this);\n this.managedCCFOperations = new ManagedCCFOperationsImpl(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 /**\n * To check whether a resource name is available.\n * @param nameAvailabilityRequest Name availability request payload.\n * @param options The options parameters.\n */\n checkNameAvailability(\n nameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityOperationResponse> {\n return this.sendOperationRequest(\n { nameAvailabilityRequest, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n operations: Operations;\n ledger: Ledger;\n managedCCFOperations: ManagedCCFOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.nameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"confidentialLedgerClient.js","sourceRoot":"","sources":["../../src/confidentialLedgerClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,UAAU,EACV,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAgD;QAEhD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IA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ACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * 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 LedgerImpl,\n ManagedCCFOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Ledger,\n ManagedCCFOperations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n ConfidentialLedgerClientOptionalParams,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityOperationResponse,\n} from \"./models/index.js\";\n\nexport class ConfidentialLedgerClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ConfidentialLedgerClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ConfidentialLedgerClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ConfidentialLedgerClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.3`;\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 // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-09-19-preview\";\n this.operations = new OperationsImpl(this);\n this.ledger = new LedgerImpl(this);\n this.managedCCFOperations = new ManagedCCFOperationsImpl(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 /**\n * To check whether a resource name is available.\n * @param nameAvailabilityRequest Name availability request payload.\n * @param options The options parameters.\n */\n checkNameAvailability(\n nameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityOperationResponse> {\n return this.sendOperationRequest(\n { nameAvailabilityRequest, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n operations: Operations;\n ledger: Ledger;\n managedCCFOperations: ManagedCCFOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.nameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __rest } from "tslib";
9
8
  export function createLroSpec(inputs) {
10
9
  const { args, spec, sendOperationFn } = inputs;
11
10
  return {
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
13
12
  requestPath: spec.path,
14
13
  sendInitialRequest: () => sendOperationFn(args, spec),
15
14
  sendPollRequest: (path, options) => {
16
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
15
+ const { requestBody, ...restSpec } = spec;
16
+ return sendOperationFn(args, {
17
+ ...restSpec,
18
+ httpMethod: "GET",
19
+ path,
20
+ abortSignal: options?.abortSignal,
21
+ });
18
22
  },
19
23
  };
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAKH,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 */\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":"AAAA;;;;;;GAMG;AAKH,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 */\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"]}
@@ -841,45 +841,55 @@ export const TrackedResource = {
841
841
  type: {
842
842
  name: "Composite",
843
843
  className: "TrackedResource",
844
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
844
+ modelProperties: {
845
+ ...Resource.type.modelProperties,
846
+ tags: {
845
847
  serializedName: "tags",
846
848
  type: {
847
849
  name: "Dictionary",
848
850
  value: { type: { name: "String" } },
849
851
  },
850
- }, location: {
852
+ },
853
+ location: {
851
854
  serializedName: "location",
852
855
  required: true,
853
856
  type: {
854
857
  name: "String",
855
858
  },
856
- } }),
859
+ },
860
+ },
857
861
  },
858
862
  };
859
863
  export const ConfidentialLedger = {
860
864
  type: {
861
865
  name: "Composite",
862
866
  className: "ConfidentialLedger",
863
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
867
+ modelProperties: {
868
+ ...TrackedResource.type.modelProperties,
869
+ properties: {
864
870
  serializedName: "properties",
865
871
  type: {
866
872
  name: "Composite",
867
873
  className: "LedgerProperties",
868
874
  },
869
- } }),
875
+ },
876
+ },
870
877
  },
871
878
  };
872
879
  export const ManagedCCF = {
873
880
  type: {
874
881
  name: "Composite",
875
882
  className: "ManagedCCF",
876
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
883
+ modelProperties: {
884
+ ...TrackedResource.type.modelProperties,
885
+ properties: {
877
886
  serializedName: "properties",
878
887
  type: {
879
888
  name: "Composite",
880
889
  className: "ManagedCCFProperties",
881
890
  },
882
- } }),
891
+ },
892
+ },
883
893
  },
884
894
  };
885
895
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAA+B;IACvE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,+BAA+B;QAC1C,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,qCAAqC;yBACjD;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,UAAU;gBAC1B,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAA+B;IAC7E,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qCAAqC;QAChD,eAAe,EAAE;YACf,IAAI,EAAE;gBACJ,cAAc,EAA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U,GAA+B;IACpD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,YAAY;QACvB,eAAe,kCACV,eAAe,CAAC,IAAI,CAAC,eAAe,KACvC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,sBAAsB;iBAClC;aACF,GACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ResourceProviderOperationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceProviderOperationDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"Boolean\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\",\n },\n },\n },\n },\n};\n\nexport const ResourceProviderOperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } },\n },\n },\n },\n },\n};\n\nexport const CheckNameAvailabilityRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityRequest\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const CheckNameAvailabilityResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityResponse\",\n modelProperties: {\n nameAvailable: {\n serializedName: \"nameAvailable\",\n type: {\n name: \"Boolean\",\n },\n },\n reason: {\n serializedName: \"reason\",\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const LedgerProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LedgerProperties\",\n modelProperties: {\n ledgerName: {\n serializedName: \"ledgerName\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n ledgerUri: {\n serializedName: \"ledgerUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n identityServiceUri: {\n serializedName: \"identityServiceUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n ledgerInternalNamespace: {\n serializedName: \"ledgerInternalNamespace\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n runningState: {\n serializedName: \"runningState\",\n type: {\n name: \"String\",\n },\n },\n ledgerType: {\n serializedName: \"ledgerType\",\n type: {\n name: \"String\",\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n ledgerSku: {\n serializedName: \"ledgerSku\",\n type: {\n name: \"String\",\n },\n },\n aadBasedSecurityPrincipals: {\n serializedName: \"aadBasedSecurityPrincipals\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"AADBasedSecurityPrincipal\",\n },\n },\n },\n },\n certBasedSecurityPrincipals: {\n serializedName: \"certBasedSecurityPrincipals\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CertBasedSecurityPrincipal\",\n },\n },\n },\n },\n hostLevel: {\n serializedName: \"hostLevel\",\n type: {\n name: \"String\",\n },\n },\n maxBodySizeInMb: {\n serializedName: \"maxBodySizeInMb\",\n type: {\n name: \"Number\",\n },\n },\n subjectName: {\n serializedName: \"subjectName\",\n type: {\n name: \"String\",\n },\n },\n nodeCount: {\n serializedName: \"nodeCount\",\n type: {\n name: \"Number\",\n },\n },\n writeLBAddressPrefix: {\n serializedName: \"writeLBAddressPrefix\",\n type: {\n name: \"String\",\n },\n },\n workerThreads: {\n serializedName: \"workerThreads\",\n type: {\n name: \"Number\",\n },\n },\n enclavePlatform: {\n serializedName: \"enclavePlatform\",\n type: {\n name: \"String\",\n },\n },\n applicationType: {\n serializedName: \"applicationType\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const AADBasedSecurityPrincipal: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AADBasedSecurityPrincipal\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n type: {\n name: \"String\",\n },\n },\n tenantId: {\n serializedName: \"tenantId\",\n type: {\n name: \"String\",\n },\n },\n ledgerRoleName: {\n serializedName: \"ledgerRoleName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const CertBasedSecurityPrincipal: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CertBasedSecurityPrincipal\",\n modelProperties: {\n cert: {\n serializedName: \"cert\",\n type: {\n name: \"String\",\n },\n },\n ledgerRoleName: {\n serializedName: \"ledgerRoleName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n },\n },\n },\n },\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\",\n },\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\",\n },\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\",\n },\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedger\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerBackup: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerBackup\",\n modelProperties: {\n restoreRegion: {\n serializedName: \"restoreRegion\",\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerBackupResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerBackupResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerRestore: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerRestore\",\n modelProperties: {\n fileShareName: {\n serializedName: \"fileShareName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n restoreRegion: {\n serializedName: \"restoreRegion\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerRestoreResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerRestoreResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFProperties\",\n modelProperties: {\n appName: {\n serializedName: \"appName\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n appUri: {\n serializedName: \"appUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n identityServiceUri: {\n serializedName: \"identityServiceUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n memberIdentityCertificates: {\n serializedName: \"memberIdentityCertificates\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MemberIdentityCertificate\",\n },\n },\n },\n },\n deploymentType: {\n serializedName: \"deploymentType\",\n type: {\n name: \"Composite\",\n className: \"DeploymentType\",\n },\n },\n runningState: {\n serializedName: \"runningState\",\n type: {\n name: \"String\",\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n nodeCount: {\n defaultValue: 3,\n serializedName: \"nodeCount\",\n type: {\n name: \"Number\",\n },\n },\n enclavePlatform: {\n serializedName: \"enclavePlatform\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MemberIdentityCertificate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MemberIdentityCertificate\",\n modelProperties: {\n certificate: {\n serializedName: \"certificate\",\n type: {\n name: \"String\",\n },\n },\n encryptionkey: {\n serializedName: \"encryptionkey\",\n type: {\n name: \"String\",\n },\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"any\",\n },\n },\n },\n },\n};\n\nexport const DeploymentType: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeploymentType\",\n modelProperties: {\n languageRuntime: {\n serializedName: \"languageRuntime\",\n type: {\n name: \"String\",\n },\n },\n appSourceUri: {\n serializedName: \"appSourceUri\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ManagedCCF\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFBackup: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFBackup\",\n modelProperties: {\n restoreRegion: {\n serializedName: \"restoreRegion\",\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFBackupResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFBackupResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFRestore: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFRestore\",\n modelProperties: {\n fileShareName: {\n serializedName: \"fileShareName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n restoreRegion: {\n serializedName: \"restoreRegion\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFRestoreResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFRestoreResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const CertificateTags: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CertificateTags\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n },\n },\n};\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedger: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedger\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"LedgerProperties\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCF: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCF\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"ManagedCCFProperties\",\n },\n },\n },\n },\n};\n"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAA+B;IACvE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,+BAA+B;QAC1C,eAAe,EAAE;YACf,KAAK,EAAE;gBACL,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,qCAAqC;yBACjD;qBACF;iBACF;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EA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I,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,oBAAoB;QAC/B,eAAe,EAAE;YACf,GAAG,eAAe,CAAC,IAAI,CAAC,eAAe;YACvC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,kBAAkB;iBAC9B;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAA+B;IACpD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,YAAY;QACvB,eAAe,EAAE;YACf,GAAG,eAAe,CAAC,IAAI,CAAC,eAAe;YACvC,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,sBAAsB;iBAClC;aACF;SACF;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ResourceProviderOperationList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ResourceProviderOperationDefinition: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDefinition\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n isDataAction: {\n serializedName: \"isDataAction\",\n type: {\n name: \"Boolean\",\n },\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\",\n },\n },\n },\n },\n};\n\nexport const ResourceProviderOperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ResourceProviderOperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\",\n },\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\",\n },\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\",\n },\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ErrorResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n target: {\n serializedName: \"target\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n details: {\n serializedName: \"details\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n },\n },\n },\n },\n additionalInfo: {\n serializedName: \"additionalInfo\",\n readOnly: true,\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n },\n },\n },\n },\n },\n },\n};\n\nexport const ErrorAdditionalInfo: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorAdditionalInfo\",\n modelProperties: {\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n info: {\n serializedName: \"info\",\n readOnly: true,\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"any\" } },\n },\n },\n },\n },\n};\n\nexport const CheckNameAvailabilityRequest: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityRequest\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const CheckNameAvailabilityResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CheckNameAvailabilityResponse\",\n modelProperties: {\n nameAvailable: {\n serializedName: \"nameAvailable\",\n type: {\n name: \"Boolean\",\n },\n },\n reason: {\n serializedName: \"reason\",\n type: {\n name: \"String\",\n },\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const LedgerProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"LedgerProperties\",\n modelProperties: {\n ledgerName: {\n serializedName: \"ledgerName\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n ledgerUri: {\n serializedName: \"ledgerUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n identityServiceUri: {\n serializedName: \"identityServiceUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n ledgerInternalNamespace: {\n serializedName: \"ledgerInternalNamespace\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n runningState: {\n serializedName: \"runningState\",\n type: {\n name: \"String\",\n },\n },\n ledgerType: {\n serializedName: \"ledgerType\",\n type: {\n name: \"String\",\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n ledgerSku: {\n serializedName: \"ledgerSku\",\n type: {\n name: \"String\",\n },\n },\n aadBasedSecurityPrincipals: {\n serializedName: \"aadBasedSecurityPrincipals\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"AADBasedSecurityPrincipal\",\n },\n },\n },\n },\n certBasedSecurityPrincipals: {\n serializedName: \"certBasedSecurityPrincipals\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CertBasedSecurityPrincipal\",\n },\n },\n },\n },\n hostLevel: {\n serializedName: \"hostLevel\",\n type: {\n name: \"String\",\n },\n },\n maxBodySizeInMb: {\n serializedName: \"maxBodySizeInMb\",\n type: {\n name: \"Number\",\n },\n },\n subjectName: {\n serializedName: \"subjectName\",\n type: {\n name: \"String\",\n },\n },\n nodeCount: {\n serializedName: \"nodeCount\",\n type: {\n name: \"Number\",\n },\n },\n writeLBAddressPrefix: {\n serializedName: \"writeLBAddressPrefix\",\n type: {\n name: \"String\",\n },\n },\n workerThreads: {\n serializedName: \"workerThreads\",\n type: {\n name: \"Number\",\n },\n },\n enclavePlatform: {\n serializedName: \"enclavePlatform\",\n type: {\n name: \"String\",\n },\n },\n applicationType: {\n serializedName: \"applicationType\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const AADBasedSecurityPrincipal: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"AADBasedSecurityPrincipal\",\n modelProperties: {\n principalId: {\n serializedName: \"principalId\",\n type: {\n name: \"String\",\n },\n },\n tenantId: {\n serializedName: \"tenantId\",\n type: {\n name: \"String\",\n },\n },\n ledgerRoleName: {\n serializedName: \"ledgerRoleName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const CertBasedSecurityPrincipal: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CertBasedSecurityPrincipal\",\n modelProperties: {\n cert: {\n serializedName: \"cert\",\n type: {\n name: \"String\",\n },\n },\n ledgerRoleName: {\n serializedName: \"ledgerRoleName\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n },\n },\n },\n },\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\",\n },\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\",\n },\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\",\n },\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\",\n },\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedger\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerBackup: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerBackup\",\n modelProperties: {\n restoreRegion: {\n serializedName: \"restoreRegion\",\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerBackupResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerBackupResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerRestore: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerRestore\",\n modelProperties: {\n fileShareName: {\n serializedName: \"fileShareName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n restoreRegion: {\n serializedName: \"restoreRegion\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedgerRestoreResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedgerRestoreResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFProperties\",\n modelProperties: {\n appName: {\n serializedName: \"appName\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n appUri: {\n serializedName: \"appUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n identityServiceUri: {\n serializedName: \"identityServiceUri\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n memberIdentityCertificates: {\n serializedName: \"memberIdentityCertificates\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MemberIdentityCertificate\",\n },\n },\n },\n },\n deploymentType: {\n serializedName: \"deploymentType\",\n type: {\n name: \"Composite\",\n className: \"DeploymentType\",\n },\n },\n runningState: {\n serializedName: \"runningState\",\n type: {\n name: \"String\",\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n nodeCount: {\n defaultValue: 3,\n serializedName: \"nodeCount\",\n type: {\n name: \"Number\",\n },\n },\n enclavePlatform: {\n serializedName: \"enclavePlatform\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const MemberIdentityCertificate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"MemberIdentityCertificate\",\n modelProperties: {\n certificate: {\n serializedName: \"certificate\",\n type: {\n name: \"String\",\n },\n },\n encryptionkey: {\n serializedName: \"encryptionkey\",\n type: {\n name: \"String\",\n },\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"any\",\n },\n },\n },\n },\n};\n\nexport const DeploymentType: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"DeploymentType\",\n modelProperties: {\n languageRuntime: {\n serializedName: \"languageRuntime\",\n type: {\n name: \"String\",\n },\n },\n appSourceUri: {\n serializedName: \"appSourceUri\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFList: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFList\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ManagedCCF\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFBackup: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFBackup\",\n modelProperties: {\n restoreRegion: {\n serializedName: \"restoreRegion\",\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFBackupResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFBackupResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFRestore: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFRestore\",\n modelProperties: {\n fileShareName: {\n serializedName: \"fileShareName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n restoreRegion: {\n serializedName: \"restoreRegion\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n uri: {\n serializedName: \"uri\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCFRestoreResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCFRestoreResponse\",\n modelProperties: {\n message: {\n serializedName: \"message\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const CertificateTags: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CertificateTags\",\n modelProperties: {\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n },\n },\n};\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } },\n },\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ConfidentialLedger: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ConfidentialLedger\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"LedgerProperties\",\n },\n },\n },\n },\n};\n\nexport const ManagedCCF: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedCCF\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"ManagedCCFProperties\",\n },\n },\n },\n },\n};\n"]}