Skip to content

Commit

Permalink
[ConfidentialLedger] Generating SDK for API preview version 2024-08-22 (
Browse files Browse the repository at this point in the history
#32457)

### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Jeremy Meng <[email protected]>
  • Loading branch information
amruthashree18 and jeremymeng authored Jan 17, 2025
1 parent 4057bf4 commit b047804
Show file tree
Hide file tree
Showing 25 changed files with 1,178 additions and 182 deletions.
9 changes: 9 additions & 0 deletions sdk/confidentialledger/confidential-ledger-rest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release History

## 1.1.2 (Unreleased)

### Features Added

- User defined endpoint
- User defined endpoint runtimeoptions
- User defined endpoint modules
- User defined roles
-
## 1.1.0-beta.1 (Unreleased)

### Features Added
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "client",
"author": "Microsoft Corporation",
"description": "An isomorphic rest level client library for the Azure Confidential Ledger service.",
"version": "1.1.0-beta.1",
"version": "1.1.2",
"keywords": [
"node",
"azure",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
```ts

import { Client } from '@azure-rest/core-client';
import { ClientOptions } from '@azure-rest/core-client';
import { HttpResponse } from '@azure-rest/core-client';
import { PathUncheckedResponse } from '@azure-rest/core-client';
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
import { RequestParameters } from '@azure-rest/core-client';
import { StreamableMethod } from '@azure-rest/core-client';
import type { Client } from '@azure-rest/core-client';
import type { ClientOptions } from '@azure-rest/core-client';
import type { HttpResponse } from '@azure-rest/core-client';
import type { PathUncheckedResponse } from '@azure-rest/core-client';
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
import type { RequestParameters } from '@azure-rest/core-client';
import type { StreamableMethod } from '@azure-rest/core-client';
import type { TokenCredential } from '@azure/core-auth';

// @public
Expand All @@ -20,6 +20,20 @@ export interface ApplicationClaimOutput {
ledgerEntry?: LedgerEntryClaimOutput;
}

// @public
export interface Bundle {
// (undocumented)
metadata: Metadata;
modules: Record<string, unknown>;
}

// @public
export interface BundleOutput {
// (undocumented)
metadata: MetadataOutput;
modules: Record<string, unknown>;
}

// @public
export interface ClaimDigestOutput {
protocol: "LedgerEntryV1";
Expand Down Expand Up @@ -161,6 +175,33 @@ export interface CreateOrUpdateUserMediaTypesParam {
// @public (undocumented)
export type CreateOrUpdateUserParameters = CreateOrUpdateUserMediaTypesParam & CreateOrUpdateUserBodyParam & RequestParameters;

// @public
export interface CreateUserDefinedEndpoint201Response extends HttpResponse {
// (undocumented)
status: "201";
}

// @public (undocumented)
export interface CreateUserDefinedEndpointBodyParam {
body: Bundle;
}

// @public
export interface CreateUserDefinedEndpointDefaultResponse extends HttpResponse {
// (undocumented)
body: ConfidentialLedgerErrorOutput;
// (undocumented)
status: string;
}

// @public (undocumented)
export interface CreateUserDefinedEndpointMediaTypesParam {
contentType?: "application/json";
}

// @public (undocumented)
export type CreateUserDefinedEndpointParameters = CreateUserDefinedEndpointMediaTypesParam & CreateUserDefinedEndpointBodyParam & RequestParameters;

// @public (undocumented)
export interface DeleteUser {
delete(options?: DeleteUserParameters): StreamableMethod<DeleteUser204Response | DeleteUserDefaultResponse>;
Expand Down Expand Up @@ -193,6 +234,48 @@ export interface EnclaveQuoteOutput {
raw: string;
}

// @public (undocumented)
export interface EndpointProperties {
// (undocumented)
authn_policies: Array<any>;
// (undocumented)
forwarding_required: "sometimes" | "always" | "never";
// (undocumented)
interpreter_reuse?: InterpreterReusePolicy;
// (undocumented)
js_function?: string;
// (undocumented)
js_module?: string;
// (undocumented)
mode?: "readwrite" | "readonly" | "historical";
openapi?: any;
// (undocumented)
openapi_hidden?: boolean;
// (undocumented)
redirection_strategy?: "none" | "to_primary" | "to_backup";
}

// @public (undocumented)
export interface EndpointPropertiesOutput {
// (undocumented)
authn_policies: Array<any>;
// (undocumented)
forwarding_required: "sometimes" | "always" | "never";
// (undocumented)
interpreter_reuse?: InterpreterReusePolicyOutput;
// (undocumented)
js_function?: string;
// (undocumented)
js_module?: string;
// (undocumented)
mode?: "readwrite" | "readonly" | "historical";
openapi?: any;
// (undocumented)
openapi_hidden?: boolean;
// (undocumented)
redirection_strategy?: "none" | "to_primary" | "to_backup";
}

// @public
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;

Expand Down Expand Up @@ -387,9 +470,46 @@ export interface GetUserDefaultResponse extends HttpResponse {
status: string;
}

// @public (undocumented)
export interface GetUserDefinedEndpoint {
get(options?: GetUserDefinedEndpointParameters): StreamableMethod<GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse>;
put(options: CreateUserDefinedEndpointParameters): StreamableMethod<CreateUserDefinedEndpoint201Response | CreateUserDefinedEndpointDefaultResponse>;
}

// @public
export interface GetUserDefinedEndpoint200Response extends HttpResponse {
// (undocumented)
body: BundleOutput;
// (undocumented)
status: "200";
}

// @public
export interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {
// (undocumented)
body: ConfidentialLedgerErrorOutput;
// (undocumented)
status: string;
}

// @public (undocumented)
export type GetUserDefinedEndpointParameters = RequestParameters;

// @public (undocumented)
export type GetUserParameters = RequestParameters;

// @public (undocumented)
export interface InterpreterReusePolicy {
// (undocumented)
key: string;
}

// @public (undocumented)
export interface InterpreterReusePolicyOutput {
// (undocumented)
key: string;
}

// @public (undocumented)
export function isUnexpected(response: GetConstitution200Response | GetConstitutionDefaultResponse): response is GetConstitutionDefaultResponse;

Expand Down Expand Up @@ -597,6 +717,40 @@ export interface ListUsersDefaultResponse extends HttpResponse {
// @public (undocumented)
export type ListUsersParameters = RequestParameters;

// @public (undocumented)
export interface Metadata {
endpoints: Record<string, MethodToEndpointProperties>;
}

// @public (undocumented)
export interface MetadataOutput {
endpoints: Record<string, MethodToEndpointPropertiesOutput>;
}

// @public (undocumented)
export interface MethodToEndpointProperties {
// (undocumented)
delete?: EndpointProperties;
// (undocumented)
get?: EndpointProperties;
// (undocumented)
patch?: EndpointProperties;
// (undocumented)
put?: EndpointProperties;
}

// @public (undocumented)
export interface MethodToEndpointPropertiesOutput {
// (undocumented)
delete?: EndpointPropertiesOutput;
// (undocumented)
get?: EndpointPropertiesOutput;
// (undocumented)
patch?: EndpointPropertiesOutput;
// (undocumented)
put?: EndpointPropertiesOutput;
}

// @public
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
Expand Down Expand Up @@ -712,6 +866,7 @@ export interface Routes {
(path: "/app/transactions/current"): GetCurrentLedgerEntry;
(path: "/app/users"): ListUsers;
(path: "/app/users/{userId}", userId: string): DeleteUser;
(path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
}

// @public
Expand Down
Loading

0 comments on commit b047804

Please sign in to comment.