Skip to content

Commit

Permalink
fix sdk client
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Oct 29, 2024
1 parent d8f9e2e commit d6f51df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
7 changes: 0 additions & 7 deletions openapi.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ paths:
patch:
summary: Upserts the agent
operationId: updateJobAgent
parameters:
- name: workspace
in: path
required: true
schema:
type: string
description: Name of the workspace
requestBody:
required: true
content:
Expand Down
13 changes: 1 addition & 12 deletions packages/node-sdk/src/apis/DefaultApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export interface UpdateJobOperationRequest {
}

export interface UpdateJobAgentOperationRequest {
workspace: string;
updateJobAgentRequest: UpdateJobAgentRequest;
}

Expand Down Expand Up @@ -563,13 +562,6 @@ export class DefaultApi extends runtime.BaseAPI {
requestParameters: UpdateJobAgentOperationRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<UpdateJobAgent200Response>> {
if (requestParameters["workspace"] == null) {
throw new runtime.RequiredError(
"workspace",
'Required parameter "workspace" was null or undefined when calling updateJobAgent().',
);
}

if (requestParameters["updateJobAgentRequest"] == null) {
throw new runtime.RequiredError(
"updateJobAgentRequest",
Expand All @@ -590,10 +582,7 @@ export class DefaultApi extends runtime.BaseAPI {

const response = await this.request(
{
path: `/v1/job-agents/name`.replace(
`{${"workspace"}}`,
encodeURIComponent(String(requestParameters["workspace"])),
),
path: `/v1/job-agents/name`,
method: "PATCH",
headers: headerParameters,
query: queryParameters,
Expand Down

0 comments on commit d6f51df

Please sign in to comment.