Class: Ovh::Api::Api::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/ovh-api/api/order.rb

Defined Under Namespace

Classes: Cart, Cdn, Cloud, Dedicated, DedicatedCloud, Domain, Freefax, License, OverTheBox, Sms, Telephony, Upgrade, VeeamCloudConnect, Vps, Xdsl

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Order

Returns a new instance of Order.



6
7
8
# File 'lib/ovh-api/api/order.rb', line 6

def initialize(connection)
  @connection = connection
end

Instance Method Details

#cart_service_option_backup_services_getObject



10
11
12
13
14
15
16
17
# File 'lib/ovh-api/api/order.rb', line 10

def cart_service_option_backup_services_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/backupServices',
    type: nil,
    auth: []
  )
end

#cart_service_option_backup_services_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


19
20
21
22
23
24
25
26
27
28
29
# File 'lib/ovh-api/api/order.rb', line 19

def cart_service_option_backup_services_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/backupServices/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_baremetal_servers_getObject



31
32
33
34
35
36
37
38
# File 'lib/ovh-api/api/order.rb', line 31

def cart_service_option_baremetal_servers_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/baremetalServers',
    type: nil,
    auth: []
  )
end

#cart_service_option_baremetal_servers_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


40
41
42
43
44
45
46
47
48
49
50
# File 'lib/ovh-api/api/order.rb', line 40

def cart_service_option_baremetal_servers_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/baremetalServers/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_baremetal_servers_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/ovh-api/api/order.rb', line 52

def cart_service_option_baremetal_servers_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/baremetalServers/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_cloud_getObject



66
67
68
69
70
71
72
73
# File 'lib/ovh-api/api/order.rb', line 66

def cart_service_option_cloud_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/cloud',
    type: nil,
    auth: []
  )
end

#cart_service_option_cloud_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


75
76
77
78
79
80
81
82
83
84
85
# File 'lib/ovh-api/api/order.rb', line 75

def cart_service_option_cloud_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/cloud/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_cloud_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/ovh-api/api/order.rb', line 87

def cart_service_option_cloud_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/cloud/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_dedicated_getObject



101
102
103
104
105
106
107
108
# File 'lib/ovh-api/api/order.rb', line 101

def cart_service_option_dedicated_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/dedicated',
    type: nil,
    auth: []
  )
end

#cart_service_option_dedicated_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


110
111
112
113
114
115
116
117
118
119
120
# File 'lib/ovh-api/api/order.rb', line 110

def cart_service_option_dedicated_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/dedicated/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_dedicated_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/ovh-api/api/order.rb', line 122

def cart_service_option_dedicated_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/dedicated/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_dns_getObject



136
137
138
139
140
141
142
143
# File 'lib/ovh-api/api/order.rb', line 136

def cart_service_option_dns_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/dns',
    type: nil,
    auth: []
  )
end

#cart_service_option_dns_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


145
146
147
148
149
150
151
152
153
154
155
# File 'lib/ovh-api/api/order.rb', line 145

def cart_service_option_dns_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/dns/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_dns_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/ovh-api/api/order.rb', line 157

def cart_service_option_dns_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/dns/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_domain_get(whois_owner: nil) ⇒ Object



171
172
173
174
175
176
177
178
179
# File 'lib/ovh-api/api/order.rb', line 171

def cart_service_option_domain_get(whois_owner: nil)
  @connection.call(
    :GET,
    '/order/cartServiceOption/domain',
    type: nil,
    auth: [],
    query: { 'whoisOwner' => whois_owner }
  )
end

#cart_service_option_domain_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


181
182
183
184
185
186
187
188
189
190
191
# File 'lib/ovh-api/api/order.rb', line 181

def cart_service_option_domain_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/domain/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_domain_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/ovh-api/api/order.rb', line 193

def cart_service_option_domain_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/domain/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_emailpro_getObject



207
208
209
210
211
212
213
214
# File 'lib/ovh-api/api/order.rb', line 207

def cart_service_option_emailpro_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/emailpro',
    type: nil,
    auth: []
  )
end

#cart_service_option_emailpro_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


216
217
218
219
220
221
222
223
224
225
226
# File 'lib/ovh-api/api/order.rb', line 216

def cart_service_option_emailpro_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/emailpro/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_emailpro_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/ovh-api/api/order.rb', line 228

def cart_service_option_emailpro_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/emailpro/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_ip_loadbalancing_getObject



242
243
244
245
246
247
248
249
# File 'lib/ovh-api/api/order.rb', line 242

def cart_service_option_ip_loadbalancing_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/ipLoadbalancing',
    type: nil,
    auth: []
  )
end

#cart_service_option_ip_loadbalancing_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


251
252
253
254
255
256
257
258
259
260
261
# File 'lib/ovh-api/api/order.rb', line 251

def cart_service_option_ip_loadbalancing_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/ipLoadbalancing/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_ip_loadbalancing_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


263
264
265
266
267
268
269
270
271
272
273
274
275
# File 'lib/ovh-api/api/order.rb', line 263

def cart_service_option_ip_loadbalancing_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/ipLoadbalancing/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_license_hycu_getObject



277
278
279
280
281
282
283
284
# File 'lib/ovh-api/api/order.rb', line 277

def cart_service_option_license_hycu_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/licenseHycu',
    type: nil,
    auth: []
  )
end

#cart_service_option_license_hycu_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


286
287
288
289
290
291
292
293
294
295
296
# File 'lib/ovh-api/api/order.rb', line 286

def cart_service_option_license_hycu_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/licenseHycu/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_license_hycu_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


298
299
300
301
302
303
304
305
306
307
308
309
310
# File 'lib/ovh-api/api/order.rb', line 298

def cart_service_option_license_hycu_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/licenseHycu/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_logs_getObject



312
313
314
315
316
317
318
319
# File 'lib/ovh-api/api/order.rb', line 312

def cart_service_option_logs_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/logs',
    type: nil,
    auth: []
  )
end

#cart_service_option_logs_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


321
322
323
324
325
326
327
328
329
330
331
# File 'lib/ovh-api/api/order.rb', line 321

def cart_service_option_logs_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/logs/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_logs_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


333
334
335
336
337
338
339
340
341
342
343
344
345
# File 'lib/ovh-api/api/order.rb', line 333

