Class: Dedicated::Server

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

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Server

Returns a new instance of Server.



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

def initialize(connection)
  @connection = connection
end

Instance Method Details

#datacenter_availabilities_get(datacenters: nil, exclude_datacenters: nil, gpu: nil, memory: nil, plan_code: nil, server: nil, storage: nil, system_storage: nil) ⇒ Object



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

def datacenter_availabilities_get(datacenters: nil, exclude_datacenters: nil, gpu: nil, memory: nil, plan_code: nil, server: nil, storage: nil, system_storage: nil)
  @connection.call(
    :GET,
    '/dedicated/server/datacenter/availabilities',
    type: nil,
    auth: [],
    query: { 'datacenters' => datacenters, 'excludeDatacenters' => exclude_datacenters, 'gpu' => gpu, 'memory' => memory, 'planCode' => plan_code, 'server' => server, 'storage' => storage, 'systemStorage' => system_storage }
  )
end

#datacenter_availabilities_raw_get(datacenters: nil, exclude_datacenters: nil, gpu: nil, memory: nil, plan_code: nil, server: nil, storage: nil, system_storage: nil) ⇒ Object



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

def datacenter_availabilities_raw_get(datacenters: nil, exclude_datacenters: nil, gpu: nil, memory: nil, plan_code: nil, server: nil, storage: nil, system_storage: nil)
  @connection.call(
    :GET,
    '/dedicated/server/datacenter/availabilities/raw',
    type: nil,
    auth: [],
    query: { 'datacenters' => datacenters, 'excludeDatacenters' => exclude_datacenters, 'gpu' => gpu, 'memory' => memory, 'planCode' => plan_code, 'server' => server, 'storage' => storage, 'systemStorage' => system_storage }
  )
end

#get(iam_tags: nil) ⇒ Object



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

def get(iam_tags: nil)
  @connection.call(
    :GET,
    '/dedicated/server',
    type: nil,
    auth: [],
    query: { 'iamTags' => iam_tags }
  )
end

#log_get(datacenter: nil, limit: nil, page: nil, server: nil) ⇒ Object



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

def log_get(datacenter: nil, limit: nil, page: nil, server: nil)
  @connection.call(
    :GET,
    '/dedicated/server/log',
    type: nil,
    auth: [],
    query: { 'datacenter' => datacenter, 'limit' => limit, 'page' => page, 'server' => server }
  )
end

#os_availabilities_get(hardware:) ⇒ Object

Raises:

  • (ArgumentError)


50
51
52
53
54
55
56
57
58
59
60
# File 'lib/ovh-api/api/dedicated/server.rb', line 50

def os_availabilities_get(hardware:)
  raise ArgumentError, 'hardware is required' if hardware.nil?

  @connection.call(
    :GET,
    '/dedicated/server/osAvailabilities',
    type: nil,
    auth: [],
    query: { 'hardware' => hardware }
  )
end

#region_availabilities_get(exclude_regions: nil, gpu: nil, memory: nil, plan_code: nil, regions: nil, server: nil, storage: nil, system_storage: nil) ⇒ Object



62
63
64
65
66
67
68
69
70
# File 'lib/ovh-api/api/dedicated/server.rb', line 62

def region_availabilities_get(exclude_regions: nil, gpu: nil, memory: nil, plan_code: nil, regions: nil, server: nil, storage: nil, system_storage: nil)
  @connection.call(
    :GET,
    '/dedicated/server/region/availabilities',
    type: nil,
    auth: [],
    query: { 'excludeRegions' => exclude_regions, 'gpu' => gpu, 'memory' => memory, 'planCode' => plan_code, 'regions' => regions, 'server' => server, 'storage' => storage, 'systemStorage' => system_storage }
  )
end

#service_name_authentication_secret_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


72
73
74
75
76
77
78
79
80
81
82
# File 'lib/ovh-api/api/dedicated/server.rb', line 72

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

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

#service_name_backup_cloud_offer_details_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


84
85
86
87
88
89
90
91
92
93
94
# File 'lib/ovh-api/api/dedicated/server.rb', line 84

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

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

#service_name_bios_settings_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


96
97
98
99
100
101
102
103
104
105
106
# File 'lib/ovh-api/api/dedicated/server.rb', line 96

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

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

#service_name_bios_settings_sgx_configure_post(service_name:, dedicated_server_service_name_bios_settings_sgx_configure_post_request: nil) ⇒ Object

