azure_mgmt_cdn 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_cdn/cdn_management_client.rb +42 -426
  3. data/lib/generated/azure_mgmt_cdn/custom_domains.rb +2 -2
  4. data/lib/generated/azure_mgmt_cdn/edge_nodes.rb +14 -7
  5. data/lib/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +3 -0
  6. data/lib/generated/azure_mgmt_cdn/models/custom_domain.rb +22 -2
  7. data/lib/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -0
  8. data/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  9. data/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb +3 -2
  10. data/lib/generated/azure_mgmt_cdn/models/edge_node.rb +2 -1
  11. data/lib/generated/azure_mgmt_cdn/models/edgenode_result.rb +1 -0
  12. data/lib/generated/azure_mgmt_cdn/models/endpoint.rb +27 -8
  13. data/lib/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +2 -1
  14. data/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +28 -9
  15. data/lib/generated/azure_mgmt_cdn/models/error_response.rb +2 -0
  16. data/lib/generated/azure_mgmt_cdn/models/geo_filter.rb +1 -1
  17. data/lib/generated/azure_mgmt_cdn/models/operation.rb +1 -0
  18. data/lib/generated/azure_mgmt_cdn/models/operation_display.rb +3 -0
  19. data/lib/generated/azure_mgmt_cdn/models/{operation_list_result.rb → operations_list_result.rb} +6 -5
  20. data/lib/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  21. data/lib/generated/azure_mgmt_cdn/models/origin_list_result.rb +1 -0
  22. data/lib/generated/azure_mgmt_cdn/models/profile.rb +2 -4
  23. data/lib/generated/azure_mgmt_cdn/models/profile_list_result.rb +1 -0
  24. data/lib/generated/azure_mgmt_cdn/models/resource_usage.rb +7 -3
  25. data/lib/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +1 -0
  26. data/lib/generated/azure_mgmt_cdn/models/sso_uri.rb +3 -1
  27. data/lib/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +54 -0
  28. data/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +4 -2
  29. data/lib/generated/azure_mgmt_cdn/models/validate_probe_input.rb +45 -0
  30. data/lib/generated/azure_mgmt_cdn/models/validate_probe_output.rb +70 -0
  31. data/lib/generated/azure_mgmt_cdn/operations.rb +215 -0
  32. data/lib/generated/azure_mgmt_cdn/profiles.rb +100 -0
  33. data/lib/generated/azure_mgmt_cdn/resource_usage_operations.rb +224 -0
  34. data/lib/generated/azure_mgmt_cdn/version.rb +1 -1
  35. data/lib/generated/azure_mgmt_cdn.rb +22 -15
  36. metadata +12 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b87fa729454f4032205245c74c1ddf7e2111a812
4
- data.tar.gz: 98b52c59f6dee8a1cda6852827cd51d961cc523d
3
+ metadata.gz: 1b7098aeacfe14d41044f59094f5e6eb75d718f3
4
+ data.tar.gz: 6d12e074e54e5d278259313a07c3891b49067b8c
5
5
  SHA512:
6
- metadata.gz: 23d3d89357bf0174e91dff65a2b3b1ef407d47c3764cae0a6aa5c12d7990c40b809b0c89b663330220c722440af3e2da7e6e92b90f18733033b750b0e430f747
7
- data.tar.gz: c6de869ba71e7c56e85e4585f5c5a6bf91a48a2cb6d993168c9e8e0712478b474f27241eb7c187a3b6964887b51a6032ce5313a329392e5d400409ce47c85c4b
6
+ metadata.gz: bfea28cc0e46521c5eb0064c700bf2c2e1c7d5e21e6fbac919aa34f935074f87f795ad09a6d66e591c6dc3d17c57088681d26ee6090df5ae51db72934299b76e
7
+ data.tar.gz: 01f07f31b058c49026dca34618e9f02954142196291ae8e0720eda630c957968318d7ae6c2ff90cc423eaa898e5cad9563ecf1bdb51b3a434d25617420f18d8c
@@ -21,7 +21,7 @@ module Azure::ARM::CDN
21
21
  attr_accessor :subscription_id