def cart_service_option_logs_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/logs/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_microsoft_exchange_getObject



347
348
349
350
351
352
353
354
# File 'lib/ovh-api/api/order.rb', line 347

def cart_service_option_microsoft_exchange_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/microsoftExchange',
    type: nil,
    auth: []
  )
end

#cart_service_option_microsoft_exchange_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


356
357
358
359
360
361
362
363
364
365
366
# File 'lib/ovh-api/api/order.rb', line 356

def cart_service_option_microsoft_exchange_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/microsoftExchange/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_microsoft_exchange_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


368
369
370
371
372
373
374
375
376
377
378
379
380
# File 'lib/ovh-api/api/order.rb', line 368

def cart_service_option_microsoft_exchange_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/microsoftExchange/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_microsoft_getObject



382
383
384
385
386
387
388
389
# File 'lib/ovh-api/api/order.rb', line 382

def cart_service_option_microsoft_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/microsoft',
    type: nil,
    auth: []
  )
end

#cart_service_option_microsoft_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


391
392
393
394
395
396
397
398
399
400
401
# File 'lib/ovh-api/api/order.rb', line 391

def cart_service_option_microsoft_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/microsoft/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_microsoft_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


403
404
405
406
407
408
409
410
411
412
413
414
415
# File 'lib/ovh-api/api/order.rb', line 403

def cart_service_option_microsoft_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/microsoft/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_nutanix_getObject



417
418
419
420
421
422
423
424
# File 'lib/ovh-api/api/order.rb', line 417

def cart_service_option_nutanix_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/nutanix',
    type: nil,
    auth: []
  )
end

#cart_service_option_nutanix_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


426
427
428
429
430
431
432
433
434
435
436
# File 'lib/ovh-api/api/order.rb', line 426

def cart_service_option_nutanix_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/nutanix/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_nutanix_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


438
439
440
441
442
443
444
445
446
447
448
449
450
# File 'lib/ovh-api/api/order.rb', line 438

def cart_service_option_nutanix_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/nutanix/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_office365_prepaid_getObject



452
453
454
455
456
457
458
459
# File 'lib/ovh-api/api/order.rb', line 452

def cart_service_option_office365_prepaid_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/office365Prepaid',
    type: nil,
    auth: []
  )
end

#cart_service_option_office365_prepaid_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


461
462
463
464
465
466
467
468
469
470
471
# File 'lib/ovh-api/api/order.rb', line 461

def cart_service_option_office365_prepaid_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/office365Prepaid/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_office365_prepaid_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


473
474
475
476
477
478
479
480
481
482
483
484
485
# File 'lib/ovh-api/api/order.rb', line 473

def cart_service_option_office365_prepaid_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/office365Prepaid/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_office_prepaid_getObject



487
488
489
490
491
492
493
494
# File 'lib/ovh-api/api/order.rb', line 487

def cart_service_option_office_prepaid_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/officePrepaid',
    type: nil,
    auth: []
  )
end

#cart_service_option_office_prepaid_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


496
497
498
499
500
501
502
503
504
505
506
# File 'lib/ovh-api/api/order.rb', line 496

def cart_service_option_office_prepaid_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/officePrepaid/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_office_prepaid_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


508
509
510
511
512
513
514
515
516
517
518
519
520
# File 'lib/ovh-api/api/order.rb', line 508

def cart_service_option_office_prepaid_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/officePrepaid/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_private_cloud_enterprise_getObject



522
523
524
525
526
527
528
529
# File 'lib/ovh-api/api/order.rb', line 522

def cart_service_option_private_cloud_enterprise_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloudEnterprise',
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_enterprise_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


531
532
533
534
535
536
537
538
539
540
541
# File 'lib/ovh-api/api/order.rb', line 531

def cart_service_option_private_cloud_enterprise_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloudEnterprise/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_enterprise_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


543
544
545
546
547
548
549
550
551
552
553
554
555
# File 'lib/ovh-api/api/order.rb', line 543

def cart_service_option_private_cloud_enterprise_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/privateCloudEnterprise/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_private_cloud_getObject



557
558
559
560
561
562
563
564
# File 'lib/ovh-api/api/order.rb', line 557

def cart_service_option_private_cloud_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloud',
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_reseller_enterprise_getObject



566
567
568
569
570
571
572
573
# File 'lib/ovh-api/api/order.rb', line 566

def cart_service_option_private_cloud_reseller_enterprise_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloudResellerEnterprise',
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_reseller_enterprise_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


575
576
577
578
579
580
581
582
583
584
585
# File 'lib/ovh-api/api/order.rb', line 575

def cart_service_option_private_cloud_reseller_enterprise_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloudResellerEnterprise/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_reseller_enterprise_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


587
588
589
590
591
592
593
594
595
596
597
598
599
# File 'lib/ovh-api/api/order.rb', line 587

def cart_service_option_private_cloud_reseller_enterprise_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/privateCloudResellerEnterprise/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_private_cloud_reseller_getObject



601
602
603
604
605
606
607
608
# File 'lib/ovh-api/api/order.rb', line 601

def cart_service_option_private_cloud_reseller_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloudReseller',
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_reseller_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


610
611
612
613
614
615
616
617
618
619
620
# File 'lib/ovh-api/api/order.rb', line 610

def cart_service_option_private_cloud_reseller_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloudReseller/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_reseller_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


622
623
624
625
626
627
628
629
630
631
632
633
634
# File 'lib/ovh-api/api/order.rb', line 622

def cart_service_option_private_cloud_reseller_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/privateCloudReseller/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_private_cloud_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


636
637
638
639
640
641
642
643
644
645
646
# File 'lib/ovh-api/api/order.rb', line 636

def cart_service_option_private_cloud_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/privateCloud/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_private_cloud_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


648
649
650
651
652
653
654
655
656
657
658
659
660
# File 'lib/ovh-api/api/order.rb', line 648

def cart_service_option_private_cloud_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/privateCloud/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_sharepoint_getObject



662
663
664
665
666
667
668
669
# File 'lib/ovh-api/api/order.rb', line 662

def cart_service_option_sharepoint_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/sharepoint',
    type: nil,
    auth: []
  )
end

#cart_service_option_sharepoint_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


