windmill-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.sh +7 -0
- package/package.json +7 -0
- package/src/core/ApiError.ts +24 -0
- package/src/core/ApiRequestOptions.ts +16 -0
- package/src/core/ApiResult.ts +10 -0
- package/src/core/CancelablePromise.ts +128 -0
- package/src/core/OpenAPI.ts +31 -0
- package/src/core/request.ts +308 -0
- package/src/index.ts +100 -0
- package/src/models/AppWithLastVersion.ts +31 -0
- package/src/models/AppWithLastVersionWDraft.ts +11 -0
- package/src/models/AuditLog.ts +42 -0
- package/src/models/BranchAll.ts +16 -0
- package/src/models/BranchOne.ts +16 -0
- package/src/models/CompletedJob.ts +68 -0
- package/src/models/ContextualVariable.ts +10 -0
- package/src/models/CreateInput.ts +9 -0
- package/src/models/CreateResource.ts +11 -0
- package/src/models/CreateVariable.ts +13 -0
- package/src/models/CreateWorkspace.ts +10 -0
- package/src/models/EditResource.ts +10 -0
- package/src/models/EditResourceType.ts +9 -0
- package/src/models/EditSchedule.ts +12 -0
- package/src/models/EditVariable.ts +11 -0
- package/src/models/EditWorkspaceUser.ts +10 -0
- package/src/models/Flow.ts +9 -0
- package/src/models/FlowMetadata.ts +16 -0
- package/src/models/FlowModule.ts +24 -0
- package/src/models/FlowModuleValue.ts +14 -0
- package/src/models/FlowPreview.ts +13 -0
- package/src/models/FlowStatus.ts +18 -0
- package/src/models/FlowStatusModule.ts +43 -0
- package/src/models/FlowValue.ts +12 -0
- package/src/models/Folder.ts +10 -0
- package/src/models/ForloopFlow.ts +15 -0
- package/src/models/GlobalUserInfo.ts +23 -0
- package/src/models/Group.ts +11 -0
- package/src/models/Identity.ts +9 -0
- package/src/models/Input.ts +13 -0
- package/src/models/InputTransform.ts +9 -0
- package/src/models/JavascriptTransform.ts +9 -0
- package/src/models/Job.ts +21 -0
- package/src/models/ListableApp.ts +27 -0
- package/src/models/ListableResource.ts +19 -0
- package/src/models/ListableVariable.ts +19 -0
- package/src/models/Login.ts +9 -0
- package/src/models/MainArgSignature.ts +42 -0
- package/src/models/NewSchedule.ts +16 -0
- package/src/models/NewScript.ts +39 -0
- package/src/models/NewScriptWithDraft.ts +11 -0
- package/src/models/NewToken.ts +9 -0
- package/src/models/NewTokenImpersonate.ts +10 -0
- package/src/models/NewUser.ts +10 -0
- package/src/models/OpenFlow.ts +13 -0
- package/src/models/OpenFlowWPath.ts +10 -0
- package/src/models/PathFlow.ts +12 -0
- package/src/models/PathScript.ts +13 -0
- package/src/models/Policy.ts +22 -0
- package/src/models/Preview.ts +26 -0
- package/src/models/QueuedJob.ts +66 -0
- package/src/models/RawScript.ts +28 -0
- package/src/models/Resource.ts +14 -0
- package/src/models/ResourceType.ts +11 -0
- package/src/models/Retry.ts +16 -0
- package/src/models/RunnableType.ts +9 -0
- package/src/models/Schedule.ts +21 -0
- package/src/models/Script.ts +53 -0
- package/src/models/ScriptArgs.ts +5 -0
- package/src/models/SlackToken.ts +13 -0
- package/src/models/StaticTransform.ts +9 -0
- package/src/models/TokenResponse.ts +11 -0
- package/src/models/TruncatedToken.ts +12 -0
- package/src/models/UpdateInput.ts +10 -0
- package/src/models/Usage.ts +8 -0
- package/src/models/User.ts +20 -0
- package/src/models/UserWorkspaceList.ts +13 -0
- package/src/models/WorkerPing.ts +13 -0
- package/src/models/Workspace.ts +11 -0
- package/src/models/WorkspaceInvite.ts +11 -0
- package/src/services/AdminService.ts +90 -0
- package/src/services/AppService.ts +383 -0
- package/src/services/AuditService.ts +103 -0
- package/src/services/CaptureService.ts +79 -0
- package/src/services/DraftService.ts +37 -0
- package/src/services/FavoriteService.ts +62 -0
- package/src/services/FlowService.ts +368 -0
- package/src/services/FolderService.ts +269 -0
- package/src/services/GranularAclService.ts +104 -0
- package/src/services/GroupService.ts +238 -0
- package/src/services/InputService.ts +175 -0
- package/src/services/JobService.ts +1247 -0
- package/src/services/OauthService.ts +197 -0
- package/src/services/ResourceService.ts +395 -0
- package/src/services/ScheduleService.ts +223 -0
- package/src/services/ScriptService.ts +601 -0
- package/src/services/SettingsService.ts +34 -0
- package/src/services/UserService.ts +574 -0
- package/src/services/VariableService.ts +194 -0
- package/src/services/WorkerService.ts +52 -0
- package/src/services/WorkspaceService.ts +446 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { TokenResponse } from '../models/TokenResponse';
|
|
5
|
+
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
8
|
+
import { request as __request } from '../core/request';
|
|
9
|
+
|
|
10
|
+
export class OauthService {
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* connect slack callback
|
|
14
|
+
* @returns string slack token
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
public static connectSlackCallback({
|
|
18
|
+
workspace,
|
|
19
|
+
requestBody,
|
|
20
|
+
}: {
|
|
21
|
+
workspace: string,
|
|
22
|
+
/**
|
|
23
|
+
* code endpoint
|
|
24
|
+
*/
|
|
25
|
+
requestBody: {
|
|
26
|
+
code: string;
|
|
27
|
+
state: string;
|
|
28
|
+
},
|
|
29
|
+
}): CancelablePromise<string> {
|
|
30
|
+
return __request(OpenAPI, {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
url: '/w/{workspace}/oauth/connect_slack_callback',
|
|
33
|
+
path: {
|
|
34
|
+
'workspace': workspace,
|
|
35
|
+
},
|
|
36
|
+
body: requestBody,
|
|
37
|
+
mediaType: 'application/json',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* connect callback
|
|
43
|
+
* @returns TokenResponse oauth token
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
public static connectCallback({
|
|
47
|
+
clientName,
|
|
48
|
+
requestBody,
|
|
49
|
+
}: {
|
|
50
|
+
clientName: string,
|
|
51
|
+
/**
|
|
52
|
+
* code endpoint
|
|
53
|
+
*/
|
|
54
|
+
requestBody: {
|
|
55
|
+
code: string;
|
|
56
|
+
state: string;
|
|
57
|
+
},
|
|
58
|
+
}): CancelablePromise<TokenResponse> {
|
|
59
|
+
return __request(OpenAPI, {
|
|
60
|
+
method: 'POST',
|
|
61
|
+
url: '/oauth/connect_callback/{client_name}',
|
|
62
|
+
path: {
|
|
63
|
+
'client_name': clientName,
|
|
64
|
+
},
|
|
65
|
+
body: requestBody,
|
|
66
|
+
mediaType: 'application/json',
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* create OAuth account
|
|
72
|
+
* @returns string account set
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
public static createAccount({
|
|
76
|
+
workspace,
|
|
77
|
+
requestBody,
|
|
78
|
+
}: {
|
|
79
|
+
workspace: string,
|
|
80
|
+
/**
|
|
81
|
+
* code endpoint
|
|
82
|
+
*/
|
|
83
|
+
requestBody: {
|
|
84
|
+
refresh_token?: string;
|
|
85
|
+
expires_in: number;
|
|
86
|
+
owner: string;
|
|
87
|
+
client: string;
|
|
88
|
+
},
|
|
89
|
+
}): CancelablePromise<string> {
|
|
90
|
+
return __request(OpenAPI, {
|
|
91
|
+
method: 'POST',
|
|
92
|
+
url: '/w/{workspace}/oauth/create_account',
|
|
93
|
+
path: {
|
|
94
|
+
'workspace': workspace,
|
|
95
|
+
},
|
|
96
|
+
body: requestBody,
|
|
97
|
+
mediaType: 'application/json',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* refresh token
|
|
103
|
+
* @returns string token refreshed
|
|
104
|
+
* @throws ApiError
|
|
105
|
+
*/
|
|
106
|
+
public static refreshToken({
|
|
107
|
+
workspace,
|
|
108
|
+
id,
|
|
109
|
+
requestBody,
|
|
110
|
+
}: {
|
|
111
|
+
workspace: string,
|
|
112
|
+
id: number,
|
|
113
|
+
/**
|
|
114
|
+
* variable path
|
|
115
|
+
*/
|
|
116
|
+
requestBody: {
|
|
117
|
+
path: string;
|
|
118
|
+
},
|
|
119
|
+
}): CancelablePromise<string> {
|
|
120
|
+
return __request(OpenAPI, {
|
|
121
|
+
method: 'POST',
|
|
122
|
+
url: '/w/{workspace}/oauth/refresh_token/{id}',
|
|
123
|
+
path: {
|
|
124
|
+
'workspace': workspace,
|
|
125
|
+
'id': id,
|
|
126
|
+
},
|
|
127
|
+
body: requestBody,
|
|
128
|
+
mediaType: 'application/json',
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* disconnect account
|
|
134
|
+
* @returns string disconnected client
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
public static disconnectAccount({
|
|
138
|
+
workspace,
|
|
139
|
+
id,
|
|
140
|
+
}: {
|
|
141
|
+
workspace: string,
|
|
142
|
+
id: number,
|
|
143
|
+
}): CancelablePromise<string> {
|
|
144
|
+
return __request(OpenAPI, {
|
|
145
|
+
method: 'POST',
|
|
146
|
+
url: '/w/{workspace}/oauth/disconnect/{id}',
|
|
147
|
+
path: {
|
|
148
|
+
'workspace': workspace,
|
|
149
|
+
'id': id,
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* disconnect slack
|
|
156
|
+
* @returns string disconnected slack
|
|
157
|
+
* @throws ApiError
|
|
158
|
+
*/
|
|
159
|
+
public static disconnectSlack({
|
|
160
|
+
workspace,
|
|
161
|
+
}: {
|
|
162
|
+
workspace: string,
|
|
163
|
+
}): CancelablePromise<string> {
|
|
164
|
+
return __request(OpenAPI, {
|
|
165
|
+
method: 'POST',
|
|
166
|
+
url: '/w/{workspace}/oauth/disconnect_slack',
|
|
167
|
+
path: {
|
|
168
|
+
'workspace': workspace,
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* list oauth logins
|
|
175
|
+
* @returns string list of oauth login clients
|
|
176
|
+
* @throws ApiError
|
|
177
|
+
*/
|
|
178
|
+
public static listOAuthLogins(): CancelablePromise<Array<string>> {
|
|
179
|
+
return __request(OpenAPI, {
|
|
180
|
+
method: 'GET',
|
|
181
|
+
url: '/oauth/list_logins',
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* list oauth connects
|
|
187
|
+
* @returns any list of oauth connects clients
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
public static listOAuthConnects(): CancelablePromise<any> {
|
|
191
|
+
return __request(OpenAPI, {
|
|
192
|
+
method: 'GET',
|
|
193
|
+
url: '/oauth/list_connects',
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
}
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { CreateResource } from '../models/CreateResource';
|
|
5
|
+
import type { EditResource } from '../models/EditResource';
|
|
6
|
+
import type { EditResourceType } from '../models/EditResourceType';
|
|
7
|
+
import type { ListableResource } from '../models/ListableResource';
|
|
8
|
+
import type { Resource } from '../models/Resource';
|
|
9
|
+
import type { ResourceType } from '../models/ResourceType';
|
|
10
|
+
|
|
11
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
13
|
+
import { request as __request } from '../core/request';
|
|
14
|
+
|
|
15
|
+
export class ResourceService {
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* create resource
|
|
19
|
+
* @returns string resource created
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
public static createResource({
|
|
23
|
+
workspace,
|
|
24
|
+
requestBody,
|
|
25
|
+
}: {
|
|
26
|
+
workspace: string,
|
|
27
|
+
/**
|
|
28
|
+
* new resource
|
|
29
|
+
*/
|
|
30
|
+
requestBody: CreateResource,
|
|
31
|
+
}): CancelablePromise<string> {
|
|
32
|
+
return __request(OpenAPI, {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
url: '/w/{workspace}/resources/create',
|
|
35
|
+
path: {
|
|
36
|
+
'workspace': workspace,
|
|
37
|
+
},
|
|
38
|
+
body: requestBody,
|
|
39
|
+
mediaType: 'application/json',
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* delete resource
|
|
45
|
+
* @returns string resource deleted
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
public static deleteResource({
|
|
49
|
+
workspace,
|
|
50
|
+
path,
|
|
51
|
+
}: {
|
|
52
|
+
workspace: string,
|
|
53
|
+
path: string,
|
|
54
|
+
}): CancelablePromise<string> {
|
|
55
|
+
return __request(OpenAPI, {
|
|
56
|
+
method: 'DELETE',
|
|
57
|
+
url: '/w/{workspace}/resources/delete/{path}',
|
|
58
|
+
path: {
|
|
59
|
+
'workspace': workspace,
|
|
60
|
+
'path': path,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* update resource
|
|
67
|
+
* @returns string resource updated
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
public static updateResource({
|
|
71
|
+
workspace,
|
|
72
|
+
path,
|
|
73
|
+
requestBody,
|
|
74
|
+
}: {
|
|
75
|
+
workspace: string,
|
|
76
|
+
path: string,
|
|
77
|
+
/**
|
|
78
|
+
* updated resource
|
|
79
|
+
*/
|
|
80
|
+
requestBody: EditResource,
|
|
81
|
+
}): CancelablePromise<string> {
|
|
82
|
+
return __request(OpenAPI, {
|
|
83
|
+
method: 'POST',
|
|
84
|
+
url: '/w/{workspace}/resources/update/{path}',
|
|
85
|
+
path: {
|
|
86
|
+
'workspace': workspace,
|
|
87
|
+
'path': path,
|
|
88
|
+
},
|
|
89
|
+
body: requestBody,
|
|
90
|
+
mediaType: 'application/json',
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* update resource value
|
|
96
|
+
* @returns string resource value updated
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
public static updateResourceValue({
|
|
100
|
+
workspace,
|
|
101
|
+
path,
|
|
102
|
+
requestBody,
|
|
103
|
+
}: {
|
|
104
|
+
workspace: string,
|
|
105
|
+
path: string,
|
|
106
|
+
/**
|
|
107
|
+
* updated resource
|
|
108
|
+
*/
|
|
109
|
+
requestBody: {
|
|
110
|
+
value?: any;
|
|
111
|
+
},
|
|
112
|
+
}): CancelablePromise<string> {
|
|
113
|
+
return __request(OpenAPI, {
|
|
114
|
+
method: 'POST',
|
|
115
|
+
url: '/w/{workspace}/resources/update_value/{path}',
|
|
116
|
+
path: {
|
|
117
|
+
'workspace': workspace,
|
|
118
|
+
'path': path,
|
|
119
|
+
},
|
|
120
|
+
body: requestBody,
|
|
121
|
+
mediaType: 'application/json',
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* get resource
|
|
127
|
+
* @returns Resource resource
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
public static getResource({
|
|
131
|
+
workspace,
|
|
132
|
+
path,
|
|
133
|
+
}: {
|
|
134
|
+
workspace: string,
|
|
135
|
+
path: string,
|
|
136
|
+
}): CancelablePromise<Resource> {
|
|
137
|
+
return __request(OpenAPI, {
|
|
138
|
+
method: 'GET',
|
|
139
|
+
url: '/w/{workspace}/resources/get/{path}',
|
|
140
|
+
path: {
|
|
141
|
+
'workspace': workspace,
|
|
142
|
+
'path': path,
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* get resource value
|
|
149
|
+
* @returns any resource value
|
|
150
|
+
* @throws ApiError
|
|
151
|
+
*/
|
|
152
|
+
public static getResourceValue({
|
|
153
|
+
workspace,
|
|
154
|
+
path,
|
|
155
|
+
}: {
|
|
156
|
+
workspace: string,
|
|
157
|
+
path: string,
|
|
158
|
+
}): CancelablePromise<any> {
|
|
159
|
+
return __request(OpenAPI, {
|
|
160
|
+
method: 'GET',
|
|
161
|
+
url: '/w/{workspace}/resources/get_value/{path}',
|
|
162
|
+
path: {
|
|
163
|
+
'workspace': workspace,
|
|
164
|
+
'path': path,
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* does resource exists
|
|
171
|
+
* @returns boolean does resource exists
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
public static existsResource({
|
|
175
|
+
workspace,
|
|
176
|
+
path,
|
|
177
|
+
}: {
|
|
178
|
+
workspace: string,
|
|
179
|
+
path: string,
|
|
180
|
+
}): CancelablePromise<boolean> {
|
|
181
|
+
return __request(OpenAPI, {
|
|
182
|
+
method: 'GET',
|
|
183
|
+
url: '/w/{workspace}/resources/exists/{path}',
|
|
184
|
+
path: {
|
|
185
|
+
'workspace': workspace,
|
|
186
|
+
'path': path,
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* list resources
|
|
193
|
+
* @returns ListableResource resource list
|
|
194
|
+
* @throws ApiError
|
|
195
|
+
*/
|
|
196
|
+
public static listResource({
|
|
197
|
+
workspace,
|
|
198
|
+
page,
|
|
199
|
+
perPage,
|
|
200
|
+
resourceType,
|
|
201
|
+
resourceTypeExclude,
|
|
202
|
+
}: {
|
|
203
|
+
workspace: string,
|
|
204
|
+
/**
|
|
205
|
+
* which page to return (start at 1, default 1)
|
|
206
|
+
*/
|
|
207
|
+
page?: number,
|
|
208
|
+
/**
|
|
209
|
+
* number of items to return for a given page (default 30, max 100)
|
|
210
|
+
*/
|
|
211
|
+
perPage?: number,
|
|
212
|
+
/**
|
|
213
|
+
* resource_types to list from, separated by ',',
|
|
214
|
+
*/
|
|
215
|
+
resourceType?: string,
|
|
216
|
+
/**
|
|
217
|
+
* resource_types to not list from, separated by ',',
|
|
218
|
+
*/
|
|
219
|
+
resourceTypeExclude?: string,
|
|
220
|
+
}): CancelablePromise<Array<ListableResource>> {
|
|
221
|
+
return __request(OpenAPI, {
|
|
222
|
+
method: 'GET',
|
|
223
|
+
url: '/w/{workspace}/resources/list',
|
|
224
|
+
path: {
|
|
225
|
+
'workspace': workspace,
|
|
226
|
+
},
|
|
227
|
+
query: {
|
|
228
|
+
'page': page,
|
|
229
|
+
'per_page': perPage,
|
|
230
|
+
'resource_type': resourceType,
|
|
231
|
+
'resource_type_exclude': resourceTypeExclude,
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* create resource_type
|
|
238
|
+
* @returns string resource_type created
|
|
239
|
+
* @throws ApiError
|
|
240
|
+
*/
|
|
241
|
+
public static createResourceType({
|
|
242
|
+
workspace,
|
|
243
|
+
requestBody,
|
|
244
|
+
}: {
|
|
245
|
+
workspace: string,
|
|
246
|
+
/**
|
|
247
|
+
* new resource_type
|
|
248
|
+
*/
|
|
249
|
+
requestBody: ResourceType,
|
|
250
|
+
}): CancelablePromise<string> {
|
|
251
|
+
return __request(OpenAPI, {
|
|
252
|
+
method: 'POST',
|
|
253
|
+
url: '/w/{workspace}/resources/type/create',
|
|
254
|
+
path: {
|
|
255
|
+
'workspace': workspace,
|
|
256
|
+
},
|
|
257
|
+
body: requestBody,
|
|
258
|
+
mediaType: 'application/json',
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* delete resource_type
|
|
264
|
+
* @returns string resource_type deleted
|
|
265
|
+
* @throws ApiError
|
|
266
|
+
*/
|
|
267
|
+
public static deleteResourceType({
|
|
268
|
+
workspace,
|
|
269
|
+
path,
|
|
270
|
+
}: {
|
|
271
|
+
workspace: string,
|
|
272
|
+
path: string,
|
|
273
|
+
}): CancelablePromise<string> {
|
|
274
|
+
return __request(OpenAPI, {
|
|
275
|
+
method: 'DELETE',
|
|
276
|
+
url: '/w/{workspace}/resources/type/delete/{path}',
|
|
277
|
+
path: {
|
|
278
|
+
'workspace': workspace,
|
|
279
|
+
'path': path,
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* update resource_type
|
|
286
|
+
* @returns string resource_type updated
|
|
287
|
+
* @throws ApiError
|
|
288
|
+
*/
|
|
289
|
+
public static updateResourceType({
|
|
290
|
+
workspace,
|
|
291
|
+
path,
|
|
292
|
+
requestBody,
|
|
293
|
+
}: {
|
|
294
|
+
workspace: string,
|
|
295
|
+
path: string,
|
|
296
|
+
/**
|
|
297
|
+
* updated resource_type
|
|
298
|
+
*/
|
|
299
|
+
requestBody: EditResourceType,
|
|
300
|
+
}): CancelablePromise<string> {
|
|
301
|
+
return __request(OpenAPI, {
|
|
302
|
+
method: 'POST',
|
|
303
|
+
url: '/w/{workspace}/resources/type/update/{path}',
|
|
304
|
+
path: {
|
|
305
|
+
'workspace': workspace,
|
|
306
|
+
'path': path,
|
|
307
|
+
},
|
|
308
|
+
body: requestBody,
|
|
309
|
+
mediaType: 'application/json',
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* get resource_type
|
|
315
|
+
* @returns ResourceType resource_type deleted
|
|
316
|
+
* @throws ApiError
|
|
317
|
+
*/
|
|
318
|
+
public static getResourceType({
|
|
319
|
+
workspace,
|
|
320
|
+
path,
|
|
321
|
+
}: {
|
|
322
|
+
workspace: string,
|
|
323
|
+
path: string,
|
|
324
|
+
}): CancelablePromise<ResourceType> {
|
|
325
|
+
return __request(OpenAPI, {
|
|
326
|
+
method: 'GET',
|
|
327
|
+
url: '/w/{workspace}/resources/type/get/{path}',
|
|
328
|
+
path: {
|
|
329
|
+
'workspace': workspace,
|
|
330
|
+
'path': path,
|
|
331
|
+
},
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* does resource_type exists
|
|
337
|
+
* @returns boolean does resource_type exist
|
|
338
|
+
* @throws ApiError
|
|
339
|
+
*/
|
|
340
|
+
public static existsResourceType({
|
|
341
|
+
workspace,
|
|
342
|
+
path,
|
|
343
|
+
}: {
|
|
344
|
+
workspace: string,
|
|
345
|
+
path: string,
|
|
346
|
+
}): CancelablePromise<boolean> {
|
|
347
|
+
return __request(OpenAPI, {
|
|
348
|
+
method: 'GET',
|
|
349
|
+
url: '/w/{workspace}/resources/type/exists/{path}',
|
|
350
|
+
path: {
|
|
351
|
+
'workspace': workspace,
|
|
352
|
+
'path': path,
|
|
353
|
+
},
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* list resource_types
|
|
359
|
+
* @returns ResourceType resource_type list
|
|
360
|
+
* @throws ApiError
|
|
361
|
+
*/
|
|
362
|
+
public static listResourceType({
|
|
363
|
+
workspace,
|
|
364
|
+
}: {
|
|
365
|
+
workspace: string,
|
|
366
|
+
}): CancelablePromise<Array<ResourceType>> {
|
|
367
|
+
return __request(OpenAPI, {
|
|
368
|
+
method: 'GET',
|
|
369
|
+
url: '/w/{workspace}/resources/type/list',
|
|
370
|
+
path: {
|
|
371
|
+
'workspace': workspace,
|
|
372
|
+
},
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* list resource_types names
|
|
378
|
+
* @returns string resource_type list
|
|
379
|
+
* @throws ApiError
|
|
380
|
+
*/
|
|
381
|
+
public static listResourceTypeNames({
|
|
382
|
+
workspace,
|
|
383
|
+
}: {
|
|
384
|
+
workspace: string,
|
|
385
|
+
}): CancelablePromise<Array<string>> {
|
|
386
|
+
return __request(OpenAPI, {
|
|
387
|
+
method: 'GET',
|
|
388
|
+
url: '/w/{workspace}/resources/type/listnames',
|
|
389
|
+
path: {
|
|
390
|
+
'workspace': workspace,
|
|
391
|
+
},
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
}
|