Raises:

  • (ArgumentError)


108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/ovh-api/api/dedicated/server.rb', line 108

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/biosSettings/sgx/configure'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_bios_settings_sgx_configure_post_request
  )
end

#service_name_bios_settings_sgx_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


121
122
123
124
125
126
127
128
129
130
131
# File 'lib/ovh-api/api/dedicated/server.rb', line 121

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

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

#service_name_boot_boot_id_get(boot_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/ovh-api/api/dedicated/server.rb', line 133

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

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

#service_name_boot_boot_id_option_get(boot_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/ovh-api/api/dedicated/server.rb', line 147

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/boot/{bootId}/option'
      .gsub('{bootId}', ERB::Util.url_encode(boot_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_boot_boot_id_option_option_get(boot_id:, option:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'lib/ovh-api/api/dedicated/server.rb', line 161

def service_name_boot_boot_id_option_option_get(boot_id:, option:, service_name:)
  raise ArgumentError, 'boot_id is required' if boot_id.nil?
  raise ArgumentError, 'option is required' if option.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/boot/{bootId}/option/{option}'
      .gsub('{bootId}', ERB::Util.url_encode(boot_id.to_s))
      .gsub('{option}', ERB::Util.url_encode(option.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_boot_get(service_name:, boot_type: nil) ⇒ Object

Raises:

  • (ArgumentError)


177
178
179
180
181
182
183
184
185
186
187
188
# File 'lib/ovh-api/api/dedicated/server.rb', line 177

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/boot'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'bootType' => boot_type }
  )
end

#service_name_burst_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


190
191
192
193
194
195
196
197
198
199
200
# File 'lib/ovh-api/api/dedicated/server.rb', line 190

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

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

#service_name_burst_put(service_name:, dedicated_server_server_burst:) ⇒ Object

Raises:

  • (ArgumentError)


202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/ovh-api/api/dedicated/server.rb', line 202

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

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}/burst'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_server_burst
  )
end

#service_name_change_contact_post(service_name:, cdn_dedicated_service_name_change_contact_post_request: nil) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_confirm_termination_post(service_name:, cloud_project_service_name_confirm_termination_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_features_backup_cloud_delete(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


243
244
245
246
247
248
249
250
251
252
253
# File 'lib/ovh-api/api/dedicated/server.rb', line 243

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

  @connection.call(
    :DELETE,
    '/dedicated/server/{serviceName}/features/backupCloud'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_backup_cloud_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


255
256
257
258
259
260
261
262
263
264
265
# File 'lib/ovh-api/api/dedicated/server.rb', line 255

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

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

#service_name_features_backup_cloud_password_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


267
268
269
270
271
272
273
274
275
276
277
# File 'lib/ovh-api/api/dedicated/server.rb', line 267

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/backupCloud/password'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_backup_cloud_post(service_name:, dedicated_server_service_name_features_backup_cloud_post_request: nil) ⇒ Object

Raises:

  • (ArgumentError)


279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/ovh-api/api/dedicated/server.rb', line 279

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

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

#service_name_features_backup_ftp_access_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


292
293
294
295
296
297
298
299
300
301
302
# File 'lib/ovh-api/api/dedicated/server.rb', line 292

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

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

#service_name_features_backup_ftp_access_ip_block_delete(ip_block:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


304
305
306
307
308
309
310
311
312
313
314
315
316
# File 'lib/ovh-api/api/dedicated/server.rb', line 304

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

  @connection.call(
    :DELETE,
    '/dedicated/server/{serviceName}/features/backupFTP/access/{ipBlock}'
      .gsub('{ipBlock}', ERB::Util.url_encode(ip_block.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_backup_ftp_access_ip_block_get(ip_block:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


318
319
320
321
322
323
324
325
326
327
328
329
330
# File 'lib/ovh-api/api/dedicated/server.rb', line 318

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/features/backupFTP/access/{ipBlock}'
      .gsub('{ipBlock}', ERB::Util.url_encode(ip_block.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_backup_ftp_access_ip_block_put(ip_block:, service_name:, dedicated_server_backup_ftp_acl:) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_features_backup_ftp_access_ip_block_put(ip_block:, service_name:, dedicated_server_backup_ftp_acl:)
  raise ArgumentError, 'ip_block is required' if ip_block.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'dedicated_server_backup_ftp_acl is required' if dedicated_server_backup_ftp_acl.nil?

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}/features/backupFTP/access/{ipBlock}'
      .gsub('{ipBlock}', ERB::Util.url_encode(ip_block.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_backup_ftp_acl
  )
end

#service_name_features_backup_ftp_access_post(service_name:, dedicated_housing_service_name_features_backup_ftp_access_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


348
349
350
351
352
353
354
355
356
357
358
359
360
# File 'lib/ovh-api/api/dedicated/server.rb', line 348

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/backupFTP/access'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_housing_service_name_features_backup_ftp_access_post_request
  )
end

#service_name_features_backup_ftp_authorizable_blocks_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


362
363
364
365
366
367
368
369
370
371
372
# File 'lib/ovh-api/api/dedicated/server.rb', line 362

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

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

#service_name_features_backup_ftp_delete(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


374
375
376
377
378
379
380
381
382
383
384
# File 'lib/ovh-api/api/dedicated/server.rb', line 374

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

  @connection.call(
    :DELETE,
    '/dedicated/server/{serviceName}/features/backupFTP'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_backup_ftp_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


386
387
388
389
390
391
392
393
394
395
396
# File 'lib/ovh-api/api/dedicated/server.rb', line 386

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

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

#service_name_features_backup_ftp_password_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


398
399
400
401
402
403
404
405
406
407
408
# File 'lib/ovh-api/api/dedicated/server.rb', line 398

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/backupFTP/password'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_backup_ftp_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


410
411
412
413
414
415
416
417
418
419
420
# File 'lib/ovh-api/api/dedicated/server.rb', line 410

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/backupFTP'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_firewall_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


422
423
424
425
426
427
428
429
430
431
432
# File 'lib/ovh-api/api/dedicated/server.rb', line 422

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

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

#service_name_features_firewall_put(service_name:, dedicated_server_firewall:) ⇒ Object

Raises:

  • (ArgumentError)


434
435
436
437
438
439
440
441
442
443
444
445
446
# File 'lib/ovh-api/api/dedicated/server.rb', line 434

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

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}/features/firewall'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_firewall
  )
end

#service_name_features_ipmi_access_get(service_name:, type:) ⇒ Object

Raises:

  • (ArgumentError)


448
449
450
451
452
453
454
455
456
457
458
459
460
# File 'lib/ovh-api/api/dedicated/server.rb', line 448

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/features/ipmi/access'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'type' => type }
  )
end

#service_name_features_ipmi_access_post(service_name:, dedicated_server_service_name_features_ipmi_access_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


462
463
464
465
466
467
468
469
470
471
472
473
474
# File 'lib/ovh-api/api/dedicated/server.rb', line 462

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/ipmi/access'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_features_ipmi_access_post_request
  )
end

#service_name_features_ipmi_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


476
477
478
479
480
481
482
483
484
485
486
# File 'lib/ovh-api/api/dedicated/server.rb', line 476

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

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

#service_name_features_ipmi_reset_interface_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


488
489
490
491
492
493
494
495
496
497
498
# File 'lib/ovh-api/api/dedicated/server.rb', line 488

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/ipmi/resetInterface'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_ipmi_reset_sessions_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


500
501
502
503
504
505
506
507
508
509
510
# File 'lib/ovh-api/api/dedicated/server.rb', line 500

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/ipmi/resetSessions'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_features_ipmi_test_get(service_name:, type:) ⇒ Object

Raises:

  • (ArgumentError)


512
513
514
515
516
517
518
519
520
521
522
523
524
# File 'lib/ovh-api/api/dedicated/server.rb', line 512

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/features/ipmi/test'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'type' => type }
  )
end

#service_name_features_ipmi_test_post(service_name:, dedicated_server_service_name_features_ipmi_test_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


526
527
528
529
530
531
532
533
534
535
536
537
538
# File 'lib/ovh-api/api/dedicated/server.rb', line 526

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/features/ipmi/test'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_features_ipmi_test_post_request
  )
end

#service_name_features_kvm_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


540
541
542
543
544
545
546
547
548
549
550
# File 'lib/ovh-api/api/dedicated/server.rb', line 540

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

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

#service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


552
553
554
555
556
557
558
559
560
561
562
# File 'lib/ovh-api/api/dedicated/server.rb', line 552

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

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

#service_name_install_compatible_template_partition_schemes_get(service_name:, template_name:) ⇒ Object

Raises:

  • (ArgumentError)


564
565
566
567
568
569
570
571
572
573
574
575
576
# File 'lib/ovh-api/api/dedicated/server.rb', line 564

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/install/compatibleTemplatePartitionSchemes'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'templateName' => template_name }
  )
end

#service_name_install_compatible_templates_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


578
579
580
581
582
583
584
585
586
587
588
# File 'lib/ovh-api/api/dedicated/server.rb', line 578

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

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

#service_name_install_hardware_raid_profile_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


590
591
592
593
594
595
596
597
598
599
600
# File 'lib/ovh-api/api/dedicated/server.rb', line 590

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

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

#service_name_install_status_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


602
603
604
605
606
607
608
609
610
611
612
# File 'lib/ovh-api/api/dedicated/server.rb', line 602

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

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

#service_name_intervention_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


614
615
616
617
618
619
620
621
622
623
624
# File 'lib/ovh-api/api/dedicated/server.rb', line 614

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

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

#service_name_intervention_intervention_id_get(intervention_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


626
627
628
629
630
631
632
633
634
635
636
637
638
# File 'lib/ovh-api/api/dedicated/server.rb', line 626

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

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

#service_name_ip_block_merge_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


640
641
642
643
644
645
646
647
648
649
650
651
652
# File 'lib/ovh-api/api/dedicated/server.rb', line 640

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

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

#service_name_ip_can_be_moved_to_get(ip:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


654
655
656
657
658
659
660
661
662
663
664
665
666
# File 'lib/ovh-api/api/dedicated/server.rb', line 654

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/ipCanBeMovedTo'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'ip' => ip }
  )
end

#service_name_ip_country_available_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


668
669
670
671
672
673
674
675
676
677
678
# File 'lib/ovh-api/api/dedicated/server.rb', line 668

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

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

#service_name_ip_move_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


680
681
682
683
684
685
686
687
688
689
690
691
692
# File 'lib/ovh-api/api/dedicated/server.rb', line 680

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

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

#service_name_ips_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


694
695
696
697
698
699
700
701
702
703
704
# File 'lib/ovh-api/api/dedicated/server.rb', line 694

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

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

#service_name_license_compliant_windows_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_license_compliant_windows_sql_server_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_license_windows_post(service_name:, dedicated_server_service_name_license_windows_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


730
731
732
733
734
735
736
737
738
739
740
741
742
# File 'lib/ovh-api/api/dedicated/server.rb', line 730

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

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

#service_name_mrtg_get(period:, service_name:, type:) ⇒ Object

Raises:

  • (ArgumentError)


744
745
746
747
748
749
750
751
752
753
754
755
756
757
# File 'lib/ovh-api/api/dedicated/server.rb', line 744

def service_name_mrtg_get(period:, service_name:, type:)
  raise ArgumentError, 'period is required' if period.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'type is required' if type.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/mrtg'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'period' => period, 'type' => type }
  )
end

#service_name_network_interface_controller_get(service_name:, link_type: nil) ⇒ Object

Raises:

  • (ArgumentError)


759
760
761
762
763
764
765
766
767
768
769
770
# File 'lib/ovh-api/api/dedicated/server.rb', line 759

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/networkInterfaceController'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'linkType' => link_type }
  )
end

#service_name_network_interface_controller_mac_get(mac:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


772
773
774
775
776
777
778
779
780
781
782
783
784
# File 'lib/ovh-api/api/dedicated/server.rb', line 772

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

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

#service_name_network_interface_controller_mac_mrtg_get(mac:, period:, service_name:, type:) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_network_interface_controller_mac_mrtg_get(mac:, period:, service_name:, type:)
  raise ArgumentError, 'mac is required' if mac.nil?
  raise ArgumentError, 'period is required' if period.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'type is required' if type.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/networkInterfaceController/{mac}/mrtg'
      .gsub('{mac}', ERB::Util.url_encode(mac.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'period' => period, 'type' => type }
  )
end

#service_name_networking_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


803
804
805
806
807
808
809
810
811
812
813
# File 'lib/ovh-api/api/dedicated/server.rb', line 803

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

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

#service_name_ola_aggregation_post(service_name:, dedicated_server_service_name_ola_aggregation_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


