@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,3226 @@
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 ConfirmOvhCloudConnectTerminationRequest {
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 ConfirmOvhCloudConnectTerminationRequest = /*@__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: "/ovhCloudConnect/{serviceName}/confirmTermination",
66
+ code: 200,
67
+ }),
68
+ ),
69
+ ).annotate({
70
+ identifier: "ConfirmOvhCloudConnectTerminationRequest",
71
+ }) as any as S.Schema<ConfirmOvhCloudConnectTerminationRequest>;
72
+
73
+ export type ConfirmOvhCloudConnectTerminationResponse = string;
74
+ export const ConfirmOvhCloudConnectTerminationResponse =
75
+ /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
76
+ identifier: "ConfirmOvhCloudConnectTerminationResponse",
77
+ }) as any as S.Schema<ConfirmOvhCloudConnectTerminationResponse>;
78
+
79
+ export interface CreateOvhCloudConnectChangeContactRequest {
80
+ /** Service name */
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 CreateOvhCloudConnectChangeContactRequest =
90
+ /*@__PURE__*/ S.suspend(() =>
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: "/ovhCloudConnect/{serviceName}/changeContact",
100
+ code: 200,
101
+ }),
102
+ ),
103
+ ).annotate({
104
+ identifier: "CreateOvhCloudConnectChangeContactRequest",
105
+ }) as any as S.Schema<CreateOvhCloudConnectChangeContactRequest>;
106
+
107
+ export type CreateOvhCloudConnectChangeContactResponseBodyList = Array<number>;
108
+ export const CreateOvhCloudConnectChangeContactResponseBodyList =
109
+ /*@__PURE__*/ S.Array(
110
+ S.Number,
111
+ ) as any as S.Schema<CreateOvhCloudConnectChangeContactResponseBodyList>;
112
+
113
+ export type CreateOvhCloudConnectChangeContactResponse =
114
+ CreateOvhCloudConnectChangeContactResponseBodyList;
115
+ export const CreateOvhCloudConnectChangeContactResponse =
116
+ /*@__PURE__*/ S.suspend(() =>
117
+ CreateOvhCloudConnectChangeContactResponseBodyList.pipe(
118
+ T.RawResponseRoot(),
119
+ ),
120
+ ).annotate({
121
+ identifier: "CreateOvhCloudConnectChangeContactResponse",
122
+ }) as any as S.Schema<CreateOvhCloudConnectChangeContactResponse>;
123
+
124
+ /** Enum values for Pop Configuration Type */
125
+ export type OvhcloudconnectPopConfigTypeEnum = "l2" | "l3";
126
+ export const OvhcloudconnectPopConfigTypeEnum = /*@__PURE__*/ S.String;
127
+
128
+ export interface CreateOvhCloudConnectConfigPopRequest {
129
+ /** Service name */
130
+ serviceName: string;
131
+ /** Customer Private AS */
132
+ customerBgpArea?: number | null;
133
+ /** ID of the interface */
134
+ interfaceId: number;
135
+ /** OVH Private AS */
136
+ ovhBgpArea?: number | null;
137
+ /** Subnet should be a /30, first IP for OVH, second IP for customer */
138
+ subnet?: string | null;
139
+ /** Type of the pop configuration */
140
+ type: OvhcloudconnectPopConfigTypeEnum | (string & {});
141
+ }
142
+ export const CreateOvhCloudConnectConfigPopRequest = /*@__PURE__*/ S.suspend(
143
+ () =>
144
+ S.Struct({
145
+ serviceName: S.String.pipe(T.Label()),
146
+ customerBgpArea: S.optional(S.NullOr(S.Number)),
147
+ interfaceId: S.Number,
148
+ ovhBgpArea: S.optional(S.NullOr(S.Number)),
149
+ subnet: S.optional(S.NullOr(S.String)),
150
+ type: OvhcloudconnectPopConfigTypeEnum,
151
+ }).pipe(
152
+ T.Http({
153
+ method: "POST",
154
+ uri: "/ovhCloudConnect/{serviceName}/config/pop",
155
+ code: 200,
156
+ }),
157
+ ),
158
+ ).annotate({
159
+ identifier: "CreateOvhCloudConnectConfigPopRequest",
160
+ }) as any as S.Schema<CreateOvhCloudConnectConfigPopRequest>;
161
+
162
+ /** Enum values for Task function */
163
+ export type OvhcloudconnectTaskFunctionEnum =
164
+ | "addDatacenterConfiguration"
165
+ | "addDatacenterExtraConfiguration"
166
+ | "addPopConfiguration"
167
+ | "addVrack"
168
+ | "delDatacenterConfiguration"
169
+ | "delDatacenterExtraConfiguration"
170
+ | "delPopConfiguration"
171
+ | "lockInterface"
172
+ | "removeVrack"
173
+ | "unlockInterface";
174
+ export const OvhcloudconnectTaskFunctionEnum = /*@__PURE__*/ S.String;
175
+
176
+ /** Enum values for Task status */
177
+ export type OvhcloudconnectTaskStatusEnum =
178
+ | "denied"
179
+ | "doing"
180
+ | "done"
181
+ | "error"
182
+ | "pause"
183
+ | "todo";
184
+ export const OvhcloudconnectTaskStatusEnum = /*@__PURE__*/ S.String;
185
+
186
+ /** OVHcloud Connect Task */
187
+ export interface OvhcloudconnectTask {
188
+ /** Task function */
189
+ function?: OvhcloudconnectTaskFunctionEnum;
190
+ /** Task id */
191
+ id?: number;
192
+ /** Reference of the created resource */
193
+ resourceId?: number;
194
+ /** Task status */
195
+ status?: OvhcloudconnectTaskStatusEnum;
196
+ }
197
+ export const OvhcloudconnectTask = /*@__PURE__*/ S.suspend(() =>
198
+ S.Struct({
199
+ function: S.optional(OvhcloudconnectTaskFunctionEnum),
200
+ id: S.optional(S.Number),
201
+ resourceId: S.optional(S.Number),
202
+ status: S.optional(OvhcloudconnectTaskStatusEnum),
203
+ }),
204
+ ).annotate({
205
+ identifier: "OvhcloudconnectTask",
206
+ }) as any as S.Schema<OvhcloudconnectTask>;
207
+
208
+ export interface CreateOvhCloudConnectConfigPopDatacenterRequest {
209
+ /** Service name */
210
+ serviceName: string;
211
+ /** Pop ID */
212
+ popId: number;
213
+ /** ID of the datacenter linked */
214
+ datacenterId: number;
215
+ /** OVH Private AS */
216
+ ovhBgpArea?: number | null;
217
+ /** Subnet should be a /28 min */
218
+ subnet?: string | null;
219
+ }
220
+ export const CreateOvhCloudConnectConfigPopDatacenterRequest =
221
+ /*@__PURE__*/ S.suspend(() =>
222
+ S.Struct({
223
+ serviceName: S.String.pipe(T.Label()),
224
+ popId: S.Number.pipe(T.Label()),
225
+ datacenterId: S.Number,
226
+ ovhBgpArea: S.optional(S.NullOr(S.Number)),
227
+ subnet: S.optional(S.NullOr(S.String)),
228
+ }).pipe(
229
+ T.Http({
230
+ method: "POST",
231
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter",
232
+ code: 200,
233
+ }),
234
+ ),
235
+ ).annotate({
236
+ identifier: "CreateOvhCloudConnectConfigPopDatacenterRequest",
237
+ }) as any as S.Schema<CreateOvhCloudConnectConfigPopDatacenterRequest>;
238
+
239
+ /** Enum values for Datacenter Extra Configuration Type */
240
+ export type OvhcloudconnectDatacenterExtraConfigTypeEnum = "bgp" | "network";
241
+ export const OvhcloudconnectDatacenterExtraConfigTypeEnum =
242
+ /*@__PURE__*/ S.String;
243
+
244
+ export interface CreateOvhCloudConnectConfigPopDatacenterExtraRequest {
245
+ /** Service name */
246
+ serviceName: string;
247
+ /** Pop ID */
248
+ popId: number;
249
+ /** Datacenter ID */
250
+ datacenterId: number;
251
+ /** BGP AS number */
252
+ bgpNeighborArea?: number | null;
253
+ /** Router IP for BGP */
254
+ bgpNeighborIp?: string | null;
255
+ /** Static route next hop */
256
+ nextHop?: string | null;
257
+ /** Static route ip */
258
+ subnet?: string | null;
259
+ /** Type of the configuration */
260
+ type: OvhcloudconnectDatacenterExtraConfigTypeEnum | (string & {});
261
+ }
262
+ export const CreateOvhCloudConnectConfigPopDatacenterExtraRequest =
263
+ /*@__PURE__*/ S.suspend(() =>
264
+ S.Struct({
265
+ serviceName: S.String.pipe(T.Label()),
266
+ popId: S.Number.pipe(T.Label()),
267
+ datacenterId: S.Number.pipe(T.Label()),
268
+ bgpNeighborArea: S.optional(S.NullOr(S.Number)),
269
+ bgpNeighborIp: S.optional(S.NullOr(S.String)),
270
+ nextHop: S.optional(S.NullOr(S.String)),
271
+ subnet: S.optional(S.NullOr(S.String)),
272
+ type: OvhcloudconnectDatacenterExtraConfigTypeEnum,
273
+ }).pipe(
274
+ T.Http({
275
+ method: "POST",
276
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra",
277
+ code: 200,
278
+ }),
279
+ ),
280
+ ).annotate({
281
+ identifier: "CreateOvhCloudConnectConfigPopDatacenterExtraRequest",
282
+ }) as any as S.Schema<CreateOvhCloudConnectConfigPopDatacenterExtraRequest>;
283
+
284
+ /** Enum values for Diagnostic function */
285
+ export type OvhcloudconnectDiagnosticFunctionEnum =
286
+ | "diagMacs"
287
+ | "diagPeering"
288
+ | "diagPeeringExtra"
289
+ | "diagRoutes";
290
+ export const OvhcloudconnectDiagnosticFunctionEnum = /*@__PURE__*/ S.String;
291
+
292
+ /** Enum values for Diagnostic type */
293
+ export type OvhcloudconnectDiagnosticTypeEnum =
294
+ | "advertised-routes"
295
+ | "default"
296
+ | "routes";
297
+ export const OvhcloudconnectDiagnosticTypeEnum = /*@__PURE__*/ S.String;
298
+
299
+ export interface CreateOvhCloudConnectDiagnosticRequest {
300
+ /** Service name */
301
+ serviceName: string;
302
+ /** ID of the Datacenter configuration */
303
+ dcConfigId?: number;
304
+ /** Name of the diagnostic */
305
+ diagnosticName: OvhcloudconnectDiagnosticFunctionEnum | (string & {});
306
+ /** Type of the diagnostic */
307
+ diagnosticType?: OvhcloudconnectDiagnosticTypeEnum | (string & {});
308
+ /** ID of the extra configuration */
309
+ extraConfigId?: number;
310
+ /** ID of the Pop Configuration */
311
+ popConfigId: number;
312
+ }
313
+ export const CreateOvhCloudConnectDiagnosticRequest = /*@__PURE__*/ S.suspend(
314
+ () =>
315
+ S.Struct({
316
+ serviceName: S.String.pipe(T.Label()),
317
+ dcConfigId: S.optional(S.Number),
318
+ diagnosticName: OvhcloudconnectDiagnosticFunctionEnum,
319
+ diagnosticType: S.optional(OvhcloudconnectDiagnosticTypeEnum),
320
+ extraConfigId: S.optional(S.Number),
321
+ popConfigId: S.Number,
322
+ }).pipe(
323
+ T.Http({
324
+ method: "POST",
325
+ uri: "/ovhCloudConnect/{serviceName}/diagnostic",
326
+ code: 200,
327
+ }),
328
+ ),
329
+ ).annotate({
330
+ identifier: "CreateOvhCloudConnectDiagnosticRequest",
331
+ }) as any as S.Schema<CreateOvhCloudConnectDiagnosticRequest>;
332
+
333
+ /** OVHcloud Connect Diagnostic Result */
334
+ export interface OvhcloudconnectDiagnosticResult {
335
+ /** As-path for routes */
336
+ aspath?: string | null;
337
+ /** Command sent to equipment */
338
+ cmd?: string | null;
339
+ /** Local prefix used for routes */
340
+ localprefix?: number | null;
341
+ /** Mac address */
342
+ mac?: string | null;
343
+ /** BGP Med (Metric) */
344
+ med?: number | null;
345
+ /** Output of command sent to equipment */
346
+ output?: string | null;
347
+ /** Prefix for routes */
348
+ prefix?: string | null;
349
+ /** eVPN router mac */
350
+ routermac?: string | null;
351
+ /** Local date when route/mac was declared */
352
+ timestamp?: string | null;
353
+ }
354
+ export const OvhcloudconnectDiagnosticResult = /*@__PURE__*/ S.suspend(() =>
355
+ S.Struct({
356
+ aspath: S.optional(S.NullOr(S.String)),
357
+ cmd: S.optional(S.NullOr(S.String)),
358
+ localprefix: S.optional(S.NullOr(S.Number)),
359
+ mac: S.optional(S.NullOr(S.String)),
360
+ med: S.optional(S.NullOr(S.Number)),
361
+ output: S.optional(S.NullOr(S.String)),
362
+ prefix: S.optional(S.NullOr(S.String)),
363
+ routermac: S.optional(S.NullOr(S.String)),
364
+ timestamp: S.optional(S.NullOr(S.String)),
365
+ }),
366
+ ).annotate({
367
+ identifier: "OvhcloudconnectDiagnosticResult",
368
+ }) as any as S.Schema<OvhcloudconnectDiagnosticResult>;
369
+
370
+ /** Diagnostic result */
371
+ export type OvhcloudconnectDiagnosticResultList =
372
+ Array<OvhcloudconnectDiagnosticResult>;
373
+ export const OvhcloudconnectDiagnosticResultList = /*@__PURE__*/ S.Array(
374
+ OvhcloudconnectDiagnosticResult,
375
+ ) as any as S.Schema<OvhcloudconnectDiagnosticResultList>;
376
+
377
+ /** OVHcloud Connect Diagnostic */
378
+ export interface OvhcloudconnectDiagnostic {
379
+ /** Date of the diagnostic */
380
+ date?: string | null;
381
+ /** Description of the diagnostic */
382
+ description?: string | null;
383
+ /** Diagnostic function */
384
+ function?: OvhcloudconnectDiagnosticFunctionEnum;
385
+ /** Diagnostic id */
386
+ id?: number;
387
+ /** Diagnostic result */
388
+ result?: OvhcloudconnectDiagnosticResultList | null;
389
+ /** Source where the diagnostic was run */
390
+ source?: string | null;
391
+ /** Diagnostic status */
392
+ status?: OvhcloudconnectTaskStatusEnum;
393
+ }
394
+ export const OvhcloudconnectDiagnostic = /*@__PURE__*/ S.suspend(() =>
395
+ S.Struct({
396
+ date: S.optional(S.NullOr(S.String)),
397
+ description: S.optional(S.NullOr(S.String)),
398
+ function: S.optional(OvhcloudconnectDiagnosticFunctionEnum),
399
+ id: S.optional(S.Number),
400
+ result: S.optional(S.NullOr(OvhcloudconnectDiagnosticResultList)),
401
+ source: S.optional(S.NullOr(S.String)),
402
+ status: S.optional(OvhcloudconnectTaskStatusEnum),
403
+ }),
404
+ ).annotate({
405
+ identifier: "OvhcloudconnectDiagnostic",
406
+ }) as any as S.Schema<OvhcloudconnectDiagnostic>;
407
+
408
+ export interface CreateOvhCloudConnectLoaRequest {
409
+ /** Service name */
410
+ serviceName: string;
411
+ }
412
+ export const CreateOvhCloudConnectLoaRequest = /*@__PURE__*/ S.suspend(() =>
413
+ S.Struct({
414
+ serviceName: S.String.pipe(T.Label()),
415
+ }).pipe(
416
+ T.Http({
417
+ method: "POST",
418
+ uri: "/ovhCloudConnect/{serviceName}/loa",
419
+ code: 200,
420
+ }),
421
+ ),
422
+ ).annotate({
423
+ identifier: "CreateOvhCloudConnectLoaRequest",
424
+ }) as any as S.Schema<CreateOvhCloudConnectLoaRequest>;
425
+
426
+ export type CreateOvhCloudConnectLoaResponse = string;
427
+ export const CreateOvhCloudConnectLoaResponse = /*@__PURE__*/ S.suspend(() =>
428
+ S.String.pipe(T.RawResponseRoot()),
429
+ ).annotate({
430
+ identifier: "CreateOvhCloudConnectLoaResponse",
431
+ }) as any as S.Schema<CreateOvhCloudConnectLoaResponse>;
432
+
433
+ export interface CreateOvhCloudConnectLogSubscriptionRequest {
434
+ /** Service name */
435
+ serviceName: string;
436
+ /** Log kind name to subscribe to */
437
+ kind: string;
438
+ /** Customer log stream ID */
439
+ streamId: string;
440
+ }
441
+ export const CreateOvhCloudConnectLogSubscriptionRequest =
442
+ /*@__PURE__*/ S.suspend(() =>
443
+ S.Struct({
444
+ serviceName: S.String.pipe(T.Label()),
445
+ kind: S.String,
446
+ streamId: S.String,
447
+ }).pipe(
448
+ T.Http({
449
+ method: "POST",
450
+ uri: "/ovhCloudConnect/{serviceName}/log/subscription",
451
+ code: 200,
452
+ }),
453
+ ),
454
+ ).annotate({
455
+ identifier: "CreateOvhCloudConnectLogSubscriptionRequest",
456
+ }) as any as S.Schema<CreateOvhCloudConnectLogSubscriptionRequest>;
457
+
458
+ /** Asynchronous operation after subscribing or unsubscribing to a resource logs */
459
+ export interface DbaasLogsLogSubscriptionResponse {
460
+ /** Identifier of the operation */
461
+ operationId?: string;
462
+ /** Operation owner's service name */
463
+ serviceName?: string;
464
+ }
465
+ export const DbaasLogsLogSubscriptionResponse = /*@__PURE__*/ S.suspend(() =>
466
+ S.Struct({
467
+ operationId: S.optional(S.String),
468
+ serviceName: S.optional(S.String),
469
+ }),
470
+ ).annotate({
471
+ identifier: "DbaasLogsLogSubscriptionResponse",
472
+ }) as any as S.Schema<DbaasLogsLogSubscriptionResponse>;
473
+
474
+ export interface CreateOvhCloudConnectLogUrlRequest {
475
+ /** Service name */
476
+ serviceName: string;
477
+ /** Log kind name */
478
+ kind: string;
479
+ }
480
+ export const CreateOvhCloudConnectLogUrlRequest = /*@__PURE__*/ S.suspend(() =>
481
+ S.Struct({
482
+ serviceName: S.String.pipe(T.Label()),
483
+ kind: S.String,
484
+ }).pipe(
485
+ T.Http({
486
+ method: "POST",
487
+ uri: "/ovhCloudConnect/{serviceName}/log/url",
488
+ code: 200,
489
+ }),
490
+ ),
491
+ ).annotate({
492
+ identifier: "CreateOvhCloudConnectLogUrlRequest",
493
+ }) as any as S.Schema<CreateOvhCloudConnectLogUrlRequest>;
494
+
495
+ /** Temporary url information */
496
+ export interface DbaasLogsTemporaryLogsLink {
497
+ /** Temporary url expiration date */
498
+ expirationDate?: string;
499
+ /** Temporary url */
500
+ url?: string;
501
+ }
502
+ export const DbaasLogsTemporaryLogsLink = /*@__PURE__*/ S.suspend(() =>
503
+ S.Struct({
504
+ expirationDate: S.optional(S.String),
505
+ url: S.optional(S.String),
506
+ }),
507
+ ).annotate({
508
+ identifier: "DbaasLogsTemporaryLogsLink",
509
+ }) as any as S.Schema<DbaasLogsTemporaryLogsLink>;
510
+
511
+ /** List of subscriptions alerts. */
512
+ export type CreateOvhCloudConnectMonitoringRequestSubscriptionsList =
513
+ Array<string>;
514
+ export const CreateOvhCloudConnectMonitoringRequestSubscriptionsList =
515
+ /*@__PURE__*/ S.Array(
516
+ S.String,
517
+ ) as any as S.Schema<CreateOvhCloudConnectMonitoringRequestSubscriptionsList>;
518
+
519
+ export interface CreateOvhCloudConnectMonitoringRequest {
520
+ /** Service name */
521
+ serviceName: string;
522
+ /** List of subscriptions alerts. */
523
+ subscriptions?: CreateOvhCloudConnectMonitoringRequestSubscriptionsList;
524
+ }
525
+ export const CreateOvhCloudConnectMonitoringRequest = /*@__PURE__*/ S.suspend(
526
+ () =>
527
+ S.Struct({
528
+ serviceName: S.String.pipe(T.Label()),
529
+ subscriptions: S.optional(
530
+ CreateOvhCloudConnectMonitoringRequestSubscriptionsList,
531
+ ),
532
+ }).pipe(
533
+ T.Http({
534
+ method: "POST",
535
+ uri: "/ovhCloudConnect/{serviceName}/monitoring",
536
+ code: 200,
537
+ }),
538
+ ),
539
+ ).annotate({
540
+ identifier: "CreateOvhCloudConnectMonitoringRequest",
541
+ }) as any as S.Schema<CreateOvhCloudConnectMonitoringRequest>;
542
+
543
+ export interface CreateOvhCloudConnectMonitoringResponse {}
544
+ export const CreateOvhCloudConnectMonitoringResponse = /*@__PURE__*/ S.suspend(
545
+ () => S.Struct({}),
546
+ ).annotate({
547
+ identifier: "CreateOvhCloudConnectMonitoringResponse",
548
+ }) as any as S.Schema<CreateOvhCloudConnectMonitoringResponse>;
549
+
550
+ export interface DeleteOvhCloudConnectConfigPopRequest {
551
+ /** Service name */
552
+ serviceName: string;
553
+ /** Pop ID */
554
+ popId: number;
555
+ }
556
+ export const DeleteOvhCloudConnectConfigPopRequest = /*@__PURE__*/ S.suspend(
557
+ () =>
558
+ S.Struct({
559
+ serviceName: S.String.pipe(T.Label()),
560
+ popId: S.Number.pipe(T.Label()),
561
+ }).pipe(
562
+ T.Http({
563
+ method: "DELETE",
564
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}",
565
+ code: 200,
566
+ }),
567
+ ),
568
+ ).annotate({
569
+ identifier: "DeleteOvhCloudConnectConfigPopRequest",
570
+ }) as any as S.Schema<DeleteOvhCloudConnectConfigPopRequest>;
571
+
572
+ export interface DeleteOvhCloudConnectConfigPopDatacenterRequest {
573
+ /** Service name */
574
+ serviceName: string;
575
+ /** Pop ID */
576
+ popId: number;
577
+ /** Datacenter ID */
578
+ datacenterId: number;
579
+ }
580
+ export const DeleteOvhCloudConnectConfigPopDatacenterRequest =
581
+ /*@__PURE__*/ S.suspend(() =>
582
+ S.Struct({
583
+ serviceName: S.String.pipe(T.Label()),
584
+ popId: S.Number.pipe(T.Label()),
585
+ datacenterId: S.Number.pipe(T.Label()),
586
+ }).pipe(
587
+ T.Http({
588
+ method: "DELETE",
589
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}",
590
+ code: 200,
591
+ }),
592
+ ),
593
+ ).annotate({
594
+ identifier: "DeleteOvhCloudConnectConfigPopDatacenterRequest",
595
+ }) as any as S.Schema<DeleteOvhCloudConnectConfigPopDatacenterRequest>;
596
+
597
+ export interface DeleteOvhCloudConnectConfigPopDatacenterExtraRequest {
598
+ /** Service name */
599
+ serviceName: string;
600
+ /** Pop ID */
601
+ popId: number;
602
+ /** Datacenter ID */
603
+ datacenterId: number;
604
+ /** Extra ID */
605
+ extraId: number;
606
+ }
607
+ export const DeleteOvhCloudConnectConfigPopDatacenterExtraRequest =
608
+ /*@__PURE__*/ S.suspend(() =>
609
+ S.Struct({
610
+ serviceName: S.String.pipe(T.Label()),
611
+ popId: S.Number.pipe(T.Label()),
612
+ datacenterId: S.Number.pipe(T.Label()),
613
+ extraId: S.Number.pipe(T.Label()),
614
+ }).pipe(
615
+ T.Http({
616
+ method: "DELETE",
617
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}",
618
+ code: 200,
619
+ }),
620
+ ),
621
+ ).annotate({
622
+ identifier: "DeleteOvhCloudConnectConfigPopDatacenterExtraRequest",
623
+ }) as any as S.Schema<DeleteOvhCloudConnectConfigPopDatacenterExtraRequest>;
624
+
625
+ export interface DeleteOvhCloudConnectLogSubscriptionRequest {
626
+ /** Service name */
627
+ serviceName: string;
628
+ /** Subscription ID */
629
+ subscriptionId: string;
630
+ }
631
+ export const DeleteOvhCloudConnectLogSubscriptionRequest =
632
+ /*@__PURE__*/ S.suspend(() =>
633
+ S.Struct({
634
+ serviceName: S.String.pipe(T.Label()),
635
+ subscriptionId: S.String.pipe(T.Label()),
636
+ }).pipe(
637
+ T.Http({
638
+ method: "DELETE",
639
+ uri: "/ovhCloudConnect/{serviceName}/log/subscription/{subscriptionId}",
640
+ code: 200,
641
+ }),
642
+ ),
643
+ ).annotate({
644
+ identifier: "DeleteOvhCloudConnectLogSubscriptionRequest",
645
+ }) as any as S.Schema<DeleteOvhCloudConnectLogSubscriptionRequest>;
646
+
647
+ export interface DeleteOvhCloudConnectMonitoringRequest {
648
+ /** Service name */
649
+ serviceName: string;
650
+ }
651
+ export const DeleteOvhCloudConnectMonitoringRequest = /*@__PURE__*/ S.suspend(
652
+ () =>
653
+ S.Struct({
654
+ serviceName: S.String.pipe(T.Label()),
655
+ }).pipe(
656
+ T.Http({
657
+ method: "DELETE",
658
+ uri: "/ovhCloudConnect/{serviceName}/monitoring",
659
+ code: 200,
660
+ }),
661
+ ),
662
+ ).annotate({
663
+ identifier: "DeleteOvhCloudConnectMonitoringRequest",
664
+ }) as any as S.Schema<DeleteOvhCloudConnectMonitoringRequest>;
665
+
666
+ export interface DeleteOvhCloudConnectMonitoringResponse {}
667
+ export const DeleteOvhCloudConnectMonitoringResponse = /*@__PURE__*/ S.suspend(
668
+ () => S.Struct({}),
669
+ ).annotate({
670
+ identifier: "DeleteOvhCloudConnectMonitoringResponse",
671
+ }) as any as S.Schema<DeleteOvhCloudConnectMonitoringResponse>;
672
+
673
+ export interface GetOvhCloudConnectRequest {
674
+ /** Service name */
675
+ serviceName: string;
676
+ }
677
+ export const GetOvhCloudConnectRequest = /*@__PURE__*/ S.suspend(() =>
678
+ S.Struct({
679
+ serviceName: S.String.pipe(T.Label()),
680
+ }).pipe(
681
+ T.Http({ method: "GET", uri: "/ovhCloudConnect/{serviceName}", code: 200 }),
682
+ ),
683
+ ).annotate({
684
+ identifier: "GetOvhCloudConnectRequest",
685
+ }) as any as S.Schema<GetOvhCloudConnectRequest>;
686
+
687
+ /** Enum values for bandwidth */
688
+ export type OvhcloudconnectServiceBandwidthEnum =
689
+ | "100g"
690
+ | "100m"
691
+ | "10g"
692
+ | "1g"
693
+ | "200m"
694
+ | "20g"
695
+ | "2g"
696
+ | "500m"
697
+ | "5g";
698
+ export const OvhcloudconnectServiceBandwidthEnum = /*@__PURE__*/ S.String;
699
+
700
+ /** Resource tags. Tags that were internally computed are prefixed with ovh: */
701
+ export type IamResourceMetadataTagsMap = { [key: string]: string | undefined };
702
+ export const IamResourceMetadataTagsMap = /*@__PURE__*/ S.Record(
703
+ S.String,
704
+ S.String,
705
+ ) as any as S.Schema<IamResourceMetadataTagsMap>;
706
+
707
+ /** IAM resource metadata embedded in services models */
708
+ export interface IamResourceMetadata {
709
+ /** Resource display name */
710
+ displayName?: string | null;
711
+ /** Unique identifier of the resource */
712
+ id?: string;
713
+ /** Resource tags. Tags that were internally computed are prefixed with ovh: */
714
+ tags?: IamResourceMetadataTagsMap | null;
715
+ /** Unique resource name used in policies */
716
+ urn?: string;
717
+ }
718
+ export const IamResourceMetadata = /*@__PURE__*/ S.suspend(() =>
719
+ S.Struct({
720
+ displayName: S.optional(S.NullOr(S.String)),
721
+ id: S.optional(S.String),
722
+ tags: S.optional(S.NullOr(IamResourceMetadataTagsMap)),
723
+ urn: S.optional(S.String),
724
+ }),
725
+ ).annotate({
726
+ identifier: "IamResourceMetadata",
727
+ }) as any as S.Schema<IamResourceMetadata>;
728
+
729
+ /** List of interfaces linked to a service */
730
+ export type OvhcloudconnectServiceWithIAMInterfaceListList = Array<number>;
731
+ export const OvhcloudconnectServiceWithIAMInterfaceListList =
732
+ /*@__PURE__*/ S.Array(
733
+ S.Number,
734
+ ) as any as S.Schema<OvhcloudconnectServiceWithIAMInterfaceListList>;
735
+
736
+ /** Enum values for port quantity */
737
+ export type OvhcloudconnectServicePortEnum = "1" | "2";
738
+ export const OvhcloudconnectServicePortEnum = /*@__PURE__*/ S.String;
739
+
740
+ /** Enum values for service provider */
741
+ export type OvhcloudconnectServiceProviderEnum =
742
+ | "OVHcloud"
743
+ | "RISQ"
744
+ | "consoleconnect"
745
+ | "digitalrealty"
746
+ | "equinix"
747
+ | "fibrenoire"
748
+ | "intercloud"
749
+ | "internal"
750
+ | "interxion"
751
+ | "megaport"
752
+ | "orange";
753
+ export const OvhcloudconnectServiceProviderEnum = /*@__PURE__*/ S.String;
754
+
755
+ /** Enum values for the Service */
756
+ export type OvhcloudconnectServiceStatusEnum = "active" | "closed";
757
+ export const OvhcloudconnectServiceStatusEnum = /*@__PURE__*/ S.String;
758
+
759
+ /** OVHcloud Connect Service */
760
+ export interface OvhcloudconnectServiceWithIAM {
761
+ /** Service bandwidth */
762
+ bandwidth?: OvhcloudconnectServiceBandwidthEnum;
763
+ /** Service description */
764
+ description?: string;
765
+ /** IAM resource metadata */
766
+ iam?: IamResourceMetadata | null;
767
+ /** List of interfaces linked to a service */
768
+ interfaceList?: OvhcloudconnectServiceWithIAMInterfaceListList;
769
+ /** Pop reference where the service is delivered */
770
+ pop?: string;
771
+ /** Port quantity */
772
+ portQuantity?: OvhcloudconnectServicePortEnum;
773
+ /** Product name of the service */
774
+ product?: string;
775
+ /** Service provider */
776
+ provider?: OvhcloudconnectServiceProviderEnum;
777
+ /** Service status */
778
+ status?: OvhcloudconnectServiceStatusEnum;
779
+ /** Service UUID */
780
+ uuid?: string;
781
+ /** vrack linked to the service */
782
+ vrack?: string | null;
783
+ }
784
+ export const OvhcloudconnectServiceWithIAM = /*@__PURE__*/ S.suspend(() =>
785
+ S.Struct({
786
+ bandwidth: S.optional(OvhcloudconnectServiceBandwidthEnum),
787
+ description: S.optional(S.String),
788
+ iam: S.optional(S.NullOr(IamResourceMetadata)),
789
+ interfaceList: S.optional(OvhcloudconnectServiceWithIAMInterfaceListList),
790
+ pop: S.optional(S.String),
791
+ portQuantity: S.optional(OvhcloudconnectServicePortEnum),
792
+ product: S.optional(S.String),
793
+ provider: S.optional(OvhcloudconnectServiceProviderEnum),
794
+ status: S.optional(OvhcloudconnectServiceStatusEnum),
795
+ uuid: S.optional(S.String),
796
+ vrack: S.optional(S.NullOr(S.String)),
797
+ }),
798
+ ).annotate({
799
+ identifier: "OvhcloudconnectServiceWithIAM",
800
+ }) as any as S.Schema<OvhcloudconnectServiceWithIAM>;
801
+
802
+ export interface GetOvhCloudConnectConfigPopRequest {
803
+ /** Service name */
804
+ serviceName: string;
805
+ /** Pop ID */
806
+ popId: number;
807
+ }
808
+ export const GetOvhCloudConnectConfigPopRequest = /*@__PURE__*/ S.suspend(() =>
809
+ S.Struct({
810
+ serviceName: S.String.pipe(T.Label()),
811
+ popId: S.Number.pipe(T.Label()),
812
+ }).pipe(
813
+ T.Http({
814
+ method: "GET",
815
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}",
816
+ code: 200,
817
+ }),
818
+ ),
819
+ ).annotate({
820
+ identifier: "GetOvhCloudConnectConfigPopRequest",
821
+ }) as any as S.Schema<GetOvhCloudConnectConfigPopRequest>;
822
+
823
+ /** Enum values for Pop Configuration Status */
824
+ export type OvhcloudconnectPopConfigStatusEnum = "active" | "init" | "toDelete";
825
+ export const OvhcloudconnectPopConfigStatusEnum = /*@__PURE__*/ S.String;
826
+
827
+ /** OVHcloud Connect Service Pop Configuration */
828
+ export interface OvhcloudconnectPopConfig {
829
+ /** Customer Private AS */
830
+ customerBgpArea?: number | null;
831
+ /** ID of the Pop Configuration */
832
+ id?: number;
833
+ /** ID of the interface */
834
+ interfaceId: number;
835
+ /** OVH Private AS */
836
+ ovhBgpArea?: number | null;
837
+ /** Status of the pop configuration */
838
+ status?: OvhcloudconnectPopConfigStatusEnum;
839
+ /** Subnet should be a /30, first IP for OVH, second IP for customer */
840
+ subnet?: string | null;
841
+ /** Type of the pop configuration */
842
+ type: OvhcloudconnectPopConfigTypeEnum;
843
+ }
844
+ export const OvhcloudconnectPopConfig = /*@__PURE__*/ S.suspend(() =>
845
+ S.Struct({
846
+ customerBgpArea: S.optional(S.NullOr(S.Number)),
847
+ id: S.optional(S.Number),
848
+ interfaceId: S.Number,
849
+ ovhBgpArea: S.optional(S.NullOr(S.Number)),
850
+ status: S.optional(OvhcloudconnectPopConfigStatusEnum),
851
+ subnet: S.optional(S.NullOr(S.String)),
852
+ type: OvhcloudconnectPopConfigTypeEnum,
853
+ }),
854
+ ).annotate({
855
+ identifier: "OvhcloudconnectPopConfig",
856
+ }) as any as S.Schema<OvhcloudconnectPopConfig>;
857
+
858
+ export interface GetOvhCloudConnectConfigPopDatacenterRequest {
859
+ /** Service name */
860
+ serviceName: string;
861
+ /** Pop ID */
862
+ popId: number;
863
+ /** Datacenter ID */
864
+ datacenterId: number;
865
+ }
866
+ export const GetOvhCloudConnectConfigPopDatacenterRequest =
867
+ /*@__PURE__*/ S.suspend(() =>
868
+ S.Struct({
869
+ serviceName: S.String.pipe(T.Label()),
870
+ popId: S.Number.pipe(T.Label()),
871
+ datacenterId: S.Number.pipe(T.Label()),
872
+ }).pipe(
873
+ T.Http({
874
+ method: "GET",
875
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}",
876
+ code: 200,
877
+ }),
878
+ ),
879
+ ).annotate({
880
+ identifier: "GetOvhCloudConnectConfigPopDatacenterRequest",
881
+ }) as any as S.Schema<GetOvhCloudConnectConfigPopDatacenterRequest>;
882
+
883
+ /** OVHcloud Connect Service Datacenter Configuration */
884
+ export interface OvhcloudconnectDatacenterConfig {
885
+ /** ID of the datacenter linked */
886
+ datacenterId: number;
887
+ /** ID of the Datacenter configuration */
888
+ id?: number;
889
+ /** OVH Private AS */
890
+ ovhBgpArea?: number | null;
891
+ /** Status of the pop configuration */
892
+ status?: OvhcloudconnectPopConfigStatusEnum;
893
+ /** Subnet should be a /28 min */
894
+ subnet?: string | null;
895
+ }
896
+ export const OvhcloudconnectDatacenterConfig = /*@__PURE__*/ S.suspend(() =>
897
+ S.Struct({
898
+ datacenterId: S.Number,
899
+ id: S.optional(S.Number),
900
+ ovhBgpArea: S.optional(S.NullOr(S.Number)),
901
+ status: S.optional(OvhcloudconnectPopConfigStatusEnum),
902
+ subnet: S.optional(S.NullOr(S.String)),
903
+ }),
904
+ ).annotate({
905
+ identifier: "OvhcloudconnectDatacenterConfig",
906
+ }) as any as S.Schema<OvhcloudconnectDatacenterConfig>;
907
+
908
+ export interface GetOvhCloudConnectConfigPopDatacenterExtraRequest {
909
+ /** Service name */
910
+ serviceName: string;
911
+ /** Pop ID */
912
+ popId: number;
913
+ /** Datacenter ID */
914
+ datacenterId: number;
915
+ /** Extra ID */
916
+ extraId: number;
917
+ }
918
+ export const GetOvhCloudConnectConfigPopDatacenterExtraRequest =
919
+ /*@__PURE__*/ S.suspend(() =>
920
+ S.Struct({
921
+ serviceName: S.String.pipe(T.Label()),
922
+ popId: S.Number.pipe(T.Label()),
923
+ datacenterId: S.Number.pipe(T.Label()),
924
+ extraId: S.Number.pipe(T.Label()),
925
+ }).pipe(
926
+ T.Http({
927
+ method: "GET",
928
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra/{extraId}",
929
+ code: 200,
930
+ }),
931
+ ),
932
+ ).annotate({
933
+ identifier: "GetOvhCloudConnectConfigPopDatacenterExtraRequest",
934
+ }) as any as S.Schema<GetOvhCloudConnectConfigPopDatacenterExtraRequest>;
935
+
936
+ /** OVHcloud Connect Service Datacenter Extra Configuration */
937
+ export interface OvhcloudconnectDatacenterExtraConfig {
938
+ /** BGP AS number */
939
+ bgpNeighborArea?: number | null;
940
+ /** Router IP for BGP */
941
+ bgpNeighborIp?: string | null;
942
+ /** ID of the extra configuration */
943
+ id?: number;
944
+ /** Static route next hop */
945
+ nextHop?: string | null;
946
+ /** Status of the pop configuration */
947
+ status?: OvhcloudconnectPopConfigStatusEnum;
948
+ /** Static route ip */
949
+ subnet?: string | null;
950
+ /** Type of the configuration */
951
+ type: OvhcloudconnectDatacenterExtraConfigTypeEnum;
952
+ }
953
+ export const OvhcloudconnectDatacenterExtraConfig = /*@__PURE__*/ S.suspend(
954
+ () =>
955
+ S.Struct({
956
+ bgpNeighborArea: S.optional(S.NullOr(S.Number)),
957
+ bgpNeighborIp: S.optional(S.NullOr(S.String)),
958
+ id: S.optional(S.Number),
959
+ nextHop: S.optional(S.NullOr(S.String)),
960
+ status: S.optional(OvhcloudconnectPopConfigStatusEnum),
961
+ subnet: S.optional(S.NullOr(S.String)),
962
+ type: OvhcloudconnectDatacenterExtraConfigTypeEnum,
963
+ }),
964
+ ).annotate({
965
+ identifier: "OvhcloudconnectDatacenterExtraConfig",
966
+ }) as any as S.Schema<OvhcloudconnectDatacenterExtraConfig>;
967
+
968
+ export interface GetOvhCloudConnectConfigPopStatusRequest {
969
+ /** Service name */
970
+ serviceName: string;
971
+ /** Pop ID */
972
+ popId: number;
973
+ }
974
+ export const GetOvhCloudConnectConfigPopStatusRequest = /*@__PURE__*/ S.suspend(
975
+ () =>
976
+ S.Struct({
977
+ serviceName: S.String.pipe(T.Label()),
978
+ popId: S.Number.pipe(T.Label()),
979
+ }).pipe(
980
+ T.Http({
981
+ method: "GET",
982
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/status",
983
+ code: 200,
984
+ }),
985
+ ),
986
+ ).annotate({
987
+ identifier: "GetOvhCloudConnectConfigPopStatusRequest",
988
+ }) as any as S.Schema<GetOvhCloudConnectConfigPopStatusRequest>;
989
+
990
+ /** Enum values for status */
991
+ export type OvhcloudconnectStatusStatusEnum = "down" | "up";
992
+ export const OvhcloudconnectStatusStatusEnum = /*@__PURE__*/ S.String;
993
+
994
+ /** OVHcloud Connect L3 peering current status */
995
+ export interface OvhcloudconnectPopConfStatus {
996
+ /** Number of flap since last UP */
997
+ flapCount?: number | null;
998
+ /** Last time the interface changed status */
999
+ lastChange?: string | null;
1000
+ /** Last time the interface status went from up to down */
1001
+ lastDown?: string | null;
1002
+ /** Last time the interface status went from down to up */
1003
+ lastUp?: string | null;
1004
+ /** Last time the status was updated */
1005
+ lastUpdate?: string;
1006
+ /** Status of the peering */
1007
+ status?: OvhcloudconnectStatusStatusEnum;
1008
+ }
1009
+ export const OvhcloudconnectPopConfStatus = /*@__PURE__*/ S.suspend(() =>
1010
+ S.Struct({
1011
+ flapCount: S.optional(S.NullOr(S.Number)),
1012
+ lastChange: S.optional(S.NullOr(S.String)),
1013
+ lastDown: S.optional(S.NullOr(S.String)),
1014
+ lastUp: S.optional(S.NullOr(S.String)),
1015
+ lastUpdate: S.optional(S.String),
1016
+ status: S.optional(OvhcloudconnectStatusStatusEnum),
1017
+ }),
1018
+ ).annotate({
1019
+ identifier: "OvhcloudconnectPopConfStatus",
1020
+ }) as any as S.Schema<OvhcloudconnectPopConfStatus>;
1021
+
1022
+ export interface GetOvhCloudConnectDatacenterRequest {
1023
+ /** Service name */
1024
+ serviceName: string;
1025
+ /** Id */
1026
+ id: number;
1027
+ }
1028
+ export const GetOvhCloudConnectDatacenterRequest = /*@__PURE__*/ S.suspend(() =>
1029
+ S.Struct({
1030
+ serviceName: S.String.pipe(T.Label()),
1031
+ id: S.Number.pipe(T.Label()),
1032
+ }).pipe(
1033
+ T.Http({
1034
+ method: "GET",
1035
+ uri: "/ovhCloudConnect/{serviceName}/datacenter/{id}",
1036
+ code: 200,
1037
+ }),
1038
+ ),
1039
+ ).annotate({
1040
+ identifier: "GetOvhCloudConnectDatacenterRequest",
1041
+ }) as any as S.Schema<GetOvhCloudConnectDatacenterRequest>;
1042
+
1043
+ /** RegionEnum */
1044
+ export type CommonRegionEnum =
1045
+ | "af-north-lz-rba"
1046
+ | "ap-south-mum"
1047
+ | "ap-southeast-sgp"
1048
+ | "ap-southeast-syd"
1049
+ | "ca-east-bhs"
1050
+ | "ca-east-tor"
1051
+ | "eu-central-lz-prg"
1052
+ | "eu-central-waw"
1053
+ | "eu-north-lz-sto"
1054
+ | "eu-south-lz-mad"
1055
+ | "eu-south-lz-mil"
1056
+ | "eu-west-eri"
1057
+ | "eu-west-gra"
1058
+ | "eu-west-gra-snc"
1059
+ | "eu-west-lim"
1060
+ | "eu-west-lz-ams"
1061
+ | "eu-west-lz-bru"
1062
+ | "eu-west-lz-dln"
1063
+ | "eu-west-lz-lux"
1064
+ | "eu-west-lz-mrs"
1065
+ | "eu-west-lz-vie"
1066
+ | "eu-west-lz-zrh"
1067
+ | "eu-west-par"
1068
+ | "eu-west-rbx"
1069
+ | "eu-west-rbx-snc"
1070
+ | "eu-west-sbg"
1071
+ | "eu-west-sbg-snc"
1072
+ | "us-east-lz-atl"
1073
+ | "us-east-lz-chi"
1074
+ | "us-east-lz-dal"
1075
+ | "us-east-lz-mia"
1076
+ | "us-east-lz-nyc"
1077
+ | "us-east-vin"
1078
+ | "us-west-hil"
1079
+ | "us-west-lz-den"
1080
+ | "us-west-lz-lax"
1081
+ | "us-west-lz-pao";
1082
+ export const CommonRegionEnum = /*@__PURE__*/ S.String;
1083
+
1084
+ /** Enum values for datacenter region type */
1085
+ export type OvhcloudconnectDatacenterRegionTypeEnum = "1-AZ" | "3-AZ";
1086
+ export const OvhcloudconnectDatacenterRegionTypeEnum = /*@__PURE__*/ S.String;
1087
+
1088
+ /** OVHcloud Connect Datacenter */
1089
+ export interface OvhcloudconnectDatacenter {
1090
+ /** Get availability to add new configuration on it */
1091
+ available?: boolean;
1092
+ /** ID of the datacenter */
1093
+ id?: number;
1094
+ /** name of the datacenter */
1095
+ name?: string;
1096
+ /** region of the datacenter */
1097
+ region?: CommonRegionEnum;
1098
+ /** region type of the datacenter */
1099
+ regionType?: OvhcloudconnectDatacenterRegionTypeEnum;
1100
+ }
1101
+ export const OvhcloudconnectDatacenter = /*@__PURE__*/ S.suspend(() =>
1102
+ S.Struct({
1103
+ available: S.optional(S.Boolean),
1104
+ id: S.optional(S.Number),
1105
+ name: S.optional(S.String),
1106
+ region: S.optional(CommonRegionEnum),
1107
+ regionType: S.optional(OvhcloudconnectDatacenterRegionTypeEnum),
1108
+ }),
1109
+ ).annotate({
1110
+ identifier: "OvhcloudconnectDatacenter",
1111
+ }) as any as S.Schema<OvhcloudconnectDatacenter>;
1112
+
1113
+ export interface GetOvhCloudConnectDiagnosticRequest {
1114
+ /** Service name */
1115
+ serviceName: string;
1116
+ /** Id */
1117
+ id: number;
1118
+ }
1119
+ export const GetOvhCloudConnectDiagnosticRequest = /*@__PURE__*/ S.suspend(() =>
1120
+ S.Struct({
1121
+ serviceName: S.String.pipe(T.Label()),
1122
+ id: S.Number.pipe(T.Label()),
1123
+ }).pipe(
1124
+ T.Http({
1125
+ method: "GET",
1126
+ uri: "/ovhCloudConnect/{serviceName}/diagnostic/{id}",
1127
+ code: 200,
1128
+ }),
1129
+ ),
1130
+ ).annotate({
1131
+ identifier: "GetOvhCloudConnectDiagnosticRequest",
1132
+ }) as any as S.Schema<GetOvhCloudConnectDiagnosticRequest>;
1133
+
1134
+ export interface GetOvhCloudConnectIncidentRequest {
1135
+ /** Service name */
1136
+ serviceName: string;
1137
+ /** Id */
1138
+ id: number;
1139
+ }
1140
+ export const GetOvhCloudConnectIncidentRequest = /*@__PURE__*/ S.suspend(() =>
1141
+ S.Struct({
1142
+ serviceName: S.String.pipe(T.Label()),
1143
+ id: S.Number.pipe(T.Label()),
1144
+ }).pipe(
1145
+ T.Http({
1146
+ method: "GET",
1147
+ uri: "/ovhCloudConnect/{serviceName}/incident/{id}",
1148
+ code: 200,
1149
+ }),
1150
+ ),
1151
+ ).annotate({
1152
+ identifier: "GetOvhCloudConnectIncidentRequest",
1153
+ }) as any as S.Schema<GetOvhCloudConnectIncidentRequest>;
1154
+
1155
+ /** Enum values for incident type status */
1156
+ export type OvhcloudconnectIncidentTypeEnum = "incident" | "maintenance";
1157
+ export const OvhcloudconnectIncidentTypeEnum = /*@__PURE__*/ S.String;
1158
+
1159
+ /** OVHcloud Connect Incident */
1160
+ export interface OvhcloudconnectIncident {
1161
+ /** Ending date of the incident */
1162
+ endDate?: string | null;
1163
+ /** Incident reference */
1164
+ id?: number;
1165
+ /** Starting date of the incident */
1166
+ startDate?: string;
1167
+ /** Type of incident */
1168
+ type?: OvhcloudconnectIncidentTypeEnum;
1169
+ }
1170
+ export const OvhcloudconnectIncident = /*@__PURE__*/ S.suspend(() =>
1171
+ S.Struct({
1172
+ endDate: S.optional(S.NullOr(S.String)),
1173
+ id: S.optional(S.Number),
1174
+ startDate: S.optional(S.String),
1175
+ type: S.optional(OvhcloudconnectIncidentTypeEnum),
1176
+ }),
1177
+ ).annotate({
1178
+ identifier: "OvhcloudconnectIncident",
1179
+ }) as any as S.Schema<OvhcloudconnectIncident>;
1180
+
1181
+ export interface GetOvhCloudConnectInterfaceRequest {
1182
+ /** Service name */
1183
+ serviceName: string;
1184
+ /** Id */
1185
+ id: number;
1186
+ }
1187
+ export const GetOvhCloudConnectInterfaceRequest = /*@__PURE__*/ S.suspend(() =>
1188
+ S.Struct({
1189
+ serviceName: S.String.pipe(T.Label()),
1190
+ id: S.Number.pipe(T.Label()),
1191
+ }).pipe(
1192
+ T.Http({
1193
+ method: "GET",
1194
+ uri: "/ovhCloudConnect/{serviceName}/interface/{id}",
1195
+ code: 200,
1196
+ }),
1197
+ ),
1198
+ ).annotate({
1199
+ identifier: "GetOvhCloudConnectInterfaceRequest",
1200
+ }) as any as S.Schema<GetOvhCloudConnectInterfaceRequest>;
1201
+
1202
+ /** Enum values for the light status */
1203
+ export type OvhcloudconnectInterfaceLightStatusEnum = "down" | "unknown" | "up";
1204
+ export const OvhcloudconnectInterfaceLightStatusEnum = /*@__PURE__*/ S.String;
1205
+
1206
+ /** Enum values for the termination type */
1207
+ export type OvhcloudconnectInterfaceTerminationTypeEnum = "LC/PC" | "SC/PC";
1208
+ export const OvhcloudconnectInterfaceTerminationTypeEnum =
1209
+ /*@__PURE__*/ S.String;
1210
+
1211
+ /** Enum values for interface status */
1212
+ export type OvhcloudconnectInterfaceStatusEnum =
1213
+ | "disabled"
1214
+ | "enabled"
1215
+ | "reserved";
1216
+ export const OvhcloudconnectInterfaceStatusEnum = /*@__PURE__*/ S.String;
1217
+
1218
+ /** OVHcloud Connect Interface */
1219
+ export interface OvhcloudconnectInterface {
1220
+ /** Patch panel name */
1221
+ deviceDisplayName?: string | null;
1222
+ /** Equipment name in the rack */
1223
+ deviceRackDisplayName?: string | null;
1224
+ /** Interface reference */
1225
+ id?: number;
1226
+ /** Status of the light received on the port (checked every 5 min) */
1227
+ incomingLightStatus?: OvhcloudconnectInterfaceLightStatusEnum;
1228
+ /** Value of the light received on the port (checked every 5 min) */
1229
+ incomingLightValue?: number | null;
1230
+ /** Port location */
1231
+ interfaceName?: string | null;
1232
+ /** Status of the interface */
1233
+ interfaceStatus?: OvhcloudconnectInterfaceLightStatusEnum;
1234
+ /** Date of the last interface status change detected */
1235
+ interfaceStatusLastUpdate?: string;
1236
+ /** Fiber termination type */
1237
+ interfaceTerminationType?: OvhcloudconnectInterfaceTerminationTypeEnum | null;
1238
+ /** Date of the last light change detected */
1239
+ lightLastUpdate?: string;
1240
+ /** Status of the light emitted on the port (checked every 5 min) */
1241
+ outgoingLightStatus?: OvhcloudconnectInterfaceLightStatusEnum;
1242
+ /** Value of the light emitted on the port (checked every 5 min) */
1243
+ outgoingLightValue?: number | null;
1244
+ /** Status of the port */
1245
+ status?: OvhcloudconnectInterfaceStatusEnum;
1246
+ }
1247
+ export const OvhcloudconnectInterface = /*@__PURE__*/ S.suspend(() =>
1248
+ S.Struct({
1249
+ deviceDisplayName: S.optional(S.NullOr(S.String)),
1250
+ deviceRackDisplayName: S.optional(S.NullOr(S.String)),
1251
+ id: S.optional(S.Number),
1252
+ incomingLightStatus: S.optional(OvhcloudconnectInterfaceLightStatusEnum),
1253
+ incomingLightValue: S.optional(S.NullOr(S.Number)),
1254
+ interfaceName: S.optional(S.NullOr(S.String)),
1255
+ interfaceStatus: S.optional(OvhcloudconnectInterfaceLightStatusEnum),
1256
+ interfaceStatusLastUpdate: S.optional(S.String),
1257
+ interfaceTerminationType: S.optional(
1258
+ S.NullOr(OvhcloudconnectInterfaceTerminationTypeEnum),
1259
+ ),
1260
+ lightLastUpdate: S.optional(S.String),
1261
+ outgoingLightStatus: S.optional(OvhcloudconnectInterfaceLightStatusEnum),
1262
+ outgoingLightValue: S.optional(S.NullOr(S.Number)),
1263
+ status: S.optional(OvhcloudconnectInterfaceStatusEnum),
1264
+ }),
1265
+ ).annotate({
1266
+ identifier: "OvhcloudconnectInterface",
1267
+ }) as any as S.Schema<OvhcloudconnectInterface>;
1268
+
1269
+ export interface GetOvhCloudConnectInterfaceStatusRequest {
1270
+ /** Service name */
1271
+ serviceName: string;
1272
+ /** Id */
1273
+ id: number;
1274
+ }
1275
+ export const GetOvhCloudConnectInterfaceStatusRequest = /*@__PURE__*/ S.suspend(
1276
+ () =>
1277
+ S.Struct({
1278
+ serviceName: S.String.pipe(T.Label()),
1279
+ id: S.Number.pipe(T.Label()),
1280
+ }).pipe(
1281
+ T.Http({
1282
+ method: "GET",
1283
+ uri: "/ovhCloudConnect/{serviceName}/interface/{id}/status",
1284
+ code: 200,
1285
+ }),
1286
+ ),
1287
+ ).annotate({
1288
+ identifier: "GetOvhCloudConnectInterfaceStatusRequest",
1289
+ }) as any as S.Schema<GetOvhCloudConnectInterfaceStatusRequest>;
1290
+
1291
+ /** OVHcloud Connect Interface status */
1292
+ export interface OvhcloudconnectInterfaceStatus {
1293
+ /** Last time the interface changed status */
1294
+ lastChange?: string | null;
1295
+ /** Last time the interface status went from up to down */
1296
+ lastDown?: string | null;
1297
+ /** Last time the interface status went from down to up */
1298
+ lastUp?: string | null;
1299
+ /** Last time the status was updated */
1300
+ lastUpdate?: string;
1301
+ /** Status of the interface */
1302
+ status?: OvhcloudconnectStatusStatusEnum;
1303
+ }
1304
+ export const OvhcloudconnectInterfaceStatus = /*@__PURE__*/ S.suspend(() =>
1305
+ S.Struct({
1306
+ lastChange: S.optional(S.NullOr(S.String)),
1307
+ lastDown: S.optional(S.NullOr(S.String)),
1308
+ lastUp: S.optional(S.NullOr(S.String)),
1309
+ lastUpdate: S.optional(S.String),
1310
+ status: S.optional(OvhcloudconnectStatusStatusEnum),
1311
+ }),
1312
+ ).annotate({
1313
+ identifier: "OvhcloudconnectInterfaceStatus",
1314
+ }) as any as S.Schema<OvhcloudconnectInterfaceStatus>;
1315
+
1316
+ export interface GetOvhCloudConnectLogKindRequest {
1317
+ /** Service name */
1318
+ serviceName: string;
1319
+ /** Name */
1320
+ name: string;
1321
+ }
1322
+ export const GetOvhCloudConnectLogKindRequest = /*@__PURE__*/ S.suspend(() =>
1323
+ S.Struct({
1324
+ serviceName: S.String.pipe(T.Label()),
1325
+ name: S.String.pipe(T.Label()),
1326
+ }).pipe(
1327
+ T.Http({
1328
+ method: "GET",
1329
+ uri: "/ovhCloudConnect/{serviceName}/log/kind/{name}",
1330
+ code: 200,
1331
+ }),
1332
+ ),
1333
+ ).annotate({
1334
+ identifier: "GetOvhCloudConnectLogKindRequest",
1335
+ }) as any as S.Schema<GetOvhCloudConnectLogKindRequest>;
1336
+
1337
+ /** List of additional log fields managed in this log kind */
1338
+ export type DbaasLogsLogKindAdditionalReturnedFieldsList = Array<string>;
1339
+ export const DbaasLogsLogKindAdditionalReturnedFieldsList =
1340
+ /*@__PURE__*/ S.Array(
1341
+ S.String,
1342
+ ) as any as S.Schema<DbaasLogsLogKindAdditionalReturnedFieldsList>;
1343
+
1344
+ /** Log kind */
1345
+ export interface DbaasLogsLogKind {
1346
+ /** List of additional log fields managed in this log kind */
1347
+ additionalReturnedFields?: DbaasLogsLogKindAdditionalReturnedFieldsList;
1348
+ /** Creation date of the log kind */
1349
+ createdAt?: string;
1350
+ /** Log kind display name */
1351
+ displayName?: string;
1352
+ /** Log kind ID */
1353
+ kindId?: string;
1354
+ /** Log kind name */
1355
+ name?: string;
1356
+ /** Last update date of the log kind */
1357
+ updatedAt?: string;
1358
+ }
1359
+ export const DbaasLogsLogKind = /*@__PURE__*/ S.suspend(() =>
1360
+ S.Struct({
1361
+ additionalReturnedFields: S.optional(
1362
+ DbaasLogsLogKindAdditionalReturnedFieldsList,
1363
+ ),
1364
+ createdAt: S.optional(S.String),
1365
+ displayName: S.optional(S.String),
1366
+ kindId: S.optional(S.String),
1367
+ name: S.optional(S.String),
1368
+ updatedAt: S.optional(S.String),
1369
+ }),
1370
+ ).annotate({
1371
+ identifier: "DbaasLogsLogKind",
1372
+ }) as any as S.Schema<DbaasLogsLogKind>;
1373
+
1374
+ export interface GetOvhCloudConnectLogSubscriptionRequest {
1375
+ /** Service name */
1376
+ serviceName: string;
1377
+ /** Subscription ID */
1378
+ subscriptionId: string;
1379
+ }
1380
+ export const GetOvhCloudConnectLogSubscriptionRequest = /*@__PURE__*/ S.suspend(
1381
+ () =>
1382
+ S.Struct({
1383
+ serviceName: S.String.pipe(T.Label()),
1384
+ subscriptionId: S.String.pipe(T.Label()),
1385
+ }).pipe(
1386
+ T.Http({
1387
+ method: "GET",
1388
+ uri: "/ovhCloudConnect/{serviceName}/log/subscription/{subscriptionId}",
1389
+ code: 200,
1390
+ }),
1391
+ ),
1392
+ ).annotate({
1393
+ identifier: "GetOvhCloudConnectLogSubscriptionRequest",
1394
+ }) as any as S.Schema<GetOvhCloudConnectLogSubscriptionRequest>;
1395
+
1396
+ /** Log subscription resource */
1397
+ export interface DbaasLogsLogSubscriptionResource {
1398
+ /** Name of subscribed resource */
1399
+ name?: string;
1400
+ /** Type of subscribed resource */
1401
+ type?: string;
1402
+ }
1403
+ export const DbaasLogsLogSubscriptionResource = /*@__PURE__*/ S.suspend(() =>
1404
+ S.Struct({
1405
+ name: S.optional(S.String),
1406
+ type: S.optional(S.String),
1407
+ }),
1408
+ ).annotate({
1409
+ identifier: "DbaasLogsLogSubscriptionResource",
1410
+ }) as any as S.Schema<DbaasLogsLogSubscriptionResource>;
1411
+
1412
+ /** Log subscription */
1413
+ export interface DbaasLogsLogSubscription {
1414
+ /** Creation date of the subscription */
1415
+ createdAt?: string;
1416
+ /** Log kind name of this subscription */
1417
+ kind?: string;
1418
+ /** Subscribed resource, where the logs come from */
1419
+ resource?: DbaasLogsLogSubscriptionResource;
1420
+ /** Name of the destination log service */
1421
+ serviceName?: string;
1422
+ /** Id of the destination log stream */
1423
+ streamId?: string;
1424
+ /** Subscription ID */
1425
+ subscriptionId?: string;
1426
+ /** Last update date of the subscription */
1427
+ updatedAt?: string;
1428
+ }
1429
+ export const DbaasLogsLogSubscription = /*@__PURE__*/ S.suspend(() =>
1430
+ S.Struct({
1431
+ createdAt: S.optional(S.String),
1432
+ kind: S.optional(S.String),
1433
+ resource: S.optional(DbaasLogsLogSubscriptionResource),
1434
+ serviceName: S.optional(S.String),
1435
+ streamId: S.optional(S.String),
1436
+ subscriptionId: S.optional(S.String),
1437
+ updatedAt: S.optional(S.String),
1438
+ }),
1439
+ ).annotate({
1440
+ identifier: "DbaasLogsLogSubscription",
1441
+ }) as any as S.Schema<DbaasLogsLogSubscription>;
1442
+
1443
+ export interface GetOvhCloudConnectServiceInfosRequest {
1444
+ /** Service name */
1445
+ serviceName: string;
1446
+ }
1447
+ export const GetOvhCloudConnectServiceInfosRequest = /*@__PURE__*/ S.suspend(
1448
+ () =>
1449
+ S.Struct({
1450
+ serviceName: S.String.pipe(T.Label()),
1451
+ }).pipe(
1452
+ T.Http({
1453
+ method: "GET",
1454
+ uri: "/ovhCloudConnect/{serviceName}/serviceInfos",
1455
+ code: 200,
1456
+ }),
1457
+ ),
1458
+ ).annotate({
1459
+ identifier: "GetOvhCloudConnectServiceInfosRequest",
1460
+ }) as any as S.Schema<GetOvhCloudConnectServiceInfosRequest>;
1461
+
1462
+ /** All the possible renew period of your service in month */
1463
+ export type ServicesServicePossibleRenewPeriodList = Array<number>;
1464
+ export const ServicesServicePossibleRenewPeriodList = /*@__PURE__*/ S.Array(
1465
+ S.Number,
1466
+ ) as any as S.Schema<ServicesServicePossibleRenewPeriodList>;
1467
+
1468
+ /** Map a possible renew for a specific service */
1469
+ export interface ServiceRenewType {
1470
+ /** The service is automatically renewed */
1471
+ automatic?: boolean;
1472
+ /** The service will be deleted at expiration */
1473
+ deleteAtExpiration?: boolean;
1474
+ /** The service forced to be renewed */
1475
+ forced?: boolean;
1476
+ /** The service needs to be manually renewed and paid */
1477
+ manualPayment?: boolean | null;
1478
+ /** period of renew in month */
1479
+ period?: number | null;
1480
+ }
1481
+ export const ServiceRenewType = /*@__PURE__*/ S.suspend(() =>
1482
+ S.Struct({
1483
+ automatic: S.optional(S.Boolean),
1484
+ deleteAtExpiration: S.optional(S.Boolean),
1485
+ forced: S.optional(S.Boolean),
1486
+ manualPayment: S.optional(S.NullOr(S.Boolean)),
1487
+ period: S.optional(S.NullOr(S.Number)),
1488
+ }),
1489
+ ).annotate({
1490
+ identifier: "ServiceRenewType",
1491
+ }) as any as S.Schema<ServiceRenewType>;
1492
+
1493
+ /** Detailed renewal type of a service */
1494
+ export type ServiceRenewalTypeEnum =
1495
+ | "automaticForcedProduct"
1496
+ | "automaticV2012"
1497
+ | "automaticV2014"
1498
+ | "automaticV2016"
1499
+ | "manual"
1500
+ | "oneShot"
1501
+ | "option";
1502
+ export const ServiceRenewalTypeEnum = /*@__PURE__*/ S.String;
1503
+
1504
+ /** service.StateEnum */
1505
+ export type ServiceStateEnum =
1506
+ | "autorenewInProgress"
1507
+ | "expired"
1508
+ | "inCreation"
1509
+ | "ok"
1510
+ | "pendingDebt"
1511
+ | "unPaid";
1512
+ export const ServiceStateEnum = /*@__PURE__*/ S.String;
1513
+
1514
+ /** Details about a Service */
1515
+ export interface ServicesService {
1516
+ /** Indicates that the service can be set up to be deleted at expiration */
1517
+ canDeleteAtExpiration?: boolean;
1518
+ contactAdmin?: string;
1519
+ contactBilling?: string;
1520
+ contactTech?: string;
1521
+ creation?: string;
1522
+ domain?: string;
1523
+ engagedUpTo?: string | null;
1524
+ expiration?: string;
1525
+ /** All the possible renew period of your service in month */
1526
+ possibleRenewPeriod?: ServicesServicePossibleRenewPeriodList | null;
1527
+ /** Way of handling the renew */
1528
+ renew?: ServiceRenewType | null;
1529
+ renewalType?: ServiceRenewalTypeEnum;
1530
+ serviceId?: number;
1531
+ status?: ServiceStateEnum;
1532
+ }
1533
+ export const ServicesService = /*@__PURE__*/ S.suspend(() =>
1534
+ S.Struct({
1535
+ canDeleteAtExpiration: S.optional(S.Boolean),
1536
+ contactAdmin: S.optional(S.String),
1537
+ contactBilling: S.optional(S.String),
1538
+ contactTech: S.optional(S.String),
1539
+ creation: S.optional(S.String),
1540
+ domain: S.optional(S.String),
1541
+ engagedUpTo: S.optional(S.NullOr(S.String)),
1542
+ expiration: S.optional(S.String),
1543
+ possibleRenewPeriod: S.optional(
1544
+ S.NullOr(ServicesServicePossibleRenewPeriodList),
1545
+ ),
1546
+ renew: S.optional(S.NullOr(ServiceRenewType)),
1547
+ renewalType: S.optional(ServiceRenewalTypeEnum),
1548
+ serviceId: S.optional(S.Number),
1549
+ status: S.optional(ServiceStateEnum),
1550
+ }),
1551
+ ).annotate({
1552
+ identifier: "ServicesService",
1553
+ }) as any as S.Schema<ServicesService>;
1554
+
1555
+ export interface GetOvhCloudConnectServiceKeyRequest {
1556
+ /** Service name */
1557
+ serviceName: string;
1558
+ /** Service key ID */
1559
+ serviceKeyId: number;
1560
+ }
1561
+ export const GetOvhCloudConnectServiceKeyRequest = /*@__PURE__*/ S.suspend(() =>
1562
+ S.Struct({
1563
+ serviceName: S.String.pipe(T.Label()),
1564
+ serviceKeyId: S.Number.pipe(T.Label()),
1565
+ }).pipe(
1566
+ T.Http({
1567
+ method: "GET",
1568
+ uri: "/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}",
1569
+ code: 200,
1570
+ }),
1571
+ ),
1572
+ ).annotate({
1573
+ identifier: "GetOvhCloudConnectServiceKeyRequest",
1574
+ }) as any as S.Schema<GetOvhCloudConnectServiceKeyRequest>;
1575
+
1576
+ /** Enum values for service key status */
1577
+ export type OvhcloudconnectKeyStatusEnum =
1578
+ | "active"
1579
+ | "cancelled"
1580
+ | "doing"
1581
+ | "terminated"
1582
+ | "toCheck";
1583
+ export const OvhcloudconnectKeyStatusEnum = /*@__PURE__*/ S.String;
1584
+
1585
+ /** OVHcloud Connect Service Key */
1586
+ export interface OvhcloudconnectKey {
1587
+ /** Service Key id */
1588
+ id?: number;
1589
+ /** Reference of the service */
1590
+ key?: string;
1591
+ /** Service Key provider */
1592
+ provider?: OvhcloudconnectServiceProviderEnum;
1593
+ /** Service Key status */
1594
+ status?: OvhcloudconnectKeyStatusEnum;
1595
+ }
1596
+ export const OvhcloudconnectKey = /*@__PURE__*/ S.suspend(() =>
1597
+ S.Struct({
1598
+ id: S.optional(S.Number),
1599
+ key: S.optional(S.String),
1600
+ provider: S.optional(OvhcloudconnectServiceProviderEnum),
1601
+ status: S.optional(OvhcloudconnectKeyStatusEnum),
1602
+ }),
1603
+ ).annotate({
1604
+ identifier: "OvhcloudconnectKey",
1605
+ }) as any as S.Schema<OvhcloudconnectKey>;
1606
+
1607
+ export interface GetOvhCloudConnectTaskRequest {
1608
+ /** Service name */
1609
+ serviceName: string;
1610
+ /** Id */
1611
+ id: number;
1612
+ }
1613
+ export const GetOvhCloudConnectTaskRequest = /*@__PURE__*/ S.suspend(() =>
1614
+ S.Struct({
1615
+ serviceName: S.String.pipe(T.Label()),
1616
+ id: S.Number.pipe(T.Label()),
1617
+ }).pipe(
1618
+ T.Http({
1619
+ method: "GET",
1620
+ uri: "/ovhCloudConnect/{serviceName}/task/{id}",
1621
+ code: 200,
1622
+ }),
1623
+ ),
1624
+ ).annotate({
1625
+ identifier: "GetOvhCloudConnectTaskRequest",
1626
+ }) as any as S.Schema<GetOvhCloudConnectTaskRequest>;
1627
+
1628
+ /** Resource tag filter */
1629
+ export interface IamResourceTagFilterInput {}
1630
+ export const IamResourceTagFilterInput = /*@__PURE__*/ S.suspend(() =>
1631
+ S.Struct({}),
1632
+ ).annotate({
1633
+ identifier: "IamResourceTagFilterInput",
1634
+ }) as any as S.Schema<IamResourceTagFilterInput>;
1635
+
1636
+ export type ListOvhCloudConnectRequestIamTagsValueList =
1637
+ Array<IamResourceTagFilterInput>;
1638
+ export const ListOvhCloudConnectRequestIamTagsValueList = /*@__PURE__*/ S.Array(
1639
+ IamResourceTagFilterInput,
1640
+ ) as any as S.Schema<ListOvhCloudConnectRequestIamTagsValueList>;
1641
+
1642
+ export type ListOvhCloudConnectRequestIamTagsMap = {
1643
+ [key: string]: ListOvhCloudConnectRequestIamTagsValueList | undefined;
1644
+ };
1645
+ export const ListOvhCloudConnectRequestIamTagsMap = /*@__PURE__*/ S.Record(
1646
+ S.String,
1647
+ ListOvhCloudConnectRequestIamTagsValueList,
1648
+ ) as any as S.Schema<ListOvhCloudConnectRequestIamTagsMap>;
1649
+
1650
+ export interface ListOvhCloudConnectRequest {
1651
+ /** Filter resources on IAM tags */
1652
+ iamTags?: ListOvhCloudConnectRequestIamTagsMap;
1653
+ }
1654
+ export const ListOvhCloudConnectRequest = /*@__PURE__*/ S.suspend(() =>
1655
+ S.Struct({
1656
+ iamTags: S.optional(ListOvhCloudConnectRequestIamTagsMap.pipe(T.Query())),
1657
+ }).pipe(T.Http({ method: "GET", uri: "/ovhCloudConnect", code: 200 })),
1658
+ ).annotate({
1659
+ identifier: "ListOvhCloudConnectRequest",
1660
+ }) as any as S.Schema<ListOvhCloudConnectRequest>;
1661
+
1662
+ export type ListOvhCloudConnectResponseBodyList = Array<string>;
1663
+ export const ListOvhCloudConnectResponseBodyList = /*@__PURE__*/ S.Array(
1664
+ S.String,
1665
+ ) as any as S.Schema<ListOvhCloudConnectResponseBodyList>;
1666
+
1667
+ export type ListOvhCloudConnectResponse = ListOvhCloudConnectResponseBodyList;
1668
+ export const ListOvhCloudConnectResponse = /*@__PURE__*/ S.suspend(() =>
1669
+ ListOvhCloudConnectResponseBodyList.pipe(T.RawResponseRoot()),
1670
+ ).annotate({
1671
+ identifier: "ListOvhCloudConnectResponse",
1672
+ }) as any as S.Schema<ListOvhCloudConnectResponse>;
1673
+
1674
+ export interface ListOvhCloudConnectConfigPopRequest {
1675
+ /** Service name */
1676
+ serviceName: string;
1677
+ }
1678
+ export const ListOvhCloudConnectConfigPopRequest = /*@__PURE__*/ S.suspend(() =>
1679
+ S.Struct({
1680
+ serviceName: S.String.pipe(T.Label()),
1681
+ }).pipe(
1682
+ T.Http({
1683
+ method: "GET",
1684
+ uri: "/ovhCloudConnect/{serviceName}/config/pop",
1685
+ code: 200,
1686
+ }),
1687
+ ),
1688
+ ).annotate({
1689
+ identifier: "ListOvhCloudConnectConfigPopRequest",
1690
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopRequest>;
1691
+
1692
+ export type ListOvhCloudConnectConfigPopResponseBodyList = Array<number>;
1693
+ export const ListOvhCloudConnectConfigPopResponseBodyList =
1694
+ /*@__PURE__*/ S.Array(
1695
+ S.Number,
1696
+ ) as any as S.Schema<ListOvhCloudConnectConfigPopResponseBodyList>;
1697
+
1698
+ export type ListOvhCloudConnectConfigPopResponse =
1699
+ ListOvhCloudConnectConfigPopResponseBodyList;
1700
+ export const ListOvhCloudConnectConfigPopResponse = /*@__PURE__*/ S.suspend(
1701
+ () => ListOvhCloudConnectConfigPopResponseBodyList.pipe(T.RawResponseRoot()),
1702
+ ).annotate({
1703
+ identifier: "ListOvhCloudConnectConfigPopResponse",
1704
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopResponse>;
1705
+
1706
+ export interface ListOvhCloudConnectConfigPopDatacenterRequest {
1707
+ /** Service name */
1708
+ serviceName: string;
1709
+ /** Pop ID */
1710
+ popId: number;
1711
+ }
1712
+ export const ListOvhCloudConnectConfigPopDatacenterRequest =
1713
+ /*@__PURE__*/ S.suspend(() =>
1714
+ S.Struct({
1715
+ serviceName: S.String.pipe(T.Label()),
1716
+ popId: S.Number.pipe(T.Label()),
1717
+ }).pipe(
1718
+ T.Http({
1719
+ method: "GET",
1720
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter",
1721
+ code: 200,
1722
+ }),
1723
+ ),
1724
+ ).annotate({
1725
+ identifier: "ListOvhCloudConnectConfigPopDatacenterRequest",
1726
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopDatacenterRequest>;
1727
+
1728
+ export type ListOvhCloudConnectConfigPopDatacenterResponseBodyList =
1729
+ Array<number>;
1730
+ export const ListOvhCloudConnectConfigPopDatacenterResponseBodyList =
1731
+ /*@__PURE__*/ S.Array(
1732
+ S.Number,
1733
+ ) as any as S.Schema<ListOvhCloudConnectConfigPopDatacenterResponseBodyList>;
1734
+
1735
+ export type ListOvhCloudConnectConfigPopDatacenterResponse =
1736
+ ListOvhCloudConnectConfigPopDatacenterResponseBodyList;
1737
+ export const ListOvhCloudConnectConfigPopDatacenterResponse =
1738
+ /*@__PURE__*/ S.suspend(() =>
1739
+ ListOvhCloudConnectConfigPopDatacenterResponseBodyList.pipe(
1740
+ T.RawResponseRoot(),
1741
+ ),
1742
+ ).annotate({
1743
+ identifier: "ListOvhCloudConnectConfigPopDatacenterResponse",
1744
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopDatacenterResponse>;
1745
+
1746
+ export interface ListOvhCloudConnectConfigPopDatacenterExtraRequest {
1747
+ /** Service name */
1748
+ serviceName: string;
1749
+ /** Pop ID */
1750
+ popId: number;
1751
+ /** Datacenter ID */
1752
+ datacenterId: number;
1753
+ }
1754
+ export const ListOvhCloudConnectConfigPopDatacenterExtraRequest =
1755
+ /*@__PURE__*/ S.suspend(() =>
1756
+ S.Struct({
1757
+ serviceName: S.String.pipe(T.Label()),
1758
+ popId: S.Number.pipe(T.Label()),
1759
+ datacenterId: S.Number.pipe(T.Label()),
1760
+ }).pipe(
1761
+ T.Http({
1762
+ method: "GET",
1763
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/datacenter/{datacenterId}/extra",
1764
+ code: 200,
1765
+ }),
1766
+ ),
1767
+ ).annotate({
1768
+ identifier: "ListOvhCloudConnectConfigPopDatacenterExtraRequest",
1769
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopDatacenterExtraRequest>;
1770
+
1771
+ export type ListOvhCloudConnectConfigPopDatacenterExtraResponseBodyList =
1772
+ Array<number>;
1773
+ export const ListOvhCloudConnectConfigPopDatacenterExtraResponseBodyList =
1774
+ /*@__PURE__*/ S.Array(
1775
+ S.Number,
1776
+ ) as any as S.Schema<ListOvhCloudConnectConfigPopDatacenterExtraResponseBodyList>;
1777
+
1778
+ export type ListOvhCloudConnectConfigPopDatacenterExtraResponse =
1779
+ ListOvhCloudConnectConfigPopDatacenterExtraResponseBodyList;
1780
+ export const ListOvhCloudConnectConfigPopDatacenterExtraResponse =
1781
+ /*@__PURE__*/ S.suspend(() =>
1782
+ ListOvhCloudConnectConfigPopDatacenterExtraResponseBodyList.pipe(
1783
+ T.RawResponseRoot(),
1784
+ ),
1785
+ ).annotate({
1786
+ identifier: "ListOvhCloudConnectConfigPopDatacenterExtraResponse",
1787
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopDatacenterExtraResponse>;
1788
+
1789
+ /** Enum values for the period of the statistics */
1790
+ export type OvhcloudconnectInterfaceMetricsPeriodEnum =
1791
+ | "daily"
1792
+ | "hourly"
1793
+ | "weekly";
1794
+ export const OvhcloudconnectInterfaceMetricsPeriodEnum = /*@__PURE__*/ S.String;
1795
+
1796
+ /** Enum values for the type of the statistics */
1797
+ export type OvhcloudconnectPopConfigMetricsTypeEnum =
1798
+ | "prefix:accepted"
1799
+ | "prefix:limit";
1800
+ export const OvhcloudconnectPopConfigMetricsTypeEnum = /*@__PURE__*/ S.String;
1801
+
1802
+ export interface ListOvhCloudConnectConfigPopStatisticsRequest {
1803
+ /** Service name */
1804
+ serviceName: string;
1805
+ /** Pop ID */
1806
+ popId: number;
1807
+ /** The period the statistics are fetched for */
1808
+ period: OvhcloudconnectInterfaceMetricsPeriodEnum | (string & {});
1809
+ /** The type of statistic to be fetched */
1810
+ type: OvhcloudconnectPopConfigMetricsTypeEnum | (string & {});
1811
+ }
1812
+ export const ListOvhCloudConnectConfigPopStatisticsRequest =
1813
+ /*@__PURE__*/ S.suspend(() =>
1814
+ S.Struct({
1815
+ serviceName: S.String.pipe(T.Label()),
1816
+ popId: S.Number.pipe(T.Label()),
1817
+ period: OvhcloudconnectInterfaceMetricsPeriodEnum.pipe(T.Query()),
1818
+ type: OvhcloudconnectPopConfigMetricsTypeEnum.pipe(T.Query()),
1819
+ }).pipe(
1820
+ T.Http({
1821
+ method: "GET",
1822
+ uri: "/ovhCloudConnect/{serviceName}/config/pop/{popId}/statistics",
1823
+ code: 200,
1824
+ }),
1825
+ ),
1826
+ ).annotate({
1827
+ identifier: "ListOvhCloudConnectConfigPopStatisticsRequest",
1828
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopStatisticsRequest>;
1829
+
1830
+ /** Enum values for the unit of the statistics */
1831
+ export type OvhcloudconnectInterfaceMetricsUnitEnum =
1832
+ | "bytes/s"
1833
+ | "dbm"
1834
+ | "error/s"
1835
+ | "prefix_accepted"
1836
+ | "prefix_limit";
1837
+ export const OvhcloudconnectInterfaceMetricsUnitEnum = /*@__PURE__*/ S.String;
1838
+
1839
+ /** OVHcloud Connect Metrics value */
1840
+ export interface OvhcloudconnectMetricsValue {
1841
+ /** Unit in which the value is expressed */
1842
+ unit?: OvhcloudconnectInterfaceMetricsUnitEnum;
1843
+ value?: number;
1844
+ }
1845
+ export const OvhcloudconnectMetricsValue = /*@__PURE__*/ S.suspend(() =>
1846
+ S.Struct({
1847
+ unit: S.optional(OvhcloudconnectInterfaceMetricsUnitEnum),
1848
+ value: S.optional(S.Number),
1849
+ }),
1850
+ ).annotate({
1851
+ identifier: "OvhcloudconnectMetricsValue",
1852
+ }) as any as S.Schema<OvhcloudconnectMetricsValue>;
1853
+
1854
+ /** OVHcloud Connect Metrics */
1855
+ export interface OvhcloudconnectMetrics {
1856
+ /** timestamp corresponding to the value */
1857
+ timestamp?: number;
1858
+ value?: OvhcloudconnectMetricsValue;
1859
+ }
1860
+ export const OvhcloudconnectMetrics = /*@__PURE__*/ S.suspend(() =>
1861
+ S.Struct({
1862
+ timestamp: S.optional(S.Number),
1863
+ value: S.optional(OvhcloudconnectMetricsValue),
1864
+ }),
1865
+ ).annotate({
1866
+ identifier: "OvhcloudconnectMetrics",
1867
+ }) as any as S.Schema<OvhcloudconnectMetrics>;
1868
+
1869
+ export type ListOvhCloudConnectConfigPopStatisticsResponseBodyList =
1870
+ Array<OvhcloudconnectMetrics>;
1871
+ export const ListOvhCloudConnectConfigPopStatisticsResponseBodyList =
1872
+ /*@__PURE__*/ S.Array(
1873
+ OvhcloudconnectMetrics,
1874
+ ) as any as S.Schema<ListOvhCloudConnectConfigPopStatisticsResponseBodyList>;
1875
+
1876
+ export type ListOvhCloudConnectConfigPopStatisticsResponse =
1877
+ ListOvhCloudConnectConfigPopStatisticsResponseBodyList;
1878
+ export const ListOvhCloudConnectConfigPopStatisticsResponse =
1879
+ /*@__PURE__*/ S.suspend(() =>
1880
+ ListOvhCloudConnectConfigPopStatisticsResponseBodyList.pipe(
1881
+ T.RawResponseRoot(),
1882
+ ),
1883
+ ).annotate({
1884
+ identifier: "ListOvhCloudConnectConfigPopStatisticsResponse",
1885
+ }) as any as S.Schema<ListOvhCloudConnectConfigPopStatisticsResponse>;
1886
+
1887
+ export interface ListOvhCloudConnectDatacenterRequest {
1888
+ /** Service name */
1889
+ serviceName: string;
1890
+ }
1891
+ export const ListOvhCloudConnectDatacenterRequest = /*@__PURE__*/ S.suspend(
1892
+ () =>
1893
+ S.Struct({
1894
+ serviceName: S.String.pipe(T.Label()),
1895
+ }).pipe(
1896
+ T.Http({
1897
+ method: "GET",
1898
+ uri: "/ovhCloudConnect/{serviceName}/datacenter",
1899
+ code: 200,
1900
+ }),
1901
+ ),
1902
+ ).annotate({
1903
+ identifier: "ListOvhCloudConnectDatacenterRequest",
1904
+ }) as any as S.Schema<ListOvhCloudConnectDatacenterRequest>;
1905
+
1906
+ export type ListOvhCloudConnectDatacenterResponseBodyList = Array<number>;
1907
+ export const ListOvhCloudConnectDatacenterResponseBodyList =
1908
+ /*@__PURE__*/ S.Array(
1909
+ S.Number,
1910
+ ) as any as S.Schema<ListOvhCloudConnectDatacenterResponseBodyList>;
1911
+
1912
+ export type ListOvhCloudConnectDatacenterResponse =
1913
+ ListOvhCloudConnectDatacenterResponseBodyList;
1914
+ export const ListOvhCloudConnectDatacenterResponse = /*@__PURE__*/ S.suspend(
1915
+ () => ListOvhCloudConnectDatacenterResponseBodyList.pipe(T.RawResponseRoot()),
1916
+ ).annotate({
1917
+ identifier: "ListOvhCloudConnectDatacenterResponse",
1918
+ }) as any as S.Schema<ListOvhCloudConnectDatacenterResponse>;
1919
+
1920
+ export interface ListOvhCloudConnectDiagnosticRequest {
1921
+ /** Service name */
1922
+ serviceName: string;
1923
+ }
1924
+ export const ListOvhCloudConnectDiagnosticRequest = /*@__PURE__*/ S.suspend(
1925
+ () =>
1926
+ S.Struct({
1927
+ serviceName: S.String.pipe(T.Label()),
1928
+ }).pipe(
1929
+ T.Http({
1930
+ method: "GET",
1931
+ uri: "/ovhCloudConnect/{serviceName}/diagnostic",
1932
+ code: 200,
1933
+ }),
1934
+ ),
1935
+ ).annotate({
1936
+ identifier: "ListOvhCloudConnectDiagnosticRequest",
1937
+ }) as any as S.Schema<ListOvhCloudConnectDiagnosticRequest>;
1938
+
1939
+ export type ListOvhCloudConnectDiagnosticResponseBodyList = Array<number>;
1940
+ export const ListOvhCloudConnectDiagnosticResponseBodyList =
1941
+ /*@__PURE__*/ S.Array(
1942
+ S.Number,
1943
+ ) as any as S.Schema<ListOvhCloudConnectDiagnosticResponseBodyList>;
1944
+
1945
+ export type ListOvhCloudConnectDiagnosticResponse =
1946
+ ListOvhCloudConnectDiagnosticResponseBodyList;
1947
+ export const ListOvhCloudConnectDiagnosticResponse = /*@__PURE__*/ S.suspend(
1948
+ () => ListOvhCloudConnectDiagnosticResponseBodyList.pipe(T.RawResponseRoot()),
1949
+ ).annotate({
1950
+ identifier: "ListOvhCloudConnectDiagnosticResponse",
1951
+ }) as any as S.Schema<ListOvhCloudConnectDiagnosticResponse>;
1952
+
1953
+ export interface ListOvhCloudConnectIncidentRequest {
1954
+ /** Service name */
1955
+ serviceName: string;
1956
+ }
1957
+ export const ListOvhCloudConnectIncidentRequest = /*@__PURE__*/ S.suspend(() =>
1958
+ S.Struct({
1959
+ serviceName: S.String.pipe(T.Label()),
1960
+ }).pipe(
1961
+ T.Http({
1962
+ method: "GET",
1963
+ uri: "/ovhCloudConnect/{serviceName}/incident",
1964
+ code: 200,
1965
+ }),
1966
+ ),
1967
+ ).annotate({
1968
+ identifier: "ListOvhCloudConnectIncidentRequest",
1969
+ }) as any as S.Schema<ListOvhCloudConnectIncidentRequest>;
1970
+
1971
+ export type ListOvhCloudConnectIncidentResponseBodyList = Array<number>;
1972
+ export const ListOvhCloudConnectIncidentResponseBodyList =
1973
+ /*@__PURE__*/ S.Array(
1974
+ S.Number,
1975
+ ) as any as S.Schema<ListOvhCloudConnectIncidentResponseBodyList>;
1976
+
1977
+ export type ListOvhCloudConnectIncidentResponse =
1978
+ ListOvhCloudConnectIncidentResponseBodyList;
1979
+ export const ListOvhCloudConnectIncidentResponse = /*@__PURE__*/ S.suspend(() =>
1980
+ ListOvhCloudConnectIncidentResponseBodyList.pipe(T.RawResponseRoot()),
1981
+ ).annotate({
1982
+ identifier: "ListOvhCloudConnectIncidentResponse",
1983
+ }) as any as S.Schema<ListOvhCloudConnectIncidentResponse>;
1984
+
1985
+ export interface ListOvhCloudConnectInterfaceRequest {
1986
+ /** Service name */
1987
+ serviceName: string;
1988
+ }
1989
+ export const ListOvhCloudConnectInterfaceRequest = /*@__PURE__*/ S.suspend(() =>
1990
+ S.Struct({
1991
+ serviceName: S.String.pipe(T.Label()),
1992
+ }).pipe(
1993
+ T.Http({
1994
+ method: "GET",
1995
+ uri: "/ovhCloudConnect/{serviceName}/interface",
1996
+ code: 200,
1997
+ }),
1998
+ ),
1999
+ ).annotate({
2000
+ identifier: "ListOvhCloudConnectInterfaceRequest",
2001
+ }) as any as S.Schema<ListOvhCloudConnectInterfaceRequest>;
2002
+
2003
+ export type ListOvhCloudConnectInterfaceResponseBodyList = Array<number>;
2004
+ export const ListOvhCloudConnectInterfaceResponseBodyList =
2005
+ /*@__PURE__*/ S.Array(
2006
+ S.Number,
2007
+ ) as any as S.Schema<ListOvhCloudConnectInterfaceResponseBodyList>;
2008
+
2009
+ export type ListOvhCloudConnectInterfaceResponse =
2010
+ ListOvhCloudConnectInterfaceResponseBodyList;
2011
+ export const ListOvhCloudConnectInterfaceResponse = /*@__PURE__*/ S.suspend(
2012
+ () => ListOvhCloudConnectInterfaceResponseBodyList.pipe(T.RawResponseRoot()),
2013
+ ).annotate({
2014
+ identifier: "ListOvhCloudConnectInterfaceResponse",
2015
+ }) as any as S.Schema<ListOvhCloudConnectInterfaceResponse>;
2016
+
2017
+ /** Enum values for the type of the statistics */
2018
+ export type OvhcloudconnectInterfaceMetricsTypeEnum =
2019
+ | "error:download"
2020
+ | "error:upload"
2021
+ | "light:in"
2022
+ | "light:out"
2023
+ | "traffic:download"
2024
+ | "traffic:upload";
2025
+ export const OvhcloudconnectInterfaceMetricsTypeEnum = /*@__PURE__*/ S.String;
2026
+
2027
+ export interface ListOvhCloudConnectInterfaceStatisticsRequest {
2028
+ /** Service name */
2029
+ serviceName: string;
2030
+ /** Id */
2031
+ id: number;
2032
+ /** The period the statistics are fetched for */
2033
+ period: OvhcloudconnectInterfaceMetricsPeriodEnum | (string & {});
2034
+ /** The type of statistic to be fetched */
2035
+ type: OvhcloudconnectInterfaceMetricsTypeEnum | (string & {});
2036
+ }
2037
+ export const ListOvhCloudConnectInterfaceStatisticsRequest =
2038
+ /*@__PURE__*/ S.suspend(() =>
2039
+ S.Struct({
2040
+ serviceName: S.String.pipe(T.Label()),
2041
+ id: S.Number.pipe(T.Label()),
2042
+ period: OvhcloudconnectInterfaceMetricsPeriodEnum.pipe(T.Query()),
2043
+ type: OvhcloudconnectInterfaceMetricsTypeEnum.pipe(T.Query()),
2044
+ }).pipe(
2045
+ T.Http({
2046
+ method: "GET",
2047
+ uri: "/ovhCloudConnect/{serviceName}/interface/{id}/statistics",
2048
+ code: 200,
2049
+ }),
2050
+ ),
2051
+ ).annotate({
2052
+ identifier: "ListOvhCloudConnectInterfaceStatisticsRequest",
2053
+ }) as any as S.Schema<ListOvhCloudConnectInterfaceStatisticsRequest>;
2054
+
2055
+ export type ListOvhCloudConnectInterfaceStatisticsResponseBodyList =
2056
+ Array<OvhcloudconnectMetrics>;
2057
+ export const ListOvhCloudConnectInterfaceStatisticsResponseBodyList =
2058
+ /*@__PURE__*/ S.Array(
2059
+ OvhcloudconnectMetrics,
2060
+ ) as any as S.Schema<ListOvhCloudConnectInterfaceStatisticsResponseBodyList>;
2061
+
2062
+ export type ListOvhCloudConnectInterfaceStatisticsResponse =
2063
+ ListOvhCloudConnectInterfaceStatisticsResponseBodyList;
2064
+ export const ListOvhCloudConnectInterfaceStatisticsResponse =
2065
+ /*@__PURE__*/ S.suspend(() =>
2066
+ ListOvhCloudConnectInterfaceStatisticsResponseBodyList.pipe(
2067
+ T.RawResponseRoot(),
2068
+ ),
2069
+ ).annotate({
2070
+ identifier: "ListOvhCloudConnectInterfaceStatisticsResponse",
2071
+ }) as any as S.Schema<ListOvhCloudConnectInterfaceStatisticsResponse>;
2072
+
2073
+ export interface ListOvhCloudConnectLogKindRequest {
2074
+ /** Service name */
2075
+ serviceName: string;
2076
+ }
2077
+ export const ListOvhCloudConnectLogKindRequest = /*@__PURE__*/ S.suspend(() =>
2078
+ S.Struct({
2079
+ serviceName: S.String.pipe(T.Label()),
2080
+ }).pipe(
2081
+ T.Http({
2082
+ method: "GET",
2083
+ uri: "/ovhCloudConnect/{serviceName}/log/kind",
2084
+ code: 200,
2085
+ }),
2086
+ ),
2087
+ ).annotate({
2088
+ identifier: "ListOvhCloudConnectLogKindRequest",
2089
+ }) as any as S.Schema<ListOvhCloudConnectLogKindRequest>;
2090
+
2091
+ export type ListOvhCloudConnectLogKindResponseBodyList = Array<string>;
2092
+ export const ListOvhCloudConnectLogKindResponseBodyList = /*@__PURE__*/ S.Array(
2093
+ S.String,
2094
+ ) as any as S.Schema<ListOvhCloudConnectLogKindResponseBodyList>;
2095
+
2096
+ export type ListOvhCloudConnectLogKindResponse =
2097
+ ListOvhCloudConnectLogKindResponseBodyList;
2098
+ export const ListOvhCloudConnectLogKindResponse = /*@__PURE__*/ S.suspend(() =>
2099
+ ListOvhCloudConnectLogKindResponseBodyList.pipe(T.RawResponseRoot()),
2100
+ ).annotate({
2101
+ identifier: "ListOvhCloudConnectLogKindResponse",
2102
+ }) as any as S.Schema<ListOvhCloudConnectLogKindResponse>;
2103
+
2104
+ export interface ListOvhCloudConnectLogSubscriptionRequest {
2105
+ /** Service name */
2106
+ serviceName: string;
2107
+ /** Filter on a specific kind (e.g., audit) */
2108
+ kind?: string;
2109
+ }
2110
+ export const ListOvhCloudConnectLogSubscriptionRequest =
2111
+ /*@__PURE__*/ S.suspend(() =>
2112
+ S.Struct({
2113
+ serviceName: S.String.pipe(T.Label()),
2114
+ kind: S.optional(S.String.pipe(T.Query())),
2115
+ }).pipe(
2116
+ T.Http({
2117
+ method: "GET",
2118
+ uri: "/ovhCloudConnect/{serviceName}/log/subscription",
2119
+ code: 200,
2120
+ }),
2121
+ ),
2122
+ ).annotate({
2123
+ identifier: "ListOvhCloudConnectLogSubscriptionRequest",
2124
+ }) as any as S.Schema<ListOvhCloudConnectLogSubscriptionRequest>;
2125
+
2126
+ export type ListOvhCloudConnectLogSubscriptionResponseBodyList = Array<string>;
2127
+ export const ListOvhCloudConnectLogSubscriptionResponseBodyList =
2128
+ /*@__PURE__*/ S.Array(
2129
+ S.String,
2130
+ ) as any as S.Schema<ListOvhCloudConnectLogSubscriptionResponseBodyList>;
2131
+
2132
+ export type ListOvhCloudConnectLogSubscriptionResponse =
2133
+ ListOvhCloudConnectLogSubscriptionResponseBodyList;
2134
+ export const ListOvhCloudConnectLogSubscriptionResponse =
2135
+ /*@__PURE__*/ S.suspend(() =>
2136
+ ListOvhCloudConnectLogSubscriptionResponseBodyList.pipe(
2137
+ T.RawResponseRoot(),
2138
+ ),
2139
+ ).annotate({
2140
+ identifier: "ListOvhCloudConnectLogSubscriptionResponse",
2141
+ }) as any as S.Schema<ListOvhCloudConnectLogSubscriptionResponse>;
2142
+
2143
+ export interface ListOvhCloudConnectMonitoringRequest {
2144
+ /** Service name */
2145
+ serviceName: string;
2146
+ }
2147
+ export const ListOvhCloudConnectMonitoringRequest = /*@__PURE__*/ S.suspend(
2148
+ () =>
2149
+ S.Struct({
2150
+ serviceName: S.String.pipe(T.Label()),
2151
+ }).pipe(
2152
+ T.Http({
2153
+ method: "GET",
2154
+ uri: "/ovhCloudConnect/{serviceName}/monitoring",
2155
+ code: 200,
2156
+ }),
2157
+ ),
2158
+ ).annotate({
2159
+ identifier: "ListOvhCloudConnectMonitoringRequest",
2160
+ }) as any as S.Schema<ListOvhCloudConnectMonitoringRequest>;
2161
+
2162
+ /** OVHcloud Connect Monitoring */
2163
+ export interface OvhcloudconnectMonitoring {
2164
+ /** Whether alert is activated */
2165
+ activated?: boolean;
2166
+ /** Description of the monitoring alert */
2167
+ description?: string;
2168
+ /** Name of the monitoring alert */
2169
+ name?: string;
2170
+ /** Type of the monitoring alert */
2171
+ type?: string;
2172
+ }
2173
+ export const OvhcloudconnectMonitoring = /*@__PURE__*/ S.suspend(() =>
2174
+ S.Struct({
2175
+ activated: S.optional(S.Boolean),
2176
+ description: S.optional(S.String),
2177
+ name: S.optional(S.String),
2178
+ type: S.optional(S.String),
2179
+ }),
2180
+ ).annotate({
2181
+ identifier: "OvhcloudconnectMonitoring",
2182
+ }) as any as S.Schema<OvhcloudconnectMonitoring>;
2183
+
2184
+ export type ListOvhCloudConnectMonitoringResponseBodyList =
2185
+ Array<OvhcloudconnectMonitoring>;
2186
+ export const ListOvhCloudConnectMonitoringResponseBodyList =
2187
+ /*@__PURE__*/ S.Array(
2188
+ OvhcloudconnectMonitoring,
2189
+ ) as any as S.Schema<ListOvhCloudConnectMonitoringResponseBodyList>;
2190
+
2191
+ export type ListOvhCloudConnectMonitoringResponse =
2192
+ ListOvhCloudConnectMonitoringResponseBodyList;
2193
+ export const ListOvhCloudConnectMonitoringResponse = /*@__PURE__*/ S.suspend(
2194
+ () => ListOvhCloudConnectMonitoringResponseBodyList.pipe(T.RawResponseRoot()),
2195
+ ).annotate({
2196
+ identifier: "ListOvhCloudConnectMonitoringResponse",
2197
+ }) as any as S.Schema<ListOvhCloudConnectMonitoringResponse>;
2198
+
2199
+ export interface ListOvhCloudConnectServiceKeyRequest {
2200
+ /** Service name */
2201
+ serviceName: string;
2202
+ }
2203
+ export const ListOvhCloudConnectServiceKeyRequest = /*@__PURE__*/ S.suspend(
2204
+ () =>
2205
+ S.Struct({
2206
+ serviceName: S.String.pipe(T.Label()),
2207
+ }).pipe(
2208
+ T.Http({
2209
+ method: "GET",
2210
+ uri: "/ovhCloudConnect/{serviceName}/serviceKey",
2211
+ code: 200,
2212
+ }),
2213
+ ),
2214
+ ).annotate({
2215
+ identifier: "ListOvhCloudConnectServiceKeyRequest",
2216
+ }) as any as S.Schema<ListOvhCloudConnectServiceKeyRequest>;
2217
+
2218
+ export type ListOvhCloudConnectServiceKeyResponseBodyList = Array<number>;
2219
+ export const ListOvhCloudConnectServiceKeyResponseBodyList =
2220
+ /*@__PURE__*/ S.Array(
2221
+ S.Number,
2222
+ ) as any as S.Schema<ListOvhCloudConnectServiceKeyResponseBodyList>;
2223
+
2224
+ export type ListOvhCloudConnectServiceKeyResponse =
2225
+ ListOvhCloudConnectServiceKeyResponseBodyList;
2226
+ export const ListOvhCloudConnectServiceKeyResponse = /*@__PURE__*/ S.suspend(
2227
+ () => ListOvhCloudConnectServiceKeyResponseBodyList.pipe(T.RawResponseRoot()),
2228
+ ).annotate({
2229
+ identifier: "ListOvhCloudConnectServiceKeyResponse",
2230
+ }) as any as S.Schema<ListOvhCloudConnectServiceKeyResponse>;
2231
+
2232
+ export interface ListOvhCloudConnectTaskRequest {
2233
+ /** Service name */
2234
+ serviceName: string;
2235
+ }
2236
+ export const ListOvhCloudConnectTaskRequest = /*@__PURE__*/ S.suspend(() =>
2237
+ S.Struct({
2238
+ serviceName: S.String.pipe(T.Label()),
2239
+ }).pipe(
2240
+ T.Http({
2241
+ method: "GET",
2242
+ uri: "/ovhCloudConnect/{serviceName}/task",
2243
+ code: 200,
2244
+ }),
2245
+ ),
2246
+ ).annotate({
2247
+ identifier: "ListOvhCloudConnectTaskRequest",
2248
+ }) as any as S.Schema<ListOvhCloudConnectTaskRequest>;
2249
+
2250
+ export type ListOvhCloudConnectTaskResponseBodyList = Array<number>;
2251
+ export const ListOvhCloudConnectTaskResponseBodyList = /*@__PURE__*/ S.Array(
2252
+ S.Number,
2253
+ ) as any as S.Schema<ListOvhCloudConnectTaskResponseBodyList>;
2254
+
2255
+ export type ListOvhCloudConnectTaskResponse =
2256
+ ListOvhCloudConnectTaskResponseBodyList;
2257
+ export const ListOvhCloudConnectTaskResponse = /*@__PURE__*/ S.suspend(() =>
2258
+ ListOvhCloudConnectTaskResponseBodyList.pipe(T.RawResponseRoot()),
2259
+ ).annotate({
2260
+ identifier: "ListOvhCloudConnectTaskResponse",
2261
+ }) as any as S.Schema<ListOvhCloudConnectTaskResponse>;
2262
+
2263
+ export interface LockOvhCloudConnectInterfaceRequest {
2264
+ /** Service name */
2265
+ serviceName: string;
2266
+ /** Id */
2267
+ id: number;
2268
+ }
2269
+ export const LockOvhCloudConnectInterfaceRequest = /*@__PURE__*/ S.suspend(() =>
2270
+ S.Struct({
2271
+ serviceName: S.String.pipe(T.Label()),
2272
+ id: S.Number.pipe(T.Label()),
2273
+ }).pipe(
2274
+ T.Http({
2275
+ method: "POST",
2276
+ uri: "/ovhCloudConnect/{serviceName}/interface/{id}/lock",
2277
+ code: 200,
2278
+ }),
2279
+ ),
2280
+ ).annotate({
2281
+ identifier: "LockOvhCloudConnectInterfaceRequest",
2282
+ }) as any as S.Schema<LockOvhCloudConnectInterfaceRequest>;
2283
+
2284
+ export interface PutOvhCloudConnectRequest {
2285
+ /** Service name */
2286
+ serviceName: string;
2287
+ /** New description for your service */
2288
+ description?: string | null;
2289
+ }
2290
+ export const PutOvhCloudConnectRequest = /*@__PURE__*/ S.suspend(() =>
2291
+ S.Struct({
2292
+ serviceName: S.String.pipe(T.Label()),
2293
+ description: S.optional(S.NullOr(S.String)),
2294
+ }).pipe(
2295
+ T.Http({ method: "PUT", uri: "/ovhCloudConnect/{serviceName}", code: 200 }),
2296
+ ),
2297
+ ).annotate({
2298
+ identifier: "PutOvhCloudConnectRequest",
2299
+ }) as any as S.Schema<PutOvhCloudConnectRequest>;
2300
+
2301
+ export interface PutOvhCloudConnectResponse {}
2302
+ export const PutOvhCloudConnectResponse = /*@__PURE__*/ S.suspend(() =>
2303
+ S.Struct({}),
2304
+ ).annotate({
2305
+ identifier: "PutOvhCloudConnectResponse",
2306
+ }) as any as S.Schema<PutOvhCloudConnectResponse>;
2307
+
2308
+ export interface PutOvhCloudConnectServiceInfosRequest {
2309
+ /** Service name */
2310
+ serviceName: string;
2311
+ /** Way of handling the renew */
2312
+ renew?: ServiceRenewType | null;
2313
+ }
2314
+ export const PutOvhCloudConnectServiceInfosRequest = /*@__PURE__*/ S.suspend(
2315
+ () =>
2316
+ S.Struct({
2317
+ serviceName: S.String.pipe(T.Label()),
2318
+ renew: S.optional(S.NullOr(ServiceRenewType)),
2319
+ }).pipe(
2320
+ T.Http({
2321
+ method: "PUT",
2322
+ uri: "/ovhCloudConnect/{serviceName}/serviceInfos",
2323
+ code: 200,
2324
+ }),
2325
+ ),
2326
+ ).annotate({
2327
+ identifier: "PutOvhCloudConnectServiceInfosRequest",
2328
+ }) as any as S.Schema<PutOvhCloudConnectServiceInfosRequest>;
2329
+
2330
+ export interface PutOvhCloudConnectServiceInfosResponse {}
2331
+ export const PutOvhCloudConnectServiceInfosResponse = /*@__PURE__*/ S.suspend(
2332
+ () => S.Struct({}),
2333
+ ).annotate({
2334
+ identifier: "PutOvhCloudConnectServiceInfosResponse",
2335
+ }) as any as S.Schema<PutOvhCloudConnectServiceInfosResponse>;
2336
+
2337
+ export interface RegenerateOvhCloudConnectServiceKeyRequest {
2338
+ /** Service name */
2339
+ serviceName: string;
2340
+ /** Service key ID */
2341
+ serviceKeyId: number;
2342
+ }
2343
+ export const RegenerateOvhCloudConnectServiceKeyRequest =
2344
+ /*@__PURE__*/ S.suspend(() =>
2345
+ S.Struct({
2346
+ serviceName: S.String.pipe(T.Label()),
2347
+ serviceKeyId: S.Number.pipe(T.Label()),
2348
+ }).pipe(
2349
+ T.Http({
2350
+ method: "POST",
2351
+ uri: "/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/regenerate",
2352
+ code: 200,
2353
+ }),
2354
+ ),
2355
+ ).annotate({
2356
+ identifier: "RegenerateOvhCloudConnectServiceKeyRequest",
2357
+ }) as any as S.Schema<RegenerateOvhCloudConnectServiceKeyRequest>;
2358
+
2359
+ export interface SendOvhCloudConnectServiceKeyRequest {
2360
+ /** Service name */
2361
+ serviceName: string;
2362
+ /** Service key ID */
2363
+ serviceKeyId: number;
2364
+ /** Email address to send the key */
2365
+ email: string;
2366
+ }
2367
+ export const SendOvhCloudConnectServiceKeyRequest = /*@__PURE__*/ S.suspend(
2368
+ () =>
2369
+ S.Struct({
2370
+ serviceName: S.String.pipe(T.Label()),
2371
+ serviceKeyId: S.Number.pipe(T.Label()),
2372
+ email: S.String,
2373
+ }).pipe(
2374
+ T.Http({
2375
+ method: "POST",
2376
+ uri: "/ovhCloudConnect/{serviceName}/serviceKey/{serviceKeyId}/send",
2377
+ code: 200,
2378
+ }),
2379
+ ),
2380
+ ).annotate({
2381
+ identifier: "SendOvhCloudConnectServiceKeyRequest",
2382
+ }) as any as S.Schema<SendOvhCloudConnectServiceKeyRequest>;
2383
+
2384
+ /** Enum values for messageCode */
2385
+ export type OvhcloudconnectMessageCodeEnum = "mailSent";
2386
+ export const OvhcloudconnectMessageCodeEnum = /*@__PURE__*/ S.String;
2387
+
2388
+ /** OVHcloud Connect send key answer */
2389
+ export interface OvhcloudconnectSendKeyAnswer {
2390
+ /** message code for UX to display appropriate text */
2391
+ messageCode?: OvhcloudconnectMessageCodeEnum;
2392
+ }
2393
+ export const OvhcloudconnectSendKeyAnswer = /*@__PURE__*/ S.suspend(() =>
2394
+ S.Struct({
2395
+ messageCode: S.optional(OvhcloudconnectMessageCodeEnum),
2396
+ }),
2397
+ ).annotate({
2398
+ identifier: "OvhcloudconnectSendKeyAnswer",
2399
+ }) as any as S.Schema<OvhcloudconnectSendKeyAnswer>;
2400
+
2401
+ export interface TerminateOvhCloudConnectRequest {
2402
+ /** Service name */
2403
+ serviceName: string;
2404
+ }
2405
+ export const TerminateOvhCloudConnectRequest = /*@__PURE__*/ S.suspend(() =>
2406
+ S.Struct({
2407
+ serviceName: S.String.pipe(T.Label()),
2408
+ }).pipe(
2409
+ T.Http({
2410
+ method: "POST",
2411
+ uri: "/ovhCloudConnect/{serviceName}/terminate",
2412
+ code: 200,
2413
+ }),
2414
+ ),
2415
+ ).annotate({
2416
+ identifier: "TerminateOvhCloudConnectRequest",
2417
+ }) as any as S.Schema<TerminateOvhCloudConnectRequest>;
2418
+
2419
+ export type TerminateOvhCloudConnectResponse = string;
2420
+ export const TerminateOvhCloudConnectResponse = /*@__PURE__*/ S.suspend(() =>
2421
+ S.String.pipe(T.RawResponseRoot()),
2422
+ ).annotate({
2423
+ identifier: "TerminateOvhCloudConnectResponse",
2424
+ }) as any as S.Schema<TerminateOvhCloudConnectResponse>;
2425
+
2426
+ export interface UnlockOvhCloudConnectInterfaceRequest {
2427
+ /** Service name */
2428
+ serviceName: string;
2429
+ /** Id */
2430
+ id: number;
2431
+ }
2432
+ export const UnlockOvhCloudConnectInterfaceRequest = /*@__PURE__*/ S.suspend(
2433
+ () =>
2434
+ S.Struct({
2435
+ serviceName: S.String.pipe(T.Label()),
2436
+ id: S.Number.pipe(T.Label()),
2437
+ }).pipe(
2438
+ T.Http({
2439
+ method: "POST",
2440
+ uri: "/ovhCloudConnect/{serviceName}/interface/{id}/unlock",
2441
+ code: 200,
2442
+ }),
2443
+ ),
2444
+ ).annotate({
2445
+ identifier: "UnlockOvhCloudConnectInterfaceRequest",
2446
+ }) as any as S.Schema<UnlockOvhCloudConnectInterfaceRequest>;
2447
+
2448
+ export type ConfirmOvhCloudConnectTerminationError = OvhOpError;
2449
+ /** Confirm service termination */
2450
+ export const confirmOvhCloudConnectTermination: API.OperationMethod<
2451
+ ConfirmOvhCloudConnectTerminationRequest,
2452
+ ConfirmOvhCloudConnectTerminationResponse,
2453
+ ConfirmOvhCloudConnectTerminationError,
2454
+ OvhOpContext
2455
+ > = /*@__PURE__*/ API.make(() => ({
2456
+ input: ConfirmOvhCloudConnectTerminationRequest,
2457
+ output: ConfirmOvhCloudConnectTerminationResponse,
2458
+ errors: [UnknownOvhError],
2459
+ protocol: OvhProtocol,
2460
+ retry: Retry.Retry,
2461
+ }));
2462
+
2463
+ export type CreateOvhCloudConnectChangeContactError = OvhOpError;
2464
+ /** Launch a contact change procedure */
2465
+ export const createOvhCloudConnectChangeContact: API.OperationMethod<
2466
+ CreateOvhCloudConnectChangeContactRequest,
2467
+ CreateOvhCloudConnectChangeContactResponse,
2468
+ CreateOvhCloudConnectChangeContactError,
2469
+ OvhOpContext
2470
+ > = /*@__PURE__*/ API.make(() => ({
2471
+ input: CreateOvhCloudConnectChangeContactRequest,
2472
+ output: CreateOvhCloudConnectChangeContactResponse,
2473
+ errors: [UnknownOvhError],
2474
+ protocol: OvhProtocol,
2475
+ retry: Retry.Retry,
2476
+ }));
2477
+
2478
+ export type CreateOvhCloudConnectConfigPopError = OvhOpError;
2479
+ /** Create a Pop Configuration */
2480
+ export const createOvhCloudConnectConfigPop: API.OperationMethod<
2481
+ CreateOvhCloudConnectConfigPopRequest,
2482
+ OvhcloudconnectTask,
2483
+ CreateOvhCloudConnectConfigPopError,
2484
+ OvhOpContext
2485
+ > = /*@__PURE__*/ API.make(() => ({
2486
+ input: CreateOvhCloudConnectConfigPopRequest,
2487
+ output: OvhcloudconnectTask,
2488
+ errors: [UnknownOvhError],
2489
+ protocol: OvhProtocol,
2490
+ retry: Retry.Retry,
2491
+ }));
2492
+
2493
+ export type CreateOvhCloudConnectConfigPopDatacenterError = OvhOpError;
2494
+ /** Create a Datacenter Configuration */
2495
+ export const createOvhCloudConnectConfigPopDatacenter: API.OperationMethod<
2496
+ CreateOvhCloudConnectConfigPopDatacenterRequest,
2497
+ OvhcloudconnectTask,
2498
+ CreateOvhCloudConnectConfigPopDatacenterError,
2499
+ OvhOpContext
2500
+ > = /*@__PURE__*/ API.make(() => ({
2501
+ input: CreateOvhCloudConnectConfigPopDatacenterRequest,
2502
+ output: OvhcloudconnectTask,
2503
+ errors: [UnknownOvhError],
2504
+ protocol: OvhProtocol,
2505
+ retry: Retry.Retry,
2506
+ }));
2507
+
2508
+ export type CreateOvhCloudConnectConfigPopDatacenterExtraError = OvhOpError;
2509
+ /** Create a Datacenter Extra Configuration */
2510
+ export const createOvhCloudConnectConfigPopDatacenterExtra: API.OperationMethod<
2511
+ CreateOvhCloudConnectConfigPopDatacenterExtraRequest,
2512
+ OvhcloudconnectTask,
2513
+ CreateOvhCloudConnectConfigPopDatacenterExtraError,
2514
+ OvhOpContext
2515
+ > = /*@__PURE__*/ API.make(() => ({
2516
+ input: CreateOvhCloudConnectConfigPopDatacenterExtraRequest,
2517
+ output: OvhcloudconnectTask,
2518
+ errors: [UnknownOvhError],
2519
+ protocol: OvhProtocol,
2520
+ retry: Retry.Retry,
2521
+ }));
2522
+
2523
+ export type CreateOvhCloudConnectDiagnosticError = OvhOpError;
2524
+ /** Create a Diagnostic linked to a OVHcloud Connect Service */
2525
+ export const createOvhCloudConnectDiagnostic: API.OperationMethod<
2526
+ CreateOvhCloudConnectDiagnosticRequest,
2527
+ OvhcloudconnectDiagnostic,
2528
+ CreateOvhCloudConnectDiagnosticError,
2529
+ OvhOpContext
2530
+ > = /*@__PURE__*/ API.make(() => ({
2531
+ input: CreateOvhCloudConnectDiagnosticRequest,
2532
+ output: OvhcloudconnectDiagnostic,
2533
+ errors: [UnknownOvhError],
2534
+ protocol: OvhProtocol,
2535
+ retry: Retry.Retry,
2536
+ }));
2537
+
2538
+ export type CreateOvhCloudConnectLoaError = OvhOpError;
2539
+ /** Generate a loa for a service */
2540
+ export const createOvhCloudConnectLoa: API.OperationMethod<
2541
+ CreateOvhCloudConnectLoaRequest,
2542
+ CreateOvhCloudConnectLoaResponse,
2543
+ CreateOvhCloudConnectLoaError,
2544
+ OvhOpContext
2545
+ > = /*@__PURE__*/ API.make(() => ({
2546
+ input: CreateOvhCloudConnectLoaRequest,
2547
+ output: CreateOvhCloudConnectLoaResponse,
2548
+ errors: [UnknownOvhError],
2549
+ protocol: OvhProtocol,
2550
+ retry: Retry.Retry,
2551
+ }));
2552
+
2553
+ export type CreateOvhCloudConnectLogSubscriptionError = OvhOpError;
2554
+ /** Create a subscription from logs to a pre-existing LDP stream */
2555
+ export const createOvhCloudConnectLogSubscription: API.OperationMethod<
2556
+ CreateOvhCloudConnectLogSubscriptionRequest,
2557
+ DbaasLogsLogSubscriptionResponse,
2558
+ CreateOvhCloudConnectLogSubscriptionError,
2559
+ OvhOpContext
2560
+ > = /*@__PURE__*/ API.make(() => ({
2561
+ input: CreateOvhCloudConnectLogSubscriptionRequest,
2562
+ output: DbaasLogsLogSubscriptionResponse,
2563
+ errors: [UnknownOvhError],
2564
+ protocol: OvhProtocol,
2565
+ retry: Retry.Retry,
2566
+ }));
2567
+
2568
+ export type CreateOvhCloudConnectLogUrlError = OvhOpError;
2569
+ /** Generate a temporary URL to retrieve logs */
2570
+ export const createOvhCloudConnectLogUrl: API.OperationMethod<
2571
+ CreateOvhCloudConnectLogUrlRequest,
2572
+ DbaasLogsTemporaryLogsLink,
2573
+ CreateOvhCloudConnectLogUrlError,
2574
+ OvhOpContext
2575
+ > = /*@__PURE__*/ API.make(() => ({
2576
+ input: CreateOvhCloudConnectLogUrlRequest,
2577
+ output: DbaasLogsTemporaryLogsLink,
2578
+ errors: [UnknownOvhError],
2579
+ protocol: OvhProtocol,
2580
+ retry: Retry.Retry,
2581
+ }));
2582
+
2583
+ export type CreateOvhCloudConnectMonitoringError = OvhOpError;
2584
+ /** Monitor the Service */
2585
+ export const createOvhCloudConnectMonitoring: API.OperationMethod<
2586
+ CreateOvhCloudConnectMonitoringRequest,
2587
+ CreateOvhCloudConnectMonitoringResponse,
2588
+ CreateOvhCloudConnectMonitoringError,
2589
+ OvhOpContext
2590
+ > = /*@__PURE__*/ API.make(() => ({
2591
+ input: CreateOvhCloudConnectMonitoringRequest,
2592
+ output: CreateOvhCloudConnectMonitoringResponse,
2593
+ errors: [UnknownOvhError],
2594
+ protocol: OvhProtocol,
2595
+ retry: Retry.Retry,
2596
+ }));
2597
+
2598
+ export type DeleteOvhCloudConnectConfigPopError = OvhOpError;
2599
+ /** Delete a Pop Configuration */
2600
+ export const deleteOvhCloudConnectConfigPop: API.OperationMethod<
2601
+ DeleteOvhCloudConnectConfigPopRequest,
2602
+ OvhcloudconnectTask,
2603
+ DeleteOvhCloudConnectConfigPopError,
2604
+ OvhOpContext
2605
+ > = /*@__PURE__*/ API.make(() => ({
2606
+ input: DeleteOvhCloudConnectConfigPopRequest,
2607
+ output: OvhcloudconnectTask,
2608
+ errors: [UnknownOvhError],
2609
+ protocol: OvhProtocol,
2610
+ retry: Retry.Retry,
2611
+ }));
2612
+
2613
+ export type DeleteOvhCloudConnectConfigPopDatacenterError = OvhOpError;
2614
+ /** Delete a Datacenter Configuration */
2615
+ export const deleteOvhCloudConnectConfigPopDatacenter: API.OperationMethod<
2616
+ DeleteOvhCloudConnectConfigPopDatacenterRequest,
2617
+ OvhcloudconnectTask,
2618
+ DeleteOvhCloudConnectConfigPopDatacenterError,
2619
+ OvhOpContext
2620
+ > = /*@__PURE__*/ API.make(() => ({
2621
+ input: DeleteOvhCloudConnectConfigPopDatacenterRequest,
2622
+ output: OvhcloudconnectTask,
2623
+ errors: [UnknownOvhError],
2624
+ protocol: OvhProtocol,
2625
+ retry: Retry.Retry,
2626
+ }));
2627
+
2628
+ export type DeleteOvhCloudConnectConfigPopDatacenterExtraError = OvhOpError;
2629
+ /** Delete a Datacenter Extra Configuration */
2630
+ export const deleteOvhCloudConnectConfigPopDatacenterExtra: API.OperationMethod<
2631
+ DeleteOvhCloudConnectConfigPopDatacenterExtraRequest,
2632
+ OvhcloudconnectTask,
2633
+ DeleteOvhCloudConnectConfigPopDatacenterExtraError,
2634
+ OvhOpContext
2635
+ > = /*@__PURE__*/ API.make(() => ({
2636
+ input: DeleteOvhCloudConnectConfigPopDatacenterExtraRequest,
2637
+ output: OvhcloudconnectTask,
2638
+ errors: [UnknownOvhError],
2639
+ protocol: OvhProtocol,
2640
+ retry: Retry.Retry,
2641
+ }));
2642
+
2643
+ export type DeleteOvhCloudConnectLogSubscriptionError = OvhOpError;
2644
+ /** Delete a subscription */
2645
+ export const deleteOvhCloudConnectLogSubscription: API.OperationMethod<
2646
+ DeleteOvhCloudConnectLogSubscriptionRequest,
2647
+ DbaasLogsLogSubscriptionResponse,
2648
+ DeleteOvhCloudConnectLogSubscriptionError,
2649
+ OvhOpContext
2650
+ > = /*@__PURE__*/ API.make(() => ({
2651
+ input: DeleteOvhCloudConnectLogSubscriptionRequest,
2652
+ output: DbaasLogsLogSubscriptionResponse,
2653
+ errors: [UnknownOvhError],
2654
+ protocol: OvhProtocol,
2655
+ retry: Retry.Retry,
2656
+ }));
2657
+
2658
+ export type DeleteOvhCloudConnectMonitoringError = OvhOpError;
2659
+ /** Delete monitoring */
2660
+ export const deleteOvhCloudConnectMonitoring: API.OperationMethod<
2661
+ DeleteOvhCloudConnectMonitoringRequest,
2662
+ DeleteOvhCloudConnectMonitoringResponse,
2663
+ DeleteOvhCloudConnectMonitoringError,
2664
+ OvhOpContext
2665
+ > = /*@__PURE__*/ API.make(() => ({
2666
+ input: DeleteOvhCloudConnectMonitoringRequest,
2667
+ output: DeleteOvhCloudConnectMonitoringResponse,
2668
+ errors: [UnknownOvhError],
2669
+ protocol: OvhProtocol,
2670
+ retry: Retry.Retry,
2671
+ }));
2672
+
2673
+ export type GetOvhCloudConnectError = OvhOpError;
2674
+ /** Get service */
2675
+ export const getOvhCloudConnect: API.OperationMethod<
2676
+ GetOvhCloudConnectRequest,
2677
+ OvhcloudconnectServiceWithIAM,
2678
+ GetOvhCloudConnectError,
2679
+ OvhOpContext
2680
+ > = /*@__PURE__*/ API.make(() => ({
2681
+ input: GetOvhCloudConnectRequest,
2682
+ output: OvhcloudconnectServiceWithIAM,
2683
+ errors: [UnknownOvhError],
2684
+ protocol: OvhProtocol,
2685
+ retry: Retry.Retry,
2686
+ }));
2687
+
2688
+ export type GetOvhCloudConnectConfigPopError = OvhOpError;
2689
+ /** Get Pop Configuration of a OVHcloud Connect Service */
2690
+ export const getOvhCloudConnectConfigPop: API.OperationMethod<
2691
+ GetOvhCloudConnectConfigPopRequest,
2692
+ OvhcloudconnectPopConfig,
2693
+ GetOvhCloudConnectConfigPopError,
2694
+ OvhOpContext
2695
+ > = /*@__PURE__*/ API.make(() => ({
2696
+ input: GetOvhCloudConnectConfigPopRequest,
2697
+ output: OvhcloudconnectPopConfig,
2698
+ errors: [UnknownOvhError],
2699
+ protocol: OvhProtocol,
2700
+ retry: Retry.Retry,
2701
+ }));
2702
+
2703
+ export type GetOvhCloudConnectConfigPopDatacenterError = OvhOpError;
2704
+ /** Get Datacenter Configuration of a OVHcloud Connect Service */
2705
+ export const getOvhCloudConnectConfigPopDatacenter: API.OperationMethod<
2706
+ GetOvhCloudConnectConfigPopDatacenterRequest,
2707
+ OvhcloudconnectDatacenterConfig,
2708
+ GetOvhCloudConnectConfigPopDatacenterError,
2709
+ OvhOpContext
2710
+ > = /*@__PURE__*/ API.make(() => ({
2711
+ input: GetOvhCloudConnectConfigPopDatacenterRequest,
2712
+ output: OvhcloudconnectDatacenterConfig,
2713
+ errors: [UnknownOvhError],
2714
+ protocol: OvhProtocol,
2715
+ retry: Retry.Retry,
2716
+ }));
2717
+
2718
+ export type GetOvhCloudConnectConfigPopDatacenterExtraError = OvhOpError;
2719
+ /** Get Datacenter Extra Configuration of a OVHcloud Connect Service */
2720
+ export const getOvhCloudConnectConfigPopDatacenterExtra: API.OperationMethod<
2721
+ GetOvhCloudConnectConfigPopDatacenterExtraRequest,
2722
+ OvhcloudconnectDatacenterExtraConfig,
2723
+ GetOvhCloudConnectConfigPopDatacenterExtraError,
2724
+ OvhOpContext
2725
+ > = /*@__PURE__*/ API.make(() => ({
2726
+ input: GetOvhCloudConnectConfigPopDatacenterExtraRequest,
2727
+ output: OvhcloudconnectDatacenterExtraConfig,
2728
+ errors: [UnknownOvhError],
2729
+ protocol: OvhProtocol,
2730
+ retry: Retry.Retry,
2731
+ }));
2732
+
2733
+ export type GetOvhCloudConnectConfigPopStatusError = OvhOpError;
2734
+ /** Current status of the L3 Pop config. */
2735
+ export const getOvhCloudConnectConfigPopStatus: API.OperationMethod<
2736
+ GetOvhCloudConnectConfigPopStatusRequest,
2737
+ OvhcloudconnectPopConfStatus,
2738
+ GetOvhCloudConnectConfigPopStatusError,
2739
+ OvhOpContext
2740
+ > = /*@__PURE__*/ API.make(() => ({
2741
+ input: GetOvhCloudConnectConfigPopStatusRequest,
2742
+ output: OvhcloudconnectPopConfStatus,
2743
+ errors: [UnknownOvhError],
2744
+ protocol: OvhProtocol,
2745
+ retry: Retry.Retry,
2746
+ }));
2747
+
2748
+ export type GetOvhCloudConnectDatacenterError = OvhOpError;
2749
+ /** Get Datacenter */
2750
+ export const getOvhCloudConnectDatacenter: API.OperationMethod<
2751
+ GetOvhCloudConnectDatacenterRequest,
2752
+ OvhcloudconnectDatacenter,
2753
+ GetOvhCloudConnectDatacenterError,
2754
+ OvhOpContext
2755
+ > = /*@__PURE__*/ API.make(() => ({
2756
+ input: GetOvhCloudConnectDatacenterRequest,
2757
+ output: OvhcloudconnectDatacenter,
2758
+ errors: [UnknownOvhError],
2759
+ protocol: OvhProtocol,
2760
+ retry: Retry.Retry,
2761
+ }));
2762
+
2763
+ export type GetOvhCloudConnectDiagnosticError = OvhOpError;
2764
+ /** Get Diagnostic linked to a OVHcloud Connect Service */
2765
+ export const getOvhCloudConnectDiagnostic: API.OperationMethod<
2766
+ GetOvhCloudConnectDiagnosticRequest,
2767
+ OvhcloudconnectDiagnostic,
2768
+ GetOvhCloudConnectDiagnosticError,
2769
+ OvhOpContext
2770
+ > = /*@__PURE__*/ API.make(() => ({
2771
+ input: GetOvhCloudConnectDiagnosticRequest,
2772
+ output: OvhcloudconnectDiagnostic,
2773
+ errors: [UnknownOvhError],
2774
+ protocol: OvhProtocol,
2775
+ retry: Retry.Retry,
2776
+ }));
2777
+
2778
+ export type GetOvhCloudConnectIncidentError = OvhOpError;
2779
+ /** Get the incident information */
2780
+ export const getOvhCloudConnectIncident: API.OperationMethod<
2781
+ GetOvhCloudConnectIncidentRequest,
2782
+ OvhcloudconnectIncident,
2783
+ GetOvhCloudConnectIncidentError,
2784
+ OvhOpContext
2785
+ > = /*@__PURE__*/ API.make(() => ({
2786
+ input: GetOvhCloudConnectIncidentRequest,
2787
+ output: OvhcloudconnectIncident,
2788
+ errors: [UnknownOvhError],
2789
+ protocol: OvhProtocol,
2790
+ retry: Retry.Retry,
2791
+ }));
2792
+
2793
+ export type GetOvhCloudConnectInterfaceError = OvhOpError;
2794
+ /** Get the Interface information */
2795
+ export const getOvhCloudConnectInterface: API.OperationMethod<
2796
+ GetOvhCloudConnectInterfaceRequest,
2797
+ OvhcloudconnectInterface,
2798
+ GetOvhCloudConnectInterfaceError,
2799
+ OvhOpContext
2800
+ > = /*@__PURE__*/ API.make(() => ({
2801
+ input: GetOvhCloudConnectInterfaceRequest,
2802
+ output: OvhcloudconnectInterface,
2803
+ errors: [UnknownOvhError],
2804
+ protocol: OvhProtocol,
2805
+ retry: Retry.Retry,
2806
+ }));
2807
+
2808
+ export type GetOvhCloudConnectInterfaceStatusError = OvhOpError;
2809
+ /** Current status of the interface. */
2810
+ export const getOvhCloudConnectInterfaceStatus: API.OperationMethod<
2811
+ GetOvhCloudConnectInterfaceStatusRequest,
2812
+ OvhcloudconnectInterfaceStatus,
2813
+ GetOvhCloudConnectInterfaceStatusError,
2814
+ OvhOpContext
2815
+ > = /*@__PURE__*/ API.make(() => ({
2816
+ input: GetOvhCloudConnectInterfaceStatusRequest,
2817
+ output: OvhcloudconnectInterfaceStatus,
2818
+ errors: [UnknownOvhError],
2819
+ protocol: OvhProtocol,
2820
+ retry: Retry.Retry,
2821
+ }));
2822
+
2823
+ export type GetOvhCloudConnectLogKindError = OvhOpError;
2824
+ /** Get a log kind */
2825
+ export const getOvhCloudConnectLogKind: API.OperationMethod<
2826
+ GetOvhCloudConnectLogKindRequest,
2827
+ DbaasLogsLogKind,
2828
+ GetOvhCloudConnectLogKindError,
2829
+ OvhOpContext
2830
+ > = /*@__PURE__*/ API.make(() => ({
2831
+ input: GetOvhCloudConnectLogKindRequest,
2832
+ output: DbaasLogsLogKind,
2833
+ errors: [UnknownOvhError],
2834
+ protocol: OvhProtocol,
2835
+ retry: Retry.Retry,
2836
+ }));
2837
+
2838
+ export type GetOvhCloudConnectLogSubscriptionError = OvhOpError;
2839
+ /** Get subscription details */
2840
+ export const getOvhCloudConnectLogSubscription: API.OperationMethod<
2841
+ GetOvhCloudConnectLogSubscriptionRequest,
2842
+ DbaasLogsLogSubscription,
2843
+ GetOvhCloudConnectLogSubscriptionError,
2844
+ OvhOpContext
2845
+ > = /*@__PURE__*/ API.make(() => ({
2846
+ input: GetOvhCloudConnectLogSubscriptionRequest,
2847
+ output: DbaasLogsLogSubscription,
2848
+ errors: [UnknownOvhError],
2849
+ protocol: OvhProtocol,
2850
+ retry: Retry.Retry,
2851
+ }));
2852
+
2853
+ export type GetOvhCloudConnectServiceInfosError = OvhOpError;
2854
+ /** Get service information */
2855
+ export const getOvhCloudConnectServiceInfos: API.OperationMethod<
2856
+ GetOvhCloudConnectServiceInfosRequest,
2857
+ ServicesService,
2858
+ GetOvhCloudConnectServiceInfosError,
2859
+ OvhOpContext
2860
+ > = /*@__PURE__*/ API.make(() => ({
2861
+ input: GetOvhCloudConnectServiceInfosRequest,
2862
+ output: ServicesService,
2863
+ errors: [UnknownOvhError],
2864
+ protocol: OvhProtocol,
2865
+ retry: Retry.Retry,
2866
+ }));
2867
+
2868
+ export type GetOvhCloudConnectServiceKeyError = OvhOpError;
2869
+ /** Get Key linked to a OVHcloud Connect Service */
2870
+ export const getOvhCloudConnectServiceKey: API.OperationMethod<
2871
+ GetOvhCloudConnectServiceKeyRequest,
2872
+ OvhcloudconnectKey,
2873
+ GetOvhCloudConnectServiceKeyError,
2874
+ OvhOpContext
2875
+ > = /*@__PURE__*/ API.make(() => ({
2876
+ input: GetOvhCloudConnectServiceKeyRequest,
2877
+ output: OvhcloudconnectKey,
2878
+ errors: [UnknownOvhError],
2879
+ protocol: OvhProtocol,
2880
+ retry: Retry.Retry,
2881
+ }));
2882
+
2883
+ export type GetOvhCloudConnectTaskError = OvhOpError;
2884
+ /** Get Tasks linked to a OVHcloud Connect Service */
2885
+ export const getOvhCloudConnectTask: API.OperationMethod<
2886
+ GetOvhCloudConnectTaskRequest,
2887
+ OvhcloudconnectTask,
2888
+ GetOvhCloudConnectTaskError,
2889
+ OvhOpContext
2890
+ > = /*@__PURE__*/ API.make(() => ({
2891
+ input: GetOvhCloudConnectTaskRequest,
2892
+ output: OvhcloudconnectTask,
2893
+ errors: [UnknownOvhError],
2894
+ protocol: OvhProtocol,
2895
+ retry: Retry.Retry,
2896
+ }));
2897
+
2898
+ export type ListOvhCloudConnectError = OvhOpError;
2899
+ /** List available services */
2900
+ export const listOvhCloudConnect: API.OperationMethod<
2901
+ ListOvhCloudConnectRequest,
2902
+ ListOvhCloudConnectResponse,
2903
+ ListOvhCloudConnectError,
2904
+ OvhOpContext
2905
+ > = /*@__PURE__*/ API.make(() => ({
2906
+ input: ListOvhCloudConnectRequest,
2907
+ output: ListOvhCloudConnectResponse,
2908
+ errors: [UnknownOvhError],
2909
+ protocol: OvhProtocol,
2910
+ retry: Retry.Retry,
2911
+ }));
2912
+
2913
+ export type ListOvhCloudConnectConfigPopError = OvhOpError;
2914
+ /** Get Pop Configuration linked to of a OVHcloud Connect Service */
2915
+ export const listOvhCloudConnectConfigPop: API.OperationMethod<
2916
+ ListOvhCloudConnectConfigPopRequest,
2917
+ ListOvhCloudConnectConfigPopResponse,
2918
+ ListOvhCloudConnectConfigPopError,
2919
+ OvhOpContext
2920
+ > = /*@__PURE__*/ API.make(() => ({
2921
+ input: ListOvhCloudConnectConfigPopRequest,
2922
+ output: ListOvhCloudConnectConfigPopResponse,
2923
+ errors: [UnknownOvhError],
2924
+ protocol: OvhProtocol,
2925
+ retry: Retry.Retry,
2926
+ }));
2927
+
2928
+ export type ListOvhCloudConnectConfigPopDatacenterError = OvhOpError;
2929
+ /** Get Datacenter Configuration linked to of a OVHcloud Connect Service */
2930
+ export const listOvhCloudConnectConfigPopDatacenter: API.OperationMethod<
2931
+ ListOvhCloudConnectConfigPopDatacenterRequest,
2932
+ ListOvhCloudConnectConfigPopDatacenterResponse,
2933
+ ListOvhCloudConnectConfigPopDatacenterError,
2934
+ OvhOpContext
2935
+ > = /*@__PURE__*/ API.make(() => ({
2936
+ input: ListOvhCloudConnectConfigPopDatacenterRequest,
2937
+ output: ListOvhCloudConnectConfigPopDatacenterResponse,
2938
+ errors: [UnknownOvhError],
2939
+ protocol: OvhProtocol,
2940
+ retry: Retry.Retry,
2941
+ }));
2942
+
2943
+ export type ListOvhCloudConnectConfigPopDatacenterExtraError = OvhOpError;
2944
+ /** Get Datacenter Extra Configuration linked to of a OVHcloud Connect Service */
2945
+ export const listOvhCloudConnectConfigPopDatacenterExtra: API.OperationMethod<
2946
+ ListOvhCloudConnectConfigPopDatacenterExtraRequest,
2947
+ ListOvhCloudConnectConfigPopDatacenterExtraResponse,
2948
+ ListOvhCloudConnectConfigPopDatacenterExtraError,
2949
+ OvhOpContext
2950
+ > = /*@__PURE__*/ API.make(() => ({
2951
+ input: ListOvhCloudConnectConfigPopDatacenterExtraRequest,
2952
+ output: ListOvhCloudConnectConfigPopDatacenterExtraResponse,
2953
+ errors: [UnknownOvhError],
2954
+ protocol: OvhProtocol,
2955
+ retry: Retry.Retry,
2956
+ }));
2957
+
2958
+ export type ListOvhCloudConnectConfigPopStatisticsError = OvhOpError;
2959
+ /** Statistics related to a POP */
2960
+ export const listOvhCloudConnectConfigPopStatistics: API.OperationMethod<
2961
+ ListOvhCloudConnectConfigPopStatisticsRequest,
2962
+ ListOvhCloudConnectConfigPopStatisticsResponse,
2963
+ ListOvhCloudConnectConfigPopStatisticsError,
2964
+ OvhOpContext
2965
+ > = /*@__PURE__*/ API.make(() => ({
2966
+ input: ListOvhCloudConnectConfigPopStatisticsRequest,
2967
+ output: ListOvhCloudConnectConfigPopStatisticsResponse,
2968
+ errors: [UnknownOvhError],
2969
+ protocol: OvhProtocol,
2970
+ retry: Retry.Retry,
2971
+ }));
2972
+
2973
+ export type ListOvhCloudConnectDatacenterError = OvhOpError;
2974
+ /** List available Datacenter */
2975
+ export const listOvhCloudConnectDatacenter: API.OperationMethod<
2976
+ ListOvhCloudConnectDatacenterRequest,
2977
+ ListOvhCloudConnectDatacenterResponse,
2978
+ ListOvhCloudConnectDatacenterError,
2979
+ OvhOpContext
2980
+ > = /*@__PURE__*/ API.make(() => ({
2981
+ input: ListOvhCloudConnectDatacenterRequest,
2982
+ output: ListOvhCloudConnectDatacenterResponse,
2983
+ errors: [UnknownOvhError],
2984
+ protocol: OvhProtocol,
2985
+ retry: Retry.Retry,
2986
+ }));
2987
+
2988
+ export type ListOvhCloudConnectDiagnosticError = OvhOpError;
2989
+ /** Get Diagnostics linked to a OVHcloud Connect Service */
2990
+ export const listOvhCloudConnectDiagnostic: API.OperationMethod<
2991
+ ListOvhCloudConnectDiagnosticRequest,
2992
+ ListOvhCloudConnectDiagnosticResponse,
2993
+ ListOvhCloudConnectDiagnosticError,
2994
+ OvhOpContext
2995
+ > = /*@__PURE__*/ API.make(() => ({
2996
+ input: ListOvhCloudConnectDiagnosticRequest,
2997
+ output: ListOvhCloudConnectDiagnosticResponse,
2998
+ errors: [UnknownOvhError],
2999
+ protocol: OvhProtocol,
3000
+ retry: Retry.Retry,
3001
+ }));
3002
+
3003
+ export type ListOvhCloudConnectIncidentError = OvhOpError;
3004
+ /** List incidents linked to the Service */
3005
+ export const listOvhCloudConnectIncident: API.OperationMethod<
3006
+ ListOvhCloudConnectIncidentRequest,
3007
+ ListOvhCloudConnectIncidentResponse,
3008
+ ListOvhCloudConnectIncidentError,
3009
+ OvhOpContext
3010
+ > = /*@__PURE__*/ API.make(() => ({
3011
+ input: ListOvhCloudConnectIncidentRequest,
3012
+ output: ListOvhCloudConnectIncidentResponse,
3013
+ errors: [UnknownOvhError],
3014
+ protocol: OvhProtocol,
3015
+ retry: Retry.Retry,
3016
+ }));
3017
+
3018
+ export type ListOvhCloudConnectInterfaceError = OvhOpError;
3019
+ /** List interfaces linked to the Service */
3020
+ export const listOvhCloudConnectInterface: API.OperationMethod<
3021
+ ListOvhCloudConnectInterfaceRequest,
3022
+ ListOvhCloudConnectInterfaceResponse,
3023
+ ListOvhCloudConnectInterfaceError,
3024
+ OvhOpContext
3025
+ > = /*@__PURE__*/ API.make(() => ({
3026
+ input: ListOvhCloudConnectInterfaceRequest,
3027
+ output: ListOvhCloudConnectInterfaceResponse,
3028
+ errors: [UnknownOvhError],
3029
+ protocol: OvhProtocol,
3030
+ retry: Retry.Retry,
3031
+ }));
3032
+
3033
+ export type ListOvhCloudConnectInterfaceStatisticsError = OvhOpError;
3034
+ /** Statistics for an OCC interface for a given type */
3035
+ export const listOvhCloudConnectInterfaceStatistics: API.OperationMethod<
3036
+ ListOvhCloudConnectInterfaceStatisticsRequest,
3037
+ ListOvhCloudConnectInterfaceStatisticsResponse,
3038
+ ListOvhCloudConnectInterfaceStatisticsError,
3039
+ OvhOpContext
3040
+ > = /*@__PURE__*/ API.make(() => ({
3041
+ input: ListOvhCloudConnectInterfaceStatisticsRequest,
3042
+ output: ListOvhCloudConnectInterfaceStatisticsResponse,
3043
+ errors: [UnknownOvhError],
3044
+ protocol: OvhProtocol,
3045
+ retry: Retry.Retry,
3046
+ }));
3047
+
3048
+ export type ListOvhCloudConnectLogKindError = OvhOpError;
3049
+ /** List available log kinds */
3050
+ export const listOvhCloudConnectLogKind: API.OperationMethod<
3051
+ ListOvhCloudConnectLogKindRequest,
3052
+ ListOvhCloudConnectLogKindResponse,
3053
+ ListOvhCloudConnectLogKindError,
3054
+ OvhOpContext
3055
+ > = /*@__PURE__*/ API.make(() => ({
3056
+ input: ListOvhCloudConnectLogKindRequest,
3057
+ output: ListOvhCloudConnectLogKindResponse,
3058
+ errors: [UnknownOvhError],
3059
+ protocol: OvhProtocol,
3060
+ retry: Retry.Retry,
3061
+ }));
3062
+
3063
+ export type ListOvhCloudConnectLogSubscriptionError = OvhOpError;
3064
+ /** List subscription IDs for a cluster */
3065
+ export const listOvhCloudConnectLogSubscription: API.OperationMethod<
3066
+ ListOvhCloudConnectLogSubscriptionRequest,
3067
+ ListOvhCloudConnectLogSubscriptionResponse,
3068
+ ListOvhCloudConnectLogSubscriptionError,
3069
+ OvhOpContext
3070
+ > = /*@__PURE__*/ API.make(() => ({
3071
+ input: ListOvhCloudConnectLogSubscriptionRequest,
3072
+ output: ListOvhCloudConnectLogSubscriptionResponse,
3073
+ errors: [UnknownOvhError],
3074
+ protocol: OvhProtocol,
3075
+ retry: Retry.Retry,
3076
+ }));
3077
+
3078
+ export type ListOvhCloudConnectMonitoringError = OvhOpError;
3079
+ /** List monitoring alerts */
3080
+ export const listOvhCloudConnectMonitoring: API.OperationMethod<
3081
+ ListOvhCloudConnectMonitoringRequest,
3082
+ ListOvhCloudConnectMonitoringResponse,
3083
+ ListOvhCloudConnectMonitoringError,
3084
+ OvhOpContext
3085
+ > = /*@__PURE__*/ API.make(() => ({
3086
+ input: ListOvhCloudConnectMonitoringRequest,
3087
+ output: ListOvhCloudConnectMonitoringResponse,
3088
+ errors: [UnknownOvhError],
3089
+ protocol: OvhProtocol,
3090
+ retry: Retry.Retry,
3091
+ }));
3092
+
3093
+ export type ListOvhCloudConnectServiceKeyError = OvhOpError;
3094
+ /** Get Keys linked to a OVHcloud Connect Service */
3095
+ export const listOvhCloudConnectServiceKey: API.OperationMethod<
3096
+ ListOvhCloudConnectServiceKeyRequest,
3097
+ ListOvhCloudConnectServiceKeyResponse,
3098
+ ListOvhCloudConnectServiceKeyError,
3099
+ OvhOpContext
3100
+ > = /*@__PURE__*/ API.make(() => ({
3101
+ input: ListOvhCloudConnectServiceKeyRequest,
3102
+ output: ListOvhCloudConnectServiceKeyResponse,
3103
+ errors: [UnknownOvhError],
3104
+ protocol: OvhProtocol,
3105
+ retry: Retry.Retry,
3106
+ }));
3107
+
3108
+ export type ListOvhCloudConnectTaskError = OvhOpError;
3109
+ /** Get Task linked to a OVHcloud Connect Service */
3110
+ export const listOvhCloudConnectTask: API.OperationMethod<
3111
+ ListOvhCloudConnectTaskRequest,
3112
+ ListOvhCloudConnectTaskResponse,
3113
+ ListOvhCloudConnectTaskError,
3114
+ OvhOpContext
3115
+ > = /*@__PURE__*/ API.make(() => ({
3116
+ input: ListOvhCloudConnectTaskRequest,
3117
+ output: ListOvhCloudConnectTaskResponse,
3118
+ errors: [UnknownOvhError],
3119
+ protocol: OvhProtocol,
3120
+ retry: Retry.Retry,
3121
+ }));
3122
+
3123
+ export type LockOvhCloudConnectInterfaceError = OvhOpError;
3124
+ /** Lock the port */
3125
+ export const lockOvhCloudConnectInterface: API.OperationMethod<
3126
+ LockOvhCloudConnectInterfaceRequest,
3127
+ OvhcloudconnectTask,
3128
+ LockOvhCloudConnectInterfaceError,
3129
+ OvhOpContext
3130
+ > = /*@__PURE__*/ API.make(() => ({
3131
+ input: LockOvhCloudConnectInterfaceRequest,
3132
+ output: OvhcloudconnectTask,
3133
+ errors: [UnknownOvhError],
3134
+ protocol: OvhProtocol,
3135
+ retry: Retry.Retry,
3136
+ }));
3137
+
3138
+ export type PutOvhCloudConnectError = OvhOpError;
3139
+ /** Modify service */
3140
+ export const putOvhCloudConnect: API.OperationMethod<
3141
+ PutOvhCloudConnectRequest,
3142
+ PutOvhCloudConnectResponse,
3143
+ PutOvhCloudConnectError,
3144
+ OvhOpContext
3145
+ > = /*@__PURE__*/ API.make(() => ({
3146
+ input: PutOvhCloudConnectRequest,
3147
+ output: PutOvhCloudConnectResponse,
3148
+ errors: [UnknownOvhError],
3149
+ protocol: OvhProtocol,
3150
+ retry: Retry.Retry,
3151
+ }));
3152
+
3153
+ export type PutOvhCloudConnectServiceInfosError = OvhOpError;
3154
+ /** Update service information */
3155
+ export const putOvhCloudConnectServiceInfos: API.OperationMethod<
3156
+ PutOvhCloudConnectServiceInfosRequest,
3157
+ PutOvhCloudConnectServiceInfosResponse,
3158
+ PutOvhCloudConnectServiceInfosError,
3159
+ OvhOpContext
3160
+ > = /*@__PURE__*/ API.make(() => ({
3161
+ input: PutOvhCloudConnectServiceInfosRequest,
3162
+ output: PutOvhCloudConnectServiceInfosResponse,
3163
+ errors: [UnknownOvhError],
3164
+ protocol: OvhProtocol,
3165
+ retry: Retry.Retry,
3166
+ }));
3167
+
3168
+ export type RegenerateOvhCloudConnectServiceKeyError = OvhOpError;
3169
+ /** Regenerate Service Key linked to a OVHcloud Connect Service */
3170
+ export const regenerateOvhCloudConnectServiceKey: API.OperationMethod<
3171
+ RegenerateOvhCloudConnectServiceKeyRequest,
3172
+ OvhcloudconnectKey,
3173
+ RegenerateOvhCloudConnectServiceKeyError,
3174
+ OvhOpContext
3175
+ > = /*@__PURE__*/ API.make(() => ({
3176
+ input: RegenerateOvhCloudConnectServiceKeyRequest,
3177
+ output: OvhcloudconnectKey,
3178
+ errors: [UnknownOvhError],
3179
+ protocol: OvhProtocol,
3180
+ retry: Retry.Retry,
3181
+ }));
3182
+
3183
+ export type SendOvhCloudConnectServiceKeyError = OvhOpError;
3184
+ /** Send key value to customer */
3185
+ export const sendOvhCloudConnectServiceKey: API.OperationMethod<
3186
+ SendOvhCloudConnectServiceKeyRequest,
3187
+ OvhcloudconnectSendKeyAnswer,
3188
+ SendOvhCloudConnectServiceKeyError,
3189
+ OvhOpContext
3190
+ > = /*@__PURE__*/ API.make(() => ({
3191
+ input: SendOvhCloudConnectServiceKeyRequest,
3192
+ output: OvhcloudconnectSendKeyAnswer,
3193
+ errors: [UnknownOvhError],
3194
+ protocol: OvhProtocol,
3195
+ retry: Retry.Retry,
3196
+ }));
3197
+
3198
+ export type TerminateOvhCloudConnectError = OvhOpError;
3199
+ /** Ask for the termination of your service */
3200
+ export const terminateOvhCloudConnect: API.OperationMethod<
3201
+ TerminateOvhCloudConnectRequest,
3202
+ TerminateOvhCloudConnectResponse,
3203
+ TerminateOvhCloudConnectError,
3204
+ OvhOpContext
3205
+ > = /*@__PURE__*/ API.make(() => ({
3206
+ input: TerminateOvhCloudConnectRequest,
3207
+ output: TerminateOvhCloudConnectResponse,
3208
+ errors: [UnknownOvhError],
3209
+ protocol: OvhProtocol,
3210
+ retry: Retry.Retry,
3211
+ }));
3212
+
3213
+ export type UnlockOvhCloudConnectInterfaceError = OvhOpError;
3214
+ /** Unlock the port */
3215
+ export const unlockOvhCloudConnectInterface: API.OperationMethod<
3216
+ UnlockOvhCloudConnectInterfaceRequest,
3217
+ OvhcloudconnectTask,
3218
+ UnlockOvhCloudConnectInterfaceError,
3219
+ OvhOpContext
3220
+ > = /*@__PURE__*/ API.make(() => ({
3221
+ input: UnlockOvhCloudConnectInterfaceRequest,
3222
+ output: OvhcloudconnectTask,
3223
+ errors: [UnknownOvhError],
3224
+ protocol: OvhProtocol,
3225
+ retry: Retry.Retry,
3226
+ }));