Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove backendID from delete workspace API #7

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading