Class: Ovh::Api::Api::DedicatedCloud

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

Defined Under Namespace

Classes: AllowedNetwork, BackupRepository, CommercialRange, Datacenter, Filer, Ip, Location, Robot, Sap, ServicePacks, Tag, Task, TwoFAWhitelist, User, Vlan, Vrack

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ DedicatedCloud

Returns a new instance of DedicatedCloud.



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

def initialize(connection)
  @connection = connection
end

Instance Method Details

#get(iam_tags: nil) ⇒ Object



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

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

#service_name_can_deploy_nsxt_edges_on_global_datastores_get(service_name:, count: nil, size: nil) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_can_deploy_nsxt_edges_on_global_datastores_get(service_name:, count: nil, size: nil)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/canDeployNsxtEdgesOnGlobalDatastores'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'count' => count, 'size' => size }
  )
end

#service_name_capabilities_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


33
34
35
36
37
38
39
40
41
42
43
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 33

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

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

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

Raises:

  • (ArgumentError)


45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 45

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,
    '/dedicatedCloud/{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_change_properties_post(service_name:, dedicated_cloud_service_name_change_properties_post_request: nil) ⇒ Object

Raises:

  • (ArgumentError)


58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 58

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

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

#service_name_confirm_termination_post(service_name:, cloud_project_service_name_confirm_termination_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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,
    '/dedicatedCloud/{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_federation_active_directory_active_directory_id_change_properties_post(active_directory_id:, service_name:, dedicated_cloud_service_name_federation_active_directory_activ_h85bb87e5:) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_federation_active_directory_active_directory_id_change_properties_post(active_directory_id:, service_name:, dedicated_cloud_service_name_federation_active_directory_activ_h85bb87e5:)
  raise ArgumentError, 'active_directory_id is required' if active_directory_id.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'dedicated_cloud_service_name_federation_active_directory_activ_h85bb87e5 is required' if dedicated_cloud_service_name_federation_active_directory_activ_h85bb87e5.nil?

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/federation/activeDirectory/{activeDirectoryId}/changeProperties'
      .gsub('{activeDirectoryId}', ERB::Util.url_encode(active_directory_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_cloud_service_name_federation_active_directory_activ_h85bb87e5
  )
end

#service_name_federation_active_directory_active_directory_id_delete(active_directory_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 101

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

  @connection.call(
    :DELETE,
    '/dedicatedCloud/{serviceName}/federation/activeDirectory/{activeDirectoryId}'
      .gsub('{activeDirectoryId}', ERB::Util.url_encode(active_directory_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_federation_active_directory_active_directory_id_get(active_directory_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 115

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

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/federation/activeDirectory/{activeDirectoryId}'
      .gsub('{activeDirectoryId}', ERB::Util.url_encode(active_directory_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_federation_active_directory_active_directory_id_grant_active_directory_group_post(active_directory_id:, service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 129

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/federation/activeDirectory/{activeDirectoryId}/grantActiveDirectoryGroup'
      .gsub('{activeDirectoryId}', ERB::Util.url_encode(active_directory_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#service_name_federation_active_directory_active_directory_id_grant_active_directory_user_post(active_directory_id:, service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/federation/activeDirectory/{activeDirectoryId}/grantActiveDirectoryUser'
      .gsub('{activeDirectoryId}', ERB::Util.url_encode(active_directory_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#service_name_federation_active_directory_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


161
162
163
164
165
166
167
168
169
170
171
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 161

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

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

#service_name_federation_active_directory_post(service_name:, dedicated_cloud_service_name_federation_active_directory_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 173

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/federation/activeDirectory'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_cloud_service_name_federation_active_directory_post_request
  )
end

#service_name_federation_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


187
188
189
190
191
192
193
194
195
196
197
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 187

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

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

#service_name_generate_nsxv_inventory_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


199
200
201
202
203
204
205
206
207
208
209
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 199

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

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

#service_name_generate_vxlan_to_vrack_mapping_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


211
212
213
214
215
216
217
218
219
220
221
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 211

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

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

#service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


223
224
225
226
227
228
229
230
231
232
233
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 223

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

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

#service_name_global_tasks_get(service_name:, datacenter_id: nil, end_date_from: nil, end_date_to: nil, execution_date_from: nil, execution_date_to: nil, filer_id: nil, host_id: nil, last_modification_date_from: nil, last_modification_date_to: nil, name: nil, network_access_id: nil, order_id: nil, parent_task_id: nil, state: nil, user_id: nil, vlan_id: nil) ⇒ Object

Raises:

  • (ArgumentError)


235
236
237
238
239
240
241
242
243
244
245
246
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 235

def service_name_global_tasks_get(service_name:, datacenter_id: nil, end_date_from: nil, end_date_to: nil, execution_date_from: nil, execution_date_to: nil, filer_id: nil, host_id: nil, last_modification_date_from: nil, last_modification_date_to: nil, name: nil, network_access_id: nil, order_id: nil, parent_task_id: nil, state: nil, user_id: nil, vlan_id: nil)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/globalTasks'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'datacenterId' => datacenter_id, 'endDate.from' => end_date_from, 'endDate.to' => end_date_to, 'executionDate.from' => execution_date_from, 'executionDate.to' => execution_date_to, 'filerId' => filer_id, 'hostId' => host_id, 'lastModificationDate.from' => last_modification_date_from, 'lastModificationDate.to' => last_modification_date_to, 'name' => name, 'networkAccessId' => network_access_id, 'orderId' => order_id, 'parentTaskId' => parent_task_id, 'state' => state, 'userId' => user_id, 'vlanId' => vlan_id }
  )
end

#service_name_hcx_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


248
249
250
251
252
253
254
255
256
257
258
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 248

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

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

#service_name_hcx_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


260
261
262
263
264
265
266
267
268
269
270
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 260

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

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

#service_name_hcx_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


272
273
274
275
276
277
278
279
280
281
282
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 272

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

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

#service_name_hcx_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


284
285
286
287
288
289
290
291
292
293
294
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 284

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

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

#service_name_hcx_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


296
297
298
299
300
301
302
303
304
305
306
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 296

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

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

#service_name_hds_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


308
309
310
311
312
313
314
315
316
317
318
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 308

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

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

#service_name_hds_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_hds_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


332
333
334
335
336
337
338
339
340
341
342
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 332

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

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

#service_name_hds_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_hds_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_hipaa_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_hipaa_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_hipaa_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_hipaa_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_hipaa_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_iam_add_role_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


428
429
430
431
432
433
434
435
436
437
438
439
440
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 428

def service_name_iam_add_role_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,
    '/dedicatedCloud/{serviceName}/iam/addRole'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#service_name_iam_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


442
443
444
445
446
447
448
449
450
451
452
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 442

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

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

#service_name_iam_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


454
455
456
457
458
459
460
461
462
463
464
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 454

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

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

#service_name_iam_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


466
467
468
469
470
471
472
473
474
475
476
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 466

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

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

#service_name_iam_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


478
479
480
481
482
483
484
485
486
487
488
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 478

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

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

#service_name_iam_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


490
491
492
493
494
495
496
497
498
499
500
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 490

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

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

#service_name_log_forwarder_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


502
503
504
505
506
507
508
509
510
511
512
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 502

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

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

#service_name_log_forwarder_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_log_forwarder_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_log_forwarder_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


538
539
540
541
542
543
544
545
546
547
548
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 538

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

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

#service_name_log_forwarder_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


550
551
552
553
554
555
556
557
558
559
560
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 550

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

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

#service_name_log_kind_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


562
563
564
565
566
567
568
569
570
571
572
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 562

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

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

#service_name_log_kind_name_get(name:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_log_subscription_get(service_name:, kind: nil) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/log/subscription'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'kind' => kind }
  )
end

#service_name_log_subscription_post(service_name:, dedicated_cloud_service_name_log_subscription_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/log/subscription'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_cloud_service_name_log_subscription_post_request
  )
end

#service_name_log_subscription_subscription_id_delete(service_name:, subscription_id:) ⇒ Object

Raises:

  • (ArgumentError)


615
616
617
618
619
620
621
622
623
624
625
626
627
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 615

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

  @connection.call(
    :DELETE,
    '/dedicatedCloud/{serviceName}/log/subscription/{subscriptionId}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{subscriptionId}', ERB::Util.url_encode(subscription_id.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_log_subscription_subscription_id_get(service_name:, subscription_id:) ⇒ Object

Raises:

  • (ArgumentError)


629
630
631
632
633
634
635
636
637
638
639
640
641
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 629

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

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/log/subscription/{subscriptionId}'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s))
      .gsub('{subscriptionId}', ERB::Util.url_encode(subscription_id.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_log_url_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


643
644
645
646
647
648
649
650
651
652
653
654
655
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 643

def service_name_log_url_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,
    '/dedicatedCloud/{serviceName}/log/url'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#service_name_new_prices_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


657
658
659
660
661
662
663
664
665
666
667
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 657

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

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

#service_name_nsx_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_nsx_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_nsx_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_nsx_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_nsx_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_nsxt_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_order_new_filer_hourly_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_order_new_filer_hourly_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,
    '/dedicatedCloud/{serviceName}/orderNewFilerHourly'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#service_name_orderable_ip_countries_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_password_policy_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_pcidss_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


779
780
781
782
783
784
785
786
787
788
789
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 779

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

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

#service_name_pcidss_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


791
792
793
794
795
796
797
798
799
800
801
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 791

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

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

#service_name_pcidss_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_pcidss_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_pcidss_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


827
828
829
830
831
832
833
834
835
836
837
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 827

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

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

#service_name_put(service_name:, dedicated_cloud_dedicated_cloud:) ⇒ Object

Raises:

  • (ArgumentError)


839
840
841
842
843
844
845
846
847
848
849
850
851
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 839

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

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

#service_name_reset_triggered_alarm_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


853
854
855
856
857
858
859
860
861
862
863
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 853

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

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

#service_name_security_options_compatibility_matrix_get(service_name:, show_incompatible: nil, show_internal: nil) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_security_options_compatibility_matrix_get(service_name:, show_incompatible: nil, show_internal: nil)
  raise ArgumentError, 'service_name is required' if service_name.nil?

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/securityOptions/compatibilityMatrix'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'showIncompatible' => show_incompatible, 'showInternal' => show_internal }
  )
end

#service_name_security_options_dependencies_tree_get(option:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


878
879
880
881
882
883
884
885
886
887
888
889
890
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 878

def service_name_security_options_dependencies_tree_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,
    '/dedicatedCloud/{serviceName}/securityOptions/dependenciesTree'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    query: { 'option' => option }
  )
end

#service_name_security_options_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


892
893
894
895
896
897
898
899
900
901
902
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 892

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

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

#service_name_security_options_pending_options_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


904
905
906
907
908
909
910
911
912
913
914
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 904

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

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

#service_name_security_options_resume_pending_enabling_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


916
917
918
919
920
921
922
923
924
925
926
927
928
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 916

def service_name_security_options_resume_pending_enabling_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,
    '/dedicatedCloud/{serviceName}/securityOptions/resumePendingEnabling'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#service_name_service_infos_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


930
931
932
933
934
935
936
937
938
939
940
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 930

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

  @connection.call(
    :GET,
    '/dedicatedCloud/{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)


942
943
944
945
946
947
948
949
950
951
952
953
954
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 942

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,
    '/dedicatedCloud/{serviceName}/serviceInfos'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: services_service
  )
end

#service_name_service_pack_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


956
957
958
959
960
961
962
963
964
965
966
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 956

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

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

#service_name_terminate_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


968
969
970
971
972
973
974
975
976
977
978
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 968

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

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

#service_name_upgrade_hypervisor_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


980
981
982
983
984
985
986
987
988
989
990
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 980

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

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

#service_name_upgrade_vcenter_post(service_name:, body: nil) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vcenter_version_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vendor_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1017

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

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

#service_name_vendor_object_type_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1029

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

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

#service_name_vendor_ovh_id_post(service_name:, dedicated_cloud_service_name_vendor_ovh_id_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/vendor/ovhId'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_cloud_service_name_vendor_ovh_id_post_request
  )
end

#service_name_vm_encryption_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vm_encryption_kms_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vm_encryption_kms_kms_id_change_properties_post(kms_id:, service_name:, dedicated_cloud_service_name_vm_encryption_kms_kms_id_change_ph37306712:) ⇒ Object

Raises:

  • (ArgumentError)


1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1079

def service_name_vm_encryption_kms_kms_id_change_properties_post(kms_id:, service_name:, dedicated_cloud_service_name_vm_encryption_kms_kms_id_change_ph37306712:)
  raise ArgumentError, 'kms_id is required' if kms_id.nil?
  raise ArgumentError, 'service_name is required' if service_name.nil?
  raise ArgumentError, 'dedicated_cloud_service_name_vm_encryption_kms_kms_id_change_ph37306712 is required' if dedicated_cloud_service_name_vm_encryption_kms_kms_id_change_ph37306712.nil?

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/vmEncryption/kms/{kmsId}/changeProperties'
      .gsub('{kmsId}', ERB::Util.url_encode(kms_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_cloud_service_name_vm_encryption_kms_kms_id_change_ph37306712
  )
end

#service_name_vm_encryption_kms_kms_id_delete(kms_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1095

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

  @connection.call(
    :DELETE,
    '/dedicatedCloud/{serviceName}/vmEncryption/kms/{kmsId}'
      .gsub('{kmsId}', ERB::Util.url_encode(kms_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_vm_encryption_kms_kms_id_get(kms_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1109

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

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/vmEncryption/kms/{kmsId}'
      .gsub('{kmsId}', ERB::Util.url_encode(kms_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_vm_encryption_kms_post(service_name:, dedicated_cloud_service_name_vm_encryption_kms_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/vmEncryption/kms'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_cloud_service_name_vm_encryption_kms_post_request
  )
end

#service_name_vmware_cloud_director_eligibility_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrops_can_be_disabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrops_can_be_enabled_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrops_disable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrops_enable_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrops_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrops_outgoing_flow_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_vrops_outgoing_flow_outgoing_flow_id_change_properties_post(outgoing_flow_id:, service_name:, body: nil) ⇒ Object

Raises:

  • (ArgumentError)


1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1221

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/vrops/outgoingFlow/{outgoingFlowId}/changeProperties'
      .gsub('{outgoingFlowId}', ERB::Util.url_encode(outgoing_flow_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: body
  )
end

#service_name_vrops_outgoing_flow_outgoing_flow_id_delete(outgoing_flow_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1236

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

  @connection.call(
    :DELETE,
    '/dedicatedCloud/{serviceName}/vrops/outgoingFlow/{outgoingFlowId}'
      .gsub('{outgoingFlowId}', ERB::Util.url_encode(outgoing_flow_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_vrops_outgoing_flow_outgoing_flow_id_get(outgoing_flow_id:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1250

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

  @connection.call(
    :GET,
    '/dedicatedCloud/{serviceName}/vrops/outgoingFlow/{outgoingFlowId}'
      .gsub('{outgoingFlowId}', ERB::Util.url_encode(outgoing_flow_id.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: []
  )
end

#service_name_vrops_outgoing_flow_post(service_name:, dedicated_cloud_service_name_vrops_outgoing_flow_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1264

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

  @connection.call(
    :POST,
    '/dedicatedCloud/{serviceName}/vrops/outgoingFlow'
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: dedicated_cloud_service_name_vrops_outgoing_flow_post_request
  )
end

#service_name_vrops_upgrade_post(service_name:, body: nil) ⇒ Object

Raises:

  • (ArgumentError)


1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
# File 'lib/ovh-api/api/dedicated_cloud.rb', line 1278

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

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