671
672
673
674
675
676
677
678
679
680
681
# File 'lib/ovh-api/api/order.rb', line 671

def cart_service_option_sharepoint_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/sharepoint/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_sharepoint_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


683
684
685
686
687
688
689
690
691
692
693
694
695
# File 'lib/ovh-api/api/order.rb', line 683

def cart_service_option_sharepoint_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/sharepoint/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_sms_getObject



697
698
699
700
701
702
703
704
# File 'lib/ovh-api/api/order.rb', line 697

def cart_service_option_sms_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/sms',
    type: nil,
    auth: []
  )
end

#cart_service_option_sms_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


706
707
708
709
710
711
712
713
714
715
716
# File 'lib/ovh-api/api/order.rb', line 706

def cart_service_option_sms_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/sms/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_sms_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


718
719
720
721
722
723
724
725
726
727
728
729
730
# File 'lib/ovh-api/api/order.rb', line 718

def cart_service_option_sms_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/sms/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_snc_network_services_getObject



732
733
734
735
736
737
738
739
# File 'lib/ovh-api/api/order.rb', line 732

def cart_service_option_snc_network_services_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/sncNetworkServices',
    type: nil,
    auth: []
  )
end

#cart_service_option_snc_network_services_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


741
742
743
744
745
746
747
748
749
750
751
# File 'lib/ovh-api/api/order.rb', line 741

def cart_service_option_snc_network_services_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/sncNetworkServices/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_snc_network_services_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


753
754
755
756
757
758
759
760
761
762
763
764
765
# File 'lib/ovh-api/api/order.rb', line 753

def cart_service_option_snc_network_services_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/sncNetworkServices/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_ssl_gateway_getObject



767
768
769
770
771
772
773
774
# File 'lib/ovh-api/api/order.rb', line 767

def cart_service_option_ssl_gateway_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/sslGateway',
    type: nil,
    auth: []
  )
end

#cart_service_option_ssl_gateway_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


776
777
778
779
780
781
782
783
784
785
786
# File 'lib/ovh-api/api/order.rb', line 776

def cart_service_option_ssl_gateway_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/sslGateway/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_ssl_gateway_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'lib/ovh-api/api/order.rb', line 788

def cart_service_option_ssl_gateway_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/sslGateway/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_vcda_migration_getObject



802
803
804
805
806
807
808
809
# File 'lib/ovh-api/api/order.rb', line 802

def cart_service_option_vcda_migration_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/vcdaMigration',
    type: nil,
    auth: []
  )
end

#cart_service_option_vcda_migration_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


811
812
813
814
815
816
817
818
819
820
821
# File 'lib/ovh-api/api/order.rb', line 811

def cart_service_option_vcda_migration_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/vcdaMigration/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_vdi_getObject



823
824
825
826
827
828
829
830
# File 'lib/ovh-api/api/order.rb', line 823

def cart_service_option_vdi_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/vdi',
    type: nil,
    auth: []
  )
end

#cart_service_option_vdi_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


832
833
834
835
836
837
838
839
840
841
842
# File 'lib/ovh-api/api/order.rb', line 832

def cart_service_option_vdi_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/vdi/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_vdi_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


844
845
846
847
848
849
850
851
852
853
854
855
856
# File 'lib/ovh-api/api/order.rb', line 844

def cart_service_option_vdi_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/vdi/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_vmware_cloud_director_backup_getObject



858
859
860
861
862
863
864
865
# File 'lib/ovh-api/api/order.rb', line 858

def cart_service_option_vmware_cloud_director_backup_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/vmwareCloudDirectorBackup',
    type: nil,
    auth: []
  )
end

#cart_service_option_vmware_cloud_director_backup_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


867
868
869
870
871
872
873
874
875
876
877
# File 'lib/ovh-api/api/order.rb', line 867

def cart_service_option_vmware_cloud_director_backup_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/vmwareCloudDirectorBackup/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_vmware_cloud_director_getObject



879
880
881
882
883
884
885
886
# File 'lib/ovh-api/api/order.rb', line 879

def cart_service_option_vmware_cloud_director_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/vmwareCloudDirector',
    type: nil,
    auth: []
  )
end

#cart_service_option_vmware_cloud_director_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


888
889
890
891
892
893
894
895
896
897
898
# File 'lib/ovh-api/api/order.rb', line 888

def cart_service_option_vmware_cloud_director_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/vmwareCloudDirector/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_vmware_cloud_director_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


900
901
902
903
904
905
906
907
908
909
910
911
912
# File 'lib/ovh-api/api/order.rb', line 900

def cart_service_option_vmware_cloud_director_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/vmwareCloudDirector/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_vps_getObject



914
915
916
917
918
919
920
921
# File 'lib/ovh-api/api/order.rb', line 914

def cart_service_option_vps_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/vps',
    type: nil,
    auth: []
  )
end

#cart_service_option_vps_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


923
924
925
926
927
928
929
930
931
932
933
# File 'lib/ovh-api/api/order.rb', line 923

def cart_service_option_vps_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/vps/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_vps_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


935
936
937
938
939
940
941
942
943
944
945
946
947
# File 'lib/ovh-api/api/order.rb', line 935

def cart_service_option_vps_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/vps/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_vrack_getObject



949
950
951
952
953
954
955
956
# File 'lib/ovh-api/api/order.rb', line 949

def cart_service_option_vrack_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/vrack',
    type: nil,
    auth: []
  )
end

#cart_service_option_vrack_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


958
959
960
961
962
963
964
965
966
967
968
# File 'lib/ovh-api/api/order.rb', line 958

def cart_service_option_vrack_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/vrack/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_vrack_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


970
971
972
973
974
975
976
977
978
979
980
981
982
# File 'lib/ovh-api/api/order.rb', line 970

def cart_service_option_vrack_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/vrack/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#cart_service_option_web_hosting_getObject



984
985
986
987
988
989
990
991
# File 'lib/ovh-api/api/order.rb', line 984

def cart_service_option_web_hosting_get
  @connection.call(
    :GET,
    '/order/cartServiceOption/webHosting',
    type: nil,
    auth: []
  )
end

#cart_service_option_web_hosting_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


993
994
995
996
997
998
999
1000
1001
1002
1003
# File 'lib/ovh-api/api/order.rb', line 993