815
816
817
818
819
820
821
822
823
824
825
826
827
# File 'lib/ovh-api/api/dedicated/server.rb', line 815

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

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

#service_name_ola_group_post(service_name:, dedicated_server_service_name_ola_aggregation_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


829
830
831
832
833
834
835
836
837
838
839
840
841
# File 'lib/ovh-api/api/dedicated/server.rb', line 829

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

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

#service_name_ola_reset_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_ola_ungroup_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


857
858
859
860
861
862
863
864
865
866
867
868
869
# File 'lib/ovh-api/api/dedicated/server.rb', line 857

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

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

#service_name_ongoing_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


871
872
873
874
875
876
877
878
879
880
881
# File 'lib/ovh-api/api/dedicated/server.rb', line 871

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

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

#service_name_option_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


883
884
885
886
887
888
889
890
891
892
893
# File 'lib/ovh-api/api/dedicated/server.rb', line 883

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

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

#service_name_option_option_delete(option:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


895
896
897
898
899
900
901
902
903
904
905
906
907
# File 'lib/ovh-api/api/dedicated/server.rb', line 895

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

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

#service_name_option_option_get(option:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


909
910
911
912
913
914
915
916
917
918
919
920
921
# File 'lib/ovh-api/api/dedicated/server.rb', line 909

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

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

