@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,1408 @@
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 ConfirmSslGatewayTerminationRequest {
43
+ /** The internal name of your SSL Gateway */
44
+ serviceName: string;
45
+ /** Commentary about your termination request */
46
+ commentary?: string;
47
+ /** What next after your termination request */
48
+ futureUse?: ServiceTerminationFutureUseEnum | (string & {});
49
+ /** Reason of your termination request */
50
+ reason?: ServiceTerminationReasonEnum | (string & {});
51
+ /** The termination token sent by email to the admin contact */
52
+ token: string;
53
+ }
54
+ export const ConfirmSslGatewayTerminationRequest = /*@__PURE__*/ S.suspend(() =>
55
+ S.Struct({
56
+ serviceName: S.String.pipe(T.Label()),
57
+ commentary: S.optional(S.String),
58
+ futureUse: S.optional(ServiceTerminationFutureUseEnum),
59
+ reason: S.optional(ServiceTerminationReasonEnum),
60
+ token: S.String,
61
+ }).pipe(
62
+ T.Http({
63
+ method: "POST",
64
+ uri: "/sslGateway/{serviceName}/confirmTermination",
65
+ code: 200,
66
+ }),
67
+ ),
68
+ ).annotate({
69
+ identifier: "ConfirmSslGatewayTerminationRequest",
70
+ }) as any as S.Schema<ConfirmSslGatewayTerminationRequest>;
71
+
72
+ export type ConfirmSslGatewayTerminationResponse = string;
73
+ export const ConfirmSslGatewayTerminationResponse = /*@__PURE__*/ S.suspend(
74
+ () => S.String.pipe(T.RawResponseRoot()),
75
+ ).annotate({
76
+ identifier: "ConfirmSslGatewayTerminationResponse",
77
+ }) as any as S.Schema<ConfirmSslGatewayTerminationResponse>;
78
+
79
+ export interface CreateSslGatewayChangeContactRequest {
80
+ /** The internal name of your SSL Gateway */
81
+ serviceName: string;
82
+ /** The contact to set as admin contact */
83
+ contactAdmin?: string;
84
+ /** The contact to set as billing contact */
85
+ contactBilling?: string;
86
+ /** The contact to set as tech contact */
87
+ contactTech?: string;
88
+ }
89
+ export const CreateSslGatewayChangeContactRequest = /*@__PURE__*/ S.suspend(
90
+ () =>
91
+ S.Struct({
92
+ serviceName: S.String.pipe(T.Label()),
93
+ contactAdmin: S.optional(S.String),
94
+ contactBilling: S.optional(S.String),
95
+ contactTech: S.optional(S.String),
96
+ }).pipe(
97
+ T.Http({
98
+ method: "POST",
99
+ uri: "/sslGateway/{serviceName}/changeContact",
100
+ code: 200,
101
+ }),
102
+ ),
103
+ ).annotate({
104
+ identifier: "CreateSslGatewayChangeContactRequest",
105
+ }) as any as S.Schema<CreateSslGatewayChangeContactRequest>;
106
+
107
+ export type CreateSslGatewayChangeContactResponseBodyList = Array<number>;
108
+ export const CreateSslGatewayChangeContactResponseBodyList =
109
+ /*@__PURE__*/ S.Array(
110
+ S.Number,
111
+ ) as any as S.Schema<CreateSslGatewayChangeContactResponseBodyList>;
112
+
113
+ export type CreateSslGatewayChangeContactResponse =
114
+ CreateSslGatewayChangeContactResponseBodyList;
115
+ export const CreateSslGatewayChangeContactResponse = /*@__PURE__*/ S.suspend(
116
+ () => CreateSslGatewayChangeContactResponseBodyList.pipe(T.RawResponseRoot()),
117
+ ).annotate({
118
+ identifier: "CreateSslGatewayChangeContactResponse",
119
+ }) as any as S.Schema<CreateSslGatewayChangeContactResponse>;
120
+
121
+ export interface CreateSslGatewayDomainRequest {
122
+ /** The internal name of your SSL Gateway */
123
+ serviceName: string;
124
+ /** Domain to attach */
125
+ domain: string;
126
+ }
127
+ export const CreateSslGatewayDomainRequest = /*@__PURE__*/ S.suspend(() =>
128
+ S.Struct({
129
+ serviceName: S.String.pipe(T.Label()),
130
+ domain: S.String,
131
+ }).pipe(
132
+ T.Http({
133
+ method: "POST",
134
+ uri: "/sslGateway/{serviceName}/domain",
135
+ code: 200,
136
+ }),
137
+ ),
138
+ ).annotate({
139
+ identifier: "CreateSslGatewayDomainRequest",
140
+ }) as any as S.Schema<CreateSslGatewayDomainRequest>;
141
+
142
+ /** Possible values for SSL Gateway domain state */
143
+ export type SslGatewayDomainStateEnum =
144
+ | "creating"
145
+ | "deleted"
146
+ | "deleting"
147
+ | "http-only"
148
+ | "internal"
149
+ | "ok";
150
+ export const SslGatewayDomainStateEnum = /*@__PURE__*/ S.String;
151
+
152
+ /** Domain attached to an SSL Gateway */
153
+ export interface SslGatewayDomain {
154
+ /** Domain name attached to your SSL Gateway */
155
+ domain?: string;
156
+ /** Id of your domain */
157
+ id?: number;
158
+ /** Domain state */
159
+ state?: SslGatewayDomainStateEnum;
160
+ }
161
+ export const SslGatewayDomain = /*@__PURE__*/ S.suspend(() =>
162
+ S.Struct({
163
+ domain: S.optional(S.String),
164
+ id: S.optional(S.Number),
165
+ state: S.optional(SslGatewayDomainStateEnum),
166
+ }),
167
+ ).annotate({
168
+ identifier: "SslGatewayDomain",
169
+ }) as any as S.Schema<SslGatewayDomain>;
170
+
171
+ export interface CreateSslGatewayServerRequest {
172
+ /** The internal name of your SSL Gateway */
173
+ serviceName: string;
174
+ /** IPv4 address of your server */
175
+ address: string;
176
+ /** Port of your server */
177
+ port: number;
178
+ }
179
+ export const CreateSslGatewayServerRequest = /*@__PURE__*/ S.suspend(() =>
180
+ S.Struct({
181
+ serviceName: S.String.pipe(T.Label()),
182
+ address: S.String,
183
+ port: S.Number,
184
+ }).pipe(
185
+ T.Http({
186
+ method: "POST",
187
+ uri: "/sslGateway/{serviceName}/server",
188
+ code: 200,
189
+ }),
190
+ ),
191
+ ).annotate({
192
+ identifier: "CreateSslGatewayServerRequest",
193
+ }) as any as S.Schema<CreateSslGatewayServerRequest>;
194
+
195
+ /** Possible values for SSL Gateway server state */
196
+ export type SslGatewayServerStateEnum =
197
+ | "creating"
198
+ | "deleted"
199
+ | "deleting"
200
+ | "internal"
201
+ | "ok"
202
+ | "updating";
203
+ export const SslGatewayServerStateEnum = /*@__PURE__*/ S.String;
204
+
205
+ /** Server attached to an SSL Gateway */
206
+ export interface SslGatewayServer {
207
+ /** IP address of the server attached to your SSL Gateway */
208
+ address?: string;
209
+ /** Id of your server */
210
+ id?: number;
211
+ /** Port of your server attached to your SSL Gateway */
212
+ port?: number;
213
+ /** Server state */
214
+ state?: SslGatewayServerStateEnum;
215
+ }
216
+ export const SslGatewayServer = /*@__PURE__*/ S.suspend(() =>
217
+ S.Struct({
218
+ address: S.optional(S.String),
219
+ id: S.optional(S.Number),
220
+ port: S.optional(S.Number),
221
+ state: S.optional(SslGatewayServerStateEnum),
222
+ }),
223
+ ).annotate({
224
+ identifier: "SslGatewayServer",
225
+ }) as any as S.Schema<SslGatewayServer>;
226
+
227
+ export interface DeleteSslGatewayDomainRequest {
228
+ /** The internal name of your SSL Gateway */
229
+ serviceName: string;
230
+ /** Id of your domain */
231
+ id: number;
232
+ }
233
+ export const DeleteSslGatewayDomainRequest = /*@__PURE__*/ S.suspend(() =>
234
+ S.Struct({
235
+ serviceName: S.String.pipe(T.Label()),
236
+ id: S.Number.pipe(T.Label()),
237
+ }).pipe(
238
+ T.Http({
239
+ method: "DELETE",
240
+ uri: "/sslGateway/{serviceName}/domain/{id}",
241
+ code: 200,
242
+ }),
243
+ ),
244
+ ).annotate({
245
+ identifier: "DeleteSslGatewayDomainRequest",
246
+ }) as any as S.Schema<DeleteSslGatewayDomainRequest>;
247
+
248
+ export interface DeleteSslGatewayDomainResponse {}
249
+ export const DeleteSslGatewayDomainResponse = /*@__PURE__*/ S.suspend(() =>
250
+ S.Struct({}),
251
+ ).annotate({
252
+ identifier: "DeleteSslGatewayDomainResponse",
253
+ }) as any as S.Schema<DeleteSslGatewayDomainResponse>;
254
+
255
+ export interface DeleteSslGatewayServerRequest {
256
+ /** The internal name of your SSL Gateway */
257
+ serviceName: string;
258
+ /** Id of your server */
259
+ id: number;
260
+ }
261
+ export const DeleteSslGatewayServerRequest = /*@__PURE__*/ S.suspend(() =>
262
+ S.Struct({
263
+ serviceName: S.String.pipe(T.Label()),
264
+ id: S.Number.pipe(T.Label()),
265
+ }).pipe(
266
+ T.Http({
267
+ method: "DELETE",
268
+ uri: "/sslGateway/{serviceName}/server/{id}",
269
+ code: 200,
270
+ }),
271
+ ),
272
+ ).annotate({
273
+ identifier: "DeleteSslGatewayServerRequest",
274
+ }) as any as S.Schema<DeleteSslGatewayServerRequest>;
275
+
276
+ export interface DeleteSslGatewayServerResponse {}
277
+ export const DeleteSslGatewayServerResponse = /*@__PURE__*/ S.suspend(() =>
278
+ S.Struct({}),
279
+ ).annotate({
280
+ identifier: "DeleteSslGatewayServerResponse",
281
+ }) as any as S.Schema<DeleteSslGatewayServerResponse>;
282
+
283
+ export interface GetSslGatewayRequest {
284
+ /** The internal name of your SSL Gateway */
285
+ serviceName: string;
286
+ }
287
+ export const GetSslGatewayRequest = /*@__PURE__*/ S.suspend(() =>
288
+ S.Struct({
289
+ serviceName: S.String.pipe(T.Label()),
290
+ }).pipe(
291
+ T.Http({ method: "GET", uri: "/sslGateway/{serviceName}", code: 200 }),
292
+ ),
293
+ ).annotate({
294
+ identifier: "GetSslGatewayRequest",
295
+ }) as any as S.Schema<GetSslGatewayRequest>;
296
+
297
+ /** Restrict SSL Gateway access to these ip block. No restriction if null */
298
+ export type SslGatewaySslGatewayWithIAMAllowedSourceList = Array<string>;
299
+ export const SslGatewaySslGatewayWithIAMAllowedSourceList =
300
+ /*@__PURE__*/ S.Array(
301
+ S.String,
302
+ ) as any as S.Schema<SslGatewaySslGatewayWithIAMAllowedSourceList>;
303
+
304
+ /** Resource tags. Tags that were internally computed are prefixed with ovh: */
305
+ export type IamResourceMetadataTagsMap = { [key: string]: string | undefined };
306
+ export const IamResourceMetadataTagsMap = /*@__PURE__*/ S.Record(
307
+ S.String,
308
+ S.String,
309
+ ) as any as S.Schema<IamResourceMetadataTagsMap>;
310
+
311
+ /** IAM resource metadata embedded in services models */
312
+ export interface IamResourceMetadata {
313
+ /** Resource display name */
314
+ displayName?: string | null;
315
+ /** Unique identifier of the resource */
316
+ id?: string;
317
+ /** Resource tags. Tags that were internally computed are prefixed with ovh: */
318
+ tags?: IamResourceMetadataTagsMap | null;
319
+ /** Unique resource name used in policies */
320
+ urn?: string;
321
+ }
322
+ export const IamResourceMetadata = /*@__PURE__*/ S.suspend(() =>
323
+ S.Struct({
324
+ displayName: S.optional(S.NullOr(S.String)),
325
+ id: S.optional(S.String),
326
+ tags: S.optional(S.NullOr(IamResourceMetadataTagsMap)),
327
+ urn: S.optional(S.String),
328
+ }),
329
+ ).annotate({
330
+ identifier: "IamResourceMetadata",
331
+ }) as any as S.Schema<IamResourceMetadata>;
332
+
333
+ /** List of SSL Gateway offers */
334
+ export type SslGatewayOfferEnum =
335
+ | "advanced"
336
+ | "enterprise"
337
+ | "free"
338
+ | "internal";
339
+ export const SslGatewayOfferEnum = /*@__PURE__*/ S.String;
340
+
341
+ /** Possible values for ssl ciphers */
342
+ export type SslGatewaySslConfigurationEnum =
343
+ | "intermediate"
344
+ | "internal"
345
+ | "modern";
346
+ export const SslGatewaySslConfigurationEnum = /*@__PURE__*/ S.String;
347
+
348
+ /** Possible values for SSL Gateway state */
349
+ export type SslGatewayStateEnum =
350
+ | "creating"
351
+ | "deleted"
352
+ | "deleting"
353
+ | "http-only"
354
+ | "internal"
355
+ | "ok"
356
+ | "suspended"
357
+ | "upgrading";
358
+ export const SslGatewayStateEnum = /*@__PURE__*/ S.String;
359
+
360
+ /** Zones of your SSL Gateway */
361
+ export type SslGatewaySslGatewayWithIAMZonesList = Array<string>;
362
+ export const SslGatewaySslGatewayWithIAMZonesList = /*@__PURE__*/ S.Array(
363
+ S.String,
364
+ ) as any as S.Schema<SslGatewaySslGatewayWithIAMZonesList>;
365
+
366
+ /** Your SSL Gateway */
367
+ export interface SslGatewaySslGatewayWithIAM {
368
+ /** Restrict SSL Gateway access to these ip block. No restriction if null */
369
+ allowedSource?: SslGatewaySslGatewayWithIAMAllowedSourceList | null;
370
+ /** Custom name of your SSL Gateway */
371
+ displayName?: string | null;
372
+ /** Set to true to enable Strict-Transport-Security HTTP header */
373
+ hsts?: boolean;
374
+ /** Set to true to enable https redirect */
375
+ httpsRedirect?: boolean;
376
+ /** IAM resource metadata */
377
+ iam?: IamResourceMetadata | null;
378
+ /** The IPv4 you need to put in the A field of your domain name */
379
+ ipv4?: string;
380
+ /** The IPv6 you need to put in the AAAA field of your domain name */
381
+ ipv6?: string | null;
382
+ /** The metrics token associated with your SSL Gateway */
383
+ metricsToken?: string | null;
384
+ /** Current offer for your SSL Gateway */
385
+ offer?: SslGatewayOfferEnum;
386
+ /** Custom reverse for your SSL Gateway */
387
+ reverse?: string | null;
388
+ /** Set to true to contact backend servers over HTTPS */
389
+ serverHttps?: boolean;
390
+ /** The internal name of your SSL Gateway */
391
+ serviceName?: string;
392
+ /** Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. */
393
+ sslConfiguration?: SslGatewaySslConfigurationEnum | null;
394
+ /** Current state of your SSL Gateway */
395
+ state?: SslGatewayStateEnum;
396
+ /** Zones of your SSL Gateway */
397
+ zones?: SslGatewaySslGatewayWithIAMZonesList;
398
+ }
399
+ export const SslGatewaySslGatewayWithIAM = /*@__PURE__*/ S.suspend(() =>
400
+ S.Struct({
401
+ allowedSource: S.optional(
402
+ S.NullOr(SslGatewaySslGatewayWithIAMAllowedSourceList),
403
+ ),
404
+ displayName: S.optional(S.NullOr(S.String)),
405
+ hsts: S.optional(S.Boolean),
406
+ httpsRedirect: S.optional(S.Boolean),
407
+ iam: S.optional(S.NullOr(IamResourceMetadata)),
408
+ ipv4: S.optional(S.String),
409
+ ipv6: S.optional(S.NullOr(S.String)),
410
+ metricsToken: S.optional(S.NullOr(S.String)),
411
+ offer: S.optional(SslGatewayOfferEnum),
412
+ reverse: S.optional(S.NullOr(S.String)),
413
+ serverHttps: S.optional(S.Boolean),
414
+ serviceName: S.optional(S.String),
415
+ sslConfiguration: S.optional(S.NullOr(SslGatewaySslConfigurationEnum)),
416
+ state: S.optional(SslGatewayStateEnum),
417
+ zones: S.optional(SslGatewaySslGatewayWithIAMZonesList),
418
+ }),
419
+ ).annotate({
420
+ identifier: "SslGatewaySslGatewayWithIAM",
421
+ }) as any as S.Schema<SslGatewaySslGatewayWithIAM>;
422
+
423
+ export interface GetSslGatewayDomainRequest {
424
+ /** The internal name of your SSL Gateway */
425
+ serviceName: string;
426
+ /** Id of your domain */
427
+ id: number;
428
+ }
429
+ export const GetSslGatewayDomainRequest = /*@__PURE__*/ S.suspend(() =>
430
+ S.Struct({
431
+ serviceName: S.String.pipe(T.Label()),
432
+ id: S.Number.pipe(T.Label()),
433
+ }).pipe(
434
+ T.Http({
435
+ method: "GET",
436
+ uri: "/sslGateway/{serviceName}/domain/{id}",
437
+ code: 200,
438
+ }),
439
+ ),
440
+ ).annotate({
441
+ identifier: "GetSslGatewayDomainRequest",
442
+ }) as any as S.Schema<GetSslGatewayDomainRequest>;
443
+
444
+ export interface GetSslGatewayServerRequest {
445
+ /** The internal name of your SSL Gateway */
446
+ serviceName: string;
447
+ /** Id of your server */
448
+ id: number;
449
+ }
450
+ export const GetSslGatewayServerRequest = /*@__PURE__*/ S.suspend(() =>
451
+ S.Struct({
452
+ serviceName: S.String.pipe(T.Label()),
453
+ id: S.Number.pipe(T.Label()),
454
+ }).pipe(
455
+ T.Http({
456
+ method: "GET",
457
+ uri: "/sslGateway/{serviceName}/server/{id}",
458
+ code: 200,
459
+ }),
460
+ ),
461
+ ).annotate({
462
+ identifier: "GetSslGatewayServerRequest",
463
+ }) as any as S.Schema<GetSslGatewayServerRequest>;
464
+
465
+ export interface GetSslGatewayServiceInfosRequest {
466
+ /** The internal name of your SSL Gateway */
467
+ serviceName: string;
468
+ }
469
+ export const GetSslGatewayServiceInfosRequest = /*@__PURE__*/ S.suspend(() =>
470
+ S.Struct({
471
+ serviceName: S.String.pipe(T.Label()),
472
+ }).pipe(
473
+ T.Http({
474
+ method: "GET",
475
+ uri: "/sslGateway/{serviceName}/serviceInfos",
476
+ code: 200,
477
+ }),
478
+ ),
479
+ ).annotate({
480
+ identifier: "GetSslGatewayServiceInfosRequest",
481
+ }) as any as S.Schema<GetSslGatewayServiceInfosRequest>;
482
+
483
+ /** All the possible renew period of your service in month */
484
+ export type ServicesServicePossibleRenewPeriodList = Array<number>;
485
+ export const ServicesServicePossibleRenewPeriodList = /*@__PURE__*/ S.Array(
486
+ S.Number,
487
+ ) as any as S.Schema<ServicesServicePossibleRenewPeriodList>;
488
+
489
+ /** Map a possible renew for a specific service */
490
+ export interface ServiceRenewType {
491
+ /** The service is automatically renewed */
492
+ automatic?: boolean;
493
+ /** The service will be deleted at expiration */
494
+ deleteAtExpiration?: boolean;
495
+ /** The service forced to be renewed */
496
+ forced?: boolean;
497
+ /** The service needs to be manually renewed and paid */
498
+ manualPayment?: boolean | null;
499
+ /** period of renew in month */
500
+ period?: number | null;
501
+ }
502
+ export const ServiceRenewType = /*@__PURE__*/ S.suspend(() =>
503
+ S.Struct({
504
+ automatic: S.optional(S.Boolean),
505
+ deleteAtExpiration: S.optional(S.Boolean),
506
+ forced: S.optional(S.Boolean),
507
+ manualPayment: S.optional(S.NullOr(S.Boolean)),
508
+ period: S.optional(S.NullOr(S.Number)),
509
+ }),
510
+ ).annotate({
511
+ identifier: "ServiceRenewType",
512
+ }) as any as S.Schema<ServiceRenewType>;
513
+
514
+ /** Detailed renewal type of a service */
515
+ export type ServiceRenewalTypeEnum =
516
+ | "automaticForcedProduct"
517
+ | "automaticV2012"
518
+ | "automaticV2014"
519
+ | "automaticV2016"
520
+ | "automaticV2024"
521
+ | "manual"
522
+ | "oneShot"
523
+ | "option";
524
+ export const ServiceRenewalTypeEnum = /*@__PURE__*/ S.String;
525
+
526
+ export type ServiceStateEnum =
527
+ | "autorenewInProgress"
528
+ | "expired"
529
+ | "inCreation"
530
+ | "ok"
531
+ | "pendingDebt"
532
+ | "unPaid";
533
+ export const ServiceStateEnum = /*@__PURE__*/ S.String;
534
+
535
+ /** Details about a Service */
536
+ export interface ServicesService {
537
+ /** Indicates that the service can be set up to be deleted at expiration */
538
+ canDeleteAtExpiration?: boolean;
539
+ contactAdmin?: string;
540
+ contactBilling?: string;
541
+ contactTech?: string;
542
+ creation?: string;
543
+ domain?: string;
544
+ engagedUpTo?: string | null;
545
+ expiration?: string;
546
+ /** All the possible renew period of your service in month */
547
+ possibleRenewPeriod?: ServicesServicePossibleRenewPeriodList | null;
548
+ /** Way of handling the renew */
549
+ renew?: ServiceRenewType | null;
550
+ renewalType?: ServiceRenewalTypeEnum;
551
+ serviceId?: number;
552
+ status?: ServiceStateEnum;
553
+ }
554
+ export const ServicesService = /*@__PURE__*/ S.suspend(() =>
555
+ S.Struct({
556
+ canDeleteAtExpiration: S.optional(S.Boolean),
557
+ contactAdmin: S.optional(S.String),
558
+ contactBilling: S.optional(S.String),
559
+ contactTech: S.optional(S.String),
560
+ creation: S.optional(S.String),
561
+ domain: S.optional(S.String),
562
+ engagedUpTo: S.optional(S.NullOr(S.String)),
563
+ expiration: S.optional(S.String),
564
+ possibleRenewPeriod: S.optional(
565
+ S.NullOr(ServicesServicePossibleRenewPeriodList),
566
+ ),
567
+ renew: S.optional(S.NullOr(ServiceRenewType)),
568
+ renewalType: S.optional(ServiceRenewalTypeEnum),
569
+ serviceId: S.optional(S.Number),
570
+ status: S.optional(ServiceStateEnum),
571
+ }),
572
+ ).annotate({
573
+ identifier: "ServicesService",
574
+ }) as any as S.Schema<ServicesService>;
575
+
576
+ export interface GetSslGatewayTaskRequest {
577
+ /** The internal name of your SSL Gateway */
578
+ serviceName: string;
579
+ /** Id of the task */
580
+ id: number;
581
+ }
582
+ export const GetSslGatewayTaskRequest = /*@__PURE__*/ S.suspend(() =>
583
+ S.Struct({
584
+ serviceName: S.String.pipe(T.Label()),
585
+ id: S.Number.pipe(T.Label()),
586
+ }).pipe(
587
+ T.Http({
588
+ method: "GET",
589
+ uri: "/sslGateway/{serviceName}/task/{id}",
590
+ code: 200,
591
+ }),
592
+ ),
593
+ ).annotate({
594
+ identifier: "GetSslGatewayTaskRequest",
595
+ }) as any as S.Schema<GetSslGatewayTaskRequest>;
596
+
597
+ /** Possible task action */
598
+ export type SslGatewayTaskActionEnum =
599
+ | "addDomain"
600
+ | "addPaidCertificate"
601
+ | "addServer"
602
+ | "createService"
603
+ | "deleteDomain"
604
+ | "deleteServer"
605
+ | "deleteService"
606
+ | "internalTask"
607
+ | "updateServer"
608
+ | "updateService"
609
+ | "upgrade";
610
+ export const SslGatewayTaskActionEnum = /*@__PURE__*/ S.String;
611
+
612
+ /** Possible task status */
613
+ export type SslGatewayTaskStatusEnum =
614
+ | "blocked"
615
+ | "cancelled"
616
+ | "doing"
617
+ | "done"
618
+ | "error"
619
+ | "paused"
620
+ | "todo";
621
+ export const SslGatewayTaskStatusEnum = /*@__PURE__*/ S.String;
622
+
623
+ /** SSL Gateway tasks */
624
+ export interface SslGatewayTask {
625
+ /** The action made */
626
+ action?: SslGatewayTaskActionEnum;
627
+ /** Creation date of your task */
628
+ creationDate?: string;
629
+ /** Id of the task */
630
+ id?: number;
631
+ /** Task progress percentage */
632
+ progress?: number;
633
+ /** Current status of your task */
634
+ status?: SslGatewayTaskStatusEnum;
635
+ }
636
+ export const SslGatewayTask = /*@__PURE__*/ S.suspend(() =>
637
+ S.Struct({
638
+ action: S.optional(SslGatewayTaskActionEnum),
639
+ creationDate: S.optional(S.String),
640
+ id: S.optional(S.Number),
641
+ progress: S.optional(S.Number),
642
+ status: S.optional(SslGatewayTaskStatusEnum),
643
+ }),
644
+ ).annotate({ identifier: "SslGatewayTask" }) as any as S.Schema<SslGatewayTask>;
645
+
646
+ /** Resource tag filter */
647
+ export interface IamResourceTagFilterInput {}
648
+ export const IamResourceTagFilterInput = /*@__PURE__*/ S.suspend(() =>
649
+ S.Struct({}),
650
+ ).annotate({
651
+ identifier: "IamResourceTagFilterInput",
652
+ }) as any as S.Schema<IamResourceTagFilterInput>;
653
+
654
+ export type ListSslGatewayRequestIamTagsValueList =
655
+ Array<IamResourceTagFilterInput>;
656
+ export const ListSslGatewayRequestIamTagsValueList = /*@__PURE__*/ S.Array(
657
+ IamResourceTagFilterInput,
658
+ ) as any as S.Schema<ListSslGatewayRequestIamTagsValueList>;
659
+
660
+ export type ListSslGatewayRequestIamTagsMap = {
661
+ [key: string]: ListSslGatewayRequestIamTagsValueList | undefined;
662
+ };
663
+ export const ListSslGatewayRequestIamTagsMap = /*@__PURE__*/ S.Record(
664
+ S.String,
665
+ ListSslGatewayRequestIamTagsValueList,
666
+ ) as any as S.Schema<ListSslGatewayRequestIamTagsMap>;
667
+
668
+ export interface ListSslGatewayRequest {
669
+ /** Filter resources on IAM tags */
670
+ iamTags?: ListSslGatewayRequestIamTagsMap;
671
+ }
672
+ export const ListSslGatewayRequest = /*@__PURE__*/ S.suspend(() =>
673
+ S.Struct({
674
+ iamTags: S.optional(ListSslGatewayRequestIamTagsMap.pipe(T.Query())),
675
+ }).pipe(T.Http({ method: "GET", uri: "/sslGateway", code: 200 })),
676
+ ).annotate({
677
+ identifier: "ListSslGatewayRequest",
678
+ }) as any as S.Schema<ListSslGatewayRequest>;
679
+
680
+ export type ListSslGatewayResponseBodyList = Array<string>;
681
+ export const ListSslGatewayResponseBodyList = /*@__PURE__*/ S.Array(
682
+ S.String,
683
+ ) as any as S.Schema<ListSslGatewayResponseBodyList>;
684
+
685
+ export type ListSslGatewayResponse = ListSslGatewayResponseBodyList;
686
+ export const ListSslGatewayResponse = /*@__PURE__*/ S.suspend(() =>
687
+ ListSslGatewayResponseBodyList.pipe(T.RawResponseRoot()),
688
+ ).annotate({
689
+ identifier: "ListSslGatewayResponse",
690
+ }) as any as S.Schema<ListSslGatewayResponse>;
691
+
692
+ export interface ListSslGatewayAvailableZonesRequest {}
693
+ export const ListSslGatewayAvailableZonesRequest = /*@__PURE__*/ S.suspend(() =>
694
+ S.Struct({}).pipe(
695
+ T.Http({ method: "GET", uri: "/sslGateway/availableZones", code: 200 }),
696
+ ),
697
+ ).annotate({
698
+ identifier: "ListSslGatewayAvailableZonesRequest",
699
+ }) as any as S.Schema<ListSslGatewayAvailableZonesRequest>;
700
+
701
+ export type ListSslGatewayAvailableZonesResponseBodyList = Array<string>;
702
+ export const ListSslGatewayAvailableZonesResponseBodyList =
703
+ /*@__PURE__*/ S.Array(
704
+ S.String,
705
+ ) as any as S.Schema<ListSslGatewayAvailableZonesResponseBodyList>;
706
+
707
+ export type ListSslGatewayAvailableZonesResponse =
708
+ ListSslGatewayAvailableZonesResponseBodyList;
709
+ export const ListSslGatewayAvailableZonesResponse = /*@__PURE__*/ S.suspend(
710
+ () => ListSslGatewayAvailableZonesResponseBodyList.pipe(T.RawResponseRoot()),
711
+ ).annotate({
712
+ identifier: "ListSslGatewayAvailableZonesResponse",
713
+ }) as any as S.Schema<ListSslGatewayAvailableZonesResponse>;
714
+
715
+ export interface ListSslGatewayDomainRequest {
716
+ /** The internal name of your SSL Gateway */
717
+ serviceName: string;
718
+ }
719
+ export const ListSslGatewayDomainRequest = /*@__PURE__*/ S.suspend(() =>
720
+ S.Struct({
721
+ serviceName: S.String.pipe(T.Label()),
722
+ }).pipe(
723
+ T.Http({
724
+ method: "GET",
725
+ uri: "/sslGateway/{serviceName}/domain",
726
+ code: 200,
727
+ }),
728
+ ),
729
+ ).annotate({
730
+ identifier: "ListSslGatewayDomainRequest",
731
+ }) as any as S.Schema<ListSslGatewayDomainRequest>;
732
+
733
+ export type ListSslGatewayDomainResponseBodyList = Array<number>;
734
+ export const ListSslGatewayDomainResponseBodyList = /*@__PURE__*/ S.Array(
735
+ S.Number,
736
+ ) as any as S.Schema<ListSslGatewayDomainResponseBodyList>;
737
+
738
+ export type ListSslGatewayDomainResponse = ListSslGatewayDomainResponseBodyList;
739
+ export const ListSslGatewayDomainResponse = /*@__PURE__*/ S.suspend(() =>
740
+ ListSslGatewayDomainResponseBodyList.pipe(T.RawResponseRoot()),
741
+ ).annotate({
742
+ identifier: "ListSslGatewayDomainResponse",
743
+ }) as any as S.Schema<ListSslGatewayDomainResponse>;
744
+
745
+ export interface ListSslGatewayEligibilityRequest {
746
+ /** domain to check eligibility for SSL Gateway offer */
747
+ domain: string;
748
+ }
749
+ export const ListSslGatewayEligibilityRequest = /*@__PURE__*/ S.suspend(() =>
750
+ S.Struct({
751
+ domain: S.String.pipe(T.Query()),
752
+ }).pipe(T.Http({ method: "GET", uri: "/sslGateway/eligibility", code: 200 })),
753
+ ).annotate({
754
+ identifier: "ListSslGatewayEligibilityRequest",
755
+ }) as any as S.Schema<ListSslGatewayEligibilityRequest>;
756
+
757
+ /** Eligible IP(s) v6 for this domain */
758
+ export type SslGatewayEligibilityStatusIp6sList = Array<string>;
759
+ export const SslGatewayEligibilityStatusIp6sList = /*@__PURE__*/ S.Array(
760
+ S.String,
761
+ ) as any as S.Schema<SslGatewayEligibilityStatusIp6sList>;
762
+
763
+ /** Eligible IP(s) for this domain */
764
+ export type SslGatewayEligibilityStatusIpsList = Array<string>;
765
+ export const SslGatewayEligibilityStatusIpsList = /*@__PURE__*/ S.Array(
766
+ S.String,
767
+ ) as any as S.Schema<SslGatewayEligibilityStatusIpsList>;
768
+
769
+ /** A structure describing the eligibility status of a domain */
770
+ export interface SslGatewayEligibilityStatus {
771
+ /** Customer domain name */
772
+ domain?: string;
773
+ /** Eligible IP(s) v6 for this domain */
774
+ ip6s?: SslGatewayEligibilityStatusIp6sList;
775
+ /** Eligible IP(s) for this domain */
776
+ ips?: SslGatewayEligibilityStatusIpsList;
777
+ /** Whether this domain is hosted by Ovh or not */
778
+ isHostedByOvh?: boolean;
779
+ }
780
+ export const SslGatewayEligibilityStatus = /*@__PURE__*/ S.suspend(() =>
781
+ S.Struct({
782
+ domain: S.optional(S.String),
783
+ ip6s: S.optional(SslGatewayEligibilityStatusIp6sList),
784
+ ips: S.optional(SslGatewayEligibilityStatusIpsList),
785
+ isHostedByOvh: S.optional(S.Boolean),
786
+ }),
787
+ ).annotate({
788
+ identifier: "SslGatewayEligibilityStatus",
789
+ }) as any as S.Schema<SslGatewayEligibilityStatus>;
790
+
791
+ export interface ListSslGatewayNatIpRequest {
792
+ /** The internal name of your SSL Gateway */
793
+ serviceName: string;
794
+ }
795
+ export const ListSslGatewayNatIpRequest = /*@__PURE__*/ S.suspend(() =>
796
+ S.Struct({
797
+ serviceName: S.String.pipe(T.Label()),
798
+ }).pipe(
799
+ T.Http({
800
+ method: "GET",
801
+ uri: "/sslGateway/{serviceName}/natIp",
802
+ code: 200,
803
+ }),
804
+ ),
805
+ ).annotate({
806
+ identifier: "ListSslGatewayNatIpRequest",
807
+ }) as any as S.Schema<ListSslGatewayNatIpRequest>;
808
+
809
+ export type SslGatewayNatIpsIpList = Array<string>;
810
+ export const SslGatewayNatIpsIpList = /*@__PURE__*/ S.Array(
811
+ S.String,
812
+ ) as any as S.Schema<SslGatewayNatIpsIpList>;
813
+
814
+ /** a list of {zone, nat Ip} */
815
+ export interface SslGatewayNatIps {
816
+ ip?: SslGatewayNatIpsIpList;
817
+ zone?: string;
818
+ }
819
+ export const SslGatewayNatIps = /*@__PURE__*/ S.suspend(() =>
820
+ S.Struct({
821
+ ip: S.optional(SslGatewayNatIpsIpList),
822
+ zone: S.optional(S.String),
823
+ }),
824
+ ).annotate({
825
+ identifier: "SslGatewayNatIps",
826
+ }) as any as S.Schema<SslGatewayNatIps>;
827
+
828
+ export type ListSslGatewayNatIpResponseBodyList = Array<SslGatewayNatIps>;
829
+ export const ListSslGatewayNatIpResponseBodyList = /*@__PURE__*/ S.Array(
830
+ SslGatewayNatIps,
831
+ ) as any as S.Schema<ListSslGatewayNatIpResponseBodyList>;
832
+
833
+ export type ListSslGatewayNatIpResponse = ListSslGatewayNatIpResponseBodyList;
834
+ export const ListSslGatewayNatIpResponse = /*@__PURE__*/ S.suspend(() =>
835
+ ListSslGatewayNatIpResponseBodyList.pipe(T.RawResponseRoot()),
836
+ ).annotate({
837
+ identifier: "ListSslGatewayNatIpResponse",
838
+ }) as any as S.Schema<ListSslGatewayNatIpResponse>;
839
+
840
+ export interface ListSslGatewayServerRequest {
841
+ /** The internal name of your SSL Gateway */
842
+ serviceName: string;
843
+ }
844
+ export const ListSslGatewayServerRequest = /*@__PURE__*/ S.suspend(() =>
845
+ S.Struct({
846
+ serviceName: S.String.pipe(T.Label()),
847
+ }).pipe(
848
+ T.Http({
849
+ method: "GET",
850
+ uri: "/sslGateway/{serviceName}/server",
851
+ code: 200,
852
+ }),
853
+ ),
854
+ ).annotate({
855
+ identifier: "ListSslGatewayServerRequest",
856
+ }) as any as S.Schema<ListSslGatewayServerRequest>;
857
+
858
+ export type ListSslGatewayServerResponseBodyList = Array<number>;
859
+ export const ListSslGatewayServerResponseBodyList = /*@__PURE__*/ S.Array(
860
+ S.Number,
861
+ ) as any as S.Schema<ListSslGatewayServerResponseBodyList>;
862
+
863
+ export type ListSslGatewayServerResponse = ListSslGatewayServerResponseBodyList;
864
+ export const ListSslGatewayServerResponse = /*@__PURE__*/ S.suspend(() =>
865
+ ListSslGatewayServerResponseBodyList.pipe(T.RawResponseRoot()),
866
+ ).annotate({
867
+ identifier: "ListSslGatewayServerResponse",
868
+ }) as any as S.Schema<ListSslGatewayServerResponse>;
869
+
870
+ export interface ListSslGatewayTaskRequest {
871
+ /** The internal name of your SSL Gateway */
872
+ serviceName: string;
873
+ }
874
+ export const ListSslGatewayTaskRequest = /*@__PURE__*/ S.suspend(() =>
875
+ S.Struct({
876
+ serviceName: S.String.pipe(T.Label()),
877
+ }).pipe(
878
+ T.Http({ method: "GET", uri: "/sslGateway/{serviceName}/task", code: 200 }),
879
+ ),
880
+ ).annotate({
881
+ identifier: "ListSslGatewayTaskRequest",
882
+ }) as any as S.Schema<ListSslGatewayTaskRequest>;
883
+
884
+ export type ListSslGatewayTaskResponseBodyList = Array<number>;
885
+ export const ListSslGatewayTaskResponseBodyList = /*@__PURE__*/ S.Array(
886
+ S.Number,
887
+ ) as any as S.Schema<ListSslGatewayTaskResponseBodyList>;
888
+
889
+ export type ListSslGatewayTaskResponse = ListSslGatewayTaskResponseBodyList;
890
+ export const ListSslGatewayTaskResponse = /*@__PURE__*/ S.suspend(() =>
891
+ ListSslGatewayTaskResponseBodyList.pipe(T.RawResponseRoot()),
892
+ ).annotate({
893
+ identifier: "ListSslGatewayTaskResponse",
894
+ }) as any as S.Schema<ListSslGatewayTaskResponse>;
895
+
896
+ /** Restrict SSL Gateway access to these ip block. No restriction if null */
897
+ export type PutSslGatewayRequestAllowedSourceList = Array<string>;
898
+ export const PutSslGatewayRequestAllowedSourceList = /*@__PURE__*/ S.Array(
899
+ S.String,
900
+ ) as any as S.Schema<PutSslGatewayRequestAllowedSourceList>;
901
+
902
+ export interface PutSslGatewayRequest {
903
+ /** The internal name of your SSL Gateway */
904
+ serviceName: string;
905
+ /** Restrict SSL Gateway access to these ip block. No restriction if null */
906
+ allowedSource?: PutSslGatewayRequestAllowedSourceList | null;
907
+ /** Custom name of your SSL Gateway */
908
+ displayName?: string | null;
909
+ /** Set to true to enable Strict-Transport-Security HTTP header */
910
+ hsts?: boolean;
911
+ /** Set to true to enable https redirect */
912
+ httpsRedirect?: boolean;
913
+ /** Custom reverse for your SSL Gateway */
914
+ reverse?: string | null;
915
+ /** Set to true to contact backend servers over HTTPS */
916
+ serverHttps?: boolean;
917
+ /** Modern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. */
918
+ sslConfiguration?: SslGatewaySslConfigurationEnum | (string & {}) | null;
919
+ }
920
+ export const PutSslGatewayRequest = /*@__PURE__*/ S.suspend(() =>
921
+ S.Struct({
922
+ serviceName: S.String.pipe(T.Label()),
923
+ allowedSource: S.optional(S.NullOr(PutSslGatewayRequestAllowedSourceList)),
924
+ displayName: S.optional(S.NullOr(S.String)),
925
+ hsts: S.optional(S.Boolean),
926
+ httpsRedirect: S.optional(S.Boolean),
927
+ reverse: S.optional(S.NullOr(S.String)),
928
+ serverHttps: S.optional(S.Boolean),
929
+ sslConfiguration: S.optional(S.NullOr(SslGatewaySslConfigurationEnum)),
930
+ }).pipe(
931
+ T.Http({ method: "PUT", uri: "/sslGateway/{serviceName}", code: 200 }),
932
+ ),
933
+ ).annotate({
934
+ identifier: "PutSslGatewayRequest",
935
+ }) as any as S.Schema<PutSslGatewayRequest>;
936
+
937
+ export interface PutSslGatewayResponse {}
938
+ export const PutSslGatewayResponse = /*@__PURE__*/ S.suspend(() =>
939
+ S.Struct({}),
940
+ ).annotate({
941
+ identifier: "PutSslGatewayResponse",
942
+ }) as any as S.Schema<PutSslGatewayResponse>;
943
+
944
+ export interface PutSslGatewayServerRequest {
945
+ /** The internal name of your SSL Gateway */
946
+ serviceName: string;
947
+ /** Id of your server */
948
+ id: number;
949
+ /** IP address of the server attached to your SSL Gateway */
950
+ address?: string;
951
+ /** Port of your server attached to your SSL Gateway */
952
+ port?: number;
953
+ }
954
+ export const PutSslGatewayServerRequest = /*@__PURE__*/ S.suspend(() =>
955
+ S.Struct({
956
+ serviceName: S.String.pipe(T.Label()),
957
+ id: S.Number.pipe(T.Label()),
958
+ address: S.optional(S.String),
959
+ port: S.optional(S.Number),
960
+ }).pipe(
961
+ T.Http({
962
+ method: "PUT",
963
+ uri: "/sslGateway/{serviceName}/server/{id}",
964
+ code: 200,
965
+ }),
966
+ ),
967
+ ).annotate({
968
+ identifier: "PutSslGatewayServerRequest",
969
+ }) as any as S.Schema<PutSslGatewayServerRequest>;
970
+
971
+ export interface PutSslGatewayServerResponse {}
972
+ export const PutSslGatewayServerResponse = /*@__PURE__*/ S.suspend(() =>
973
+ S.Struct({}),
974
+ ).annotate({
975
+ identifier: "PutSslGatewayServerResponse",
976
+ }) as any as S.Schema<PutSslGatewayServerResponse>;
977
+
978
+ export interface PutSslGatewayServiceInfosRequest {
979
+ /** The internal name of your SSL Gateway */
980
+ serviceName: string;
981
+ /** Way of handling the renew */
982
+ renew?: ServiceRenewType | null;
983
+ }
984
+ export const PutSslGatewayServiceInfosRequest = /*@__PURE__*/ S.suspend(() =>
985
+ S.Struct({
986
+ serviceName: S.String.pipe(T.Label()),
987
+ renew: S.optional(S.NullOr(ServiceRenewType)),
988
+ }).pipe(
989
+ T.Http({
990
+ method: "PUT",
991
+ uri: "/sslGateway/{serviceName}/serviceInfos",
992
+ code: 200,
993
+ }),
994
+ ),
995
+ ).annotate({
996
+ identifier: "PutSslGatewayServiceInfosRequest",
997
+ }) as any as S.Schema<PutSslGatewayServiceInfosRequest>;
998
+
999
+ export interface PutSslGatewayServiceInfosResponse {}
1000
+ export const PutSslGatewayServiceInfosResponse = /*@__PURE__*/ S.suspend(() =>
1001
+ S.Struct({}),
1002
+ ).annotate({
1003
+ identifier: "PutSslGatewayServiceInfosResponse",
1004
+ }) as any as S.Schema<PutSslGatewayServiceInfosResponse>;
1005
+
1006
+ export interface RenewSslGatewayCertificateRequest {
1007
+ /** The internal name of your SSL Gateway */
1008
+ serviceName: string;
1009
+ /** Domain on which you want to renew certificate */
1010
+ domain?: string;
1011
+ }
1012
+ export const RenewSslGatewayCertificateRequest = /*@__PURE__*/ S.suspend(() =>
1013
+ S.Struct({
1014
+ serviceName: S.String.pipe(T.Label()),
1015
+ domain: S.optional(S.String),
1016
+ }).pipe(
1017
+ T.Http({
1018
+ method: "POST",
1019
+ uri: "/sslGateway/{serviceName}/renewCertificate",
1020
+ code: 200,
1021
+ }),
1022
+ ),
1023
+ ).annotate({
1024
+ identifier: "RenewSslGatewayCertificateRequest",
1025
+ }) as any as S.Schema<RenewSslGatewayCertificateRequest>;
1026
+
1027
+ export type RenewSslGatewayCertificateResponseBodyList = Array<string>;
1028
+ export const RenewSslGatewayCertificateResponseBodyList = /*@__PURE__*/ S.Array(
1029
+ S.String,
1030
+ ) as any as S.Schema<RenewSslGatewayCertificateResponseBodyList>;
1031
+
1032
+ export type RenewSslGatewayCertificateResponse =
1033
+ RenewSslGatewayCertificateResponseBodyList;
1034
+ export const RenewSslGatewayCertificateResponse = /*@__PURE__*/ S.suspend(() =>
1035
+ RenewSslGatewayCertificateResponseBodyList.pipe(T.RawResponseRoot()),
1036
+ ).annotate({
1037
+ identifier: "RenewSslGatewayCertificateResponse",
1038
+ }) as any as S.Schema<RenewSslGatewayCertificateResponse>;
1039
+
1040
+ export interface TerminateSslGatewayRequest {
1041
+ /** The internal name of your SSL Gateway */
1042
+ serviceName: string;
1043
+ }
1044
+ export const TerminateSslGatewayRequest = /*@__PURE__*/ S.suspend(() =>
1045
+ S.Struct({
1046
+ serviceName: S.String.pipe(T.Label()),
1047
+ }).pipe(
1048
+ T.Http({
1049
+ method: "POST",
1050
+ uri: "/sslGateway/{serviceName}/terminate",
1051
+ code: 200,
1052
+ }),
1053
+ ),
1054
+ ).annotate({
1055
+ identifier: "TerminateSslGatewayRequest",
1056
+ }) as any as S.Schema<TerminateSslGatewayRequest>;
1057
+
1058
+ export type TerminateSslGatewayResponse = string;
1059
+ export const TerminateSslGatewayResponse = /*@__PURE__*/ S.suspend(() =>
1060
+ S.String.pipe(T.RawResponseRoot()),
1061
+ ).annotate({
1062
+ identifier: "TerminateSslGatewayResponse",
1063
+ }) as any as S.Schema<TerminateSslGatewayResponse>;
1064
+
1065
+ export type ConfirmSslGatewayTerminationError = OvhOpError;
1066
+ /** Confirm service termination */
1067
+ export const confirmSslGatewayTermination: API.OperationMethod<
1068
+ ConfirmSslGatewayTerminationRequest,
1069
+ ConfirmSslGatewayTerminationResponse,
1070
+ ConfirmSslGatewayTerminationError,
1071
+ OvhOpContext
1072
+ > = /*@__PURE__*/ API.make(() => ({
1073
+ input: ConfirmSslGatewayTerminationRequest,
1074
+ output: ConfirmSslGatewayTerminationResponse,
1075
+ errors: [UnknownOvhError],
1076
+ protocol: OvhProtocol,
1077
+ retry: Retry.Retry,
1078
+ }));
1079
+
1080
+ export type CreateSslGatewayChangeContactError = OvhOpError;
1081
+ /** Launch a contact change procedure */
1082
+ export const createSslGatewayChangeContact: API.OperationMethod<
1083
+ CreateSslGatewayChangeContactRequest,
1084
+ CreateSslGatewayChangeContactResponse,
1085
+ CreateSslGatewayChangeContactError,
1086
+ OvhOpContext
1087
+ > = /*@__PURE__*/ API.make(() => ({
1088
+ input: CreateSslGatewayChangeContactRequest,
1089
+ output: CreateSslGatewayChangeContactResponse,
1090
+ errors: [UnknownOvhError],
1091
+ protocol: OvhProtocol,
1092
+ retry: Retry.Retry,
1093
+ }));
1094
+
1095
+ export type CreateSslGatewayDomainError = OvhOpError;
1096
+ /** Attach a new domain to your SSL Gateway */
1097
+ export const createSslGatewayDomain: API.OperationMethod<
1098
+ CreateSslGatewayDomainRequest,
1099
+ SslGatewayDomain,
1100
+ CreateSslGatewayDomainError,
1101
+ OvhOpContext
1102
+ > = /*@__PURE__*/ API.make(() => ({
1103
+ input: CreateSslGatewayDomainRequest,
1104
+ output: SslGatewayDomain,
1105
+ errors: [UnknownOvhError],
1106
+ protocol: OvhProtocol,
1107
+ retry: Retry.Retry,
1108
+ }));
1109
+
1110
+ export type CreateSslGatewayServerError = OvhOpError;
1111
+ /** Add a new server to your SSL Gateway */
1112
+ export const createSslGatewayServer: API.OperationMethod<
1113
+ CreateSslGatewayServerRequest,
1114
+ SslGatewayServer,
1115
+ CreateSslGatewayServerError,
1116
+ OvhOpContext
1117
+ > = /*@__PURE__*/ API.make(() => ({
1118
+ input: CreateSslGatewayServerRequest,
1119
+ output: SslGatewayServer,
1120
+ errors: [UnknownOvhError],
1121
+ protocol: OvhProtocol,
1122
+ retry: Retry.Retry,
1123
+ }));
1124
+
1125
+ export type DeleteSslGatewayDomainError = OvhOpError;
1126
+ /** Detach a domain from your SSL Gateway */
1127
+ export const deleteSslGatewayDomain: API.OperationMethod<
1128
+ DeleteSslGatewayDomainRequest,
1129
+ DeleteSslGatewayDomainResponse,
1130
+ DeleteSslGatewayDomainError,
1131
+ OvhOpContext
1132
+ > = /*@__PURE__*/ API.make(() => ({
1133
+ input: DeleteSslGatewayDomainRequest,
1134
+ output: DeleteSslGatewayDomainResponse,
1135
+ errors: [UnknownOvhError],
1136
+ protocol: OvhProtocol,
1137
+ retry: Retry.Retry,
1138
+ }));
1139
+
1140
+ export type DeleteSslGatewayServerError = OvhOpError;
1141
+ /** Remove a server */
1142
+ export const deleteSslGatewayServer: API.OperationMethod<
1143
+ DeleteSslGatewayServerRequest,
1144
+ DeleteSslGatewayServerResponse,
1145
+ DeleteSslGatewayServerError,
1146
+ OvhOpContext
1147
+ > = /*@__PURE__*/ API.make(() => ({
1148
+ input: DeleteSslGatewayServerRequest,
1149
+ output: DeleteSslGatewayServerResponse,
1150
+ errors: [UnknownOvhError],
1151
+ protocol: OvhProtocol,
1152
+ retry: Retry.Retry,
1153
+ }));
1154
+
1155
+ export type GetSslGatewayError = OvhOpError;
1156
+ /** Get this object properties */
1157
+ export const getSslGateway: API.OperationMethod<
1158
+ GetSslGatewayRequest,
1159
+ SslGatewaySslGatewayWithIAM,
1160
+ GetSslGatewayError,
1161
+ OvhOpContext
1162
+ > = /*@__PURE__*/ API.make(() => ({
1163
+ input: GetSslGatewayRequest,
1164
+ output: SslGatewaySslGatewayWithIAM,
1165
+ errors: [UnknownOvhError],
1166
+ protocol: OvhProtocol,
1167
+ retry: Retry.Retry,
1168
+ }));
1169
+
1170
+ export type GetSslGatewayDomainError = OvhOpError;
1171
+ /** Get this object properties */
1172
+ export const getSslGatewayDomain: API.OperationMethod<
1173
+ GetSslGatewayDomainRequest,
1174
+ SslGatewayDomain,
1175
+ GetSslGatewayDomainError,
1176
+ OvhOpContext
1177
+ > = /*@__PURE__*/ API.make(() => ({
1178
+ input: GetSslGatewayDomainRequest,
1179
+ output: SslGatewayDomain,
1180
+ errors: [UnknownOvhError],
1181
+ protocol: OvhProtocol,
1182
+ retry: Retry.Retry,
1183
+ }));
1184
+
1185
+ export type GetSslGatewayServerError = OvhOpError;
1186
+ /** Get this object properties */
1187
+ export const getSslGatewayServer: API.OperationMethod<
1188
+ GetSslGatewayServerRequest,
1189
+ SslGatewayServer,
1190
+ GetSslGatewayServerError,
1191
+ OvhOpContext
1192
+ > = /*@__PURE__*/ API.make(() => ({
1193
+ input: GetSslGatewayServerRequest,
1194
+ output: SslGatewayServer,
1195
+ errors: [UnknownOvhError],
1196
+ protocol: OvhProtocol,
1197
+ retry: Retry.Retry,
1198
+ }));
1199
+
1200
+ export type GetSslGatewayServiceInfosError = OvhOpError;
1201
+ /** Get service information */
1202
+ export const getSslGatewayServiceInfos: API.OperationMethod<
1203
+ GetSslGatewayServiceInfosRequest,
1204
+ ServicesService,
1205
+ GetSslGatewayServiceInfosError,
1206
+ OvhOpContext
1207
+ > = /*@__PURE__*/ API.make(() => ({
1208
+ input: GetSslGatewayServiceInfosRequest,
1209
+ output: ServicesService,
1210
+ errors: [UnknownOvhError],
1211
+ protocol: OvhProtocol,
1212
+ retry: Retry.Retry,
1213
+ }));
1214
+
1215
+ export type GetSslGatewayTaskError = OvhOpError;
1216
+ /** Get this object properties */
1217
+ export const getSslGatewayTask: API.OperationMethod<
1218
+ GetSslGatewayTaskRequest,
1219
+ SslGatewayTask,
1220
+ GetSslGatewayTaskError,
1221
+ OvhOpContext
1222
+ > = /*@__PURE__*/ API.make(() => ({
1223
+ input: GetSslGatewayTaskRequest,
1224
+ output: SslGatewayTask,
1225
+ errors: [UnknownOvhError],
1226
+ protocol: OvhProtocol,
1227
+ retry: Retry.Retry,
1228
+ }));
1229
+
1230
+ export type ListSslGatewayError = OvhOpError;
1231
+ /** List of your SSL Gateways */
1232
+ export const listSslGateway: API.OperationMethod<
1233
+ ListSslGatewayRequest,
1234
+ ListSslGatewayResponse,
1235
+ ListSslGatewayError,
1236
+ OvhOpContext
1237
+ > = /*@__PURE__*/ API.make(() => ({
1238
+ input: ListSslGatewayRequest,
1239
+ output: ListSslGatewayResponse,
1240
+ errors: [UnknownOvhError],
1241
+ protocol: OvhProtocol,
1242
+ retry: Retry.Retry,
1243
+ }));
1244
+
1245
+ export type ListSslGatewayAvailableZonesError = OvhOpError;
1246
+ /** List of zone available for an SSL Gateway */
1247
+ export const listSslGatewayAvailableZones: API.OperationMethod<
1248
+ ListSslGatewayAvailableZonesRequest,
1249
+ ListSslGatewayAvailableZonesResponse,
1250
+ ListSslGatewayAvailableZonesError,
1251
+ OvhOpContext
1252
+ > = /*@__PURE__*/ API.make(() => ({
1253
+ input: ListSslGatewayAvailableZonesRequest,
1254
+ output: ListSslGatewayAvailableZonesResponse,
1255
+ errors: [UnknownOvhError],
1256
+ protocol: OvhProtocol,
1257
+ retry: Retry.Retry,
1258
+ }));
1259
+
1260
+ export type ListSslGatewayDomainError = OvhOpError;
1261
+ /** Domains attached to your SSL Gateway */
1262
+ export const listSslGatewayDomain: API.OperationMethod<
1263
+ ListSslGatewayDomainRequest,
1264
+ ListSslGatewayDomainResponse,
1265
+ ListSslGatewayDomainError,
1266
+ OvhOpContext
1267
+ > = /*@__PURE__*/ API.make(() => ({
1268
+ input: ListSslGatewayDomainRequest,
1269
+ output: ListSslGatewayDomainResponse,
1270
+ errors: [UnknownOvhError],
1271
+ protocol: OvhProtocol,
1272
+ retry: Retry.Retry,
1273
+ }));
1274
+
1275
+ export type ListSslGatewayEligibilityError = OvhOpError;
1276
+ /** Check domain eligibility. Return list of eligible IP(s) for this domain. */
1277
+ export const listSslGatewayEligibility: API.OperationMethod<
1278
+ ListSslGatewayEligibilityRequest,
1279
+ SslGatewayEligibilityStatus,
1280
+ ListSslGatewayEligibilityError,
1281
+ OvhOpContext
1282
+ > = /*@__PURE__*/ API.make(() => ({
1283
+ input: ListSslGatewayEligibilityRequest,
1284
+ output: SslGatewayEligibilityStatus,
1285
+ errors: [UnknownOvhError],
1286
+ protocol: OvhProtocol,
1287
+ retry: Retry.Retry,
1288
+ }));
1289
+
1290
+ export type ListSslGatewayNatIpError = OvhOpError;
1291
+ /** Ip subnet used by OVH to nat requests to your SSL Gateway backends. */
1292
+ export const listSslGatewayNatIp: API.OperationMethod<
1293
+ ListSslGatewayNatIpRequest,
1294
+ ListSslGatewayNatIpResponse,
1295
+ ListSslGatewayNatIpError,
1296
+ OvhOpContext
1297
+ > = /*@__PURE__*/ API.make(() => ({
1298
+ input: ListSslGatewayNatIpRequest,
1299
+ output: ListSslGatewayNatIpResponse,
1300
+ errors: [UnknownOvhError],
1301
+ protocol: OvhProtocol,
1302
+ retry: Retry.Retry,
1303
+ }));
1304
+
1305
+ export type ListSslGatewayServerError = OvhOpError;
1306
+ /** Servers attached to your SSL Gateway */
1307
+ export const listSslGatewayServer: API.OperationMethod<
1308
+ ListSslGatewayServerRequest,
1309
+ ListSslGatewayServerResponse,
1310
+ ListSslGatewayServerError,
1311
+ OvhOpContext
1312
+ > = /*@__PURE__*/ API.make(() => ({
1313
+ input: ListSslGatewayServerRequest,
1314
+ output: ListSslGatewayServerResponse,
1315
+ errors: [UnknownOvhError],
1316
+ protocol: OvhProtocol,
1317
+ retry: Retry.Retry,
1318
+ }));
1319
+
1320
+ export type ListSslGatewayTaskError = OvhOpError;
1321
+ /** Task for this SSL Gateway */
1322
+ export const listSslGatewayTask: API.OperationMethod<
1323
+ ListSslGatewayTaskRequest,
1324
+ ListSslGatewayTaskResponse,
1325
+ ListSslGatewayTaskError,
1326
+ OvhOpContext
1327
+ > = /*@__PURE__*/ API.make(() => ({
1328
+ input: ListSslGatewayTaskRequest,
1329
+ output: ListSslGatewayTaskResponse,
1330
+ errors: [UnknownOvhError],
1331
+ protocol: OvhProtocol,
1332
+ retry: Retry.Retry,
1333
+ }));
1334
+
1335
+ export type PutSslGatewayError = OvhOpError;
1336
+ /** Alter this object properties */
1337
+ export const putSslGateway: API.OperationMethod<
1338
+ PutSslGatewayRequest,
1339
+ PutSslGatewayResponse,
1340
+ PutSslGatewayError,
1341
+ OvhOpContext
1342
+ > = /*@__PURE__*/ API.make(() => ({
1343
+ input: PutSslGatewayRequest,
1344
+ output: PutSslGatewayResponse,
1345
+ errors: [UnknownOvhError],
1346
+ protocol: OvhProtocol,
1347
+ retry: Retry.Retry,
1348
+ }));
1349
+
1350
+ export type PutSslGatewayServerError = OvhOpError;
1351
+ /** Alter this object properties */
1352
+ export const putSslGatewayServer: API.OperationMethod<
1353
+ PutSslGatewayServerRequest,
1354
+ PutSslGatewayServerResponse,
1355
+ PutSslGatewayServerError,
1356
+ OvhOpContext
1357
+ > = /*@__PURE__*/ API.make(() => ({
1358
+ input: PutSslGatewayServerRequest,
1359
+ output: PutSslGatewayServerResponse,
1360
+ errors: [UnknownOvhError],
1361
+ protocol: OvhProtocol,
1362
+ retry: Retry.Retry,
1363
+ }));
1364
+
1365
+ export type PutSslGatewayServiceInfosError = OvhOpError;
1366
+ /** Update service information */
1367
+ export const putSslGatewayServiceInfos: API.OperationMethod<
1368
+ PutSslGatewayServiceInfosRequest,
1369
+ PutSslGatewayServiceInfosResponse,
1370
+ PutSslGatewayServiceInfosError,
1371
+ OvhOpContext
1372
+ > = /*@__PURE__*/ API.make(() => ({
1373
+ input: PutSslGatewayServiceInfosRequest,
1374
+ output: PutSslGatewayServiceInfosResponse,
1375
+ errors: [UnknownOvhError],
1376
+ protocol: OvhProtocol,
1377
+ retry: Retry.Retry,
1378
+ }));
1379
+
1380
+ export type RenewSslGatewayCertificateError = OvhOpError;
1381
+ /** Renew your SSL certificates */
1382
+ export const renewSslGatewayCertificate: API.OperationMethod<
1383
+ RenewSslGatewayCertificateRequest,
1384
+ RenewSslGatewayCertificateResponse,
1385
+ RenewSslGatewayCertificateError,
1386
+ OvhOpContext
1387
+ > = /*@__PURE__*/ API.make(() => ({
1388
+ input: RenewSslGatewayCertificateRequest,
1389
+ output: RenewSslGatewayCertificateResponse,
1390
+ errors: [UnknownOvhError],
1391
+ protocol: OvhProtocol,
1392
+ retry: Retry.Retry,
1393
+ }));
1394
+
1395
+ export type TerminateSslGatewayError = OvhOpError;
1396
+ /** Ask for the termination of your service Ask for the termination of your service. Admin contact of this service will receive a termination token by email in order to confirm its termination with /confirmTermination endpoint. */
1397
+ export const terminateSslGateway: API.OperationMethod<
1398
+ TerminateSslGatewayRequest,
1399
+ TerminateSslGatewayResponse,
1400
+ TerminateSslGatewayError,
1401
+ OvhOpContext
1402
+ > = /*@__PURE__*/ API.make(() => ({
1403
+ input: TerminateSslGatewayRequest,
1404
+ output: TerminateSslGatewayResponse,
1405
+ errors: [UnknownOvhError],
1406
+ protocol: OvhProtocol,
1407
+ retry: Retry.Retry,
1408
+ }));