Skip to content

Commit 9f5ab3f

Browse files
Generating javascript SDk for API version 2024-12-09preview (#33620)
### 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)
1 parent 5471724 commit 9f5ab3f

18 files changed

+485
-29
lines changed

sdk/confidentialledger/confidential-ledger-rest/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/confidentialledger/confidential-ledger-rest",
5-
"Tag": "js/confidentialledger/confidential-ledger-rest_cf1638c72c"
5+
"Tag": "js/confidentialledger/confidential-ledger-rest_c9adf6a88f"
66
}

sdk/confidentialledger/confidential-ledger-rest/review/confidential-ledger.api.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,30 @@ export interface ListLedgerEntriesQueryParamProperties {
693693
toTransactionId?: string;
694694
}
695695

696+
// @public (undocumented)
697+
export interface ListUserDefinedFunctions {
698+
get(options?: ListUserDefinedFunctionsParameters): StreamableMethod<ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse>;
699+
}
700+
701+
// @public
702+
export interface ListUserDefinedFunctions200Response extends HttpResponse {
703+
// (undocumented)
704+
body: PagedUserDefinedFunctionsOutput;
705+
// (undocumented)
706+
status: "200";
707+
}
708+
709+
// @public
710+
export interface ListUserDefinedFunctionsDefaultResponse extends HttpResponse {
711+
// (undocumented)
712+
body: ConfidentialLedgerErrorOutput;
713+
// (undocumented)
714+
status: string;
715+
}
716+
717+
// @public (undocumented)
718+
export type ListUserDefinedFunctionsParameters = RequestParameters;
719+
696720
// @public (undocumented)
697721
export interface ListUsers {
698722
get(options?: ListUsersParameters): StreamableMethod<ListUsers200Response | ListUsersDefaultResponse>;
@@ -772,6 +796,13 @@ export interface PagedLedgerEntriesOutput {
772796
state: "Loading" | "Ready";
773797
}
774798

799+
// @public
800+
export interface PagedUserDefinedFunctionsOutput {
801+
// (undocumented)
802+
functions: Array<UserDefinedFunctionOutput>;
803+
nextLink?: string;
804+
}
805+
775806
// @public
776807
export interface PagedUsersOutput {
777808
// (undocumented)
@@ -867,6 +898,7 @@ export interface Routes {
867898
(path: "/app/users"): ListUsers;
868899
(path: "/app/users/{userId}", userId: string): DeleteUser;
869900
(path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
901+
(path: "/app/userDefinedFunctions"): ListUserDefinedFunctions;
870902
}
871903

872904
// @public
@@ -884,6 +916,12 @@ export interface TransactionStatusOutput {
884916
transactionId: string;
885917
}
886918

919+
// @public
920+
export interface UserDefinedFunctionOutput {
921+
code: string;
922+
readonly id?: string;
923+
}
924+
887925
// (No @packageDocumentation comment for this package)
888926

889927
```

sdk/confidentialledger/confidential-ledger-rest/sample.env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ LEDGER_URI=
44
### for example, https://identity.confidential-ledger.core.azure.com/
55
IDENTITY_SERVICE_URL=
66

7-
LEDGER_IDENTITY=
7+
LEDGER_NAME=
8+
89

910
# App registration secret for AAD authentication
1011
AZURE_CLIENT_SECRET=
@@ -27,4 +28,4 @@ NODE_TLS_REJECT_UNAUTHORIZED=0
2728
NETWORK_CERTIFICATE=
2829
USER_CERTIFICATE=
2930

30-
USER_CERTIFICATE_THUMBPRINT=
31+
USER_CERTIFICATE_THUMBPRINT=

sdk/confidentialledger/confidential-ledger-rest/src/clientDefinitions.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import type {
1818
DeleteUserParameters,
1919
GetUserParameters,
2020
CreateOrUpdateUserParameters,
21+
ListUserDefinedFunctionsParameters,
2122
} from "./parameters.js";
2223
import type {
2324
GetConstitution200Response,
@@ -52,6 +53,8 @@ import type {
5253
GetUserDefaultResponse,
5354
CreateOrUpdateUser200Response,
5455
CreateOrUpdateUserDefaultResponse,
56+
ListUserDefinedFunctions200Response,
57+
ListUserDefinedFunctionsDefaultResponse,
5558
} from "./responses.js";
5659
import type { Client, StreamableMethod } from "@azure-rest/core-client";
5760

@@ -155,6 +158,15 @@ export interface DeleteUser {
155158
): StreamableMethod<CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse>;
156159
}
157160

161+
export interface ListUserDefinedFunctions {
162+
/** User defined functions stored in the Confidential Ledger */
163+
get(
164+
options?: ListUserDefinedFunctionsParameters,
165+
): StreamableMethod<
166+
ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse
167+
>;
168+
}
169+
158170
export interface Routes {
159171
/** Resource for '/app/governance/constitution' has methods for the following verbs: get */
160172
(path: "/app/governance/constitution"): GetConstitution;
@@ -180,6 +192,8 @@ export interface Routes {
180192
(path: "/app/users/{userId}", userId: string): DeleteUser;
181193
/** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: delete, get, patch */
182194
(path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
195+
/** Resource for '/app/userDefinedFunctions' has methods for the following verbs: get */
196+
(path: "/app/userDefinedFunctions"): ListUserDefinedFunctions;
183197
}
184198

185199
export type ConfidentialLedgerClient = Client & {

sdk/confidentialledger/confidential-ledger-rest/src/generated/clientDefinitions.ts

Lines changed: 74 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/confidentialledger/confidential-ledger-rest/src/generated/confidentialLedger.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/confidentialledger/confidential-ledger-rest/src/generated/isUnexpected.ts

Lines changed: 60 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)