@azure/arm-confidentialledger 1.0.0
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.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +1487 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +33 -0
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerCreateSample.js +51 -0
- package/dist-esm/samples-dev/ledgerCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerDeleteSample.js +31 -0
- package/dist-esm/samples-dev/ledgerDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerGetSample.js +31 -0
- package/dist-esm/samples-dev/ledgerGetSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerUpdateSample.js +54 -0
- package/dist-esm/samples-dev/ledgerUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/src/confidentialLedgerClient.d.ts +28 -0
- package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -0
- package/dist-esm/src/confidentialLedgerClient.js +130 -0
- package/dist-esm/src/confidentialLedgerClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +379 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +47 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +19 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +501 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +118 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/ledger.d.ts +107 -0
- package/dist-esm/src/operations/ledger.d.ts.map +1 -0
- package/dist-esm/src/operations/ledger.js +507 -0
- package/dist-esm/src/operations/ledger.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/ledger.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/ledger.js +9 -0
- package/dist-esm/src/operationsInterfaces/ledger.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +38 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +122 -0
- package/review/arm-confidentialledger.api.md +333 -0
- package/rollup.config.js +122 -0
- package/src/confidentialLedgerClient.ts +181 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +442 -0
- package/src/models/mappers.ts +524 -0
- package/src/models/parameters.ts +137 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/ledger.ts +674 -0
- package/src/operations/operations.ts +137 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/ledger.ts +132 -0
- package/src/operationsInterfaces/operations.ts +25 -0
- package/tsconfig.json +33 -0
- package/types/arm-confidentialledger.d.ts +534 -0
- package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,mCAAmC,EAEnC,4BAA4B,EAG7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mCAAmC,CAAC;YAenD,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
13
|
+
/** Class containing Operations operations. */
|
14
|
+
export class OperationsImpl {
|
15
|
+
/**
|
16
|
+
* Initialize a new instance of the class Operations class.
|
17
|
+
* @param client Reference to the service client
|
18
|
+
*/
|
19
|
+
constructor(client) {
|
20
|
+
this.client = client;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Retrieves a list of available API operations
|
24
|
+
* @param options The options parameters.
|
25
|
+
*/
|
26
|
+
list(options) {
|
27
|
+
const iter = this.listPagingAll(options);
|
28
|
+
return {
|
29
|
+
next() {
|
30
|
+
return iter.next();
|
31
|
+
},
|
32
|
+
[Symbol.asyncIterator]() {
|
33
|
+
return this;
|
34
|
+
},
|
35
|
+
byPage: () => {
|
36
|
+
return this.listPagingPage(options);
|
37
|
+
}
|
38
|
+
};
|
39
|
+
}
|
40
|
+
listPagingPage(options) {
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
42
|
+
let result = yield __await(this._list(options));
|
43
|
+
yield yield __await(result.value || []);
|
44
|
+
let continuationToken = result.nextLink;
|
45
|
+
while (continuationToken) {
|
46
|
+
result = yield __await(this._listNext(continuationToken, options));
|
47
|
+
continuationToken = result.nextLink;
|
48
|
+
yield yield __await(result.value || []);
|
49
|
+
}
|
50
|
+
});
|
51
|
+
}
|
52
|
+
listPagingAll(options) {
|
53
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
54
|
+
var e_1, _a;
|
55
|
+
try {
|
56
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
57
|
+
const page = _c.value;
|
58
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
59
|
+
}
|
60
|
+
}
|
61
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
62
|
+
finally {
|
63
|
+
try {
|
64
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
65
|
+
}
|
66
|
+
finally { if (e_1) throw e_1.error; }
|
67
|
+
}
|
68
|
+
});
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Retrieves a list of available API operations
|
72
|
+
* @param options The options parameters.
|
73
|
+
*/
|
74
|
+
_list(options) {
|
75
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
76
|
+
}
|
77
|
+
/**
|
78
|
+
* ListNext
|
79
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
80
|
+
* @param options The options parameters.
|
81
|
+
*/
|
82
|
+
_listNext(nextLink, options) {
|
83
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
84
|
+
}
|
85
|
+
}
|
86
|
+
// Operation Specifications
|
87
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
88
|
+
const listOperationSpec = {
|
89
|
+
path: "/providers/Microsoft.ConfidentialLedger/operations",
|
90
|
+
httpMethod: "GET",
|
91
|
+
responses: {
|
92
|
+
200: {
|
93
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
94
|
+
},
|
95
|
+
default: {
|
96
|
+
bodyMapper: Mappers.ErrorResponse
|
97
|
+
}
|
98
|
+
},
|
99
|
+
queryParameters: [Parameters.apiVersion],
|
100
|
+
urlParameters: [Parameters.$host],
|
101
|
+
headerParameters: [Parameters.accept],
|
102
|
+
serializer
|
103
|
+
};
|
104
|
+
const listNextOperationSpec = {
|
105
|
+
path: "{nextLink}",
|
106
|
+
httpMethod: "GET",
|
107
|
+
responses: {
|
108
|
+
200: {
|
109
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
110
|
+
},
|
111
|
+
default: {
|
112
|
+
bodyMapper: Mappers.ErrorResponse
|
113
|
+
}
|
114
|
+
},
|
115
|
+
queryParameters: [Parameters.apiVersion],
|
116
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
117
|
+
headerParameters: [Parameters.accept],
|
118
|
+
serializer
|
119
|
+
};
|
120
|
+
//# sourceMappingURL=operations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,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EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export * from "./operations";
|
9
|
+
export * from "./ledger";
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
3
|
+
import { ConfidentialLedger, LedgerListByResourceGroupOptionalParams, LedgerListBySubscriptionOptionalParams, LedgerGetOptionalParams, LedgerGetResponse, LedgerDeleteOptionalParams, LedgerCreateOptionalParams, LedgerCreateResponse, LedgerUpdateOptionalParams, LedgerUpdateResponse } from "../models";
|
4
|
+
/** Interface representing a Ledger. */
|
5
|
+
export interface Ledger {
|
6
|
+
/**
|
7
|
+
* Retrieves the properties of all Confidential Ledgers.
|
8
|
+
* @param resourceGroupName The name of the resource group.
|
9
|
+
* @param options The options parameters.
|
10
|
+
*/
|
11
|
+
listByResourceGroup(resourceGroupName: string, options?: LedgerListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConfidentialLedger>;
|
12
|
+
/**
|
13
|
+
* Retrieves the properties of all Confidential Ledgers.
|
14
|
+
* @param options The options parameters.
|
15
|
+
*/
|
16
|
+
listBySubscription(options?: LedgerListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ConfidentialLedger>;
|
17
|
+
/**
|
18
|
+
* Retrieves the properties of a Confidential Ledger.
|
19
|
+
* @param resourceGroupName The name of the resource group.
|
20
|
+
* @param ledgerName Name of the Confidential Ledger
|
21
|
+
* @param options The options parameters.
|
22
|
+
*/
|
23
|
+
get(resourceGroupName: string, ledgerName: string, options?: LedgerGetOptionalParams): Promise<LedgerGetResponse>;
|
24
|
+
/**
|
25
|
+
* Deletes an existing Confidential Ledger.
|
26
|
+
* @param resourceGroupName The name of the resource group.
|
27
|
+
* @param ledgerName Name of the Confidential Ledger
|
28
|
+
* @param options The options parameters.
|
29
|
+
*/
|
30
|
+
beginDelete(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
31
|
+
/**
|
32
|
+
* Deletes an existing Confidential Ledger.
|
33
|
+
* @param resourceGroupName The name of the resource group.
|
34
|
+
* @param ledgerName Name of the Confidential Ledger
|
35
|
+
* @param options The options parameters.
|
36
|
+
*/
|
37
|
+
beginDeleteAndWait(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<void>;
|
38
|
+
/**
|
39
|
+
* Creates a Confidential Ledger with the specified ledger parameters.
|
40
|
+
* @param resourceGroupName The name of the resource group.
|
41
|
+
* @param ledgerName Name of the Confidential Ledger
|
42
|
+
* @param confidentialLedger Confidential Ledger Create Request Body
|
43
|
+
* @param options The options parameters.
|
44
|
+
*/
|
45
|
+
beginCreate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<PollerLike<PollOperationState<LedgerCreateResponse>, LedgerCreateResponse>>;
|
46
|
+
/**
|
47
|
+
* Creates a Confidential Ledger with the specified ledger parameters.
|
48
|
+
* @param resourceGroupName The name of the resource group.
|
49
|
+
* @param ledgerName Name of the Confidential Ledger
|
50
|
+
* @param confidentialLedger Confidential Ledger Create Request Body
|
51
|
+
* @param options The options parameters.
|
52
|
+
*/
|
53
|
+
beginCreateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<LedgerCreateResponse>;
|
54
|
+
/**
|
55
|
+
* Updates properties of Confidential Ledger
|
56
|
+
* @param resourceGroupName The name of the resource group.
|
57
|
+
* @param ledgerName Name of the Confidential Ledger
|
58
|
+
* @param confidentialLedger Confidential Ledger request body for Updating Ledger
|
59
|
+
* @param options The options parameters.
|
60
|
+
*/
|
61
|
+
beginUpdate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<PollerLike<PollOperationState<LedgerUpdateResponse>, LedgerUpdateResponse>>;
|
62
|
+
/**
|
63
|
+
* Updates properties of Confidential Ledger
|
64
|
+
* @param resourceGroupName The name of the resource group.
|
65
|
+
* @param ledgerName Name of the Confidential Ledger
|
66
|
+
* @param confidentialLedger Confidential Ledger request body for Updating Ledger
|
67
|
+
* @param options The options parameters.
|
68
|
+
*/
|
69
|
+
beginUpdateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<LedgerUpdateResponse>;
|
70
|
+
}
|
71
|
+
//# sourceMappingURL=ledger.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/ledger.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,uCAAuC,EACvC,sCAAsC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kB,EACtC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CACR,UAAU,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,CAC3E,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=ledger.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ledger.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/ledger.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { ResourceProviderOperationDefinition, OperationsListOptionalParams } from "../models";
|
3
|
+
/** Interface representing a Operations. */
|
4
|
+
export interface Operations {
|
5
|
+
/**
|
6
|
+
* Retrieves a list of available API operations
|
7
|
+
* @param options The options parameters.
|
8
|
+
*/
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mCAAmC,EACnC,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mCAAmC,CAAC,CAAC;CACpE"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=operations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
import { Recorder } from "@azure-tools/test-recorder";
|
10
|
+
const replaceableVariables = {
|
11
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
12
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
13
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
14
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
15
|
+
};
|
16
|
+
const recorderOptions = {
|
17
|
+
envSetupForPlayback: replaceableVariables
|
18
|
+
};
|
19
|
+
describe("My test", () => {
|
20
|
+
let recorder;
|
21
|
+
beforeEach(function () {
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
23
|
+
recorder = new Recorder(this.currentTest);
|
24
|
+
yield recorder.start(recorderOptions);
|
25
|
+
});
|
26
|
+
});
|
27
|
+
afterEach(function () {
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
29
|
+
yield recorder.stop();
|
30
|
+
});
|
31
|
+
});
|
32
|
+
it("sample test", function () {
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
34
|
+
console.log("Hi, I'm a test!");
|
35
|
+
});
|
36
|
+
});
|
37
|
+
});
|
38
|
+
//# sourceMappingURL=sampleTest.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
{
|
2
|
+
"name": "@azure/arm-confidentialledger",
|
3
|
+
"sdk-type": "mgmt",
|
4
|
+
"author": "Microsoft Corporation",
|
5
|
+
"description": "A generated SDK for ConfidentialLedgerClient.",
|
6
|
+
"version": "1.0.0",
|
7
|
+
"engines": {
|
8
|
+
"node": ">=12.0.0"
|
9
|
+
},
|
10
|
+
"dependencies": {
|
11
|
+
"@azure/core-lro": "^2.2.0",
|
12
|
+
"@azure/abort-controller": "^1.0.0",
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
14
|
+
"@azure/core-client": "^1.5.0",
|
15
|
+
"@azure/core-auth": "^1.3.0",
|
16
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
17
|
+
"tslib": "^2.2.0"
|
18
|
+
},
|
19
|
+
"keywords": [
|
20
|
+
"node",
|
21
|
+
"azure",
|
22
|
+
"typescript",
|
23
|
+
"browser",
|
24
|
+
"isomorphic"
|
25
|
+
],
|
26
|
+
"license": "MIT",
|
27
|
+
"main": "./dist/index.js",
|
28
|
+
"module": "./dist-esm/src/index.js",
|
29
|
+
"types": "./types/arm-confidentialledger.d.ts",
|
30
|
+
"devDependencies": {
|
31
|
+
"@microsoft/api-extractor": "7.18.11",
|
32
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
33
|
+
"@rollup/plugin-json": "^4.1.0",
|
34
|
+
"@rollup/plugin-multi-entry": "^4.1.0",
|
35
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
36
|
+
"mkdirp": "^1.0.4",
|
37
|
+
"rollup": "^2.66.1",
|
38
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
39
|
+
"typescript": "~4.2.0",
|
40
|
+
"uglify-js": "^3.4.9",
|
41
|
+
"rimraf": "^3.0.0",
|
42
|
+
"@azure/identity": "^2.0.1",
|
43
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
44
|
+
"@azure-tools/test-credential": "^1.0.0",
|
45
|
+
"mocha": "^7.1.1",
|
46
|
+
"@types/chai": "^4.2.8",
|
47
|
+
"chai": "^4.2.0",
|
48
|
+
"cross-env": "^7.0.2",
|
49
|
+
"@azure/dev-tool": "^1.0.0"
|
50
|
+
},
|
51
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/confidentialledger/arm-confidentialledger",
|
52
|
+
"repository": {
|
53
|
+
"type": "git",
|
54
|
+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
55
|
+
},
|
56
|
+
"bugs": {
|
57
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
58
|
+
},
|
59
|
+
"files": [
|
60
|
+
"dist/**/*.js",
|
61
|
+
"dist/**/*.js.map",
|
62
|
+
"dist/**/*.d.ts",
|
63
|
+
"dist/**/*.d.ts.map",
|
64
|
+
"dist-esm/**/*.js",
|
65
|
+
"dist-esm/**/*.js.map",
|
66
|
+
"dist-esm/**/*.d.ts",
|
67
|
+
"dist-esm/**/*.d.ts.map",
|
68
|
+
"src/**/*.ts",
|
69
|
+
"README.md",
|
70
|
+
"LICENSE",
|
71
|
+
"rollup.config.js",
|
72
|
+
"tsconfig.json",
|
73
|
+
"review/*",
|
74
|
+
"CHANGELOG.md",
|
75
|
+
"types/*"
|
76
|
+
],
|
77
|
+
"scripts": {
|
78
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
79
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
80
|
+
"prepack": "npm run build",
|
81
|
+
"pack": "npm pack 2>&1",
|
82
|
+
"extract-api": "api-extractor run --local",
|
83
|
+
"lint": "echo skipped",
|
84
|
+
"audit": "echo skipped",
|
85
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
86
|
+
"build:node": "echo skipped",
|
87
|
+
"build:browser": "echo skipped",
|
88
|
+
"build:test": "echo skipped",
|
89
|
+
"build:samples": "echo skipped.",
|
90
|
+
"check-format": "echo skipped",
|
91
|
+
"execute:samples": "echo skipped",
|
92
|
+
"format": "echo skipped",
|
93
|
+
"test": "npm run integration-test",
|
94
|
+
"test:node": "echo skipped",
|
95
|
+
"test:browser": "echo skipped",
|
96
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
97
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
98
|
+
"unit-test:browser": "echo skipped",
|
99
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
100
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
101
|
+
"integration-test:browser": "echo skipped",
|
102
|
+
"docs": "echo skipped"
|
103
|
+
},
|
104
|
+
"sideEffects": false,
|
105
|
+
"//metadata": {
|
106
|
+
"constantPaths": [
|
107
|
+
{
|
108
|
+
"path": "src/confidentialLedgerClient.ts",
|
109
|
+
"prefix": "packageDetails"
|
110
|
+
}
|
111
|
+
]
|
112
|
+
},
|
113
|
+
"autoPublish": true,
|
114
|
+
"//sampleConfiguration": {
|
115
|
+
"productName": "",
|
116
|
+
"productSlugs": [
|
117
|
+
"azure"
|
118
|
+
],
|
119
|
+
"disableDocsMs": true,
|
120
|
+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-confidentialledger?view=azure-node-preview"
|
121
|
+
}
|
122
|
+
}
|