Class: Cdn::Dedicated

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

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Dedicated

Returns a new instance of Dedicated.



6
7
8
# File 'lib/ovh-api/api/cdn/dedicated.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/cdn/dedicated.rb', line 10

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

#log_kind_getObject



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

def log_kind_get
  @connection.call(
    :GET,
    '/cdn/dedicated/log/kind',
    type: nil,
    auth: []
  )
end

#log_kind_name_get(name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#pops_getObject



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

def pops_get
  @connection.call(
    :GET,
    '/cdn/dedicated/pops',
    type: nil,
    auth: []
  )
end

#pops_name_get(name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :GET,
    '/cdn/dedicated/pops/{name}'
      .gsub('{name}', ERB::Util.url_encode(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)


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

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,
    '/cdn/dedicated/{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_domains_domain_backends_get(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_domains_domain_backends_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,
    '/cdn/dedicated/{serviceName}/domains/{domain}/backends'
      .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_domains_domain_backends_ip_delete(domain:, ip:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 89

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

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

#service_name_domains_domain_backends_ip_get(domain:, ip:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_domains_domain_backends_post(domain:, service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_domains_domain_cache_rules_cache_rule_id_delete(cache_rule_id:, domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 137

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

  @connection.call(
    :DELETE,
    '/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules/{cacheRuleId}'
      .gsub('{cacheRuleId}', ERB::Util.url_encode(cache_rule_id.to_s))
      .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_domains_domain_cache_rules_cache_rule_id_flush_post(cache_rule_id:, domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 153

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

  @connection.call(
    :POST,
    '/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules/{cacheRuleId}/flush'
      .gsub('{cacheRuleId}', ERB::Util.url_encode(cache_rule_id.to_s))
      .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_domains_domain_cache_rules_cache_rule_id_get(cache_rule_id:, domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 169

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

  @connection.call(
    :GET,
    '/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules/{cacheRuleId}'
      .gsub('{cacheRuleId}', ERB::Util.url_encode(cache_rule_id.to_s))
      .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_domains_domain_cache_rules_cache_rule_id_put(cache_rule_id:, domain:, service_name:, cdnanycast_cache_rule:) ⇒ Object

Raises:

  • (ArgumentError)


185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 185

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

  @connection.call(
    :PUT,
    '/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules/{cacheRuleId}'
      .gsub('{cacheRuleId}', ERB::Util.url_encode(cache_rule_id.to_s))
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s))
      .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)),
    type: nil,
    auth: [],
    body: cdnanycast_cache_rule
  )
end

#service_name_domains_domain_cache_rules_cache_rule_id_tasks_get(cache_rule_id:, domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :GET,
    '/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules/{cacheRuleId}/tasks'
      .gsub('{cacheRuleId}', ERB::Util.url_encode(cache_rule_id.to_s))
      .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_domains_domain_cache_rules_cache_rule_id_tasks_task_id_get(cache_rule_id:, domain:, service_name:, task_id:) ⇒ Object

Raises:

  • (ArgumentError)


219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 219

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

  @connection.call(
    :GET,
    '/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules/{cacheRuleId}/tasks/{taskId}'
      .gsub('{cacheRuleId}', ERB::Util.url_encode(cache_rule_id.to_s))
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s))
      .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_domains_domain_cache_rules_get(domain:, service_name:, file_match: nil) ⇒ Object

Raises:

  • (ArgumentError)


237
238
239
240
241
242
243
244
245
246
247
248
249
250
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 237

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

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

#service_name_domains_domain_cache_rules_post(domain:, service_name:, cdn_dedicated_service_name_domains_domain_cache_rules_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_domains_domain_delete(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


268
269
270
271
272
273
274
275
276
277
278
279
280
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 268

def service_name_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,
    '/cdn/dedicated/{serviceName}/domains/{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_domains_domain_flush_post(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :POST,
    '/cdn/dedicated/{serviceName}/domains/{domain}/flush'
      .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_domains_domain_get(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

def service_name_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,
    '/cdn/dedicated/{serviceName}/domains/{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_domains_domain_logs_post(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


310
311
312
313
314
315
316
317
318
319
320
321
322
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 310

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

  @connection.call(
    :POST,
    '/cdn/dedicated/{serviceName}/domains/{domain}/logs'
      .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_domains_domain_put(domain:, service_name:, cdnanycast_domain:) ⇒ Object

Raises:

  • (ArgumentError)


324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 324

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

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

#service_name_domains_domain_statistics_get(domain:, period:, service_name:, type:, value:) ⇒ Object

Raises:

  • (ArgumentError)


340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 340

def service_name_domains_domain_statistics_get(domain:, period:, service_name:, type:, value:)
  raise ArgumentError, 'domain is required' if domain.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?
  raise ArgumentError, 'value is required' if value.nil?

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

#service_name_domains_domain_tasks_get(domain:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


358
359
360
361
362
363
364
365
366
367
368
369
370
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 358

def service_name_domains_domain_tasks_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,
    '/cdn/dedicated/{serviceName}/domains/{domain}/tasks'
      .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_domains_domain_tasks_task_id_get(domain:, service_name:, task_id:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

  @connection.call(
    :GET,
    '/cdn/dedicated/{serviceName}/domains/{domain}/tasks/{taskId}'
      .gsub('{domain}', ERB::Util.url_encode(domain.to_s))
      .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_domains_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


388
389
390
391
392
393
394
395
396
397
398
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 388

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

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

#service_name_domains_post(service_name:, body:) ⇒ Object

Raises:

  • (ArgumentError)


400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 400

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

#service_name_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


414
415
416
417
418
419
420
421
422
423
424
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 414

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

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


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

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

  @connection.call(
    :GET,
    '/cdn/dedicated/{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:, dbaas_logs_log_subscription_creation:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_log_subscription_subscription_id_delete(service_name:, subscription_id:) ⇒ Object

Raises:

  • (ArgumentError)


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

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,
    '/cdn/dedicated/{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)


467
468
469
470
471
472
473
474
475
476
477
478
479
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 467

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,
    '/cdn/dedicated/{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:, dbaas_logs_log_url_creation:) ⇒ Object

Raises:

  • (ArgumentError)


481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 481

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

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

#service_name_logs_post(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_quota_get(period:, service_name:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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

#service_name_service_infos_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


521
522
523
524
525
526
527
528
529
530
531
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 521

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

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


533
534
535
536
537
538
539
540
541
542
543
544
545
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 533

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

#service_name_ssl_delete(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


547
548
549
550
551
552
553
554
555
556
557
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 547

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

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

#service_name_ssl_get(service_name:) ⇒ Object

Raises:

  • (ArgumentError)


559
560
561
562
563
564
565
566
567
568
569
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 559

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

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

#service_name_ssl_post(service_name:, cdn_dedicated_service_name_ssl_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


571
572
573
574
575
576
577
578
579
580
581
582
583
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 571

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

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

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

Raises:

  • (ArgumentError)


585
586
587
588
589
590
591
592
593
594
595
596
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 585

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

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

#service_name_ssl_tasks_task_id_get(service_name:, task_id:) ⇒ Object

Raises:

  • (ArgumentError)


598
599
600
601
602
603
604
605
606
607
608
609
610
# File 'lib/ovh-api/api/cdn/dedicated.rb', line 598

def service_name_ssl_tasks_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,
    '/cdn/dedicated/{serviceName}/ssl/tasks/{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_ssl_update_post(service_name:, cdn_dedicated_service_name_ssl_update_post_request:) ⇒ Object

Raises:

  • (ArgumentError)


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

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

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