22
22
 
23
23
  # @return [String] Version of the API to be used with the client request.
24
- # Current version is 2016-10-02.
24
+ # Current version is 2017-04-02.
25
25
  attr_reader :api_version
26
26
 
27
27
  # @return [String] Gets or sets the preferred language for the response.
@@ -47,6 +47,12 @@ module Azure::ARM::CDN
47
47
  # @return [CustomDomains] custom_domains
48
48
  attr_reader :custom_domains
49
49
 
50
+ # @return [ResourceUsageOperations] resource_usage_operations
51
+ attr_reader :resource_usage_operations
52
+
53
+ # @return [Operations] operations
54
+ attr_reader :operations
55
+
50
56
  # @return [EdgeNodes] edge_nodes
51
57
  attr_reader :edge_nodes
52
58
 
@@ -67,8 +73,10 @@ module Azure::ARM::CDN
67
73
  @endpoints = Endpoints.new(self)
68
74
  @origins = Origins.new(self)
69
75
  @custom_domains = CustomDomains.new(self)
76
+ @resource_usage_operations = ResourceUsageOperations.new(self)
77
+ @operations = Operations.new(self)
70
78
  @edge_nodes = EdgeNodes.new(self)
71
- @api_version = '2016-10-02'
79
+ @api_version = '2017-04-02'
72
80
  @accept_language = 'en-US'
73
81
  @long_running_operation_retry_timeout = 30
74
82
  @generate_client_request_id = true
@@ -231,42 +239,52 @@ module Azure::ARM::CDN
231
239
  end
232
240
 
233
241
  #
234
- # Check the quota and actual usage of the CDN profiles under the given
235
- # subscription.
242
+ # Check if the probe path is a valid path and the file can be accessed. Probe
243
+ # path is the path to a file hosted on the origin server to help accelerate the
244
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
245
+ # the origin path specified in the endpoint configuration.
236
246
  #
247
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
237
248
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
238
249
  # will be added to the HTTP request.
239
250
  #
240
- # @return [Array<ResourceUsage>] operation results.
251
+ # @return [ValidateProbeOutput] operation results.
241
252
  #
242
- def list_resource_usage(custom_headers = nil)
243
- first_page = list_resource_usage_as_lazy(custom_headers)
244
- first_page.get_all_items
253
+ def validate_probe(validate_probe_input, custom_headers = nil)
254
+ response = validate_probe_async(validate_probe_input, custom_headers).value!
255
+ response.body unless response.nil?
245
256
  end
246
257
 
247
258
  #
248
- # Check the quota and actual usage of the CDN profiles under the given
249
- # subscription.
259
+ # Check if the probe path is a valid path and the file can be accessed. Probe
260
+ # path is the path to a file hosted on the origin server to help accelerate the
261
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
262
+ # the origin path specified in the endpoint configuration.
250
263
  #
264
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
251
265
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
266
  # will be added to the HTTP request.
253
267
  #
254
268
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
255
269
  #
256
- def list_resource_usage_with_http_info(custom_headers = nil)
257
- list_resource_usage_async(custom_headers).value!
270
+ def validate_probe_with_http_info(validate_probe_input, custom_headers = nil)
271
+ validate_probe_async(validate_probe_input, custom_headers).value!
258
272
  end
259
273
 
260
274
  #
261
- # Check the quota and actual usage of the CDN profiles under the given
262
- # subscription.
275
+ # Check if the probe path is a valid path and the file can be accessed. Probe
276
+ # path is the path to a file hosted on the origin server to help accelerate the
277
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
278
+ # the origin path specified in the endpoint configuration.
263
279
  #
280
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
264
281
  # @param [Hash{String => String}] A hash of custom headers that will be added
265
282
  # to the HTTP request.
266
283
  #
267
284
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
268
285
  #
269
- def list_resource_usage_async(custom_headers = nil)
286
+ def validate_probe_async(validate_probe_input, custom_headers = nil)
287
+ fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil?
270
288
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
271
289
  fail ArgumentError, 'api_version is nil' if api_version.nil?
272
290
 
@@ -276,350 +294,23 @@ module Azure::ARM::CDN
276
294
  # Set Headers
