@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.
Files changed (192) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +38 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +54 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +36 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +26 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +22 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +22 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +8 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +8 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +60 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +32 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +32 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/baremetal.d.ts +3551 -0
  27. package/lib/services/baremetal.d.ts.map +1 -0
  28. package/lib/services/baremetal.js +4200 -0
  29. package/lib/services/baremetal.js.map +1 -0
  30. package/lib/services/cloud.d.ts +26011 -0
  31. package/lib/services/cloud.d.ts.map +1 -0
  32. package/lib/services/cloud.js +31119 -0
  33. package/lib/services/cloud.js.map +1 -0
  34. package/lib/services/cloud_v2.d.ts +5642 -0
  35. package/lib/services/cloud_v2.d.ts.map +1 -0
  36. package/lib/services/cloud_v2.js +5760 -0
  37. package/lib/services/cloud_v2.js.map +1 -0
  38. package/lib/services/dedicatedceph.d.ts +747 -0
  39. package/lib/services/dedicatedceph.d.ts.map +1 -0
  40. package/lib/services/dedicatedceph.js +962 -0
  41. package/lib/services/dedicatedceph.js.map +1 -0
  42. package/lib/services/dedicatednasha.d.ts +755 -0
  43. package/lib/services/dedicatednasha.d.ts.map +1 -0
  44. package/lib/services/dedicatednasha.js +967 -0
  45. package/lib/services/dedicatednasha.js.map +1 -0
  46. package/lib/services/domain.d.ts +2995 -0
  47. package/lib/services/domain.d.ts.map +1 -0
  48. package/lib/services/domain.js +3080 -0
  49. package/lib/services/domain.js.map +1 -0
  50. package/lib/services/emaildomain.d.ts +1913 -0
  51. package/lib/services/emaildomain.d.ts.map +1 -0
  52. package/lib/services/emaildomain.js +2550 -0
  53. package/lib/services/emaildomain.js.map +1 -0
  54. package/lib/services/emailmxplan.d.ts +1012 -0
  55. package/lib/services/emailmxplan.d.ts.map +1 -0
  56. package/lib/services/emailmxplan.js +1155 -0
  57. package/lib/services/emailmxplan.js.map +1 -0
  58. package/lib/services/emailpro.d.ts +1287 -0
  59. package/lib/services/emailpro.d.ts.map +1 -0
  60. package/lib/services/emailpro.js +1471 -0
  61. package/lib/services/emailpro.js.map +1 -0
  62. package/lib/services/hostingprivatedatabase.d.ts +1402 -0
  63. package/lib/services/hostingprivatedatabase.d.ts.map +1 -0
  64. package/lib/services/hostingprivatedatabase.js +1833 -0
  65. package/lib/services/hostingprivatedatabase.js.map +1 -0
  66. package/lib/services/iam.d.ts +829 -0
  67. package/lib/services/iam.d.ts.map +1 -0
  68. package/lib/services/iam.js +793 -0
  69. package/lib/services/iam.js.map +1 -0
  70. package/lib/services/index.d.ts +31 -0
  71. package/lib/services/index.d.ts.map +1 -0
  72. package/lib/services/index.js +32 -0
  73. package/lib/services/index.js.map +1 -0
  74. package/lib/services/ip.d.ts +1417 -0
  75. package/lib/services/ip.d.ts.map +1 -0
  76. package/lib/services/ip.js +1691 -0
  77. package/lib/services/ip.js.map +1 -0
  78. package/lib/services/iploadbalancing.d.ts +3059 -0
  79. package/lib/services/iploadbalancing.d.ts.map +1 -0
  80. package/lib/services/iploadbalancing.js +3554 -0
  81. package/lib/services/iploadbalancing.js.map +1 -0
  82. package/lib/services/ldp.d.ts +2492 -0
  83. package/lib/services/ldp.d.ts.map +1 -0
  84. package/lib/services/ldp.js +3072 -0
  85. package/lib/services/ldp.js.map +1 -0
  86. package/lib/services/me.d.ts +7511 -0
  87. package/lib/services/me.d.ts.map +1 -0
  88. package/lib/services/me.js +8878 -0
  89. package/lib/services/me.js.map +1 -0
  90. package/lib/services/overthebox.d.ts +981 -0
  91. package/lib/services/overthebox.d.ts.map +1 -0
  92. package/lib/services/overthebox.js +1122 -0
  93. package/lib/services/overthebox.js.map +1 -0
  94. package/lib/services/ovhcloudconnect.d.ts +1123 -0
  95. package/lib/services/ovhcloudconnect.d.ts.map +1 -0
  96. package/lib/services/ovhcloudconnect.js +1353 -0
  97. package/lib/services/ovhcloudconnect.js.map +1 -0
  98. package/lib/services/packxdsl.d.ts +1583 -0
  99. package/lib/services/packxdsl.d.ts.map +1 -0
  100. package/lib/services/packxdsl.js +1791 -0
  101. package/lib/services/packxdsl.js.map +1 -0
  102. package/lib/services/sms.d.ts +2602 -0
  103. package/lib/services/sms.d.ts.map +1 -0
  104. package/lib/services/sms.js +2995 -0
  105. package/lib/services/sms.js.map +1 -0
  106. package/lib/services/sslgateway.d.ts +493 -0
  107. package/lib/services/sslgateway.d.ts.map +1 -0
  108. package/lib/services/sslgateway.js +569 -0
  109. package/lib/services/sslgateway.js.map +1 -0
  110. package/lib/services/storagenetapp.d.ts +859 -0
  111. package/lib/services/storagenetapp.d.ts.map +1 -0
  112. package/lib/services/storagenetapp.js +1022 -0
  113. package/lib/services/storagenetapp.js.map +1 -0
  114. package/lib/services/support.d.ts +233 -0
  115. package/lib/services/support.d.ts.map +1 -0
  116. package/lib/services/support.js +237 -0
  117. package/lib/services/support.js.map +1 -0
  118. package/lib/services/telephony.d.ts +10825 -0
  119. package/lib/services/telephony.d.ts.map +1 -0
  120. package/lib/services/telephony.js +14894 -0
  121. package/lib/services/telephony.js.map +1 -0
  122. package/lib/services/vmwareclouddirectorbackup.d.ts +784 -0
  123. package/lib/services/vmwareclouddirectorbackup.d.ts.map +1 -0
  124. package/lib/services/vmwareclouddirectorbackup.js +842 -0
  125. package/lib/services/vmwareclouddirectorbackup.js.map +1 -0
  126. package/lib/services/vmwareclouddirectororganization.d.ts +784 -0
  127. package/lib/services/vmwareclouddirectororganization.d.ts.map +1 -0
  128. package/lib/services/vmwareclouddirectororganization.js +842 -0
  129. package/lib/services/vmwareclouddirectororganization.js.map +1 -0
  130. package/lib/services/vps.d.ts +1579 -0
  131. package/lib/services/vps.d.ts.map +1 -0
  132. package/lib/services/vps.js +1914 -0
  133. package/lib/services/vps.js.map +1 -0
  134. package/lib/services/vrack.d.ts +1204 -0
  135. package/lib/services/vrack.d.ts.map +1 -0
  136. package/lib/services/vrack.js +1627 -0
  137. package/lib/services/vrack.js.map +1 -0
  138. package/lib/services/vrackservices.d.ts +394 -0
  139. package/lib/services/vrackservices.d.ts.map +1 -0
  140. package/lib/services/vrackservices.js +355 -0
  141. package/lib/services/vrackservices.js.map +1 -0
  142. package/lib/services/webhosting.d.ts +3986 -0
  143. package/lib/services/webhosting.d.ts.map +1 -0
  144. package/lib/services/webhosting.js +4527 -0
  145. package/lib/services/webhosting.js.map +1 -0
  146. package/lib/services/xdsl.d.ts +3433 -0
  147. package/lib/services/xdsl.d.ts.map +1 -0
  148. package/lib/services/xdsl.js +3682 -0
  149. package/lib/services/xdsl.js.map +1 -0
  150. package/lib/traits.d.ts +11 -0
  151. package/lib/traits.d.ts.map +1 -0
  152. package/lib/traits.js +11 -0
  153. package/lib/traits.js.map +1 -0
  154. package/package.json +77 -6
  155. package/src/credentials.ts +77 -0
  156. package/src/errors.ts +50 -0
  157. package/src/index.ts +21 -0
  158. package/src/pagination.ts +7 -0
  159. package/src/protocol.ts +86 -0
  160. package/src/retry.ts +54 -0
  161. package/src/services/baremetal.ts +10954 -0
  162. package/src/services/cloud.ts +75508 -0
  163. package/src/services/cloud_v2.ts +14751 -0
  164. package/src/services/dedicatedceph.ts +2233 -0
  165. package/src/services/dedicatednasha.ts +2269 -0
  166. package/src/services/domain.ts +7998 -0
  167. package/src/services/emaildomain.ts +5751 -0
  168. package/src/services/emailmxplan.ts +2764 -0
  169. package/src/services/emailpro.ts +3519 -0
  170. package/src/services/hostingprivatedatabase.ts +4218 -0
  171. package/src/services/iam.ts +2060 -0
  172. package/src/services/index.ts +31 -0
  173. package/src/services/ip.ts +4462 -0
  174. package/src/services/iploadbalancing.ts +8422 -0
  175. package/src/services/ldp.ts +7274 -0
  176. package/src/services/me.ts +21720 -0
  177. package/src/services/overthebox.ts +2693 -0
  178. package/src/services/ovhcloudconnect.ts +3226 -0
  179. package/src/services/packxdsl.ts +4623 -0
  180. package/src/services/sms.ts +7255 -0
  181. package/src/services/sslgateway.ts +1408 -0
  182. package/src/services/storagenetapp.ts +2433 -0
  183. package/src/services/support.ts +598 -0
  184. package/src/services/telephony.ts +32941 -0
  185. package/src/services/vmwareclouddirectorbackup.ts +2171 -0
  186. package/src/services/vmwareclouddirectororganization.ts +2171 -0
  187. package/src/services/vps.ts +5134 -0
  188. package/src/services/vrack.ts +3730 -0
  189. package/src/services/vrackservices.ts +939 -0
  190. package/src/services/webhosting.ts +11290 -0
  191. package/src/services/xdsl.ts +9278 -0
  192. package/src/traits.ts +44 -0
