@azure/arm-confidentialledger 1.2.1-alpha.20230320.1 → 1.3.0-alpha.20230410.2
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 +33 -10
- package/README.md +1 -1
- package/dist/index.js +839 -90
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/ledgerCreateSample.js +1 -1
- package/dist-esm/samples-dev/ledgerDeleteSample.js +1 -1
- package/dist-esm/samples-dev/ledgerGetSample.js +1 -1
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/ledgerUpdateSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.js +58 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.js +40 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfGetSample.js +40 -0
- package/dist-esm/samples-dev/managedCcfGetSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +53 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +51 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.js +50 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/src/confidentialLedgerClient.d.ts +3 -3
- package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.js +5 -5
- package/dist-esm/src/confidentialLedgerClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +176 -13
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +188 -16
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +23 -3
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/ledger.d.ts +14 -14
- package/dist-esm/src/operations/ledger.d.ts.map +1 -1
- package/dist-esm/src/operations/ledger.js +37 -25
- package/dist-esm/src/operations/ledger.js.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.d.ts +107 -0
- package/dist-esm/src/operations/managedCCFOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/managedCCFOperations.js +532 -0
- package/dist-esm/src/operations/managedCCFOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts +12 -12
- package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.js.map +1 -0
- package/package.json +5 -5
- package/review/arm-confidentialledger.api.md +151 -11
- package/src/confidentialLedgerClient.ts +15 -6
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +202 -14
- package/src/models/mappers.ts +202 -17
- package/src/models/parameters.ts +26 -3
- package/src/operations/index.ts +1 -0
- package/src/operations/ledger.ts +50 -40
- package/src/operations/managedCCFOperations.ts +696 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/ledger.ts +12 -12
- package/src/operationsInterfaces/managedCCFOperations.ts +132 -0
- package/types/arm-confidentialledger.d.ts +284 -29
@@ -0,0 +1,71 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
3
|
+
import { ManagedCCF, ManagedCCFListByResourceGroupOptionalParams, ManagedCCFListBySubscriptionOptionalParams, ManagedCCFGetOptionalParams, ManagedCCFGetResponse, ManagedCCFDeleteOptionalParams, ManagedCCFCreateOptionalParams, ManagedCCFCreateResponse, ManagedCCFUpdateOptionalParams } from "../models";
|
4
|
+
/** Interface representing a ManagedCCFOperations. */
|
5
|
+
export interface ManagedCCFOperations {
|
6
|
+
/**
|
7
|
+
* Retrieves the properties of all Managed CCF apps.
|
8
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
9
|
+
* @param options The options parameters.
|
10
|
+
*/
|
11
|
+
listByResourceGroup(resourceGroupName: string, options?: ManagedCCFListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
|
12
|
+
/**
|
13
|
+
* Retrieves the properties of all Managed CCF.
|
14
|
+
* @param options The options parameters.
|
15
|
+
*/
|
16
|
+
listBySubscription(options?: ManagedCCFListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
|
17
|
+
/**
|
18
|
+
* Retrieves the properties of a Managed CCF app.
|
19
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
20
|
+
* @param appName Name of the Managed CCF
|
21
|
+
* @param options The options parameters.
|
22
|
+
*/
|
23
|
+
get(resourceGroupName: string, appName: string, options?: ManagedCCFGetOptionalParams): Promise<ManagedCCFGetResponse>;
|
24
|
+
/**
|
25
|
+
* Deletes an existing Managed CCF.
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
27
|
+
* @param appName Name of the Managed CCF
|
28
|
+
* @param options The options parameters.
|
29
|
+
*/
|
30
|
+
beginDelete(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
31
|
+
/**
|
32
|
+
* Deletes an existing Managed CCF.
|
33
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
34
|
+
* @param appName Name of the Managed CCF
|
35
|
+
* @param options The options parameters.
|
36
|
+
*/
|
37
|
+
beginDeleteAndWait(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<void>;
|
38
|
+
/**
|
39
|
+
* Creates a Managed CCF with the specified Managed CCF parameters.
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
41
|
+
* @param appName Name of the Managed CCF
|
42
|
+
* @param managedCCF Managed CCF Create Request Body
|
43
|
+
* @param options The options parameters.
|
44
|
+
*/
|
45
|
+
beginCreate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFCreateResponse>, ManagedCCFCreateResponse>>;
|
46
|
+
/**
|
47
|
+
* Creates a Managed CCF with the specified Managed CCF parameters.
|
48
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
49
|
+
* @param appName Name of the Managed CCF
|
50
|
+
* @param managedCCF Managed CCF Create Request Body
|
51
|
+
* @param options The options parameters.
|
52
|
+
*/
|
53
|
+
beginCreateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<ManagedCCFCreateResponse>;
|
54
|
+
/**
|
55
|
+
* Updates properties of Managed CCF
|
56
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
57
|
+
* @param appName Name of the Managed CCF
|
58
|
+
* @param managedCCF Request body for Updating Managed CCF App
|
59
|
+
* @param options The options parameters.
|
60
|
+
*/
|
61
|
+
beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
62
|
+
/**
|
63
|
+
* Updates properties of Managed CCF
|
64
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
65
|
+
* @param appName Name of the Managed CCF
|
66
|
+
* @param managedCCF Request body for Updating Managed CCF App
|
67
|
+
* @param options The options parameters.
|
68
|
+
*/
|
69
|
+
beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<void>;
|
70
|
+
}
|
71
|
+
//# sourceMappingURL=managedCCFOperations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"managedCCFOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/managedCCFOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,UAAU,EACV,2CAA2C,EAC3C,0CAA0C,EAC1C,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC1C;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,0CAA0C,GACnD,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAClC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,wBAAwB,CAAC,EACxC,wBAAwB,CACzB,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACrC;;;;;;OAMG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
@@ -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=managedCCFOperations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"managedCCFOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/managedCCFOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
package/package.json
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
"sdk-type": "mgmt",
|
4
4
|
"author": "Microsoft Corporation",
|
5
5
|
"description": "A generated SDK for ConfidentialLedgerClient.",
|
6
|
-
"version": "1.
|
6
|
+
"version": "1.3.0-alpha.20230410.2",
|
7
7
|
"engines": {
|
8
8
|
"node": ">=14.0.0"
|
9
9
|
},
|
10
10
|
"dependencies": {
|
11
|
-
"@azure/core-lro": "^2.
|
11
|
+
"@azure/core-lro": "^2.5.0",
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
14
|
-
"@azure/core-client": "^1.
|
14
|
+
"@azure/core-client": "^1.7.0",
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
17
17
|
"tslib": "^2.2.0"
|
@@ -33,13 +33,13 @@
|
|
33
33
|
"@rollup/plugin-json": "^6.0.0",
|
34
34
|
"@rollup/plugin-multi-entry": "^6.0.0",
|
35
35
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
36
|
-
"mkdirp": "^1.
|
36
|
+
"mkdirp": "^2.1.2",
|
37
37
|
"rollup": "^2.66.1",
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
39
39
|
"typescript": "~4.8.0",
|
40
40
|
"uglify-js": "^3.4.9",
|
41
41
|
"rimraf": "^3.0.0",
|
42
|
-
"dotenv": "^
|
42
|
+
"dotenv": "^16.0.0",
|
43
43
|
"@azure/identity": "^2.0.1",
|
44
44
|
"@azure-tools/test-recorder": "^3.0.0",
|
45
45
|
"@azure-tools/test-credential": "^1.0.0",
|
@@ -6,9 +6,9 @@
|
|
6
6
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
8
8
|
import * as coreClient from '@azure/core-client';
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
10
|
-
import {
|
11
|
-
import { PollOperationState } from '@azure/core-lro';
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
12
12
|
|
13
13
|
// @public
|
14
14
|
export interface AADBasedSecurityPrincipal {
|
@@ -23,6 +23,13 @@ export interface CertBasedSecurityPrincipal {
|
|
23
23
|
ledgerRoleName?: LedgerRoleName;
|
24
24
|
}
|
25
25
|
|
26
|
+
// @public
|
27
|
+
export interface CertificateTags {
|
28
|
+
tags?: {
|
29
|
+
[propertyName: string]: string;
|
30
|
+
};
|
31
|
+
}
|
32
|
+
|
26
33
|
// @public
|
27
34
|
export type CheckNameAvailabilityOperationResponse = CheckNameAvailabilityResponse;
|
28
35
|
|
@@ -47,8 +54,9 @@ export interface CheckNameAvailabilityResponse {
|
|
47
54
|
}
|
48
55
|
|
49
56
|
// @public
|
50
|
-
export interface ConfidentialLedger extends
|
57
|
+
export interface ConfidentialLedger extends TrackedResource, Tags {
|
51
58
|
properties?: LedgerProperties;
|
59
|
+
runningState?: RunningState;
|
52
60
|
}
|
53
61
|
|
54
62
|
// @public (undocumented)
|
@@ -62,6 +70,8 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
62
70
|
// (undocumented)
|
63
71
|
ledger: Ledger;
|
64
72
|
// (undocumented)
|
73
|
+
managedCCFOperations: ManagedCCFOperations;
|
74
|
+
// (undocumented)
|
65
75
|
operations: Operations;
|
66
76
|
// (undocumented)
|
67
77
|
subscriptionId: string;
|
@@ -83,6 +93,12 @@ export interface ConfidentialLedgerList {
|
|
83
93
|
// @public
|
84
94
|
export type CreatedByType = string;
|
85
95
|
|
96
|
+
// @public
|
97
|
+
export interface DeploymentType {
|
98
|
+
appSourceUri?: string;
|
99
|
+
languageRuntime?: LanguageRuntime;
|
100
|
+
}
|
101
|
+
|
86
102
|
// @public
|
87
103
|
export interface ErrorAdditionalInfo {
|
88
104
|
readonly info?: Record<string, unknown>;
|
@@ -120,6 +136,12 @@ export enum KnownCreatedByType {
|
|
120
136
|
User = "User"
|
121
137
|
}
|
122
138
|
|
139
|
+
// @public
|
140
|
+
export enum KnownLanguageRuntime {
|
141
|
+
CPP = "CPP",
|
142
|
+
JS = "JS"
|
143
|
+
}
|
144
|
+
|
123
145
|
// @public
|
124
146
|
export enum KnownLedgerRoleName {
|
125
147
|
Administrator = "Administrator",
|
@@ -145,13 +167,25 @@ export enum KnownProvisioningState {
|
|
145
167
|
Updating = "Updating"
|
146
168
|
}
|
147
169
|
|
170
|
+
// @public
|
171
|
+
export enum KnownRunningState {
|
172
|
+
Active = "Active",
|
173
|
+
Paused = "Paused",
|
174
|
+
Pausing = "Pausing",
|
175
|
+
Resuming = "Resuming",
|
176
|
+
Unknown = "Unknown"
|
177
|
+
}
|
178
|
+
|
179
|
+
// @public
|
180
|
+
export type LanguageRuntime = string;
|
181
|
+
|
148
182
|
// @public
|
149
183
|
export interface Ledger {
|
150
|
-
beginCreate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<
|
184
|
+
beginCreate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<SimplePollerLike<OperationState<LedgerCreateResponse>, LedgerCreateResponse>>;
|
151
185
|
beginCreateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<LedgerCreateResponse>;
|
152
|
-
beginDelete(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<
|
186
|
+
beginDelete(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
153
187
|
beginDeleteAndWait(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<void>;
|
154
|
-
beginUpdate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<
|
188
|
+
beginUpdate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<SimplePollerLike<OperationState<LedgerUpdateResponse>, LedgerUpdateResponse>>;
|
155
189
|
beginUpdateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<LedgerUpdateResponse>;
|
156
190
|
get(resourceGroupName: string, ledgerName: string, options?: LedgerGetOptionalParams): Promise<LedgerGetResponse>;
|
157
191
|
listByResourceGroup(resourceGroupName: string, options?: LedgerListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConfidentialLedger>;
|
@@ -237,6 +271,106 @@ export interface LedgerUpdateOptionalParams extends coreClient.OperationOptions
|
|
237
271
|
// @public
|
238
272
|
export type LedgerUpdateResponse = ConfidentialLedger;
|
239
273
|
|
274
|
+
// @public
|
275
|
+
export interface ManagedCCF extends TrackedResource {
|
276
|
+
properties?: ManagedCCFProperties;
|
277
|
+
}
|
278
|
+
|
279
|
+
// @public
|
280
|
+
export interface ManagedCCFCreateOptionalParams extends coreClient.OperationOptions {
|
281
|
+
resumeFrom?: string;
|
282
|
+
updateIntervalInMs?: number;
|
283
|
+
}
|
284
|
+
|
285
|
+
// @public
|
286
|
+
export type ManagedCCFCreateResponse = ManagedCCF;
|
287
|
+
|
288
|
+
// @public
|
289
|
+
export interface ManagedCCFDeleteOptionalParams extends coreClient.OperationOptions {
|
290
|
+
resumeFrom?: string;
|
291
|
+
updateIntervalInMs?: number;
|
292
|
+
}
|
293
|
+
|
294
|
+
// @public
|
295
|
+
export interface ManagedCCFGetOptionalParams extends coreClient.OperationOptions {
|
296
|
+
}
|
297
|
+
|
298
|
+
// @public
|
299
|
+
export type ManagedCCFGetResponse = ManagedCCF;
|
300
|
+
|
301
|
+
// @public
|
302
|
+
export interface ManagedCCFList {
|
303
|
+
nextLink?: string;
|
304
|
+
value?: ManagedCCF[];
|
305
|
+
}
|
306
|
+
|
307
|
+
// @public
|
308
|
+
export interface ManagedCCFListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
309
|
+
}
|
310
|
+
|
311
|
+
// @public
|
312
|
+
export type ManagedCCFListByResourceGroupNextResponse = ManagedCCFList;
|
313
|
+
|
314
|
+
// @public
|
315
|
+
export interface ManagedCCFListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
316
|
+
filter?: string;
|
317
|
+
}
|
318
|
+
|
319
|
+
// @public
|
320
|
+
export type ManagedCCFListByResourceGroupResponse = ManagedCCFList;
|
321
|
+
|
322
|
+
// @public
|
323
|
+
export interface ManagedCCFListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
324
|
+
}
|
325
|
+
|
326
|
+
// @public
|
327
|
+
export type ManagedCCFListBySubscriptionNextResponse = ManagedCCFList;
|
328
|
+
|
329
|
+
// @public
|
330
|
+
export interface ManagedCCFListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
331
|
+
filter?: string;
|
332
|
+
}
|
333
|
+
|
334
|
+
// @public
|
335
|
+
export type ManagedCCFListBySubscriptionResponse = ManagedCCFList;
|
336
|
+
|
337
|
+
// @public
|
338
|
+
export interface ManagedCCFOperations {
|
339
|
+
beginCreate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFCreateResponse>, ManagedCCFCreateResponse>>;
|
340
|
+
beginCreateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<ManagedCCFCreateResponse>;
|
341
|
+
beginDelete(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
342
|
+
beginDeleteAndWait(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<void>;
|
343
|
+
beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
344
|
+
beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<void>;
|
345
|
+
get(resourceGroupName: string, appName: string, options?: ManagedCCFGetOptionalParams): Promise<ManagedCCFGetResponse>;
|
346
|
+
listByResourceGroup(resourceGroupName: string, options?: ManagedCCFListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
|
347
|
+
listBySubscription(options?: ManagedCCFListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
|
348
|
+
}
|
349
|
+
|
350
|
+
// @public
|
351
|
+
export interface ManagedCCFProperties {
|
352
|
+
readonly appName?: string;
|
353
|
+
readonly appUri?: string;
|
354
|
+
deploymentType?: DeploymentType;
|
355
|
+
readonly identityServiceUri?: string;
|
356
|
+
memberIdentityCertificates?: MemberIdentityCertificate[];
|
357
|
+
nodeCount?: number;
|
358
|
+
readonly provisioningState?: ProvisioningState;
|
359
|
+
}
|
360
|
+
|
361
|
+
// @public
|
362
|
+
export interface ManagedCCFUpdateOptionalParams extends coreClient.OperationOptions {
|
363
|
+
resumeFrom?: string;
|
364
|
+
updateIntervalInMs?: number;
|
365
|
+
}
|
366
|
+
|
367
|
+
// @public
|
368
|
+
export interface MemberIdentityCertificate {
|
369
|
+
certificate?: string;
|
370
|
+
encryptionkey?: string;
|
371
|
+
tags?: any;
|
372
|
+
}
|
373
|
+
|
240
374
|
// @public
|
241
375
|
export interface Operations {
|
242
376
|
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
|
@@ -267,11 +401,6 @@ export interface Resource {
|
|
267
401
|
readonly type?: string;
|
268
402
|
}
|
269
403
|
|
270
|
-
// @public
|
271
|
-
export interface ResourceLocation {
|
272
|
-
location?: string;
|
273
|
-
}
|
274
|
-
|
275
404
|
// @public
|
276
405
|
export interface ResourceProviderOperationDefinition {
|
277
406
|
display?: ResourceProviderOperationDisplay;
|
@@ -293,6 +422,9 @@ export interface ResourceProviderOperationList {
|
|
293
422
|
readonly value?: ResourceProviderOperationDefinition[];
|
294
423
|
}
|
295
424
|
|
425
|
+
// @public
|
426
|
+
export type RunningState = string;
|
427
|
+
|
296
428
|
// @public
|
297
429
|
export interface SystemData {
|
298
430
|
createdAt?: Date;
|
@@ -310,6 +442,14 @@ export interface Tags {
|
|
310
442
|
};
|
311
443
|
}
|
312
444
|
|
445
|
+
// @public
|
446
|
+
export interface TrackedResource extends Resource {
|
447
|
+
location: string;
|
448
|
+
tags?: {
|
449
|
+
[propertyName: string]: string;
|
450
|
+
};
|
451
|
+
}
|
452
|
+
|
313
453
|
// (No @packageDocumentation comment for this package)
|
314
454
|
|
315
455
|
```
|
@@ -14,8 +14,16 @@ import {
|
|
14
14
|
SendRequest
|
15
15
|
} from "@azure/core-rest-pipeline";
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
17
|
-
import {
|
18
|
-
|
17
|
+
import {
|
18
|
+
OperationsImpl,
|
19
|
+
LedgerImpl,
|
20
|
+
ManagedCCFOperationsImpl
|
21
|
+
} from "./operations";
|
22
|
+
import {
|
23
|
+
Operations,
|
24
|
+
Ledger,
|
25
|
+
ManagedCCFOperations
|
26
|
+
} from "./operationsInterfaces";
|
19
27
|
import * as Parameters from "./models/parameters";
|
20
28
|
import * as Mappers from "./models/mappers";
|
21
29
|
import {
|
@@ -33,8 +41,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
33
41
|
/**
|
34
42
|
* Initializes a new instance of the ConfidentialLedgerClient class.
|
35
43
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
36
|
-
* @param subscriptionId The
|
37
|
-
* 00000000-0000-0000-0000-000000000000)
|
44
|
+
* @param subscriptionId The ID of the target subscription.
|
38
45
|
* @param options The parameter options
|
39
46
|
*/
|
40
47
|
constructor(
|
@@ -58,7 +65,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
58
65
|
credential: credentials
|
59
66
|
};
|
60
67
|
|
61
|
-
const packageDetails = `azsdk-js-arm-confidentialledger/1.
|
68
|
+
const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.1`;
|
62
69
|
const userAgentPrefix =
|
63
70
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
64
71
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
@@ -111,9 +118,10 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
111
118
|
|
112
119
|
// Assigning values to Constant parameters
|
113
120
|
this.$host = options.$host || "https://management.azure.com";
|
114
|
-
this.apiVersion = options.apiVersion || "
|
121
|
+
this.apiVersion = options.apiVersion || "2023-01-26-preview";
|
115
122
|
this.operations = new OperationsImpl(this);
|
116
123
|
this.ledger = new LedgerImpl(this);
|
124
|
+
this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
|
117
125
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
118
126
|
}
|
119
127
|
|
@@ -162,6 +170,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
162
170
|
|
163
171
|
operations: Operations;
|
164
172
|
ledger: Ledger;
|
173
|
+
managedCCFOperations: ManagedCCFOperations;
|
165
174
|
}
|
166
175
|
// Operation Specifications
|
167
176
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
package/src/lroImpl.ts
CHANGED
@@ -6,29 +6,37 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT license.
|
11
|
+
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
10
14
|
|
11
|
-
export
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
...restSpec
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
15
|
+
export function createLroSpec<T>(inputs: {
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
17
|
+
args: Record<string, unknown>;
|
18
|
+
spec: {
|
19
|
+
readonly requestBody?: unknown;
|
20
|
+
readonly path?: string;
|
21
|
+
readonly httpMethod: string;
|
22
|
+
} & Record<string, any>;
|
23
|
+
}): LongRunningOperation<T> {
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
25
|
+
return {
|
26
|
+
requestMethod: spec.httpMethod,
|
27
|
+
requestPath: spec.path!,
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
29
|
+
sendPollRequest: (
|
30
|
+
path: string,
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
32
|
+
) => {
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
34
|
+
return sendOperationFn(args, {
|
35
|
+
...restSpec,
|
36
|
+
httpMethod: "GET",
|
37
|
+
path,
|
38
|
+
abortSignal: options?.abortSignal
|
39
|
+
});
|
40
|
+
}
|
41
|
+
};
|
34
42
|
}
|