#service_name_orderable_backup_storage_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_orderable_bandwidth_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_orderable_bandwidthv_rack_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


947
948
949
950
951
952
953
954
955
956
957
# File 'lib/ovh-api/api/dedicated/server.rb', line 947

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

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

#service_name_orderable_feature_get(feature:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


959
960
961
962
963
964
965
966
967
968
969
970
971
# File 'lib/ovh-api/api/dedicated/server.rb', line 959

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/orderable/feature'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'feature' => feature }
  )
end

#service_name_orderable_ip_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


973
974
975
976
977
978
979
980
981
982
983
# File 'lib/ovh-api/api/dedicated/server.rb', line 973

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

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

#service_name_orderable_kvm_express_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


985
986
987
988
989
990
991
992
993
994
995
# File 'lib/ovh-api/api/dedicated/server.rb', line 985

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

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

#service_name_orderable_kvm_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
# File 'lib/ovh-api/api/dedicated/server.rb', line 997

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

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

#service_name_orderable_professional_use_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
# File 'lib/ovh-api/api/dedicated/server.rb', line 1009

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

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

#service_name_orderable_traffic_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
# File 'lib/ovh-api/api/dedicated/server.rb', line 1021

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

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

#service_name_orderable_usb_key_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
# File 'lib/ovh-api/api/dedicated/server.rb', line 1033

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

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

#service_name_planned_intervention_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
# File 'lib/ovh-api/api/dedicated/server.rb', line 1045

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

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

#service_name_planned_intervention_intervention_id_get(intervention_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
# File 'lib/ovh-api/api/dedicated/server.rb', line 1057

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

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

#service_name_put(service_name:, dedicated_server_dedicated:) ⇒ Object

Raises:

  • (ArgumentError)


1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
# File 'lib/ovh-api/api/dedicated/server.rb', line 1071

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

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_dedicated
  )
end

#service_name_reboot_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
# File 'lib/ovh-api/api/dedicated/server.rb', line 1085

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

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

#service_name_reinstall_post(service_name:, dedicated_server_reinstall:) ⇒ Object

Raises:

  • (ArgumentError)


1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
# File 'lib/ovh-api/api/dedicated/server.rb', line 1097

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

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

#service_name_secondary_dns_domains_domain_delete(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :DELETE,
    '/dedicated/server/{serviceName}/secondaryDnsDomains/{domain}'
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_secondary_dns_domains_domain_dns_server_get(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
# File 'lib/ovh-api/api/dedicated/server.rb', line 1125

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

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

#service_name_secondary_dns_domains_domain_get(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
# File 'lib/ovh-api/api/dedicated/server.rb', line 1139

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

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

#service_name_secondary_dns_domains_domain_put(domain:, service_name:, dedicated_secondary_dns_domain_secondary_dns:) ⇒ Object

Raises:

  • (ArgumentError)


1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
# File 'lib/ovh-api/api/dedicated/server.rb', line 1153

def service_name_secondary_dns_domains_domain_put(domain:, service_name:, dedicated_secondary_dns_domain_secondary_dns:)
  raise ArgumentError, 'domain is required' if domain.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'dedicated_secondary_dns_domain_secondary_dns is required' if dedicated_secondary_dns_domain_secondary_dns.nil?

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}/secondaryDnsDomains/{domain}'
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_secondary_dns_domain_secondary_dns
  )
