Skip to content

Commit 31e79a6

Browse files
committed
SDK regeneration
1 parent 8a917fd commit 31e79a6

File tree

9 files changed

+19
-22
lines changed

9 files changed

+19
-22
lines changed

reference.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -6629,9 +6629,7 @@ This endpoint fetches the pod template hash to deployment version map for a spec
66296629
<dd>
66306630

66316631
```typescript
6632-
await client.v1.internal.applications.getPodTemplateHashToDeploymentVersion("id", {
6633-
podTemplateHashes: "podTemplateHashes",
6634-
});
6632+
await client.v1.internal.applications.getPodTemplateHashToDeploymentVersion("id");
66356633
```
66366634

66376635
</dd>

src/api/resources/v1/resources/internal/resources/applications/client/Client.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,19 @@ export class Applications {
4141
* @throws {@link TrueFoundry.BadRequestError}
4242
*
4343
* @example
44-
* await client.v1.internal.applications.getPodTemplateHashToDeploymentVersion("id", {
45-
* podTemplateHashes: "podTemplateHashes"
46-
* })
44+
* await client.v1.internal.applications.getPodTemplateHashToDeploymentVersion("id")
4745
*/
4846
public async getPodTemplateHashToDeploymentVersion(
4947
id: string,
50-
request: TrueFoundry.v1.internal.ApplicationsGetPodTemplateHashToDeploymentVersionRequest,
48+
request: TrueFoundry.v1.internal.ApplicationsGetPodTemplateHashToDeploymentVersionRequest = {},
5149
requestOptions?: Applications.RequestOptions,
5250
): Promise<Record<string, number>> {
5351
const { podTemplateHashes } = request;
5452
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
55-
_queryParams["podTemplateHashes"] = podTemplateHashes;
53+
if (podTemplateHashes != null) {
54+
_queryParams["podTemplateHashes"] = podTemplateHashes;
55+
}
56+
5657
const _response = await (this._options.fetcher ?? core.fetcher)({
5758
url: urlJoin(
5859
(await core.Supplier.get(this._options.baseUrl)) ??

src/api/resources/v1/resources/internal/resources/applications/client/requests/ApplicationsGetPodTemplateHashToDeploymentVersionRequest.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44

55
/**
66
* @example
7-
* {
8-
* podTemplateHashes: "podTemplateHashes"
9-
* }
7+
* {}
108
*/
119
export interface ApplicationsGetPodTemplateHashToDeploymentVersionRequest {
1210
/**
1311
* Pod Template Hashes (comma separated for multiple)
1412
*/
15-
podTemplateHashes: string;
13+
podTemplateHashes?: string;
1614
}

src/api/types/ApplicationDebugInfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import * as TrueFoundry from "../index";
66

77
export interface ApplicationDebugInfo {
8-
id: string;
8+
id?: string;
99
applicationId: string;
1010
application?: TrueFoundry.Application;
1111
debugInfo: Record<string, unknown>;

src/api/types/GetAutoProvisioningStateResponse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
export interface GetAutoProvisioningStateResponse {
66
/** State of auto-provisioning for the cluster. */
7-
state: Record<string, unknown>;
7+
state?: Record<string, unknown>;
88
}

src/api/types/Recommendation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export interface Recommendation {
66
id?: string;
77
clusterId?: string;
88
applicationId?: string;
9-
deploymentId: string;
10-
applicationVersion: number;
9+
deploymentId?: string;
10+
applicationVersion?: number;
1111
recommendationData: Record<string, unknown>;
1212
recommendationType: string;
1313
appliedDeploymentId?: string;

src/api/types/Secret.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export interface Secret {
1010
name: string;
1111
secretGroupId: string;
1212
value: string;
13-
createdBySubject: TrueFoundry.Subject;
13+
createdBySubject?: TrueFoundry.Subject;
1414
createdAt?: string;
1515
updatedAt?: string;
16-
secretVersions: TrueFoundry.SecretVersion[];
16+
secretVersions?: TrueFoundry.SecretVersion[];
1717
activeDeploymentsCount?: number;
1818
createdBy?: string;
1919
}

src/api/types/Session.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface Session {
1212
subjectPatName?: string;
1313
email?: string;
1414
subjectType: TrueFoundry.SessionSubjectType;
15-
tenantName: string;
15+
tenantName?: string;
1616
roles: string[];
1717
teams: string[];
1818
metadata?: TrueFoundry.UserMetadata;

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1310,9 +1310,9 @@ ejs@^3.1.10:
13101310
jake "^10.8.5"
13111311

13121312
electron-to-chromium@^1.5.73:
1313-
version "1.5.140"
1314-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.140.tgz#91d9279fe72963f22c5784cc7f3461b5fed34786"
1315-
integrity sha512-o82Rj+ONp4Ip7Cl1r7lrqx/pXhbp/lh9DpKcMNscFJdh8ebyRofnc7Sh01B4jx403RI0oqTBvlZ7OBIZLMr2+Q==
1313+
version "1.5.141"
1314+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.141.tgz#11776289d95385ca26d8cf95f31692ee58ee3a06"
1315+
integrity sha512-qS+qH9oqVYc1ooubTiB9l904WVyM6qNYxtOEEGReoZXw3xlqeYdFr5GclNzbkAufWgwWLEPoDi3d9MoRwwIjGw==
13161316

13171317
emittery@^0.13.1:
13181318
version "0.13.1"

0 commit comments

Comments
 (0)