@daocloud-proto/mcamel-mysql 0.3.1-87 → 0.3.1-90

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/mysql.pb.ts CHANGED
@@ -139,6 +139,7 @@ export type UpdateMysqlBackupConfigReq = {
139
139
  backupHistoryLimit?: number
140
140
  backupBucketSubPath?: string
141
141
  isOpenAutoBackup?: boolean
142
+ storageConfigName?: string
142
143
  }
143
144
 
144
145
  export type UpdateMysqlBackupConfigResp = {
@@ -365,6 +366,7 @@ export type CreateMysqlReq = {
365
366
  isOpenAutoBackup?: boolean
366
367
  initSourceMysqlClusterName?: string
367
368
  initSourceBackupName?: string
369
+ storageConfigName?: string
368
370
  }
369
371
 
370
372
  export type UpdateMysqlConfReq = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.3.1-87",
3
+ "version":"0.3.1-90",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,164 @@
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 CommonCommon from "./common.pb"
8
+ import * as fm from "./fetch.pb"
9
+
10
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
+ type OneOf<T> =
12
+ | { [k in keyof T]?: undefined }
13
+ | (
14
+ keyof T extends infer K ?
15
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
16
+ : never)
17
+ : never);
18
+
19
+ export enum StorageType {
20
+ STORAGE_TYPE_UNSPECIFIED = "STORAGE_TYPE_UNSPECIFIED",
21
+ STORAGE_TYPE_MINIO = "STORAGE_TYPE_MINIO",
22
+ STORAGE_TYPE_AWS_S3 = "STORAGE_TYPE_AWS_S3",
23
+ STORAGE_TYPE_MINIO_WILD = "STORAGE_TYPE_MINIO_WILD",
24
+ }
25
+
26
+ export enum GetStorageConfigParamRespSelectSelectType {
27
+ Single = "Single",
28
+ Multiple = "Multiple",
29
+ }
30
+
31
+ export enum GetStorageConfigConsumersRespStorageConfigConsumerType {
32
+ STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED = "STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED",
33
+ STORAGE_CONFIG_CONSUMER_TYPE_MYSQL = "STORAGE_CONFIG_CONSUMER_TYPE_MYSQL",
34
+ }
35
+
36
+ export type GetStorageConfigParamReq = {
37
+ }
38
+
39
+ export type GetStorageConfigParamRespSelectDataStringValue = {
40
+ value?: string
41
+ }
42
+
43
+ export type GetStorageConfigParamRespSelectDataIntValue = {
44
+ value?: number
45
+ }
46
+
47
+
48
+ type BaseGetStorageConfigParamRespSelectData = {
49
+ }
50
+
51
+ export type GetStorageConfigParamRespSelectData = BaseGetStorageConfigParamRespSelectData
52
+ & OneOf<{ sValue: GetStorageConfigParamRespSelectDataStringValue; iValue: GetStorageConfigParamRespSelectDataIntValue }>
53
+
54
+ export type GetStorageConfigParamRespSelect = {
55
+ selectType?: GetStorageConfigParamRespSelectSelectType
56
+ data?: GetStorageConfigParamRespSelectData[]
57
+ }
58
+
59
+ export type GetStorageConfigParamResp = {
60
+ storageType?: GetStorageConfigParamRespSelect
61
+ }
62
+
63
+ export type CreateStorageConfigReq = {
64
+ workspaceId?: number
65
+ cluster?: string
66
+ namespace?: string
67
+ name?: string
68
+ storageType?: StorageType
69
+ minioCluster?: string
70
+ minioNamespace?: string
71
+ minioName?: string
72
+ accessKey?: string
73
+ secretKey?: string
74
+ endpoint?: string
75
+ description?: string
76
+ }
77
+
78
+ export type CreateStorageConfigResp = {
79
+ message?: string
80
+ }
81
+
82
+ export type GetStorageConfigConsumersReq = {
83
+ workspaceId?: number
84
+ name?: string
85
+ }
86
+
87
+ export type GetStorageConfigConsumersRespConsumer = {
88
+ type?: GetStorageConfigConsumersRespStorageConfigConsumerType
89
+ cluster?: string
90
+ namespace?: string
91
+ name?: string
92
+ }
93
+
94
+ export type GetStorageConfigConsumersResp = {
95
+ consumers?: GetStorageConfigConsumersRespConsumer[]
96
+ }
97
+
98
+ export type DeleteStorageConfigReq = {
99
+ workspaceId?: number
100
+ name?: string
101
+ }
102
+
103
+ export type DeleteStorageConfigResp = {
104
+ message?: string
105
+ }
106
+
107
+ export type UpdateStorageConfigResp = {
108
+ message?: string
109
+ }
110
+
111
+ export type StorageConfigItemStorageConfigStatus = {
112
+ lastUpdateTimestamp?: string
113
+ createTimestamp?: string
114
+ status?: string
115
+ }
116
+
117
+ export type StorageConfigItem = {
118
+ spec?: CreateStorageConfigReq
119
+ status?: StorageConfigItemStorageConfigStatus
120
+ }
121
+
122
+ export type GetStorageConfigReq = {
123
+ workspaceId?: number
124
+ name?: string
125
+ }
126
+
127
+ export type GetStorageConfigResp = {
128
+ item?: StorageConfigItem
129
+ }
130
+
131
+ export type GetStorageConfigListReq = {
132
+ workspaceId?: number
133
+ pageInfoReq?: CommonCommon.PageInfoReq
134
+ searchKey?: string
135
+ }
136
+
137
+ export type GetStorageConfigListResp = {
138
+ items?: StorageConfigItem[]
139
+ pagination?: CommonCommon.Pagination
140
+ }
141
+
142
+ export class StorageConfig {
143
+ static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
144
+ return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
145
+ }
146
+ static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
147
+ return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST"})
148
+ }
149
+ static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
150
+ return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
151
+ }
152
+ static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
153
+ return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "DELETE"})
154
+ }
155
+ static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
156
+ return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT"})
157
+ }
158
+ static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
159
+ return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
160
+ }
161
+ static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
162
+ return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
163
+ }
164
+ }