@@ -0,0 +1,2233 @@
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 API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.ts";
5
+ import {
6
+ OvhProtocol,
7
+ type OvhOpError,
8
+ type OvhOpContext,
9
+ } from "../protocol.ts";
10
+ import { UnknownOvhError } from "../errors.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { OvhOpError, OvhOpContext };
14
+
15
+ /** All future uses you can provide for a service termination */
16
+ export type ServiceTerminationFutureUseEnum =
17
+ | "NOT_REPLACING_SERVICE"
18
+ | "OTHER"
19
+ | "SUBSCRIBE_AN_OTHER_SERVICE"
20
+ | "SUBSCRIBE_OTHER_KIND_OF_SERVICE_WITH_COMPETITOR"
21
+ | "SUBSCRIBE_SIMILAR_SERVICE_WITH_COMPETITOR";
22
+ export const ServiceTerminationFutureUseEnum = /*@__PURE__*/ S.String;
23
+
24
+ /** All reasons you can provide for a service termination */
25
+ export type ServiceTerminationReasonEnum =
26
+ | "FEATURES_DONT_SUIT_ME"
27
+ | "LACK_OF_PERFORMANCES"
28
+ | "MIGRATED_TO_ANOTHER_OVH_PRODUCT"
29
+ | "MIGRATED_TO_COMPETITOR"
30
+ | "NOT_ENOUGH_RECOGNITION"
31
+ | "NOT_NEEDED_ANYMORE"
32
+ | "NOT_RELIABLE"
33
+ | "NO_ANSWER"
34
+ | "OTHER"
35
+ | "PRODUCT_DIMENSION_DONT_SUIT_ME"
36
+ | "PRODUCT_TOOLS_DONT_SUIT_ME"
37
+ | "TOO_EXPENSIVE"
38
+ | "TOO_HARD_TO_USE"
39
+ | "UNSATIFIED_BY_CUSTOMER_SUPPORT";
40
+ export const ServiceTerminationReasonEnum = /*@__PURE__*/ S.String;
41
+
42
+ export interface ConfirmDedicatedCephTerminationRequest {
43
+ /** Service name */
44
+ serviceName: string;
45
+ /** Commentary about your termination request */
46
+ commentary?: string;
47
+ /** All future uses you can provide for a service termination */
48
+ futureUse?: ServiceTerminationFutureUseEnum | (string & {});
49
+ /** All reasons you can provide for a service termination */
50
+ reason?: ServiceTerminationReasonEnum | (string & {});
51
+ /** The termination token sent by email to the admin contact */
52
+ token: string;
53
+ }
54
+ export const ConfirmDedicatedCephTerminationRequest = /*@__PURE__*/ S.suspend(
55
+ () =>
56
+ S.Struct({
57
+ serviceName: S.String.pipe(T.Label()),
58
+ commentary: S.optional(S.String),
59
+ futureUse: S.optional(ServiceTerminationFutureUseEnum),
60
+ reason: S.optional(ServiceTerminationReasonEnum),
61
+ token: S.String,
62
+ }).pipe(
63
+ T.Http({
64
+ method: "POST",
65
+ uri: "/dedicated/ceph/{serviceName}/confirmTermination",
66
+ code: 200,
67
+ }),
68
+ ),
69
+ ).annotate({
70
+ identifier: "ConfirmDedicatedCephTerminationRequest",
71
+ }) as any as S.Schema<ConfirmDedicatedCephTerminationRequest>;
72
+
73
+ export type ConfirmDedicatedCephTerminationResponse = string;
74
+ export const ConfirmDedicatedCephTerminationResponse = /*@__PURE__*/ S.suspend(
75
+ () => S.String.pipe(T.RawResponseRoot()),
76
+ ).annotate({
77
+ identifier: "ConfirmDedicatedCephTerminationResponse",
78
+ }) as any as S.Schema<ConfirmDedicatedCephTerminationResponse>;
79
+
80
+ /** List of new ACLs */
81
+ export type CreateDedicatedCephAclRequestAclListList = Array<string>;
82
+ export const CreateDedicatedCephAclRequestAclListList = /*@__PURE__*/ S.Array(
83
+ S.String,
84
+ ) as any as S.Schema<CreateDedicatedCephAclRequestAclListList>;
85
+
86
+ export interface CreateDedicatedCephAclRequest {
87
+ /** Service name */
88
+ serviceName: string;
89
+ /** List of new ACLs */
90
+ aclList: CreateDedicatedCephAclRequestAclListList;
91
+ }
92
+ export const CreateDedicatedCephAclRequest = /*@__PURE__*/ S.suspend(() =>
93
+ S.Struct({
94
+ serviceName: S.String.pipe(T.Label()),
95
+ aclList: CreateDedicatedCephAclRequestAclListList,
96
+ }).pipe(
97
+ T.Http({
98
+ method: "POST",
99
+ uri: "/dedicated/ceph/{serviceName}/acl",
100
+ code: 200,
101
+ }),
102
+ ),
103
+ ).annotate({
104
+ identifier: "CreateDedicatedCephAclRequest",
105
+ }) as any as S.Schema<CreateDedicatedCephAclRequest>;
106
+
107
+ export type CreateDedicatedCephAclResponse = string;
108
+ export const CreateDedicatedCephAclResponse = /*@__PURE__*/ S.suspend(() =>
109
+ S.String.pipe(T.RawResponseRoot()),
110
+ ).annotate({
111
+ identifier: "CreateDedicatedCephAclResponse",
112
+ }) as any as S.Schema<CreateDedicatedCephAclResponse>;
113
+
114
+ export interface CreateDedicatedCephChangeContactRequest {
115
+ /** Service name */
116
+ serviceName: string;
117
+ /** The contact to set as admin contact */
118
+ contactAdmin?: string;
119
+ /** The contact to set as billing contact */
120
+ contactBilling?: string;
121
+ /** The contact to set as tech contact */
122
+ contactTech?: string;
123
+ }
124
+ export const CreateDedicatedCephChangeContactRequest = /*@__PURE__*/ S.suspend(
125
+ () =>
126
+ S.Struct({
127
+ serviceName: S.String.pipe(T.Label()),
128
+ contactAdmin: S.optional(S.String),
129
+ contactBilling: S.optional(S.String),
130
+ contactTech: S.optional(S.String),
131
+ }).pipe(
132
+ T.Http({
133
+ method: "POST",
134
+ uri: "/dedicated/ceph/{serviceName}/changeContact",
135
+ code: 200,
136
+ }),
137
+ ),
138
+ ).annotate({
139
+ identifier: "CreateDedicatedCephChangeContactRequest",
140
+ }) as any as S.Schema<CreateDedicatedCephChangeContactRequest>;
141
+
142
+ export type CreateDedicatedCephChangeContactResponseBodyList = Array<number>;
143
+ export const CreateDedicatedCephChangeContactResponseBodyList =
144
+ /*@__PURE__*/ S.Array(
145
+ S.Number,
146
+ ) as any as S.Schema<CreateDedicatedCephChangeContactResponseBodyList>;
147
+
148
+ export type CreateDedicatedCephChangeContactResponse =
149
+ CreateDedicatedCephChangeContactResponseBodyList;
150
+ export const CreateDedicatedCephChangeContactResponse = /*@__PURE__*/ S.suspend(
151
+ () =>
152
+ CreateDedicatedCephChangeContactResponseBodyList.pipe(T.RawResponseRoot()),
153
+ ).annotate({
154
+ identifier: "CreateDedicatedCephChangeContactResponse",
155
+ }) as any as S.Schema<CreateDedicatedCephChangeContactResponse>;
156
+
157
+ export interface CreateDedicatedCephPoolRequest {
158
+ /** Service name */
159
+ serviceName: string;
160
+ /** Name of the new pool */
161
+ poolName: string;
162
+ }
163
+ export const CreateDedicatedCephPoolRequest = /*@__PURE__*/ S.suspend(() =>
164
+ S.Struct({
165
+ serviceName: S.String.pipe(T.Label()),
166
+ poolName: S.String,
167
+ }).pipe(
168
+ T.Http({
169
+ method: "POST",
170
+ uri: "/dedicated/ceph/{serviceName}/pool",
171
+ code: 200,
172
+ }),
173
+ ),
174
+ ).annotate({
175
+ identifier: "CreateDedicatedCephPoolRequest",
176
+ }) as any as S.Schema<CreateDedicatedCephPoolRequest>;
177
+
178
+ export type CreateDedicatedCephPoolResponse = string;
179
+ export const CreateDedicatedCephPoolResponse = /*@__PURE__*/ S.suspend(() =>
180
+ S.String.pipe(T.RawResponseRoot()),
181
+ ).annotate({
182
+ identifier: "CreateDedicatedCephPoolResponse",
183
+ }) as any as S.Schema<CreateDedicatedCephPoolResponse>;
184
+
185
+ export interface CreateDedicatedCephPoolErasureRequest {
186
+ /** Service name */
187
+ serviceName: string;
188
+ /** Name of the new pool erasure */
189
+ poolName: string;
190
+ }
191
+ export const CreateDedicatedCephPoolErasureRequest = /*@__PURE__*/ S.suspend(
192
+ () =>
193
+ S.Struct({
194
+ serviceName: S.String.pipe(T.Label()),
195
+ poolName: S.String,
196
+ }).pipe(
197
+ T.Http({
198
+ method: "POST",
199
+ uri: "/dedicated/ceph/{serviceName}/poolErasure",
200
+ code: 200,
201
+ }),
202
+ ),
203
+ ).annotate({
204
+ identifier: "CreateDedicatedCephPoolErasureRequest",
205
+ }) as any as S.Schema<CreateDedicatedCephPoolErasureRequest>;
206
+
207
+ export type CreateDedicatedCephPoolErasureResponse = string;
208
+ export const CreateDedicatedCephPoolErasureResponse = /*@__PURE__*/ S.suspend(
209
+ () => S.String.pipe(T.RawResponseRoot()),
210
+ ).annotate({
211
+ identifier: "CreateDedicatedCephPoolErasureResponse",
212
+ }) as any as S.Schema<CreateDedicatedCephPoolErasureResponse>;
213
+
214
+ /** List of IP networks */
215
+ export type CreateDedicatedCephRadosGatewayAclRequestNetworksList =
216
+ Array<string>;
217
+ export const CreateDedicatedCephRadosGatewayAclRequestNetworksList =
218
+ /*@__PURE__*/ S.Array(
219
+ S.String,
220
+ ) as any as S.Schema<CreateDedicatedCephRadosGatewayAclRequestNetworksList>;
221
+
222
+ export interface CreateDedicatedCephRadosGatewayAclRequest {
223
+ /** Service name */
224
+ serviceName: string;
225
+ /** Name */
226
+ name: string;
227
+ /** List of IP networks */
228
+ networks: CreateDedicatedCephRadosGatewayAclRequestNetworksList;
229
+ }
230
+ export const CreateDedicatedCephRadosGatewayAclRequest =
231
+ /*@__PURE__*/ S.suspend(() =>
232
+ S.Struct({
233
+ serviceName: S.String.pipe(T.Label()),
234
+ name: S.String.pipe(T.Label()),
235
+ networks: CreateDedicatedCephRadosGatewayAclRequestNetworksList,
236
+ }).pipe(
237
+ T.Http({
238
+ method: "POST",
239
+ uri: "/dedicated/ceph/{serviceName}/radosGateway/{name}/acl",
240
+ code: 200,
241
+ }),
242
+ ),
243
+ ).annotate({
244
+ identifier: "CreateDedicatedCephRadosGatewayAclRequest",
245
+ }) as any as S.Schema<CreateDedicatedCephRadosGatewayAclRequest>;
246
+
247
+ /** List of IP networks */
248
+ export type DedicatedCephRgwAclNetworksList = Array<string>;
249
+ export const DedicatedCephRgwAclNetworksList = /*@__PURE__*/ S.Array(
250
+ S.String,
251
+ ) as any as S.Schema<DedicatedCephRgwAclNetworksList>;
252
+
253
+ /** Rados Gateway IP ACL entries */
254
+ export interface DedicatedCephRgwAcl {
255
+ /** List of IP networks */
256
+ networks: DedicatedCephRgwAclNetworksList;
257
+ }
258
+ export const DedicatedCephRgwAcl = /*@__PURE__*/ S.suspend(() =>
259
+ S.Struct({
260
+ networks: DedicatedCephRgwAclNetworksList,
261
+ }),
262
+ ).annotate({
263
+ identifier: "DedicatedCephRgwAcl",
264
+ }) as any as S.Schema<DedicatedCephRgwAcl>;
265
+
266
+ export interface CreateDedicatedCephUserRequest {
267
+ /** Service name */
268
+ serviceName: string;
269
+ /** Name of the new user */
270
+ userName: string;
271
+ }
272
+ export const CreateDedicatedCephUserRequest = /*@__PURE__*/ S.suspend(() =>
273
+ S.Struct({
274
+ serviceName: S.String.pipe(T.Label()),
275
+ userName: S.String,
276
+ }).pipe(
277
+ T.Http({
278
+ method: "POST",
279
+ uri: "/dedicated/ceph/{serviceName}/user",
280
+ code: 200,
281
+ }),
282
+ ),
283
+ ).annotate({
284
+ identifier: "CreateDedicatedCephUserRequest",
285
+ }) as any as S.Schema<CreateDedicatedCephUserRequest>;
286
+
287
+ export type CreateDedicatedCephUserResponse = string;
288
+ export const CreateDedicatedCephUserResponse = /*@__PURE__*/ S.suspend(() =>
289
+ S.String.pipe(T.RawResponseRoot()),
290
+ ).annotate({
291
+ identifier: "CreateDedicatedCephUserResponse",
292
+ }) as any as S.Schema<CreateDedicatedCephUserResponse>;
293
+
294
+ /** List of permissions */
295
+ export interface DedicatedCephUserPoolPermSetAllPermissions {
296
+ /** Class read permission */
297
+ classRead?: boolean;
298
+ /** Class write permission */
299
+ classWrite?: boolean;
300
+ /** Execute permission */
301
+ execute?: boolean;
302
+ /** Name of Ceph pool */
303
+ poolName?: string;
304
+ /** Read permission */
305
+ read?: boolean;
306
+ /** Write permission */
307
+ write?: boolean;
308
+ }
309
+ export const DedicatedCephUserPoolPermSetAllPermissions =
310
+ /*@__PURE__*/ S.suspend(() =>
311
+ S.Struct({
312
+ classRead: S.optional(S.Boolean),
313
+ classWrite: S.optional(S.Boolean),
314
+ execute: S.optional(S.Boolean),
315
+ poolName: S.optional(S.String),
316
+ read: S.optional(S.Boolean),
317
+ write: S.optional(S.Boolean),
318
+ }),
319
+ ).annotate({
320
+ identifier: "DedicatedCephUserPoolPermSetAllPermissions",
321
+ }) as any as S.Schema<DedicatedCephUserPoolPermSetAllPermissions>;
322
+
323
+ /** Permissions */
324
+ export type CreateDedicatedCephUserPoolRequestPermissionsList =
325
+ Array<DedicatedCephUserPoolPermSetAllPermissions>;
326
+ export const CreateDedicatedCephUserPoolRequestPermissionsList =
327
+ /*@__PURE__*/ S.Array(
328
+ DedicatedCephUserPoolPermSetAllPermissions,
329
+ ) as any as S.Schema<CreateDedicatedCephUserPoolRequestPermissionsList>;
330
+
331
+ export interface CreateDedicatedCephUserPoolRequest {
332
+ /** Service name */
333
+ serviceName: string;
334
+ /** User name */
335
+ userName: string;
336
+ /** Permissions */
337
+ permissions?: CreateDedicatedCephUserPoolRequestPermissionsList;
338
+ }
339
+ export const CreateDedicatedCephUserPoolRequest = /*@__PURE__*/ S.suspend(() =>
340
+ S.Struct({
341
+ serviceName: S.String.pipe(T.Label()),
342
+ userName: S.String.pipe(T.Label()),
343
+ permissions: S.optional(CreateDedicatedCephUserPoolRequestPermissionsList),
344
+ }).pipe(
345
+ T.Http({
346
+ method: "POST",
347
+ uri: "/dedicated/ceph/{serviceName}/user/{userName}/pool",
348
+ code: 200,
349
+ }),
350
+ ),
351
+ ).annotate({
352
+ identifier: "CreateDedicatedCephUserPoolRequest",
353
+ }) as any as S.Schema<CreateDedicatedCephUserPoolRequest>;
354
+
355
+ export type CreateDedicatedCephUserPoolResponse = string;
356
+ export const CreateDedicatedCephUserPoolResponse = /*@__PURE__*/ S.suspend(() =>
357
+ S.String.pipe(T.RawResponseRoot()),
358
+ ).annotate({
359
+ identifier: "CreateDedicatedCephUserPoolResponse",
360
+ }) as any as S.Schema<CreateDedicatedCephUserPoolResponse>;
361
+
362
+ export interface DeleteDedicatedCephAclRequest {
363
+ /** Service name */
364
+ serviceName: string;
365
+ /** Acl ID */
366
+ aclId: number;
367
+ }
368
+ export const DeleteDedicatedCephAclRequest = /*@__PURE__*/ S.suspend(() =>
369
+ S.Struct({
370
+ serviceName: S.String.pipe(T.Label()),
371
+ aclId: S.Number.pipe(T.Label()),
372
+ }).pipe(
373
+ T.Http({
374
+ method: "DELETE",
375
+ uri: "/dedicated/ceph/{serviceName}/acl/{aclId}",
376
+ code: 200,
377
+ }),
378
+ ),
379
+ ).annotate({
380
+ identifier: "DeleteDedicatedCephAclRequest",
381
+ }) as any as S.Schema<DeleteDedicatedCephAclRequest>;
382
+
383
+ export type DeleteDedicatedCephAclResponse = string;
384
+ export const DeleteDedicatedCephAclResponse = /*@__PURE__*/ S.suspend(() =>
385
+ S.String.pipe(T.RawResponseRoot()),
386
+ ).annotate({
387
+ identifier: "DeleteDedicatedCephAclResponse",
388
+ }) as any as S.Schema<DeleteDedicatedCephAclResponse>;
389
+
390
+ export interface DeleteDedicatedCephCephfRequest {
391
+ /** Service name */
392
+ serviceName: string;
393
+ /** Fs name */
394
+ fsName: string;
395
+ }
396
+ export const DeleteDedicatedCephCephfRequest = /*@__PURE__*/ S.suspend(() =>
397
+ S.Struct({
398
+ serviceName: S.String.pipe(T.Label()),
399
+ fsName: S.String.pipe(T.Label()),
400
+ }).pipe(
401
+ T.Http({
402
+ method: "DELETE",
403
+ uri: "/dedicated/ceph/{serviceName}/cephfs/{fsName}",
404
+ code: 200,
405
+ }),
406
+ ),
407
+ ).annotate({
408
+ identifier: "DeleteDedicatedCephCephfRequest",
409
+ }) as any as S.Schema<DeleteDedicatedCephCephfRequest>;
410
+
411
+ export type DeleteDedicatedCephCephfResponse = string;
412
+ export const DeleteDedicatedCephCephfResponse = /*@__PURE__*/ S.suspend(() =>
413
+ S.String.pipe(T.RawResponseRoot()),
414
+ ).annotate({
415
+ identifier: "DeleteDedicatedCephCephfResponse",
416
+ }) as any as S.Schema<DeleteDedicatedCephCephfResponse>;
417
+
418
+ export interface DeleteDedicatedCephPoolRequest {
419
+ /** Service name */
420
+ serviceName: string;
421
+ /** Pool name */
422
+ poolName: string;
423
+ }
424
+ export const DeleteDedicatedCephPoolRequest = /*@__PURE__*/ S.suspend(() =>
425
+ S.Struct({
426
+ serviceName: S.String.pipe(T.Label()),
427
+ poolName: S.String.pipe(T.Label()),
428
+ }).pipe(
429
+ T.Http({
430
+ method: "DELETE",
431
+ uri: "/dedicated/ceph/{serviceName}/pool/{poolName}",
432
+ code: 200,
433
+ }),
434
+ ),
435
+ ).annotate({
436
+ identifier: "DeleteDedicatedCephPoolRequest",
437
+ }) as any as S.Schema<DeleteDedicatedCephPoolRequest>;
438
+
439
+ export type DeleteDedicatedCephPoolResponse = string;
440
+ export const DeleteDedicatedCephPoolResponse = /*@__PURE__*/ S.suspend(() =>
441
+ S.String.pipe(T.RawResponseRoot()),
442
+ ).annotate({
443
+ identifier: "DeleteDedicatedCephPoolResponse",
444
+ }) as any as S.Schema<DeleteDedicatedCephPoolResponse>;
445
+
446
+ export interface DeleteDedicatedCephUserRequest {
447
+ /** Service name */
448
+ serviceName: string;
449
+ /** User name */
450
+ userName: string;
451
+ }
452
+ export const DeleteDedicatedCephUserRequest = /*@__PURE__*/ S.suspend(() =>
453
+ S.Struct({
454
+ serviceName: S.String.pipe(T.Label()),
455
+ userName: S.String.pipe(T.Label()),
456
+ }).pipe(
457
+ T.Http({
458
+ method: "DELETE",
459
+ uri: "/dedicated/ceph/{serviceName}/user/{userName}",
460
+ code: 200,
461
+ }),
462
+ ),
463
+ ).annotate({
464
+ identifier: "DeleteDedicatedCephUserRequest",
465
+ }) as any as S.Schema<DeleteDedicatedCephUserRequest>;
466
+
467
+ export type DeleteDedicatedCephUserResponse = string;
468
+ export const DeleteDedicatedCephUserResponse = /*@__PURE__*/ S.suspend(() =>
469
+ S.String.pipe(T.RawResponseRoot()),
470
+ ).annotate({
471
+ identifier: "DeleteDedicatedCephUserResponse",
472
+ }) as any as S.Schema<DeleteDedicatedCephUserResponse>;
473
+
474
+ export interface DeleteDedicatedCephUserPoolRequest {
475
+ /** Service name */
476
+ serviceName: string;
477
+ /** User name */
478
+ userName: string;
479
+ /** Pool name */
480
+ poolName: string;
481
+ }
482
+ export const DeleteDedicatedCephUserPoolRequest = /*@__PURE__*/ S.suspend(() =>
483
+ S.Struct({
484
+ serviceName: S.String.pipe(T.Label()),
485
+ userName: S.String.pipe(T.Label()),
486
+ poolName: S.String.pipe(T.Label()),
487
+ }).pipe(
488
+ T.Http({
489
+ method: "DELETE",
490
+ uri: "/dedicated/ceph/{serviceName}/user/{userName}/pool/{poolName}",
491
+ code: 200,
492
+ }),
493
+ ),
494
+ ).annotate({
495
+ identifier: "DeleteDedicatedCephUserPoolRequest",
496
+ }) as any as S.Schema<DeleteDedicatedCephUserPoolRequest>;
497
+
498
+ export type DeleteDedicatedCephUserPoolResponse = string;
499
+ export const DeleteDedicatedCephUserPoolResponse = /*@__PURE__*/ S.suspend(() =>
500
+ S.String.pipe(T.RawResponseRoot()),
501
+ ).annotate({
502
+ identifier: "DeleteDedicatedCephUserPoolResponse",
503
+ }) as any as S.Schema<DeleteDedicatedCephUserPoolResponse>;
504
+
505
+ export interface DisableDedicatedCephCephfRequest {
506
+ /** Service name */
507
+ serviceName: string;
508
+ /** Fs name */
509
+ fsName: string;
510
+ }
511
+ export const DisableDedicatedCephCephfRequest = /*@__PURE__*/ S.suspend(() =>
512
+ S.Struct({
513
+ serviceName: S.String.pipe(T.Label()),
514
+ fsName: S.String.pipe(T.Label()),
515
+ }).pipe(
516
+ T.Http({
517
+ method: "POST",
518
+ uri: "/dedicated/ceph/{serviceName}/cephfs/{fsName}/disable",
519
+ code: 200,
520
+ }),
521
+ ),
522
+ ).annotate({
523
+ identifier: "DisableDedicatedCephCephfRequest",
524
+ }) as any as S.Schema<DisableDedicatedCephCephfRequest>;
525
+
526
+ export type DisableDedicatedCephCephfResponse = string;
527
+ export const DisableDedicatedCephCephfResponse = /*@__PURE__*/ S.suspend(() =>
528
+ S.String.pipe(T.RawResponseRoot()),
529
+ ).annotate({
530
+ identifier: "DisableDedicatedCephCephfResponse",
531
+ }) as any as S.Schema<DisableDedicatedCephCephfResponse>;
532
+
533
+ export interface EnableDedicatedCephCephfRequest {
534
+ /** Service name */
535
+ serviceName: string;
536
+ /** Fs name */
537
+ fsName: string;
538
+ }
539
+ export const EnableDedicatedCephCephfRequest = /*@__PURE__*/ S.suspend(() =>
540
+ S.Struct({
541
+ serviceName: S.String.pipe(T.Label()),
542
+ fsName: S.String.pipe(T.Label()),
543
+ }).pipe(
544
+ T.Http({
545
+ method: "POST",
546
+ uri: "/dedicated/ceph/{serviceName}/cephfs/{fsName}/enable",
547
+ code: 200,
548
+ }),
549
+ ),
550
+ ).annotate({
551
+ identifier: "EnableDedicatedCephCephfRequest",
552
+ }) as any as S.Schema<EnableDedicatedCephCephfRequest>;
553
+
554
+ export type EnableDedicatedCephCephfResponse = string;
555
+ export const EnableDedicatedCephCephfResponse = /*@__PURE__*/ S.suspend(() =>
556
+ S.String.pipe(T.RawResponseRoot()),
557
+ ).annotate({
558
+ identifier: "EnableDedicatedCephCephfResponse",
559
+ }) as any as S.Schema<EnableDedicatedCephCephfResponse>;
560
+
561
+ export interface GetDedicatedCephRequest {
562
+ /** Service name */
563
+ serviceName: string;
564
+ }
565
+ export const GetDedicatedCephRequest = /*@__PURE__*/ S.suspend(() =>
566
+ S.Struct({
567
+ serviceName: S.String.pipe(T.Label()),
568
+ }).pipe(
569
+ T.Http({ method: "GET", uri: "/dedicated/ceph/{serviceName}", code: 200 }),
570
+ ),
571
+ ).annotate({
572
+ identifier: "GetDedicatedCephRequest",
573
+ }) as any as S.Schema<GetDedicatedCephRequest>;
574
+
575
+ /** List of CEPH monitor IPs */
576
+ export type DedicatedCephClusterGetResponseWithIAMCephMonsList = Array<string>;
577
+ export const DedicatedCephClusterGetResponseWithIAMCephMonsList =
578
+ /*@__PURE__*/ S.Array(
579
+ S.String,
580
+ ) as any as S.Schema<DedicatedCephClusterGetResponseWithIAMCephMonsList>;
581
+
582
+ /** Tunables of cluster */
583
+ export type DedicatedCephClusterGetResponseCrushTunablesEnum =
584
+ | "ARGONAUT"
585
+ | "BOBTAIL"
586
+ | "DEFAULT"
587
+ | "FIREFLY"
588
+ | "HAMMER"
589
+ | "JEWEL"
590
+ | "LEGACY"
591
+ | "OPTIMAL";
592
+ export const DedicatedCephClusterGetResponseCrushTunablesEnum =
593
+ /*@__PURE__*/ S.String;
594
+
595
+ /** Resource tags. Tags that were internally computed are prefixed with ovh: */
596
+ export type IamResourceMetadataTagsMap = { [key: string]: string | undefined };
597
+ export const IamResourceMetadataTagsMap = /*@__PURE__*/ S.Record(
598
+ S.String,
599
+ S.String,
600
+ ) as any as S.Schema<IamResourceMetadataTagsMap>;
601
+
602
+ /** IAM resource metadata embedded in services models */
603
+ export interface IamResourceMetadata {
604
+ /** Resource display name */
605
+ displayName?: string | null;
606
+ /** Unique identifier of the resource */
607
+ id?: string;
608
+ /** Resource tags. Tags that were internally computed are prefixed with ovh: */
609
+ tags?: IamResourceMetadataTagsMap | null;
610
+ /** Unique resource name used in policies */
611
+ urn?: string;
612
+ }
613
+ export const IamResourceMetadata = /*@__PURE__*/ S.suspend(() =>
614
+ S.Struct({
615
+ displayName: S.optional(S.NullOr(S.String)),
616
+ id: S.optional(S.String),
617
+ tags: S.optional(S.NullOr(IamResourceMetadataTagsMap)),
618
+ urn: S.optional(S.String),
619
+ }),
620
+ ).annotate({
621
+ identifier: "IamResourceMetadata",
622
+ }) as any as S.Schema<IamResourceMetadata>;
623
+
624
+ /** State of cluster */
625
+ export type DedicatedCephClusterGetResponseStateEnum = "ACTIVE" | "SUSPENDED";
626
+ export const DedicatedCephClusterGetResponseStateEnum = /*@__PURE__*/ S.String;
627
+
628
+ /** Status of cluster */
629
+ export type DedicatedCephClusterGetResponseStatusEnum =
630
+ | "CREATING"
631
+ | "DELETED"
632
+ | "DELETING"
633
+ | "INSTALLED"
634
+ | "TASK_IN_PROGRESS";
635
+ export const DedicatedCephClusterGetResponseStatusEnum = /*@__PURE__*/ S.String;
636
+
637
+ /** Details about ceph cluster */
638
+ export interface DedicatedCephClusterGetResponseWithIAM {
639
+ /** List of CEPH monitor IPs */
640
+ cephMons?: DedicatedCephClusterGetResponseWithIAMCephMonsList;
641
+ /** Used version of ceph */
642
+ cephVersion?: string;
643
+ /** Creation date */
644
+ createDate?: string;
645
+ /** Tunables of cluster */
646
+ crushTunables?: DedicatedCephClusterGetResponseCrushTunablesEnum;
647
+ /** IAM resource metadata */
648
+ iam?: IamResourceMetadata | null;
649
+ /** Name of cluster */
650
+ label?: string;
651
+ /** Name of region where cluster is located */
652
+ region?: string;
653
+ /** ID of cluster */
654
+ serviceName?: string;
655
+ /** Size of cluster in TB */
656
+ size?: number;
657
+ /** State of cluster */
658
+ state?: DedicatedCephClusterGetResponseStateEnum;
659
+ /** Status of cluster */
660
+ status?: DedicatedCephClusterGetResponseStatusEnum;
661
+ /** Last update date */
662
+ updateDate?: string;
663
+ }
664
+ export const DedicatedCephClusterGetResponseWithIAM = /*@__PURE__*/ S.suspend(
665
+ () =>
666
+ S.Struct({
667
+ cephMons: S.optional(DedicatedCephClusterGetResponseWithIAMCephMonsList),
668
+ cephVersion: S.optional(S.String),
669
+ createDate: S.optional(S.String),
670
+ crushTunables: S.optional(
671
+ DedicatedCephClusterGetResponseCrushTunablesEnum,
672
+ ),
673
+ iam: S.optional(S.NullOr(IamResourceMetadata)),
674
+ label: S.optional(S.String),
675
+ region: S.optional(S.String),
676
+ serviceName: S.optional(S.String),
677
+ size: S.optional(S.Number),
678
+ state: S.optional(DedicatedCephClusterGetResponseStateEnum),
679
+ status: S.optional(DedicatedCephClusterGetResponseStatusEnum),
680
+ updateDate: S.optional(S.String),
681
+ }),
682
+ ).annotate({
683
+ identifier: "DedicatedCephClusterGetResponseWithIAM",
684
+ }) as any as S.Schema<DedicatedCephClusterGetResponseWithIAM>;
685
+
686
+ export interface GetDedicatedCephAclRequest {
687
+ /** Service name */
688
+ serviceName: string;
689
+ /** Acl ID */
690
+ aclId: number;
691
+ }
692
+ export const GetDedicatedCephAclRequest = /*@__PURE__*/ S.suspend(() =>
693
+ S.Struct({
694
+ serviceName: S.String.pipe(T.Label()),
695
+ aclId: S.Number.pipe(T.Label()),
696
+ }).pipe(
697
+ T.Http({
698
+ method: "GET",
699
+ uri: "/dedicated/ceph/{serviceName}/acl/{aclId}",
700
+ code: 200,
701
+ }),
702
+ ),
703
+ ).annotate({
704
+ identifier: "GetDedicatedCephAclRequest",
705
+ }) as any as S.Schema<GetDedicatedCephAclRequest>;
706
+
707
+ /** Family of IP ACL */
708
+ export type DedicatedCephAclGetResponseFamilyEnum = "IPV4" | "IPV6";
709
+ export const DedicatedCephAclGetResponseFamilyEnum = /*@__PURE__*/ S.String;
710
+
711
+ /** IP ACL */
712
+ export interface DedicatedCephAclGetResponse {
713
+ /** Family of IP ACL */
714
+ family?: DedicatedCephAclGetResponseFamilyEnum;
715
+ /** ID of IP ACL */
716
+ id?: number;
717
+ /** IP address (e.g., 192.0.2.0) */
718
+ netmask?: string;
719
+ /** IP address (e.g., 192.0.2.0) */
720
+ network?: string;
721
+ }
722
+ export const DedicatedCephAclGetResponse = /*@__PURE__*/ S.suspend(() =>
723
+ S.Struct({
724
+ family: S.optional(DedicatedCephAclGetResponseFamilyEnum),
725
+ id: S.optional(S.Number),
726
+ netmask: S.optional(S.String),
727
+ network: S.optional(S.String),
728
+ }),
729
+ ).annotate({
730
+ identifier: "DedicatedCephAclGetResponse",
731
+ }) as any as S.Schema<DedicatedCephAclGetResponse>;
732
+
733
+ export interface GetDedicatedCephCephfRequest {
734
+ /** Service name */
735
+ serviceName: string;
736
+ /** Fs name */
737
+ fsName: string;
738
+ }
739
+ export const GetDedicatedCephCephfRequest = /*@__PURE__*/ S.suspend(() =>
740
+ S.Struct({
741
+ serviceName: S.String.pipe(T.Label()),
742
+ fsName: S.String.pipe(T.Label()),
743
+ }).pipe(
744
+ T.Http({
745
+ method: "GET",
746
+ uri: "/dedicated/ceph/{serviceName}/cephfs/{fsName}",
747
+ code: 200,
748
+ }),
749
+ ),
750
+ ).annotate({
751
+ identifier: "GetDedicatedCephCephfRequest",
752
+ }) as any as S.Schema<GetDedicatedCephCephfRequest>;
753
+
754
+ /** CephFS filesystem data */
755
+ export interface DedicatedCephCephfsGetResponse {
756
+ /** Filesystem state */
757
+ enabled?: boolean;
758
+ /** Filesystem name */
759
+ fsName?: string;
760
+ }
761
+ export const DedicatedCephCephfsGetResponse = /*@__PURE__*/ S.suspend(() =>
762
+ S.Struct({
763
+ enabled: S.optional(S.Boolean),
764
+ fsName: S.optional(S.String),
765
+ }),
766
+ ).annotate({
767
+ identifier: "DedicatedCephCephfsGetResponse",
768
+ }) as any as S.Schema<DedicatedCephCephfsGetResponse>;
769
+
770
+ export interface GetDedicatedCephHealthRequest {
771
+ /** Service name */
772
+ serviceName: string;
773
+ }
774
+ export const GetDedicatedCephHealthRequest = /*@__PURE__*/ S.suspend(() =>
775
+ S.Struct({
776
+ serviceName: S.String.pipe(T.Label()),
777
+ }).pipe(
778
+ T.Http({
779
+ method: "GET",
780
+ uri: "/dedicated/ceph/{serviceName}/health",
781
+ code: 200,
782
+ }),
783
+ ),
784
+ ).annotate({
785
+ identifier: "GetDedicatedCephHealthRequest",
786
+ }) as any as S.Schema<GetDedicatedCephHealthRequest>;
787
+
788
+ /** Health of ceph cluster */
789
+ export interface DedicatedCephClusterHealthResponse {
790
+ /** All available space in bytes */
791
+ availableBytes?: number;
792
+ /** True or False */
793
+ healthy?: boolean;
794
+ /** ID of cluster */
795
+ serviceName?: string;
796
+ /** Status of ceph cluster */
797
+ status?: string;
798
+ /** Total cluster space in bytes */
799
+ totalBytes?: number;
800
+ /** Used cluster space in bytes */
801
+ usedBytes?: number;
802
+ }
803
+ export const DedicatedCephClusterHealthResponse = /*@__PURE__*/ S.suspend(() =>
804
+ S.Struct({
805
+ availableBytes: S.optional(S.Number),
806
+ healthy: S.optional(S.Boolean),
807
+ serviceName: S.optional(S.String),
808
+ status: S.optional(S.String),
809
+ totalBytes: S.optional(S.Number),
810
+ usedBytes: S.optional(S.Number),
811
+ }),
812
+ ).annotate({
813
+ identifier: "DedicatedCephClusterHealthResponse",
814
+ }) as any as S.Schema<DedicatedCephClusterHealthResponse>;
815
+
816
+ export interface GetDedicatedCephPoolRequest {
817
+ /** Service name */
818
+ serviceName: string;
819
+ /** Pool name */
820
+ poolName: string;
821
+ }
822
+ export const GetDedicatedCephPoolRequest = /*@__PURE__*/ S.suspend(() =>
823
+ S.Struct({
824
+ serviceName: S.String.pipe(T.Label()),
825
+ poolName: S.String.pipe(T.Label()),
826
+ }).pipe(
827
+ T.Http({
828
+ method: "GET",
829
+ uri: "/dedicated/ceph/{serviceName}/pool/{poolName}",
830
+ code: 200,
831
+ }),
832
+ ),
833
+ ).annotate({
834
+ identifier: "GetDedicatedCephPoolRequest",
835
+ }) as any as S.Schema<GetDedicatedCephPoolRequest>;
836
+
837
+ /** Type of pool */
838
+ export type DedicatedCephPoolGetResponsePoolTypeEnum =
839
+ | "ERASURE_CODED"
840
+ | "REPLICATED";
841
+ export const DedicatedCephPoolGetResponsePoolTypeEnum = /*@__PURE__*/ S.String;
842
+
843
+ /** Ceph pool */
844
+ export interface DedicatedCephPoolGetResponse {
845
+ /** Determine if pool should be backuped */
846
+ backup?: boolean;
847
+ /** Minimum active replicas */
848
+ minActiveReplicas?: number;
849
+ /** Name of the pool */
850
+ name?: string;
851
+ /** Type of pool */
852
+ poolType?: DedicatedCephPoolGetResponsePoolTypeEnum;
853
+ /** Number of replica */
854
+ replicaCount?: number;
855
+ /** ID of cluster */
856
+ serviceName?: string;
857
+ }
858
+ export const DedicatedCephPoolGetResponse = /*@__PURE__*/ S.suspend(() =>
859
+ S.Struct({
860
+ backup: S.optional(S.Boolean),
861
+ minActiveReplicas: S.optional(S.Number),
862
+ name: S.optional(S.String),
863
+ poolType: S.optional(DedicatedCephPoolGetResponsePoolTypeEnum),
864
+ replicaCount: S.optional(S.Number),
865
+ serviceName: S.optional(S.String),
866
+ }),
867
+ ).annotate({
868
+ identifier: "DedicatedCephPoolGetResponse",
869
+ }) as any as S.Schema<DedicatedCephPoolGetResponse>;
870
+
871
+ export interface GetDedicatedCephRadosGatewayRequest {
872
+ /** Service name */
873
+ serviceName: string;
874
+ /** Name */
875
+ name: string;
876
+ }
877
+ export const GetDedicatedCephRadosGatewayRequest = /*@__PURE__*/ S.suspend(() =>
878
+ S.Struct({
879
+ serviceName: S.String.pipe(T.Label()),
880
+ name: S.String.pipe(T.Label()),
881
+ }).pipe(
882
+ T.Http({
883
+ method: "GET",
884
+ uri: "/dedicated/ceph/{serviceName}/radosGateway/{name}",
885
+ code: 200,
886
+ }),
887
+ ),
888
+ ).annotate({
889
+ identifier: "GetDedicatedCephRadosGatewayRequest",
890
+ }) as any as S.Schema<GetDedicatedCephRadosGatewayRequest>;
891
+
892
+ /** Ceph Rados Gateway data */
893
+ export interface DedicatedCephRgwResponse {
894
+ /** Determines whether RGW instance is enabled or disabled. Only disabled instance can be deleted */
895
+ enabled?: boolean;
896
+ /** Name of RGW instance */
897
+ name?: string;
898
+ }
899
+ export const DedicatedCephRgwResponse = /*@__PURE__*/ S.suspend(() =>
900
+ S.Struct({
901
+ enabled: S.optional(S.Boolean),
902
+ name: S.optional(S.String),
903
+ }),
904
+ ).annotate({
905
+ identifier: "DedicatedCephRgwResponse",
906
+ }) as any as S.Schema<DedicatedCephRgwResponse>;
907
+
908
+ export interface GetDedicatedCephServiceInfosRequest {
909
+ /** Service name */
910
+ serviceName: string;
911
+ }
912
+ export const GetDedicatedCephServiceInfosRequest = /*@__PURE__*/ S.suspend(() =>
913
+ S.Struct({
914
+ serviceName: S.String.pipe(T.Label()),
915
+ }).pipe(
916
+ T.Http({
917
+ method: "GET",
918
+ uri: "/dedicated/ceph/{serviceName}/serviceInfos",
919
+ code: 200,
920
+ }),
921
+ ),
922
+ ).annotate({
923
+ identifier: "GetDedicatedCephServiceInfosRequest",
924
+ }) as any as S.Schema<GetDedicatedCephServiceInfosRequest>;
925
+
926
+ /** All the possible renew period of your service in month */
927
+ export type ServicesServicePossibleRenewPeriodList = Array<number>;
928
+ export const ServicesServicePossibleRenewPeriodList = /*@__PURE__*/ S.Array(
929
+ S.Number,
930
+ ) as any as S.Schema<ServicesServicePossibleRenewPeriodList>;
931
+
932
+ /** Map a possible renew for a specific service */
933
+ export interface ServiceRenewType {
934
+ /** The service is automatically renewed */
935
+ automatic?: boolean;
936
+ /** The service will be deleted at expiration */
937
+ deleteAtExpiration?: boolean;
938
+ /** The service forced to be renewed */
939
+ forced?: boolean;
940
+ /** The service needs to be manually renewed and paid */
941
+ manualPayment?: boolean | null;
942
+ /** period of renew in month */
943
+ period?: number | null;
944
+ }
945
+ export const ServiceRenewType = /*@__PURE__*/ S.suspend(() =>
946
+ S.Struct({
947
+ automatic: S.optional(S.Boolean),
948
+ deleteAtExpiration: S.optional(S.Boolean),
949
+ forced: S.optional(S.Boolean),
950
+ manualPayment: S.optional(S.NullOr(S.Boolean)),
951
+ period: S.optional(S.NullOr(S.Number)),
952
+ }),
953
+ ).annotate({
954
+ identifier: "ServiceRenewType",
955
+ }) as any as S.Schema<ServiceRenewType>;
956
+
957
+ /** Detailed renewal type of a service */
958
+ export type ServiceRenewalTypeEnum =
959
+ | "automaticForcedProduct"
960
+ | "automaticV2012"
961
+ | "automaticV2014"
962
+ | "automaticV2016"
963
+ | "manual"
964
+ | "oneShot"
965
+ | "option";
966
+ export const ServiceRenewalTypeEnum = /*@__PURE__*/ S.String;
967
+
968
+ /** service.StateEnum */
969
+ export type ServiceStateEnum =
970
+ | "autorenewInProgress"
971
+ | "expired"
972
+ | "inCreation"
973
+ | "ok"
974
+ | "pendingDebt"
975
+ | "unPaid";
976
+ export const ServiceStateEnum = /*@__PURE__*/ S.String;
977
+
978
+ /** Details about a Service */
979
+ export interface ServicesService {
980
+ /** Indicates that the service can be set up to be deleted at expiration */
981
+ canDeleteAtExpiration?: boolean;
982
+ contactAdmin?: string;
983
+ contactBilling?: string;
984
+ contactTech?: string;
985
+ creation?: string;
986
+ domain?: string;
987
+ engagedUpTo?: string | null;
988
+ expiration?: string;
989
+ /** All the possible renew period of your service in month */
990
+ possibleRenewPeriod?: ServicesServicePossibleRenewPeriodList | null;
991
+ /** Way of handling the renew */
992
+ renew?: ServiceRenewType | null;
993
+ renewalType?: ServiceRenewalTypeEnum;
994
+ serviceId?: number;
995
+ status?: ServiceStateEnum;
996
+ }
997
+ export const ServicesService = /*@__PURE__*/ S.suspend(() =>
998
+ S.Struct({
999
+ canDeleteAtExpiration: S.optional(S.Boolean),
1000
+ contactAdmin: S.optional(S.String),
1001
+ contactBilling: S.optional(S.String),
1002
+ contactTech: S.optional(S.String),
1003
+ creation: S.optional(S.String),
1004
+ domain: S.optional(S.String),
1005
+ engagedUpTo: S.optional(S.NullOr(S.String)),
1006
+ expiration: S.optional(S.String),
1007
+ possibleRenewPeriod: S.optional(
1008
+ S.NullOr(ServicesServicePossibleRenewPeriodList),
1009
+ ),
1010
+ renew: S.optional(S.NullOr(ServiceRenewType)),
1011
+ renewalType: S.optional(ServiceRenewalTypeEnum),
1012
+ serviceId: S.optional(S.Number),
1013
+ status: S.optional(ServiceStateEnum),
1014
+ }),
1015
+ ).annotate({
1016
+ identifier: "ServicesService",
1017
+ }) as any as S.Schema<ServicesService>;
1018
+
1019
+ export interface GetDedicatedCephTaskRequest {
1020
+ /** Service name */
1021
+ serviceName: string;
1022
+ /** Task ID */
1023
+ taskId: string;
1024
+ }
1025
+ export const GetDedicatedCephTaskRequest = /*@__PURE__*/ S.suspend(() =>
1026
+ S.Struct({
1027
+ serviceName: S.String.pipe(T.Label()),
1028
+ taskId: S.String.pipe(T.Label()),
1029
+ }).pipe(
1030
+ T.Http({
1031
+ method: "GET",
1032
+ uri: "/dedicated/ceph/{serviceName}/task/{taskId}",
1033
+ code: 200,
1034
+ }),
1035
+ ),
1036
+ ).annotate({
1037
+ identifier: "GetDedicatedCephTaskRequest",
1038
+ }) as any as S.Schema<GetDedicatedCephTaskRequest>;
1039
+
1040
+ /** State of task */
1041
+ export type DedicatedCephTaskGetResponseStateEnum =
1042
+ | "DONE"
1043
+ | "FAILED"
1044
+ | "IN PROGRESS";
1045
+ export const DedicatedCephTaskGetResponseStateEnum = /*@__PURE__*/ S.String;
1046
+
1047
+ /** List of task subtasks */
1048
+ export interface DedicatedCephTaskGetResponse {
1049
+ /** Creation date of the task */
1050
+ createDate?: string;
1051
+ /** Finish date of the task */
1052
+ finishDate?: string | null;
1053
+ /** Name of the task */
1054
+ name?: string;
1055
+ /** State of the task */
1056
+ state?: DedicatedCephTaskGetResponseStateEnum;
1057
+ /** Type of the task */
1058
+ type?: string;
1059
+ }
1060
+ export const DedicatedCephTaskGetResponse = /*@__PURE__*/ S.suspend(() =>
1061
+ S.Struct({
1062
+ createDate: S.optional(S.String),
1063
+ finishDate: S.optional(S.NullOr(S.String)),
1064
+ name: S.optional(S.String),
1065
+ state: S.optional(DedicatedCephTaskGetResponseStateEnum),
1066
+ type: S.optional(S.String),
1067
+ }),
1068
+ ).annotate({
1069
+ identifier: "DedicatedCephTaskGetResponse",
1070
+ }) as any as S.Schema<DedicatedCephTaskGetResponse>;
1071
+
1072
+ export type GetDedicatedCephTaskResponseBodyList =
1073
+ Array<DedicatedCephTaskGetResponse>;
1074
+ export const GetDedicatedCephTaskResponseBodyList = /*@__PURE__*/ S.Array(
1075
+ DedicatedCephTaskGetResponse,
1076
+ ) as any as S.Schema<GetDedicatedCephTaskResponseBodyList>;
1077
+
1078
+ export type GetDedicatedCephTaskResponse = GetDedicatedCephTaskResponseBodyList;
1079
+ export const GetDedicatedCephTaskResponse = /*@__PURE__*/ S.suspend(() =>
1080
+ GetDedicatedCephTaskResponseBodyList.pipe(T.RawResponseRoot()),
1081
+ ).annotate({
1082
+ identifier: "GetDedicatedCephTaskResponse",
1083
+ }) as any as S.Schema<GetDedicatedCephTaskResponse>;
1084
+
1085
+ export interface GetDedicatedCephUserRequest {
1086
+ /** Service name */
1087
+ serviceName: string;
1088
+ /** User name */
1089
+ userName: string;
1090
+ }
1091
+ export const GetDedicatedCephUserRequest = /*@__PURE__*/ S.suspend(() =>
1092
+ S.Struct({
1093
+ serviceName: S.String.pipe(T.Label()),
1094
+ userName: S.String.pipe(T.Label()),
1095
+ }).pipe(
1096
+ T.Http({
1097
+ method: "GET",
1098
+ uri: "/dedicated/ceph/{serviceName}/user/{userName}",
1099
+ code: 200,
1100
+ }),
1101
+ ),
1102
+ ).annotate({
1103
+ identifier: "GetDedicatedCephUserRequest",
1104
+ }) as any as S.Schema<GetDedicatedCephUserRequest>;
1105
+
1106
+ /** Ceph user */
1107
+ export interface DedicatedCephUserGetResponse {
1108
+ /** Key of user to connect into cluster */
1109
+ key?: string;
1110
+ /** Capabilities of user on MDS */
1111
+ mdsCaps?: string | null;
1112
+ /** Capabilities of user on MON */
1113
+ monCaps?: string;
1114
+ /** Name of ceph user */
1115
+ name?: string;
1116
+ /** Capabilities of user on OSD */
1117
+ osdCaps?: string;
1118
+ /** ID of cluster */
1119
+ serviceName?: string;
1120
+ }
1121
+ export const DedicatedCephUserGetResponse = /*@__PURE__*/ S.suspend(() =>
1122
+ S.Struct({
1123
+ key: S.optional(S.String),
1124
+ mdsCaps: S.optional(S.NullOr(S.String)),
1125
+ monCaps: S.optional(S.String),
1126
+ name: S.optional(S.String),
1127
+ osdCaps: S.optional(S.String),
1128
+ serviceName: S.optional(S.String),
1129
+ }),
1130
+ ).annotate({
1131
+ identifier: "DedicatedCephUserGetResponse",
1132
+ }) as any as S.Schema<DedicatedCephUserGetResponse>;
1133
+
1134
+ /** Resource tag filter */
1135
+ export interface IamResourceTagFilterInput {}
1136
+ export const IamResourceTagFilterInput = /*@__PURE__*/ S.suspend(() =>
1137
+ S.Struct({}),
1138
+ ).annotate({
1139
+ identifier: "IamResourceTagFilterInput",
1140
+ }) as any as S.Schema<IamResourceTagFilterInput>;
1141
+
1142
+ export type ListDedicatedCephRequestIamTagsValueList =
1143
+ Array<IamResourceTagFilterInput>;
1144
+ export const ListDedicatedCephRequestIamTagsValueList = /*@__PURE__*/ S.Array(
1145
+ IamResourceTagFilterInput,
1146
+ ) as any as S.Schema<ListDedicatedCephRequestIamTagsValueList>;
1147
+
1148
+ export type ListDedicatedCephRequestIamTagsMap = {
1149
+ [key: string]: ListDedicatedCephRequestIamTagsValueList | undefined;
1150
+ };
1151
+ export const ListDedicatedCephRequestIamTagsMap = /*@__PURE__*/ S.Record(
1152
+ S.String,
1153
+ ListDedicatedCephRequestIamTagsValueList,
1154
+ ) as any as S.Schema<ListDedicatedCephRequestIamTagsMap>;
1155
+
1156
+ export interface ListDedicatedCephRequest {
1157
+ /** Filter resources on IAM tags */
1158
+ iamTags?: ListDedicatedCephRequestIamTagsMap;
1159
+ }
1160
+ export const ListDedicatedCephRequest = /*@__PURE__*/ S.suspend(() =>
1161
+ S.Struct({
1162
+ iamTags: S.optional(ListDedicatedCephRequestIamTagsMap.pipe(T.Query())),
1163
+ }).pipe(T.Http({ method: "GET", uri: "/dedicated/ceph", code: 200 })),
1164
+ ).annotate({
1165
+ identifier: "ListDedicatedCephRequest",
1166
+ }) as any as S.Schema<ListDedicatedCephRequest>;
1167
+
1168
+ export type ListDedicatedCephResponseBodyList = Array<string>;
1169
+ export const ListDedicatedCephResponseBodyList = /*@__PURE__*/ S.Array(
1170
+ S.String,
1171
+ ) as any as S.Schema<ListDedicatedCephResponseBodyList>;
1172
+
1173
+ export type ListDedicatedCephResponse = ListDedicatedCephResponseBodyList;
1174
+ export const ListDedicatedCephResponse = /*@__PURE__*/ S.suspend(() =>
1175
+ ListDedicatedCephResponseBodyList.pipe(T.RawResponseRoot()),
1176
+ ).annotate({
1177
+ identifier: "ListDedicatedCephResponse",
1178
+ }) as any as S.Schema<ListDedicatedCephResponse>;
1179
+
1180
+ export interface ListDedicatedCephAclRequest {
1181
+ /** Service name */
1182
+ serviceName: string;
1183
+ }
1184
+ export const ListDedicatedCephAclRequest = /*@__PURE__*/ S.suspend(() =>
1185
+ S.Struct({
1186
+ serviceName: S.String.pipe(T.Label()),
1187
+ }).pipe(
1188
+ T.Http({
1189
+ method: "GET",
1190
+ uri: "/dedicated/ceph/{serviceName}/acl",
1191
+ code: 200,
1192
+ }),
1193
+ ),
1194
+ ).annotate({
1195
+ identifier: "ListDedicatedCephAclRequest",
1196
+ }) as any as S.Schema<ListDedicatedCephAclRequest>;
1197
+
1198
+ export type ListDedicatedCephAclResponseBodyList =
1199
+ Array<DedicatedCephAclGetResponse>;
1200
+ export const ListDedicatedCephAclResponseBodyList = /*@__PURE__*/ S.Array(
1201
+ DedicatedCephAclGetResponse,
1202
+ ) as any as S.Schema<ListDedicatedCephAclResponseBodyList>;
1203
+
1204
+ export type ListDedicatedCephAclResponse = ListDedicatedCephAclResponseBodyList;
1205
+ export const ListDedicatedCephAclResponse = /*@__PURE__*/ S.suspend(() =>
1206
+ ListDedicatedCephAclResponseBodyList.pipe(T.RawResponseRoot()),
1207
+ ).annotate({
1208
+ identifier: "ListDedicatedCephAclResponse",
1209
+ }) as any as S.Schema<ListDedicatedCephAclResponse>;
1210
+
1211
+ export interface ListDedicatedCephCephfsRequest {
1212
+ /** Service name */
1213
+ serviceName: string;
1214
+ }
1215
+ export const ListDedicatedCephCephfsRequest = /*@__PURE__*/ S.suspend(() =>
1216
+ S.Struct({
1217
+ serviceName: S.String.pipe(T.Label()),
1218
+ }).pipe(
1219
+ T.Http({
1220
+ method: "GET",
1221
+ uri: "/dedicated/ceph/{serviceName}/cephfs",
1222
+ code: 200,
1223
+ }),
1224
+ ),
1225
+ ).annotate({
1226
+ identifier: "ListDedicatedCephCephfsRequest",
1227
+ }) as any as S.Schema<ListDedicatedCephCephfsRequest>;
1228
+
1229
+ export type ListDedicatedCephCephfsResponseBodyList =
1230
+ Array<DedicatedCephCephfsGetResponse>;
1231
+ export const ListDedicatedCephCephfsResponseBodyList = /*@__PURE__*/ S.Array(
1232
+ DedicatedCephCephfsGetResponse,
1233
+ ) as any as S.Schema<ListDedicatedCephCephfsResponseBodyList>;
1234
+
1235
+ export type ListDedicatedCephCephfsResponse =
1236
+ ListDedicatedCephCephfsResponseBodyList;
1237
+ export const ListDedicatedCephCephfsResponse = /*@__PURE__*/ S.suspend(() =>
1238
+ ListDedicatedCephCephfsResponseBodyList.pipe(T.RawResponseRoot()),
1239
+ ).annotate({
1240
+ identifier: "ListDedicatedCephCephfsResponse",
1241
+ }) as any as S.Schema<ListDedicatedCephCephfsResponse>;
1242
+
1243
+ export interface ListDedicatedCephPoolRequest {
1244
+ /** Service name */
1245
+ serviceName: string;
1246
+ }
1247
+ export const ListDedicatedCephPoolRequest = /*@__PURE__*/ S.suspend(() =>
1248
+ S.Struct({
1249
+ serviceName: S.String.pipe(T.Label()),
1250
+ }).pipe(
1251
+ T.Http({
1252
+ method: "GET",
1253
+ uri: "/dedicated/ceph/{serviceName}/pool",
1254
+ code: 200,
1255
+ }),
1256
+ ),
1257
+ ).annotate({
1258
+ identifier: "ListDedicatedCephPoolRequest",
1259
+ }) as any as S.Schema<ListDedicatedCephPoolRequest>;
1260
+
1261
+ export type ListDedicatedCephPoolResponseBodyList =
1262
+ Array<DedicatedCephPoolGetResponse>;
1263
+ export const ListDedicatedCephPoolResponseBodyList = /*@__PURE__*/ S.Array(
1264
+ DedicatedCephPoolGetResponse,
1265
+ ) as any as S.Schema<ListDedicatedCephPoolResponseBodyList>;
1266
+
1267
+ export type ListDedicatedCephPoolResponse =
1268
+ ListDedicatedCephPoolResponseBodyList;
1269
+ export const ListDedicatedCephPoolResponse = /*@__PURE__*/ S.suspend(() =>
1270
+ ListDedicatedCephPoolResponseBodyList.pipe(T.RawResponseRoot()),
1271
+ ).annotate({
1272
+ identifier: "ListDedicatedCephPoolResponse",
1273
+ }) as any as S.Schema<ListDedicatedCephPoolResponse>;
1274
+
1275
+ export interface ListDedicatedCephRadosGatewayRequest {
1276
+ /** Service name */
1277
+ serviceName: string;
1278
+ }
1279
+ export const ListDedicatedCephRadosGatewayRequest = /*@__PURE__*/ S.suspend(
1280
+ () =>
1281
+ S.Struct({
1282
+ serviceName: S.String.pipe(T.Label()),
1283
+ }).pipe(
1284
+ T.Http({
1285
+ method: "GET",
1286
+ uri: "/dedicated/ceph/{serviceName}/radosGateway",
1287
+ code: 200,
1288
+ }),
1289
+ ),
1290
+ ).annotate({
1291
+ identifier: "ListDedicatedCephRadosGatewayRequest",
1292
+ }) as any as S.Schema<ListDedicatedCephRadosGatewayRequest>;
1293
+
1294
+ export type ListDedicatedCephRadosGatewayResponseBodyList =
1295
+ Array<DedicatedCephRgwResponse>;
1296
+ export const ListDedicatedCephRadosGatewayResponseBodyList =
1297
+ /*@__PURE__*/ S.Array(
1298
+ DedicatedCephRgwResponse,
1299
+ ) as any as S.Schema<ListDedicatedCephRadosGatewayResponseBodyList>;
1300
+
1301
+ export type ListDedicatedCephRadosGatewayResponse =
1302
+ ListDedicatedCephRadosGatewayResponseBodyList;
1303
+ export const ListDedicatedCephRadosGatewayResponse = /*@__PURE__*/ S.suspend(
1304
+ () => ListDedicatedCephRadosGatewayResponseBodyList.pipe(T.RawResponseRoot()),
1305
+ ).annotate({
1306
+ identifier: "ListDedicatedCephRadosGatewayResponse",
1307
+ }) as any as S.Schema<ListDedicatedCephRadosGatewayResponse>;
1308
+
1309
+ export interface ListDedicatedCephRadosGatewayAclRequest {
1310
+ /** Service name */
1311
+ serviceName: string;
1312
+ /** Name */
1313
+ name: string;
1314
+ }
1315
+ export const ListDedicatedCephRadosGatewayAclRequest = /*@__PURE__*/ S.suspend(
1316
+ () =>
1317
+ S.Struct({
1318
+ serviceName: S.String.pipe(T.Label()),
1319
+ name: S.String.pipe(T.Label()),
1320
+ }).pipe(
1321
+ T.Http({
1322
+ method: "GET",
1323
+ uri: "/dedicated/ceph/{serviceName}/radosGateway/{name}/acl",
1324
+ code: 200,
1325
+ }),
1326
+ ),
1327
+ ).annotate({
1328
+ identifier: "ListDedicatedCephRadosGatewayAclRequest",
1329
+ }) as any as S.Schema<ListDedicatedCephRadosGatewayAclRequest>;
1330
+
1331
+ export interface ListDedicatedCephTaskRequest {
1332
+ /** Service name */
1333
+ serviceName: string;
1334
+ }
1335
+ export const ListDedicatedCephTaskRequest = /*@__PURE__*/ S.suspend(() =>
1336
+ S.Struct({
1337
+ serviceName: S.String.pipe(T.Label()),
1338
+ }).pipe(
1339
+ T.Http({
1340
+ method: "GET",
1341
+ uri: "/dedicated/ceph/{serviceName}/task",
1342
+ code: 200,
1343
+ }),
1344
+ ),
1345
+ ).annotate({
1346
+ identifier: "ListDedicatedCephTaskRequest",
1347
+ }) as any as S.Schema<ListDedicatedCephTaskRequest>;
1348
+
1349
+ /** List of active tasks */
1350
+ export interface DedicatedCephTaskListResponse {
1351
+ /** ID of task */
1352
+ id?: string;
1353
+ /** Name of task */
1354
+ name?: string;
1355
+ }
1356
+ export const DedicatedCephTaskListResponse = /*@__PURE__*/ S.suspend(() =>
1357
+ S.Struct({
1358
+ id: S.optional(S.String),
1359
+ name: S.optional(S.String),
1360
+ }),
1361
+ ).annotate({
1362
+ identifier: "DedicatedCephTaskListResponse",
1363
+ }) as any as S.Schema<DedicatedCephTaskListResponse>;
1364
+
1365
+ export type ListDedicatedCephTaskResponseBodyList =
1366
+ Array<DedicatedCephTaskListResponse>;
1367
+ export const ListDedicatedCephTaskResponseBodyList = /*@__PURE__*/ S.Array(
1368
+ DedicatedCephTaskListResponse,
1369
+ ) as any as S.Schema<ListDedicatedCephTaskResponseBodyList>;
1370
+
1371
+ export type ListDedicatedCephTaskResponse =
1372
+ ListDedicatedCephTaskResponseBodyList;
1373
+ export const ListDedicatedCephTaskResponse = /*@__PURE__*/ S.suspend(() =>
1374
+ ListDedicatedCephTaskResponseBodyList.pipe(T.RawResponseRoot()),
1375
+ ).annotate({
1376
+ identifier: "ListDedicatedCephTaskResponse",
1377
+ }) as any as S.Schema<ListDedicatedCephTaskResponse>;
1378
+
1379
+ export interface ListDedicatedCephUserRequest {
1380
+ /** Service name */
1381
+ serviceName: string;
1382
+ }
1383
+ export const ListDedicatedCephUserRequest = /*@__PURE__*/ S.suspend(() =>
1384
+ S.Struct({
1385
+ serviceName: S.String.pipe(T.Label()),
1386
+ }).pipe(
1387
+ T.Http({
1388
+ method: "GET",
1389
+ uri: "/dedicated/ceph/{serviceName}/user",
1390
+ code: 200,
1391
+ }),
1392
+ ),
1393
+ ).annotate({
1394
+ identifier: "ListDedicatedCephUserRequest",
1395
+ }) as any as S.Schema<ListDedicatedCephUserRequest>;
1396
+
1397
+ export type ListDedicatedCephUserResponseBodyList =
1398
+ Array<DedicatedCephUserGetResponse>;
1399
+ export const ListDedicatedCephUserResponseBodyList = /*@__PURE__*/ S.Array(
1400
+ DedicatedCephUserGetResponse,
1401
+ ) as any as S.Schema<ListDedicatedCephUserResponseBodyList>;
1402
+
1403
+ export type ListDedicatedCephUserResponse =
1404
+ ListDedicatedCephUserResponseBodyList;
1405
+ export const ListDedicatedCephUserResponse = /*@__PURE__*/ S.suspend(() =>
1406
+ ListDedicatedCephUserResponseBodyList.pipe(T.RawResponseRoot()),
1407
+ ).annotate({
1408
+ identifier: "ListDedicatedCephUserResponse",
1409
+ }) as any as S.Schema<ListDedicatedCephUserResponse>;
1410
+
1411
+ export interface ListDedicatedCephUserPoolRequest {
1412
+ /** Service name */
1413
+ serviceName: string;
1414
+ /** User name */
1415
+ userName: string;
1416
+ }
1417
+ export const ListDedicatedCephUserPoolRequest = /*@__PURE__*/ S.suspend(() =>
1418
+ S.Struct({
1419
+ serviceName: S.String.pipe(T.Label()),
1420
+ userName: S.String.pipe(T.Label()),
1421
+ }).pipe(
1422
+ T.Http({
1423
+ method: "GET",
1424
+ uri: "/dedicated/ceph/{serviceName}/user/{userName}/pool",
1425
+ code: 200,
1426
+ }),
1427
+ ),
1428
+ ).annotate({
1429
+ identifier: "ListDedicatedCephUserPoolRequest",
1430
+ }) as any as S.Schema<ListDedicatedCephUserPoolRequest>;
1431
+
1432
+ /** List of permissions */
1433
+ export type DedicatedCephUserPoolPermListResponse =
1434
+ DedicatedCephUserPoolPermSetAllPermissions;
1435
+ export const DedicatedCephUserPoolPermListResponse =
1436
+ DedicatedCephUserPoolPermSetAllPermissions;
1437
+
1438
+ export type ListDedicatedCephUserPoolResponseBodyList =
1439
+ Array<DedicatedCephUserPoolPermSetAllPermissions>;
1440
+ export const ListDedicatedCephUserPoolResponseBodyList = /*@__PURE__*/ S.Array(
1441
+ DedicatedCephUserPoolPermSetAllPermissions,
1442
+ ) as any as S.Schema<ListDedicatedCephUserPoolResponseBodyList>;
1443
+
1444
+ export type ListDedicatedCephUserPoolResponse =
1445
+ ListDedicatedCephUserPoolResponseBodyList;
1446
+ export const ListDedicatedCephUserPoolResponse = /*@__PURE__*/ S.suspend(() =>
1447
+ ListDedicatedCephUserPoolResponseBodyList.pipe(T.RawResponseRoot()),
1448
+ ).annotate({
1449
+ identifier: "ListDedicatedCephUserPoolResponse",
1450
+ }) as any as S.Schema<ListDedicatedCephUserPoolResponse>;
1451
+
1452
+ /** Tunables of cluster */
1453
+ export type DedicatedCephClusterUpdateCrushTunablesEnum =
1454
+ | "ARGONAUT"
1455
+ | "BOBTAIL"
1456
+ | "DEFAULT"
1457
+ | "FIREFLY"
1458
+ | "HAMMER"
1459
+ | "JEWEL"
1460
+ | "LEGACY"
1461
+ | "OPTIMAL";
1462
+ export const DedicatedCephClusterUpdateCrushTunablesEnum =
1463
+ /*@__PURE__*/ S.String;
1464
+
1465
+ export interface PutDedicatedCephRequest {
1466
+ /** Service name */
1467
+ serviceName: string;
1468
+ /** Tunables of cluster */
1469
+ crushTunables: DedicatedCephClusterUpdateCrushTunablesEnum | (string & {});
1470
+ /** Name of the cluster */
1471
+ label: string;
1472
+ }
1473
+ export const PutDedicatedCephRequest = /*@__PURE__*/ S.suspend(() =>
1474
+ S.Struct({
1475
+ serviceName: S.String.pipe(T.Label()),
1476
+ crushTunables: DedicatedCephClusterUpdateCrushTunablesEnum,
1477
+ label: S.String,
1478
+ }).pipe(
1479
+ T.Http({ method: "PUT", uri: "/dedicated/ceph/{serviceName}", code: 200 }),
1480
+ ),
1481
+ ).annotate({
1482
+ identifier: "PutDedicatedCephRequest",
1483
+ }) as any as S.Schema<PutDedicatedCephRequest>;
1484
+
1485
+ export type PutDedicatedCephResponse = string;
1486
+ export const PutDedicatedCephResponse = /*@__PURE__*/ S.suspend(() =>
1487
+ S.String.pipe(T.RawResponseRoot()),
1488
+ ).annotate({
1489
+ identifier: "PutDedicatedCephResponse",
1490
+ }) as any as S.Schema<PutDedicatedCephResponse>;
1491
+
1492
+ export interface PutDedicatedCephPoolAllowDeletionRequest {
1493
+ /** Service name */
1494
+ serviceName: string;
1495
+ /** Pool name */
1496
+ poolName: string;
1497
+ }
1498
+ export const PutDedicatedCephPoolAllowDeletionRequest = /*@__PURE__*/ S.suspend(
1499
+ () =>
1500
+ S.Struct({
1501
+ serviceName: S.String.pipe(T.Label()),
1502
+ poolName: S.String.pipe(T.Label()),
1503
+ }).pipe(
1504
+ T.Http({
1505
+ method: "PUT",
1506
+ uri: "/dedicated/ceph/{serviceName}/pool/{poolName}/allowDeletion",
1507
+ code: 200,
1508
+ }),
1509
+ ),
1510
+ ).annotate({
1511
+ identifier: "PutDedicatedCephPoolAllowDeletionRequest",
1512
+ }) as any as S.Schema<PutDedicatedCephPoolAllowDeletionRequest>;
1513
+
1514
+ export type PutDedicatedCephPoolAllowDeletionResponse = string;
1515
+ export const PutDedicatedCephPoolAllowDeletionResponse =
1516
+ /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
1517
+ identifier: "PutDedicatedCephPoolAllowDeletionResponse",
1518
+ }) as any as S.Schema<PutDedicatedCephPoolAllowDeletionResponse>;
1519
+
1520
+ /** List of IP networks */
1521
+ export type PutDedicatedCephRadosGatewayAclRequestNetworksList = Array<string>;
1522
+ export const PutDedicatedCephRadosGatewayAclRequestNetworksList =
1523
+ /*@__PURE__*/ S.Array(
1524
+ S.String,
1525
+ ) as any as S.Schema<PutDedicatedCephRadosGatewayAclRequestNetworksList>;
1526
+
1527
+ export interface PutDedicatedCephRadosGatewayAclRequest {
1528
+ /** Service name */
1529
+ serviceName: string;
1530
+ /** Name */
1531
+ name: string;
1532
+ /** List of IP networks */
1533
+ networks: PutDedicatedCephRadosGatewayAclRequestNetworksList;
1534
+ }
1535
+ export const PutDedicatedCephRadosGatewayAclRequest = /*@__PURE__*/ S.suspend(
1536
+ () =>
1537
+ S.Struct({
1538
+ serviceName: S.String.pipe(T.Label()),
1539
+ name: S.String.pipe(T.Label()),
1540
+ networks: PutDedicatedCephRadosGatewayAclRequestNetworksList,
1541
+ }).pipe(
1542
+ T.Http({
1543
+ method: "PUT",
1544
+ uri: "/dedicated/ceph/{serviceName}/radosGateway/{name}/acl",
1545
+ code: 200,
1546
+ }),
1547
+ ),
1548
+ ).annotate({
1549
+ identifier: "PutDedicatedCephRadosGatewayAclRequest",
1550
+ }) as any as S.Schema<PutDedicatedCephRadosGatewayAclRequest>;
1551
+
1552
+ export interface PutDedicatedCephServiceInfosRequest {
1553
+ /** Service name */
1554
+ serviceName: string;
1555
+ /** Way of handling the renew */
1556
+ renew?: ServiceRenewType | null;
1557
+ }
1558
+ export const PutDedicatedCephServiceInfosRequest = /*@__PURE__*/ S.suspend(() =>
1559
+ S.Struct({
1560
+ serviceName: S.String.pipe(T.Label()),
1561
+ renew: S.optional(S.NullOr(ServiceRenewType)),
1562
+ }).pipe(
1563
+ T.Http({
1564
+ method: "PUT",
1565
+ uri: "/dedicated/ceph/{serviceName}/serviceInfos",
1566
+ code: 200,
1567
+ }),
1568
+ ),
1569
+ ).annotate({
1570
+ identifier: "PutDedicatedCephServiceInfosRequest",
1571
+ }) as any as S.Schema<PutDedicatedCephServiceInfosRequest>;
1572
+
1573
+ export interface PutDedicatedCephServiceInfosResponse {}
1574
+ export const PutDedicatedCephServiceInfosResponse = /*@__PURE__*/ S.suspend(
1575
+ () => S.Struct({}),
1576
+ ).annotate({
1577
+ identifier: "PutDedicatedCephServiceInfosResponse",
1578
+ }) as any as S.Schema<PutDedicatedCephServiceInfosResponse>;
1579
+
1580
+ export interface PutDedicatedCephUserPoolRequest {
1581
+ /** Service name */
1582
+ serviceName: string;
1583
+ /** User name */
1584
+ userName: string;
1585
+ /** Class read permission */
1586
+ classRead: boolean;
1587
+ /** Class write permission */
1588
+ classWrite: boolean;
1589
+ /** Execute permission */
1590
+ execute: boolean;
1591
+ /** Name of Ceph pool */
1592
+ poolName: string;
1593
+ /** Read permission */
1594
+ read: boolean;
1595
+ /** Write permission */
1596
+ write: boolean;
1597
+ }
1598
+ export const PutDedicatedCephUserPoolRequest = /*@__PURE__*/ S.suspend(() =>
1599
+ S.Struct({
1600
+ serviceName: S.String.pipe(T.Label()),
1601
+ userName: S.String.pipe(T.Label()),
1602
+ classRead: S.Boolean,
1603
+ classWrite: S.Boolean,
1604
+ execute: S.Boolean,
1605
+ poolName: S.String,
1606
+ read: S.Boolean,
1607
+ write: S.Boolean,
1608
+ }).pipe(
1609
+ T.Http({
1610
+ method: "PUT",
1611
+ uri: "/dedicated/ceph/{serviceName}/user/{userName}/pool",
1612
+ code: 200,
1613
+ }),
1614
+ ),
1615
+ ).annotate({
1616
+ identifier: "PutDedicatedCephUserPoolRequest",
1617
+ }) as any as S.Schema<PutDedicatedCephUserPoolRequest>;
1618
+
1619
+ export type PutDedicatedCephUserPoolResponse = string;
1620
+ export const PutDedicatedCephUserPoolResponse = /*@__PURE__*/ S.suspend(() =>
1621
+ S.String.pipe(T.RawResponseRoot()),
1622
+ ).annotate({
1623
+ identifier: "PutDedicatedCephUserPoolResponse",
1624
+ }) as any as S.Schema<PutDedicatedCephUserPoolResponse>;
1625
+
1626
+ export interface TerminateDedicatedCephRequest {
1627
+ /** Service name */
1628
+ serviceName: string;
1629
+ }
1630
+ export const TerminateDedicatedCephRequest = /*@__PURE__*/ S.suspend(() =>
1631
+ S.Struct({
1632
+ serviceName: S.String.pipe(T.Label()),
1633
+ }).pipe(
1634
+ T.Http({
1635
+ method: "POST",
1636
+ uri: "/dedicated/ceph/{serviceName}/terminate",
1637
+ code: 200,
1638
+ }),
1639
+ ),
1640
+ ).annotate({
1641
+ identifier: "TerminateDedicatedCephRequest",
1642
+ }) as any as S.Schema<TerminateDedicatedCephRequest>;
1643
+
1644
+ export type TerminateDedicatedCephResponse = string;
1645
+ export const TerminateDedicatedCephResponse = /*@__PURE__*/ S.suspend(() =>
1646
+ S.String.pipe(T.RawResponseRoot()),
1647
+ ).annotate({
1648
+ identifier: "TerminateDedicatedCephResponse",
1649
+ }) as any as S.Schema<TerminateDedicatedCephResponse>;
1650
+
1651
+ export type ConfirmDedicatedCephTerminationError = OvhOpError;
1652
+ /** Confirm service termination */
1653
+ export const confirmDedicatedCephTermination: API.OperationMethod<
1654
+ ConfirmDedicatedCephTerminationRequest,
1655
+ ConfirmDedicatedCephTerminationResponse,
1656
+ ConfirmDedicatedCephTerminationError,
1657
+ OvhOpContext
1658
+ > = /*@__PURE__*/ API.make(() => ({
1659
+ input: ConfirmDedicatedCephTerminationRequest,
1660
+ output: ConfirmDedicatedCephTerminationResponse,
1661
+ errors: [UnknownOvhError],
1662
+ protocol: OvhProtocol,
1663
+ retry: Retry.Retry,
1664
+ }));
1665
+
1666
+ export type CreateDedicatedCephAclError = OvhOpError;
1667
+ /** Create one or more new IP ACLs */
1668
+ export const createDedicatedCephAcl: API.OperationMethod<
1669
+ CreateDedicatedCephAclRequest,
1670
+ CreateDedicatedCephAclResponse,
1671
+ CreateDedicatedCephAclError,
1672
+ OvhOpContext
1673
+ > = /*@__PURE__*/ API.make(() => ({
1674
+ input: CreateDedicatedCephAclRequest,
1675
+ output: CreateDedicatedCephAclResponse,
1676
+ errors: [UnknownOvhError],
1677
+ protocol: OvhProtocol,
1678
+ retry: Retry.Retry,
1679
+ }));
1680
+
1681
+ export type CreateDedicatedCephChangeContactError = OvhOpError;
1682
+ /** Launch a contact change procedure */
1683
+ export const createDedicatedCephChangeContact: API.OperationMethod<
1684
+ CreateDedicatedCephChangeContactRequest,
1685
+ CreateDedicatedCephChangeContactResponse,
1686
+ CreateDedicatedCephChangeContactError,
1687
+ OvhOpContext
1688
+ > = /*@__PURE__*/ API.make(() => ({
1689
+ input: CreateDedicatedCephChangeContactRequest,
1690
+ output: CreateDedicatedCephChangeContactResponse,
1691
+ errors: [UnknownOvhError],
1692
+ protocol: OvhProtocol,
1693
+ retry: Retry.Retry,
1694
+ }));
1695
+
1696
+ export type CreateDedicatedCephPoolError = OvhOpError;
1697
+ /** Create a new ceph pool */
1698
+ export const createDedicatedCephPool: API.OperationMethod<
1699
+ CreateDedicatedCephPoolRequest,
1700
+ CreateDedicatedCephPoolResponse,
1701
+ CreateDedicatedCephPoolError,
1702
+ OvhOpContext
1703
+ > = /*@__PURE__*/ API.make(() => ({
1704
+ input: CreateDedicatedCephPoolRequest,
1705
+ output: CreateDedicatedCephPoolResponse,
1706
+ errors: [UnknownOvhError],
1707
+ protocol: OvhProtocol,
1708
+ retry: Retry.Retry,
1709
+ }));
1710
+
1711
+ export type CreateDedicatedCephPoolErasureError = OvhOpError;
1712
+ /** Create a new ceph erasure pool */
1713
+ export const createDedicatedCephPoolErasure: API.OperationMethod<
1714
+ CreateDedicatedCephPoolErasureRequest,
1715
+ CreateDedicatedCephPoolErasureResponse,
1716
+ CreateDedicatedCephPoolErasureError,
1717
+ OvhOpContext
1718
+ > = /*@__PURE__*/ API.make(() => ({
1719
+ input: CreateDedicatedCephPoolErasureRequest,
1720
+ output: CreateDedicatedCephPoolErasureResponse,
1721
+ errors: [UnknownOvhError],
1722
+ protocol: OvhProtocol,
1723
+ retry: Retry.Retry,
1724
+ }));
1725
+
1726
+ export type CreateDedicatedCephRadosGatewayAclError = OvhOpError;
1727
+ /** Add Rados Gateway ACL entries, any given network must be unique */
1728
+ export const createDedicatedCephRadosGatewayAcl: API.OperationMethod<
1729
+ CreateDedicatedCephRadosGatewayAclRequest,
1730
+ DedicatedCephRgwAcl,
1731
+ CreateDedicatedCephRadosGatewayAclError,
1732
+ OvhOpContext
1733
+ > = /*@__PURE__*/ API.make(() => ({
1734
+ input: CreateDedicatedCephRadosGatewayAclRequest,
1735
+ output: DedicatedCephRgwAcl,
1736
+ errors: [UnknownOvhError],
1737
+ protocol: OvhProtocol,
1738
+ retry: Retry.Retry,
1739
+ }));
1740
+
1741
+ export type CreateDedicatedCephUserError = OvhOpError;
1742
+ /** Create a new ceph user */
1743
+ export const createDedicatedCephUser: API.OperationMethod<
1744
+ CreateDedicatedCephUserRequest,
1745
+ CreateDedicatedCephUserResponse,
1746
+ CreateDedicatedCephUserError,
1747
+ OvhOpContext
1748
+ > = /*@__PURE__*/ API.make(() => ({
1749
+ input: CreateDedicatedCephUserRequest,
1750
+ output: CreateDedicatedCephUserResponse,
1751
+ errors: [UnknownOvhError],
1752
+ protocol: OvhProtocol,
1753
+ retry: Retry.Retry,
1754
+ }));
1755
+
1756
+ export type CreateDedicatedCephUserPoolError = OvhOpError;
1757
+ /** Create new user-pool permissions. All old permissions will be cleared */
1758
+ export const createDedicatedCephUserPool: API.OperationMethod<
1759
+ CreateDedicatedCephUserPoolRequest,
1760
+ CreateDedicatedCephUserPoolResponse,
1761
+ CreateDedicatedCephUserPoolError,
1762
+ OvhOpContext
1763
+ > = /*@__PURE__*/ API.make(() => ({
1764
+ input: CreateDedicatedCephUserPoolRequest,
1765
+ output: CreateDedicatedCephUserPoolResponse,
1766
+ errors: [UnknownOvhError],
1767
+ protocol: OvhProtocol,
1768
+ retry: Retry.Retry,
1769
+ }));
1770
+
1771
+ export type DeleteDedicatedCephAclError = OvhOpError;
1772
+ /** Delete single IP ACL */
1773
+ export const deleteDedicatedCephAcl: API.OperationMethod<
1774
+ DeleteDedicatedCephAclRequest,
1775
+ DeleteDedicatedCephAclResponse,
1776
+ DeleteDedicatedCephAclError,
1777
+ OvhOpContext
1778
+ > = /*@__PURE__*/ API.make(() => ({
1779
+ input: DeleteDedicatedCephAclRequest,
1780
+ output: DeleteDedicatedCephAclResponse,
1781
+ errors: [UnknownOvhError],
1782
+ protocol: OvhProtocol,
1783
+ retry: Retry.Retry,
1784
+ }));
1785
+
1786
+ export type DeleteDedicatedCephCephfError = OvhOpError;
1787
+ /** Purge CephFS filesystem */
1788
+ export const deleteDedicatedCephCephf: API.OperationMethod<
1789
+ DeleteDedicatedCephCephfRequest,
1790
+ DeleteDedicatedCephCephfResponse,
1791
+ DeleteDedicatedCephCephfError,
1792
+ OvhOpContext
1793
+ > = /*@__PURE__*/ API.make(() => ({
1794
+ input: DeleteDedicatedCephCephfRequest,
1795
+ output: DeleteDedicatedCephCephfResponse,
1796
+ errors: [UnknownOvhError],
1797
+ protocol: OvhProtocol,
1798
+ retry: Retry.Retry,
1799
+ }));
1800
+
1801
+ export type DeleteDedicatedCephPoolError = OvhOpError;
1802
+ /** Delete a single ceph pool */
1803
+ export const deleteDedicatedCephPool: API.OperationMethod<
1804
+ DeleteDedicatedCephPoolRequest,
1805
+ DeleteDedicatedCephPoolResponse,
1806
+ DeleteDedicatedCephPoolError,
1807
+ OvhOpContext
1808
+ > = /*@__PURE__*/ API.make(() => ({
1809
+ input: DeleteDedicatedCephPoolRequest,
1810
+ output: DeleteDedicatedCephPoolResponse,
1811
+ errors: [UnknownOvhError],
1812
+ protocol: OvhProtocol,
1813
+ retry: Retry.Retry,
1814
+ }));
1815
+
1816
+ export type DeleteDedicatedCephUserError = OvhOpError;
1817
+ /** Delete an existing single ceph user */
1818
+ export const deleteDedicatedCephUser: API.OperationMethod<
1819
+ DeleteDedicatedCephUserRequest,
1820
+ DeleteDedicatedCephUserResponse,
1821
+ DeleteDedicatedCephUserError,
1822
+ OvhOpContext
1823
+ > = /*@__PURE__*/ API.make(() => ({
1824
+ input: DeleteDedicatedCephUserRequest,
1825
+ output: DeleteDedicatedCephUserResponse,
1826
+ errors: [UnknownOvhError],
1827
+ protocol: OvhProtocol,
1828
+ retry: Retry.Retry,
1829
+ }));
1830
+
1831
+ export type DeleteDedicatedCephUserPoolError = OvhOpError;
1832
+ /** Clear user-pool permission for single pool */
1833
+ export const deleteDedicatedCephUserPool: API.OperationMethod<
1834
+ DeleteDedicatedCephUserPoolRequest,
1835
+ DeleteDedicatedCephUserPoolResponse,
1836
+ DeleteDedicatedCephUserPoolError,
1837
+ OvhOpContext
1838
+ > = /*@__PURE__*/ API.make(() => ({
1839
+ input: DeleteDedicatedCephUserPoolRequest,
1840
+ output: DeleteDedicatedCephUserPoolResponse,
1841
+ errors: [UnknownOvhError],
1842
+ protocol: OvhProtocol,
1843
+ retry: Retry.Retry,
1844
+ }));
1845
+
1846
+ export type DisableDedicatedCephCephfError = OvhOpError;
1847
+ /** Disable CephFS filesystem */
1848
+ export const disableDedicatedCephCephf: API.OperationMethod<
1849
+ DisableDedicatedCephCephfRequest,
1850
+ DisableDedicatedCephCephfResponse,
1851
+ DisableDedicatedCephCephfError,
1852
+ OvhOpContext
1853
+ > = /*@__PURE__*/ API.make(() => ({
1854
+ input: DisableDedicatedCephCephfRequest,
1855
+ output: DisableDedicatedCephCephfResponse,
1856
+ errors: [UnknownOvhError],
1857
+ protocol: OvhProtocol,
1858
+ retry: Retry.Retry,
1859
+ }));
1860
+
1861
+ export type EnableDedicatedCephCephfError = OvhOpError;
1862
+ /** Enable CephFS filesystem */
1863
+ export const enableDedicatedCephCephf: API.OperationMethod<
1864
+ EnableDedicatedCephCephfRequest,
1865
+ EnableDedicatedCephCephfResponse,
1866
+ EnableDedicatedCephCephfError,
1867
+ OvhOpContext
1868
+ > = /*@__PURE__*/ API.make(() => ({
1869
+ input: EnableDedicatedCephCephfRequest,
1870
+ output: EnableDedicatedCephCephfResponse,
1871
+ errors: [UnknownOvhError],
1872
+ protocol: OvhProtocol,
1873
+ retry: Retry.Retry,
1874
+ }));
1875
+
1876
+ export type GetDedicatedCephError = OvhOpError;
1877
+ /** Get cluster details */
1878
+ export const getDedicatedCeph: API.OperationMethod<
1879
+ GetDedicatedCephRequest,
1880
+ DedicatedCephClusterGetResponseWithIAM,
1881
+ GetDedicatedCephError,
1882
+ OvhOpContext
1883
+ > = /*@__PURE__*/ API.make(() => ({
1884
+ input: GetDedicatedCephRequest,
1885
+ output: DedicatedCephClusterGetResponseWithIAM,
1886
+ errors: [UnknownOvhError],
1887
+ protocol: OvhProtocol,
1888
+ retry: Retry.Retry,
1889
+ }));
1890
+
1891
+ export type GetDedicatedCephAclError = OvhOpError;
1892
+ /** Get details about IP ACL */
1893
+ export const getDedicatedCephAcl: API.OperationMethod<
1894
+ GetDedicatedCephAclRequest,
1895
+ DedicatedCephAclGetResponse,
1896
+ GetDedicatedCephAclError,
1897
+ OvhOpContext
1898
+ > = /*@__PURE__*/ API.make(() => ({
1899
+ input: GetDedicatedCephAclRequest,
1900
+ output: DedicatedCephAclGetResponse,
1901
+ errors: [UnknownOvhError],
1902
+ protocol: OvhProtocol,
1903
+ retry: Retry.Retry,
1904
+ }));
1905
+
1906
+ export type GetDedicatedCephCephfError = OvhOpError;
1907
+ /** Get CephFS filesystem information */
1908
+ export const getDedicatedCephCephf: API.OperationMethod<
1909
+ GetDedicatedCephCephfRequest,
1910
+ DedicatedCephCephfsGetResponse,
1911
+ GetDedicatedCephCephfError,
1912
+ OvhOpContext
1913
+ > = /*@__PURE__*/ API.make(() => ({
1914
+ input: GetDedicatedCephCephfRequest,
1915
+ output: DedicatedCephCephfsGetResponse,
1916
+ errors: [UnknownOvhError],
1917
+ protocol: OvhProtocol,
1918
+ retry: Retry.Retry,
1919
+ }));
1920
+
1921
+ export type GetDedicatedCephHealthError = OvhOpError;
1922
+ /** Get cluster health */
1923
+ export const getDedicatedCephHealth: API.OperationMethod<
1924
+ GetDedicatedCephHealthRequest,
1925
+ DedicatedCephClusterHealthResponse,
1926
+ GetDedicatedCephHealthError,
1927
+ OvhOpContext
1928
+ > = /*@__PURE__*/ API.make(() => ({
1929
+ input: GetDedicatedCephHealthRequest,
1930
+ output: DedicatedCephClusterHealthResponse,
1931
+ errors: [UnknownOvhError],
1932
+ protocol: OvhProtocol,
1933
+ retry: Retry.Retry,
1934
+ }));
1935
+
1936
+ export type GetDedicatedCephPoolError = OvhOpError;
1937
+ /** Get details about an existing ceph pool */
1938
+ export const getDedicatedCephPool: API.OperationMethod<
1939
+ GetDedicatedCephPoolRequest,
1940
+ DedicatedCephPoolGetResponse,
1941
+ GetDedicatedCephPoolError,
1942
+ OvhOpContext
1943
+ > = /*@__PURE__*/ API.make(() => ({
1944
+ input: GetDedicatedCephPoolRequest,
1945
+ output: DedicatedCephPoolGetResponse,
1946
+ errors: [UnknownOvhError],
1947
+ protocol: OvhProtocol,
1948
+ retry: Retry.Retry,
1949
+ }));
1950
+
1951
+ export type GetDedicatedCephRadosGatewayError = OvhOpError;
1952
+ export const getDedicatedCephRadosGateway: API.OperationMethod<
1953
+ GetDedicatedCephRadosGatewayRequest,
1954
+ DedicatedCephRgwResponse,
1955
+ GetDedicatedCephRadosGatewayError,
1956
+ OvhOpContext
1957
+ > = /*@__PURE__*/ API.make(() => ({
1958
+ input: GetDedicatedCephRadosGatewayRequest,
1959
+ output: DedicatedCephRgwResponse,
1960
+ errors: [UnknownOvhError],
1961
+ protocol: OvhProtocol,
1962
+ retry: Retry.Retry,
1963
+ }));
1964
+
1965
+ export type GetDedicatedCephServiceInfosError = OvhOpError;
1966
+ /** Get service information */
1967
+ export const getDedicatedCephServiceInfos: API.OperationMethod<
1968
+ GetDedicatedCephServiceInfosRequest,
1969
+ ServicesService,
1970
+ GetDedicatedCephServiceInfosError,
1971
+ OvhOpContext
1972
+ > = /*@__PURE__*/ API.make(() => ({
1973
+ input: GetDedicatedCephServiceInfosRequest,
1974
+ output: ServicesService,
1975
+ errors: [UnknownOvhError],
1976
+ protocol: OvhProtocol,
1977
+ retry: Retry.Retry,
1978
+ }));
1979
+
1980
+ export type GetDedicatedCephTaskError = OvhOpError;
1981
+ /** Get task details */
1982
+ export const getDedicatedCephTask: API.OperationMethod<
1983
+ GetDedicatedCephTaskRequest,
1984
+ GetDedicatedCephTaskResponse,
1985
+ GetDedicatedCephTaskError,
1986
+ OvhOpContext
1987
+ > = /*@__PURE__*/ API.make(() => ({
1988
+ input: GetDedicatedCephTaskRequest,
1989
+ output: GetDedicatedCephTaskResponse,
1990
+ errors: [UnknownOvhError],
1991
+ protocol: OvhProtocol,
1992
+ retry: Retry.Retry,
1993
+ }));
1994
+
1995
+ export type GetDedicatedCephUserError = OvhOpError;
1996
+ /** Get details about a ceph user */
1997
+ export const getDedicatedCephUser: API.OperationMethod<
1998
+ GetDedicatedCephUserRequest,
1999
+ DedicatedCephUserGetResponse,
2000
+ GetDedicatedCephUserError,
2001
+ OvhOpContext
2002
+ > = /*@__PURE__*/ API.make(() => ({
2003
+ input: GetDedicatedCephUserRequest,
2004
+ output: DedicatedCephUserGetResponse,
2005
+ errors: [UnknownOvhError],
2006
+ protocol: OvhProtocol,
2007
+ retry: Retry.Retry,
2008
+ }));
2009
+
2010
+ export type ListDedicatedCephError = OvhOpError;
2011
+ /** List available services */
2012
+ export const listDedicatedCeph: API.OperationMethod<
2013
+ ListDedicatedCephRequest,
2014
+ ListDedicatedCephResponse,
2015
+ ListDedicatedCephError,
2016
+ OvhOpContext
2017
+ > = /*@__PURE__*/ API.make(() => ({
2018
+ input: ListDedicatedCephRequest,
2019
+ output: ListDedicatedCephResponse,
2020
+ errors: [UnknownOvhError],
2021
+ protocol: OvhProtocol,
2022
+ retry: Retry.Retry,
2023
+ }));
2024
+
2025
+ export type ListDedicatedCephAclError = OvhOpError;
2026
+ /** Get list of all IP ACLs in a cluster */
2027
+ export const listDedicatedCephAcl: API.OperationMethod<
2028
+ ListDedicatedCephAclRequest,
2029
+ ListDedicatedCephAclResponse,
2030
+ ListDedicatedCephAclError,
2031
+ OvhOpContext
2032
+ > = /*@__PURE__*/ API.make(() => ({
2033
+ input: ListDedicatedCephAclRequest,
2034
+ output: ListDedicatedCephAclResponse,
2035
+ errors: [UnknownOvhError],
2036
+ protocol: OvhProtocol,
2037
+ retry: Retry.Retry,
2038
+ }));
2039
+
2040
+ export type ListDedicatedCephCephfsError = OvhOpError;
2041
+ /** List CephFS filesystems */
2042
+ export const listDedicatedCephCephfs: API.OperationMethod<
2043
+ ListDedicatedCephCephfsRequest,
2044
+ ListDedicatedCephCephfsResponse,
2045
+ ListDedicatedCephCephfsError,
2046
+ OvhOpContext
2047
+ > = /*@__PURE__*/ API.make(() => ({
2048
+ input: ListDedicatedCephCephfsRequest,
2049
+ output: ListDedicatedCephCephfsResponse,
2050
+ errors: [UnknownOvhError],
2051
+ protocol: OvhProtocol,
2052
+ retry: Retry.Retry,
2053
+ }));
2054
+
2055
+ export type ListDedicatedCephPoolError = OvhOpError;
2056
+ /** Get list of all pools in a cluster */
2057
+ export const listDedicatedCephPool: API.OperationMethod<
2058
+ ListDedicatedCephPoolRequest,
2059
+ ListDedicatedCephPoolResponse,
2060
+ ListDedicatedCephPoolError,
2061
+ OvhOpContext
2062
+ > = /*@__PURE__*/ API.make(() => ({
2063
+ input: ListDedicatedCephPoolRequest,
2064
+ output: ListDedicatedCephPoolResponse,
2065
+ errors: [UnknownOvhError],
2066
+ protocol: OvhProtocol,
2067
+ retry: Retry.Retry,
2068
+ }));
2069
+
2070
+ export type ListDedicatedCephRadosGatewayError = OvhOpError;
2071
+ /** List Ceph RGW instances */
2072
+ export const listDedicatedCephRadosGateway: API.OperationMethod<
2073
+ ListDedicatedCephRadosGatewayRequest,
2074
+ ListDedicatedCephRadosGatewayResponse,
2075
+ ListDedicatedCephRadosGatewayError,
2076
+ OvhOpContext
2077
+ > = /*@__PURE__*/ API.make(() => ({
2078
+ input: ListDedicatedCephRadosGatewayRequest,
2079
+ output: ListDedicatedCephRadosGatewayResponse,
2080
+ errors: [UnknownOvhError],
2081
+ protocol: OvhProtocol,
2082
+ retry: Retry.Retry,
2083
+ }));
2084
+
2085
+ export type ListDedicatedCephRadosGatewayAclError = OvhOpError;
2086
+ /** Get all Rados Gateway ACL entries */
2087
+ export const listDedicatedCephRadosGatewayAcl: API.OperationMethod<
2088
+ ListDedicatedCephRadosGatewayAclRequest,
2089
+ DedicatedCephRgwAcl,
2090
+ ListDedicatedCephRadosGatewayAclError,
2091
+ OvhOpContext
2092
+ > = /*@__PURE__*/ API.make(() => ({
2093
+ input: ListDedicatedCephRadosGatewayAclRequest,
2094
+ output: DedicatedCephRgwAcl,
2095
+ errors: [UnknownOvhError],
2096
+ protocol: OvhProtocol,
2097
+ retry: Retry.Retry,
2098
+ }));
2099
+
2100
+ export type ListDedicatedCephTaskError = OvhOpError;
2101
+ /** List tasks in progress */
2102
+ export const listDedicatedCephTask: API.OperationMethod<
2103
+ ListDedicatedCephTaskRequest,
2104
+ ListDedicatedCephTaskResponse,
2105
+ ListDedicatedCephTaskError,
2106
+ OvhOpContext
2107
+ > = /*@__PURE__*/ API.make(() => ({
2108
+ input: ListDedicatedCephTaskRequest,
2109
+ output: ListDedicatedCephTaskResponse,
2110
+ errors: [UnknownOvhError],
2111
+ protocol: OvhProtocol,
2112
+ retry: Retry.Retry,
2113
+ }));
2114
+
2115
+ export type ListDedicatedCephUserError = OvhOpError;
2116
+ /** Get list of all users in a cluster */
2117
+ export const listDedicatedCephUser: API.OperationMethod<
2118
+ ListDedicatedCephUserRequest,
2119
+ ListDedicatedCephUserResponse,
2120
+ ListDedicatedCephUserError,
2121
+ OvhOpContext
2122
+ > = /*@__PURE__*/ API.make(() => ({
2123
+ input: ListDedicatedCephUserRequest,
2124
+ output: ListDedicatedCephUserResponse,
2125
+ errors: [UnknownOvhError],
2126
+ protocol: OvhProtocol,
2127
+ retry: Retry.Retry,
2128
+ }));
2129
+
2130
+ export type ListDedicatedCephUserPoolError = OvhOpError;
2131
+ /** List user-pool permissions */
2132
+ export const listDedicatedCephUserPool: API.OperationMethod<
2133
+ ListDedicatedCephUserPoolRequest,
2134
+ ListDedicatedCephUserPoolResponse,
2135
+ ListDedicatedCephUserPoolError,
2136
+ OvhOpContext
2137
+ > = /*@__PURE__*/ API.make(() => ({
2138
+ input: ListDedicatedCephUserPoolRequest,
2139
+ output: ListDedicatedCephUserPoolResponse,
2140
+ errors: [UnknownOvhError],
2141
+ protocol: OvhProtocol,
2142
+ retry: Retry.Retry,
2143
+ }));
2144
+
2145
+ export type PutDedicatedCephError = OvhOpError;
2146
+ /** Update cluster details */
2147
+ export const putDedicatedCeph: API.OperationMethod<
2148
+ PutDedicatedCephRequest,
2149
+ PutDedicatedCephResponse,
2150
+ PutDedicatedCephError,
2151
+ OvhOpContext
2152
+ > = /*@__PURE__*/ API.make(() => ({
2153
+ input: PutDedicatedCephRequest,
2154
+ output: PutDedicatedCephResponse,
2155
+ errors: [UnknownOvhError],
2156
+ protocol: OvhProtocol,
2157
+ retry: Retry.Retry,
2158
+ }));
2159
+
2160
+ export type PutDedicatedCephPoolAllowDeletionError = OvhOpError;
2161
+ /** Open 5 minutes window for deleting single ceph pool */
2162
+ export const putDedicatedCephPoolAllowDeletion: API.OperationMethod<
2163
+ PutDedicatedCephPoolAllowDeletionRequest,
2164
+ PutDedicatedCephPoolAllowDeletionResponse,
2165
+ PutDedicatedCephPoolAllowDeletionError,
2166
+ OvhOpContext
2167
+ > = /*@__PURE__*/ API.make(() => ({
2168
+ input: PutDedicatedCephPoolAllowDeletionRequest,
2169
+ output: PutDedicatedCephPoolAllowDeletionResponse,
2170
+ errors: [UnknownOvhError],
2171
+ protocol: OvhProtocol,
2172
+ retry: Retry.Retry,
2173
+ }));
2174
+
2175
+ export type PutDedicatedCephRadosGatewayAclError = OvhOpError;
2176
+ /** Completely replaces Rados Gateway ACL entries */
2177
+ export const putDedicatedCephRadosGatewayAcl: API.OperationMethod<
2178
+ PutDedicatedCephRadosGatewayAclRequest,
2179
+ DedicatedCephRgwAcl,
2180
+ PutDedicatedCephRadosGatewayAclError,
2181
+ OvhOpContext
2182
+ > = /*@__PURE__*/ API.make(() => ({
2183
+ input: PutDedicatedCephRadosGatewayAclRequest,
2184
+ output: DedicatedCephRgwAcl,
2185
+ errors: [UnknownOvhError],
2186
+ protocol: OvhProtocol,
2187
+ retry: Retry.Retry,
2188
+ }));
2189
+
2190
+ export type PutDedicatedCephServiceInfosError = OvhOpError;
2191
+ /** Update service information */
2192
+ export const putDedicatedCephServiceInfos: API.OperationMethod<
2193
+ PutDedicatedCephServiceInfosRequest,
2194
+ PutDedicatedCephServiceInfosResponse,
2195
+ PutDedicatedCephServiceInfosError,
2196
+ OvhOpContext
2197
+ > = /*@__PURE__*/ API.make(() => ({
2198
+ input: PutDedicatedCephServiceInfosRequest,
2199
+ output: PutDedicatedCephServiceInfosResponse,
2200
+ errors: [UnknownOvhError],
2201
+ protocol: OvhProtocol,
2202
+ retry: Retry.Retry,
2203
+ }));
2204
+
2205
+ export type PutDedicatedCephUserPoolError = OvhOpError;
2206
+ /** Update user-pool permission for single pool */
2207
+ export const putDedicatedCephUserPool: API.OperationMethod<
2208
+ PutDedicatedCephUserPoolRequest,
2209
+ PutDedicatedCephUserPoolResponse,
2210
+ PutDedicatedCephUserPoolError,
2211
+ OvhOpContext
2212
+ > = /*@__PURE__*/ API.make(() => ({
2213
+ input: PutDedicatedCephUserPoolRequest,
2214
+ output: PutDedicatedCephUserPoolResponse,
2215
+ errors: [UnknownOvhError],
2216
+ protocol: OvhProtocol,
2217
+ retry: Retry.Retry,
2218
+ }));
2219
+
2220
+ export type TerminateDedicatedCephError = OvhOpError;
2221
+ /** Ask for the termination of your service */
2222
+ export const terminateDedicatedCeph: API.OperationMethod<
2223
+ TerminateDedicatedCephRequest,
2224
+ TerminateDedicatedCephResponse,
2225
+ TerminateDedicatedCephError,
2226
+ OvhOpContext
2227
+ > = /*@__PURE__*/ API.make(() => ({
2228
+ input: TerminateDedicatedCephRequest,
2229
+ output: TerminateDedicatedCephResponse,
2230
+ errors: [UnknownOvhError],
2231
+ protocol: OvhProtocol,
2232
+ retry: Retry.Retry,
2233
+ }));