def cart_service_option_web_hosting_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/cartServiceOption/webHosting/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#cart_service_option_web_hosting_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
# File 'lib/ovh-api/api/order.rb', line 1005

def cart_service_option_web_hosting_service_name_post(service_name:, order_cart_service_option_baremetal_servers_service_name_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_cart_service_option_baremetal_servers_service_name_post_request is required' if order_cart_service_option_baremetal_servers_service_name_post_request.nil?

  @connection.call(
    :POST,
    '/order/cartServiceOption/webHosting/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_cart_service_option_baremetal_servers_service_name_post_request
  )
end

#catalog_formatted_bring_your_own_ip_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
# File 'lib/ovh-api/api/order.rb', line 1019

def catalog_formatted_bring_your_own_ip_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/bringYourOwnIp',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_cloud_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'lib/ovh-api/api/order.rb', line 1031

def catalog_formatted_cloud_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/cloud',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_dedicated_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
# File 'lib/ovh-api/api/order.rb', line 1043

def catalog_formatted_dedicated_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/dedicated',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_discover_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
# File 'lib/ovh-api/api/order.rb', line 1055

def catalog_formatted_discover_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/discover',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_getObject



1067
1068
1069
1070
1071
1072
1073
1074
# File 'lib/ovh-api/api/order.rb', line 1067

def catalog_formatted_get
  @connection.call(
    :GET,
    '/order/catalog/formatted',
    type: nil,
    auth: []
  )
end

#catalog_formatted_ip_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/ovh-api/api/order.rb', line 1076

def catalog_formatted_ip_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/ip',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_license_hycu_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
# File 'lib/ovh-api/api/order.rb', line 1088

def catalog_formatted_license_hycu_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/licenseHycu',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_license_plesk_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
# File 'lib/ovh-api/api/order.rb', line 1100

def catalog_formatted_license_plesk_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/licensePlesk',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_license_sql_server_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/ovh-api/api/order.rb', line 1112

def catalog_formatted_license_sql_server_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/licenseSqlServer',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_license_windows_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'lib/ovh-api/api/order.rb', line 1124

def catalog_formatted_license_windows_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/licenseWindows',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_licensec_panel_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
# File 'lib/ovh-api/api/order.rb', line 1136

def catalog_formatted_licensec_panel_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/licensecPanel',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_logs_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/ovh-api/api/order.rb', line 1148

def catalog_formatted_logs_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/logs',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_private_cloud_cdi_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
# File 'lib/ovh-api/api/order.rb', line 1160

def catalog_formatted_private_cloud_cdi_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/privateCloudCDI',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_private_cloud_dc_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
# File 'lib/ovh-api/api/order.rb', line 1172

def catalog_formatted_private_cloud_dc_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/privateCloudDC',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_private_cloud_enterprise_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
# File 'lib/ovh-api/api/order.rb', line 1184

def catalog_formatted_private_cloud_enterprise_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/privateCloudEnterprise',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_private_cloud_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'lib/ovh-api/api/order.rb', line 1196

def catalog_formatted_private_cloud_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/privateCloud',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_private_cloud_reseller_enterprise_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
# File 'lib/ovh-api/api/order.rb', line 1208

def catalog_formatted_private_cloud_reseller_enterprise_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/privateCloudResellerEnterprise',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_private_cloud_reseller_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
# File 'lib/ovh-api/api/order.rb', line 1220

def catalog_formatted_private_cloud_reseller_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/privateCloudReseller',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_private_cloud_sddc_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
# File 'lib/ovh-api/api/order.rb', line 1232

def catalog_formatted_private_cloud_sddc_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/privateCloudSDDC',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_reseller_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
# File 'lib/ovh-api/api/order.rb', line 1244

def catalog_formatted_reseller_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/reseller',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_formatted_vps_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
# File 'lib/ovh-api/api/order.rb', line 1256

def catalog_formatted_vps_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/formatted/vps',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_private_domain_reseller_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
# File 'lib/ovh-api/api/order.rb', line 1268

def catalog_private_domain_reseller_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/private/domainReseller',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_private_private_cloud_get(catalog_name:, ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
# File 'lib/ovh-api/api/order.rb', line 1280

def catalog_private_private_cloud_get(catalog_name:, ovh_subsidiary:)
  raise ArgumentError, 'catalog_name is required' if catalog_name.nil?
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/private/privateCloud',
    type: nil,
    auth: [],
    query: { 'catalogName' => catalog_name, 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_advisory_services_hosting_web_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
# File 'lib/ovh-api/api/order.rb', line 1293

def catalog_public_advisory_services_hosting_web_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/advisoryServicesHostingWeb',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_advisory_services_public_cloud_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
# File 'lib/ovh-api/api/order.rb', line 1305

def catalog_public_advisory_services_public_cloud_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/advisoryServicesPublicCloud',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_advisory_services_telecom_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
# File 'lib/ovh-api/api/order.rb', line 1317

def catalog_public_advisory_services_telecom_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/advisoryServicesTelecom',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_backup_services_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
# File 'lib/ovh-api/api/order.rb', line 1329

def catalog_public_backup_services_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/backupServices',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_baremetal_servers_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
# File 'lib/ovh-api/api/order.rb', line 1341

def catalog_public_baremetal_servers_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/baremetalServers',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_cephaas_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
# File 'lib/ovh-api/api/order.rb', line 1353

def catalog_public_cephaas_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/cephaas',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_cloud_db_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
# File 'lib/ovh-api/api/order.rb', line 1365

def catalog_public_cloud_db_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/cloudDB',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_cloud_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
# File 'lib/ovh-api/api/order.rb', line 1377

def catalog_public_cloud_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/cloud',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_dns_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
# File 'lib/ovh-api/api/order.rb', line 1389

def catalog_public_dns_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/dns',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_domain_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
# File 'lib/ovh-api/api/order.rb', line 1401

def catalog_public_domain_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/domain',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_domain_info_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
# File 'lib/ovh-api/api/order.rb', line 1413

def catalog_public_domain_info_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/domain/info',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_domain_plan_get(ovh_subsidiary:, x_pagination_cursor: nil, x_pagination_size: nil, plan_code: nil) ⇒ Object

Raises:

  • (ArgumentError)


1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
# File 'lib/ovh-api/api/order.rb', line 1425

def catalog_public_domain_plan_get(ovh_subsidiary:, x_pagination_cursor: nil, x_pagination_size: nil, plan_code: nil)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/domain/plan',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary, 'planCode' => plan_code },
    headers: { 'X-Pagination-Cursor' => x_pagination_cursor, 'X-Pagination-Size' => x_pagination_size }
  )
end

#catalog_public_eco_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
# File 'lib/ovh-api/api/order.rb', line 1438

def catalog_public_eco_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/eco',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_email_domain_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
# File 'lib/ovh-api/api/order.rb', line 1450

def catalog_public_email_domain_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/emailDomain',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_emailpro_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
# File 'lib/ovh-api/api/order.rb', line 1462

def catalog_public_emailpro_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/emailpro',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_exchange_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
# File 'lib/ovh-api/api/order.rb', line 1474

def catalog_public_exchange_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/exchange',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_ip_loadbalancing_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
# File 'lib/ovh-api/api/order.rb', line 1486

def catalog_public_ip_loadbalancing_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/ipLoadbalancing',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_license_hycu_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
# File 'lib/ovh-api/api/order.rb', line 1498

def catalog_public_license_hycu_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/licenseHycu',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_license_plesk_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
# File 'lib/ovh-api/api/order.rb', line 1510

def catalog_public_license_plesk_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/licensePlesk',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_license_sql_server_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
# File 'lib/ovh-api/api/order.rb', line 1522

def catalog_public_license_sql_server_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/licenseSqlServer',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_license_windows_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
# File 'lib/ovh-api/api/order.rb', line 1534

def catalog_public_license_windows_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/licenseWindows',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_licensec_panel_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
# File 'lib/ovh-api/api/order.rb', line 1546

def catalog_public_licensec_panel_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/licensecPanel',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_logs_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
# File 'lib/ovh-api/api/order.rb', line 1558

def catalog_public_logs_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/logs',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_managed_cms_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
# File 'lib/ovh-api/api/order.rb', line 1570

def catalog_public_managed_cms_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/managedCMS',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_nasha_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
# File 'lib/ovh-api/api/order.rb', line 1582

def catalog_public_nasha_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/nasha',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_netapp_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
# File 'lib/ovh-api/api/order.rb', line 1594

def catalog_public_netapp_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/netapp',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_nutanix_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
# File 'lib/ovh-api/api/order.rb', line 1606

def catalog_public_nutanix_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/nutanix',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_office365_prepaid_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
# File 'lib/ovh-api/api/order.rb', line 1618

def catalog_public_office365_prepaid_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/office365Prepaid',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_office_prepaid_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
# File 'lib/ovh-api/api/order.rb', line 1630

def catalog_public_office_prepaid_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/officePrepaid',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_okms_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
# File 'lib/ovh-api/api/order.rb', line 1642

def catalog_public_okms_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/okms',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_ovh_cloud_connect_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
# File 'lib/ovh-api/api/order.rb', line 1654

def catalog_public_ovh_cloud_connect_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/ovhCloudConnect',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_packs_professional_services_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
# File 'lib/ovh-api/api/order.rb', line 1666

def catalog_public_packs_professional_services_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/packsProfessionalServices',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_private_cloud_enterprise_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
# File 'lib/ovh-api/api/order.rb', line 1678

def catalog_public_private_cloud_enterprise_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/privateCloudEnterprise',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_private_cloud_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
# File 'lib/ovh-api/api/order.rb', line 1690

def catalog_public_private_cloud_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/privateCloud',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_private_sql_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'lib/ovh-api/api/order.rb', line 1702

def catalog_public_private_sql_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/privateSQL',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_ssl_gateway_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
# File 'lib/ovh-api/api/order.rb', line 1714

def catalog_public_ssl_gateway_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/sslGateway',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_telephony_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
# File 'lib/ovh-api/api/order.rb', line 1726

def catalog_public_telephony_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/telephony',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_vcda_migration_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
# File 'lib/ovh-api/api/order.rb', line 1738

def catalog_public_vcda_migration_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/vcdaMigration',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_videocenter_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
# File 'lib/ovh-api/api/order.rb', line 1750

def catalog_public_videocenter_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/videocenter',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_vmware_cloud_director_backup_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
# File 'lib/ovh-api/api/order.rb', line 1762

def catalog_public_vmware_cloud_director_backup_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/vmwareCloudDirectorBackup',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_vmware_cloud_director_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
# File 'lib/ovh-api/api/order.rb', line 1774

def catalog_public_vmware_cloud_director_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/vmwareCloudDirector',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_vps_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
# File 'lib/ovh-api/api/order.rb', line 1786

def catalog_public_vps_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/vps',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_web_hosting_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
# File 'lib/ovh-api/api/order.rb', line 1798

def catalog_public_web_hosting_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/webHosting',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_web_paa_s_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
# File 'lib/ovh-api/api/order.rb', line 1810

def catalog_public_web_paa_s_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/webPaaS',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#catalog_public_zimbra_get(ovh_subsidiary:) ⇒ Object

Raises:

  • (ArgumentError)


1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
# File 'lib/ovh-api/api/order.rb', line 1822

def catalog_public_zimbra_get(ovh_subsidiary:)
  raise ArgumentError, 'ovh_subsidiary is required' if ovh_subsidiary.nil?

  @connection.call(
    :GET,
    '/order/catalog/public/zimbra',
    type: nil,
    auth: [],
    query: { 'ovhSubsidiary' => ovh_subsidiary }
  )
end

#email_domain_domain_get(domain:) ⇒ Object

Raises:

  • (ArgumentError)


1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
# File 'lib/ovh-api/api/order.rb', line 1834

def email_domain_domain_get(domain:)
  raise ArgumentError, 'domain is required' if domain.nil?

  @connection.call(
    :GET,
    '/order/email/domain/{domain}'
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s)),
    type: nil,
    auth: []
  )