277
295
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
278
296
  request_headers['accept-language'] = accept_language unless accept_language.nil?
279
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage'
280
-
281
- request_url = @base_url || self.base_url
282
-
283
- options = {
284
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
285
- path_params: {'subscriptionId' => subscription_id},
286
- query_params: {'api-version' => api_version},
287
- headers: request_headers.merge(custom_headers || {}),
288
- base_url: request_url
289
- }
290
- promise = self.make_request_async(:post, path_template, options)
291
-
292
- promise = promise.then do |result|
293
- http_response = result.response
294
- status_code = http_response.status
295
- response_content = http_response.body
296
- unless status_code == 200
297
- error_model = JSON.load(response_content)
298
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
299
- end
300
-
301
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
302
- # Deserialize Response
303
- if status_code == 200
304
- begin
305
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
306
- result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
307
- result.body = self.deserialize(result_mapper, parsed_response)
308
- rescue Exception => e
309
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
310
- end
311
- end
312
-
313
- result
314
- end
315
-
316
- promise.execute
317
- end
318
-
319
- #
320
- # Lists all of the available CDN REST API operations.
321
- #
322
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
323
- # will be added to the HTTP request.
324
- #
325
- # @return [Array<Operation>] operation results.
326
- #
327
- def list_operations(custom_headers = nil)
328
- first_page = list_operations_as_lazy(custom_headers)
329
- first_page.get_all_items
330
- end
331
-
332
- #
333
- # Lists all of the available CDN REST API operations.
334
- #
335
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
336
- # will be added to the HTTP request.
337
- #
338
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
339
- #
340
- def list_operations_with_http_info(custom_headers = nil)
341
- list_operations_async(custom_headers).value!
342
- end
343
-
344
- #
345
- # Lists all of the available CDN REST API operations.
346
- #
347
- # @param [Hash{String => String}] A hash of custom headers that will be added
348
- # to the HTTP request.
349
- #
350
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
351
- #
352
- def list_operations_async(custom_headers = nil)
353
- fail ArgumentError, 'api_version is nil' if api_version.nil?
354
297
 
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
355
299
 
356
- request_headers = {}
300
+ # Serialize Request
301
+ request_mapper = Azure::ARM::CDN::Models::ValidateProbeInput.mapper()
302
+ request_content = self.serialize(request_mapper, validate_probe_input)
303
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
357
304
 
358
- # Set Headers
359
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
360
- request_headers['accept-language'] = accept_language unless accept_language.nil?
361
- path_template = 'providers/Microsoft.Cdn/operations'
305
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe'
362
306
 
363
307
  request_url = @base_url || self.base_url
364
308
 
