Skip to content

Commit

Permalink
fix: remove backendID from delete workspace API (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangyang96 authored Jan 14, 2025
1 parent 34dfa36 commit 6cc84f5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 31 deletions.
8 changes: 1 addition & 7 deletions api/openapispec/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5430,15 +5430,9 @@ const docTemplate = `{
"request.UpdateWorkspaceRequest": {
"type": "object",
"required": [
"backendID",
"id",
"owners"
"id"
],
"properties": {
"backendID": {
"description": "BackendID is the configuration backend id associated with the workspace.",
"type": "integer"
},
"description": {
"description": "Description is a human-readable description of the workspace.",
"type": "string"
Expand Down
8 changes: 1 addition & 7 deletions api/openapispec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5419,15 +5419,9 @@
"request.UpdateWorkspaceRequest": {
"type": "object",
"required": [
"backendID",
"id",
"owners"
"id"
],
"properties": {
"backendID": {
"description": "BackendID is the configuration backend id associated with the workspace.",
"type": "integer"
},
"description": {
"description": "Description is a human-readable description of the workspace.",
"type": "string"
Expand Down
6 changes: 0 additions & 6 deletions api/openapispec/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1218,10 +1218,6 @@ definitions:
type: object
request.UpdateWorkspaceRequest:
properties:
backendID:
description: BackendID is the configuration backend id associated with the
workspace.
type: integer
description:
description: Description is a human-readable description of the workspace.
type: string
Expand All @@ -1242,9 +1238,7 @@ definitions:
type: string
type: array
required:
- backendID
- id
- owners
type: object
request.WorkspaceConfigs:
properties:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kusionstack/kusion-api-client-sdk",
"version": "1.1.1",
"version": "1.1.2",
"description": "Kusion API Client SDK",
"main": "dist/src/client/index.js",
"types": "dist/src/client/index.d.ts",
Expand Down
6 changes: 1 addition & 5 deletions src/client/schemas.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1626,10 +1626,6 @@ export const request_UpdateStackRequestSchema = {

export const request_UpdateWorkspaceRequestSchema = {
properties: {
backendID: {
description: 'BackendID is the configuration backend id associated with the workspace.',
type: 'integer'
},
description: {
description: 'Description is a human-readable description of the workspace.',
type: 'string'
Expand Down Expand Up @@ -1657,7 +1653,7 @@ export const request_UpdateWorkspaceRequestSchema = {
type: 'array'
}
},
required: ['backendID', 'id', 'owners'],
required: ['id'],
type: 'object'
} as const;

Expand Down
6 changes: 1 addition & 5 deletions src/client/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1195,10 +1195,6 @@ export type request_UpdateStackRequest = {
};

export type request_UpdateWorkspaceRequest = {
/**
* BackendID is the configuration backend id associated with the workspace.
*/
backendID: number;
/**
* Description is a human-readable description of the workspace.
*/
Expand All @@ -1220,7 +1216,7 @@ export type request_UpdateWorkspaceRequest = {
/**
* Owners is a list of owners for the workspace.
*/
owners: Array<(string)>;
owners?: Array<(string)>;
};

export type request_WorkspaceConfigs = {
Expand Down

0 comments on commit 6cc84f5

Please sign in to comment.