end

#email_domain_domain_upgrade_duration_get(domain:, duration:, offer:) ⇒ Object

Raises:

  • (ArgumentError)


1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
# File 'lib/ovh-api/api/order.rb', line 1846

def email_domain_domain_upgrade_duration_get(domain:, duration:, offer:)
  raise ArgumentError, 'domain is required' if domain.nil?
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'offer is required' if offer.nil?

  @connection.call(
    :GET,
    '/order/email/domain/{domain}/upgrade/{duration}'
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s))
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s)),
    type: nil,
    auth: [],
    query: { 'offer' => offer }
  )
end

#email_domain_domain_upgrade_duration_post(domain:, duration:, body:) ⇒ Object

Raises:

  • (ArgumentError)


1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
# File 'lib/ovh-api/api/order.rb', line 1862

def email_domain_domain_upgrade_duration_post(domain:, duration:, body:)
  raise ArgumentError, 'domain is required' if domain.nil?
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'body is required' if body.nil?

  @connection.call(
    :POST,
    '/order/email/domain/{domain}/upgrade/{duration}'
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s))
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#email_domain_domain_upgrade_get(domain:, offer:) ⇒ Object

Raises:

  • (ArgumentError)


1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
# File 'lib/ovh-api/api/order.rb', line 1878

def email_domain_domain_upgrade_get(domain:, offer:)
  raise ArgumentError, 'domain is required' if domain.nil?
  raise ArgumentError, 'offer is required' if offer.nil?

  @connection.call(
    :GET,
    '/order/email/domain/{domain}/upgrade'
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s)),
    type: nil,
    auth: [],
    query: { 'offer' => offer }
  )