365
309
  options = {
366
310
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
311
+ path_params: {'subscriptionId' => subscription_id},
367
312
  query_params: {'api-version' => api_version},
368
- headers: request_headers.merge(custom_headers || {}),
369
- base_url: request_url
370
- }
371
- promise = self.make_request_async(:get, path_template, options)
372
-
373
- promise = promise.then do |result|
374
- http_response = result.response
375
- status_code = http_response.status
376
- response_content = http_response.body
377
- unless status_code == 200
378
- error_model = JSON.load(response_content)
379
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
380
- end
381
-
382
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
383
- # Deserialize Response
384
- if status_code == 200
385
- begin
386
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
387
- result_mapper = Azure::ARM::CDN::Models::OperationListResult.mapper()
388
- result.body = self.deserialize(result_mapper, parsed_response)
389
- rescue Exception => e
390
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
391
- end
392
- end
393
-
394
- result
395
- end
396
-
397
- promise.execute
398
- end
399
-
400
- #
401
- # Check the quota and actual usage of the CDN profiles under the given
402
- # subscription.
403
- #
404
- # @param next_page_link [String] The NextLink from the previous successful call
405
- # to List operation.
406
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
407
- # will be added to the HTTP request.
408
- #
409
- # @return [ResourceUsageListResult] operation results.
410
- #
411
- def list_resource_usage_next(next_page_link, custom_headers = nil)
412
- response = list_resource_usage_next_async(next_page_link, custom_headers).value!
413
- response.body unless response.nil?
414
- end
415
-
416
- #
417
- # Check the quota and actual usage of the CDN profiles under the given
418
- # subscription.
419
- #
420
- # @param next_page_link [String] The NextLink from the previous successful call
421
- # to List operation.
422
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
423
- # will be added to the HTTP request.
424
- #
425
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
426
- #
427
- def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil)
428
- list_resource_usage_next_async(next_page_link, custom_headers).value!
429
- end
430
-
431
- #
432
- # Check the quota and actual usage of the CDN profiles under the given
433
- # subscription.
434
- #
435
- # @param next_page_link [String] The NextLink from the previous successful call
436
- # to List operation.
437
- # @param [Hash{String => String}] A hash of custom headers that will be added
438
- # to the HTTP request.
439
- #
440
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
441
- #
442
- def list_resource_usage_next_async(next_page_link, custom_headers = nil)
443
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
444
-
445
-
446
- request_headers = {}
447
-
448
- # Set Headers
449
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
450
- request_headers['accept-language'] = accept_language unless accept_language.nil?
451
- path_template = '{nextLink}'
452
-
453
- request_url = @base_url || self.base_url
454
-
455
- options = {
456
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
457
- skip_encoding_path_params: {'nextLink' => next_page_link},
458
- headers: request_headers.merge(custom_headers || {}),
459
- base_url: request_url
460
- }
461
- promise = self.make_request_async(:post, path_template, options)
462
-
463
- promise = promise.then do |result|
464
- http_response = result.response
465
- status_code = http_response.status
466
- response_content = http_response.body
467
- unless status_code == 200
468
- error_model = JSON.load(response_content)
469
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
470
- end
471
-
472
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
473
- # Deserialize Response
474
- if status_code == 200
475
- begin
476
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
477
- result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
478
- result.body = self.deserialize(result_mapper, parsed_response)
479
- rescue Exception => e
480
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
481
- end
482
- end
483
-
484
- result
485
- end
486
-
487
- promise.execute
488
- end
489
-
490
- #
491
- # Lists all of the available CDN REST API operations.
492
- #
493
- # @param next_page_link [String] The NextLink from the previous successful call
494
- # to List operation.
495
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
496
- # will be added to the HTTP request.
497
- #
498
- # @return [OperationListResult] operation results.
499
- #
500
- def list_operations_next(next_page_link, custom_headers = nil)
501
- response = list_operations_next_async(next_page_link, custom_headers).value!
502
- response.body unless response.nil?
503
- end
504
-
505
- #
506
- # Lists all of the available CDN REST API operations.
507
- #
508
- # @param next_page_link [String] The NextLink from the previous successful call
509
- # to List operation.
510
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
- # will be added to the HTTP request.
512
- #
513
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
514
- #
515
- def list_operations_next_with_http_info(next_page_link, custom_headers = nil)
516
- list_operations_next_async(next_page_link, custom_headers).value!
517
- end
518
-
519
- #
520
- # Lists all of the available CDN REST API operations.
521
- #
522
- # @param next_page_link [String] The NextLink from the previous successful call
523
- # to List operation.
524
- # @param [Hash{String => String}] A hash of custom headers that will be added
525
- # to the HTTP request.
526
- #
527
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
528
- #
529
- def list_operations_next_async(next_page_link, custom_headers = nil)
530
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
531
-
532
-
533
- request_headers = {}
534
-
535
- # Set Headers
536
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
537
- request_headers['accept-language'] = accept_language unless accept_language.nil?
538
- path_template = '{nextLink}'
539
-
540
- request_url = @base_url || self.base_url
541
-
542
- options = {
543
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
544
- skip_encoding_path_params: {'nextLink' => next_page_link},
545
- headers: request_headers.merge(custom_headers || {}),
546
- base_url: request_url
547
- }
548
- promise = self.make_request_async(:get, path_template, options)
549
-
550
- promise = promise.then do |result|
551
- http_response = result.response
552
- status_code = http_response.status
553
- response_content = http_response.body
554
- unless status_code == 200
555
- error_model = JSON.load(response_content)
556
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
557
- end
558
-
559
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
560
- # Deserialize Response
561
- if status_code == 200
562
- begin
563
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
564
- result_mapper = Azure::ARM::CDN::Models::OperationListResult.mapper()
565
- result.body = self.deserialize(result_mapper, parsed_response)
566
- rescue Exception => e
567
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
568
- end
569
- end
570
-
571
- result
572
- end
573
-
574
- promise.execute
575
- end
576
-
577
- #
578
- # Check the quota and actual usage of the CDN profiles under the given
579
- # subscription.
580
- #
581
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
582
- # will be added to the HTTP request.
583
- #
584
- # @return [ResourceUsageListResult] operation results.
585
- #
586
- def list_resource_usage_as_lazy(custom_headers = nil)
587
- first_page = list_resource_usage_as_lazy_as_lazy(custom_headers)
588
- first_page.get_all_items
589
- end
590
-
591
- #
592
- # Check the quota and actual usage of the CDN profiles under the given
593
- # subscription.
594
- #
595
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
596
- # will be added to the HTTP request.
597
- #
598
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
599
- #
600
- def list_resource_usage_as_lazy_with_http_info(custom_headers = nil)
601
- list_resource_usage_as_lazy_async(custom_headers).value!
602
- end
603
-
604
- #
605
- # Check the quota and actual usage of the CDN profiles under the given
606
- # subscription.
607
- #
608
- # @param [Hash{String => String}] A hash of custom headers that will be added
609
- # to the HTTP request.
610
- #
611
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
612
- #
613
- def list_resource_usage_as_lazy_async(custom_headers = nil)
614
-
615
-
616
- request_headers = {}
617
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage'
618
-
619
- request_url = @base_url || self.base_url
620
-
621
- options = {
622
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
313
+ body: request_content,
623
314
  headers: request_headers.merge(custom_headers || {}),
624
315
  base_url: request_url
625
316
  }
