Skip to content

Commit

Permalink
CodeGen from PR 24632 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e7c895f2ce34729fdf5903269caf3a6efde688cc into 7a7ee130391f197014e51e7c18781088fdd1c181
  • Loading branch information
SDKAuto committed Sep 14, 2023
1 parent b581882 commit 94630e4
Show file tree
Hide file tree
Showing 15 changed files with 1,284 additions and 91 deletions.
195 changes: 162 additions & 33 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

33 changes: 21 additions & 12 deletions sdk/confidentialledger/arm-confidentialledger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# Release History

## 1.3.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

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

## 1.3.0-beta.2 (2023-09-14)

**Features**

- Added operation group ManagedCCFOperations
- Added operation Ledger.beginBackup
- Added operation Ledger.beginBackupAndWait
- Added operation Ledger.beginRestore
- Added operation Ledger.beginRestoreAndWait
- Added Interface CertificateTags
- Added Interface ConfidentialLedgerBackup
- Added Interface ConfidentialLedgerBackupRestoreResponse
- Added Interface ConfidentialLedgerRestore
- Added Interface DeploymentType
- Added Interface LedgerBackupOptionalParams
- Added Interface LedgerRestoreOptionalParams
- Added Interface ManagedCCF
- Added Interface ManagedCCFBackup
- Added Interface ManagedCCFBackupOptionalParams
- Added Interface ManagedCCFBackupRestoreResponse
- Added Interface ManagedCCFCreateOptionalParams
- Added Interface ManagedCCFDeleteOptionalParams
- Added Interface ManagedCCFGetOptionalParams
Expand All @@ -27,16 +29,23 @@
- Added Interface ManagedCCFListBySubscriptionNextOptionalParams
- Added Interface ManagedCCFListBySubscriptionOptionalParams
- Added Interface ManagedCCFProperties
- Added Interface ManagedCCFRestore
- Added Interface ManagedCCFRestoreOptionalParams
- Added Interface ManagedCCFUpdateOptionalParams
- Added Interface MemberIdentityCertificate
- Added Interface TrackedResource
- Added Type Alias LanguageRuntime
- Added Type Alias LedgerBackupResponse
- Added Type Alias LedgerRestoreResponse
- Added Type Alias ManagedCCFBackupResponse
- 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 ManagedCCFRestoreResponse
- Added Type Alias ManagedCCFUpdateResponse
- Added Type Alias RunningState
- Interface LedgerProperties has a new optional parameter runningState
- Added Enum KnownLanguageRuntime
Expand Down
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": "536b9a8ae0f41df1f1479b1a42c8d656cbf0c8d6",
"commit": "92fce6c71c256e16f7cf869e7a2eccccc2e253ec",
"readme": "specification/confidentialledger/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --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.0-rc.10 --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.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/typescript@6.0.0-rc.10"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@^6.0.4"
}
24 changes: 8 additions & 16 deletions sdk/confidentialledger/arm-confidentialledger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -38,7 +38,7 @@
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
Expand All @@ -48,8 +48,8 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -84,7 +84,7 @@
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand Down Expand Up @@ -112,13 +112,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 @@ -58,6 +58,17 @@ export interface ConfidentialLedger extends TrackedResource {
properties?: LedgerProperties;
}

// @public
export interface ConfidentialLedgerBackup {
restoreRegion?: string;
uri?: string;
}

// @public
export interface ConfidentialLedgerBackupRestoreResponse {
readonly message?: string;
}