end

#service_name_secondary_dns_domains_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
# File 'lib/ovh-api/api/dedicated/server.rb', line 1169

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

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

#service_name_secondary_dns_domains_post(service_name:, dedicated_server_service_name_secondary_dns_domains_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
# File 'lib/ovh-api/api/dedicated/server.rb', line 1181

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

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

#service_name_secondary_dns_name_domain_token_get(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/secondaryDnsNameDomainToken'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'domain' => domain }
  )
end

#service_name_secondary_dns_name_server_available_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_service_infos_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_service_infos_put(service_name:, services_service:) ⇒ Object

Raises:

  • (ArgumentError)


1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
# File 'lib/ovh-api/api/dedicated/server.rb', line 1233

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

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}/serviceInfos'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: services_service
  )
end

#service_name_specifications_hardware_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
# File 'lib/ovh-api/api/dedicated/server.rb', line 1247

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

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

#service_name_specifications_ip_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
# File 'lib/ovh-api/api/dedicated/server.rb', line 1259

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

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

#service_name_specifications_network_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
# File 'lib/ovh-api/api/dedicated/server.rb', line 1271

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

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

#service_name_spla_get(service_name:, status: nil, type: nil) ⇒ Object

Raises:

  • (ArgumentError)


1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
# File 'lib/ovh-api/api/dedicated/server.rb', line 1283

def service_name_spla_get(service_name:, status: nil, type: nil)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/spla'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'status' => status, 'type' => type }
  )
end

#service_name_spla_id_get(id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
# File 'lib/ovh-api/api/dedicated/server.rb', line 1296

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

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

#service_name_spla_id_put(id:, service_name:, dedicated_server_spla:) ⇒ Object

Raises:

  • (ArgumentError)


1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
# File 'lib/ovh-api/api/dedicated/server.rb', line 1310

def service_name_spla_id_put(id:, service_name:, dedicated_server_spla:)
  raise ArgumentError, 'id is required' if id.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'dedicated_server_spla is required' if dedicated_server_spla.nil?

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}/spla/{id}'
      .gsub('{id}', ERB::Util.url_encode(id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_spla
  )
end

#service_name_spla_id_revoke_post(id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
# File 'lib/ovh-api/api/dedicated/server.rb', line 1326

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/spla/{id}/revoke'
      .gsub('{id}', ERB::Util.url_encode(id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_spla_post(service_name:, dedicated_server_service_name_spla_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_support_replace_cooling_post(service_name:, dedicated_server_service_name_support_replace_cooling_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
# File 'lib/ovh-api/api/dedicated/server.rb', line 1354

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/support/replace/cooling'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_support_replace_cooling_post_request
  )
end

#service_name_support_replace_hard_disk_drive_post(service_name:, dedicated_server_service_name_support_replace_hard_disk_drive_ph4f709625:) ⇒ Object

Raises:

  • (ArgumentError)


1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
# File 'lib/ovh-api/api/dedicated/server.rb', line 1368

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/support/replace/hardDiskDrive'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_support_replace_hard_disk_drive_ph4f709625
  )
end

#service_name_support_replace_memory_post(service_name:, dedicated_server_service_name_support_replace_memory_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
# File 'lib/ovh-api/api/dedicated/server.rb', line 1382

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/support/replace/memory'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_support_replace_memory_post_request
  )
end

#service_name_task_get(service_name:, function: nil, status: nil) ⇒ Object

Raises:

  • (ArgumentError)


1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
# File 'lib/ovh-api/api/dedicated/server.rb', line 1396

def service_name_task_get(service_name:, function: nil, status: nil)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/task'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'function' => function, 'status' => status }
  )
end

#service_name_task_task_id_available_timeslots_get(period_end:, period_start:, service_name:, task_id:) ⇒ Object

Raises:

  • (ArgumentError)


1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
# File 'lib/ovh-api/api/dedicated/server.rb', line 1409

def service_name_task_task_id_available_timeslots_get(period_end:, period_start:, service_name:, task_id:)
  raise ArgumentError, 'period_end is required' if period_end.nil?
  raise ArgumentError, 'period_start is required' if period_start.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'task_id is required' if task_id.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/task/{taskId}/availableTimeslots'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{taskId}', ERB::Util.url_encode(task_id.to_s)),
    type: nil,
    auth: [],
    query: { 'periodEnd' => period_end, 'periodStart' => period_start }
  )