@@ -639,82 +330,7 @@ module Azure::ARM::CDN
639
330
  if status_code == 200
640
331
  begin
641
332
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
642
- result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
643
- result.body = self.deserialize(result_mapper, parsed_response)
644
- rescue Exception => e
645
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
646
- end
647
- end
648
-
649
- result
650
- end
651
-
652
- promise.execute
653
- end
654
-
655
- #
656
- # Lists all of the available CDN REST API operations.
657
- #
658
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
659
- # will be added to the HTTP request.
660
- #
661
- # @return [OperationListResult] operation results.
662
- #
663
- def list_operations_as_lazy(custom_headers = nil)
664
- first_page = list_operations_as_lazy_as_lazy(custom_headers)
665
- first_page.get_all_items
666
- end
667
-
668
- #
669
- # Lists all of the available CDN REST API operations.
670
- #
671
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
672
- # will be added to the HTTP request.
673
- #
674
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
675
- #
676
- def list_operations_as_lazy_with_http_info(custom_headers = nil)
677
- list_operations_as_lazy_async(custom_headers).value!
678
- end
679
-
680
- #
681
- # Lists all of the available CDN REST API operations.
682
- #
683
- # @param [Hash{String => String}] A hash of custom headers that will be added
684
- # to the HTTP request.
685
- #
686
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
687
- #
688
- def list_operations_as_lazy_async(custom_headers = nil)
689
-
690
-
691
- request_headers = {}
692
- path_template = 'providers/Microsoft.Cdn/operations'
693
-
694
- request_url = @base_url || self.base_url
695
-
696
- options = {
697
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
698
- headers: request_headers.merge(custom_headers || {}),
699
- base_url: request_url
700
- }
701
- promise = self.make_request_async(:get, path_template, options)
702
-
703
- promise = promise.then do |result|
704
- http_response = result.response
705
- status_code = http_response.status
706
- response_content = http_response.body
707
- unless status_code == 200
708
- error_model = JSON.load(response_content)
709
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
710
- end
711
-
712
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
713
- # Deserialize Response
714
- if status_code == 200
715
- begin
716
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
717
- result_mapper = Azure::ARM::CDN::Models::OperationListResult.mapper()
333
+ result_mapper = Azure::ARM::CDN::Models::ValidateProbeOutput.mapper()
718
334
  result.body = self.deserialize(result_mapper, parsed_response)