// @public (undocumented)
export class ConfidentialLedgerClient extends coreClient.ServiceClient {
// (undocumented)
Expand Down Expand Up @@ -89,6 +100,13 @@ export interface ConfidentialLedgerList {
value?: ConfidentialLedger[];
}

// @public
export interface ConfidentialLedgerRestore {
fileShareName?: string;
restoreRegion?: string;
uri?: string;
}

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -180,17 +198,30 @@ export type LanguageRuntime = string;

// @public
export interface Ledger {
beginBackup(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerBackup, options?: LedgerBackupOptionalParams): Promise<SimplePollerLike<OperationState<LedgerBackupResponse>, LedgerBackupResponse>>;
beginBackupAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerBackup, options?: LedgerBackupOptionalParams): Promise<LedgerBackupResponse>;
beginCreate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<SimplePollerLike<OperationState<LedgerCreateResponse>, LedgerCreateResponse>>;
beginCreateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerCreateOptionalParams): Promise<LedgerCreateResponse>;
beginDelete(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, ledgerName: string, options?: LedgerDeleteOptionalParams): Promise<void>;
beginRestore(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerRestore, options?: LedgerRestoreOptionalParams): Promise<SimplePollerLike<OperationState<LedgerRestoreResponse>, LedgerRestoreResponse>>;
beginRestoreAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerRestore, options?: LedgerRestoreOptionalParams): Promise<LedgerRestoreResponse>;
beginUpdate(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<SimplePollerLike<OperationState<LedgerUpdateResponse>, LedgerUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<LedgerUpdateResponse>;
get(resourceGroupName: string, ledgerName: string, options?: LedgerGetOptionalParams): Promise<LedgerGetResponse>;
listByResourceGroup(resourceGroupName: string, options?: LedgerListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConfidentialLedger>;
listBySubscription(options?: LedgerListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ConfidentialLedger>;
}

// @public
export interface LedgerBackupOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type LedgerBackupResponse = ConfidentialLedgerBackupRestoreResponse;

// @public
export interface LedgerCreateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -256,6 +287,15 @@ export interface LedgerProperties {
runningState?: RunningState;
}

// @public
export interface LedgerRestoreOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type LedgerRestoreResponse = ConfidentialLedgerBackupRestoreResponse;

// @public
export type LedgerRoleName = string;

Expand All @@ -276,6 +316,26 @@ export interface ManagedCCF extends TrackedResource {
properties?: ManagedCCFProperties;
}

// @public
export interface ManagedCCFBackup {
restoreRegion?: string;
uri?: string;
}

// @public
export interface ManagedCCFBackupOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type ManagedCCFBackupResponse = ManagedCCFBackupRestoreResponse;

// @public
export interface ManagedCCFBackupRestoreResponse {
readonly message?: string;
}

// @public
export interface ManagedCCFCreateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -336,12 +396,16 @@ export type ManagedCCFListBySubscriptionResponse = ManagedCCFList;

// @public
export interface ManagedCCFOperations {
beginBackup(resourceGroupName: string, appName: string, managedCCF: ManagedCCFBackup, options?: ManagedCCFBackupOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFBackupResponse>, ManagedCCFBackupResponse>>;
beginBackupAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCFBackup, options?: ManagedCCFBackupOptionalParams): Promise<ManagedCCFBackupResponse>;
beginCreate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFCreateResponse>, ManagedCCFCreateResponse>>;
beginCreateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFCreateOptionalParams): Promise<ManagedCCFCreateResponse>;
beginDelete(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, appName: string, options?: ManagedCCFDeleteOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<void>;
beginRestore(resourceGroupName: string, appName: string, managedCCF: ManagedCCFRestore, options?: ManagedCCFRestoreOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFRestoreResponse>, ManagedCCFRestoreResponse>>;
beginRestoreAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCFRestore, options?: ManagedCCFRestoreOptionalParams): Promise<ManagedCCFRestoreResponse>;
beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFUpdateResponse>, ManagedCCFUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<ManagedCCFUpdateResponse>;
get(resourceGroupName: string, appName: string, options?: ManagedCCFGetOptionalParams): Promise<ManagedCCFGetResponse>;
listByResourceGroup(resourceGroupName: string, options?: ManagedCCFListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
listBySubscription(options?: ManagedCCFListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ManagedCCF>;
Expand All @@ -356,14 +420,34 @@ export interface ManagedCCFProperties {
memberIdentityCertificates?: MemberIdentityCertificate[];
nodeCount?: number;
readonly provisioningState?: ProvisioningState;
runningState?: RunningState;
}

// @public
export interface ManagedCCFRestore {
fileShareName?: string;
restoreRegion?: string;
uri?: string;
}

// @public
export interface ManagedCCFRestoreOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type ManagedCCFRestoreResponse = ManagedCCFBackupRestoreResponse;

// @public
export interface ManagedCCFUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type ManagedCCFUpdateResponse = ManagedCCF;

// @public
export interface MemberIdentityCertificate {
certificate?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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-01-26-preview";
this.apiVersion = options.apiVersion || "2023-06-28-preview";
this.operations = new OperationsImpl(this);
this.ledger = new LedgerImpl(this);
this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
Expand Down
Loading

0 comments on commit 94630e4

Please sign in to comment.