@daocloud-proto/mcamel-mysql 0.4.8-15 → 0.4.8-18
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/package.json +1 -1
- package/storage_config.pb.ts +18 -0
package/package.json
CHANGED
package/storage_config.pb.ts
CHANGED
|
@@ -58,6 +58,21 @@ export type GetStorageConfigParamResp = {
|
|
|
58
58
|
storageType?: GetStorageConfigParamRespSelect
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export type CreateStorageConfigBucketCheckJobReq = {
|
|
62
|
+
storageType?: string
|
|
63
|
+
endpoint?: string
|
|
64
|
+
accessKey?: string
|
|
65
|
+
secretKey?: string
|
|
66
|
+
bucket?: string
|
|
67
|
+
cluster?: string
|
|
68
|
+
namespace?: string
|
|
69
|
+
name?: string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type CreateStorageConfigBucketCheckJobResp = {
|
|
73
|
+
message?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
61
76
|
export type CreateStorageConfigReq = {
|
|
62
77
|
workspaceId?: number
|
|
63
78
|
cluster?: string
|
|
@@ -144,6 +159,9 @@ export class StorageConfig {
|
|
|
144
159
|
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
145
160
|
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
146
161
|
}
|
|
162
|
+
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
163
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/v1alpha1/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
164
|
+
}
|
|
147
165
|
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
148
166
|
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
149
167
|
}
|