end

#email_domain_getObject



1892
1893
1894
1895
1896
1897
1898
1899
# File 'lib/ovh-api/api/order.rb', line 1892

def email_domain_get
  @connection.call(
    :GET,
    '/order/email/domain',
    type: nil,
    auth: []
  )
end

#email_domain_new_duration_get(domain:, duration:, offer:) ⇒ Object

Raises:

  • (ArgumentError)


1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
# File 'lib/ovh-api/api/order.rb', line 1901

def email_domain_new_duration_get(domain:, duration:, offer:)
  raise ArgumentError, 'domain is required' if domain.nil?
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'offer is required' if offer.nil?

  @connection.call(
    :GET,
    '/order/email/domain/new/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s)),
    type: nil,
    auth: [],
    query: { 'domain' => domain, 'offer' => offer }
  )
end

#email_domain_new_duration_post(duration:, order_email_domain_new_duration_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
# File 'lib/ovh-api/api/order.rb', line 1916

def email_domain_new_duration_post(duration:, order_email_domain_new_duration_post_request:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'order_email_domain_new_duration_post_request is required' if order_email_domain_new_duration_post_request.nil?

  @connection.call(
    :POST,
    '/order/email/domain/new/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s)),
    type: nil,
    auth: [],
    body: order_email_domain_new_duration_post_request
  )
end

#email_domain_new_get(domain:, offer:) ⇒ Object

Raises:

  • (ArgumentError)


1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
# File 'lib/ovh-api/api/order.rb', line 1930

def email_domain_new_get(domain:, offer:)
  raise ArgumentError, 'domain is required' if domain.nil?
  raise ArgumentError, 'offer is required' if offer.nil?

  @connection.call(
    :GET,
    '/order/email/domain/new',
    type: nil,
    auth: [],
    query: { 'domain' => domain, 'offer' => offer }
  )
end

#email_exchange_getObject



1943
1944
1945
1946
1947
1948
1949
1950
# File 'lib/ovh-api/api/order.rb', line 1943

def email_exchange_get
  @connection.call(
    :GET,
    '/order/email/exchange',
    type: nil,
    auth: []
  )
end

#email_exchange_organization_name_service_exchange_service_account_duration_get(duration:, exchange_service:, licence:, number:, organization_name:, storage_quota: nil) ⇒ Object

Raises:

  • (ArgumentError)


1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
# File 'lib/ovh-api/api/order.rb', line 1952

def (duration:, exchange_service:, licence:, number:, organization_name:, storage_quota: nil)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'licence is required' if licence.nil?
  raise ArgumentError, 'number is required' if number.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/account/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    query: { 'licence' => licence, 'number' => number, 'storageQuota' => storage_quota }
  )
end

#email_exchange_organization_name_service_exchange_service_account_duration_post(duration:, exchange_service:, organization_name:, order_email_exchange_organization_name_service_exchange_servic_h7c921e0b:) ⇒ Object

Raises:

  • (ArgumentError)


1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
# File 'lib/ovh-api/api/order.rb', line 1971

def (duration:, exchange_service:, organization_name:, order_email_exchange_organization_name_service_exchange_servic_h7c921e0b:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?
  raise ArgumentError, 'order_email_exchange_organization_name_service_exchange_servic_h7c921e0b is required' if order_email_exchange_organization_name_service_exchange_servic_h7c921e0b.nil?

  @connection.call(
    :POST,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/account/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    body: order_email_exchange_organization_name_service_exchange_servic_h7c921e0b
  )
end

#email_exchange_organization_name_service_exchange_service_account_get(exchange_service:, licence:, number:, organization_name:, storage_quota: nil) ⇒ Object

Raises:

  • (ArgumentError)


1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
# File 'lib/ovh-api/api/order.rb', line 1989

def (exchange_service:, licence:, number:, organization_name:, storage_quota: nil)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'licence is required' if licence.nil?
  raise ArgumentError, 'number is required' if number.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/account'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    query: { 'licence' => licence, 'number' => number, 'storageQuota' => storage_quota }
  )
end

#email_exchange_organization_name_service_exchange_service_account_upgrade_duration_get(duration:, exchange_service:, new_quota:, organization_name:, primary_email_address:) ⇒ Object

Raises:

  • (ArgumentError)


2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
# File 'lib/ovh-api/api/order.rb', line 2006

def (duration:, exchange_service:, new_quota:, organization_name:, primary_email_address:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'new_quota is required' if new_quota.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?
  raise ArgumentError, 'primary_email_address is required' if primary_email_address.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    query: { 'newQuota' => new_quota, 'primaryEmailAddress' => primary_email_address }
  )
end

#email_exchange_organization_name_service_exchange_service_account_upgrade_duration_post(duration:, exchange_service:, organization_name:, order_email_exchange_organization_name_service_exchange_servic_h3e7069df:) ⇒ Object

