@daocloud-proto/hydra 0.11.0-dev-34 → 0.11.0-dev-36
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.
|
@@ -189,13 +189,6 @@ export type SinglePrePullRequest = {
|
|
|
189
189
|
prepullName?: string
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
export type ListFilesStorageClustersRequest = {
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export type ListFilesStorageClustersResponse = {
|
|
196
|
-
clusters?: string[]
|
|
197
|
-
}
|
|
198
|
-
|
|
199
192
|
export type GetPrePullRequest = {
|
|
200
193
|
storageName?: string
|
|
201
194
|
prepullName?: string
|
|
@@ -223,9 +216,6 @@ export class AdminFilesStorageService {
|
|
|
223
216
|
static DeleteFile(req: DeleteFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
224
217
|
return fm.fetchReq<DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/files/${req["fileName"]}:delete`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
225
218
|
}
|
|
226
|
-
static ListFilesStorageClusters(req: ListFilesStorageClustersRequest, initReq?: fm.InitReq): Promise<ListFilesStorageClustersResponse> {
|
|
227
|
-
return fm.fetchReq<ListFilesStorageClustersRequest, ListFilesStorageClustersResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorage-clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
228
|
-
}
|
|
229
219
|
static CreateFolder(req: CreateFolderRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
230
220
|
return fm.fetchReq<CreateFolderRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/folders/${req["folderName"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
231
221
|
}
|
|
@@ -259,4 +249,10 @@ export class AdminFilesStorageService {
|
|
|
259
249
|
static GetPrePull(req: GetPrePullRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PrePull> {
|
|
260
250
|
return fm.fetchReq<GetPrePullRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PrePull>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}?${fm.renderURLSearchParams(req, ["storageName", "prepullName"])}`, {...initReq, method: "GET"})
|
|
261
251
|
}
|
|
252
|
+
static CreateSFTPAccess(req: HydraManagement_apiStorageV1alpha1Filesstorage.CreateSFTPAccessRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse> {
|
|
253
|
+
return fm.fetchReq<HydraManagement_apiStorageV1alpha1Filesstorage.CreateSFTPAccessRequest, HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse>(`/apis/hydra.io/v1alpha1/filesstorages/${req["storageName"]}/sftp-access`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
254
|
+
}
|
|
255
|
+
static GetSFTPAccess(req: HydraManagement_apiStorageV1alpha1Filesstorage.GetSFTPAccessRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse> {
|
|
256
|
+
return fm.fetchReq<HydraManagement_apiStorageV1alpha1Filesstorage.GetSFTPAccessRequest, HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse>(`/apis/hydra.io/v1alpha1/filesstorages/${req["storageName"]}/sftp-access?${fm.renderURLSearchParams(req, ["storageName"])}`, {...initReq, method: "GET"})
|
|
257
|
+
}
|
|
262
258
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../../../fetch.pb"
|
|
8
|
+
export type ListClusterUsersRequest = {
|
|
9
|
+
clusterName?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListClusterUsersResponse = {
|
|
13
|
+
users?: SFTPUserInfo[]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type SFTPUserInfo = {
|
|
17
|
+
namespace?: string
|
|
18
|
+
pvc?: string
|
|
19
|
+
username?: string
|
|
20
|
+
uid?: number
|
|
21
|
+
gid?: number
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ListUserPublicKeysRequest = {
|
|
25
|
+
username?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type ListUserPublicKeysResponse = {
|
|
29
|
+
publicKeys?: string[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class SFTPUserService {
|
|
33
|
+
static ListClusterUsers(req: ListClusterUsersRequest, initReq?: fm.InitReq): Promise<ListClusterUsersResponse> {
|
|
34
|
+
return fm.fetchReq<ListClusterUsersRequest, ListClusterUsersResponse>(`/hydra.management_api.agent.v1alpha1.SFTPUserService/ListClusterUsers`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
35
|
+
}
|
|
36
|
+
static ListUserPublicKeys(req: ListUserPublicKeysRequest, initReq?: fm.InitReq): Promise<ListUserPublicKeysResponse> {
|
|
37
|
+
return fm.fetchReq<ListUserPublicKeysRequest, ListUserPublicKeysResponse>(`/hydra.management_api.agent.v1alpha1.SFTPUserService/ListUserPublicKeys`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -106,6 +106,25 @@ export type ListArtifactsResponse = {
|
|
|
106
106
|
page?: HydraCommonCommon.Pagination
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
export type GetImageInfoRequest = {
|
|
110
|
+
workspace?: number
|
|
111
|
+
image?: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type ImageInfo = {
|
|
115
|
+
registry?: string
|
|
116
|
+
project?: string
|
|
117
|
+
image?: string
|
|
118
|
+
tag?: string
|
|
119
|
+
public?: boolean
|
|
120
|
+
global?: boolean
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type GetImageInfoResponse = {
|
|
124
|
+
origin?: string
|
|
125
|
+
info?: ImageInfo
|
|
126
|
+
}
|
|
127
|
+
|
|
109
128
|
export type ListSecretsRequest = {
|
|
110
129
|
cluster?: string
|
|
111
130
|
namespace?: string
|
|
@@ -139,4 +158,7 @@ export class Image {
|
|
|
139
158
|
static ListSecrets(req: ListSecretsRequest, initReq?: fm.InitReq): Promise<ListSecretsResponse> {
|
|
140
159
|
return fm.fetchReq<ListSecretsRequest, ListSecretsResponse>(`/apis/hydra.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
141
160
|
}
|
|
161
|
+
static GetImageInfo(req: GetImageInfoRequest, initReq?: fm.InitReq): Promise<GetImageInfoResponse> {
|
|
162
|
+
return fm.fetchReq<GetImageInfoRequest, GetImageInfoResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/imageinfo?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
163
|
+
}
|
|
142
164
|
}
|
|
@@ -386,27 +386,31 @@ export type PodInstanceListResponse = {
|
|
|
386
386
|
page?: HydraCommonCommon.Pagination
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
export type
|
|
389
|
+
export type GetPrePullRequest = {
|
|
390
390
|
workspace?: number
|
|
391
|
+
storageName?: string
|
|
392
|
+
prepullName?: string
|
|
391
393
|
}
|
|
392
394
|
|
|
393
|
-
export type
|
|
394
|
-
|
|
395
|
+
export type CreateSFTPAccessRequest = {
|
|
396
|
+
workspace?: number
|
|
397
|
+
storageName?: string
|
|
398
|
+
expirationDays?: number
|
|
395
399
|
}
|
|
396
400
|
|
|
397
|
-
export type
|
|
401
|
+
export type GetSFTPAccessRequest = {
|
|
398
402
|
workspace?: number
|
|
399
403
|
storageName?: string
|
|
400
|
-
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export type SFTPAccessResponse = {
|
|
407
|
+
command?: string
|
|
401
408
|
}
|
|
402
409
|
|
|
403
410
|
export class WSFilesStorageService {
|
|
404
411
|
static ListWSFilesStorages(req: ListFilesStoragesRequest, initReq?: fm.InitReq): Promise<ListFilesStoragesResponse> {
|
|
405
412
|
return fm.fetchReq<ListFilesStoragesRequest, ListFilesStoragesResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
406
413
|
}
|
|
407
|
-
static ListWSFilesStorageClusters(req: ListWSFilesStorageClustersRequest, initReq?: fm.InitReq): Promise<ListWSFilesStorageClustersResponse> {
|
|
408
|
-
return fm.fetchReq<ListWSFilesStorageClustersRequest, ListWSFilesStorageClustersResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorage-clusters?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
409
|
-
}
|
|
410
414
|
static GetWSFilesStorage(req: GetFilesStorageRequest, initReq?: fm.InitReq): Promise<FilesStorage> {
|
|
411
415
|
return fm.fetchReq<GetFilesStorageRequest, FilesStorage>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
|
|
412
416
|
}
|
|
@@ -458,4 +462,10 @@ export class WSFilesStorageService {
|
|
|
458
462
|
static WSGetPrePull(req: GetPrePullRequest, initReq?: fm.InitReq): Promise<PrePull> {
|
|
459
463
|
return fm.fetchReq<GetPrePullRequest, PrePull>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}?${fm.renderURLSearchParams(req, ["workspace", "storageName", "prepullName"])}`, {...initReq, method: "GET"})
|
|
460
464
|
}
|
|
465
|
+
static WSCreateSFTPAccess(req: CreateSFTPAccessRequest, initReq?: fm.InitReq): Promise<SFTPAccessResponse> {
|
|
466
|
+
return fm.fetchReq<CreateSFTPAccessRequest, SFTPAccessResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["storageName"]}/sftp-access`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
467
|
+
}
|
|
468
|
+
static WSGetSFTPAccess(req: GetSFTPAccessRequest, initReq?: fm.InitReq): Promise<SFTPAccessResponse> {
|
|
469
|
+
return fm.fetchReq<GetSFTPAccessRequest, SFTPAccessResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["storageName"]}/sftp-access?${fm.renderURLSearchParams(req, ["workspace", "storageName"])}`, {...initReq, method: "GET"})
|
|
470
|
+
}
|
|
461
471
|
}
|