@distilled.cloud/ovh 0.0.0 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/credentials.d.ts +38 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +54 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +22 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +8 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +8 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +60 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/baremetal.d.ts +3551 -0
- package/lib/services/baremetal.d.ts.map +1 -0
- package/lib/services/baremetal.js +4200 -0
- package/lib/services/baremetal.js.map +1 -0
- package/lib/services/cloud.d.ts +26011 -0
- package/lib/services/cloud.d.ts.map +1 -0
- package/lib/services/cloud.js +31119 -0
- package/lib/services/cloud.js.map +1 -0
- package/lib/services/cloud_v2.d.ts +5642 -0
- package/lib/services/cloud_v2.d.ts.map +1 -0
- package/lib/services/cloud_v2.js +5760 -0
- package/lib/services/cloud_v2.js.map +1 -0
- package/lib/services/dedicatedceph.d.ts +747 -0
- package/lib/services/dedicatedceph.d.ts.map +1 -0
- package/lib/services/dedicatedceph.js +962 -0
- package/lib/services/dedicatedceph.js.map +1 -0
- package/lib/services/dedicatednasha.d.ts +755 -0
- package/lib/services/dedicatednasha.d.ts.map +1 -0
- package/lib/services/dedicatednasha.js +967 -0
- package/lib/services/dedicatednasha.js.map +1 -0
- package/lib/services/domain.d.ts +2995 -0
- package/lib/services/domain.d.ts.map +1 -0
- package/lib/services/domain.js +3080 -0
- package/lib/services/domain.js.map +1 -0
- package/lib/services/emaildomain.d.ts +1913 -0
- package/lib/services/emaildomain.d.ts.map +1 -0
- package/lib/services/emaildomain.js +2550 -0
- package/lib/services/emaildomain.js.map +1 -0
- package/lib/services/emailmxplan.d.ts +1012 -0
- package/lib/services/emailmxplan.d.ts.map +1 -0
- package/lib/services/emailmxplan.js +1155 -0
- package/lib/services/emailmxplan.js.map +1 -0
- package/lib/services/emailpro.d.ts +1287 -0
- package/lib/services/emailpro.d.ts.map +1 -0
- package/lib/services/emailpro.js +1471 -0
- package/lib/services/emailpro.js.map +1 -0
- package/lib/services/hostingprivatedatabase.d.ts +1402 -0
- package/lib/services/hostingprivatedatabase.d.ts.map +1 -0
- package/lib/services/hostingprivatedatabase.js +1833 -0
- package/lib/services/hostingprivatedatabase.js.map +1 -0
- package/lib/services/iam.d.ts +829 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +793 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/index.d.ts +31 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +32 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/ip.d.ts +1417 -0
- package/lib/services/ip.d.ts.map +1 -0
- package/lib/services/ip.js +1691 -0
- package/lib/services/ip.js.map +1 -0
- package/lib/services/iploadbalancing.d.ts +3059 -0
- package/lib/services/iploadbalancing.d.ts.map +1 -0
- package/lib/services/iploadbalancing.js +3554 -0
- package/lib/services/iploadbalancing.js.map +1 -0
- package/lib/services/ldp.d.ts +2492 -0
- package/lib/services/ldp.d.ts.map +1 -0
- package/lib/services/ldp.js +3072 -0
- package/lib/services/ldp.js.map +1 -0
- package/lib/services/me.d.ts +7511 -0
- package/lib/services/me.d.ts.map +1 -0
- package/lib/services/me.js +8878 -0
- package/lib/services/me.js.map +1 -0
- package/lib/services/overthebox.d.ts +981 -0
- package/lib/services/overthebox.d.ts.map +1 -0
- package/lib/services/overthebox.js +1122 -0
- package/lib/services/overthebox.js.map +1 -0
- package/lib/services/ovhcloudconnect.d.ts +1123 -0
- package/lib/services/ovhcloudconnect.d.ts.map +1 -0
- package/lib/services/ovhcloudconnect.js +1353 -0
- package/lib/services/ovhcloudconnect.js.map +1 -0
- package/lib/services/packxdsl.d.ts +1583 -0
- package/lib/services/packxdsl.d.ts.map +1 -0
- package/lib/services/packxdsl.js +1791 -0
- package/lib/services/packxdsl.js.map +1 -0
- package/lib/services/sms.d.ts +2602 -0
- package/lib/services/sms.d.ts.map +1 -0
- package/lib/services/sms.js +2995 -0
- package/lib/services/sms.js.map +1 -0
- package/lib/services/sslgateway.d.ts +493 -0
- package/lib/services/sslgateway.d.ts.map +1 -0
- package/lib/services/sslgateway.js +569 -0
- package/lib/services/sslgateway.js.map +1 -0
- package/lib/services/storagenetapp.d.ts +859 -0
- package/lib/services/storagenetapp.d.ts.map +1 -0
- package/lib/services/storagenetapp.js +1022 -0
- package/lib/services/storagenetapp.js.map +1 -0
- package/lib/services/support.d.ts +233 -0
- package/lib/services/support.d.ts.map +1 -0
- package/lib/services/support.js +237 -0
- package/lib/services/support.js.map +1 -0
- package/lib/services/telephony.d.ts +10825 -0
- package/lib/services/telephony.d.ts.map +1 -0
- package/lib/services/telephony.js +14894 -0
- package/lib/services/telephony.js.map +1 -0
- package/lib/services/vmwareclouddirectorbackup.d.ts +784 -0
- package/lib/services/vmwareclouddirectorbackup.d.ts.map +1 -0
- package/lib/services/vmwareclouddirectorbackup.js +842 -0
- package/lib/services/vmwareclouddirectorbackup.js.map +1 -0
- package/lib/services/vmwareclouddirectororganization.d.ts +784 -0
- package/lib/services/vmwareclouddirectororganization.d.ts.map +1 -0
- package/lib/services/vmwareclouddirectororganization.js +842 -0
- package/lib/services/vmwareclouddirectororganization.js.map +1 -0
- package/lib/services/vps.d.ts +1579 -0
- package/lib/services/vps.d.ts.map +1 -0
- package/lib/services/vps.js +1914 -0
- package/lib/services/vps.js.map +1 -0
- package/lib/services/vrack.d.ts +1204 -0
- package/lib/services/vrack.d.ts.map +1 -0
- package/lib/services/vrack.js +1627 -0
- package/lib/services/vrack.js.map +1 -0
- package/lib/services/vrackservices.d.ts +394 -0
- package/lib/services/vrackservices.d.ts.map +1 -0
- package/lib/services/vrackservices.js +355 -0
- package/lib/services/vrackservices.js.map +1 -0
- package/lib/services/webhosting.d.ts +3986 -0
- package/lib/services/webhosting.d.ts.map +1 -0
- package/lib/services/webhosting.js +4527 -0
- package/lib/services/webhosting.js.map +1 -0
- package/lib/services/xdsl.d.ts +3433 -0
- package/lib/services/xdsl.d.ts.map +1 -0
- package/lib/services/xdsl.js +3682 -0
- package/lib/services/xdsl.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +77 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +21 -0
- package/src/pagination.ts +7 -0
- package/src/protocol.ts +86 -0
- package/src/retry.ts +54 -0
- package/src/services/baremetal.ts +10954 -0
- package/src/services/cloud.ts +75508 -0
- package/src/services/cloud_v2.ts +14751 -0
- package/src/services/dedicatedceph.ts +2233 -0
- package/src/services/dedicatednasha.ts +2269 -0
- package/src/services/domain.ts +7998 -0
- package/src/services/emaildomain.ts +5751 -0
- package/src/services/emailmxplan.ts +2764 -0
- package/src/services/emailpro.ts +3519 -0
- package/src/services/hostingprivatedatabase.ts +4218 -0
- package/src/services/iam.ts +2060 -0
- package/src/services/index.ts +31 -0
- package/src/services/ip.ts +4462 -0
- package/src/services/iploadbalancing.ts +8422 -0
- package/src/services/ldp.ts +7274 -0
- package/src/services/me.ts +21720 -0
- package/src/services/overthebox.ts +2693 -0
- package/src/services/ovhcloudconnect.ts +3226 -0
- package/src/services/packxdsl.ts +4623 -0
- package/src/services/sms.ts +7255 -0
- package/src/services/sslgateway.ts +1408 -0
- package/src/services/storagenetapp.ts +2433 -0
- package/src/services/support.ts +598 -0
- package/src/services/telephony.ts +32941 -0
- package/src/services/vmwareclouddirectorbackup.ts +2171 -0
- package/src/services/vmwareclouddirectororganization.ts +2171 -0
- package/src/services/vps.ts +5134 -0
- package/src/services/vrack.ts +3730 -0
- package/src/services/vrackservices.ts +939 -0
- package/src/services/webhosting.ts +11290 -0
- package/src/services/xdsl.ts +9278 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,4218 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-ovh). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
OvhProtocol,
|
|
8
|
+
type OvhOpError,
|
|
9
|
+
type OvhOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownOvhError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { OvhOpError, OvhOpContext };
|
|
15
|
+
|
|
16
|
+
/** All future uses you can provide for a service termination */
|
|
17
|
+
export type ServiceTerminationFutureUseEnum =
|
|
18
|
+
| "NOT_REPLACING_SERVICE"
|
|
19
|
+
| "OTHER"
|
|
20
|
+
| "SUBSCRIBE_AN_OTHER_SERVICE"
|
|
21
|
+
| "SUBSCRIBE_OTHER_KIND_OF_SERVICE_WITH_COMPETITOR"
|
|
22
|
+
| "SUBSCRIBE_SIMILAR_SERVICE_WITH_COMPETITOR";
|
|
23
|
+
export const ServiceTerminationFutureUseEnum = /*@__PURE__*/ S.String;
|
|
24
|
+
|
|
25
|
+
/** All reasons you can provide for a service termination */
|
|
26
|
+
export type ServiceTerminationReasonEnum =
|
|
27
|
+
| "FEATURES_DONT_SUIT_ME"
|
|
28
|
+
| "LACK_OF_PERFORMANCES"
|
|
29
|
+
| "MIGRATED_TO_ANOTHER_OVH_PRODUCT"
|
|
30
|
+
| "MIGRATED_TO_COMPETITOR"
|
|
31
|
+
| "NOT_ENOUGH_RECOGNITION"
|
|
32
|
+
| "NOT_NEEDED_ANYMORE"
|
|
33
|
+
| "NOT_RELIABLE"
|
|
34
|
+
| "NO_ANSWER"
|
|
35
|
+
| "OTHER"
|
|
36
|
+
| "PRODUCT_DIMENSION_DONT_SUIT_ME"
|
|
37
|
+
| "PRODUCT_TOOLS_DONT_SUIT_ME"
|
|
38
|
+
| "TOO_EXPENSIVE"
|
|
39
|
+
| "TOO_HARD_TO_USE"
|
|
40
|
+
| "UNSATIFIED_BY_CUSTOMER_SUPPORT";
|
|
41
|
+
export const ServiceTerminationReasonEnum = /*@__PURE__*/ S.String;
|
|
42
|
+
|
|
43
|
+
export interface ConfirmHostingPrivateDatabaseTerminationRequest {
|
|
44
|
+
/** Service name */
|
|
45
|
+
serviceName: string;
|
|
46
|
+
/** Commentary about your termination request */
|
|
47
|
+
commentary?: string;
|
|
48
|
+
/** All future uses you can provide for a service termination */
|
|
49
|
+
futureUse?: ServiceTerminationFutureUseEnum | (string & {});
|
|
50
|
+
/** All reasons you can provide for a service termination */
|
|
51
|
+
reason?: ServiceTerminationReasonEnum | (string & {});
|
|
52
|
+
/** The termination token sent by email to the admin contact */
|
|
53
|
+
token: string;
|
|
54
|
+
}
|
|
55
|
+
export const ConfirmHostingPrivateDatabaseTerminationRequest =
|
|
56
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
57
|
+
S.Struct({
|
|
58
|
+
serviceName: S.String.pipe(T.Label()),
|
|
59
|
+
commentary: S.optional(S.String),
|
|
60
|
+
futureUse: S.optional(ServiceTerminationFutureUseEnum),
|
|
61
|
+
reason: S.optional(ServiceTerminationReasonEnum),
|
|
62
|
+
token: S.String,
|
|
63
|
+
}).pipe(
|
|
64
|
+
T.Http({
|
|
65
|
+
method: "POST",
|
|
66
|
+
uri: "/hosting/privateDatabase/{serviceName}/confirmTermination",
|
|
67
|
+
code: 200,
|
|
68
|
+
}),
|
|
69
|
+
),
|
|
70
|
+
).annotate({
|
|
71
|
+
identifier: "ConfirmHostingPrivateDatabaseTerminationRequest",
|
|
72
|
+
}) as any as S.Schema<ConfirmHostingPrivateDatabaseTerminationRequest>;
|
|
73
|
+
|
|
74
|
+
export type ConfirmHostingPrivateDatabaseTerminationResponse = string;
|
|
75
|
+
export const ConfirmHostingPrivateDatabaseTerminationResponse =
|
|
76
|
+
/*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
77
|
+
identifier: "ConfirmHostingPrivateDatabaseTerminationResponse",
|
|
78
|
+
}) as any as S.Schema<ConfirmHostingPrivateDatabaseTerminationResponse>;
|
|
79
|
+
|
|
80
|
+
export interface CopyHostingPrivateDatabaseDatabaseRequest {
|
|
81
|
+
/** Service name */
|
|
82
|
+
serviceName: string;
|
|
83
|
+
/** Database name */
|
|
84
|
+
databaseName: string;
|
|
85
|
+
}
|
|
86
|
+
export const CopyHostingPrivateDatabaseDatabaseRequest =
|
|
87
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
88
|
+
S.Struct({
|
|
89
|
+
serviceName: S.String.pipe(T.Label()),
|
|
90
|
+
databaseName: S.String.pipe(T.Label()),
|
|
91
|
+
}).pipe(
|
|
92
|
+
T.Http({
|
|
93
|
+
method: "POST",
|
|
94
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/copy",
|
|
95
|
+
code: 200,
|
|
96
|
+
}),
|
|
97
|
+
),
|
|
98
|
+
).annotate({
|
|
99
|
+
identifier: "CopyHostingPrivateDatabaseDatabaseRequest",
|
|
100
|
+
}) as any as S.Schema<CopyHostingPrivateDatabaseDatabaseRequest>;
|
|
101
|
+
|
|
102
|
+
/** Database copy status */
|
|
103
|
+
export type HostingPrivateDatabaseDatabaseCopyStatusEnum =
|
|
104
|
+
| "doing"
|
|
105
|
+
| "done"
|
|
106
|
+
| "error"
|
|
107
|
+
| "todo";
|
|
108
|
+
export const HostingPrivateDatabaseDatabaseCopyStatusEnum =
|
|
109
|
+
/*@__PURE__*/ S.String;
|
|
110
|
+
|
|
111
|
+
/** Database copy */
|
|
112
|
+
export interface HostingPrivateDatabaseDatabaseCopy {
|
|
113
|
+
/** Creation date of the database copy */
|
|
114
|
+
creationDate?: string;
|
|
115
|
+
/** Expiration date of the database copy */
|
|
116
|
+
expirationDate?: string | null;
|
|
117
|
+
/** Database copy ID */
|
|
118
|
+
id?: string;
|
|
119
|
+
/** Last update of the database copy */
|
|
120
|
+
lastUpdate?: string;
|
|
121
|
+
/** Database copy status */
|
|
122
|
+
status?: HostingPrivateDatabaseDatabaseCopyStatusEnum;
|
|
123
|
+
}
|
|
124
|
+
export const HostingPrivateDatabaseDatabaseCopy = /*@__PURE__*/ S.suspend(() =>
|
|
125
|
+
S.Struct({
|
|
126
|
+
creationDate: S.optional(S.String),
|
|
127
|
+
expirationDate: S.optional(S.NullOr(S.String)),
|
|
128
|
+
id: S.optional(S.String),
|
|
129
|
+
lastUpdate: S.optional(S.String),
|
|
130
|
+
status: S.optional(HostingPrivateDatabaseDatabaseCopyStatusEnum),
|
|
131
|
+
}),
|
|
132
|
+
).annotate({
|
|
133
|
+
identifier: "HostingPrivateDatabaseDatabaseCopy",
|
|
134
|
+
}) as any as S.Schema<HostingPrivateDatabaseDatabaseCopy>;
|
|
135
|
+
|
|
136
|
+
export interface CopyHostingPrivateDatabaseDatabaseRestoreRequest {
|
|
137
|
+
/** Service name */
|
|
138
|
+
serviceName: string;
|
|
139
|
+
/** Database name */
|
|
140
|
+
databaseName: string;
|
|
141
|
+
/** Copy ID */
|
|
142
|
+
copyId: string;
|
|
143
|
+
/** Whether to flush the database before restoring the copy (default to false) */
|
|
144
|
+
flushDatabase?: boolean;
|
|
145
|
+
}
|
|
146
|
+
export const CopyHostingPrivateDatabaseDatabaseRestoreRequest =
|
|
147
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
148
|
+
S.Struct({
|
|
149
|
+
serviceName: S.String.pipe(T.Label()),
|
|
150
|
+
databaseName: S.String.pipe(T.Label()),
|
|
151
|
+
copyId: S.String,
|
|
152
|
+
flushDatabase: S.optional(S.Boolean),
|
|
153
|
+
}).pipe(
|
|
154
|
+
T.Http({
|
|
155
|
+
method: "POST",
|
|
156
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/copyRestore",
|
|
157
|
+
code: 200,
|
|
158
|
+
}),
|
|
159
|
+
),
|
|
160
|
+
).annotate({
|
|
161
|
+
identifier: "CopyHostingPrivateDatabaseDatabaseRestoreRequest",
|
|
162
|
+
}) as any as S.Schema<CopyHostingPrivateDatabaseDatabaseRestoreRequest>;
|
|
163
|
+
|
|
164
|
+
/** Task's dunction */
|
|
165
|
+
export type HostingPrivateDatabaseTaskFunctionEnum =
|
|
166
|
+
| "abuse"
|
|
167
|
+
| "changeFtpPassword"
|
|
168
|
+
| "changeRam"
|
|
169
|
+
| "changeVersion"
|
|
170
|
+
| "configuration/update"
|
|
171
|
+
| "create"
|
|
172
|
+
| "database/copy"
|
|
173
|
+
| "database/copyRestore"
|
|
174
|
+
| "database/create"
|
|
175
|
+
| "database/delete"
|
|
176
|
+
| "database/dump"
|
|
177
|
+
| "database/dump/delete"
|
|
178
|
+
| "database/extension/create"
|
|
179
|
+
| "database/extension/delete"
|
|
180
|
+
| "database/import"
|
|
181
|
+
| "database/restore"
|
|
182
|
+
| "database/wizard"
|
|
183
|
+
| "delete"
|
|
184
|
+
| "grant/create"
|
|
185
|
+
| "grant/delete"
|
|
186
|
+
| "grant/update"
|
|
187
|
+
| "install"
|
|
188
|
+
| "overquota/in"
|
|
189
|
+
| "overquota/out"
|
|
190
|
+
| "quotaRefresh"
|
|
191
|
+
| "refresh"
|
|
192
|
+
| "reopen"
|
|
193
|
+
| "restart"
|
|
194
|
+
| "start"
|
|
195
|
+
| "stop"
|
|
196
|
+
| "suspend"
|
|
197
|
+
| "user/changePassword"
|
|
198
|
+
| "user/create"
|
|
199
|
+
| "user/delete"
|
|
200
|
+
| "webhostingNetwork/disable"
|
|
201
|
+
| "webhostingNetwork/enable"
|
|
202
|
+
| "whitelist/create"
|
|
203
|
+
| "whitelist/delete"
|
|
204
|
+
| "whitelist/update";
|
|
205
|
+
export const HostingPrivateDatabaseTaskFunctionEnum = /*@__PURE__*/ S.String;
|
|
206
|
+
|
|
207
|
+
/** Task's status */
|
|
208
|
+
export type HostingPrivateDatabaseTaskStatusEnum =
|
|
209
|
+
| "cancelled"
|
|
210
|
+
| "doing"
|
|
211
|
+
| "done"
|
|
212
|
+
| "error"
|
|
213
|
+
| "todo";
|
|
214
|
+
export const HostingPrivateDatabaseTaskStatusEnum = /*@__PURE__*/ S.String;
|
|
215
|
+
|
|
216
|
+
/** Web Cloud Database task */
|
|
217
|
+
export interface HostingPrivateDatabaseTask {
|
|
218
|
+
/** Database name on which the task is working */
|
|
219
|
+
databaseName?: string | null;
|
|
220
|
+
/** Completion date */
|
|
221
|
+
doneDate?: string | null;
|
|
222
|
+
/** DumpId on which the task is working */
|
|
223
|
+
dumpId?: number | null;
|
|
224
|
+
/** Function name */
|
|
225
|
+
function?: HostingPrivateDatabaseTaskFunctionEnum;
|
|
226
|
+
/** The id of the task */
|
|
227
|
+
id?: number;
|
|
228
|
+
/** Last update */
|
|
229
|
+
lastUpdate?: string | null;
|
|
230
|
+
/** Task creation date */
|
|
231
|
+
startDate?: string;
|
|
232
|
+
/** Task status */
|
|
233
|
+
status?: HostingPrivateDatabaseTaskStatusEnum;
|
|
234
|
+
/** User name on which the task is working */
|
|
235
|
+
userName?: string | null;
|
|
236
|
+
}
|
|
237
|
+
export const HostingPrivateDatabaseTask = /*@__PURE__*/ S.suspend(() =>
|
|
238
|
+
S.Struct({
|
|
239
|
+
databaseName: S.optional(S.NullOr(S.String)),
|
|
240
|
+
doneDate: S.optional(S.NullOr(S.String)),
|
|
241
|
+
dumpId: S.optional(S.NullOr(S.Number)),
|
|
242
|
+
function: S.optional(HostingPrivateDatabaseTaskFunctionEnum),
|
|
243
|
+
id: S.optional(S.Number),
|
|
244
|
+
lastUpdate: S.optional(S.NullOr(S.String)),
|
|
245
|
+
startDate: S.optional(S.String),
|
|
246
|
+
status: S.optional(HostingPrivateDatabaseTaskStatusEnum),
|
|
247
|
+
userName: S.optional(S.NullOr(S.String)),
|
|
248
|
+
}),
|
|
249
|
+
).annotate({
|
|
250
|
+
identifier: "HostingPrivateDatabaseTask",
|
|
251
|
+
}) as any as S.Schema<HostingPrivateDatabaseTask>;
|
|
252
|
+
|
|
253
|
+
export interface CreateHostingPrivateDatabaseChangeContactRequest {
|
|
254
|
+
/** Service name */
|
|
255
|
+
serviceName: string;
|
|
256
|
+
/** The contact to set as admin contact */
|
|
257
|
+
contactAdmin?: string;
|
|
258
|
+
/** The contact to set as billing contact */
|
|
259
|
+
contactBilling?: string;
|
|
260
|
+
/** The contact to set as tech contact */
|
|
261
|
+
contactTech?: string;
|
|
262
|
+
}
|
|
263
|
+
export const CreateHostingPrivateDatabaseChangeContactRequest =
|
|
264
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
265
|
+
S.Struct({
|
|
266
|
+
serviceName: S.String.pipe(T.Label()),
|
|
267
|
+
contactAdmin: S.optional(S.String),
|
|
268
|
+
contactBilling: S.optional(S.String),
|
|
269
|
+
contactTech: S.optional(S.String),
|
|
270
|
+
}).pipe(
|
|
271
|
+
T.Http({
|
|
272
|
+
method: "POST",
|
|
273
|
+
uri: "/hosting/privateDatabase/{serviceName}/changeContact",
|
|
274
|
+
code: 200,
|
|
275
|
+
}),
|
|
276
|
+
),
|
|
277
|
+
).annotate({
|
|
278
|
+
identifier: "CreateHostingPrivateDatabaseChangeContactRequest",
|
|
279
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseChangeContactRequest>;
|
|
280
|
+
|
|
281
|
+
export type CreateHostingPrivateDatabaseChangeContactResponseBodyList =
|
|
282
|
+
Array<number>;
|
|
283
|
+
export const CreateHostingPrivateDatabaseChangeContactResponseBodyList =
|
|
284
|
+
/*@__PURE__*/ S.Array(
|
|
285
|
+
S.Number,
|
|
286
|
+
) as any as S.Schema<CreateHostingPrivateDatabaseChangeContactResponseBodyList>;
|
|
287
|
+
|
|
288
|
+
export type CreateHostingPrivateDatabaseChangeContactResponse =
|
|
289
|
+
CreateHostingPrivateDatabaseChangeContactResponseBodyList;
|
|
290
|
+
export const CreateHostingPrivateDatabaseChangeContactResponse =
|
|
291
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
292
|
+
CreateHostingPrivateDatabaseChangeContactResponseBodyList.pipe(
|
|
293
|
+
T.RawResponseRoot(),
|
|
294
|
+
),
|
|
295
|
+
).annotate({
|
|
296
|
+
identifier: "CreateHostingPrivateDatabaseChangeContactResponse",
|
|
297
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseChangeContactResponse>;
|
|
298
|
+
|
|
299
|
+
export interface CreateHostingPrivateDatabaseChangeFtpPasswordRequest {
|
|
300
|
+
/** Service name */
|
|
301
|
+
serviceName: string;
|
|
302
|
+
/** New ftp admin password (alphanumeric and 8 characters minimum) */
|
|
303
|
+
password: string | Redacted.Redacted<string>;
|
|
304
|
+
}
|
|
305
|
+
export const CreateHostingPrivateDatabaseChangeFtpPasswordRequest =
|
|
306
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
307
|
+
S.Struct({
|
|
308
|
+
serviceName: S.String.pipe(T.Label()),
|
|
309
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
310
|
+
}).pipe(
|
|
311
|
+
T.Http({
|
|
312
|
+
method: "POST",
|
|
313
|
+
uri: "/hosting/privateDatabase/{serviceName}/changeFtpPassword",
|
|
314
|
+
code: 200,
|
|
315
|
+
}),
|
|
316
|
+
),
|
|
317
|
+
).annotate({
|
|
318
|
+
identifier: "CreateHostingPrivateDatabaseChangeFtpPasswordRequest",
|
|
319
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseChangeFtpPasswordRequest>;
|
|
320
|
+
|
|
321
|
+
/** Private database available version */
|
|
322
|
+
export type HostingPrivateDatabaseAvailableVersionEnum =
|
|
323
|
+
| "mariadb_10.11"
|
|
324
|
+
| "mariadb_10.5"
|
|
325
|
+
| "mariadb_10.6"
|
|
326
|
+
| "mariadb_11.4"
|
|
327
|
+
| "mysql_8.0"
|
|
328
|
+
| "mysql_8.4"
|
|
329
|
+
| "postgresql_13"
|
|
330
|
+
| "postgresql_14"
|
|
331
|
+
| "postgresql_15"
|
|
332
|
+
| "postgresql_16"
|
|
333
|
+
| "postgresql_17"
|
|
334
|
+
| "redis_7.0"
|
|
335
|
+
| "valkey_7.2";
|
|
336
|
+
export const HostingPrivateDatabaseAvailableVersionEnum =
|
|
337
|
+
/*@__PURE__*/ S.String;
|
|
338
|
+
|
|
339
|
+
export interface CreateHostingPrivateDatabaseChangeVersionRequest {
|
|
340
|
+
/** Service name */
|
|
341
|
+
serviceName: string;
|
|
342
|
+
/** Change the private database engine version */
|
|
343
|
+
version: HostingPrivateDatabaseAvailableVersionEnum | (string & {});
|
|
344
|
+
}
|
|
345
|
+
export const CreateHostingPrivateDatabaseChangeVersionRequest =
|
|
346
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
347
|
+
S.Struct({
|
|
348
|
+
serviceName: S.String.pipe(T.Label()),
|
|
349
|
+
version: HostingPrivateDatabaseAvailableVersionEnum,
|
|
350
|
+
}).pipe(
|
|
351
|
+
T.Http({
|
|
352
|
+
method: "POST",
|
|
353
|
+
uri: "/hosting/privateDatabase/{serviceName}/changeVersion",
|
|
354
|
+
code: 200,
|
|
355
|
+
}),
|
|
356
|
+
),
|
|
357
|
+
).annotate({
|
|
358
|
+
identifier: "CreateHostingPrivateDatabaseChangeVersionRequest",
|
|
359
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseChangeVersionRequest>;
|
|
360
|
+
|
|
361
|
+
export interface CreateHostingPrivateDatabaseDatabaseRequest {
|
|
362
|
+
/** Service name */
|
|
363
|
+
serviceName: string;
|
|
364
|
+
/** Name of your new database */
|
|
365
|
+
databaseName: string;
|
|
366
|
+
}
|
|
367
|
+
export const CreateHostingPrivateDatabaseDatabaseRequest =
|
|
368
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
369
|
+
S.Struct({
|
|
370
|
+
serviceName: S.String.pipe(T.Label()),
|
|
371
|
+
databaseName: S.String,
|
|
372
|
+
}).pipe(
|
|
373
|
+
T.Http({
|
|
374
|
+
method: "POST",
|
|
375
|
+
uri: "/hosting/privateDatabase/{serviceName}/database",
|
|
376
|
+
code: 200,
|
|
377
|
+
}),
|
|
378
|
+
),
|
|
379
|
+
).annotate({
|
|
380
|
+
identifier: "CreateHostingPrivateDatabaseDatabaseRequest",
|
|
381
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseDatabaseRequest>;
|
|
382
|
+
|
|
383
|
+
export interface CreateHostingPrivateDatabaseDatabaseDumpRequest {
|
|
384
|
+
/** Service name */
|
|
385
|
+
serviceName: string;
|
|
386
|
+
/** Database name */
|
|
387
|
+
databaseName: string;
|
|
388
|
+
/** Whether to receive an email when the import is complete (default to false) */
|
|
389
|
+
sendEmail?: boolean;
|
|
390
|
+
}
|
|
391
|
+
export const CreateHostingPrivateDatabaseDatabaseDumpRequest =
|
|
392
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
393
|
+
S.Struct({
|
|
394
|
+
serviceName: S.String.pipe(T.Label()),
|
|
395
|
+
databaseName: S.String.pipe(T.Label()),
|
|
396
|
+
sendEmail: S.optional(S.Boolean),
|
|
397
|
+
}).pipe(
|
|
398
|
+
T.Http({
|
|
399
|
+
method: "POST",
|
|
400
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/dump",
|
|
401
|
+
code: 200,
|
|
402
|
+
}),
|
|
403
|
+
),
|
|
404
|
+
).annotate({
|
|
405
|
+
identifier: "CreateHostingPrivateDatabaseDatabaseDumpRequest",
|
|
406
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseDatabaseDumpRequest>;
|
|
407
|
+
|
|
408
|
+
/** Grant on a database for a specific user */
|
|
409
|
+
export type HostingPrivateDatabaseGrantGrantEnum =
|
|
410
|
+
| "admin"
|
|
411
|
+
| "none"
|
|
412
|
+
| "ro"
|
|
413
|
+
| "rw";
|
|
414
|
+
export const HostingPrivateDatabaseGrantGrantEnum = /*@__PURE__*/ S.String;
|
|
415
|
+
|
|
416
|
+
export interface CreateHostingPrivateDatabaseDatabaseWizardRequest {
|
|
417
|
+
/** Service name */
|
|
418
|
+
serviceName: string;
|
|
419
|
+
/** Name of your new database */
|
|
420
|
+
databaseName: string;
|
|
421
|
+
/** Grant of the user on this database */
|
|
422
|
+
grant: HostingPrivateDatabaseGrantGrantEnum | (string & {});
|
|
423
|
+
/** Password for the new user (alphanumeric and 8 characters minimum) */
|
|
424
|
+
password: string | Redacted.Redacted<string>;
|
|
425
|
+
/** New user name used to connect on your database */
|
|
426
|
+
userName: string;
|
|
427
|
+
}
|
|
428
|
+
export const CreateHostingPrivateDatabaseDatabaseWizardRequest =
|
|
429
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
430
|
+
S.Struct({
|
|
431
|
+
serviceName: S.String.pipe(T.Label()),
|
|
432
|
+
databaseName: S.String,
|
|
433
|
+
grant: HostingPrivateDatabaseGrantGrantEnum,
|
|
434
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
435
|
+
userName: S.String,
|
|
436
|
+
}).pipe(
|
|
437
|
+
T.Http({
|
|
438
|
+
method: "POST",
|
|
439
|
+
uri: "/hosting/privateDatabase/{serviceName}/databaseWizard",
|
|
440
|
+
code: 200,
|
|
441
|
+
}),
|
|
442
|
+
),
|
|
443
|
+
).annotate({
|
|
444
|
+
identifier: "CreateHostingPrivateDatabaseDatabaseWizardRequest",
|
|
445
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseDatabaseWizardRequest>;
|
|
446
|
+
|
|
447
|
+
export interface CreateHostingPrivateDatabaseLogSubscriptionRequest {
|
|
448
|
+
/** Service name */
|
|
449
|
+
serviceName: string;
|
|
450
|
+
/** Log kind name to subscribe to */
|
|
451
|
+
kind: string;
|
|
452
|
+
/** Customer log stream ID */
|
|
453
|
+
streamId: string;
|
|
454
|
+
}
|
|
455
|
+
export const CreateHostingPrivateDatabaseLogSubscriptionRequest =
|
|
456
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
457
|
+
S.Struct({
|
|
458
|
+
serviceName: S.String.pipe(T.Label()),
|
|
459
|
+
kind: S.String,
|
|
460
|
+
streamId: S.String,
|
|
461
|
+
}).pipe(
|
|
462
|
+
T.Http({
|
|
463
|
+
method: "POST",
|
|
464
|
+
uri: "/hosting/privateDatabase/{serviceName}/log/subscription",
|
|
465
|
+
code: 200,
|
|
466
|
+
}),
|
|
467
|
+
),
|
|
468
|
+
).annotate({
|
|
469
|
+
identifier: "CreateHostingPrivateDatabaseLogSubscriptionRequest",
|
|
470
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseLogSubscriptionRequest>;
|
|
471
|
+
|
|
472
|
+
/** Asynchronous operation after subscribing or unsubscribing to a resource logs */
|
|
473
|
+
export interface DbaasLogsLogSubscriptionResponse {
|
|
474
|
+
/** Identifier of the operation */
|
|
475
|
+
operationId?: string;
|
|
476
|
+
/** Operation owner's service name */
|
|
477
|
+
serviceName?: string;
|
|
478
|
+
}
|
|
479
|
+
export const DbaasLogsLogSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
480
|
+
S.Struct({
|
|
481
|
+
operationId: S.optional(S.String),
|
|
482
|
+
serviceName: S.optional(S.String),
|
|
483
|
+
}),
|
|
484
|
+
).annotate({
|
|
485
|
+
identifier: "DbaasLogsLogSubscriptionResponse",
|
|
486
|
+
}) as any as S.Schema<DbaasLogsLogSubscriptionResponse>;
|
|
487
|
+
|
|
488
|
+
export interface CreateHostingPrivateDatabaseLogUrlRequest {
|
|
489
|
+
/** Service name */
|
|
490
|
+
serviceName: string;
|
|
491
|
+
/** Log kind name */
|
|
492
|
+
kind: string;
|
|
493
|
+
}
|
|
494
|
+
export const CreateHostingPrivateDatabaseLogUrlRequest =
|
|
495
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
496
|
+
S.Struct({
|
|
497
|
+
serviceName: S.String.pipe(T.Label()),
|
|
498
|
+
kind: S.String,
|
|
499
|
+
}).pipe(
|
|
500
|
+
T.Http({
|
|
501
|
+
method: "POST",
|
|
502
|
+
uri: "/hosting/privateDatabase/{serviceName}/log/url",
|
|
503
|
+
code: 200,
|
|
504
|
+
}),
|
|
505
|
+
),
|
|
506
|
+
).annotate({
|
|
507
|
+
identifier: "CreateHostingPrivateDatabaseLogUrlRequest",
|
|
508
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseLogUrlRequest>;
|
|
509
|
+
|
|
510
|
+
/** Temporary url information */
|
|
511
|
+
export interface DbaasLogsTemporaryLogsLink {
|
|
512
|
+
/** Temporary url expiration date */
|
|
513
|
+
expirationDate?: string;
|
|
514
|
+
/** Temporary url */
|
|
515
|
+
url?: string;
|
|
516
|
+
}
|
|
517
|
+
export const DbaasLogsTemporaryLogsLink = /*@__PURE__*/ S.suspend(() =>
|
|
518
|
+
S.Struct({
|
|
519
|
+
expirationDate: S.optional(S.String),
|
|
520
|
+
url: S.optional(S.String),
|
|
521
|
+
}),
|
|
522
|
+
).annotate({
|
|
523
|
+
identifier: "DbaasLogsTemporaryLogsLink",
|
|
524
|
+
}) as any as S.Schema<DbaasLogsTemporaryLogsLink>;
|
|
525
|
+
|
|
526
|
+
export interface CreateHostingPrivateDatabaseQuotaRefreshRequest {
|
|
527
|
+
/** Service name */
|
|
528
|
+
serviceName: string;
|
|
529
|
+
}
|
|
530
|
+
export const CreateHostingPrivateDatabaseQuotaRefreshRequest =
|
|
531
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
532
|
+
S.Struct({
|
|
533
|
+
serviceName: S.String.pipe(T.Label()),
|
|
534
|
+
}).pipe(
|
|
535
|
+
T.Http({
|
|
536
|
+
method: "POST",
|
|
537
|
+
uri: "/hosting/privateDatabase/{serviceName}/quotaRefresh",
|
|
538
|
+
code: 200,
|
|
539
|
+
}),
|
|
540
|
+
),
|
|
541
|
+
).annotate({
|
|
542
|
+
identifier: "CreateHostingPrivateDatabaseQuotaRefreshRequest",
|
|
543
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseQuotaRefreshRequest>;
|
|
544
|
+
|
|
545
|
+
export interface CreateHostingPrivateDatabaseUserRequest {
|
|
546
|
+
/** Service name */
|
|
547
|
+
serviceName: string;
|
|
548
|
+
/** Password for the new user ( alphanumeric and 8 characters minimum ) */
|
|
549
|
+
password: string | Redacted.Redacted<string>;
|
|
550
|
+
/** User name used to connect on your databases */
|
|
551
|
+
userName: string;
|
|
552
|
+
}
|
|
553
|
+
export const CreateHostingPrivateDatabaseUserRequest = /*@__PURE__*/ S.suspend(
|
|
554
|
+
() =>
|
|
555
|
+
S.Struct({
|
|
556
|
+
serviceName: S.String.pipe(T.Label()),
|
|
557
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
558
|
+
userName: S.String,
|
|
559
|
+
}).pipe(
|
|
560
|
+
T.Http({
|
|
561
|
+
method: "POST",
|
|
562
|
+
uri: "/hosting/privateDatabase/{serviceName}/user",
|
|
563
|
+
code: 200,
|
|
564
|
+
}),
|
|
565
|
+
),
|
|
566
|
+
).annotate({
|
|
567
|
+
identifier: "CreateHostingPrivateDatabaseUserRequest",
|
|
568
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseUserRequest>;
|
|
569
|
+
|
|
570
|
+
export interface CreateHostingPrivateDatabaseUserChangePasswordRequest {
|
|
571
|
+
/** Service name */
|
|
572
|
+
serviceName: string;
|
|
573
|
+
/** User name */
|
|
574
|
+
userName: string;
|
|
575
|
+
/** Password for the new user ( alphanumeric and 8 characters minimum ) */
|
|
576
|
+
password: string | Redacted.Redacted<string>;
|
|
577
|
+
}
|
|
578
|
+
export const CreateHostingPrivateDatabaseUserChangePasswordRequest =
|
|
579
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
580
|
+
S.Struct({
|
|
581
|
+
serviceName: S.String.pipe(T.Label()),
|
|
582
|
+
userName: S.String.pipe(T.Label()),
|
|
583
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
584
|
+
}).pipe(
|
|
585
|
+
T.Http({
|
|
586
|
+
method: "POST",
|
|
587
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}/changePassword",
|
|
588
|
+
code: 200,
|
|
589
|
+
}),
|
|
590
|
+
),
|
|
591
|
+
).annotate({
|
|
592
|
+
identifier: "CreateHostingPrivateDatabaseUserChangePasswordRequest",
|
|
593
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseUserChangePasswordRequest>;
|
|
594
|
+
|
|
595
|
+
export interface CreateHostingPrivateDatabaseUserGrantRequest {
|
|
596
|
+
/** Service name */
|
|
597
|
+
serviceName: string;
|
|
598
|
+
/** User name */
|
|
599
|
+
userName: string;
|
|
600
|
+
/** Database name where add grant */
|
|
601
|
+
databaseName: string;
|
|
602
|
+
/** Grant on a database for a specific user */
|
|
603
|
+
grant: HostingPrivateDatabaseGrantGrantEnum | (string & {});
|
|
604
|
+
}
|
|
605
|
+
export const CreateHostingPrivateDatabaseUserGrantRequest =
|
|
606
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
607
|
+
S.Struct({
|
|
608
|
+
serviceName: S.String.pipe(T.Label()),
|
|
609
|
+
userName: S.String.pipe(T.Label()),
|
|
610
|
+
databaseName: S.String,
|
|
611
|
+
grant: HostingPrivateDatabaseGrantGrantEnum,
|
|
612
|
+
}).pipe(
|
|
613
|
+
T.Http({
|
|
614
|
+
method: "POST",
|
|
615
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}/grant",
|
|
616
|
+
code: 200,
|
|
617
|
+
}),
|
|
618
|
+
),
|
|
619
|
+
).annotate({
|
|
620
|
+
identifier: "CreateHostingPrivateDatabaseUserGrantRequest",
|
|
621
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseUserGrantRequest>;
|
|
622
|
+
|
|
623
|
+
export interface CreateHostingPrivateDatabaseWebhostingNetworkRequest {
|
|
624
|
+
/** Service name */
|
|
625
|
+
serviceName: string;
|
|
626
|
+
}
|
|
627
|
+
export const CreateHostingPrivateDatabaseWebhostingNetworkRequest =
|
|
628
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
629
|
+
S.Struct({
|
|
630
|
+
serviceName: S.String.pipe(T.Label()),
|
|
631
|
+
}).pipe(
|
|
632
|
+
T.Http({
|
|
633
|
+
method: "POST",
|
|
634
|
+
uri: "/hosting/privateDatabase/{serviceName}/webhostingNetwork",
|
|
635
|
+
code: 200,
|
|
636
|
+
}),
|
|
637
|
+
),
|
|
638
|
+
).annotate({
|
|
639
|
+
identifier: "CreateHostingPrivateDatabaseWebhostingNetworkRequest",
|
|
640
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseWebhostingNetworkRequest>;
|
|
641
|
+
|
|
642
|
+
export interface CreateHostingPrivateDatabaseWhitelistRequest {
|
|
643
|
+
/** Service name */
|
|
644
|
+
serviceName: string;
|
|
645
|
+
/** The whitelisted IP in your Web Cloud Database */
|
|
646
|
+
ip: string;
|
|
647
|
+
/** Custom name for your Whitelisted IP */
|
|
648
|
+
name?: string | null;
|
|
649
|
+
/** Authorize this IP to access service port */
|
|
650
|
+
service?: boolean;
|
|
651
|
+
/** Authorize this IP to access sftp port */
|
|
652
|
+
sftp?: boolean;
|
|
653
|
+
}
|
|
654
|
+
export const CreateHostingPrivateDatabaseWhitelistRequest =
|
|
655
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
656
|
+
S.Struct({
|
|
657
|
+
serviceName: S.String.pipe(T.Label()),
|
|
658
|
+
ip: S.String,
|
|
659
|
+
name: S.optional(S.NullOr(S.String)),
|
|
660
|
+
service: S.optional(S.Boolean),
|
|
661
|
+
sftp: S.optional(S.Boolean),
|
|
662
|
+
}).pipe(
|
|
663
|
+
T.Http({
|
|
664
|
+
method: "POST",
|
|
665
|
+
uri: "/hosting/privateDatabase/{serviceName}/whitelist",
|
|
666
|
+
code: 200,
|
|
667
|
+
}),
|
|
668
|
+
),
|
|
669
|
+
).annotate({
|
|
670
|
+
identifier: "CreateHostingPrivateDatabaseWhitelistRequest",
|
|
671
|
+
}) as any as S.Schema<CreateHostingPrivateDatabaseWhitelistRequest>;
|
|
672
|
+
|
|
673
|
+
export interface DeleteHostingPrivateDatabaseDatabaseRequest {
|
|
674
|
+
/** Service name */
|
|
675
|
+
serviceName: string;
|
|
676
|
+
/** Database name */
|
|
677
|
+
databaseName: string;
|
|
678
|
+
}
|
|
679
|
+
export const DeleteHostingPrivateDatabaseDatabaseRequest =
|
|
680
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
681
|
+
S.Struct({
|
|
682
|
+
serviceName: S.String.pipe(T.Label()),
|
|
683
|
+
databaseName: S.String.pipe(T.Label()),
|
|
684
|
+
}).pipe(
|
|
685
|
+
T.Http({
|
|
686
|
+
method: "DELETE",
|
|
687
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}",
|
|
688
|
+
code: 200,
|
|
689
|
+
}),
|
|
690
|
+
),
|
|
691
|
+
).annotate({
|
|
692
|
+
identifier: "DeleteHostingPrivateDatabaseDatabaseRequest",
|
|
693
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseDatabaseRequest>;
|
|
694
|
+
|
|
695
|
+
export interface DeleteHostingPrivateDatabaseDatabaseCopyRequest {
|
|
696
|
+
/** Service name */
|
|
697
|
+
serviceName: string;
|
|
698
|
+
/** Database name */
|
|
699
|
+
databaseName: string;
|
|
700
|
+
/** Id */
|
|
701
|
+
id: string;
|
|
702
|
+
}
|
|
703
|
+
export const DeleteHostingPrivateDatabaseDatabaseCopyRequest =
|
|
704
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
705
|
+
S.Struct({
|
|
706
|
+
serviceName: S.String.pipe(T.Label()),
|
|
707
|
+
databaseName: S.String.pipe(T.Label()),
|
|
708
|
+
id: S.String.pipe(T.Label()),
|
|
709
|
+
}).pipe(
|
|
710
|
+
T.Http({
|
|
711
|
+
method: "DELETE",
|
|
712
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/copy/{id}",
|
|
713
|
+
code: 200,
|
|
714
|
+
}),
|
|
715
|
+
),
|
|
716
|
+
).annotate({
|
|
717
|
+
identifier: "DeleteHostingPrivateDatabaseDatabaseCopyRequest",
|
|
718
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseDatabaseCopyRequest>;
|
|
719
|
+
|
|
720
|
+
export interface DeleteHostingPrivateDatabaseDatabaseCopyResponse {}
|
|
721
|
+
export const DeleteHostingPrivateDatabaseDatabaseCopyResponse =
|
|
722
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
723
|
+
identifier: "DeleteHostingPrivateDatabaseDatabaseCopyResponse",
|
|
724
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseDatabaseCopyResponse>;
|
|
725
|
+
|
|
726
|
+
export interface DeleteHostingPrivateDatabaseDatabaseDumpRequest {
|
|
727
|
+
/** Service name */
|
|
728
|
+
serviceName: string;
|
|
729
|
+
/** Database name */
|
|
730
|
+
databaseName: string;
|
|
731
|
+
/** Id */
|
|
732
|
+
id: number;
|
|
733
|
+
}
|
|
734
|
+
export const DeleteHostingPrivateDatabaseDatabaseDumpRequest =
|
|
735
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
736
|
+
S.Struct({
|
|
737
|
+
serviceName: S.String.pipe(T.Label()),
|
|
738
|
+
databaseName: S.String.pipe(T.Label()),
|
|
739
|
+
id: S.Number.pipe(T.Label()),
|
|
740
|
+
}).pipe(
|
|
741
|
+
T.Http({
|
|
742
|
+
method: "DELETE",
|
|
743
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/dump/{id}",
|
|
744
|
+
code: 200,
|
|
745
|
+
}),
|
|
746
|
+
),
|
|
747
|
+
).annotate({
|
|
748
|
+
identifier: "DeleteHostingPrivateDatabaseDatabaseDumpRequest",
|
|
749
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseDatabaseDumpRequest>;
|
|
750
|
+
|
|
751
|
+
export interface DeleteHostingPrivateDatabaseDumpRequest {
|
|
752
|
+
/** Service name */
|
|
753
|
+
serviceName: string;
|
|
754
|
+
/** Dump ID */
|
|
755
|
+
dumpId: number;
|
|
756
|
+
}
|
|
757
|
+
export const DeleteHostingPrivateDatabaseDumpRequest = /*@__PURE__*/ S.suspend(
|
|
758
|
+
() =>
|
|
759
|
+
S.Struct({
|
|
760
|
+
serviceName: S.String.pipe(T.Label()),
|
|
761
|
+
dumpId: S.Number.pipe(T.Label()),
|
|
762
|
+
}).pipe(
|
|
763
|
+
T.Http({
|
|
764
|
+
method: "DELETE",
|
|
765
|
+
uri: "/hosting/privateDatabase/{serviceName}/dump/{dumpId}",
|
|
766
|
+
code: 200,
|
|
767
|
+
}),
|
|
768
|
+
),
|
|
769
|
+
).annotate({
|
|
770
|
+
identifier: "DeleteHostingPrivateDatabaseDumpRequest",
|
|
771
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseDumpRequest>;
|
|
772
|
+
|
|
773
|
+
export interface DeleteHostingPrivateDatabaseLogSubscriptionRequest {
|
|
774
|
+
/** Service name */
|
|
775
|
+
serviceName: string;
|
|
776
|
+
/** Subscription ID */
|
|
777
|
+
subscriptionId: string;
|
|
778
|
+
}
|
|
779
|
+
export const DeleteHostingPrivateDatabaseLogSubscriptionRequest =
|
|
780
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
781
|
+
S.Struct({
|
|
782
|
+
serviceName: S.String.pipe(T.Label()),
|
|
783
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
784
|
+
}).pipe(
|
|
785
|
+
T.Http({
|
|
786
|
+
method: "DELETE",
|
|
787
|
+
uri: "/hosting/privateDatabase/{serviceName}/log/subscription/{subscriptionId}",
|
|
788
|
+
code: 200,
|
|
789
|
+
}),
|
|
790
|
+
),
|
|
791
|
+
).annotate({
|
|
792
|
+
identifier: "DeleteHostingPrivateDatabaseLogSubscriptionRequest",
|
|
793
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseLogSubscriptionRequest>;
|
|
794
|
+
|
|
795
|
+
export interface DeleteHostingPrivateDatabaseUserRequest {
|
|
796
|
+
/** Service name */
|
|
797
|
+
serviceName: string;
|
|
798
|
+
/** User name */
|
|
799
|
+
userName: string;
|
|
800
|
+
}
|
|
801
|
+
export const DeleteHostingPrivateDatabaseUserRequest = /*@__PURE__*/ S.suspend(
|
|
802
|
+
() =>
|
|
803
|
+
S.Struct({
|
|
804
|
+
serviceName: S.String.pipe(T.Label()),
|
|
805
|
+
userName: S.String.pipe(T.Label()),
|
|
806
|
+
}).pipe(
|
|
807
|
+
T.Http({
|
|
808
|
+
method: "DELETE",
|
|
809
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}",
|
|
810
|
+
code: 200,
|
|
811
|
+
}),
|
|
812
|
+
),
|
|
813
|
+
).annotate({
|
|
814
|
+
identifier: "DeleteHostingPrivateDatabaseUserRequest",
|
|
815
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseUserRequest>;
|
|
816
|
+
|
|
817
|
+
export interface DeleteHostingPrivateDatabaseUserGrantRequest {
|
|
818
|
+
/** Service name */
|
|
819
|
+
serviceName: string;
|
|
820
|
+
/** User name */
|
|
821
|
+
userName: string;
|
|
822
|
+
/** Database name */
|
|
823
|
+
databaseName: string;
|
|
824
|
+
}
|
|
825
|
+
export const DeleteHostingPrivateDatabaseUserGrantRequest =
|
|
826
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
827
|
+
S.Struct({
|
|
828
|
+
serviceName: S.String.pipe(T.Label()),
|
|
829
|
+
userName: S.String.pipe(T.Label()),
|
|
830
|
+
databaseName: S.String.pipe(T.Label()),
|
|
831
|
+
}).pipe(
|
|
832
|
+
T.Http({
|
|
833
|
+
method: "DELETE",
|
|
834
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}/grant/{databaseName}",
|
|
835
|
+
code: 200,
|
|
836
|
+
}),
|
|
837
|
+
),
|
|
838
|
+
).annotate({
|
|
839
|
+
identifier: "DeleteHostingPrivateDatabaseUserGrantRequest",
|
|
840
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseUserGrantRequest>;
|
|
841
|
+
|
|
842
|
+
export interface DeleteHostingPrivateDatabaseWebhostingNetworkRequest {
|
|
843
|
+
/** Service name */
|
|
844
|
+
serviceName: string;
|
|
845
|
+
}
|
|
846
|
+
export const DeleteHostingPrivateDatabaseWebhostingNetworkRequest =
|
|
847
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
848
|
+
S.Struct({
|
|
849
|
+
serviceName: S.String.pipe(T.Label()),
|
|
850
|
+
}).pipe(
|
|
851
|
+
T.Http({
|
|
852
|
+
method: "DELETE",
|
|
853
|
+
uri: "/hosting/privateDatabase/{serviceName}/webhostingNetwork",
|
|
854
|
+
code: 200,
|
|
855
|
+
}),
|
|
856
|
+
),
|
|
857
|
+
).annotate({
|
|
858
|
+
identifier: "DeleteHostingPrivateDatabaseWebhostingNetworkRequest",
|
|
859
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseWebhostingNetworkRequest>;
|
|
860
|
+
|
|
861
|
+
export interface DeleteHostingPrivateDatabaseWhitelistRequest {
|
|
862
|
+
/** Service name */
|
|
863
|
+
serviceName: string;
|
|
864
|
+
/** Ip */
|
|
865
|
+
ip: string;
|
|
866
|
+
}
|
|
867
|
+
export const DeleteHostingPrivateDatabaseWhitelistRequest =
|
|
868
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
869
|
+
S.Struct({
|
|
870
|
+
serviceName: S.String.pipe(T.Label()),
|
|
871
|
+
ip: S.String.pipe(T.Label()),
|
|
872
|
+
}).pipe(
|
|
873
|
+
T.Http({
|
|
874
|
+
method: "DELETE",
|
|
875
|
+
uri: "/hosting/privateDatabase/{serviceName}/whitelist/{ip}",
|
|
876
|
+
code: 200,
|
|
877
|
+
}),
|
|
878
|
+
),
|
|
879
|
+
).annotate({
|
|
880
|
+
identifier: "DeleteHostingPrivateDatabaseWhitelistRequest",
|
|
881
|
+
}) as any as S.Schema<DeleteHostingPrivateDatabaseWhitelistRequest>;
|
|
882
|
+
|
|
883
|
+
export interface DisableHostingPrivateDatabaseDatabaseExtensionRequest {
|
|
884
|
+
/** Service name */
|
|
885
|
+
serviceName: string;
|
|
886
|
+
/** Database name */
|
|
887
|
+
databaseName: string;
|
|
888
|
+
/** Extension name */
|
|
889
|
+
extensionName: string;
|
|
890
|
+
}
|
|
891
|
+
export const DisableHostingPrivateDatabaseDatabaseExtensionRequest =
|
|
892
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
893
|
+
S.Struct({
|
|
894
|
+
serviceName: S.String.pipe(T.Label()),
|
|
895
|
+
databaseName: S.String.pipe(T.Label()),
|
|
896
|
+
extensionName: S.String.pipe(T.Label()),
|
|
897
|
+
}).pipe(
|
|
898
|
+
T.Http({
|
|
899
|
+
method: "POST",
|
|
900
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/extension/{extensionName}/disable",
|
|
901
|
+
code: 200,
|
|
902
|
+
}),
|
|
903
|
+
),
|
|
904
|
+
).annotate({
|
|
905
|
+
identifier: "DisableHostingPrivateDatabaseDatabaseExtensionRequest",
|
|
906
|
+
}) as any as S.Schema<DisableHostingPrivateDatabaseDatabaseExtensionRequest>;
|
|
907
|
+
|
|
908
|
+
export interface EnableHostingPrivateDatabaseDatabaseExtensionRequest {
|
|
909
|
+
/** Service name */
|
|
910
|
+
serviceName: string;
|
|
911
|
+
/** Database name */
|
|
912
|
+
databaseName: string;
|
|
913
|
+
/** Extension name */
|
|
914
|
+
extensionName: string;
|
|
915
|
+
}
|
|
916
|
+
export const EnableHostingPrivateDatabaseDatabaseExtensionRequest =
|
|
917
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
918
|
+
S.Struct({
|
|
919
|
+
serviceName: S.String.pipe(T.Label()),
|
|
920
|
+
databaseName: S.String.pipe(T.Label()),
|
|
921
|
+
extensionName: S.String.pipe(T.Label()),
|
|
922
|
+
}).pipe(
|
|
923
|
+
T.Http({
|
|
924
|
+
method: "POST",
|
|
925
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/extension/{extensionName}/enable",
|
|
926
|
+
code: 200,
|
|
927
|
+
}),
|
|
928
|
+
),
|
|
929
|
+
).annotate({
|
|
930
|
+
identifier: "EnableHostingPrivateDatabaseDatabaseExtensionRequest",
|
|
931
|
+
}) as any as S.Schema<EnableHostingPrivateDatabaseDatabaseExtensionRequest>;
|
|
932
|
+
|
|
933
|
+
export interface GenerateHostingPrivateDatabaseTemporaryLogsLinkRequest {
|
|
934
|
+
/** Service name */
|
|
935
|
+
serviceName: string;
|
|
936
|
+
}
|
|
937
|
+
export const GenerateHostingPrivateDatabaseTemporaryLogsLinkRequest =
|
|
938
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
939
|
+
S.Struct({
|
|
940
|
+
serviceName: S.String.pipe(T.Label()),
|
|
941
|
+
}).pipe(
|
|
942
|
+
T.Http({
|
|
943
|
+
method: "POST",
|
|
944
|
+
uri: "/hosting/privateDatabase/{serviceName}/generateTemporaryLogsLink",
|
|
945
|
+
code: 200,
|
|
946
|
+
}),
|
|
947
|
+
),
|
|
948
|
+
).annotate({
|
|
949
|
+
identifier: "GenerateHostingPrivateDatabaseTemporaryLogsLinkRequest",
|
|
950
|
+
}) as any as S.Schema<GenerateHostingPrivateDatabaseTemporaryLogsLinkRequest>;
|
|
951
|
+
|
|
952
|
+
/** Temporary url information */
|
|
953
|
+
export interface HostingPrivateDatabaseTemporaryUrlInformations {
|
|
954
|
+
/** Temporary url expiration date */
|
|
955
|
+
expirationDate?: string;
|
|
956
|
+
/** Temporary url */
|
|
957
|
+
url?: string;
|
|
958
|
+
}
|
|
959
|
+
export const HostingPrivateDatabaseTemporaryUrlInformations =
|
|
960
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
961
|
+
S.Struct({
|
|
962
|
+
expirationDate: S.optional(S.String),
|
|
963
|
+
url: S.optional(S.String),
|
|
964
|
+
}),
|
|
965
|
+
).annotate({
|
|
966
|
+
identifier: "HostingPrivateDatabaseTemporaryUrlInformations",
|
|
967
|
+
}) as any as S.Schema<HostingPrivateDatabaseTemporaryUrlInformations>;
|
|
968
|
+
|
|
969
|
+
export interface GetHostingPrivateDatabaseRequest {
|
|
970
|
+
/** Service name */
|
|
971
|
+
serviceName: string;
|
|
972
|
+
}
|
|
973
|
+
export const GetHostingPrivateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
974
|
+
S.Struct({
|
|
975
|
+
serviceName: S.String.pipe(T.Label()),
|
|
976
|
+
}).pipe(
|
|
977
|
+
T.Http({
|
|
978
|
+
method: "GET",
|
|
979
|
+
uri: "/hosting/privateDatabase/{serviceName}",
|
|
980
|
+
code: 200,
|
|
981
|
+
}),
|
|
982
|
+
),
|
|
983
|
+
).annotate({
|
|
984
|
+
identifier: "GetHostingPrivateDatabaseRequest",
|
|
985
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseRequest>;
|
|
986
|
+
|
|
987
|
+
/** Private database capability */
|
|
988
|
+
export interface HostingPrivateDatabaseCapability {
|
|
989
|
+
/** Can the object be created */
|
|
990
|
+
create?: boolean;
|
|
991
|
+
/** Can the object be deleted */
|
|
992
|
+
delete?: boolean;
|
|
993
|
+
/** Object name */
|
|
994
|
+
object?: string;
|
|
995
|
+
/** Can the object be updated */
|
|
996
|
+
update?: boolean;
|
|
997
|
+
}
|
|
998
|
+
export const HostingPrivateDatabaseCapability = /*@__PURE__*/ S.suspend(() =>
|
|
999
|
+
S.Struct({
|
|
1000
|
+
create: S.optional(S.Boolean),
|
|
1001
|
+
delete: S.optional(S.Boolean),
|
|
1002
|
+
object: S.optional(S.String),
|
|
1003
|
+
update: S.optional(S.Boolean),
|
|
1004
|
+
}),
|
|
1005
|
+
).annotate({
|
|
1006
|
+
identifier: "HostingPrivateDatabaseCapability",
|
|
1007
|
+
}) as any as S.Schema<HostingPrivateDatabaseCapability>;
|
|
1008
|
+
|
|
1009
|
+
/** Private database capabilities */
|
|
1010
|
+
export type HostingPrivateDatabaseServiceWithIAMCapabilitiesList =
|
|
1011
|
+
Array<HostingPrivateDatabaseCapability>;
|
|
1012
|
+
export const HostingPrivateDatabaseServiceWithIAMCapabilitiesList =
|
|
1013
|
+
/*@__PURE__*/ S.Array(
|
|
1014
|
+
HostingPrivateDatabaseCapability,
|
|
1015
|
+
) as any as S.Schema<HostingPrivateDatabaseServiceWithIAMCapabilitiesList>;
|
|
1016
|
+
|
|
1017
|
+
/** Private database datacenter */
|
|
1018
|
+
export type HostingPrivateDatabaseDatacenterEnum =
|
|
1019
|
+
| "bhs1"
|
|
1020
|
+
| "gra1"
|
|
1021
|
+
| "gra2"
|
|
1022
|
+
| "gra3";
|
|
1023
|
+
export const HostingPrivateDatabaseDatacenterEnum = /*@__PURE__*/ S.String;
|
|
1024
|
+
|
|
1025
|
+
/** Parameters required to query metrics from OpenTSDB */
|
|
1026
|
+
export interface HostingPrivateDatabaseGraphEndpoint {
|
|
1027
|
+
/** The OpenTSDB host */
|
|
1028
|
+
host?: string | null;
|
|
1029
|
+
/** A read-only token */
|
|
1030
|
+
readToken?: string | null;
|
|
1031
|
+
/** A read-only token ID */
|
|
1032
|
+
readTokenId?: string | null;
|
|
1033
|
+
}
|
|
1034
|
+
export const HostingPrivateDatabaseGraphEndpoint = /*@__PURE__*/ S.suspend(() =>
|
|
1035
|
+
S.Struct({
|
|
1036
|
+
host: S.optional(S.NullOr(S.String)),
|
|
1037
|
+
readToken: S.optional(S.NullOr(S.String)),
|
|
1038
|
+
readTokenId: S.optional(S.NullOr(S.String)),
|
|
1039
|
+
}),
|
|
1040
|
+
).annotate({
|
|
1041
|
+
identifier: "HostingPrivateDatabaseGraphEndpoint",
|
|
1042
|
+
}) as any as S.Schema<HostingPrivateDatabaseGraphEndpoint>;
|
|
1043
|
+
|
|
1044
|
+
/** Resource tags. Tags that were internally computed are prefixed with ovh: */
|
|
1045
|
+
export type IamResourceMetadataTagsMap = { [key: string]: string | undefined };
|
|
1046
|
+
export const IamResourceMetadataTagsMap = /*@__PURE__*/ S.Record(
|
|
1047
|
+
S.String,
|
|
1048
|
+
S.String,
|
|
1049
|
+
) as any as S.Schema<IamResourceMetadataTagsMap>;
|
|
1050
|
+
|
|
1051
|
+
/** IAM resource metadata embedded in services models */
|
|
1052
|
+
export interface IamResourceMetadata {
|
|
1053
|
+
/** Resource display name */
|
|
1054
|
+
displayName?: string | null;
|
|
1055
|
+
/** Unique identifier of the resource */
|
|
1056
|
+
id?: string;
|
|
1057
|
+
/** Resource tags. Tags that were internally computed are prefixed with ovh: */
|
|
1058
|
+
tags?: IamResourceMetadataTagsMap | null;
|
|
1059
|
+
/** Unique resource name used in policies */
|
|
1060
|
+
urn?: string;
|
|
1061
|
+
}
|
|
1062
|
+
export const IamResourceMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
1063
|
+
S.Struct({
|
|
1064
|
+
displayName: S.optional(S.NullOr(S.String)),
|
|
1065
|
+
id: S.optional(S.String),
|
|
1066
|
+
tags: S.optional(S.NullOr(IamResourceMetadataTagsMap)),
|
|
1067
|
+
urn: S.optional(S.String),
|
|
1068
|
+
}),
|
|
1069
|
+
).annotate({
|
|
1070
|
+
identifier: "IamResourceMetadata",
|
|
1071
|
+
}) as any as S.Schema<IamResourceMetadata>;
|
|
1072
|
+
|
|
1073
|
+
/** Private database infrastructure */
|
|
1074
|
+
export type HostingPrivateDatabaseInfrastructureEnum = "docker";
|
|
1075
|
+
export const HostingPrivateDatabaseInfrastructureEnum = /*@__PURE__*/ S.String;
|
|
1076
|
+
|
|
1077
|
+
/** Available offers */
|
|
1078
|
+
export type HostingPrivateDatabaseOfferEnum = "classic" | "public";
|
|
1079
|
+
export const HostingPrivateDatabaseOfferEnum = /*@__PURE__*/ S.String;
|
|
1080
|
+
|
|
1081
|
+
/** A numeric value tagged with its unit */
|
|
1082
|
+
export interface ComplexTypeUnitAndValueLong {
|
|
1083
|
+
/** Unit of the value */
|
|
1084
|
+
unit?: string;
|
|
1085
|
+
value?: number;
|
|
1086
|
+
}
|
|
1087
|
+
export const ComplexTypeUnitAndValueLong = /*@__PURE__*/ S.suspend(() =>
|
|
1088
|
+
S.Struct({
|
|
1089
|
+
unit: S.optional(S.String),
|
|
1090
|
+
value: S.optional(S.Number),
|
|
1091
|
+
}),
|
|
1092
|
+
).annotate({
|
|
1093
|
+
identifier: "ComplexTypeUnitAndValueLong",
|
|
1094
|
+
}) as any as S.Schema<ComplexTypeUnitAndValueLong>;
|
|
1095
|
+
|
|
1096
|
+
/** Private database state */
|
|
1097
|
+
export type HostingPrivateDatabaseStateEnum =
|
|
1098
|
+
| "detached"
|
|
1099
|
+
| "restartPending"
|
|
1100
|
+
| "startPending"
|
|
1101
|
+
| "started"
|
|
1102
|
+
| "stopPending"
|
|
1103
|
+
| "stopped";
|
|
1104
|
+
export const HostingPrivateDatabaseStateEnum = /*@__PURE__*/ S.String;
|
|
1105
|
+
|
|
1106
|
+
/** Private database type */
|
|
1107
|
+
export type HostingPrivateDatabaseTypeEnum =
|
|
1108
|
+
| "mariadb"
|
|
1109
|
+
| "mysql"
|
|
1110
|
+
| "postgresql"
|
|
1111
|
+
| "redis";
|
|
1112
|
+
export const HostingPrivateDatabaseTypeEnum = /*@__PURE__*/ S.String;
|
|
1113
|
+
|
|
1114
|
+
/** Private database version */
|
|
1115
|
+
export type HostingPrivateDatabaseVersionEnum =
|
|
1116
|
+
| "mariadb_10.11"
|
|
1117
|
+
| "mariadb_10.5"
|
|
1118
|
+
| "mariadb_10.6"
|
|
1119
|
+
| "mariadb_11.4"
|
|
1120
|
+
| "mysql_8.0"
|
|
1121
|
+
| "mysql_8.4"
|
|
1122
|
+
| "postgresql_13"
|
|
1123
|
+
| "postgresql_14"
|
|
1124
|
+
| "postgresql_15"
|
|
1125
|
+
| "postgresql_16"
|
|
1126
|
+
| "postgresql_17"
|
|
1127
|
+
| "redis_7.0"
|
|
1128
|
+
| "valkey_7.2";
|
|
1129
|
+
export const HostingPrivateDatabaseVersionEnum = /*@__PURE__*/ S.String;
|
|
1130
|
+
|
|
1131
|
+
/** Web Cloud Database */
|
|
1132
|
+
export interface HostingPrivateDatabaseServiceWithIAM {
|
|
1133
|
+
/** Private database capabilities */
|
|
1134
|
+
capabilities?: HostingPrivateDatabaseServiceWithIAMCapabilitiesList;
|
|
1135
|
+
/** Number of cpu on your private database */
|
|
1136
|
+
cpu?: number;
|
|
1137
|
+
/** Datacenter where this private database is located */
|
|
1138
|
+
datacenter?: HostingPrivateDatabaseDatacenterEnum;
|
|
1139
|
+
/** Set the name displayed in customer panel for your private database (max 50 chars) */
|
|
1140
|
+
displayName?: string | null;
|
|
1141
|
+
/** Parameters required to query metrics from OpenTSDB */
|
|
1142
|
+
graphEndpoint?: HostingPrivateDatabaseGraphEndpoint | null;
|
|
1143
|
+
/** URL for the graphical user interface */
|
|
1144
|
+
guiURL?: string | null;
|
|
1145
|
+
/** Private database hostname */
|
|
1146
|
+
hostname?: string;
|
|
1147
|
+
/** Private database ftp hostname */
|
|
1148
|
+
hostnameFtp?: string | null;
|
|
1149
|
+
/** IAM resource metadata */
|
|
1150
|
+
iam?: IamResourceMetadata | null;
|
|
1151
|
+
/** Infrastructure where service was stored */
|
|
1152
|
+
infrastructure?: HostingPrivateDatabaseInfrastructureEnum;
|
|
1153
|
+
/** Private database ip */
|
|
1154
|
+
ip?: string | null;
|
|
1155
|
+
/** Date of the last data synchronization */
|
|
1156
|
+
lastCheck?: string;
|
|
1157
|
+
/** Type of the private database offer */
|
|
1158
|
+
offer?: HostingPrivateDatabaseOfferEnum;
|
|
1159
|
+
/** Private database service port */
|
|
1160
|
+
port?: number;
|
|
1161
|
+
/** Private database ftp port */
|
|
1162
|
+
portFtp?: number | null;
|
|
1163
|
+
/** Space allowed on your private database */
|
|
1164
|
+
quotaSize?: ComplexTypeUnitAndValueLong;
|
|
1165
|
+
/** Total space used on your private database */
|
|
1166
|
+
quotaUsed?: ComplexTypeUnitAndValueLong;
|
|
1167
|
+
/** Amount of ram on your private database */
|
|
1168
|
+
ram?: ComplexTypeUnitAndValueLong;
|
|
1169
|
+
/** Private database server name */
|
|
1170
|
+
server?: string;
|
|
1171
|
+
/** Service name */
|
|
1172
|
+
serviceName?: string;
|
|
1173
|
+
/** Private database state */
|
|
1174
|
+
state?: HostingPrivateDatabaseStateEnum;
|
|
1175
|
+
/** Return the TLS certificate authority used by the private database */
|
|
1176
|
+
tlsCa?: string | null;
|
|
1177
|
+
/** Private database type */
|
|
1178
|
+
type?: HostingPrivateDatabaseTypeEnum;
|
|
1179
|
+
/** Private database version */
|
|
1180
|
+
version?: HostingPrivateDatabaseVersionEnum;
|
|
1181
|
+
/** Private database version label */
|
|
1182
|
+
versionLabel?: string;
|
|
1183
|
+
/** Private database version number */
|
|
1184
|
+
versionNumber?: number;
|
|
1185
|
+
}
|
|
1186
|
+
export const HostingPrivateDatabaseServiceWithIAM = /*@__PURE__*/ S.suspend(
|
|
1187
|
+
() =>
|
|
1188
|
+
S.Struct({
|
|
1189
|
+
capabilities: S.optional(
|
|
1190
|
+
HostingPrivateDatabaseServiceWithIAMCapabilitiesList,
|
|
1191
|
+
),
|
|
1192
|
+
cpu: S.optional(S.Number),
|
|
1193
|
+
datacenter: S.optional(HostingPrivateDatabaseDatacenterEnum),
|
|
1194
|
+
displayName: S.optional(S.NullOr(S.String)),
|
|
1195
|
+
graphEndpoint: S.optional(S.NullOr(HostingPrivateDatabaseGraphEndpoint)),
|
|
1196
|
+
guiURL: S.optional(S.NullOr(S.String)),
|
|
1197
|
+
hostname: S.optional(S.String),
|
|
1198
|
+
hostnameFtp: S.optional(S.NullOr(S.String)),
|
|
1199
|
+
iam: S.optional(S.NullOr(IamResourceMetadata)),
|
|
1200
|
+
infrastructure: S.optional(HostingPrivateDatabaseInfrastructureEnum),
|
|
1201
|
+
ip: S.optional(S.NullOr(S.String)),
|
|
1202
|
+
lastCheck: S.optional(S.String),
|
|
1203
|
+
offer: S.optional(HostingPrivateDatabaseOfferEnum),
|
|
1204
|
+
port: S.optional(S.Number),
|
|
1205
|
+
portFtp: S.optional(S.NullOr(S.Number)),
|
|
1206
|
+
quotaSize: S.optional(ComplexTypeUnitAndValueLong),
|
|
1207
|
+
quotaUsed: S.optional(ComplexTypeUnitAndValueLong),
|
|
1208
|
+
ram: S.optional(ComplexTypeUnitAndValueLong),
|
|
1209
|
+
server: S.optional(S.String),
|
|
1210
|
+
serviceName: S.optional(S.String),
|
|
1211
|
+
state: S.optional(HostingPrivateDatabaseStateEnum),
|
|
1212
|
+
tlsCa: S.optional(S.NullOr(S.String)),
|
|
1213
|
+
type: S.optional(HostingPrivateDatabaseTypeEnum),
|
|
1214
|
+
version: S.optional(HostingPrivateDatabaseVersionEnum),
|
|
1215
|
+
versionLabel: S.optional(S.String),
|
|
1216
|
+
versionNumber: S.optional(S.Number),
|
|
1217
|
+
}),
|
|
1218
|
+
).annotate({
|
|
1219
|
+
identifier: "HostingPrivateDatabaseServiceWithIAM",
|
|
1220
|
+
}) as any as S.Schema<HostingPrivateDatabaseServiceWithIAM>;
|
|
1221
|
+
|
|
1222
|
+
export interface GetHostingPrivateDatabaseDatabaseRequest {
|
|
1223
|
+
/** Service name */
|
|
1224
|
+
serviceName: string;
|
|
1225
|
+
/** Database name */
|
|
1226
|
+
databaseName: string;
|
|
1227
|
+
}
|
|
1228
|
+
export const GetHostingPrivateDatabaseDatabaseRequest = /*@__PURE__*/ S.suspend(
|
|
1229
|
+
() =>
|
|
1230
|
+
S.Struct({
|
|
1231
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1232
|
+
databaseName: S.String.pipe(T.Label()),
|
|
1233
|
+
}).pipe(
|
|
1234
|
+
T.Http({
|
|
1235
|
+
method: "GET",
|
|
1236
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}",
|
|
1237
|
+
code: 200,
|
|
1238
|
+
}),
|
|
1239
|
+
),
|
|
1240
|
+
).annotate({
|
|
1241
|
+
identifier: "GetHostingPrivateDatabaseDatabaseRequest",
|
|
1242
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseDatabaseRequest>;
|
|
1243
|
+
|
|
1244
|
+
/** Users */
|
|
1245
|
+
export interface HostingPrivateDatabaseDatabaseUser {
|
|
1246
|
+
/** The grantId associated for this databaseName and this userName */
|
|
1247
|
+
grantId?: number;
|
|
1248
|
+
/** User's rights on this database */
|
|
1249
|
+
grantType?: HostingPrivateDatabaseGrantGrantEnum;
|
|
1250
|
+
/** User's name granted on this database */
|
|
1251
|
+
userName?: string;
|
|
1252
|
+
}
|
|
1253
|
+
export const HostingPrivateDatabaseDatabaseUser = /*@__PURE__*/ S.suspend(() =>
|
|
1254
|
+
S.Struct({
|
|
1255
|
+
grantId: S.optional(S.Number),
|
|
1256
|
+
grantType: S.optional(HostingPrivateDatabaseGrantGrantEnum),
|
|
1257
|
+
userName: S.optional(S.String),
|
|
1258
|
+
}),
|
|
1259
|
+
).annotate({
|
|
1260
|
+
identifier: "HostingPrivateDatabaseDatabaseUser",
|
|
1261
|
+
}) as any as S.Schema<HostingPrivateDatabaseDatabaseUser>;
|
|
1262
|
+
|
|
1263
|
+
/** Users granted to this database */
|
|
1264
|
+
export type HostingPrivateDatabaseDatabaseUsersList =
|
|
1265
|
+
Array<HostingPrivateDatabaseDatabaseUser>;
|
|
1266
|
+
export const HostingPrivateDatabaseDatabaseUsersList = /*@__PURE__*/ S.Array(
|
|
1267
|
+
HostingPrivateDatabaseDatabaseUser,
|
|
1268
|
+
) as any as S.Schema<HostingPrivateDatabaseDatabaseUsersList>;
|
|
1269
|
+
|
|
1270
|
+
/** Databases */
|
|
1271
|
+
export interface HostingPrivateDatabaseDatabase {
|
|
1272
|
+
/** Time of the next backup (every day) */
|
|
1273
|
+
backupTime?: string | null;
|
|
1274
|
+
/** Creation date of the database */
|
|
1275
|
+
creationDate?: string;
|
|
1276
|
+
/** Database name */
|
|
1277
|
+
databaseName?: string;
|
|
1278
|
+
/** Space used by the database */
|
|
1279
|
+
quotaUsed?: ComplexTypeUnitAndValueLong;
|
|
1280
|
+
/** Users granted to this database */
|
|
1281
|
+
users?: HostingPrivateDatabaseDatabaseUsersList;
|
|
1282
|
+
}
|
|
1283
|
+
export const HostingPrivateDatabaseDatabase = /*@__PURE__*/ S.suspend(() =>
|
|
1284
|
+
S.Struct({
|
|
1285
|
+
backupTime: S.optional(S.NullOr(S.String)),
|
|
1286
|
+
creationDate: S.optional(S.String),
|
|
1287
|
+
databaseName: S.optional(S.String),
|
|
1288
|
+
quotaUsed: S.optional(ComplexTypeUnitAndValueLong),
|
|
1289
|
+
users: S.optional(HostingPrivateDatabaseDatabaseUsersList),
|
|
1290
|
+
}),
|
|
1291
|
+
).annotate({
|
|
1292
|
+
identifier: "HostingPrivateDatabaseDatabase",
|
|
1293
|
+
}) as any as S.Schema<HostingPrivateDatabaseDatabase>;
|
|
1294
|
+
|
|
1295
|
+
export interface GetHostingPrivateDatabaseDatabaseCopyRequest {
|
|
1296
|
+
/** Service name */
|
|
1297
|
+
serviceName: string;
|
|
1298
|
+
/** Database name */
|
|
1299
|
+
databaseName: string;
|
|
1300
|
+
/** Id */
|
|
1301
|
+
id: string;
|
|
1302
|
+
}
|
|
1303
|
+
export const GetHostingPrivateDatabaseDatabaseCopyRequest =
|
|
1304
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1305
|
+
S.Struct({
|
|
1306
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1307
|
+
databaseName: S.String.pipe(T.Label()),
|
|
1308
|
+
id: S.String.pipe(T.Label()),
|
|
1309
|
+
}).pipe(
|
|
1310
|
+
T.Http({
|
|
1311
|
+
method: "GET",
|
|
1312
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/copy/{id}",
|
|
1313
|
+
code: 200,
|
|
1314
|
+
}),
|
|
1315
|
+
),
|
|
1316
|
+
).annotate({
|
|
1317
|
+
identifier: "GetHostingPrivateDatabaseDatabaseCopyRequest",
|
|
1318
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseDatabaseCopyRequest>;
|
|
1319
|
+
|
|
1320
|
+
export interface GetHostingPrivateDatabaseDatabaseDumpRequest {
|
|
1321
|
+
/** Service name */
|
|
1322
|
+
serviceName: string;
|
|
1323
|
+
/** Database name */
|
|
1324
|
+
databaseName: string;
|
|
1325
|
+
/** Id */
|
|
1326
|
+
id: number;
|
|
1327
|
+
}
|
|
1328
|
+
export const GetHostingPrivateDatabaseDatabaseDumpRequest =
|
|
1329
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1330
|
+
S.Struct({
|
|
1331
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1332
|
+
databaseName: S.String.pipe(T.Label()),
|
|
1333
|
+
id: S.Number.pipe(T.Label()),
|
|
1334
|
+
}).pipe(
|
|
1335
|
+
T.Http({
|
|
1336
|
+
method: "GET",
|
|
1337
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/dump/{id}",
|
|
1338
|
+
code: 200,
|
|
1339
|
+
}),
|
|
1340
|
+
),
|
|
1341
|
+
).annotate({
|
|
1342
|
+
identifier: "GetHostingPrivateDatabaseDatabaseDumpRequest",
|
|
1343
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseDatabaseDumpRequest>;
|
|
1344
|
+
|
|
1345
|
+
/** Dumps */
|
|
1346
|
+
export interface HostingPrivateDatabaseDatabaseDump {
|
|
1347
|
+
/** Creation date of the dump */
|
|
1348
|
+
creationDate?: string;
|
|
1349
|
+
/** Dump of this database name */
|
|
1350
|
+
databaseName?: string;
|
|
1351
|
+
/** Automatic deletion date of the dump */
|
|
1352
|
+
deletionDate?: string;
|
|
1353
|
+
/** Dump id */
|
|
1354
|
+
id?: number;
|
|
1355
|
+
/** Dump URL access */
|
|
1356
|
+
url?: string;
|
|
1357
|
+
}
|
|
1358
|
+
export const HostingPrivateDatabaseDatabaseDump = /*@__PURE__*/ S.suspend(() =>
|
|
1359
|
+
S.Struct({
|
|
1360
|
+
creationDate: S.optional(S.String),
|
|
1361
|
+
databaseName: S.optional(S.String),
|
|
1362
|
+
deletionDate: S.optional(S.String),
|
|
1363
|
+
id: S.optional(S.Number),
|
|
1364
|
+
url: S.optional(S.String),
|
|
1365
|
+
}),
|
|
1366
|
+
).annotate({
|
|
1367
|
+
identifier: "HostingPrivateDatabaseDatabaseDump",
|
|
1368
|
+
}) as any as S.Schema<HostingPrivateDatabaseDatabaseDump>;
|
|
1369
|
+
|
|
1370
|
+
export interface GetHostingPrivateDatabaseDatabaseExtensionRequest {
|
|
1371
|
+
/** Service name */
|
|
1372
|
+
serviceName: string;
|
|
1373
|
+
/** Database name */
|
|
1374
|
+
databaseName: string;
|
|
1375
|
+
/** Extension name */
|
|
1376
|
+
extensionName: string;
|
|
1377
|
+
}
|
|
1378
|
+
export const GetHostingPrivateDatabaseDatabaseExtensionRequest =
|
|
1379
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1380
|
+
S.Struct({
|
|
1381
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1382
|
+
databaseName: S.String.pipe(T.Label()),
|
|
1383
|
+
extensionName: S.String.pipe(T.Label()),
|
|
1384
|
+
}).pipe(
|
|
1385
|
+
T.Http({
|
|
1386
|
+
method: "GET",
|
|
1387
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/extension/{extensionName}",
|
|
1388
|
+
code: 200,
|
|
1389
|
+
}),
|
|
1390
|
+
),
|
|
1391
|
+
).annotate({
|
|
1392
|
+
identifier: "GetHostingPrivateDatabaseDatabaseExtensionRequest",
|
|
1393
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseDatabaseExtensionRequest>;
|
|
1394
|
+
|
|
1395
|
+
/** Required extensions */
|
|
1396
|
+
export type HostingPrivateDatabaseExtensionRequiredExtensionsList =
|
|
1397
|
+
Array<string>;
|
|
1398
|
+
export const HostingPrivateDatabaseExtensionRequiredExtensionsList =
|
|
1399
|
+
/*@__PURE__*/ S.Array(
|
|
1400
|
+
S.String,
|
|
1401
|
+
) as any as S.Schema<HostingPrivateDatabaseExtensionRequiredExtensionsList>;
|
|
1402
|
+
|
|
1403
|
+
/** Extension status */
|
|
1404
|
+
export type HostingPrivateDatabaseExtensionStatusEnum =
|
|
1405
|
+
| "disabled"
|
|
1406
|
+
| "disabling"
|
|
1407
|
+
| "enabled"
|
|
1408
|
+
| "enabling";
|
|
1409
|
+
export const HostingPrivateDatabaseExtensionStatusEnum = /*@__PURE__*/ S.String;
|
|
1410
|
+
|
|
1411
|
+
/** Webcloud Database extension */
|
|
1412
|
+
export interface HostingPrivateDatabaseExtension {
|
|
1413
|
+
/** Extension details */
|
|
1414
|
+
description?: string;
|
|
1415
|
+
/** Extension name */
|
|
1416
|
+
extensionName?: string;
|
|
1417
|
+
/** Required extensions */
|
|
1418
|
+
requiredExtensions?: HostingPrivateDatabaseExtensionRequiredExtensionsList;
|
|
1419
|
+
/** Extension status */
|
|
1420
|
+
status?: HostingPrivateDatabaseExtensionStatusEnum;
|
|
1421
|
+
}
|
|
1422
|
+
export const HostingPrivateDatabaseExtension = /*@__PURE__*/ S.suspend(() =>
|
|
1423
|
+
S.Struct({
|
|
1424
|
+
description: S.optional(S.String),
|
|
1425
|
+
extensionName: S.optional(S.String),
|
|
1426
|
+
requiredExtensions: S.optional(
|
|
1427
|
+
HostingPrivateDatabaseExtensionRequiredExtensionsList,
|
|
1428
|
+
),
|
|
1429
|
+
status: S.optional(HostingPrivateDatabaseExtensionStatusEnum),
|
|
1430
|
+
}),
|
|
1431
|
+
).annotate({
|
|
1432
|
+
identifier: "HostingPrivateDatabaseExtension",
|
|
1433
|
+
}) as any as S.Schema<HostingPrivateDatabaseExtension>;
|
|
1434
|
+
|
|
1435
|
+
export interface GetHostingPrivateDatabaseDumpRequest {
|
|
1436
|
+
/** Service name */
|
|
1437
|
+
serviceName: string;
|
|
1438
|
+
/** Dump ID */
|
|
1439
|
+
dumpId: number;
|
|
1440
|
+
}
|
|
1441
|
+
export const GetHostingPrivateDatabaseDumpRequest = /*@__PURE__*/ S.suspend(
|
|
1442
|
+
() =>
|
|
1443
|
+
S.Struct({
|
|
1444
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1445
|
+
dumpId: S.Number.pipe(T.Label()),
|
|
1446
|
+
}).pipe(
|
|
1447
|
+
T.Http({
|
|
1448
|
+
method: "GET",
|
|
1449
|
+
uri: "/hosting/privateDatabase/{serviceName}/dump/{dumpId}",
|
|
1450
|
+
code: 200,
|
|
1451
|
+
}),
|
|
1452
|
+
),
|
|
1453
|
+
).annotate({
|
|
1454
|
+
identifier: "GetHostingPrivateDatabaseDumpRequest",
|
|
1455
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseDumpRequest>;
|
|
1456
|
+
|
|
1457
|
+
/** Dumps */
|
|
1458
|
+
export interface HostingPrivateDatabaseDump {
|
|
1459
|
+
/** Creation date of the dump */
|
|
1460
|
+
creationDate?: string;
|
|
1461
|
+
/** Dump of this database name */
|
|
1462
|
+
databaseName?: string;
|
|
1463
|
+
/** Automatic deletion date of the dump */
|
|
1464
|
+
deletionDate?: string;
|
|
1465
|
+
/** Dump id */
|
|
1466
|
+
dumpId?: number;
|
|
1467
|
+
/** Dump orphan flag (true if database does not exists) */
|
|
1468
|
+
orphan?: boolean;
|
|
1469
|
+
/** Dump URL access */
|
|
1470
|
+
url?: string;
|
|
1471
|
+
}
|
|
1472
|
+
export const HostingPrivateDatabaseDump = /*@__PURE__*/ S.suspend(() =>
|
|
1473
|
+
S.Struct({
|
|
1474
|
+
creationDate: S.optional(S.String),
|
|
1475
|
+
databaseName: S.optional(S.String),
|
|
1476
|
+
deletionDate: S.optional(S.String),
|
|
1477
|
+
dumpId: S.optional(S.Number),
|
|
1478
|
+
orphan: S.optional(S.Boolean),
|
|
1479
|
+
url: S.optional(S.String),
|
|
1480
|
+
}),
|
|
1481
|
+
).annotate({
|
|
1482
|
+
identifier: "HostingPrivateDatabaseDump",
|
|
1483
|
+
}) as any as S.Schema<HostingPrivateDatabaseDump>;
|
|
1484
|
+
|
|
1485
|
+
export interface GetHostingPrivateDatabaseLogKindRequest {
|
|
1486
|
+
/** Service name */
|
|
1487
|
+
serviceName: string;
|
|
1488
|
+
/** Name */
|
|
1489
|
+
name: string;
|
|
1490
|
+
}
|
|
1491
|
+
export const GetHostingPrivateDatabaseLogKindRequest = /*@__PURE__*/ S.suspend(
|
|
1492
|
+
() =>
|
|
1493
|
+
S.Struct({
|
|
1494
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1495
|
+
name: S.String.pipe(T.Label()),
|
|
1496
|
+
}).pipe(
|
|
1497
|
+
T.Http({
|
|
1498
|
+
method: "GET",
|
|
1499
|
+
uri: "/hosting/privateDatabase/{serviceName}/log/kind/{name}",
|
|
1500
|
+
code: 200,
|
|
1501
|
+
}),
|
|
1502
|
+
),
|
|
1503
|
+
).annotate({
|
|
1504
|
+
identifier: "GetHostingPrivateDatabaseLogKindRequest",
|
|
1505
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseLogKindRequest>;
|
|
1506
|
+
|
|
1507
|
+
/** List of additional log fields managed in this log kind */
|
|
1508
|
+
export type DbaasLogsLogKindAdditionalReturnedFieldsList = Array<string>;
|
|
1509
|
+
export const DbaasLogsLogKindAdditionalReturnedFieldsList =
|
|
1510
|
+
/*@__PURE__*/ S.Array(
|
|
1511
|
+
S.String,
|
|
1512
|
+
) as any as S.Schema<DbaasLogsLogKindAdditionalReturnedFieldsList>;
|
|
1513
|
+
|
|
1514
|
+
/** Log kind */
|
|
1515
|
+
export interface DbaasLogsLogKind {
|
|
1516
|
+
/** List of additional log fields managed in this log kind */
|
|
1517
|
+
additionalReturnedFields?: DbaasLogsLogKindAdditionalReturnedFieldsList;
|
|
1518
|
+
/** Creation date of the log kind */
|
|
1519
|
+
createdAt?: string;
|
|
1520
|
+
/** Log kind display name */
|
|
1521
|
+
displayName?: string;
|
|
1522
|
+
/** Log kind ID */
|
|
1523
|
+
kindId?: string;
|
|
1524
|
+
/** Log kind name */
|
|
1525
|
+
name?: string;
|
|
1526
|
+
/** Last update date of the log kind */
|
|
1527
|
+
updatedAt?: string;
|
|
1528
|
+
}
|
|
1529
|
+
export const DbaasLogsLogKind = /*@__PURE__*/ S.suspend(() =>
|
|
1530
|
+
S.Struct({
|
|
1531
|
+
additionalReturnedFields: S.optional(
|
|
1532
|
+
DbaasLogsLogKindAdditionalReturnedFieldsList,
|
|
1533
|
+
),
|
|
1534
|
+
createdAt: S.optional(S.String),
|
|
1535
|
+
displayName: S.optional(S.String),
|
|
1536
|
+
kindId: S.optional(S.String),
|
|
1537
|
+
name: S.optional(S.String),
|
|
1538
|
+
updatedAt: S.optional(S.String),
|
|
1539
|
+
}),
|
|
1540
|
+
).annotate({
|
|
1541
|
+
identifier: "DbaasLogsLogKind",
|
|
1542
|
+
}) as any as S.Schema<DbaasLogsLogKind>;
|
|
1543
|
+
|
|
1544
|
+
export interface GetHostingPrivateDatabaseLogSubscriptionRequest {
|
|
1545
|
+
/** Service name */
|
|
1546
|
+
serviceName: string;
|
|
1547
|
+
/** Subscription ID */
|
|
1548
|
+
subscriptionId: string;
|
|
1549
|
+
}
|
|
1550
|
+
export const GetHostingPrivateDatabaseLogSubscriptionRequest =
|
|
1551
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1552
|
+
S.Struct({
|
|
1553
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1554
|
+
subscriptionId: S.String.pipe(T.Label()),
|
|
1555
|
+
}).pipe(
|
|
1556
|
+
T.Http({
|
|
1557
|
+
method: "GET",
|
|
1558
|
+
uri: "/hosting/privateDatabase/{serviceName}/log/subscription/{subscriptionId}",
|
|
1559
|
+
code: 200,
|
|
1560
|
+
}),
|
|
1561
|
+
),
|
|
1562
|
+
).annotate({
|
|
1563
|
+
identifier: "GetHostingPrivateDatabaseLogSubscriptionRequest",
|
|
1564
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseLogSubscriptionRequest>;
|
|
1565
|
+
|
|
1566
|
+
/** Log subscription resource */
|
|
1567
|
+
export interface DbaasLogsLogSubscriptionResource {
|
|
1568
|
+
/** Name of subscribed resource */
|
|
1569
|
+
name?: string;
|
|
1570
|
+
/** Type of subscribed resource */
|
|
1571
|
+
type?: string;
|
|
1572
|
+
}
|
|
1573
|
+
export const DbaasLogsLogSubscriptionResource = /*@__PURE__*/ S.suspend(() =>
|
|
1574
|
+
S.Struct({
|
|
1575
|
+
name: S.optional(S.String),
|
|
1576
|
+
type: S.optional(S.String),
|
|
1577
|
+
}),
|
|
1578
|
+
).annotate({
|
|
1579
|
+
identifier: "DbaasLogsLogSubscriptionResource",
|
|
1580
|
+
}) as any as S.Schema<DbaasLogsLogSubscriptionResource>;
|
|
1581
|
+
|
|
1582
|
+
/** Log subscription */
|
|
1583
|
+
export interface DbaasLogsLogSubscription {
|
|
1584
|
+
/** Creation date of the subscription */
|
|
1585
|
+
createdAt?: string;
|
|
1586
|
+
/** Log kind name of this subscription */
|
|
1587
|
+
kind?: string;
|
|
1588
|
+
/** Subscribed resource, where the logs come from */
|
|
1589
|
+
resource?: DbaasLogsLogSubscriptionResource;
|
|
1590
|
+
/** Name of the destination log service */
|
|
1591
|
+
serviceName?: string;
|
|
1592
|
+
/** Id of the destination log stream */
|
|
1593
|
+
streamId?: string;
|
|
1594
|
+
/** Subscription ID */
|
|
1595
|
+
subscriptionId?: string;
|
|
1596
|
+
/** Last update date of the subscription */
|
|
1597
|
+
updatedAt?: string;
|
|
1598
|
+
}
|
|
1599
|
+
export const DbaasLogsLogSubscription = /*@__PURE__*/ S.suspend(() =>
|
|
1600
|
+
S.Struct({
|
|
1601
|
+
createdAt: S.optional(S.String),
|
|
1602
|
+
kind: S.optional(S.String),
|
|
1603
|
+
resource: S.optional(DbaasLogsLogSubscriptionResource),
|
|
1604
|
+
serviceName: S.optional(S.String),
|
|
1605
|
+
streamId: S.optional(S.String),
|
|
1606
|
+
subscriptionId: S.optional(S.String),
|
|
1607
|
+
updatedAt: S.optional(S.String),
|
|
1608
|
+
}),
|
|
1609
|
+
).annotate({
|
|
1610
|
+
identifier: "DbaasLogsLogSubscription",
|
|
1611
|
+
}) as any as S.Schema<DbaasLogsLogSubscription>;
|
|
1612
|
+
|
|
1613
|
+
export interface GetHostingPrivateDatabaseMetricsTokenRequest {
|
|
1614
|
+
/** Service name */
|
|
1615
|
+
serviceName: string;
|
|
1616
|
+
}
|
|
1617
|
+
export const GetHostingPrivateDatabaseMetricsTokenRequest =
|
|
1618
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1619
|
+
S.Struct({
|
|
1620
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1621
|
+
}).pipe(
|
|
1622
|
+
T.Http({
|
|
1623
|
+
method: "GET",
|
|
1624
|
+
uri: "/hosting/privateDatabase/{serviceName}/metricsToken",
|
|
1625
|
+
code: 200,
|
|
1626
|
+
}),
|
|
1627
|
+
),
|
|
1628
|
+
).annotate({
|
|
1629
|
+
identifier: "GetHostingPrivateDatabaseMetricsTokenRequest",
|
|
1630
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseMetricsTokenRequest>;
|
|
1631
|
+
|
|
1632
|
+
/** Metrics token */
|
|
1633
|
+
export interface HostingPrivateDatabaseMetricsToken {
|
|
1634
|
+
/** Backend url */
|
|
1635
|
+
endpoint?: string;
|
|
1636
|
+
/** Generated token */
|
|
1637
|
+
token?: string;
|
|
1638
|
+
}
|
|
1639
|
+
export const HostingPrivateDatabaseMetricsToken = /*@__PURE__*/ S.suspend(() =>
|
|
1640
|
+
S.Struct({
|
|
1641
|
+
endpoint: S.optional(S.String),
|
|
1642
|
+
token: S.optional(S.String),
|
|
1643
|
+
}),
|
|
1644
|
+
).annotate({
|
|
1645
|
+
identifier: "HostingPrivateDatabaseMetricsToken",
|
|
1646
|
+
}) as any as S.Schema<HostingPrivateDatabaseMetricsToken>;
|
|
1647
|
+
|
|
1648
|
+
export interface GetHostingPrivateDatabaseServiceInfosRequest {
|
|
1649
|
+
/** Service name */
|
|
1650
|
+
serviceName: string;
|
|
1651
|
+
}
|
|
1652
|
+
export const GetHostingPrivateDatabaseServiceInfosRequest =
|
|
1653
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1654
|
+
S.Struct({
|
|
1655
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1656
|
+
}).pipe(
|
|
1657
|
+
T.Http({
|
|
1658
|
+
method: "GET",
|
|
1659
|
+
uri: "/hosting/privateDatabase/{serviceName}/serviceInfos",
|
|
1660
|
+
code: 200,
|
|
1661
|
+
}),
|
|
1662
|
+
),
|
|
1663
|
+
).annotate({
|
|
1664
|
+
identifier: "GetHostingPrivateDatabaseServiceInfosRequest",
|
|
1665
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseServiceInfosRequest>;
|
|
1666
|
+
|
|
1667
|
+
/** All the possible renew period of your service in month */
|
|
1668
|
+
export type ServicesServicePossibleRenewPeriodList = Array<number>;
|
|
1669
|
+
export const ServicesServicePossibleRenewPeriodList = /*@__PURE__*/ S.Array(
|
|
1670
|
+
S.Number,
|
|
1671
|
+
) as any as S.Schema<ServicesServicePossibleRenewPeriodList>;
|
|
1672
|
+
|
|
1673
|
+
/** Map a possible renew for a specific service */
|
|
1674
|
+
export interface ServiceRenewType {
|
|
1675
|
+
/** The service is automatically renewed */
|
|
1676
|
+
automatic?: boolean;
|
|
1677
|
+
/** The service will be deleted at expiration */
|
|
1678
|
+
deleteAtExpiration?: boolean;
|
|
1679
|
+
/** The service forced to be renewed */
|
|
1680
|
+
forced?: boolean;
|
|
1681
|
+
/** The service needs to be manually renewed and paid */
|
|
1682
|
+
manualPayment?: boolean | null;
|
|
1683
|
+
/** period of renew in month */
|
|
1684
|
+
period?: number | null;
|
|
1685
|
+
}
|
|
1686
|
+
export const ServiceRenewType = /*@__PURE__*/ S.suspend(() =>
|
|
1687
|
+
S.Struct({
|
|
1688
|
+
automatic: S.optional(S.Boolean),
|
|
1689
|
+
deleteAtExpiration: S.optional(S.Boolean),
|
|
1690
|
+
forced: S.optional(S.Boolean),
|
|
1691
|
+
manualPayment: S.optional(S.NullOr(S.Boolean)),
|
|
1692
|
+
period: S.optional(S.NullOr(S.Number)),
|
|
1693
|
+
}),
|
|
1694
|
+
).annotate({
|
|
1695
|
+
identifier: "ServiceRenewType",
|
|
1696
|
+
}) as any as S.Schema<ServiceRenewType>;
|
|
1697
|
+
|
|
1698
|
+
/** Detailed renewal type of a service */
|
|
1699
|
+
export type ServiceRenewalTypeEnum =
|
|
1700
|
+
| "automaticForcedProduct"
|
|
1701
|
+
| "automaticV2012"
|
|
1702
|
+
| "automaticV2014"
|
|
1703
|
+
| "automaticV2016"
|
|
1704
|
+
| "manual"
|
|
1705
|
+
| "oneShot"
|
|
1706
|
+
| "option";
|
|
1707
|
+
export const ServiceRenewalTypeEnum = /*@__PURE__*/ S.String;
|
|
1708
|
+
|
|
1709
|
+
/** service.StateEnum */
|
|
1710
|
+
export type ServiceStateEnum =
|
|
1711
|
+
| "autorenewInProgress"
|
|
1712
|
+
| "expired"
|
|
1713
|
+
| "inCreation"
|
|
1714
|
+
| "ok"
|
|
1715
|
+
| "pendingDebt"
|
|
1716
|
+
| "unPaid";
|
|
1717
|
+
export const ServiceStateEnum = /*@__PURE__*/ S.String;
|
|
1718
|
+
|
|
1719
|
+
/** Details about a Service */
|
|
1720
|
+
export interface ServicesService {
|
|
1721
|
+
/** Indicates that the service can be set up to be deleted at expiration */
|
|
1722
|
+
canDeleteAtExpiration?: boolean;
|
|
1723
|
+
contactAdmin?: string;
|
|
1724
|
+
contactBilling?: string;
|
|
1725
|
+
contactTech?: string;
|
|
1726
|
+
creation?: string;
|
|
1727
|
+
domain?: string;
|
|
1728
|
+
engagedUpTo?: string | null;
|
|
1729
|
+
expiration?: string;
|
|
1730
|
+
/** All the possible renew period of your service in month */
|
|
1731
|
+
possibleRenewPeriod?: ServicesServicePossibleRenewPeriodList | null;
|
|
1732
|
+
/** Way of handling the renew */
|
|
1733
|
+
renew?: ServiceRenewType | null;
|
|
1734
|
+
renewalType?: ServiceRenewalTypeEnum;
|
|
1735
|
+
serviceId?: number;
|
|
1736
|
+
status?: ServiceStateEnum;
|
|
1737
|
+
}
|
|
1738
|
+
export const ServicesService = /*@__PURE__*/ S.suspend(() =>
|
|
1739
|
+
S.Struct({
|
|
1740
|
+
canDeleteAtExpiration: S.optional(S.Boolean),
|
|
1741
|
+
contactAdmin: S.optional(S.String),
|
|
1742
|
+
contactBilling: S.optional(S.String),
|
|
1743
|
+
contactTech: S.optional(S.String),
|
|
1744
|
+
creation: S.optional(S.String),
|
|
1745
|
+
domain: S.optional(S.String),
|
|
1746
|
+
engagedUpTo: S.optional(S.NullOr(S.String)),
|
|
1747
|
+
expiration: S.optional(S.String),
|
|
1748
|
+
possibleRenewPeriod: S.optional(
|
|
1749
|
+
S.NullOr(ServicesServicePossibleRenewPeriodList),
|
|
1750
|
+
),
|
|
1751
|
+
renew: S.optional(S.NullOr(ServiceRenewType)),
|
|
1752
|
+
renewalType: S.optional(ServiceRenewalTypeEnum),
|
|
1753
|
+
serviceId: S.optional(S.Number),
|
|
1754
|
+
status: S.optional(ServiceStateEnum),
|
|
1755
|
+
}),
|
|
1756
|
+
).annotate({
|
|
1757
|
+
identifier: "ServicesService",
|
|
1758
|
+
}) as any as S.Schema<ServicesService>;
|
|
1759
|
+
|
|
1760
|
+
export interface GetHostingPrivateDatabaseTaskRequest {
|
|
1761
|
+
/** Service name */
|
|
1762
|
+
serviceName: string;
|
|
1763
|
+
/** Id */
|
|
1764
|
+
id: number;
|
|
1765
|
+
}
|
|
1766
|
+
export const GetHostingPrivateDatabaseTaskRequest = /*@__PURE__*/ S.suspend(
|
|
1767
|
+
() =>
|
|
1768
|
+
S.Struct({
|
|
1769
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1770
|
+
id: S.Number.pipe(T.Label()),
|
|
1771
|
+
}).pipe(
|
|
1772
|
+
T.Http({
|
|
1773
|
+
method: "GET",
|
|
1774
|
+
uri: "/hosting/privateDatabase/{serviceName}/tasks/{id}",
|
|
1775
|
+
code: 200,
|
|
1776
|
+
}),
|
|
1777
|
+
),
|
|
1778
|
+
).annotate({
|
|
1779
|
+
identifier: "GetHostingPrivateDatabaseTaskRequest",
|
|
1780
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseTaskRequest>;
|
|
1781
|
+
|
|
1782
|
+
export interface GetHostingPrivateDatabaseUserRequest {
|
|
1783
|
+
/** Service name */
|
|
1784
|
+
serviceName: string;
|
|
1785
|
+
/** User name */
|
|
1786
|
+
userName: string;
|
|
1787
|
+
}
|
|
1788
|
+
export const GetHostingPrivateDatabaseUserRequest = /*@__PURE__*/ S.suspend(
|
|
1789
|
+
() =>
|
|
1790
|
+
S.Struct({
|
|
1791
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1792
|
+
userName: S.String.pipe(T.Label()),
|
|
1793
|
+
}).pipe(
|
|
1794
|
+
T.Http({
|
|
1795
|
+
method: "GET",
|
|
1796
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}",
|
|
1797
|
+
code: 200,
|
|
1798
|
+
}),
|
|
1799
|
+
),
|
|
1800
|
+
).annotate({
|
|
1801
|
+
identifier: "GetHostingPrivateDatabaseUserRequest",
|
|
1802
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseUserRequest>;
|
|
1803
|
+
|
|
1804
|
+
/** Users */
|
|
1805
|
+
export interface HostingPrivateDatabaseUserDatabase {
|
|
1806
|
+
/** Database granted for this user */
|
|
1807
|
+
databaseName?: string;
|
|
1808
|
+
/** The grantId associated for this databaseName and this userName */
|
|
1809
|
+
grantId?: number;
|
|
1810
|
+
/** User's rights on this database */
|
|
1811
|
+
grantType?: HostingPrivateDatabaseGrantGrantEnum;
|
|
1812
|
+
}
|
|
1813
|
+
export const HostingPrivateDatabaseUserDatabase = /*@__PURE__*/ S.suspend(() =>
|
|
1814
|
+
S.Struct({
|
|
1815
|
+
databaseName: S.optional(S.String),
|
|
1816
|
+
grantId: S.optional(S.Number),
|
|
1817
|
+
grantType: S.optional(HostingPrivateDatabaseGrantGrantEnum),
|
|
1818
|
+
}),
|
|
1819
|
+
).annotate({
|
|
1820
|
+
identifier: "HostingPrivateDatabaseUserDatabase",
|
|
1821
|
+
}) as any as S.Schema<HostingPrivateDatabaseUserDatabase>;
|
|
1822
|
+
|
|
1823
|
+
/** Databases granted for this user */
|
|
1824
|
+
export type HostingPrivateDatabaseUserDatabasesList =
|
|
1825
|
+
Array<HostingPrivateDatabaseUserDatabase>;
|
|
1826
|
+
export const HostingPrivateDatabaseUserDatabasesList = /*@__PURE__*/ S.Array(
|
|
1827
|
+
HostingPrivateDatabaseUserDatabase,
|
|
1828
|
+
) as any as S.Schema<HostingPrivateDatabaseUserDatabasesList>;
|
|
1829
|
+
|
|
1830
|
+
/** Users */
|
|
1831
|
+
export interface HostingPrivateDatabaseUser {
|
|
1832
|
+
/** Creation date of the user */
|
|
1833
|
+
creationDate?: string;
|
|
1834
|
+
/** Databases granted for this user */
|
|
1835
|
+
databases?: HostingPrivateDatabaseUserDatabasesList;
|
|
1836
|
+
/** User name used to connect to your databases */
|
|
1837
|
+
userName?: string;
|
|
1838
|
+
}
|
|
1839
|
+
export const HostingPrivateDatabaseUser = /*@__PURE__*/ S.suspend(() =>
|
|
1840
|
+
S.Struct({
|
|
1841
|
+
creationDate: S.optional(S.String),
|
|
1842
|
+
databases: S.optional(HostingPrivateDatabaseUserDatabasesList),
|
|
1843
|
+
userName: S.optional(S.String),
|
|
1844
|
+
}),
|
|
1845
|
+
).annotate({
|
|
1846
|
+
identifier: "HostingPrivateDatabaseUser",
|
|
1847
|
+
}) as any as S.Schema<HostingPrivateDatabaseUser>;
|
|
1848
|
+
|
|
1849
|
+
export interface GetHostingPrivateDatabaseUserGrantRequest {
|
|
1850
|
+
/** Service name */
|
|
1851
|
+
serviceName: string;
|
|
1852
|
+
/** User name */
|
|
1853
|
+
userName: string;
|
|
1854
|
+
/** Database name */
|
|
1855
|
+
databaseName: string;
|
|
1856
|
+
}
|
|
1857
|
+
export const GetHostingPrivateDatabaseUserGrantRequest =
|
|
1858
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1859
|
+
S.Struct({
|
|
1860
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1861
|
+
userName: S.String.pipe(T.Label()),
|
|
1862
|
+
databaseName: S.String.pipe(T.Label()),
|
|
1863
|
+
}).pipe(
|
|
1864
|
+
T.Http({
|
|
1865
|
+
method: "GET",
|
|
1866
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}/grant/{databaseName}",
|
|
1867
|
+
code: 200,
|
|
1868
|
+
}),
|
|
1869
|
+
),
|
|
1870
|
+
).annotate({
|
|
1871
|
+
identifier: "GetHostingPrivateDatabaseUserGrantRequest",
|
|
1872
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseUserGrantRequest>;
|
|
1873
|
+
|
|
1874
|
+
/** Grant */
|
|
1875
|
+
export interface HostingPrivateDatabaseUserGrant {
|
|
1876
|
+
/** Automatic deletion date of the dump */
|
|
1877
|
+
creationDate?: string;
|
|
1878
|
+
/** Dump of this database name */
|
|
1879
|
+
databaseName?: string;
|
|
1880
|
+
/** Grant set */
|
|
1881
|
+
grant?: HostingPrivateDatabaseGrantGrantEnum;
|
|
1882
|
+
}
|
|
1883
|
+
export const HostingPrivateDatabaseUserGrant = /*@__PURE__*/ S.suspend(() =>
|
|
1884
|
+
S.Struct({
|
|
1885
|
+
creationDate: S.optional(S.String),
|
|
1886
|
+
databaseName: S.optional(S.String),
|
|
1887
|
+
grant: S.optional(HostingPrivateDatabaseGrantGrantEnum),
|
|
1888
|
+
}),
|
|
1889
|
+
).annotate({
|
|
1890
|
+
identifier: "HostingPrivateDatabaseUserGrant",
|
|
1891
|
+
}) as any as S.Schema<HostingPrivateDatabaseUserGrant>;
|
|
1892
|
+
|
|
1893
|
+
export interface GetHostingPrivateDatabaseWebhostingNetworkRequest {
|
|
1894
|
+
/** Service name */
|
|
1895
|
+
serviceName: string;
|
|
1896
|
+
}
|
|
1897
|
+
export const GetHostingPrivateDatabaseWebhostingNetworkRequest =
|
|
1898
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1899
|
+
S.Struct({
|
|
1900
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1901
|
+
}).pipe(
|
|
1902
|
+
T.Http({
|
|
1903
|
+
method: "GET",
|
|
1904
|
+
uri: "/hosting/privateDatabase/{serviceName}/webhostingNetwork",
|
|
1905
|
+
code: 200,
|
|
1906
|
+
}),
|
|
1907
|
+
),
|
|
1908
|
+
).annotate({
|
|
1909
|
+
identifier: "GetHostingPrivateDatabaseWebhostingNetworkRequest",
|
|
1910
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseWebhostingNetworkRequest>;
|
|
1911
|
+
|
|
1912
|
+
/** Webhosting network status */
|
|
1913
|
+
export type HostingPrivateDatabaseWebhostingNetworkStatusEnum =
|
|
1914
|
+
| "disabled"
|
|
1915
|
+
| "disabling"
|
|
1916
|
+
| "enabled"
|
|
1917
|
+
| "enabling";
|
|
1918
|
+
export const HostingPrivateDatabaseWebhostingNetworkStatusEnum =
|
|
1919
|
+
/*@__PURE__*/ S.String;
|
|
1920
|
+
|
|
1921
|
+
/** webhosting Network */
|
|
1922
|
+
export interface HostingPrivateDatabaseWebhostingNetwork {
|
|
1923
|
+
/** Webhosting network status */
|
|
1924
|
+
status?: HostingPrivateDatabaseWebhostingNetworkStatusEnum;
|
|
1925
|
+
}
|
|
1926
|
+
export const HostingPrivateDatabaseWebhostingNetwork = /*@__PURE__*/ S.suspend(
|
|
1927
|
+
() =>
|
|
1928
|
+
S.Struct({
|
|
1929
|
+
status: S.optional(HostingPrivateDatabaseWebhostingNetworkStatusEnum),
|
|
1930
|
+
}),
|
|
1931
|
+
).annotate({
|
|
1932
|
+
identifier: "HostingPrivateDatabaseWebhostingNetwork",
|
|
1933
|
+
}) as any as S.Schema<HostingPrivateDatabaseWebhostingNetwork>;
|
|
1934
|
+
|
|
1935
|
+
export interface GetHostingPrivateDatabaseWhitelistRequest {
|
|
1936
|
+
/** Service name */
|
|
1937
|
+
serviceName: string;
|
|
1938
|
+
/** Ip */
|
|
1939
|
+
ip: string;
|
|
1940
|
+
}
|
|
1941
|
+
export const GetHostingPrivateDatabaseWhitelistRequest =
|
|
1942
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1943
|
+
S.Struct({
|
|
1944
|
+
serviceName: S.String.pipe(T.Label()),
|
|
1945
|
+
ip: S.String.pipe(T.Label()),
|
|
1946
|
+
}).pipe(
|
|
1947
|
+
T.Http({
|
|
1948
|
+
method: "GET",
|
|
1949
|
+
uri: "/hosting/privateDatabase/{serviceName}/whitelist/{ip}",
|
|
1950
|
+
code: 200,
|
|
1951
|
+
}),
|
|
1952
|
+
),
|
|
1953
|
+
).annotate({
|
|
1954
|
+
identifier: "GetHostingPrivateDatabaseWhitelistRequest",
|
|
1955
|
+
}) as any as S.Schema<GetHostingPrivateDatabaseWhitelistRequest>;
|
|
1956
|
+
|
|
1957
|
+
/** Whitelist status */
|
|
1958
|
+
export type HostingPrivateDatabaseWhitelistStatusEnum =
|
|
1959
|
+
| "created"
|
|
1960
|
+
| "creating"
|
|
1961
|
+
| "deleting"
|
|
1962
|
+
| "updating";
|
|
1963
|
+
export const HostingPrivateDatabaseWhitelistStatusEnum = /*@__PURE__*/ S.String;
|
|
1964
|
+
|
|
1965
|
+
/** Whitelist */
|
|
1966
|
+
export interface HostingPrivateDatabaseWhitelist {
|
|
1967
|
+
/** Creation date of this whitelist */
|
|
1968
|
+
creationDate?: string;
|
|
1969
|
+
/** The whitelisted IP in your Web Cloud Database */
|
|
1970
|
+
ip?: string;
|
|
1971
|
+
/** The last update date of this whitelist */
|
|
1972
|
+
lastUpdate?: string;
|
|
1973
|
+
/** Custom name for your Whitelisted IP */
|
|
1974
|
+
name?: string | null;
|
|
1975
|
+
/** Authorize this IP to access service port */
|
|
1976
|
+
service?: boolean;
|
|
1977
|
+
/** Authorize this IP to access sftp port */
|
|
1978
|
+
sftp?: boolean;
|
|
1979
|
+
/** Whitelist status */
|
|
1980
|
+
status?: HostingPrivateDatabaseWhitelistStatusEnum;
|
|
1981
|
+
/** The id of the task working on this object */
|
|
1982
|
+
taskId?: number | null;
|
|
1983
|
+
}
|
|
1984
|
+
export const HostingPrivateDatabaseWhitelist = /*@__PURE__*/ S.suspend(() =>
|
|
1985
|
+
S.Struct({
|
|
1986
|
+
creationDate: S.optional(S.String),
|
|
1987
|
+
ip: S.optional(S.String),
|
|
1988
|
+
lastUpdate: S.optional(S.String),
|
|
1989
|
+
name: S.optional(S.NullOr(S.String)),
|
|
1990
|
+
service: S.optional(S.Boolean),
|
|
1991
|
+
sftp: S.optional(S.Boolean),
|
|
1992
|
+
status: S.optional(HostingPrivateDatabaseWhitelistStatusEnum),
|
|
1993
|
+
taskId: S.optional(S.NullOr(S.Number)),
|
|
1994
|
+
}),
|
|
1995
|
+
).annotate({
|
|
1996
|
+
identifier: "HostingPrivateDatabaseWhitelist",
|
|
1997
|
+
}) as any as S.Schema<HostingPrivateDatabaseWhitelist>;
|
|
1998
|
+
|
|
1999
|
+
export interface ImportHostingPrivateDatabaseDatabaseRequest {
|
|
2000
|
+
/** Service name */
|
|
2001
|
+
serviceName: string;
|
|
2002
|
+
/** Database name */
|
|
2003
|
+
databaseName: string;
|
|
2004
|
+
/** Documents ID of the dump from /me/documents */
|
|
2005
|
+
documentId: string;
|
|
2006
|
+
/** Whether to flush the database before importing the dump (default to false) */
|
|
2007
|
+
flushDatabase?: boolean;
|
|
2008
|
+
/** Whether to receive an email when the import is complete (default to false) */
|
|
2009
|
+
sendEmail?: boolean;
|
|
2010
|
+
}
|
|
2011
|
+
export const ImportHostingPrivateDatabaseDatabaseRequest =
|
|
2012
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2013
|
+
S.Struct({
|
|
2014
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2015
|
+
databaseName: S.String.pipe(T.Label()),
|
|
2016
|
+
documentId: S.String,
|
|
2017
|
+
flushDatabase: S.optional(S.Boolean),
|
|
2018
|
+
sendEmail: S.optional(S.Boolean),
|
|
2019
|
+
}).pipe(
|
|
2020
|
+
T.Http({
|
|
2021
|
+
method: "POST",
|
|
2022
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/import",
|
|
2023
|
+
code: 200,
|
|
2024
|
+
}),
|
|
2025
|
+
),
|
|
2026
|
+
).annotate({
|
|
2027
|
+
identifier: "ImportHostingPrivateDatabaseDatabaseRequest",
|
|
2028
|
+
}) as any as S.Schema<ImportHostingPrivateDatabaseDatabaseRequest>;
|
|
2029
|
+
|
|
2030
|
+
/** Resource tag filter */
|
|
2031
|
+
export interface IamResourceTagFilterInput {}
|
|
2032
|
+
export const IamResourceTagFilterInput = /*@__PURE__*/ S.suspend(() =>
|
|
2033
|
+
S.Struct({}),
|
|
2034
|
+
).annotate({
|
|
2035
|
+
identifier: "IamResourceTagFilterInput",
|
|
2036
|
+
}) as any as S.Schema<IamResourceTagFilterInput>;
|
|
2037
|
+
|
|
2038
|
+
export type ListHostingPrivateDatabaseRequestIamTagsValueList =
|
|
2039
|
+
Array<IamResourceTagFilterInput>;
|
|
2040
|
+
export const ListHostingPrivateDatabaseRequestIamTagsValueList =
|
|
2041
|
+
/*@__PURE__*/ S.Array(
|
|
2042
|
+
IamResourceTagFilterInput,
|
|
2043
|
+
) as any as S.Schema<ListHostingPrivateDatabaseRequestIamTagsValueList>;
|
|
2044
|
+
|
|
2045
|
+
export type ListHostingPrivateDatabaseRequestIamTagsMap = {
|
|
2046
|
+
[key: string]: ListHostingPrivateDatabaseRequestIamTagsValueList | undefined;
|
|
2047
|
+
};
|
|
2048
|
+
export const ListHostingPrivateDatabaseRequestIamTagsMap =
|
|
2049
|
+
/*@__PURE__*/ S.Record(
|
|
2050
|
+
S.String,
|
|
2051
|
+
ListHostingPrivateDatabaseRequestIamTagsValueList,
|
|
2052
|
+
) as any as S.Schema<ListHostingPrivateDatabaseRequestIamTagsMap>;
|
|
2053
|
+
|
|
2054
|
+
export interface ListHostingPrivateDatabaseRequest {
|
|
2055
|
+
/** Filter resources on IAM tags */
|
|
2056
|
+
iamTags?: ListHostingPrivateDatabaseRequestIamTagsMap;
|
|
2057
|
+
}
|
|
2058
|
+
export const ListHostingPrivateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2059
|
+
S.Struct({
|
|
2060
|
+
iamTags: S.optional(
|
|
2061
|
+
ListHostingPrivateDatabaseRequestIamTagsMap.pipe(T.Query()),
|
|
2062
|
+
),
|
|
2063
|
+
}).pipe(
|
|
2064
|
+
T.Http({ method: "GET", uri: "/hosting/privateDatabase", code: 200 }),
|
|
2065
|
+
),
|
|
2066
|
+
).annotate({
|
|
2067
|
+
identifier: "ListHostingPrivateDatabaseRequest",
|
|
2068
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseRequest>;
|
|
2069
|
+
|
|
2070
|
+
export type ListHostingPrivateDatabaseResponseBodyList = Array<string>;
|
|
2071
|
+
export const ListHostingPrivateDatabaseResponseBodyList = /*@__PURE__*/ S.Array(
|
|
2072
|
+
S.String,
|
|
2073
|
+
) as any as S.Schema<ListHostingPrivateDatabaseResponseBodyList>;
|
|
2074
|
+
|
|
2075
|
+
export type ListHostingPrivateDatabaseResponse =
|
|
2076
|
+
ListHostingPrivateDatabaseResponseBodyList;
|
|
2077
|
+
export const ListHostingPrivateDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2078
|
+
ListHostingPrivateDatabaseResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2079
|
+
).annotate({
|
|
2080
|
+
identifier: "ListHostingPrivateDatabaseResponse",
|
|
2081
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseResponse>;
|
|
2082
|
+
|
|
2083
|
+
export interface ListHostingPrivateDatabaseAvailableOrderCapacitiesRequest {
|
|
2084
|
+
offer: HostingPrivateDatabaseOfferEnum | (string & {});
|
|
2085
|
+
}
|
|
2086
|
+
export const ListHostingPrivateDatabaseAvailableOrderCapacitiesRequest =
|
|
2087
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2088
|
+
S.Struct({
|
|
2089
|
+
offer: HostingPrivateDatabaseOfferEnum.pipe(T.Query()),
|
|
2090
|
+
}).pipe(
|
|
2091
|
+
T.Http({
|
|
2092
|
+
method: "GET",
|
|
2093
|
+
uri: "/hosting/privateDatabase/availableOrderCapacities",
|
|
2094
|
+
code: 200,
|
|
2095
|
+
}),
|
|
2096
|
+
),
|
|
2097
|
+
).annotate({
|
|
2098
|
+
identifier: "ListHostingPrivateDatabaseAvailableOrderCapacitiesRequest",
|
|
2099
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseAvailableOrderCapacitiesRequest>;
|
|
2100
|
+
|
|
2101
|
+
/** A list of datacenter available for this offer */
|
|
2102
|
+
export type HostingPrivateDatabaseAvailableOrderCapacitiesDatacenterList =
|
|
2103
|
+
Array<HostingPrivateDatabaseDatacenterEnum>;
|
|
2104
|
+
export const HostingPrivateDatabaseAvailableOrderCapacitiesDatacenterList =
|
|
2105
|
+
/*@__PURE__*/ S.Array(
|
|
2106
|
+
HostingPrivateDatabaseDatacenterEnum,
|
|
2107
|
+
) as any as S.Schema<HostingPrivateDatabaseAvailableOrderCapacitiesDatacenterList>;
|
|
2108
|
+
|
|
2109
|
+
/** Private database available ram sizes */
|
|
2110
|
+
export type HostingPrivateDatabaseAvailableRamSizeEnum =
|
|
2111
|
+
| "1024"
|
|
2112
|
+
| "2048"
|
|
2113
|
+
| "4096"
|
|
2114
|
+
| "512";
|
|
2115
|
+
export const HostingPrivateDatabaseAvailableRamSizeEnum =
|
|
2116
|
+
/*@__PURE__*/ S.String;
|
|
2117
|
+
|
|
2118
|
+
/** A list of ram size available for this offer */
|
|
2119
|
+
export type HostingPrivateDatabaseAvailableOrderCapacitiesRamList =
|
|
2120
|
+
Array<HostingPrivateDatabaseAvailableRamSizeEnum>;
|
|
2121
|
+
export const HostingPrivateDatabaseAvailableOrderCapacitiesRamList =
|
|
2122
|
+
/*@__PURE__*/ S.Array(
|
|
2123
|
+
HostingPrivateDatabaseAvailableRamSizeEnum,
|
|
2124
|
+
) as any as S.Schema<HostingPrivateDatabaseAvailableOrderCapacitiesRamList>;
|
|
2125
|
+
|
|
2126
|
+
/** A list of version available for this offer */
|
|
2127
|
+
export type HostingPrivateDatabaseAvailableOrderCapacitiesVersionList =
|
|
2128
|
+
Array<HostingPrivateDatabaseAvailableVersionEnum>;
|
|
2129
|
+
export const HostingPrivateDatabaseAvailableOrderCapacitiesVersionList =
|
|
2130
|
+
/*@__PURE__*/ S.Array(
|
|
2131
|
+
HostingPrivateDatabaseAvailableVersionEnum,
|
|
2132
|
+
) as any as S.Schema<HostingPrivateDatabaseAvailableOrderCapacitiesVersionList>;
|
|
2133
|
+
|
|
2134
|
+
/** Description for available order capacities following an offer */
|
|
2135
|
+
export interface HostingPrivateDatabaseAvailableOrderCapacities {
|
|
2136
|
+
/** A list of datacenter available for this offer */
|
|
2137
|
+
datacenter?: HostingPrivateDatabaseAvailableOrderCapacitiesDatacenterList;
|
|
2138
|
+
/** Offer */
|
|
2139
|
+
offer?: HostingPrivateDatabaseOfferEnum;
|
|
2140
|
+
/** A list of ram size available for this offer */
|
|
2141
|
+
ram?: HostingPrivateDatabaseAvailableOrderCapacitiesRamList;
|
|
2142
|
+
/** A list of version available for this offer */
|
|
2143
|
+
version?: HostingPrivateDatabaseAvailableOrderCapacitiesVersionList;
|
|
2144
|
+
}
|
|
2145
|
+
export const HostingPrivateDatabaseAvailableOrderCapacities =
|
|
2146
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2147
|
+
S.Struct({
|
|
2148
|
+
datacenter: S.optional(
|
|
2149
|
+
HostingPrivateDatabaseAvailableOrderCapacitiesDatacenterList,
|
|
2150
|
+
),
|
|
2151
|
+
offer: S.optional(HostingPrivateDatabaseOfferEnum),
|
|
2152
|
+
ram: S.optional(HostingPrivateDatabaseAvailableOrderCapacitiesRamList),
|
|
2153
|
+
version: S.optional(
|
|
2154
|
+
HostingPrivateDatabaseAvailableOrderCapacitiesVersionList,
|
|
2155
|
+
),
|
|
2156
|
+
}),
|
|
2157
|
+
).annotate({
|
|
2158
|
+
identifier: "HostingPrivateDatabaseAvailableOrderCapacities",
|
|
2159
|
+
}) as any as S.Schema<HostingPrivateDatabaseAvailableOrderCapacities>;
|
|
2160
|
+
|
|
2161
|
+
export interface ListHostingPrivateDatabaseAvailableVersionsRequest {
|
|
2162
|
+
/** Service name */
|
|
2163
|
+
serviceName: string;
|
|
2164
|
+
}
|
|
2165
|
+
export const ListHostingPrivateDatabaseAvailableVersionsRequest =
|
|
2166
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2167
|
+
S.Struct({
|
|
2168
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2169
|
+
}).pipe(
|
|
2170
|
+
T.Http({
|
|
2171
|
+
method: "GET",
|
|
2172
|
+
uri: "/hosting/privateDatabase/{serviceName}/availableVersions",
|
|
2173
|
+
code: 200,
|
|
2174
|
+
}),
|
|
2175
|
+
),
|
|
2176
|
+
).annotate({
|
|
2177
|
+
identifier: "ListHostingPrivateDatabaseAvailableVersionsRequest",
|
|
2178
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseAvailableVersionsRequest>;
|
|
2179
|
+
|
|
2180
|
+
export type ListHostingPrivateDatabaseAvailableVersionsResponseBodyList =
|
|
2181
|
+
Array<HostingPrivateDatabaseAvailableVersionEnum>;
|
|
2182
|
+
export const ListHostingPrivateDatabaseAvailableVersionsResponseBodyList =
|
|
2183
|
+
/*@__PURE__*/ S.Array(
|
|
2184
|
+
HostingPrivateDatabaseAvailableVersionEnum,
|
|
2185
|
+
) as any as S.Schema<ListHostingPrivateDatabaseAvailableVersionsResponseBodyList>;
|
|
2186
|
+
|
|
2187
|
+
export type ListHostingPrivateDatabaseAvailableVersionsResponse =
|
|
2188
|
+
ListHostingPrivateDatabaseAvailableVersionsResponseBodyList;
|
|
2189
|
+
export const ListHostingPrivateDatabaseAvailableVersionsResponse =
|
|
2190
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2191
|
+
ListHostingPrivateDatabaseAvailableVersionsResponseBodyList.pipe(
|
|
2192
|
+
T.RawResponseRoot(),
|
|
2193
|
+
),
|
|
2194
|
+
).annotate({
|
|
2195
|
+
identifier: "ListHostingPrivateDatabaseAvailableVersionsResponse",
|
|
2196
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseAvailableVersionsResponse>;
|
|
2197
|
+
|
|
2198
|
+
export interface ListHostingPrivateDatabaseConfigRequest {
|
|
2199
|
+
/** Service name */
|
|
2200
|
+
serviceName: string;
|
|
2201
|
+
}
|
|
2202
|
+
export const ListHostingPrivateDatabaseConfigRequest = /*@__PURE__*/ S.suspend(
|
|
2203
|
+
() =>
|
|
2204
|
+
S.Struct({
|
|
2205
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2206
|
+
}).pipe(
|
|
2207
|
+
T.Http({
|
|
2208
|
+
method: "GET",
|
|
2209
|
+
uri: "/hosting/privateDatabase/{serviceName}/config",
|
|
2210
|
+
code: 200,
|
|
2211
|
+
}),
|
|
2212
|
+
),
|
|
2213
|
+
).annotate({
|
|
2214
|
+
identifier: "ListHostingPrivateDatabaseConfigRequest",
|
|
2215
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseConfigRequest>;
|
|
2216
|
+
|
|
2217
|
+
/** Configuration available values */
|
|
2218
|
+
export type HostingPrivateDatabaseConfigDetailAvailableValuesList =
|
|
2219
|
+
Array<string>;
|
|
2220
|
+
export const HostingPrivateDatabaseConfigDetailAvailableValuesList =
|
|
2221
|
+
/*@__PURE__*/ S.Array(
|
|
2222
|
+
S.String,
|
|
2223
|
+
) as any as S.Schema<HostingPrivateDatabaseConfigDetailAvailableValuesList>;
|
|
2224
|
+
|
|
2225
|
+
/** Web Cloud Database config type */
|
|
2226
|
+
export type HostingPrivateDatabaseConfigTypeEnum =
|
|
2227
|
+
| "boolean"
|
|
2228
|
+
| "number"
|
|
2229
|
+
| "string";
|
|
2230
|
+
export const HostingPrivateDatabaseConfigTypeEnum = /*@__PURE__*/ S.String;
|
|
2231
|
+
|
|
2232
|
+
/** Config detail */
|
|
2233
|
+
export interface HostingPrivateDatabaseConfigDetail {
|
|
2234
|
+
/** Configuration available values */
|
|
2235
|
+
availableValues?: HostingPrivateDatabaseConfigDetailAvailableValuesList;
|
|
2236
|
+
/** Configuration default value */
|
|
2237
|
+
defaultValue?: string;
|
|
2238
|
+
/** Configuration description */
|
|
2239
|
+
description?: string;
|
|
2240
|
+
/** Configuration key name */
|
|
2241
|
+
key?: string;
|
|
2242
|
+
/** Configuration last update */
|
|
2243
|
+
lastUpdate?: string;
|
|
2244
|
+
/** Configuration value type */
|
|
2245
|
+
type?: HostingPrivateDatabaseConfigTypeEnum;
|
|
2246
|
+
/** Configuration unit type */
|
|
2247
|
+
unit?: string | null;
|
|
2248
|
+
/** Configuration current value */
|
|
2249
|
+
value?: string;
|
|
2250
|
+
}
|
|
2251
|
+
export const HostingPrivateDatabaseConfigDetail = /*@__PURE__*/ S.suspend(() =>
|
|
2252
|
+
S.Struct({
|
|
2253
|
+
availableValues: S.optional(
|
|
2254
|
+
HostingPrivateDatabaseConfigDetailAvailableValuesList,
|
|
2255
|
+
),
|
|
2256
|
+
defaultValue: S.optional(S.String),
|
|
2257
|
+
description: S.optional(S.String),
|
|
2258
|
+
key: S.optional(S.String),
|
|
2259
|
+
lastUpdate: S.optional(S.String),
|
|
2260
|
+
type: S.optional(HostingPrivateDatabaseConfigTypeEnum),
|
|
2261
|
+
unit: S.optional(S.NullOr(S.String)),
|
|
2262
|
+
value: S.optional(S.String),
|
|
2263
|
+
}),
|
|
2264
|
+
).annotate({
|
|
2265
|
+
identifier: "HostingPrivateDatabaseConfigDetail",
|
|
2266
|
+
}) as any as S.Schema<HostingPrivateDatabaseConfigDetail>;
|
|
2267
|
+
|
|
2268
|
+
/** Configuration details */
|
|
2269
|
+
export type HostingPrivateDatabaseConfigsDetailsList =
|
|
2270
|
+
Array<HostingPrivateDatabaseConfigDetail>;
|
|
2271
|
+
export const HostingPrivateDatabaseConfigsDetailsList = /*@__PURE__*/ S.Array(
|
|
2272
|
+
HostingPrivateDatabaseConfigDetail,
|
|
2273
|
+
) as any as S.Schema<HostingPrivateDatabaseConfigsDetailsList>;
|
|
2274
|
+
|
|
2275
|
+
/** Web Cloud Database config status */
|
|
2276
|
+
export type HostingPrivateDatabaseConfigStatusEnum = "applied" | "updating";
|
|
2277
|
+
export const HostingPrivateDatabaseConfigStatusEnum = /*@__PURE__*/ S.String;
|
|
2278
|
+
|
|
2279
|
+
/** Configs */
|
|
2280
|
+
export interface HostingPrivateDatabaseConfigs {
|
|
2281
|
+
/** Configuration details */
|
|
2282
|
+
details?: HostingPrivateDatabaseConfigsDetailsList;
|
|
2283
|
+
/** Configuration last update */
|
|
2284
|
+
lastUpdate?: string;
|
|
2285
|
+
/** Configuration status */
|
|
2286
|
+
status?: HostingPrivateDatabaseConfigStatusEnum;
|
|
2287
|
+
/** Configuration linked task id */
|
|
2288
|
+
taskId?: number | null;
|
|
2289
|
+
}
|
|
2290
|
+
export const HostingPrivateDatabaseConfigs = /*@__PURE__*/ S.suspend(() =>
|
|
2291
|
+
S.Struct({
|
|
2292
|
+
details: S.optional(HostingPrivateDatabaseConfigsDetailsList),
|
|
2293
|
+
lastUpdate: S.optional(S.String),
|
|
2294
|
+
status: S.optional(HostingPrivateDatabaseConfigStatusEnum),
|
|
2295
|
+
taskId: S.optional(S.NullOr(S.Number)),
|
|
2296
|
+
}),
|
|
2297
|
+
).annotate({
|
|
2298
|
+
identifier: "HostingPrivateDatabaseConfigs",
|
|
2299
|
+
}) as any as S.Schema<HostingPrivateDatabaseConfigs>;
|
|
2300
|
+
|
|
2301
|
+
export interface ListHostingPrivateDatabaseCpuThrottleRequest {
|
|
2302
|
+
/** Service name */
|
|
2303
|
+
serviceName: string;
|
|
2304
|
+
}
|
|
2305
|
+
export const ListHostingPrivateDatabaseCpuThrottleRequest =
|
|
2306
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2307
|
+
S.Struct({
|
|
2308
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2309
|
+
}).pipe(
|
|
2310
|
+
T.Http({
|
|
2311
|
+
method: "GET",
|
|
2312
|
+
uri: "/hosting/privateDatabase/{serviceName}/cpuThrottle",
|
|
2313
|
+
code: 200,
|
|
2314
|
+
}),
|
|
2315
|
+
),
|
|
2316
|
+
).annotate({
|
|
2317
|
+
identifier: "ListHostingPrivateDatabaseCpuThrottleRequest",
|
|
2318
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseCpuThrottleRequest>;
|
|
2319
|
+
|
|
2320
|
+
/** CPU throttle informations */
|
|
2321
|
+
export interface HostingPrivateDatabaseCpuThrottle {
|
|
2322
|
+
/** End date of the CPU throttle */
|
|
2323
|
+
endDate?: string | null;
|
|
2324
|
+
/** Start date of the CPU throttle */
|
|
2325
|
+
startDate?: string;
|
|
2326
|
+
}
|
|
2327
|
+
export const HostingPrivateDatabaseCpuThrottle = /*@__PURE__*/ S.suspend(() =>
|
|
2328
|
+
S.Struct({
|
|
2329
|
+
endDate: S.optional(S.NullOr(S.String)),
|
|
2330
|
+
startDate: S.optional(S.String),
|
|
2331
|
+
}),
|
|
2332
|
+
).annotate({
|
|
2333
|
+
identifier: "HostingPrivateDatabaseCpuThrottle",
|
|
2334
|
+
}) as any as S.Schema<HostingPrivateDatabaseCpuThrottle>;
|
|
2335
|
+
|
|
2336
|
+
export type ListHostingPrivateDatabaseCpuThrottleResponseBodyList =
|
|
2337
|
+
Array<HostingPrivateDatabaseCpuThrottle>;
|
|
2338
|
+
export const ListHostingPrivateDatabaseCpuThrottleResponseBodyList =
|
|
2339
|
+
/*@__PURE__*/ S.Array(
|
|
2340
|
+
HostingPrivateDatabaseCpuThrottle,
|
|
2341
|
+
) as any as S.Schema<ListHostingPrivateDatabaseCpuThrottleResponseBodyList>;
|
|
2342
|
+
|
|
2343
|
+
export type ListHostingPrivateDatabaseCpuThrottleResponse =
|
|
2344
|
+
ListHostingPrivateDatabaseCpuThrottleResponseBodyList;
|
|
2345
|
+
export const ListHostingPrivateDatabaseCpuThrottleResponse =
|
|
2346
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2347
|
+
ListHostingPrivateDatabaseCpuThrottleResponseBodyList.pipe(
|
|
2348
|
+
T.RawResponseRoot(),
|
|
2349
|
+
),
|
|
2350
|
+
).annotate({
|
|
2351
|
+
identifier: "ListHostingPrivateDatabaseCpuThrottleResponse",
|
|
2352
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseCpuThrottleResponse>;
|
|
2353
|
+
|
|
2354
|
+
export interface ListHostingPrivateDatabaseDatabaseRequest {
|
|
2355
|
+
/** Service name */
|
|
2356
|
+
serviceName: string;
|
|
2357
|
+
}
|
|
2358
|
+
export const ListHostingPrivateDatabaseDatabaseRequest =
|
|
2359
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2360
|
+
S.Struct({
|
|
2361
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2362
|
+
}).pipe(
|
|
2363
|
+
T.Http({
|
|
2364
|
+
method: "GET",
|
|
2365
|
+
uri: "/hosting/privateDatabase/{serviceName}/database",
|
|
2366
|
+
code: 200,
|
|
2367
|
+
}),
|
|
2368
|
+
),
|
|
2369
|
+
).annotate({
|
|
2370
|
+
identifier: "ListHostingPrivateDatabaseDatabaseRequest",
|
|
2371
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseRequest>;
|
|
2372
|
+
|
|
2373
|
+
export type ListHostingPrivateDatabaseDatabaseResponseBodyList = Array<string>;
|
|
2374
|
+
export const ListHostingPrivateDatabaseDatabaseResponseBodyList =
|
|
2375
|
+
/*@__PURE__*/ S.Array(
|
|
2376
|
+
S.String,
|
|
2377
|
+
) as any as S.Schema<ListHostingPrivateDatabaseDatabaseResponseBodyList>;
|
|
2378
|
+
|
|
2379
|
+
export type ListHostingPrivateDatabaseDatabaseResponse =
|
|
2380
|
+
ListHostingPrivateDatabaseDatabaseResponseBodyList;
|
|
2381
|
+
export const ListHostingPrivateDatabaseDatabaseResponse =
|
|
2382
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2383
|
+
ListHostingPrivateDatabaseDatabaseResponseBodyList.pipe(
|
|
2384
|
+
T.RawResponseRoot(),
|
|
2385
|
+
),
|
|
2386
|
+
).annotate({
|
|
2387
|
+
identifier: "ListHostingPrivateDatabaseDatabaseResponse",
|
|
2388
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseResponse>;
|
|
2389
|
+
|
|
2390
|
+
export interface ListHostingPrivateDatabaseDatabaseCopyRequest {
|
|
2391
|
+
/** Service name */
|
|
2392
|
+
serviceName: string;
|
|
2393
|
+
/** Database name */
|
|
2394
|
+
databaseName: string;
|
|
2395
|
+
}
|
|
2396
|
+
export const ListHostingPrivateDatabaseDatabaseCopyRequest =
|
|
2397
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2398
|
+
S.Struct({
|
|
2399
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2400
|
+
databaseName: S.String.pipe(T.Label()),
|
|
2401
|
+
}).pipe(
|
|
2402
|
+
T.Http({
|
|
2403
|
+
method: "GET",
|
|
2404
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/copy",
|
|
2405
|
+
code: 200,
|
|
2406
|
+
}),
|
|
2407
|
+
),
|
|
2408
|
+
).annotate({
|
|
2409
|
+
identifier: "ListHostingPrivateDatabaseDatabaseCopyRequest",
|
|
2410
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseCopyRequest>;
|
|
2411
|
+
|
|
2412
|
+
export type ListHostingPrivateDatabaseDatabaseCopyResponseBodyList =
|
|
2413
|
+
Array<string>;
|
|
2414
|
+
export const ListHostingPrivateDatabaseDatabaseCopyResponseBodyList =
|
|
2415
|
+
/*@__PURE__*/ S.Array(
|
|
2416
|
+
S.String,
|
|
2417
|
+
) as any as S.Schema<ListHostingPrivateDatabaseDatabaseCopyResponseBodyList>;
|
|
2418
|
+
|
|
2419
|
+
export type ListHostingPrivateDatabaseDatabaseCopyResponse =
|
|
2420
|
+
ListHostingPrivateDatabaseDatabaseCopyResponseBodyList;
|
|
2421
|
+
export const ListHostingPrivateDatabaseDatabaseCopyResponse =
|
|
2422
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2423
|
+
ListHostingPrivateDatabaseDatabaseCopyResponseBodyList.pipe(
|
|
2424
|
+
T.RawResponseRoot(),
|
|
2425
|
+
),
|
|
2426
|
+
).annotate({
|
|
2427
|
+
identifier: "ListHostingPrivateDatabaseDatabaseCopyResponse",
|
|
2428
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseCopyResponse>;
|
|
2429
|
+
|
|
2430
|
+
export interface ListHostingPrivateDatabaseDatabaseDumpRequest {
|
|
2431
|
+
/** Service name */
|
|
2432
|
+
serviceName: string;
|
|
2433
|
+
/** Database name */
|
|
2434
|
+
databaseName: string;
|
|
2435
|
+
}
|
|
2436
|
+
export const ListHostingPrivateDatabaseDatabaseDumpRequest =
|
|
2437
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2438
|
+
S.Struct({
|
|
2439
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2440
|
+
databaseName: S.String.pipe(T.Label()),
|
|
2441
|
+
}).pipe(
|
|
2442
|
+
T.Http({
|
|
2443
|
+
method: "GET",
|
|
2444
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/dump",
|
|
2445
|
+
code: 200,
|
|
2446
|
+
}),
|
|
2447
|
+
),
|
|
2448
|
+
).annotate({
|
|
2449
|
+
identifier: "ListHostingPrivateDatabaseDatabaseDumpRequest",
|
|
2450
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseDumpRequest>;
|
|
2451
|
+
|
|
2452
|
+
export type ListHostingPrivateDatabaseDatabaseDumpResponseBodyList =
|
|
2453
|
+
Array<number>;
|
|
2454
|
+
export const ListHostingPrivateDatabaseDatabaseDumpResponseBodyList =
|
|
2455
|
+
/*@__PURE__*/ S.Array(
|
|
2456
|
+
S.Number,
|
|
2457
|
+
) as any as S.Schema<ListHostingPrivateDatabaseDatabaseDumpResponseBodyList>;
|
|
2458
|
+
|
|
2459
|
+
export type ListHostingPrivateDatabaseDatabaseDumpResponse =
|
|
2460
|
+
ListHostingPrivateDatabaseDatabaseDumpResponseBodyList;
|
|
2461
|
+
export const ListHostingPrivateDatabaseDatabaseDumpResponse =
|
|
2462
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2463
|
+
ListHostingPrivateDatabaseDatabaseDumpResponseBodyList.pipe(
|
|
2464
|
+
T.RawResponseRoot(),
|
|
2465
|
+
),
|
|
2466
|
+
).annotate({
|
|
2467
|
+
identifier: "ListHostingPrivateDatabaseDatabaseDumpResponse",
|
|
2468
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseDumpResponse>;
|
|
2469
|
+
|
|
2470
|
+
export interface ListHostingPrivateDatabaseDatabaseExtensionRequest {
|
|
2471
|
+
/** Service name */
|
|
2472
|
+
serviceName: string;
|
|
2473
|
+
/** Database name */
|
|
2474
|
+
databaseName: string;
|
|
2475
|
+
/** Filter results on extension name (like) */
|
|
2476
|
+
extensionName?: string;
|
|
2477
|
+
/** Filter results on status (=) */
|
|
2478
|
+
status?: HostingPrivateDatabaseExtensionStatusEnum | (string & {});
|
|
2479
|
+
}
|
|
2480
|
+
export const ListHostingPrivateDatabaseDatabaseExtensionRequest =
|
|
2481
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2482
|
+
S.Struct({
|
|
2483
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2484
|
+
databaseName: S.String.pipe(T.Label()),
|
|
2485
|
+
extensionName: S.optional(S.String.pipe(T.Query())),
|
|
2486
|
+
status: S.optional(
|
|
2487
|
+
HostingPrivateDatabaseExtensionStatusEnum.pipe(T.Query()),
|
|
2488
|
+
),
|
|
2489
|
+
}).pipe(
|
|
2490
|
+
T.Http({
|
|
2491
|
+
method: "GET",
|
|
2492
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/extension",
|
|
2493
|
+
code: 200,
|
|
2494
|
+
}),
|
|
2495
|
+
),
|
|
2496
|
+
).annotate({
|
|
2497
|
+
identifier: "ListHostingPrivateDatabaseDatabaseExtensionRequest",
|
|
2498
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseExtensionRequest>;
|
|
2499
|
+
|
|
2500
|
+
export type ListHostingPrivateDatabaseDatabaseExtensionResponseBodyList =
|
|
2501
|
+
Array<string>;
|
|
2502
|
+
export const ListHostingPrivateDatabaseDatabaseExtensionResponseBodyList =
|
|
2503
|
+
/*@__PURE__*/ S.Array(
|
|
2504
|
+
S.String,
|
|
2505
|
+
) as any as S.Schema<ListHostingPrivateDatabaseDatabaseExtensionResponseBodyList>;
|
|
2506
|
+
|
|
2507
|
+
export type ListHostingPrivateDatabaseDatabaseExtensionResponse =
|
|
2508
|
+
ListHostingPrivateDatabaseDatabaseExtensionResponseBodyList;
|
|
2509
|
+
export const ListHostingPrivateDatabaseDatabaseExtensionResponse =
|
|
2510
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2511
|
+
ListHostingPrivateDatabaseDatabaseExtensionResponseBodyList.pipe(
|
|
2512
|
+
T.RawResponseRoot(),
|
|
2513
|
+
),
|
|
2514
|
+
).annotate({
|
|
2515
|
+
identifier: "ListHostingPrivateDatabaseDatabaseExtensionResponse",
|
|
2516
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDatabaseExtensionResponse>;
|
|
2517
|
+
|
|
2518
|
+
export interface ListHostingPrivateDatabaseDumpRequest {
|
|
2519
|
+
/** Service name */
|
|
2520
|
+
serviceName: string;
|
|
2521
|
+
/** Filter the value of databaseName property (like) */
|
|
2522
|
+
databaseName?: string;
|
|
2523
|
+
/** Filter the value of orphan property (=) */
|
|
2524
|
+
orphan?: boolean;
|
|
2525
|
+
}
|
|
2526
|
+
export const ListHostingPrivateDatabaseDumpRequest = /*@__PURE__*/ S.suspend(
|
|
2527
|
+
() =>
|
|
2528
|
+
S.Struct({
|
|
2529
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2530
|
+
databaseName: S.optional(S.String.pipe(T.Query())),
|
|
2531
|
+
orphan: S.optional(S.Boolean.pipe(T.Query())),
|
|
2532
|
+
}).pipe(
|
|
2533
|
+
T.Http({
|
|
2534
|
+
method: "GET",
|
|
2535
|
+
uri: "/hosting/privateDatabase/{serviceName}/dump",
|
|
2536
|
+
code: 200,
|
|
2537
|
+
}),
|
|
2538
|
+
),
|
|
2539
|
+
).annotate({
|
|
2540
|
+
identifier: "ListHostingPrivateDatabaseDumpRequest",
|
|
2541
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDumpRequest>;
|
|
2542
|
+
|
|
2543
|
+
export type ListHostingPrivateDatabaseDumpResponseBodyList = Array<number>;
|
|
2544
|
+
export const ListHostingPrivateDatabaseDumpResponseBodyList =
|
|
2545
|
+
/*@__PURE__*/ S.Array(
|
|
2546
|
+
S.Number,
|
|
2547
|
+
) as any as S.Schema<ListHostingPrivateDatabaseDumpResponseBodyList>;
|
|
2548
|
+
|
|
2549
|
+
export type ListHostingPrivateDatabaseDumpResponse =
|
|
2550
|
+
ListHostingPrivateDatabaseDumpResponseBodyList;
|
|
2551
|
+
export const ListHostingPrivateDatabaseDumpResponse = /*@__PURE__*/ S.suspend(
|
|
2552
|
+
() =>
|
|
2553
|
+
ListHostingPrivateDatabaseDumpResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2554
|
+
).annotate({
|
|
2555
|
+
identifier: "ListHostingPrivateDatabaseDumpResponse",
|
|
2556
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseDumpResponse>;
|
|
2557
|
+
|
|
2558
|
+
export interface ListHostingPrivateDatabaseLogKindRequest {
|
|
2559
|
+
/** Service name */
|
|
2560
|
+
serviceName: string;
|
|
2561
|
+
}
|
|
2562
|
+
export const ListHostingPrivateDatabaseLogKindRequest = /*@__PURE__*/ S.suspend(
|
|
2563
|
+
() =>
|
|
2564
|
+
S.Struct({
|
|
2565
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2566
|
+
}).pipe(
|
|
2567
|
+
T.Http({
|
|
2568
|
+
method: "GET",
|
|
2569
|
+
uri: "/hosting/privateDatabase/{serviceName}/log/kind",
|
|
2570
|
+
code: 200,
|
|
2571
|
+
}),
|
|
2572
|
+
),
|
|
2573
|
+
).annotate({
|
|
2574
|
+
identifier: "ListHostingPrivateDatabaseLogKindRequest",
|
|
2575
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseLogKindRequest>;
|
|
2576
|
+
|
|
2577
|
+
export type ListHostingPrivateDatabaseLogKindResponseBodyList = Array<string>;
|
|
2578
|
+
export const ListHostingPrivateDatabaseLogKindResponseBodyList =
|
|
2579
|
+
/*@__PURE__*/ S.Array(
|
|
2580
|
+
S.String,
|
|
2581
|
+
) as any as S.Schema<ListHostingPrivateDatabaseLogKindResponseBodyList>;
|
|
2582
|
+
|
|
2583
|
+
export type ListHostingPrivateDatabaseLogKindResponse =
|
|
2584
|
+
ListHostingPrivateDatabaseLogKindResponseBodyList;
|
|
2585
|
+
export const ListHostingPrivateDatabaseLogKindResponse =
|
|
2586
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2587
|
+
ListHostingPrivateDatabaseLogKindResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2588
|
+
).annotate({
|
|
2589
|
+
identifier: "ListHostingPrivateDatabaseLogKindResponse",
|
|
2590
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseLogKindResponse>;
|
|
2591
|
+
|
|
2592
|
+
export interface ListHostingPrivateDatabaseLogSubscriptionRequest {
|
|
2593
|
+
/** Service name */
|
|
2594
|
+
serviceName: string;
|
|
2595
|
+
/** Filter on a specific kind */
|
|
2596
|
+
kind?: string;
|
|
2597
|
+
}
|
|
2598
|
+
export const ListHostingPrivateDatabaseLogSubscriptionRequest =
|
|
2599
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2600
|
+
S.Struct({
|
|
2601
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2602
|
+
kind: S.optional(S.String.pipe(T.Query())),
|
|
2603
|
+
}).pipe(
|
|
2604
|
+
T.Http({
|
|
2605
|
+
method: "GET",
|
|
2606
|
+
uri: "/hosting/privateDatabase/{serviceName}/log/subscription",
|
|
2607
|
+
code: 200,
|
|
2608
|
+
}),
|
|
2609
|
+
),
|
|
2610
|
+
).annotate({
|
|
2611
|
+
identifier: "ListHostingPrivateDatabaseLogSubscriptionRequest",
|
|
2612
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseLogSubscriptionRequest>;
|
|
2613
|
+
|
|
2614
|
+
export type ListHostingPrivateDatabaseLogSubscriptionResponseBodyList =
|
|
2615
|
+
Array<string>;
|
|
2616
|
+
export const ListHostingPrivateDatabaseLogSubscriptionResponseBodyList =
|
|
2617
|
+
/*@__PURE__*/ S.Array(
|
|
2618
|
+
S.String,
|
|
2619
|
+
) as any as S.Schema<ListHostingPrivateDatabaseLogSubscriptionResponseBodyList>;
|
|
2620
|
+
|
|
2621
|
+
export type ListHostingPrivateDatabaseLogSubscriptionResponse =
|
|
2622
|
+
ListHostingPrivateDatabaseLogSubscriptionResponseBodyList;
|
|
2623
|
+
export const ListHostingPrivateDatabaseLogSubscriptionResponse =
|
|
2624
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2625
|
+
ListHostingPrivateDatabaseLogSubscriptionResponseBodyList.pipe(
|
|
2626
|
+
T.RawResponseRoot(),
|
|
2627
|
+
),
|
|
2628
|
+
).annotate({
|
|
2629
|
+
identifier: "ListHostingPrivateDatabaseLogSubscriptionResponse",
|
|
2630
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseLogSubscriptionResponse>;
|
|
2631
|
+
|
|
2632
|
+
export interface ListHostingPrivateDatabaseOomRequest {
|
|
2633
|
+
/** Service name */
|
|
2634
|
+
serviceName: string;
|
|
2635
|
+
}
|
|
2636
|
+
export const ListHostingPrivateDatabaseOomRequest = /*@__PURE__*/ S.suspend(
|
|
2637
|
+
() =>
|
|
2638
|
+
S.Struct({
|
|
2639
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2640
|
+
}).pipe(
|
|
2641
|
+
T.Http({
|
|
2642
|
+
method: "GET",
|
|
2643
|
+
uri: "/hosting/privateDatabase/{serviceName}/oom",
|
|
2644
|
+
code: 200,
|
|
2645
|
+
}),
|
|
2646
|
+
),
|
|
2647
|
+
).annotate({
|
|
2648
|
+
identifier: "ListHostingPrivateDatabaseOomRequest",
|
|
2649
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseOomRequest>;
|
|
2650
|
+
|
|
2651
|
+
/** List of privatesql OOM kill */
|
|
2652
|
+
export interface HostingPrivateDatabaseOom {
|
|
2653
|
+
/** Date of the OOM kill */
|
|
2654
|
+
date?: string;
|
|
2655
|
+
/** Memory size reached */
|
|
2656
|
+
sizeReached?: number;
|
|
2657
|
+
}
|
|
2658
|
+
export const HostingPrivateDatabaseOom = /*@__PURE__*/ S.suspend(() =>
|
|
2659
|
+
S.Struct({
|
|
2660
|
+
date: S.optional(S.String),
|
|
2661
|
+
sizeReached: S.optional(S.Number),
|
|
2662
|
+
}),
|
|
2663
|
+
).annotate({
|
|
2664
|
+
identifier: "HostingPrivateDatabaseOom",
|
|
2665
|
+
}) as any as S.Schema<HostingPrivateDatabaseOom>;
|
|
2666
|
+
|
|
2667
|
+
export type ListHostingPrivateDatabaseOomResponseBodyList =
|
|
2668
|
+
Array<HostingPrivateDatabaseOom>;
|
|
2669
|
+
export const ListHostingPrivateDatabaseOomResponseBodyList =
|
|
2670
|
+
/*@__PURE__*/ S.Array(
|
|
2671
|
+
HostingPrivateDatabaseOom,
|
|
2672
|
+
) as any as S.Schema<ListHostingPrivateDatabaseOomResponseBodyList>;
|
|
2673
|
+
|
|
2674
|
+
export type ListHostingPrivateDatabaseOomResponse =
|
|
2675
|
+
ListHostingPrivateDatabaseOomResponseBodyList;
|
|
2676
|
+
export const ListHostingPrivateDatabaseOomResponse = /*@__PURE__*/ S.suspend(
|
|
2677
|
+
() => ListHostingPrivateDatabaseOomResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2678
|
+
).annotate({
|
|
2679
|
+
identifier: "ListHostingPrivateDatabaseOomResponse",
|
|
2680
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseOomResponse>;
|
|
2681
|
+
|
|
2682
|
+
export interface ListHostingPrivateDatabaseTasksRequest {
|
|
2683
|
+
/** Service name */
|
|
2684
|
+
serviceName: string;
|
|
2685
|
+
/** Filter the value of function property */
|
|
2686
|
+
function?: HostingPrivateDatabaseTaskFunctionEnum | (string & {});
|
|
2687
|
+
/** Filter the value of status property */
|
|
2688
|
+
status?: HostingPrivateDatabaseTaskStatusEnum | (string & {});
|
|
2689
|
+
}
|
|
2690
|
+
export const ListHostingPrivateDatabaseTasksRequest = /*@__PURE__*/ S.suspend(
|
|
2691
|
+
() =>
|
|
2692
|
+
S.Struct({
|
|
2693
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2694
|
+
function: S.optional(
|
|
2695
|
+
HostingPrivateDatabaseTaskFunctionEnum.pipe(T.Query()),
|
|
2696
|
+
),
|
|
2697
|
+
status: S.optional(HostingPrivateDatabaseTaskStatusEnum.pipe(T.Query())),
|
|
2698
|
+
}).pipe(
|
|
2699
|
+
T.Http({
|
|
2700
|
+
method: "GET",
|
|
2701
|
+
uri: "/hosting/privateDatabase/{serviceName}/tasks",
|
|
2702
|
+
code: 200,
|
|
2703
|
+
}),
|
|
2704
|
+
),
|
|
2705
|
+
).annotate({
|
|
2706
|
+
identifier: "ListHostingPrivateDatabaseTasksRequest",
|
|
2707
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseTasksRequest>;
|
|
2708
|
+
|
|
2709
|
+
export type ListHostingPrivateDatabaseTasksResponseBodyList = Array<number>;
|
|
2710
|
+
export const ListHostingPrivateDatabaseTasksResponseBodyList =
|
|
2711
|
+
/*@__PURE__*/ S.Array(
|
|
2712
|
+
S.Number,
|
|
2713
|
+
) as any as S.Schema<ListHostingPrivateDatabaseTasksResponseBodyList>;
|
|
2714
|
+
|
|
2715
|
+
export type ListHostingPrivateDatabaseTasksResponse =
|
|
2716
|
+
ListHostingPrivateDatabaseTasksResponseBodyList;
|
|
2717
|
+
export const ListHostingPrivateDatabaseTasksResponse = /*@__PURE__*/ S.suspend(
|
|
2718
|
+
() =>
|
|
2719
|
+
ListHostingPrivateDatabaseTasksResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2720
|
+
).annotate({
|
|
2721
|
+
identifier: "ListHostingPrivateDatabaseTasksResponse",
|
|
2722
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseTasksResponse>;
|
|
2723
|
+
|
|
2724
|
+
export interface ListHostingPrivateDatabaseUserRequest {
|
|
2725
|
+
/** Service name */
|
|
2726
|
+
serviceName: string;
|
|
2727
|
+
}
|
|
2728
|
+
export const ListHostingPrivateDatabaseUserRequest = /*@__PURE__*/ S.suspend(
|
|
2729
|
+
() =>
|
|
2730
|
+
S.Struct({
|
|
2731
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2732
|
+
}).pipe(
|
|
2733
|
+
T.Http({
|
|
2734
|
+
method: "GET",
|
|
2735
|
+
uri: "/hosting/privateDatabase/{serviceName}/user",
|
|
2736
|
+
code: 200,
|
|
2737
|
+
}),
|
|
2738
|
+
),
|
|
2739
|
+
).annotate({
|
|
2740
|
+
identifier: "ListHostingPrivateDatabaseUserRequest",
|
|
2741
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseUserRequest>;
|
|
2742
|
+
|
|
2743
|
+
export type ListHostingPrivateDatabaseUserResponseBodyList = Array<string>;
|
|
2744
|
+
export const ListHostingPrivateDatabaseUserResponseBodyList =
|
|
2745
|
+
/*@__PURE__*/ S.Array(
|
|
2746
|
+
S.String,
|
|
2747
|
+
) as any as S.Schema<ListHostingPrivateDatabaseUserResponseBodyList>;
|
|
2748
|
+
|
|
2749
|
+
export type ListHostingPrivateDatabaseUserResponse =
|
|
2750
|
+
ListHostingPrivateDatabaseUserResponseBodyList;
|
|
2751
|
+
export const ListHostingPrivateDatabaseUserResponse = /*@__PURE__*/ S.suspend(
|
|
2752
|
+
() =>
|
|
2753
|
+
ListHostingPrivateDatabaseUserResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2754
|
+
).annotate({
|
|
2755
|
+
identifier: "ListHostingPrivateDatabaseUserResponse",
|
|
2756
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseUserResponse>;
|
|
2757
|
+
|
|
2758
|
+
export interface ListHostingPrivateDatabaseUserGrantRequest {
|
|
2759
|
+
/** Service name */
|
|
2760
|
+
serviceName: string;
|
|
2761
|
+
/** User name */
|
|
2762
|
+
userName: string;
|
|
2763
|
+
}
|
|
2764
|
+
export const ListHostingPrivateDatabaseUserGrantRequest =
|
|
2765
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2766
|
+
S.Struct({
|
|
2767
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2768
|
+
userName: S.String.pipe(T.Label()),
|
|
2769
|
+
}).pipe(
|
|
2770
|
+
T.Http({
|
|
2771
|
+
method: "GET",
|
|
2772
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}/grant",
|
|
2773
|
+
code: 200,
|
|
2774
|
+
}),
|
|
2775
|
+
),
|
|
2776
|
+
).annotate({
|
|
2777
|
+
identifier: "ListHostingPrivateDatabaseUserGrantRequest",
|
|
2778
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseUserGrantRequest>;
|
|
2779
|
+
|
|
2780
|
+
export type ListHostingPrivateDatabaseUserGrantResponseBodyList = Array<string>;
|
|
2781
|
+
export const ListHostingPrivateDatabaseUserGrantResponseBodyList =
|
|
2782
|
+
/*@__PURE__*/ S.Array(
|
|
2783
|
+
S.String,
|
|
2784
|
+
) as any as S.Schema<ListHostingPrivateDatabaseUserGrantResponseBodyList>;
|
|
2785
|
+
|
|
2786
|
+
export type ListHostingPrivateDatabaseUserGrantResponse =
|
|
2787
|
+
ListHostingPrivateDatabaseUserGrantResponseBodyList;
|
|
2788
|
+
export const ListHostingPrivateDatabaseUserGrantResponse =
|
|
2789
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2790
|
+
ListHostingPrivateDatabaseUserGrantResponseBodyList.pipe(
|
|
2791
|
+
T.RawResponseRoot(),
|
|
2792
|
+
),
|
|
2793
|
+
).annotate({
|
|
2794
|
+
identifier: "ListHostingPrivateDatabaseUserGrantResponse",
|
|
2795
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseUserGrantResponse>;
|
|
2796
|
+
|
|
2797
|
+
export interface ListHostingPrivateDatabaseWebsRequest {
|
|
2798
|
+
/** Service name */
|
|
2799
|
+
serviceName: string;
|
|
2800
|
+
}
|
|
2801
|
+
export const ListHostingPrivateDatabaseWebsRequest = /*@__PURE__*/ S.suspend(
|
|
2802
|
+
() =>
|
|
2803
|
+
S.Struct({
|
|
2804
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2805
|
+
}).pipe(
|
|
2806
|
+
T.Http({
|
|
2807
|
+
method: "GET",
|
|
2808
|
+
uri: "/hosting/privateDatabase/{serviceName}/webs",
|
|
2809
|
+
code: 200,
|
|
2810
|
+
}),
|
|
2811
|
+
),
|
|
2812
|
+
).annotate({
|
|
2813
|
+
identifier: "ListHostingPrivateDatabaseWebsRequest",
|
|
2814
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseWebsRequest>;
|
|
2815
|
+
|
|
2816
|
+
export type ListHostingPrivateDatabaseWebsResponseBodyList = Array<string>;
|
|
2817
|
+
export const ListHostingPrivateDatabaseWebsResponseBodyList =
|
|
2818
|
+
/*@__PURE__*/ S.Array(
|
|
2819
|
+
S.String,
|
|
2820
|
+
) as any as S.Schema<ListHostingPrivateDatabaseWebsResponseBodyList>;
|
|
2821
|
+
|
|
2822
|
+
export type ListHostingPrivateDatabaseWebsResponse =
|
|
2823
|
+
ListHostingPrivateDatabaseWebsResponseBodyList;
|
|
2824
|
+
export const ListHostingPrivateDatabaseWebsResponse = /*@__PURE__*/ S.suspend(
|
|
2825
|
+
() =>
|
|
2826
|
+
ListHostingPrivateDatabaseWebsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2827
|
+
).annotate({
|
|
2828
|
+
identifier: "ListHostingPrivateDatabaseWebsResponse",
|
|
2829
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseWebsResponse>;
|
|
2830
|
+
|
|
2831
|
+
export interface ListHostingPrivateDatabaseWhitelistRequest {
|
|
2832
|
+
/** Service name */
|
|
2833
|
+
serviceName: string;
|
|
2834
|
+
/** Filter the value of ip property (contains or equals) */
|
|
2835
|
+
ip?: string;
|
|
2836
|
+
/** Filter the value of service property */
|
|
2837
|
+
service?: boolean;
|
|
2838
|
+
/** Filter the value of sftp property */
|
|
2839
|
+
sftp?: boolean;
|
|
2840
|
+
}
|
|
2841
|
+
export const ListHostingPrivateDatabaseWhitelistRequest =
|
|
2842
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2843
|
+
S.Struct({
|
|
2844
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2845
|
+
ip: S.optional(S.String.pipe(T.Query())),
|
|
2846
|
+
service: S.optional(S.Boolean.pipe(T.Query())),
|
|
2847
|
+
sftp: S.optional(S.Boolean.pipe(T.Query())),
|
|
2848
|
+
}).pipe(
|
|
2849
|
+
T.Http({
|
|
2850
|
+
method: "GET",
|
|
2851
|
+
uri: "/hosting/privateDatabase/{serviceName}/whitelist",
|
|
2852
|
+
code: 200,
|
|
2853
|
+
}),
|
|
2854
|
+
),
|
|
2855
|
+
).annotate({
|
|
2856
|
+
identifier: "ListHostingPrivateDatabaseWhitelistRequest",
|
|
2857
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseWhitelistRequest>;
|
|
2858
|
+
|
|
2859
|
+
export type ListHostingPrivateDatabaseWhitelistResponseBodyList = Array<string>;
|
|
2860
|
+
export const ListHostingPrivateDatabaseWhitelistResponseBodyList =
|
|
2861
|
+
/*@__PURE__*/ S.Array(
|
|
2862
|
+
S.String,
|
|
2863
|
+
) as any as S.Schema<ListHostingPrivateDatabaseWhitelistResponseBodyList>;
|
|
2864
|
+
|
|
2865
|
+
export type ListHostingPrivateDatabaseWhitelistResponse =
|
|
2866
|
+
ListHostingPrivateDatabaseWhitelistResponseBodyList;
|
|
2867
|
+
export const ListHostingPrivateDatabaseWhitelistResponse =
|
|
2868
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2869
|
+
ListHostingPrivateDatabaseWhitelistResponseBodyList.pipe(
|
|
2870
|
+
T.RawResponseRoot(),
|
|
2871
|
+
),
|
|
2872
|
+
).annotate({
|
|
2873
|
+
identifier: "ListHostingPrivateDatabaseWhitelistResponse",
|
|
2874
|
+
}) as any as S.Schema<ListHostingPrivateDatabaseWhitelistResponse>;
|
|
2875
|
+
|
|
2876
|
+
export interface PutHostingPrivateDatabaseRequest {
|
|
2877
|
+
/** Service name */
|
|
2878
|
+
serviceName: string;
|
|
2879
|
+
/** Set the name displayed in customer panel for your private database (max 50 chars) */
|
|
2880
|
+
displayName?: string | null;
|
|
2881
|
+
}
|
|
2882
|
+
export const PutHostingPrivateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2883
|
+
S.Struct({
|
|
2884
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2885
|
+
displayName: S.optional(S.NullOr(S.String)),
|
|
2886
|
+
}).pipe(
|
|
2887
|
+
T.Http({
|
|
2888
|
+
method: "PUT",
|
|
2889
|
+
uri: "/hosting/privateDatabase/{serviceName}",
|
|
2890
|
+
code: 200,
|
|
2891
|
+
}),
|
|
2892
|
+
),
|
|
2893
|
+
).annotate({
|
|
2894
|
+
identifier: "PutHostingPrivateDatabaseRequest",
|
|
2895
|
+
}) as any as S.Schema<PutHostingPrivateDatabaseRequest>;
|
|
2896
|
+
|
|
2897
|
+
export interface PutHostingPrivateDatabaseResponse {}
|
|
2898
|
+
export const PutHostingPrivateDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2899
|
+
S.Struct({}),
|
|
2900
|
+
).annotate({
|
|
2901
|
+
identifier: "PutHostingPrivateDatabaseResponse",
|
|
2902
|
+
}) as any as S.Schema<PutHostingPrivateDatabaseResponse>;
|
|
2903
|
+
|
|
2904
|
+
export interface PutHostingPrivateDatabaseServiceInfosRequest {
|
|
2905
|
+
/** Service name */
|
|
2906
|
+
serviceName: string;
|
|
2907
|
+
/** Way of handling the renew */
|
|
2908
|
+
renew?: ServiceRenewType | null;
|
|
2909
|
+
}
|
|
2910
|
+
export const PutHostingPrivateDatabaseServiceInfosRequest =
|
|
2911
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2912
|
+
S.Struct({
|
|
2913
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2914
|
+
renew: S.optional(S.NullOr(ServiceRenewType)),
|
|
2915
|
+
}).pipe(
|
|
2916
|
+
T.Http({
|
|
2917
|
+
method: "PUT",
|
|
2918
|
+
uri: "/hosting/privateDatabase/{serviceName}/serviceInfos",
|
|
2919
|
+
code: 200,
|
|
2920
|
+
}),
|
|
2921
|
+
),
|
|
2922
|
+
).annotate({
|
|
2923
|
+
identifier: "PutHostingPrivateDatabaseServiceInfosRequest",
|
|
2924
|
+
}) as any as S.Schema<PutHostingPrivateDatabaseServiceInfosRequest>;
|
|
2925
|
+
|
|
2926
|
+
export interface PutHostingPrivateDatabaseServiceInfosResponse {}
|
|
2927
|
+
export const PutHostingPrivateDatabaseServiceInfosResponse =
|
|
2928
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2929
|
+
identifier: "PutHostingPrivateDatabaseServiceInfosResponse",
|
|
2930
|
+
}) as any as S.Schema<PutHostingPrivateDatabaseServiceInfosResponse>;
|
|
2931
|
+
|
|
2932
|
+
export interface PutHostingPrivateDatabaseWhitelistRequest {
|
|
2933
|
+
/** Service name */
|
|
2934
|
+
serviceName: string;
|
|
2935
|
+
/** Ip */
|
|
2936
|
+
ip: string;
|
|
2937
|
+
/** Custom name for your Whitelisted IP */
|
|
2938
|
+
name?: string | null;
|
|
2939
|
+
/** Authorize this IP to access service port */
|
|
2940
|
+
service?: boolean;
|
|
2941
|
+
/** Authorize this IP to access sftp port */
|
|
2942
|
+
sftp?: boolean;
|
|
2943
|
+
}
|
|
2944
|
+
export const PutHostingPrivateDatabaseWhitelistRequest =
|
|
2945
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2946
|
+
S.Struct({
|
|
2947
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2948
|
+
ip: S.String.pipe(T.Label()),
|
|
2949
|
+
name: S.optional(S.NullOr(S.String)),
|
|
2950
|
+
service: S.optional(S.Boolean),
|
|
2951
|
+
sftp: S.optional(S.Boolean),
|
|
2952
|
+
}).pipe(
|
|
2953
|
+
T.Http({
|
|
2954
|
+
method: "PUT",
|
|
2955
|
+
uri: "/hosting/privateDatabase/{serviceName}/whitelist/{ip}",
|
|
2956
|
+
code: 200,
|
|
2957
|
+
}),
|
|
2958
|
+
),
|
|
2959
|
+
).annotate({
|
|
2960
|
+
identifier: "PutHostingPrivateDatabaseWhitelistRequest",
|
|
2961
|
+
}) as any as S.Schema<PutHostingPrivateDatabaseWhitelistRequest>;
|
|
2962
|
+
|
|
2963
|
+
export interface PutHostingPrivateDatabaseWhitelistResponse {}
|
|
2964
|
+
export const PutHostingPrivateDatabaseWhitelistResponse =
|
|
2965
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2966
|
+
identifier: "PutHostingPrivateDatabaseWhitelistResponse",
|
|
2967
|
+
}) as any as S.Schema<PutHostingPrivateDatabaseWhitelistResponse>;
|
|
2968
|
+
|
|
2969
|
+
export interface RestartHostingPrivateDatabaseRequest {
|
|
2970
|
+
/** Service name */
|
|
2971
|
+
serviceName: string;
|
|
2972
|
+
}
|
|
2973
|
+
export const RestartHostingPrivateDatabaseRequest = /*@__PURE__*/ S.suspend(
|
|
2974
|
+
() =>
|
|
2975
|
+
S.Struct({
|
|
2976
|
+
serviceName: S.String.pipe(T.Label()),
|
|
2977
|
+
}).pipe(
|
|
2978
|
+
T.Http({
|
|
2979
|
+
method: "POST",
|
|
2980
|
+
uri: "/hosting/privateDatabase/{serviceName}/restart",
|
|
2981
|
+
code: 200,
|
|
2982
|
+
}),
|
|
2983
|
+
),
|
|
2984
|
+
).annotate({
|
|
2985
|
+
identifier: "RestartHostingPrivateDatabaseRequest",
|
|
2986
|
+
}) as any as S.Schema<RestartHostingPrivateDatabaseRequest>;
|
|
2987
|
+
|
|
2988
|
+
export interface RestoreHostingPrivateDatabaseDatabaseDumpRequest {
|
|
2989
|
+
/** Service name */
|
|
2990
|
+
serviceName: string;
|
|
2991
|
+
/** Database name */
|
|
2992
|
+
databaseName: string;
|
|
2993
|
+
/** Id */
|
|
2994
|
+
id: number;
|
|
2995
|
+
}
|
|
2996
|
+
export const RestoreHostingPrivateDatabaseDatabaseDumpRequest =
|
|
2997
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2998
|
+
S.Struct({
|
|
2999
|
+
serviceName: S.String.pipe(T.Label()),
|
|
3000
|
+
databaseName: S.String.pipe(T.Label()),
|
|
3001
|
+
id: S.Number.pipe(T.Label()),
|
|
3002
|
+
}).pipe(
|
|
3003
|
+
T.Http({
|
|
3004
|
+
method: "POST",
|
|
3005
|
+
uri: "/hosting/privateDatabase/{serviceName}/database/{databaseName}/dump/{id}/restore",
|
|
3006
|
+
code: 200,
|
|
3007
|
+
}),
|
|
3008
|
+
),
|
|
3009
|
+
).annotate({
|
|
3010
|
+
identifier: "RestoreHostingPrivateDatabaseDatabaseDumpRequest",
|
|
3011
|
+
}) as any as S.Schema<RestoreHostingPrivateDatabaseDatabaseDumpRequest>;
|
|
3012
|
+
|
|
3013
|
+
export interface RestoreHostingPrivateDatabaseDumpRequest {
|
|
3014
|
+
/** Service name */
|
|
3015
|
+
serviceName: string;
|
|
3016
|
+
/** Dump ID */
|
|
3017
|
+
dumpId: number;
|
|
3018
|
+
/** Database name */
|
|
3019
|
+
databaseName?: string;
|
|
3020
|
+
}
|
|
3021
|
+
export const RestoreHostingPrivateDatabaseDumpRequest = /*@__PURE__*/ S.suspend(
|
|
3022
|
+
() =>
|
|
3023
|
+
S.Struct({
|
|
3024
|
+
serviceName: S.String.pipe(T.Label()),
|
|
3025
|
+
dumpId: S.Number.pipe(T.Label()),
|
|
3026
|
+
databaseName: S.optional(S.String),
|
|
3027
|
+
}).pipe(
|
|
3028
|
+
T.Http({
|
|
3029
|
+
method: "POST",
|
|
3030
|
+
uri: "/hosting/privateDatabase/{serviceName}/dump/{dumpId}/restore",
|
|
3031
|
+
code: 200,
|
|
3032
|
+
}),
|
|
3033
|
+
),
|
|
3034
|
+
).annotate({
|
|
3035
|
+
identifier: "RestoreHostingPrivateDatabaseDumpRequest",
|
|
3036
|
+
}) as any as S.Schema<RestoreHostingPrivateDatabaseDumpRequest>;
|
|
3037
|
+
|
|
3038
|
+
export interface TerminateHostingPrivateDatabaseRequest {
|
|
3039
|
+
/** Service name */
|
|
3040
|
+
serviceName: string;
|
|
3041
|
+
}
|
|
3042
|
+
export const TerminateHostingPrivateDatabaseRequest = /*@__PURE__*/ S.suspend(
|
|
3043
|
+
() =>
|
|
3044
|
+
S.Struct({
|
|
3045
|
+
serviceName: S.String.pipe(T.Label()),
|
|
3046
|
+
}).pipe(
|
|
3047
|
+
T.Http({
|
|
3048
|
+
method: "POST",
|
|
3049
|
+
uri: "/hosting/privateDatabase/{serviceName}/terminate",
|
|
3050
|
+
code: 200,
|
|
3051
|
+
}),
|
|
3052
|
+
),
|
|
3053
|
+
).annotate({
|
|
3054
|
+
identifier: "TerminateHostingPrivateDatabaseRequest",
|
|
3055
|
+
}) as any as S.Schema<TerminateHostingPrivateDatabaseRequest>;
|
|
3056
|
+
|
|
3057
|
+
export type TerminateHostingPrivateDatabaseResponse = string;
|
|
3058
|
+
export const TerminateHostingPrivateDatabaseResponse = /*@__PURE__*/ S.suspend(
|
|
3059
|
+
() => S.String.pipe(T.RawResponseRoot()),
|
|
3060
|
+
).annotate({
|
|
3061
|
+
identifier: "TerminateHostingPrivateDatabaseResponse",
|
|
3062
|
+
}) as any as S.Schema<TerminateHostingPrivateDatabaseResponse>;
|
|
3063
|
+
|
|
3064
|
+
/** ConfigKeyValue */
|
|
3065
|
+
export interface HostingPrivateDatabaseConfigKeyValue {
|
|
3066
|
+
/** Web Cloud Database configuration key */
|
|
3067
|
+
key: string;
|
|
3068
|
+
/** Web Cloud Database configuration value */
|
|
3069
|
+
value: string;
|
|
3070
|
+
}
|
|
3071
|
+
export const HostingPrivateDatabaseConfigKeyValue = /*@__PURE__*/ S.suspend(
|
|
3072
|
+
() =>
|
|
3073
|
+
S.Struct({
|
|
3074
|
+
key: S.String,
|
|
3075
|
+
value: S.String,
|
|
3076
|
+
}),
|
|
3077
|
+
).annotate({
|
|
3078
|
+
identifier: "HostingPrivateDatabaseConfigKeyValue",
|
|
3079
|
+
}) as any as S.Schema<HostingPrivateDatabaseConfigKeyValue>;
|
|
3080
|
+
|
|
3081
|
+
/** Web Cloud Database configurations */
|
|
3082
|
+
export type UpdateHostingPrivateDatabaseConfigRequestParametersList =
|
|
3083
|
+
Array<HostingPrivateDatabaseConfigKeyValue>;
|
|
3084
|
+
export const UpdateHostingPrivateDatabaseConfigRequestParametersList =
|
|
3085
|
+
/*@__PURE__*/ S.Array(
|
|
3086
|
+
HostingPrivateDatabaseConfigKeyValue,
|
|
3087
|
+
) as any as S.Schema<UpdateHostingPrivateDatabaseConfigRequestParametersList>;
|
|
3088
|
+
|
|
3089
|
+
export interface UpdateHostingPrivateDatabaseConfigRequest {
|
|
3090
|
+
/** Service name */
|
|
3091
|
+
serviceName: string;
|
|
3092
|
+
/** Web Cloud Database configurations */
|
|
3093
|
+
parameters: UpdateHostingPrivateDatabaseConfigRequestParametersList;
|
|
3094
|
+
}
|
|
3095
|
+
export const UpdateHostingPrivateDatabaseConfigRequest =
|
|
3096
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3097
|
+
S.Struct({
|
|
3098
|
+
serviceName: S.String.pipe(T.Label()),
|
|
3099
|
+
parameters: UpdateHostingPrivateDatabaseConfigRequestParametersList,
|
|
3100
|
+
}).pipe(
|
|
3101
|
+
T.Http({
|
|
3102
|
+
method: "POST",
|
|
3103
|
+
uri: "/hosting/privateDatabase/{serviceName}/config/update",
|
|
3104
|
+
code: 200,
|
|
3105
|
+
}),
|
|
3106
|
+
),
|
|
3107
|
+
).annotate({
|
|
3108
|
+
identifier: "UpdateHostingPrivateDatabaseConfigRequest",
|
|
3109
|
+
}) as any as S.Schema<UpdateHostingPrivateDatabaseConfigRequest>;
|
|
3110
|
+
|
|
3111
|
+
export interface UpdateHostingPrivateDatabaseUserGrantRequest {
|
|
3112
|
+
/** Service name */
|
|
3113
|
+
serviceName: string;
|
|
3114
|
+
/** User name */
|
|
3115
|
+
userName: string;
|
|
3116
|
+
/** Database name */
|
|
3117
|
+
databaseName: string;
|
|
3118
|
+
/** Grant on a database for a specific user */
|
|
3119
|
+
grant: HostingPrivateDatabaseGrantGrantEnum | (string & {});
|
|
3120
|
+
}
|
|
3121
|
+
export const UpdateHostingPrivateDatabaseUserGrantRequest =
|
|
3122
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3123
|
+
S.Struct({
|
|
3124
|
+
serviceName: S.String.pipe(T.Label()),
|
|
3125
|
+
userName: S.String.pipe(T.Label()),
|
|
3126
|
+
databaseName: S.String.pipe(T.Label()),
|
|
3127
|
+
grant: HostingPrivateDatabaseGrantGrantEnum,
|
|
3128
|
+
}).pipe(
|
|
3129
|
+
T.Http({
|
|
3130
|
+
method: "POST",
|
|
3131
|
+
uri: "/hosting/privateDatabase/{serviceName}/user/{userName}/grant/{databaseName}/update",
|
|
3132
|
+
code: 200,
|
|
3133
|
+
}),
|
|
3134
|
+
),
|
|
3135
|
+
).annotate({
|
|
3136
|
+
identifier: "UpdateHostingPrivateDatabaseUserGrantRequest",
|
|
3137
|
+
}) as any as S.Schema<UpdateHostingPrivateDatabaseUserGrantRequest>;
|
|
3138
|
+
|
|
3139
|
+
export type ConfirmHostingPrivateDatabaseTerminationError = OvhOpError;
|
|
3140
|
+
/** Confirm service termination */
|
|
3141
|
+
export const confirmHostingPrivateDatabaseTermination: API.OperationMethod<
|
|
3142
|
+
ConfirmHostingPrivateDatabaseTerminationRequest,
|
|
3143
|
+
ConfirmHostingPrivateDatabaseTerminationResponse,
|
|
3144
|
+
ConfirmHostingPrivateDatabaseTerminationError,
|
|
3145
|
+
OvhOpContext
|
|
3146
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3147
|
+
input: ConfirmHostingPrivateDatabaseTerminationRequest,
|
|
3148
|
+
output: ConfirmHostingPrivateDatabaseTerminationResponse,
|
|
3149
|
+
errors: [UnknownOvhError],
|
|
3150
|
+
protocol: OvhProtocol,
|
|
3151
|
+
retry: Retry.Retry,
|
|
3152
|
+
}));
|
|
3153
|
+
|
|
3154
|
+
export type CopyHostingPrivateDatabaseDatabaseError = OvhOpError;
|
|
3155
|
+
/** Create a new database copy in a Web Cloud Database */
|
|
3156
|
+
export const copyHostingPrivateDatabaseDatabase: API.OperationMethod<
|
|
3157
|
+
CopyHostingPrivateDatabaseDatabaseRequest,
|
|
3158
|
+
HostingPrivateDatabaseDatabaseCopy,
|
|
3159
|
+
CopyHostingPrivateDatabaseDatabaseError,
|
|
3160
|
+
OvhOpContext
|
|
3161
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3162
|
+
input: CopyHostingPrivateDatabaseDatabaseRequest,
|
|
3163
|
+
output: HostingPrivateDatabaseDatabaseCopy,
|
|
3164
|
+
errors: [UnknownOvhError],
|
|
3165
|
+
protocol: OvhProtocol,
|
|
3166
|
+
retry: Retry.Retry,
|
|
3167
|
+
}));
|
|
3168
|
+
|
|
3169
|
+
export type CopyHostingPrivateDatabaseDatabaseRestoreError = OvhOpError;
|
|
3170
|
+
/** Request the copy into a Web Cloud Database */
|
|
3171
|
+
export const copyHostingPrivateDatabaseDatabaseRestore: API.OperationMethod<
|
|
3172
|
+
CopyHostingPrivateDatabaseDatabaseRestoreRequest,
|
|
3173
|
+
HostingPrivateDatabaseTask,
|
|
3174
|
+
CopyHostingPrivateDatabaseDatabaseRestoreError,
|
|
3175
|
+
OvhOpContext
|
|
3176
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3177
|
+
input: CopyHostingPrivateDatabaseDatabaseRestoreRequest,
|
|
3178
|
+
output: HostingPrivateDatabaseTask,
|
|
3179
|
+
errors: [UnknownOvhError],
|
|
3180
|
+
protocol: OvhProtocol,
|
|
3181
|
+
retry: Retry.Retry,
|
|
3182
|
+
}));
|
|
3183
|
+
|
|
3184
|
+
export type CreateHostingPrivateDatabaseChangeContactError = OvhOpError;
|
|
3185
|
+
/** Launch a contact change procedure */
|
|
3186
|
+
export const createHostingPrivateDatabaseChangeContact: API.OperationMethod<
|
|
3187
|
+
CreateHostingPrivateDatabaseChangeContactRequest,
|
|
3188
|
+
CreateHostingPrivateDatabaseChangeContactResponse,
|
|
3189
|
+
CreateHostingPrivateDatabaseChangeContactError,
|
|
3190
|
+
OvhOpContext
|
|
3191
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3192
|
+
input: CreateHostingPrivateDatabaseChangeContactRequest,
|
|
3193
|
+
output: CreateHostingPrivateDatabaseChangeContactResponse,
|
|
3194
|
+
errors: [UnknownOvhError],
|
|
3195
|
+
protocol: OvhProtocol,
|
|
3196
|
+
retry: Retry.Retry,
|
|
3197
|
+
}));
|
|
3198
|
+
|
|
3199
|
+
export type CreateHostingPrivateDatabaseChangeFtpPasswordError = OvhOpError;
|
|
3200
|
+
/** Change FTP password of your Web Cloud Database */
|
|
3201
|
+
export const createHostingPrivateDatabaseChangeFtpPassword: API.OperationMethod<
|
|
3202
|
+
CreateHostingPrivateDatabaseChangeFtpPasswordRequest,
|
|
3203
|
+
HostingPrivateDatabaseTask,
|
|
3204
|
+
CreateHostingPrivateDatabaseChangeFtpPasswordError,
|
|
3205
|
+
OvhOpContext
|
|
3206
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3207
|
+
input: CreateHostingPrivateDatabaseChangeFtpPasswordRequest,
|
|
3208
|
+
output: HostingPrivateDatabaseTask,
|
|
3209
|
+
errors: [UnknownOvhError],
|
|
3210
|
+
protocol: OvhProtocol,
|
|
3211
|
+
retry: Retry.Retry,
|
|
3212
|
+
}));
|
|
3213
|
+
|
|
3214
|
+
export type CreateHostingPrivateDatabaseChangeVersionError = OvhOpError;
|
|
3215
|
+
/** Change DBMS version of your Web Cloud Database */
|
|
3216
|
+
export const createHostingPrivateDatabaseChangeVersion: API.OperationMethod<
|
|
3217
|
+
CreateHostingPrivateDatabaseChangeVersionRequest,
|
|
3218
|
+
HostingPrivateDatabaseTask,
|
|
3219
|
+
CreateHostingPrivateDatabaseChangeVersionError,
|
|
3220
|
+
OvhOpContext
|
|
3221
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3222
|
+
input: CreateHostingPrivateDatabaseChangeVersionRequest,
|
|
3223
|
+
output: HostingPrivateDatabaseTask,
|
|
3224
|
+
errors: [UnknownOvhError],
|
|
3225
|
+
protocol: OvhProtocol,
|
|
3226
|
+
retry: Retry.Retry,
|
|
3227
|
+
}));
|
|
3228
|
+
|
|
3229
|
+
export type CreateHostingPrivateDatabaseDatabaseError = OvhOpError;
|
|
3230
|
+
/** Create a new database in a Web Cloud Database */
|
|
3231
|
+
export const createHostingPrivateDatabaseDatabase: API.OperationMethod<
|
|
3232
|
+
CreateHostingPrivateDatabaseDatabaseRequest,
|
|
3233
|
+
HostingPrivateDatabaseTask,
|
|
3234
|
+
CreateHostingPrivateDatabaseDatabaseError,
|
|
3235
|
+
OvhOpContext
|
|
3236
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3237
|
+
input: CreateHostingPrivateDatabaseDatabaseRequest,
|
|
3238
|
+
output: HostingPrivateDatabaseTask,
|
|
3239
|
+
errors: [UnknownOvhError],
|
|
3240
|
+
protocol: OvhProtocol,
|
|
3241
|
+
retry: Retry.Retry,
|
|
3242
|
+
}));
|
|
3243
|
+
|
|
3244
|
+
export type CreateHostingPrivateDatabaseDatabaseDumpError = OvhOpError;
|
|
3245
|
+
/** Request the dump of this database (an email will be sent with a link available 30 days) */
|
|
3246
|
+
export const createHostingPrivateDatabaseDatabaseDump: API.OperationMethod<
|
|
3247
|
+
CreateHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3248
|
+
HostingPrivateDatabaseTask,
|
|
3249
|
+
CreateHostingPrivateDatabaseDatabaseDumpError,
|
|
3250
|
+
OvhOpContext
|
|
3251
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3252
|
+
input: CreateHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3253
|
+
output: HostingPrivateDatabaseTask,
|
|
3254
|
+
errors: [UnknownOvhError],
|
|
3255
|
+
protocol: OvhProtocol,
|
|
3256
|
+
retry: Retry.Retry,
|
|
3257
|
+
}));
|
|
3258
|
+
|
|
3259
|
+
export type CreateHostingPrivateDatabaseDatabaseWizardError = OvhOpError;
|
|
3260
|
+
/** Create a new database/user and grant it */
|
|
3261
|
+
export const createHostingPrivateDatabaseDatabaseWizard: API.OperationMethod<
|
|
3262
|
+
CreateHostingPrivateDatabaseDatabaseWizardRequest,
|
|
3263
|
+
HostingPrivateDatabaseTask,
|
|
3264
|
+
CreateHostingPrivateDatabaseDatabaseWizardError,
|
|
3265
|
+
OvhOpContext
|
|
3266
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3267
|
+
input: CreateHostingPrivateDatabaseDatabaseWizardRequest,
|
|
3268
|
+
output: HostingPrivateDatabaseTask,
|
|
3269
|
+
errors: [UnknownOvhError],
|
|
3270
|
+
protocol: OvhProtocol,
|
|
3271
|
+
retry: Retry.Retry,
|
|
3272
|
+
}));
|
|
3273
|
+
|
|
3274
|
+
export type CreateHostingPrivateDatabaseLogSubscriptionError = OvhOpError;
|
|
3275
|
+
/** Create subscription to log to customer for a Web Cloud Database */
|
|
3276
|
+
export const createHostingPrivateDatabaseLogSubscription: API.OperationMethod<
|
|
3277
|
+
CreateHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3278
|
+
DbaasLogsLogSubscriptionResponse,
|
|
3279
|
+
CreateHostingPrivateDatabaseLogSubscriptionError,
|
|
3280
|
+
OvhOpContext
|
|
3281
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3282
|
+
input: CreateHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3283
|
+
output: DbaasLogsLogSubscriptionResponse,
|
|
3284
|
+
errors: [UnknownOvhError],
|
|
3285
|
+
protocol: OvhProtocol,
|
|
3286
|
+
retry: Retry.Retry,
|
|
3287
|
+
}));
|
|
3288
|
+
|
|
3289
|
+
export type CreateHostingPrivateDatabaseLogUrlError = OvhOpError;
|
|
3290
|
+
/** Generate a temporary URL to retrieve logs */
|
|
3291
|
+
export const createHostingPrivateDatabaseLogUrl: API.OperationMethod<
|
|
3292
|
+
CreateHostingPrivateDatabaseLogUrlRequest,
|
|
3293
|
+
DbaasLogsTemporaryLogsLink,
|
|
3294
|
+
CreateHostingPrivateDatabaseLogUrlError,
|
|
3295
|
+
OvhOpContext
|
|
3296
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3297
|
+
input: CreateHostingPrivateDatabaseLogUrlRequest,
|
|
3298
|
+
output: DbaasLogsTemporaryLogsLink,
|
|
3299
|
+
errors: [UnknownOvhError],
|
|
3300
|
+
protocol: OvhProtocol,
|
|
3301
|
+
retry: Retry.Retry,
|
|
3302
|
+
}));
|
|
3303
|
+
|
|
3304
|
+
export type CreateHostingPrivateDatabaseQuotaRefreshError = OvhOpError;
|
|
3305
|
+
/** Refresh the quota of your Web Cloud Database */
|
|
3306
|
+
export const createHostingPrivateDatabaseQuotaRefresh: API.OperationMethod<
|
|
3307
|
+
CreateHostingPrivateDatabaseQuotaRefreshRequest,
|
|
3308
|
+
HostingPrivateDatabaseTask,
|
|
3309
|
+
CreateHostingPrivateDatabaseQuotaRefreshError,
|
|
3310
|
+
OvhOpContext
|
|
3311
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3312
|
+
input: CreateHostingPrivateDatabaseQuotaRefreshRequest,
|
|
3313
|
+
output: HostingPrivateDatabaseTask,
|
|
3314
|
+
errors: [UnknownOvhError],
|
|
3315
|
+
protocol: OvhProtocol,
|
|
3316
|
+
retry: Retry.Retry,
|
|
3317
|
+
}));
|
|
3318
|
+
|
|
3319
|
+
export type CreateHostingPrivateDatabaseUserError = OvhOpError;
|
|
3320
|
+
/** Create a user on a Web Cloud Database */
|
|
3321
|
+
export const createHostingPrivateDatabaseUser: API.OperationMethod<
|
|
3322
|
+
CreateHostingPrivateDatabaseUserRequest,
|
|
3323
|
+
HostingPrivateDatabaseTask,
|
|
3324
|
+
CreateHostingPrivateDatabaseUserError,
|
|
3325
|
+
OvhOpContext
|
|
3326
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3327
|
+
input: CreateHostingPrivateDatabaseUserRequest,
|
|
3328
|
+
output: HostingPrivateDatabaseTask,
|
|
3329
|
+
errors: [UnknownOvhError],
|
|
3330
|
+
protocol: OvhProtocol,
|
|
3331
|
+
retry: Retry.Retry,
|
|
3332
|
+
}));
|
|
3333
|
+
|
|
3334
|
+
export type CreateHostingPrivateDatabaseUserChangePasswordError = OvhOpError;
|
|
3335
|
+
/** Change the password of a user on a Web Cloud Database */
|
|
3336
|
+
export const createHostingPrivateDatabaseUserChangePassword: API.OperationMethod<
|
|
3337
|
+
CreateHostingPrivateDatabaseUserChangePasswordRequest,
|
|
3338
|
+
HostingPrivateDatabaseTask,
|
|
3339
|
+
CreateHostingPrivateDatabaseUserChangePasswordError,
|
|
3340
|
+
OvhOpContext
|
|
3341
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3342
|
+
input: CreateHostingPrivateDatabaseUserChangePasswordRequest,
|
|
3343
|
+
output: HostingPrivateDatabaseTask,
|
|
3344
|
+
errors: [UnknownOvhError],
|
|
3345
|
+
protocol: OvhProtocol,
|
|
3346
|
+
retry: Retry.Retry,
|
|
3347
|
+
}));
|
|
3348
|
+
|
|
3349
|
+
export type CreateHostingPrivateDatabaseUserGrantError = OvhOpError;
|
|
3350
|
+
/** Add grant on a Web Cloud Database */
|
|
3351
|
+
export const createHostingPrivateDatabaseUserGrant: API.OperationMethod<
|
|
3352
|
+
CreateHostingPrivateDatabaseUserGrantRequest,
|
|
3353
|
+
HostingPrivateDatabaseTask,
|
|
3354
|
+
CreateHostingPrivateDatabaseUserGrantError,
|
|
3355
|
+
OvhOpContext
|
|
3356
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3357
|
+
input: CreateHostingPrivateDatabaseUserGrantRequest,
|
|
3358
|
+
output: HostingPrivateDatabaseTask,
|
|
3359
|
+
errors: [UnknownOvhError],
|
|
3360
|
+
protocol: OvhProtocol,
|
|
3361
|
+
retry: Retry.Retry,
|
|
3362
|
+
}));
|
|
3363
|
+
|
|
3364
|
+
export type CreateHostingPrivateDatabaseWebhostingNetworkError = OvhOpError;
|
|
3365
|
+
/** Permit access from the web hosting network on a Web Cloud Database */
|
|
3366
|
+
export const createHostingPrivateDatabaseWebhostingNetwork: API.OperationMethod<
|
|
3367
|
+
CreateHostingPrivateDatabaseWebhostingNetworkRequest,
|
|
3368
|
+
HostingPrivateDatabaseTask,
|
|
3369
|
+
CreateHostingPrivateDatabaseWebhostingNetworkError,
|
|
3370
|
+
OvhOpContext
|
|
3371
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3372
|
+
input: CreateHostingPrivateDatabaseWebhostingNetworkRequest,
|
|
3373
|
+
output: HostingPrivateDatabaseTask,
|
|
3374
|
+
errors: [UnknownOvhError],
|
|
3375
|
+
protocol: OvhProtocol,
|
|
3376
|
+
retry: Retry.Retry,
|
|
3377
|
+
}));
|
|
3378
|
+
|
|
3379
|
+
export type CreateHostingPrivateDatabaseWhitelistError = OvhOpError;
|
|
3380
|
+
/** Create a new IP whitelist in a Web Cloud Database */
|
|
3381
|
+
export const createHostingPrivateDatabaseWhitelist: API.OperationMethod<
|
|
3382
|
+
CreateHostingPrivateDatabaseWhitelistRequest,
|
|
3383
|
+
HostingPrivateDatabaseTask,
|
|
3384
|
+
CreateHostingPrivateDatabaseWhitelistError,
|
|
3385
|
+
OvhOpContext
|
|
3386
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3387
|
+
input: CreateHostingPrivateDatabaseWhitelistRequest,
|
|
3388
|
+
output: HostingPrivateDatabaseTask,
|
|
3389
|
+
errors: [UnknownOvhError],
|
|
3390
|
+
protocol: OvhProtocol,
|
|
3391
|
+
retry: Retry.Retry,
|
|
3392
|
+
}));
|
|
3393
|
+
|
|
3394
|
+
export type DeleteHostingPrivateDatabaseDatabaseError = OvhOpError;
|
|
3395
|
+
/** Delete a database from a Web Cloud Database */
|
|
3396
|
+
export const deleteHostingPrivateDatabaseDatabase: API.OperationMethod<
|
|
3397
|
+
DeleteHostingPrivateDatabaseDatabaseRequest,
|
|
3398
|
+
HostingPrivateDatabaseTask,
|
|
3399
|
+
DeleteHostingPrivateDatabaseDatabaseError,
|
|
3400
|
+
OvhOpContext
|
|
3401
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3402
|
+
input: DeleteHostingPrivateDatabaseDatabaseRequest,
|
|
3403
|
+
output: HostingPrivateDatabaseTask,
|
|
3404
|
+
errors: [UnknownOvhError],
|
|
3405
|
+
protocol: OvhProtocol,
|
|
3406
|
+
retry: Retry.Retry,
|
|
3407
|
+
}));
|
|
3408
|
+
|
|
3409
|
+
export type DeleteHostingPrivateDatabaseDatabaseCopyError = OvhOpError;
|
|
3410
|
+
/** Delete the database copy of a Web Cloud Database */
|
|
3411
|
+
export const deleteHostingPrivateDatabaseDatabaseCopy: API.OperationMethod<
|
|
3412
|
+
DeleteHostingPrivateDatabaseDatabaseCopyRequest,
|
|
3413
|
+
DeleteHostingPrivateDatabaseDatabaseCopyResponse,
|
|
3414
|
+
DeleteHostingPrivateDatabaseDatabaseCopyError,
|
|
3415
|
+
OvhOpContext
|
|
3416
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3417
|
+
input: DeleteHostingPrivateDatabaseDatabaseCopyRequest,
|
|
3418
|
+
output: DeleteHostingPrivateDatabaseDatabaseCopyResponse,
|
|
3419
|
+
errors: [UnknownOvhError],
|
|
3420
|
+
protocol: OvhProtocol,
|
|
3421
|
+
retry: Retry.Retry,
|
|
3422
|
+
}));
|
|
3423
|
+
|
|
3424
|
+
export type DeleteHostingPrivateDatabaseDatabaseDumpError = OvhOpError;
|
|
3425
|
+
/** Delete dump before expiration date */
|
|
3426
|
+
export const deleteHostingPrivateDatabaseDatabaseDump: API.OperationMethod<
|
|
3427
|
+
DeleteHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3428
|
+
HostingPrivateDatabaseTask,
|
|
3429
|
+
DeleteHostingPrivateDatabaseDatabaseDumpError,
|
|
3430
|
+
OvhOpContext
|
|
3431
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3432
|
+
input: DeleteHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3433
|
+
output: HostingPrivateDatabaseTask,
|
|
3434
|
+
errors: [UnknownOvhError],
|
|
3435
|
+
protocol: OvhProtocol,
|
|
3436
|
+
retry: Retry.Retry,
|
|
3437
|
+
}));
|
|
3438
|
+
|
|
3439
|
+
export type DeleteHostingPrivateDatabaseDumpError = OvhOpError;
|
|
3440
|
+
/** Delete a database dump from a Web Cloud Database */
|
|
3441
|
+
export const deleteHostingPrivateDatabaseDump: API.OperationMethod<
|
|
3442
|
+
DeleteHostingPrivateDatabaseDumpRequest,
|
|
3443
|
+
HostingPrivateDatabaseTask,
|
|
3444
|
+
DeleteHostingPrivateDatabaseDumpError,
|
|
3445
|
+
OvhOpContext
|
|
3446
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3447
|
+
input: DeleteHostingPrivateDatabaseDumpRequest,
|
|
3448
|
+
output: HostingPrivateDatabaseTask,
|
|
3449
|
+
errors: [UnknownOvhError],
|
|
3450
|
+
protocol: OvhProtocol,
|
|
3451
|
+
retry: Retry.Retry,
|
|
3452
|
+
}));
|
|
3453
|
+
|
|
3454
|
+
export type DeleteHostingPrivateDatabaseLogSubscriptionError = OvhOpError;
|
|
3455
|
+
/** Delete a subscription */
|
|
3456
|
+
export const deleteHostingPrivateDatabaseLogSubscription: API.OperationMethod<
|
|
3457
|
+
DeleteHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3458
|
+
DbaasLogsLogSubscriptionResponse,
|
|
3459
|
+
DeleteHostingPrivateDatabaseLogSubscriptionError,
|
|
3460
|
+
OvhOpContext
|
|
3461
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3462
|
+
input: DeleteHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3463
|
+
output: DbaasLogsLogSubscriptionResponse,
|
|
3464
|
+
errors: [UnknownOvhError],
|
|
3465
|
+
protocol: OvhProtocol,
|
|
3466
|
+
retry: Retry.Retry,
|
|
3467
|
+
}));
|
|
3468
|
+
|
|
3469
|
+
export type DeleteHostingPrivateDatabaseUserError = OvhOpError;
|
|
3470
|
+
/** Delete a user on a Web Cloud Database */
|
|
3471
|
+
export const deleteHostingPrivateDatabaseUser: API.OperationMethod<
|
|
3472
|
+
DeleteHostingPrivateDatabaseUserRequest,
|
|
3473
|
+
HostingPrivateDatabaseTask,
|
|
3474
|
+
DeleteHostingPrivateDatabaseUserError,
|
|
3475
|
+
OvhOpContext
|
|
3476
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3477
|
+
input: DeleteHostingPrivateDatabaseUserRequest,
|
|
3478
|
+
output: HostingPrivateDatabaseTask,
|
|
3479
|
+
errors: [UnknownOvhError],
|
|
3480
|
+
protocol: OvhProtocol,
|
|
3481
|
+
retry: Retry.Retry,
|
|
3482
|
+
}));
|
|
3483
|
+
|
|
3484
|
+
export type DeleteHostingPrivateDatabaseUserGrantError = OvhOpError;
|
|
3485
|
+
/** Delete a grant from a Web Cloud Database */
|
|
3486
|
+
export const deleteHostingPrivateDatabaseUserGrant: API.OperationMethod<
|
|
3487
|
+
DeleteHostingPrivateDatabaseUserGrantRequest,
|
|
3488
|
+
HostingPrivateDatabaseTask,
|
|
3489
|
+
DeleteHostingPrivateDatabaseUserGrantError,
|
|
3490
|
+
OvhOpContext
|
|
3491
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3492
|
+
input: DeleteHostingPrivateDatabaseUserGrantRequest,
|
|
3493
|
+
output: HostingPrivateDatabaseTask,
|
|
3494
|
+
errors: [UnknownOvhError],
|
|
3495
|
+
protocol: OvhProtocol,
|
|
3496
|
+
retry: Retry.Retry,
|
|
3497
|
+
}));
|
|
3498
|
+
|
|
3499
|
+
export type DeleteHostingPrivateDatabaseWebhostingNetworkError = OvhOpError;
|
|
3500
|
+
/** Delete access from the web hosting network on a Web Cloud Database */
|
|
3501
|
+
export const deleteHostingPrivateDatabaseWebhostingNetwork: API.OperationMethod<
|
|
3502
|
+
DeleteHostingPrivateDatabaseWebhostingNetworkRequest,
|
|
3503
|
+
HostingPrivateDatabaseTask,
|
|
3504
|
+
DeleteHostingPrivateDatabaseWebhostingNetworkError,
|
|
3505
|
+
OvhOpContext
|
|
3506
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3507
|
+
input: DeleteHostingPrivateDatabaseWebhostingNetworkRequest,
|
|
3508
|
+
output: HostingPrivateDatabaseTask,
|
|
3509
|
+
errors: [UnknownOvhError],
|
|
3510
|
+
protocol: OvhProtocol,
|
|
3511
|
+
retry: Retry.Retry,
|
|
3512
|
+
}));
|
|
3513
|
+
|
|
3514
|
+
export type DeleteHostingPrivateDatabaseWhitelistError = OvhOpError;
|
|
3515
|
+
/** Delete an IP whitelist from a Web Cloud Database */
|
|
3516
|
+
export const deleteHostingPrivateDatabaseWhitelist: API.OperationMethod<
|
|
3517
|
+
DeleteHostingPrivateDatabaseWhitelistRequest,
|
|
3518
|
+
HostingPrivateDatabaseTask,
|
|
3519
|
+
DeleteHostingPrivateDatabaseWhitelistError,
|
|
3520
|
+
OvhOpContext
|
|
3521
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3522
|
+
input: DeleteHostingPrivateDatabaseWhitelistRequest,
|
|
3523
|
+
output: HostingPrivateDatabaseTask,
|
|
3524
|
+
errors: [UnknownOvhError],
|
|
3525
|
+
protocol: OvhProtocol,
|
|
3526
|
+
retry: Retry.Retry,
|
|
3527
|
+
}));
|
|
3528
|
+
|
|
3529
|
+
export type DisableHostingPrivateDatabaseDatabaseExtensionError = OvhOpError;
|
|
3530
|
+
/** Disable an extension on a Web Cloud Database */
|
|
3531
|
+
export const disableHostingPrivateDatabaseDatabaseExtension: API.OperationMethod<
|
|
3532
|
+
DisableHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3533
|
+
HostingPrivateDatabaseTask,
|
|
3534
|
+
DisableHostingPrivateDatabaseDatabaseExtensionError,
|
|
3535
|
+
OvhOpContext
|
|
3536
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3537
|
+
input: DisableHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3538
|
+
output: HostingPrivateDatabaseTask,
|
|
3539
|
+
errors: [UnknownOvhError],
|
|
3540
|
+
protocol: OvhProtocol,
|
|
3541
|
+
retry: Retry.Retry,
|
|
3542
|
+
}));
|
|
3543
|
+
|
|
3544
|
+
export type EnableHostingPrivateDatabaseDatabaseExtensionError = OvhOpError;
|
|
3545
|
+
/** Enable an extension on a Web Cloud Database */
|
|
3546
|
+
export const enableHostingPrivateDatabaseDatabaseExtension: API.OperationMethod<
|
|
3547
|
+
EnableHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3548
|
+
HostingPrivateDatabaseTask,
|
|
3549
|
+
EnableHostingPrivateDatabaseDatabaseExtensionError,
|
|
3550
|
+
OvhOpContext
|
|
3551
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3552
|
+
input: EnableHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3553
|
+
output: HostingPrivateDatabaseTask,
|
|
3554
|
+
errors: [UnknownOvhError],
|
|
3555
|
+
protocol: OvhProtocol,
|
|
3556
|
+
retry: Retry.Retry,
|
|
3557
|
+
}));
|
|
3558
|
+
|
|
3559
|
+
export type GenerateHostingPrivateDatabaseTemporaryLogsLinkError = OvhOpError;
|
|
3560
|
+
/** Generate a temporary link to access logs for a Web Cloud Database */
|
|
3561
|
+
export const generateHostingPrivateDatabaseTemporaryLogsLink: API.OperationMethod<
|
|
3562
|
+
GenerateHostingPrivateDatabaseTemporaryLogsLinkRequest,
|
|
3563
|
+
HostingPrivateDatabaseTemporaryUrlInformations,
|
|
3564
|
+
GenerateHostingPrivateDatabaseTemporaryLogsLinkError,
|
|
3565
|
+
OvhOpContext
|
|
3566
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3567
|
+
input: GenerateHostingPrivateDatabaseTemporaryLogsLinkRequest,
|
|
3568
|
+
output: HostingPrivateDatabaseTemporaryUrlInformations,
|
|
3569
|
+
errors: [UnknownOvhError],
|
|
3570
|
+
protocol: OvhProtocol,
|
|
3571
|
+
retry: Retry.Retry,
|
|
3572
|
+
}));
|
|
3573
|
+
|
|
3574
|
+
export type GetHostingPrivateDatabaseError = OvhOpError;
|
|
3575
|
+
/** Get a Web Cloud Database properties */
|
|
3576
|
+
export const getHostingPrivateDatabase: API.OperationMethod<
|
|
3577
|
+
GetHostingPrivateDatabaseRequest,
|
|
3578
|
+
HostingPrivateDatabaseServiceWithIAM,
|
|
3579
|
+
GetHostingPrivateDatabaseError,
|
|
3580
|
+
OvhOpContext
|
|
3581
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3582
|
+
input: GetHostingPrivateDatabaseRequest,
|
|
3583
|
+
output: HostingPrivateDatabaseServiceWithIAM,
|
|
3584
|
+
errors: [UnknownOvhError],
|
|
3585
|
+
protocol: OvhProtocol,
|
|
3586
|
+
retry: Retry.Retry,
|
|
3587
|
+
}));
|
|
3588
|
+
|
|
3589
|
+
export type GetHostingPrivateDatabaseDatabaseError = OvhOpError;
|
|
3590
|
+
/** Get database properties */
|
|
3591
|
+
export const getHostingPrivateDatabaseDatabase: API.OperationMethod<
|
|
3592
|
+
GetHostingPrivateDatabaseDatabaseRequest,
|
|
3593
|
+
HostingPrivateDatabaseDatabase,
|
|
3594
|
+
GetHostingPrivateDatabaseDatabaseError,
|
|
3595
|
+
OvhOpContext
|
|
3596
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3597
|
+
input: GetHostingPrivateDatabaseDatabaseRequest,
|
|
3598
|
+
output: HostingPrivateDatabaseDatabase,
|
|
3599
|
+
errors: [UnknownOvhError],
|
|
3600
|
+
protocol: OvhProtocol,
|
|
3601
|
+
retry: Retry.Retry,
|
|
3602
|
+
}));
|
|
3603
|
+
|
|
3604
|
+
export type GetHostingPrivateDatabaseDatabaseCopyError = OvhOpError;
|
|
3605
|
+
/** Get database copy properties */
|
|
3606
|
+
export const getHostingPrivateDatabaseDatabaseCopy: API.OperationMethod<
|
|
3607
|
+
GetHostingPrivateDatabaseDatabaseCopyRequest,
|
|
3608
|
+
HostingPrivateDatabaseDatabaseCopy,
|
|
3609
|
+
GetHostingPrivateDatabaseDatabaseCopyError,
|
|
3610
|
+
OvhOpContext
|
|
3611
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3612
|
+
input: GetHostingPrivateDatabaseDatabaseCopyRequest,
|
|
3613
|
+
output: HostingPrivateDatabaseDatabaseCopy,
|
|
3614
|
+
errors: [UnknownOvhError],
|
|
3615
|
+
protocol: OvhProtocol,
|
|
3616
|
+
retry: Retry.Retry,
|
|
3617
|
+
}));
|
|
3618
|
+
|
|
3619
|
+
export type GetHostingPrivateDatabaseDatabaseDumpError = OvhOpError;
|
|
3620
|
+
/** Get a database dump from a Web Cloud Database */
|
|
3621
|
+
export const getHostingPrivateDatabaseDatabaseDump: API.OperationMethod<
|
|
3622
|
+
GetHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3623
|
+
HostingPrivateDatabaseDatabaseDump,
|
|
3624
|
+
GetHostingPrivateDatabaseDatabaseDumpError,
|
|
3625
|
+
OvhOpContext
|
|
3626
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3627
|
+
input: GetHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3628
|
+
output: HostingPrivateDatabaseDatabaseDump,
|
|
3629
|
+
errors: [UnknownOvhError],
|
|
3630
|
+
protocol: OvhProtocol,
|
|
3631
|
+
retry: Retry.Retry,
|
|
3632
|
+
}));
|
|
3633
|
+
|
|
3634
|
+
export type GetHostingPrivateDatabaseDatabaseExtensionError = OvhOpError;
|
|
3635
|
+
/** Get properties of a Webcloud Database extension */
|
|
3636
|
+
export const getHostingPrivateDatabaseDatabaseExtension: API.OperationMethod<
|
|
3637
|
+
GetHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3638
|
+
HostingPrivateDatabaseExtension,
|
|
3639
|
+
GetHostingPrivateDatabaseDatabaseExtensionError,
|
|
3640
|
+
OvhOpContext
|
|
3641
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3642
|
+
input: GetHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3643
|
+
output: HostingPrivateDatabaseExtension,
|
|
3644
|
+
errors: [UnknownOvhError],
|
|
3645
|
+
protocol: OvhProtocol,
|
|
3646
|
+
retry: Retry.Retry,
|
|
3647
|
+
}));
|
|
3648
|
+
|
|
3649
|
+
export type GetHostingPrivateDatabaseDumpError = OvhOpError;
|
|
3650
|
+
/** Get a database dump from a Web Cloud Database */
|
|
3651
|
+
export const getHostingPrivateDatabaseDump: API.OperationMethod<
|
|
3652
|
+
GetHostingPrivateDatabaseDumpRequest,
|
|
3653
|
+
HostingPrivateDatabaseDump,
|
|
3654
|
+
GetHostingPrivateDatabaseDumpError,
|
|
3655
|
+
OvhOpContext
|
|
3656
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3657
|
+
input: GetHostingPrivateDatabaseDumpRequest,
|
|
3658
|
+
output: HostingPrivateDatabaseDump,
|
|
3659
|
+
errors: [UnknownOvhError],
|
|
3660
|
+
protocol: OvhProtocol,
|
|
3661
|
+
retry: Retry.Retry,
|
|
3662
|
+
}));
|
|
3663
|
+
|
|
3664
|
+
export type GetHostingPrivateDatabaseLogKindError = OvhOpError;
|
|
3665
|
+
/** Get a log kind */
|
|
3666
|
+
export const getHostingPrivateDatabaseLogKind: API.OperationMethod<
|
|
3667
|
+
GetHostingPrivateDatabaseLogKindRequest,
|
|
3668
|
+
DbaasLogsLogKind,
|
|
3669
|
+
GetHostingPrivateDatabaseLogKindError,
|
|
3670
|
+
OvhOpContext
|
|
3671
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3672
|
+
input: GetHostingPrivateDatabaseLogKindRequest,
|
|
3673
|
+
output: DbaasLogsLogKind,
|
|
3674
|
+
errors: [UnknownOvhError],
|
|
3675
|
+
protocol: OvhProtocol,
|
|
3676
|
+
retry: Retry.Retry,
|
|
3677
|
+
}));
|
|
3678
|
+
|
|
3679
|
+
export type GetHostingPrivateDatabaseLogSubscriptionError = OvhOpError;
|
|
3680
|
+
/** Get subscription details */
|
|
3681
|
+
export const getHostingPrivateDatabaseLogSubscription: API.OperationMethod<
|
|
3682
|
+
GetHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3683
|
+
DbaasLogsLogSubscription,
|
|
3684
|
+
GetHostingPrivateDatabaseLogSubscriptionError,
|
|
3685
|
+
OvhOpContext
|
|
3686
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3687
|
+
input: GetHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3688
|
+
output: DbaasLogsLogSubscription,
|
|
3689
|
+
errors: [UnknownOvhError],
|
|
3690
|
+
protocol: OvhProtocol,
|
|
3691
|
+
retry: Retry.Retry,
|
|
3692
|
+
}));
|
|
3693
|
+
|
|
3694
|
+
export type GetHostingPrivateDatabaseMetricsTokenError = OvhOpError;
|
|
3695
|
+
/** Generate a metrics token */
|
|
3696
|
+
export const getHostingPrivateDatabaseMetricsToken: API.OperationMethod<
|
|
3697
|
+
GetHostingPrivateDatabaseMetricsTokenRequest,
|
|
3698
|
+
HostingPrivateDatabaseMetricsToken,
|
|
3699
|
+
GetHostingPrivateDatabaseMetricsTokenError,
|
|
3700
|
+
OvhOpContext
|
|
3701
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3702
|
+
input: GetHostingPrivateDatabaseMetricsTokenRequest,
|
|
3703
|
+
output: HostingPrivateDatabaseMetricsToken,
|
|
3704
|
+
errors: [UnknownOvhError],
|
|
3705
|
+
protocol: OvhProtocol,
|
|
3706
|
+
retry: Retry.Retry,
|
|
3707
|
+
}));
|
|
3708
|
+
|
|
3709
|
+
export type GetHostingPrivateDatabaseServiceInfosError = OvhOpError;
|
|
3710
|
+
/** Get service information */
|
|
3711
|
+
export const getHostingPrivateDatabaseServiceInfos: API.OperationMethod<
|
|
3712
|
+
GetHostingPrivateDatabaseServiceInfosRequest,
|
|
3713
|
+
ServicesService,
|
|
3714
|
+
GetHostingPrivateDatabaseServiceInfosError,
|
|
3715
|
+
OvhOpContext
|
|
3716
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3717
|
+
input: GetHostingPrivateDatabaseServiceInfosRequest,
|
|
3718
|
+
output: ServicesService,
|
|
3719
|
+
errors: [UnknownOvhError],
|
|
3720
|
+
protocol: OvhProtocol,
|
|
3721
|
+
retry: Retry.Retry,
|
|
3722
|
+
}));
|
|
3723
|
+
|
|
3724
|
+
export type GetHostingPrivateDatabaseTaskError = OvhOpError;
|
|
3725
|
+
/** Get task details */
|
|
3726
|
+
export const getHostingPrivateDatabaseTask: API.OperationMethod<
|
|
3727
|
+
GetHostingPrivateDatabaseTaskRequest,
|
|
3728
|
+
HostingPrivateDatabaseTask,
|
|
3729
|
+
GetHostingPrivateDatabaseTaskError,
|
|
3730
|
+
OvhOpContext
|
|
3731
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3732
|
+
input: GetHostingPrivateDatabaseTaskRequest,
|
|
3733
|
+
output: HostingPrivateDatabaseTask,
|
|
3734
|
+
errors: [UnknownOvhError],
|
|
3735
|
+
protocol: OvhProtocol,
|
|
3736
|
+
retry: Retry.Retry,
|
|
3737
|
+
}));
|
|
3738
|
+
|
|
3739
|
+
export type GetHostingPrivateDatabaseUserError = OvhOpError;
|
|
3740
|
+
/** Get user properties */
|
|
3741
|
+
export const getHostingPrivateDatabaseUser: API.OperationMethod<
|
|
3742
|
+
GetHostingPrivateDatabaseUserRequest,
|
|
3743
|
+
HostingPrivateDatabaseUser,
|
|
3744
|
+
GetHostingPrivateDatabaseUserError,
|
|
3745
|
+
OvhOpContext
|
|
3746
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3747
|
+
input: GetHostingPrivateDatabaseUserRequest,
|
|
3748
|
+
output: HostingPrivateDatabaseUser,
|
|
3749
|
+
errors: [UnknownOvhError],
|
|
3750
|
+
protocol: OvhProtocol,
|
|
3751
|
+
retry: Retry.Retry,
|
|
3752
|
+
}));
|
|
3753
|
+
|
|
3754
|
+
export type GetHostingPrivateDatabaseUserGrantError = OvhOpError;
|
|
3755
|
+
/** Get information about the grants for a user in a Web Cloud Database */
|
|
3756
|
+
export const getHostingPrivateDatabaseUserGrant: API.OperationMethod<
|
|
3757
|
+
GetHostingPrivateDatabaseUserGrantRequest,
|
|
3758
|
+
HostingPrivateDatabaseUserGrant,
|
|
3759
|
+
GetHostingPrivateDatabaseUserGrantError,
|
|
3760
|
+
OvhOpContext
|
|
3761
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3762
|
+
input: GetHostingPrivateDatabaseUserGrantRequest,
|
|
3763
|
+
output: HostingPrivateDatabaseUserGrant,
|
|
3764
|
+
errors: [UnknownOvhError],
|
|
3765
|
+
protocol: OvhProtocol,
|
|
3766
|
+
retry: Retry.Retry,
|
|
3767
|
+
}));
|
|
3768
|
+
|
|
3769
|
+
export type GetHostingPrivateDatabaseWebhostingNetworkError = OvhOpError;
|
|
3770
|
+
/** Get Webhosting network status */
|
|
3771
|
+
export const getHostingPrivateDatabaseWebhostingNetwork: API.OperationMethod<
|
|
3772
|
+
GetHostingPrivateDatabaseWebhostingNetworkRequest,
|
|
3773
|
+
HostingPrivateDatabaseWebhostingNetwork,
|
|
3774
|
+
GetHostingPrivateDatabaseWebhostingNetworkError,
|
|
3775
|
+
OvhOpContext
|
|
3776
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3777
|
+
input: GetHostingPrivateDatabaseWebhostingNetworkRequest,
|
|
3778
|
+
output: HostingPrivateDatabaseWebhostingNetwork,
|
|
3779
|
+
errors: [UnknownOvhError],
|
|
3780
|
+
protocol: OvhProtocol,
|
|
3781
|
+
retry: Retry.Retry,
|
|
3782
|
+
}));
|
|
3783
|
+
|
|
3784
|
+
export type GetHostingPrivateDatabaseWhitelistError = OvhOpError;
|
|
3785
|
+
/** Get whitelist properties */
|
|
3786
|
+
export const getHostingPrivateDatabaseWhitelist: API.OperationMethod<
|
|
3787
|
+
GetHostingPrivateDatabaseWhitelistRequest,
|
|
3788
|
+
HostingPrivateDatabaseWhitelist,
|
|
3789
|
+
GetHostingPrivateDatabaseWhitelistError,
|
|
3790
|
+
OvhOpContext
|
|
3791
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3792
|
+
input: GetHostingPrivateDatabaseWhitelistRequest,
|
|
3793
|
+
output: HostingPrivateDatabaseWhitelist,
|
|
3794
|
+
errors: [UnknownOvhError],
|
|
3795
|
+
protocol: OvhProtocol,
|
|
3796
|
+
retry: Retry.Retry,
|
|
3797
|
+
}));
|
|
3798
|
+
|
|
3799
|
+
export type ImportHostingPrivateDatabaseDatabaseError = OvhOpError;
|
|
3800
|
+
/** Import a database into a Web Cloud Database */
|
|
3801
|
+
export const importHostingPrivateDatabaseDatabase: API.OperationMethod<
|
|
3802
|
+
ImportHostingPrivateDatabaseDatabaseRequest,
|
|
3803
|
+
HostingPrivateDatabaseTask,
|
|
3804
|
+
ImportHostingPrivateDatabaseDatabaseError,
|
|
3805
|
+
OvhOpContext
|
|
3806
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3807
|
+
input: ImportHostingPrivateDatabaseDatabaseRequest,
|
|
3808
|
+
output: HostingPrivateDatabaseTask,
|
|
3809
|
+
errors: [UnknownOvhError],
|
|
3810
|
+
protocol: OvhProtocol,
|
|
3811
|
+
retry: Retry.Retry,
|
|
3812
|
+
}));
|
|
3813
|
+
|
|
3814
|
+
export type ListHostingPrivateDatabaseError = OvhOpError;
|
|
3815
|
+
/** List available Web Cloud Databases */
|
|
3816
|
+
export const listHostingPrivateDatabase: API.OperationMethod<
|
|
3817
|
+
ListHostingPrivateDatabaseRequest,
|
|
3818
|
+
ListHostingPrivateDatabaseResponse,
|
|
3819
|
+
ListHostingPrivateDatabaseError,
|
|
3820
|
+
OvhOpContext
|
|
3821
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3822
|
+
input: ListHostingPrivateDatabaseRequest,
|
|
3823
|
+
output: ListHostingPrivateDatabaseResponse,
|
|
3824
|
+
errors: [UnknownOvhError],
|
|
3825
|
+
protocol: OvhProtocol,
|
|
3826
|
+
retry: Retry.Retry,
|
|
3827
|
+
}));
|
|
3828
|
+
|
|
3829
|
+
export type ListHostingPrivateDatabaseAvailableOrderCapacitiesError =
|
|
3830
|
+
OvhOpError;
|
|
3831
|
+
/** Get available order capacities */
|
|
3832
|
+
export const listHostingPrivateDatabaseAvailableOrderCapacities: API.OperationMethod<
|
|
3833
|
+
ListHostingPrivateDatabaseAvailableOrderCapacitiesRequest,
|
|
3834
|
+
HostingPrivateDatabaseAvailableOrderCapacities,
|
|
3835
|
+
ListHostingPrivateDatabaseAvailableOrderCapacitiesError,
|
|
3836
|
+
OvhOpContext
|
|
3837
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3838
|
+
input: ListHostingPrivateDatabaseAvailableOrderCapacitiesRequest,
|
|
3839
|
+
output: HostingPrivateDatabaseAvailableOrderCapacities,
|
|
3840
|
+
errors: [UnknownOvhError],
|
|
3841
|
+
protocol: OvhProtocol,
|
|
3842
|
+
retry: Retry.Retry,
|
|
3843
|
+
}));
|
|
3844
|
+
|
|
3845
|
+
export type ListHostingPrivateDatabaseAvailableVersionsError = OvhOpError;
|
|
3846
|
+
/** Get the availables versions for this private database */
|
|
3847
|
+
export const listHostingPrivateDatabaseAvailableVersions: API.OperationMethod<
|
|
3848
|
+
ListHostingPrivateDatabaseAvailableVersionsRequest,
|
|
3849
|
+
ListHostingPrivateDatabaseAvailableVersionsResponse,
|
|
3850
|
+
ListHostingPrivateDatabaseAvailableVersionsError,
|
|
3851
|
+
OvhOpContext
|
|
3852
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3853
|
+
input: ListHostingPrivateDatabaseAvailableVersionsRequest,
|
|
3854
|
+
output: ListHostingPrivateDatabaseAvailableVersionsResponse,
|
|
3855
|
+
errors: [UnknownOvhError],
|
|
3856
|
+
protocol: OvhProtocol,
|
|
3857
|
+
retry: Retry.Retry,
|
|
3858
|
+
}));
|
|
3859
|
+
|
|
3860
|
+
export type ListHostingPrivateDatabaseConfigError = OvhOpError;
|
|
3861
|
+
/** Get the current configuration for this Web Cloud Database */
|
|
3862
|
+
export const listHostingPrivateDatabaseConfig: API.OperationMethod<
|
|
3863
|
+
ListHostingPrivateDatabaseConfigRequest,
|
|
3864
|
+
HostingPrivateDatabaseConfigs,
|
|
3865
|
+
ListHostingPrivateDatabaseConfigError,
|
|
3866
|
+
OvhOpContext
|
|
3867
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3868
|
+
input: ListHostingPrivateDatabaseConfigRequest,
|
|
3869
|
+
output: HostingPrivateDatabaseConfigs,
|
|
3870
|
+
errors: [UnknownOvhError],
|
|
3871
|
+
protocol: OvhProtocol,
|
|
3872
|
+
retry: Retry.Retry,
|
|
3873
|
+
}));
|
|
3874
|
+
|
|
3875
|
+
export type ListHostingPrivateDatabaseCpuThrottleError = OvhOpError;
|
|
3876
|
+
/** List of privatesql CPU throttle */
|
|
3877
|
+
export const listHostingPrivateDatabaseCpuThrottle: API.OperationMethod<
|
|
3878
|
+
ListHostingPrivateDatabaseCpuThrottleRequest,
|
|
3879
|
+
ListHostingPrivateDatabaseCpuThrottleResponse,
|
|
3880
|
+
ListHostingPrivateDatabaseCpuThrottleError,
|
|
3881
|
+
OvhOpContext
|
|
3882
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3883
|
+
input: ListHostingPrivateDatabaseCpuThrottleRequest,
|
|
3884
|
+
output: ListHostingPrivateDatabaseCpuThrottleResponse,
|
|
3885
|
+
errors: [UnknownOvhError],
|
|
3886
|
+
protocol: OvhProtocol,
|
|
3887
|
+
retry: Retry.Retry,
|
|
3888
|
+
}));
|
|
3889
|
+
|
|
3890
|
+
export type ListHostingPrivateDatabaseDatabaseError = OvhOpError;
|
|
3891
|
+
/** List databases on a privateDatabase */
|
|
3892
|
+
export const listHostingPrivateDatabaseDatabase: API.OperationMethod<
|
|
3893
|
+
ListHostingPrivateDatabaseDatabaseRequest,
|
|
3894
|
+
ListHostingPrivateDatabaseDatabaseResponse,
|
|
3895
|
+
ListHostingPrivateDatabaseDatabaseError,
|
|
3896
|
+
OvhOpContext
|
|
3897
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3898
|
+
input: ListHostingPrivateDatabaseDatabaseRequest,
|
|
3899
|
+
output: ListHostingPrivateDatabaseDatabaseResponse,
|
|
3900
|
+
errors: [UnknownOvhError],
|
|
3901
|
+
protocol: OvhProtocol,
|
|
3902
|
+
retry: Retry.Retry,
|
|
3903
|
+
}));
|
|
3904
|
+
|
|
3905
|
+
export type ListHostingPrivateDatabaseDatabaseCopyError = OvhOpError;
|
|
3906
|
+
/** List database copy of a privateDatabase */
|
|
3907
|
+
export const listHostingPrivateDatabaseDatabaseCopy: API.OperationMethod<
|
|
3908
|
+
ListHostingPrivateDatabaseDatabaseCopyRequest,
|
|
3909
|
+
ListHostingPrivateDatabaseDatabaseCopyResponse,
|
|
3910
|
+
ListHostingPrivateDatabaseDatabaseCopyError,
|
|
3911
|
+
OvhOpContext
|
|
3912
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3913
|
+
input: ListHostingPrivateDatabaseDatabaseCopyRequest,
|
|
3914
|
+
output: ListHostingPrivateDatabaseDatabaseCopyResponse,
|
|
3915
|
+
errors: [UnknownOvhError],
|
|
3916
|
+
protocol: OvhProtocol,
|
|
3917
|
+
retry: Retry.Retry,
|
|
3918
|
+
}));
|
|
3919
|
+
|
|
3920
|
+
export type ListHostingPrivateDatabaseDatabaseDumpError = OvhOpError;
|
|
3921
|
+
/** Get all database dump from a Web Cloud Database */
|
|
3922
|
+
export const listHostingPrivateDatabaseDatabaseDump: API.OperationMethod<
|
|
3923
|
+
ListHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3924
|
+
ListHostingPrivateDatabaseDatabaseDumpResponse,
|
|
3925
|
+
ListHostingPrivateDatabaseDatabaseDumpError,
|
|
3926
|
+
OvhOpContext
|
|
3927
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3928
|
+
input: ListHostingPrivateDatabaseDatabaseDumpRequest,
|
|
3929
|
+
output: ListHostingPrivateDatabaseDatabaseDumpResponse,
|
|
3930
|
+
errors: [UnknownOvhError],
|
|
3931
|
+
protocol: OvhProtocol,
|
|
3932
|
+
retry: Retry.Retry,
|
|
3933
|
+
}));
|
|
3934
|
+
|
|
3935
|
+
export type ListHostingPrivateDatabaseDatabaseExtensionError = OvhOpError;
|
|
3936
|
+
/** List extensions available for a Webcloud Database */
|
|
3937
|
+
export const listHostingPrivateDatabaseDatabaseExtension: API.OperationMethod<
|
|
3938
|
+
ListHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3939
|
+
ListHostingPrivateDatabaseDatabaseExtensionResponse,
|
|
3940
|
+
ListHostingPrivateDatabaseDatabaseExtensionError,
|
|
3941
|
+
OvhOpContext
|
|
3942
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3943
|
+
input: ListHostingPrivateDatabaseDatabaseExtensionRequest,
|
|
3944
|
+
output: ListHostingPrivateDatabaseDatabaseExtensionResponse,
|
|
3945
|
+
errors: [UnknownOvhError],
|
|
3946
|
+
protocol: OvhProtocol,
|
|
3947
|
+
retry: Retry.Retry,
|
|
3948
|
+
}));
|
|
3949
|
+
|
|
3950
|
+
export type ListHostingPrivateDatabaseDumpError = OvhOpError;
|
|
3951
|
+
/** Get all database dump from a Web Cloud Database */
|
|
3952
|
+
export const listHostingPrivateDatabaseDump: API.OperationMethod<
|
|
3953
|
+
ListHostingPrivateDatabaseDumpRequest,
|
|
3954
|
+
ListHostingPrivateDatabaseDumpResponse,
|
|
3955
|
+
ListHostingPrivateDatabaseDumpError,
|
|
3956
|
+
OvhOpContext
|
|
3957
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3958
|
+
input: ListHostingPrivateDatabaseDumpRequest,
|
|
3959
|
+
output: ListHostingPrivateDatabaseDumpResponse,
|
|
3960
|
+
errors: [UnknownOvhError],
|
|
3961
|
+
protocol: OvhProtocol,
|
|
3962
|
+
retry: Retry.Retry,
|
|
3963
|
+
}));
|
|
3964
|
+
|
|
3965
|
+
export type ListHostingPrivateDatabaseLogKindError = OvhOpError;
|
|
3966
|
+
/** List available log kinds */
|
|
3967
|
+
export const listHostingPrivateDatabaseLogKind: API.OperationMethod<
|
|
3968
|
+
ListHostingPrivateDatabaseLogKindRequest,
|
|
3969
|
+
ListHostingPrivateDatabaseLogKindResponse,
|
|
3970
|
+
ListHostingPrivateDatabaseLogKindError,
|
|
3971
|
+
OvhOpContext
|
|
3972
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3973
|
+
input: ListHostingPrivateDatabaseLogKindRequest,
|
|
3974
|
+
output: ListHostingPrivateDatabaseLogKindResponse,
|
|
3975
|
+
errors: [UnknownOvhError],
|
|
3976
|
+
protocol: OvhProtocol,
|
|
3977
|
+
retry: Retry.Retry,
|
|
3978
|
+
}));
|
|
3979
|
+
|
|
3980
|
+
export type ListHostingPrivateDatabaseLogSubscriptionError = OvhOpError;
|
|
3981
|
+
/** List subscription IDs for Web Cloud Database */
|
|
3982
|
+
export const listHostingPrivateDatabaseLogSubscription: API.OperationMethod<
|
|
3983
|
+
ListHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3984
|
+
ListHostingPrivateDatabaseLogSubscriptionResponse,
|
|
3985
|
+
ListHostingPrivateDatabaseLogSubscriptionError,
|
|
3986
|
+
OvhOpContext
|
|
3987
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3988
|
+
input: ListHostingPrivateDatabaseLogSubscriptionRequest,
|
|
3989
|
+
output: ListHostingPrivateDatabaseLogSubscriptionResponse,
|
|
3990
|
+
errors: [UnknownOvhError],
|
|
3991
|
+
protocol: OvhProtocol,
|
|
3992
|
+
retry: Retry.Retry,
|
|
3993
|
+
}));
|
|
3994
|
+
|
|
3995
|
+
export type ListHostingPrivateDatabaseOomError = OvhOpError;
|
|
3996
|
+
/** List of privatesql OOM kill */
|
|
3997
|
+
export const listHostingPrivateDatabaseOom: API.OperationMethod<
|
|
3998
|
+
ListHostingPrivateDatabaseOomRequest,
|
|
3999
|
+
ListHostingPrivateDatabaseOomResponse,
|
|
4000
|
+
ListHostingPrivateDatabaseOomError,
|
|
4001
|
+
OvhOpContext
|
|
4002
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4003
|
+
input: ListHostingPrivateDatabaseOomRequest,
|
|
4004
|
+
output: ListHostingPrivateDatabaseOomResponse,
|
|
4005
|
+
errors: [UnknownOvhError],
|
|
4006
|
+
protocol: OvhProtocol,
|
|
4007
|
+
retry: Retry.Retry,
|
|
4008
|
+
}));
|
|
4009
|
+
|
|
4010
|
+
export type ListHostingPrivateDatabaseTasksError = OvhOpError;
|
|
4011
|
+
/** List tasks for a Webcloud Database */
|
|
4012
|
+
export const listHostingPrivateDatabaseTasks: API.OperationMethod<
|
|
4013
|
+
ListHostingPrivateDatabaseTasksRequest,
|
|
4014
|
+
ListHostingPrivateDatabaseTasksResponse,
|
|
4015
|
+
ListHostingPrivateDatabaseTasksError,
|
|
4016
|
+
OvhOpContext
|
|
4017
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4018
|
+
input: ListHostingPrivateDatabaseTasksRequest,
|
|
4019
|
+
output: ListHostingPrivateDatabaseTasksResponse,
|
|
4020
|
+
errors: [UnknownOvhError],
|
|
4021
|
+
protocol: OvhProtocol,
|
|
4022
|
+
retry: Retry.Retry,
|
|
4023
|
+
}));
|
|
4024
|
+
|
|
4025
|
+
export type ListHostingPrivateDatabaseUserError = OvhOpError;
|
|
4026
|
+
/** List users on a Web Cloud Database */
|
|
4027
|
+
export const listHostingPrivateDatabaseUser: API.OperationMethod<
|
|
4028
|
+
ListHostingPrivateDatabaseUserRequest,
|
|
4029
|
+
ListHostingPrivateDatabaseUserResponse,
|
|
4030
|
+
ListHostingPrivateDatabaseUserError,
|
|
4031
|
+
OvhOpContext
|
|
4032
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4033
|
+
input: ListHostingPrivateDatabaseUserRequest,
|
|
4034
|
+
output: ListHostingPrivateDatabaseUserResponse,
|
|
4035
|
+
errors: [UnknownOvhError],
|
|
4036
|
+
protocol: OvhProtocol,
|
|
4037
|
+
retry: Retry.Retry,
|
|
4038
|
+
}));
|
|
4039
|
+
|
|
4040
|
+
export type ListHostingPrivateDatabaseUserGrantError = OvhOpError;
|
|
4041
|
+
/** Get all information about the grants for a user in a Web Cloud Database */
|
|
4042
|
+
export const listHostingPrivateDatabaseUserGrant: API.OperationMethod<
|
|
4043
|
+
ListHostingPrivateDatabaseUserGrantRequest,
|
|
4044
|
+
ListHostingPrivateDatabaseUserGrantResponse,
|
|
4045
|
+
ListHostingPrivateDatabaseUserGrantError,
|
|
4046
|
+
OvhOpContext
|
|
4047
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4048
|
+
input: ListHostingPrivateDatabaseUserGrantRequest,
|
|
4049
|
+
output: ListHostingPrivateDatabaseUserGrantResponse,
|
|
4050
|
+
errors: [UnknownOvhError],
|
|
4051
|
+
protocol: OvhProtocol,
|
|
4052
|
+
retry: Retry.Retry,
|
|
4053
|
+
}));
|
|
4054
|
+
|
|
4055
|
+
export type ListHostingPrivateDatabaseWebsError = OvhOpError;
|
|
4056
|
+
/** List linked webs */
|
|
4057
|
+
export const listHostingPrivateDatabaseWebs: API.OperationMethod<
|
|
4058
|
+
ListHostingPrivateDatabaseWebsRequest,
|
|
4059
|
+
ListHostingPrivateDatabaseWebsResponse,
|
|
4060
|
+
ListHostingPrivateDatabaseWebsError,
|
|
4061
|
+
OvhOpContext
|
|
4062
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4063
|
+
input: ListHostingPrivateDatabaseWebsRequest,
|
|
4064
|
+
output: ListHostingPrivateDatabaseWebsResponse,
|
|
4065
|
+
errors: [UnknownOvhError],
|
|
4066
|
+
protocol: OvhProtocol,
|
|
4067
|
+
retry: Retry.Retry,
|
|
4068
|
+
}));
|
|
4069
|
+
|
|
4070
|
+
export type ListHostingPrivateDatabaseWhitelistError = OvhOpError;
|
|
4071
|
+
/** List whitelists on a Web Cloud Database */
|
|
4072
|
+
export const listHostingPrivateDatabaseWhitelist: API.OperationMethod<
|
|
4073
|
+
ListHostingPrivateDatabaseWhitelistRequest,
|
|
4074
|
+
ListHostingPrivateDatabaseWhitelistResponse,
|
|
4075
|
+
ListHostingPrivateDatabaseWhitelistError,
|
|
4076
|
+
OvhOpContext
|
|
4077
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4078
|
+
input: ListHostingPrivateDatabaseWhitelistRequest,
|
|
4079
|
+
output: ListHostingPrivateDatabaseWhitelistResponse,
|
|
4080
|
+
errors: [UnknownOvhError],
|
|
4081
|
+
protocol: OvhProtocol,
|
|
4082
|
+
retry: Retry.Retry,
|
|
4083
|
+
}));
|
|
4084
|
+
|
|
4085
|
+
export type PutHostingPrivateDatabaseError = OvhOpError;
|
|
4086
|
+
/** Alter a Web Cloud Database properties */
|
|
4087
|
+
export const putHostingPrivateDatabase: API.OperationMethod<
|
|
4088
|
+
PutHostingPrivateDatabaseRequest,
|
|
4089
|
+
PutHostingPrivateDatabaseResponse,
|
|
4090
|
+
PutHostingPrivateDatabaseError,
|
|
4091
|
+
OvhOpContext
|
|
4092
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4093
|
+
input: PutHostingPrivateDatabaseRequest,
|
|
4094
|
+
output: PutHostingPrivateDatabaseResponse,
|
|
4095
|
+
errors: [UnknownOvhError],
|
|
4096
|
+
protocol: OvhProtocol,
|
|
4097
|
+
retry: Retry.Retry,
|
|
4098
|
+
}));
|
|
4099
|
+
|
|
4100
|
+
export type PutHostingPrivateDatabaseServiceInfosError = OvhOpError;
|
|
4101
|
+
/** Update service information */
|
|
4102
|
+
export const putHostingPrivateDatabaseServiceInfos: API.OperationMethod<
|
|
4103
|
+
PutHostingPrivateDatabaseServiceInfosRequest,
|
|
4104
|
+
PutHostingPrivateDatabaseServiceInfosResponse,
|
|
4105
|
+
PutHostingPrivateDatabaseServiceInfosError,
|
|
4106
|
+
OvhOpContext
|
|
4107
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4108
|
+
input: PutHostingPrivateDatabaseServiceInfosRequest,
|
|
4109
|
+
output: PutHostingPrivateDatabaseServiceInfosResponse,
|
|
4110
|
+
errors: [UnknownOvhError],
|
|
4111
|
+
protocol: OvhProtocol,
|
|
4112
|
+
retry: Retry.Retry,
|
|
4113
|
+
}));
|
|
4114
|
+
|
|
4115
|
+
export type PutHostingPrivateDatabaseWhitelistError = OvhOpError;
|
|
4116
|
+
/** Update an IP whitelist in a Web Cloud Database */
|
|
4117
|
+
export const putHostingPrivateDatabaseWhitelist: API.OperationMethod<
|
|
4118
|
+
PutHostingPrivateDatabaseWhitelistRequest,
|
|
4119
|
+
PutHostingPrivateDatabaseWhitelistResponse,
|
|
4120
|
+
PutHostingPrivateDatabaseWhitelistError,
|
|
4121
|
+
OvhOpContext
|
|
4122
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4123
|
+
input: PutHostingPrivateDatabaseWhitelistRequest,
|
|
4124
|
+
output: PutHostingPrivateDatabaseWhitelistResponse,
|
|
4125
|
+
errors: [UnknownOvhError],
|
|
4126
|
+
protocol: OvhProtocol,
|
|
4127
|
+
retry: Retry.Retry,
|
|
4128
|
+
}));
|
|
4129
|
+
|
|
4130
|
+
export type RestartHostingPrivateDatabaseError = OvhOpError;
|
|
4131
|
+
/** Restart the Web Cloud Database */
|
|
4132
|
+
export const restartHostingPrivateDatabase: API.OperationMethod<
|
|
4133
|
+
RestartHostingPrivateDatabaseRequest,
|
|
4134
|
+
HostingPrivateDatabaseTask,
|
|
4135
|
+
RestartHostingPrivateDatabaseError,
|
|
4136
|
+
OvhOpContext
|
|
4137
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4138
|
+
input: RestartHostingPrivateDatabaseRequest,
|
|
4139
|
+
output: HostingPrivateDatabaseTask,
|
|
4140
|
+
errors: [UnknownOvhError],
|
|
4141
|
+
protocol: OvhProtocol,
|
|
4142
|
+
retry: Retry.Retry,
|
|
4143
|
+
}));
|
|
4144
|
+
|
|
4145
|
+
export type RestoreHostingPrivateDatabaseDatabaseDumpError = OvhOpError;
|
|
4146
|
+
/** Request the restore from this dump */
|
|
4147
|
+
export const restoreHostingPrivateDatabaseDatabaseDump: API.OperationMethod<
|
|
4148
|
+
RestoreHostingPrivateDatabaseDatabaseDumpRequest,
|
|
4149
|
+
HostingPrivateDatabaseTask,
|
|
4150
|
+
RestoreHostingPrivateDatabaseDatabaseDumpError,
|
|
4151
|
+
OvhOpContext
|
|
4152
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4153
|
+
input: RestoreHostingPrivateDatabaseDatabaseDumpRequest,
|
|
4154
|
+
output: HostingPrivateDatabaseTask,
|
|
4155
|
+
errors: [UnknownOvhError],
|
|
4156
|
+
protocol: OvhProtocol,
|
|
4157
|
+
retry: Retry.Retry,
|
|
4158
|
+
}));
|
|
4159
|
+
|
|
4160
|
+
export type RestoreHostingPrivateDatabaseDumpError = OvhOpError;
|
|
4161
|
+
/** Restore a database dump into a Web Cloud Database */
|
|
4162
|
+
export const restoreHostingPrivateDatabaseDump: API.OperationMethod<
|
|
4163
|
+
RestoreHostingPrivateDatabaseDumpRequest,
|
|
4164
|
+
HostingPrivateDatabaseTask,
|
|
4165
|
+
RestoreHostingPrivateDatabaseDumpError,
|
|
4166
|
+
OvhOpContext
|
|
4167
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4168
|
+
input: RestoreHostingPrivateDatabaseDumpRequest,
|
|
4169
|
+
output: HostingPrivateDatabaseTask,
|
|
4170
|
+
errors: [UnknownOvhError],
|
|
4171
|
+
protocol: OvhProtocol,
|
|
4172
|
+
retry: Retry.Retry,
|
|
4173
|
+
}));
|
|
4174
|
+
|
|
4175
|
+
export type TerminateHostingPrivateDatabaseError = OvhOpError;
|
|
4176
|
+
/** Ask for the termination of your service */
|
|
4177
|
+
export const terminateHostingPrivateDatabase: API.OperationMethod<
|
|
4178
|
+
TerminateHostingPrivateDatabaseRequest,
|
|
4179
|
+
TerminateHostingPrivateDatabaseResponse,
|
|
4180
|
+
TerminateHostingPrivateDatabaseError,
|
|
4181
|
+
OvhOpContext
|
|
4182
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4183
|
+
input: TerminateHostingPrivateDatabaseRequest,
|
|
4184
|
+
output: TerminateHostingPrivateDatabaseResponse,
|
|
4185
|
+
errors: [UnknownOvhError],
|
|
4186
|
+
protocol: OvhProtocol,
|
|
4187
|
+
retry: Retry.Retry,
|
|
4188
|
+
}));
|
|
4189
|
+
|
|
4190
|
+
export type UpdateHostingPrivateDatabaseConfigError = OvhOpError;
|
|
4191
|
+
/** Update the configuration of this Web Cloud Database */
|
|
4192
|
+
export const updateHostingPrivateDatabaseConfig: API.OperationMethod<
|
|
4193
|
+
UpdateHostingPrivateDatabaseConfigRequest,
|
|
4194
|
+
HostingPrivateDatabaseConfigs,
|
|
4195
|
+
UpdateHostingPrivateDatabaseConfigError,
|
|
4196
|
+
OvhOpContext
|
|
4197
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4198
|
+
input: UpdateHostingPrivateDatabaseConfigRequest,
|
|
4199
|
+
output: HostingPrivateDatabaseConfigs,
|
|
4200
|
+
errors: [UnknownOvhError],
|
|
4201
|
+
protocol: OvhProtocol,
|
|
4202
|
+
retry: Retry.Retry,
|
|
4203
|
+
}));
|
|
4204
|
+
|
|
4205
|
+
export type UpdateHostingPrivateDatabaseUserGrantError = OvhOpError;
|
|
4206
|
+
/** Update the permissions of a grant for a user on a Web Cloud Database */
|
|
4207
|
+
export const updateHostingPrivateDatabaseUserGrant: API.OperationMethod<
|
|
4208
|
+
UpdateHostingPrivateDatabaseUserGrantRequest,
|
|
4209
|
+
HostingPrivateDatabaseTask,
|
|
4210
|
+
UpdateHostingPrivateDatabaseUserGrantError,
|
|
4211
|
+
OvhOpContext
|
|
4212
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
4213
|
+
input: UpdateHostingPrivateDatabaseUserGrantRequest,
|
|
4214
|
+
output: HostingPrivateDatabaseTask,
|
|
4215
|
+
errors: [UnknownOvhError],
|
|
4216
|
+
protocol: OvhProtocol,
|
|
4217
|
+
retry: Retry.Retry,
|
|
4218
|
+
}));
|