Raises:

  • (ArgumentError)


2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
# File 'lib/ovh-api/api/order.rb', line 2025

def (duration:, exchange_service:, organization_name:, order_email_exchange_organization_name_service_exchange_servic_h3e7069df:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?
  raise ArgumentError, 'order_email_exchange_organization_name_service_exchange_servic_h3e7069df is required' if order_email_exchange_organization_name_service_exchange_servic_h3e7069df.nil?

  @connection.call(
    :POST,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    body: order_email_exchange_organization_name_service_exchange_servic_h3e7069df
  )
end

#email_exchange_organization_name_service_exchange_service_account_upgrade_get(exchange_service:, new_quota:, organization_name:, primary_email_address:) ⇒ Object

Raises:

  • (ArgumentError)


2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
# File 'lib/ovh-api/api/order.rb', line 2043

def (exchange_service:, new_quota:, organization_name:, primary_email_address:)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'new_quota is required' if new_quota.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?
  raise ArgumentError, 'primary_email_address is required' if primary_email_address.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    query: { 'newQuota' => new_quota, 'primaryEmailAddress' => primary_email_address }
  )
end

#email_exchange_organization_name_service_exchange_service_disk_space_get(exchange_service:, organization_name:) ⇒ Object

Raises:

  • (ArgumentError)


2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
# File 'lib/ovh-api/api/order.rb', line 2060

def email_exchange_organization_name_service_exchange_service_disk_space_get(exchange_service:, organization_name:)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/diskSpace'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: []
  )
end

#email_exchange_organization_name_service_exchange_service_disk_space_post(exchange_service:, organization_name:) ⇒ Object

Raises:

  • (ArgumentError)


2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
# File 'lib/ovh-api/api/order.rb', line 2074

def email_exchange_organization_name_service_exchange_service_disk_space_post(exchange_service:, organization_name:)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :POST,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/diskSpace'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: []
  )
end

#email_exchange_organization_name_service_exchange_service_get(exchange_service:, organization_name:) ⇒ Object

Raises:

  • (ArgumentError)


2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
# File 'lib/ovh-api/api/order.rb', line 2088

def email_exchange_organization_name_service_exchange_service_get(exchange_service:, organization_name:)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: []
  )
end

#email_exchange_organization_name_service_exchange_service_outlook_duration_get(duration:, exchange_service:, licence:, organization_name:, primary_email_address:) ⇒ Object

Raises:

  • (ArgumentError)


2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
# File 'lib/ovh-api/api/order.rb', line 2102

def email_exchange_organization_name_service_exchange_service_outlook_duration_get(duration:, exchange_service:, licence:, organization_name:, primary_email_address:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'licence is required' if licence.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?
  raise ArgumentError, 'primary_email_address is required' if primary_email_address.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/outlook/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    query: { 'licence' => licence, 'primaryEmailAddress' => primary_email_address }
  )
end

#email_exchange_organization_name_service_exchange_service_outlook_duration_post(duration:, exchange_service:, organization_name:, order_email_exchange_organization_name_service_exchange_servic_h5e44d093:) ⇒ Object

Raises:

  • (ArgumentError)


2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
# File 'lib/ovh-api/api/order.rb', line 2121

def email_exchange_organization_name_service_exchange_service_outlook_duration_post(duration:, exchange_service:, organization_name:, order_email_exchange_organization_name_service_exchange_servic_h5e44d093:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?
  raise ArgumentError, 'order_email_exchange_organization_name_service_exchange_servic_h5e44d093 is required' if order_email_exchange_organization_name_service_exchange_servic_h5e44d093.nil?

  @connection.call(
    :POST,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/outlook/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    body: order_email_exchange_organization_name_service_exchange_servic_h5e44d093
  )
end

#email_exchange_organization_name_service_exchange_service_outlook_get(exchange_service:, licence:, organization_name:, primary_email_address:) ⇒ Object

Raises:

  • (ArgumentError)


2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
# File 'lib/ovh-api/api/order.rb', line 2139

def email_exchange_organization_name_service_exchange_service_outlook_get(exchange_service:, licence:, organization_name:, primary_email_address:)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'licence is required' if licence.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?
  raise ArgumentError, 'primary_email_address is required' if primary_email_address.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/outlook'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: [],
    query: { 'licence' => licence, 'primaryEmailAddress' => primary_email_address }
  )
end

#email_exchange_organization_name_service_exchange_service_upgrade_get(exchange_service:, organization_name:) ⇒ Object

Raises:

  • (ArgumentError)


2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
# File 'lib/ovh-api/api/order.rb', line 2156

def email_exchange_organization_name_service_exchange_service_upgrade_get(exchange_service:, organization_name:)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/upgrade'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: []
  )
end

#email_exchange_organization_name_service_exchange_service_upgrade_post(exchange_service:, organization_name:) ⇒ Object

Raises:

  • (ArgumentError)


2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
# File 'lib/ovh-api/api/order.rb', line 2170

def email_exchange_organization_name_service_exchange_service_upgrade_post(exchange_service:, organization_name:)
  raise ArgumentError, 'exchange_service is required' if exchange_service.nil?
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :POST,
    '/order/email/exchange/{organizationName}/service/{exchangeService}/upgrade'
      .gsub('{exchangeService}', ERB::Util.url_encode(exchange_service.to_s))
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: []
  )
end

#email_exchange_organization_name_service_get(organization_name:) ⇒ Object

Raises:

  • (ArgumentError)


2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
# File 'lib/ovh-api/api/order.rb', line 2184

def email_exchange_organization_name_service_get(organization_name:)
  raise ArgumentError, 'organization_name is required' if organization_name.nil?

  @connection.call(
    :GET,
    '/order/email/exchange/{organizationName}/service'
      .gsub('{organizationName}', ERB::Util.url_encode(organization_name.to_s)),
    type: nil,
    auth: []
  )
end

#email_pro_getObject



2196
2197
2198
2199
2200
2201
2202
2203
# File 'lib/ovh-api/api/order.rb', line 2196

def email_pro_get
  @connection.call(
    :GET,
    '/order/email/pro',
    type: nil,
    auth: []
  )
end

#email_pro_service_account_duration_get(duration:, number:, service:) ⇒ Object