719
335
  rescue Exception => e
720
336
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -438,7 +438,7 @@ module Azure::ARM::CDN
438
438
  http_response = result.response
439
439
  status_code = http_response.status
440
440
  response_content = http_response.body
441
- unless status_code == 202 || status_code == 200
441
+ unless status_code == 200 || status_code == 202
442
442
  error_model = JSON.load(response_content)
443
443
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
444
444
  end
@@ -549,7 +549,7 @@ module Azure::ARM::CDN
549
549
  http_response = result.response
550
550
  status_code = http_response.status
551
551
  response_content = http_response.body
552
- unless status_code == 202 || status_code == 200
552
+ unless status_code == 200 || status_code == 202
553
553
  error_model = JSON.load(response_content)
554
554
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
555
555
  end
@@ -24,7 +24,8 @@ module Azure::ARM::CDN
24
24
  attr_reader :client
25
25
 
26
26
  #
27
- # Lists all the edge nodes of a CDN service.
27
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
28
+ # CDN content to end users.
28
29
  #
29
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
31
  # will be added to the HTTP request.
@@ -37,7 +38,8 @@ module Azure::ARM::CDN
37
38
  end
38
39
 
39
40
  #
40
- # Lists all the edge nodes of a CDN service.
41
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
42
+ # CDN content to end users.
41
43
  #
42
44
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
43
45
  # will be added to the HTTP request.
@@ -49,7 +51,8 @@ module Azure::ARM::CDN
49
51
  end
50
52
 
51
53
  #
52
- # Lists all the edge nodes of a CDN service.
54
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
55
+ # CDN content to end users.
53
56
  #
54
57
  # @param [Hash{String => String}] A hash of custom headers that will be added
55
58
  # to the HTTP request.
@@ -105,7 +108,8 @@ module Azure::ARM::CDN
105
108
  end
106
109
 
107
110
  #
108
- # Lists all the edge nodes of a CDN service.
111
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
112
+ # CDN content to end users.
109
113
  #
110
114
  # @param next_page_link [String] The NextLink from the previous successful call
111
115
  # to List operation.
@@ -120,7 +124,8 @@ module Azure::ARM::CDN
120
124
  end
121
125
 
122
126
  #
123
- # Lists all the edge nodes of a CDN service.
127
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
128
+ # CDN content to end users.
124
129
  #
125
130
  # @param next_page_link [String] The NextLink from the previous successful call
126
131
  # to List operation.
@@ -134,7 +139,8 @@ module Azure::ARM::CDN
134
139
  end
135
140
 
136
141
  #
137
- # Lists all the edge nodes of a CDN service.
142
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
143
+ # CDN content to end users.
138
144
  #
139
145
  # @param next_page_link [String] The NextLink from the previous successful call
140
146
  # to List operation.
@@ -192,7 +198,8 @@ module Azure::ARM::CDN
192
198
  end
193
199
 
194
200
  #
195
- # Lists all the edge nodes of a CDN service.
201
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
202
+ # CDN content to end users.
196
203
  #
197
204
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
198
205
  # will be added to the HTTP request.
@@ -38,6 +38,7 @@ module Azure::ARM::CDN
38
38
  model_properties: {
39
39
  name_available: {
40
40
  required: false,
41
+ read_only: true,
41
42
  serialized_name: 'nameAvailable',
42
43
  type: {
43
44
  name: 'Boolean'
@@ -45,6 +46,7 @@ module Azure::ARM::CDN
45
46
  },
46
47
  reason: {
47
48
  required: false,
49
+ read_only: true,
48
50
  serialized_name: 'reason',
49
51
  type: {
50
52
  name: 'String'
@@ -52,6 +54,7 @@ module Azure::ARM::CDN
52
54
  },
53
55
  message: {
54
56
  required: false,
57
+ read_only: true,
55
58
  serialized_name: 'message',
56
59
  type: {
57
60
  name: 'String'