end

#service_name_task_task_id_cancel_post(service_name:, task_id:) ⇒ Object

Raises:

  • (ArgumentError)


1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
# File 'lib/ovh-api/api/dedicated/server.rb', line 1426

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/task/{taskId}/cancel'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{taskId}', ERB::Util.url_encode(task_id.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_task_task_id_get(service_name:, task_id:) ⇒ Object

Raises:

  • (ArgumentError)


1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
# File 'lib/ovh-api/api/dedicated/server.rb', line 1440

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

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

#service_name_task_task_id_schedule_post(service_name:, task_id:, dedicated_server_service_name_task_task_id_schedule_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
# File 'lib/ovh-api/api/dedicated/server.rb', line 1454

def service_name_task_task_id_schedule_post(service_name:, task_id:, dedicated_server_service_name_task_task_id_schedule_post_request:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'task_id is required' if task_id.nil?
  raise ArgumentError, 'dedicated_server_service_name_task_task_id_schedule_post_request is required' if dedicated_server_service_name_task_task_id_schedule_post_request.nil?

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/task/{taskId}/schedule'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{taskId}', ERB::Util.url_encode(task_id.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_task_task_id_schedule_post_request
  )
end

#service_name_terminate_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
# File 'lib/ovh-api/api/dedicated/server.rb', line 1470

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

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

#service_name_virtual_mac_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
# File 'lib/ovh-api/api/dedicated/server.rb', line 1482

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

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

#service_name_virtual_mac_mac_address_get(mac_address:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
# File 'lib/ovh-api/api/dedicated/server.rb', line 1494

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

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

#service_name_virtual_mac_mac_address_virtual_address_get(mac_address:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/virtualMac/{macAddress}/virtualAddress'
      .gsub('{macAddress}', ERB::Util.url_encode(mac_address.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_virtual_mac_mac_address_virtual_address_ip_address_delete(ip_address:, mac_address:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
# File 'lib/ovh-api/api/dedicated/server.rb', line 1522

def service_name_virtual_mac_mac_address_virtual_address_ip_address_delete(ip_address:, mac_address:, service_name:)
  raise ArgumentError, 'ip_address is required' if ip_address.nil?
  raise ArgumentError, 'mac_address is required' if mac_address.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :DELETE,
    '/dedicated/server/{serviceName}/virtualMac/{macAddress}/virtualAddress/{ipAddress}'
      .gsub('{ipAddress}', ERB::Util.url_encode(ip_address.to_s))
      .gsub('{macAddress}', ERB::Util.url_encode(mac_address.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_virtual_mac_mac_address_virtual_address_ip_address_get(ip_address:, mac_address:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
# File 'lib/ovh-api/api/dedicated/server.rb', line 1538

def service_name_virtual_mac_mac_address_virtual_address_ip_address_get(ip_address:, mac_address:, service_name:)
  raise ArgumentError, 'ip_address is required' if ip_address.nil?
  raise ArgumentError, 'mac_address is required' if mac_address.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/virtualMac/{macAddress}/virtualAddress/{ipAddress}'
      .gsub('{ipAddress}', ERB::Util.url_encode(ip_address.to_s))
      .gsub('{macAddress}', ERB::Util.url_encode(mac_address.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_virtual_mac_mac_address_virtual_address_post(mac_address:, service_name:, dedicated_server_service_name_virtual_mac_mac_address_virtual_ahe926e4c4:) ⇒ Object

Raises:

  • (ArgumentError)


1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
# File 'lib/ovh-api/api/dedicated/server.rb', line 1554

def service_name_virtual_mac_mac_address_virtual_address_post(mac_address:, service_name:, dedicated_server_service_name_virtual_mac_mac_address_virtual_ahe926e4c4:)
  raise ArgumentError, 'mac_address is required' if mac_address.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'dedicated_server_service_name_virtual_mac_mac_address_virtual_ahe926e4c4 is required' if dedicated_server_service_name_virtual_mac_mac_address_virtual_ahe926e4c4.nil?

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/virtualMac/{macAddress}/virtualAddress'
      .gsub('{macAddress}', ERB::Util.url_encode(mac_address.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_server_service_name_virtual_mac_mac_address_virtual_ahe926e4c4
  )
end

#service_name_virtual_mac_post(service_name:, dedicated_server_service_name_virtual_mac_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_virtual_network_interface_get(service_name:, enabled: nil, mode: nil, name: nil, vrack: nil) ⇒ Object

Raises:

  • (ArgumentError)


1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
# File 'lib/ovh-api/api/dedicated/server.rb', line 1584

def service_name_virtual_network_interface_get(service_name:, enabled: nil, mode: nil, name: nil, vrack: nil)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/virtualNetworkInterface'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'enabled' => enabled, 'mode' => mode, 'name' => name, 'vrack' => vrack }
  )
end

#service_name_virtual_network_interface_uuid_disable_post(service_name:, uuid:) ⇒ Object

Raises:

  • (ArgumentError)


1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
# File 'lib/ovh-api/api/dedicated/server.rb', line 1597

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/virtualNetworkInterface/{uuid}/disable'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{uuid}', ERB::Util.url_encode(uuid.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_virtual_network_interface_uuid_enable_post(service_name:, uuid:) ⇒ Object

Raises:

  • (ArgumentError)


1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
# File 'lib/ovh-api/api/dedicated/server.rb', line 1611

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

  @connection.call(
    :POST,
    '/dedicated/server/{serviceName}/virtualNetworkInterface/{uuid}/enable'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{uuid}', ERB::Util.url_encode(uuid.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_virtual_network_interface_uuid_get(service_name:, uuid:) ⇒ Object

Raises:

  • (ArgumentError)


1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
# File 'lib/ovh-api/api/dedicated/server.rb', line 1625

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

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

#service_name_virtual_network_interface_uuid_put(service_name:, uuid:, dedicated_virtual_network_interface_virtual_network_interface:) ⇒ Object

Raises:

  • (ArgumentError)


1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
# File 'lib/ovh-api/api/dedicated/server.rb', line 1639

def service_name_virtual_network_interface_uuid_put(service_name:, uuid:, dedicated_virtual_network_interface_virtual_network_interface:)
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'uuid is required' if uuid.nil?
  raise ArgumentError, 'dedicated_virtual_network_interface_virtual_network_interface is required' if dedicated_virtual_network_interface_virtual_network_interface.nil?

  @connection.call(
    :PUT,
    '/dedicated/server/{serviceName}/virtualNetworkInterface/{uuid}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{uuid}', ERB::Util.url_encode(uuid.to_s)),
    type: nil,
    auth: [],
    body: dedicated_virtual_network_interface_virtual_network_interface
  )
end

#service_name_vrack_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrack_vrack_delete(service_name:, vrack:) ⇒ Object

Raises:

  • (ArgumentError)


1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
# File 'lib/ovh-api/api/dedicated/server.rb', line 1667

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

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

#service_name_vrack_vrack_get(service_name:, vrack:) ⇒ Object

Raises:

  • (ArgumentError)


1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
# File 'lib/ovh-api/api/dedicated/server.rb', line 1681

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

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

#service_name_vrack_vrack_mrtg_get(period:, service_name:, type:, vrack:) ⇒ Object

Raises:

  • (ArgumentError)


1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
# File 'lib/ovh-api/api/dedicated/server.rb', line 1695

def service_name_vrack_vrack_mrtg_get(period:, service_name:, type:, vrack:)
  raise ArgumentError, 'period is required' if period.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'type is required' if type.nil?
  raise ArgumentError, 'vrack is required' if vrack.nil?

  @connection.call(
    :GET,
    '/dedicated/server/{serviceName}/vrack/{vrack}/mrtg'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{vrack}', ERB::Util.url_encode(vrack.to_s)),
    type: nil,
    auth: [],
    query: { 'period' => period, 'type' => type }
  )
end

#virtual_network_interface_uuid_get(uuid:) ⇒ Object

Raises:

  • (ArgumentError)


1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
# File 'lib/ovh-api/api/dedicated/server.rb', line 1712

def virtual_network_interface_uuid_get(uuid:)
  raise ArgumentError, 'uuid is required' if uuid.nil?

  @connection.call(
    :GET,
    '/dedicated/server/virtualNetworkInterface/{uuid}'
      .gsub('{uuid}', ERB::Util.url_encode(uuid.to_s)),
    type: nil,
    auth: []
  )
end