Raises:

  • (ArgumentError)


2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
# File 'lib/ovh-api/api/order.rb', line 2205

def (duration:, number:, service:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'number is required' if number.nil?
  raise ArgumentError, 'service is required' if service.nil?

  @connection.call(
    :GET,
    '/order/email/pro/{service}/account/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{service}', ERB::Util.url_encode(service.to_s)),
    type: nil,
    auth: [],
    query: { 'number' => number }
  )
end

#email_pro_service_account_duration_post(duration:, service:, body:) ⇒ Object

Raises:

  • (ArgumentError)


2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
# File 'lib/ovh-api/api/order.rb', line 2221

def (duration:, service:, body:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'service is required' if service.nil?
  raise ArgumentError, 'body is required' if body.nil?

  @connection.call(
    :POST,
    '/order/email/pro/{service}/account/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{service}', ERB::Util.url_encode(service.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#email_pro_service_account_get(number:, service:) ⇒ Object

Raises:

  • (ArgumentError)


2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
# File 'lib/ovh-api/api/order.rb', line 2237

def (number:, service:)
  raise ArgumentError, 'number is required' if number.nil?
  raise ArgumentError, 'service is required' if service.nil?

  @connection.call(
    :GET,
    '/order/email/pro/{service}/account'
      .gsub('{service}', ERB::Util.url_encode(service.to_s)),
    type: nil,
    auth: [],
    query: { 'number' => number }
  )
end

#email_pro_service_get(service:) ⇒ Object

Raises:

  • (ArgumentError)


2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
# File 'lib/ovh-api/api/order.rb', line 2251

def email_pro_service_get(service:)
  raise ArgumentError, 'service is required' if service.nil?

  @connection.call(
    :GET,
    '/order/email/pro/{service}'
      .gsub('{service}', ERB::Util.url_encode(service.to_s)),
    type: nil,
    auth: []
  )
end

#hosting_web_getObject



2263
2264
2265
2266
2267
2268
2269
2270
# File 'lib/ovh-api/api/order.rb', line 2263

def hosting_web_get
  @connection.call(
    :GET,
    '/order/hosting/web',
    type: nil,
    auth: []
  )
end

#hosting_web_service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
# File 'lib/ovh-api/api/order.rb', line 2272

def hosting_web_service_name_get(service_name:)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/hosting/web/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#hosting_web_service_name_upgrade_duration_get(duration:, offer:, service_name:, start_time: nil, waive_retractation_period: nil) ⇒ Object

Raises:

  • (ArgumentError)


2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
# File 'lib/ovh-api/api/order.rb', line 2284

def hosting_web_service_name_upgrade_duration_get(duration:, offer:, service_name:, start_time: nil, waive_retractation_period: nil)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'offer is required' if offer.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/hosting/web/{serviceName}/upgrade/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'offer' => offer, 'startTime' => start_time, 'waiveRetractationPeriod' => waive_retractation_period }
  )
end

#hosting_web_service_name_upgrade_duration_post(duration:, service_name:, order_hosting_web_service_name_upgrade_duration_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
# File 'lib/ovh-api/api/order.rb', line 2300

def hosting_web_service_name_upgrade_duration_post(duration:, service_name:, order_hosting_web_service_name_upgrade_duration_post_request:)
  raise ArgumentError, 'duration is required' if duration.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'order_hosting_web_service_name_upgrade_duration_post_request is required' if order_hosting_web_service_name_upgrade_duration_post_request.nil?

  @connection.call(
    :POST,
    '/order/hosting/web/{serviceName}/upgrade/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: order_hosting_web_service_name_upgrade_duration_post_request
  )
end

#hosting_web_service_name_upgrade_get(offer:, service_name:, start_time: nil, waive_retractation_period: nil) ⇒ Object

Raises:

  • (ArgumentError)


2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
# File 'lib/ovh-api/api/order.rb', line 2316

def hosting_web_service_name_upgrade_get(offer:, service_name:, start_time: nil, waive_retractation_period: nil)
  raise ArgumentError, 'offer is required' if offer.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/order/hosting/web/{serviceName}/upgrade'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'offer' => offer, 'startTime' => start_time, 'waiveRetractationPeriod' => waive_retractation_period }
  )
end

#saas_csp2_new_duration_get(duration:, gift_code: nil, office_business_quantity: nil, office_pro_plus_quantity: nil) ⇒ Object

Raises:

  • (ArgumentError)


2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
# File 'lib/ovh-api/api/order.rb', line 2330

def saas_csp2_new_duration_get(duration:, gift_code: nil, office_business_quantity: nil, office_pro_plus_quantity: nil)
  raise ArgumentError, 'duration is required' if duration.nil?

  @connection.call(
    :GET,
    '/order/saas/csp2/new/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s)),
    type: nil,
    auth: [],
    query: { 'giftCode' => gift_code, 'officeBusinessQuantity' => office_business_quantity, 'officeProPlusQuantity' => office_pro_plus_quantity }
  )
end

#saas_csp2_new_duration_post(duration:, order_license_office_new_duration_post_request: nil) ⇒ Object

Raises:

  • (ArgumentError)


2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'lib/ovh-api/api/order.rb', line 2343

def saas_csp2_new_duration_post(duration:, order_license_office_new_duration_post_request: nil)
  raise ArgumentError, 'duration is required' if duration.nil?

  @connection.call(
    :POST,
    '/order/saas/csp2/new/{duration}'
      .gsub('{duration}', ERB::Util.url_encode(duration.to_s)),
    type: nil,
    auth: [],
    body: order_license_office_new_duration_post_request
  )
end

#saas_csp2_new_get(gift_code: nil, office_business_quantity: nil, office_pro_plus_quantity: nil) ⇒ Object



2356
2357
2358
2359
2360
2361
2362
2363
2364
# File 'lib/ovh-api/api/order.rb', line 2356

def saas_csp2_new_get(gift_code: nil, office_business_quantity: nil, office_pro_plus_quantity: nil)
  @connection.call(
    :GET,
    '/order/saas/csp2/new',
    type: nil,
    auth: [],
    query: { 'giftCode' => gift_code, 'officeBusinessQuantity' => office_business_quantity, 'officeProPlusQuantity' => office_pro_plus_quantity }
  )
end