Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
797 changes: 399 additions & 398 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

54 changes: 8 additions & 46 deletions sdk/confidentialledger/arm-confidentialledger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# Release History

## 1.3.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.3.0-beta.2 (2024-04-16)

## 1.3.0-beta.3 (2024-08-07)
Compared with version 1.2.0

### Features Added

Expand Down Expand Up @@ -60,44 +51,15 @@
- Added Type Alias ManagedCCFRestoreOperationResponse
- Added Type Alias ManagedCCFUpdateResponse
- Added Type Alias RunningState
- Interface LedgerProperties has a new optional parameter hostLevel
- Interface LedgerProperties has a new optional parameter ledgerSku
- Interface LedgerProperties has a new optional parameter maxBodySizeInMb
- Interface LedgerProperties has a new optional parameter nodeCount
- Interface LedgerProperties has a new optional parameter runningState
- Interface LedgerProperties has a new optional parameter subjectName
- Added Enum KnownLanguageRuntime
- Added Enum KnownLedgerSku
- Added Enum KnownRunningState


## 1.3.0-beta.1 (2023-04-19)

### Features Added

- Added operation group ManagedCCFOperations
- Added Interface CertificateTags
- Added Interface DeploymentType
- Added Interface ManagedCCF
- Added Interface ManagedCCFCreateOptionalParams
- Added Interface ManagedCCFDeleteOptionalParams
- Added Interface ManagedCCFGetOptionalParams
- Added Interface ManagedCCFList
- Added Interface ManagedCCFListByResourceGroupNextOptionalParams
- Added Interface ManagedCCFListByResourceGroupOptionalParams
- Added Interface ManagedCCFListBySubscriptionNextOptionalParams
- Added Interface ManagedCCFListBySubscriptionOptionalParams
- Added Interface ManagedCCFProperties
- Added Interface ManagedCCFUpdateOptionalParams
- Added Interface MemberIdentityCertificate
- Added Interface TrackedResource
- Added Type Alias LanguageRuntime
- Added Type Alias ManagedCCFCreateResponse
- Added Type Alias ManagedCCFGetResponse
- Added Type Alias ManagedCCFListByResourceGroupNextResponse
- Added Type Alias ManagedCCFListByResourceGroupResponse
- Added Type Alias ManagedCCFListBySubscriptionNextResponse
- Added Type Alias ManagedCCFListBySubscriptionResponse
- Added Type Alias RunningState
- Interface LedgerProperties has a new optional parameter runningState
- Added Enum KnownLanguageRuntime
- Added Enum KnownRunningState


## 1.2.0 (2023-01-12)
Expand All @@ -117,4 +79,4 @@

## 1.0.0 (2022-05-30)

The package of @azure/arm-confidentialledger is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
The package of @azure/arm-confidentialledger is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
8 changes: 4 additions & 4 deletions sdk/confidentialledger/arm-confidentialledger/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "15c4ed25135164c257da37731b3fa926a4f44d4a",
"commit": "00e36c5524b155733f901923a517e61c80c70672",
"readme": "specification/confidentialledger/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\confidentialledger\\resource-manager\\readme.md --use=@autorest/typescript@6.0.20 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/confidentialledger/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.5",
"use": "@autorest/typescript@6.0.20"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.11",
"use": "@autorest/typescript@^6.0.12"
}
20 changes: 6 additions & 14 deletions sdk/confidentialledger/arm-confidentialledger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
Expand All @@ -29,18 +29,18 @@
"types": "./types/arm-confidentialledger.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^2.1.2",
"mkdirp": "^3.0.1",
"typescript": "~5.5.3",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -106,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/confidentialledger/arm-confidentialledger",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-confidentialledger?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/confidentialledger/arm-confidentialledger"
}
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,18 @@ export type LedgerListBySubscriptionResponse = ConfidentialLedgerList;
export interface LedgerProperties {
aadBasedSecurityPrincipals?: AADBasedSecurityPrincipal[];
certBasedSecurityPrincipals?: CertBasedSecurityPrincipal[];
hostLevel?: string;
readonly identityServiceUri?: string;
readonly ledgerInternalNamespace?: string;
readonly ledgerName?: string;
ledgerSku?: LedgerSku;
ledgerType?: LedgerType;
readonly ledgerUri?: string;
maxBodySizeInMb?: number;
nodeCount?: number;
readonly provisioningState?: ProvisioningState;
runningState?: RunningState;
subjectName?: string;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-06-28-preview";
this.apiVersion = options.apiVersion || "2024-07-09-preview";
this.operations = new OperationsImpl(this);
this.ledger = new LedgerImpl(this);
this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ export interface LedgerProperties {
aadBasedSecurityPrincipals?: AADBasedSecurityPrincipal[];
/** Array of all cert based Security Principals. */
certBasedSecurityPrincipals?: CertBasedSecurityPrincipal[];
/** CCF Property for the logging level for the untrusted host: Trace, Debug, Info, Fail, Fatal. */
hostLevel?: string;
/** CCF Property for the maximum size of the http request body: 1MB, 5MB, 10MB. */
maxBodySizeInMb?: number;
/** CCF Property for the subject name to include in the node certificate. Default: CN=CCF Node. */
subjectName?: string;
/** Number of CCF nodes in the ACC Ledger. */
nodeCount?: number;
}

/** AAD based security principal with associated Ledger RoleName */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,30 @@ export const LedgerProperties: coreClient.CompositeMapper = {
},
},
},
hostLevel: {
serializedName: "hostLevel",
type: {
name: "String",
},
},
maxBodySizeInMb: {
serializedName: "maxBodySizeInMb",
type: {
name: "Number",
},
},
subjectName: {
serializedName: "subjectName",
type: {
name: "String",
},
},
nodeCount: {
serializedName: "nodeCount",
type: {
name: "Number",
},
},
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-06-28-preview",
defaultValue: "2024-07-09-preview",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
43 changes: 43 additions & 0 deletions sdk/confidentialledger/arm-confidentialledger/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import {
Recorder,
RecorderStartOptions,
env,
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id",
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables,
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function (this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function () {
await recorder.stop();
});

it("sample test", async function () {
console.log("Hi, I'm a test!");
});
});
10 changes: 2 additions & 8 deletions sdk/confidentialledger/arm-confidentialledger/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-confidentialledger": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down