azure_mgmt_cdn 0.16.0 → 0.17.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -6
  3. data/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource.rb +9 -0
  4. data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +3 -3
  5. data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -6
  6. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +9 -0
  7. data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +3 -3
  8. data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -6
  9. data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +3 -3
  10. data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +5 -5
  11. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +1 -1
  12. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain.rb +1 -1
  13. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
  14. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +1 -1
  15. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint.rb +2 -2
  16. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +2 -2
  17. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +1 -1
  18. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/error_response.rb +1 -1
  19. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +1 -1
  20. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
  21. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +2 -2
  22. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource.rb +9 -0
  23. data/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +1 -1
  24. data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +3 -3
  25. data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -6
  26. data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +3 -3
  27. data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +5 -5
  28. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +1 -1
  29. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +1 -1
  30. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
  31. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +1 -1
  32. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +3 -3
  33. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +2 -2
  34. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +2 -2
  35. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb +1 -1
  36. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb +1 -1
  37. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
  38. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +2 -2
  39. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +9 -0
  40. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +1 -1
  41. data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +3 -3
  42. data/lib/2017-10-12/generated/azure_mgmt_cdn.rb +23 -16
  43. data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +108 -6
  44. data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +27 -8
  45. data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +5 -5
  46. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +2 -2
  47. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb +62 -0
  48. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb +73 -0
  49. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/certificate_type.rb +16 -0
  50. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +1 -1
  51. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +1 -1
  52. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb +60 -0
  53. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
  54. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +1 -1
  55. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +3 -3
  56. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +2 -2
  57. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +2 -2
  58. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +1 -1
  59. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb +137 -0
  60. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +1 -1
  61. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
  62. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +2 -2
  63. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/protocol_type.rb +16 -0
  64. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +9 -0
  65. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +1 -1
  66. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +1 -1
  67. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb +1 -0
  68. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb +73 -0
  69. data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +3 -3
  70. data/lib/azure_mgmt_cdn.rb +3 -3
  71. data/lib/profiles/latest/modules/cdn_profile_module.rb +81 -53
  72. data/lib/version.rb +1 -1
  73. metadata +12 -5
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2017_04_02
24
24
  # Current version is 2017-04-02.
25
25
  attr_reader :api_version
26
26
 
27
- # @return [String] Gets or sets the preferred language for the response.
27
+ # @return [String] The preferred language for the response.
28
28
  attr_accessor :accept_language
29
29
 
30
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
- # Running Operations. Default value is 30.
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
32
  attr_accessor :long_running_operation_retry_timeout
33
33
 
34
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
- # is generated and included in each request. Default is true.
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
36
37
  attr_accessor :generate_client_request_id
37
38
 
38
39
  # @return [Profiles] profiles
@@ -351,7 +352,7 @@ module Azure::CDN::Mgmt::V2017_04_02
351
352
  #
352
353
  def add_telemetry
353
354
  sdk_information = 'azure_mgmt_cdn'
354
- sdk_information = "#{sdk_information}/0.16.0"
355
+ sdk_information = "#{sdk_information}/0.17.4"
355
356
  add_user_agent_information(sdk_information)
356
357
  end
357
358
  end
@@ -132,7 +132,7 @@ module Azure::CDN::Mgmt::V2017_04_02
132
132
  end
133
133
 
134
134
  #
135
- # Gets an exisitng custom domain within an endpoint.
135
+ # Gets an existing custom domain within an endpoint.
136
136
  #
137
137
  # @param resource_group_name [String] Name of the Resource group within the
138
138
  # Azure subscription.
@@ -153,7 +153,7 @@ module Azure::CDN::Mgmt::V2017_04_02
153
153
  end
154
154
 
155
155
  #
156
- # Gets an exisitng custom domain within an endpoint.
156
+ # Gets an existing custom domain within an endpoint.
157
157
  #
158
158
  # @param resource_group_name [String] Name of the Resource group within the
159
159
  # Azure subscription.
@@ -173,7 +173,7 @@ module Azure::CDN::Mgmt::V2017_04_02
173
173
  end
174
174
 
175
175
  #
176
- # Gets an exisitng custom domain within an endpoint.
176
+ # Gets an existing custom domain within an endpoint.
177
177
  #
178
178
  # @param resource_group_name [String] Name of the Resource group within the
179
179
  # Azure subscription.
@@ -557,7 +557,7 @@ module Azure::CDN::Mgmt::V2017_04_02
557
557
  # @param endpoint_name [String] Name of the endpoint under the profile which is
558
558
  # unique globally.
559
559
  # @param content_file_paths [LoadParameters] The path to the content to be
560
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
560
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
561
561
  # single file
562
562
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
563
563
  # will be added to the HTTP request.
@@ -575,7 +575,7 @@ module Azure::CDN::Mgmt::V2017_04_02
575
575
  # @param endpoint_name [String] Name of the endpoint under the profile which is
576
576
  # unique globally.
577
577
  # @param content_file_paths [LoadParameters] The path to the content to be
578
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
578
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
579
579
  # single file
580
580
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
581
581
  # will be added to the HTTP request.
@@ -1584,7 +1584,7 @@ module Azure::CDN::Mgmt::V2017_04_02
1584
1584
  # @param endpoint_name [String] Name of the endpoint under the profile which is
1585
1585
  # unique globally.
1586
1586
  # @param content_file_paths [LoadParameters] The path to the content to be
1587
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
1587
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
1588
1588
  # single file
1589
1589
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1590
1590
  # will be added to the HTTP request.
@@ -1605,7 +1605,7 @@ module Azure::CDN::Mgmt::V2017_04_02
1605
1605
  # @param endpoint_name [String] Name of the endpoint under the profile which is
1606
1606
  # unique globally.
1607
1607
  # @param content_file_paths [LoadParameters] The path to the content to be
1608
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
1608
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
1609
1609
  # single file
1610
1610
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1611
1611
  # will be added to the HTTP request.
@@ -1626,7 +1626,7 @@ module Azure::CDN::Mgmt::V2017_04_02
1626
1626
  # @param endpoint_name [String] Name of the endpoint under the profile which is
1627
1627
  # unique globally.
1628
1628
  # @param content_file_paths [LoadParameters] The path to the content to be
1629
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
1629
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
1630
1630
  # single file
1631
1631
  # @param [Hash{String => String}] A hash of custom headers that will be added
1632
1632
  # to the HTTP request.
@@ -12,7 +12,7 @@ module Azure::CDN::Mgmt::V2017_04_02
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Ip adress itself.
15
+ # @return [String] IP address itself.
16
16
  attr_accessor :base_ip_address
17
17
 
18
18
  # @return [Integer] The length of the prefix of the ip address.
@@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_04_02
7
7
  module Models
8
8
  #
9
9
  # Friendly domain name mapping to the endpoint hostname that the customer
10
- # provides for branding purposes, e.g. www.consoto.com.
10
+ # provides for branding purposes, e.g. www.contoso.com.
11
11
  #
12
12
  class CustomDomain < ProxyResource
13
13
 
@@ -33,7 +33,7 @@ module Azure::CDN::Mgmt::V2017_04_02
33
33
  def get_all_items
34
34
  items = @value
35
35
  page = self
36
- while page.next_link != nil do
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
37
  page = page.get_next_page
38
38
  items.concat(page.value)
39
39
  end
@@ -32,7 +32,7 @@ module Azure::CDN::Mgmt::V2017_04_02
32
32
  def get_all_items
33
33
  items = @value
34
34
  page = self
35
- while page.next_link != nil do
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
36
  page = page.get_next_page
37
37
  items.concat(page.value)
38
38
  end
@@ -23,7 +23,7 @@ module Azure::CDN::Mgmt::V2017_04_02
23
23
  attr_accessor :origin_host_header
24
24
 
25
25
  # @return [String] A directory path on the origin that CDN can use to
26
- # retreive content from, e.g. contoso.cloudapp.net/originpath.
26
+ # retrieve content from, e.g. contoso.cloudapp.net/originpath.
27
27
  attr_accessor :origin_path
28
28
 
29
29
  # @return [Array<String>] List of content types on which compression
@@ -69,12 +69,12 @@ module Azure::CDN::Mgmt::V2017_04_02
69
69
  attr_accessor :probe_path
70
70
 
71
71
  # @return [Array<GeoFilter>] List of rules defining the user's geo access
72
- # within a CDN endpoint. Each geo filter defines an acess rule to a
72
+ # within a CDN endpoint. Each geo filter defines an access rule to a
73
73
  # specified path or content, e.g. block APAC for path /pictures/
74
74
  attr_accessor :geo_filters
75
75
 
76
76
  # @return [String] The host name of the endpoint structured as
77
- # {endpointName}.{DNSZone}, e.g. consoto.azureedge.net
77
+ # {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
78
78
  attr_accessor :host_name
79
79
 
80
80
  # @return [Array<DeepCreatedOrigin>] The source of the content being
@@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_04_02
7
7
  module Models
8
8
  #
9
9
  # Result of the request to list endpoints. It contains a list of endpoint
10
- # objects and a URL link to get the the next set of results.
10
+ # objects and a URL link to get the next set of results.
11
11
  #
12
12
  class EndpointListResult
13
13
 
@@ -32,7 +32,7 @@ module Azure::CDN::Mgmt::V2017_04_02
32
32
  def get_all_items
33
33
  items = @value
34
34
  page = self
35
- while page.next_link != nil do
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
36
  page = page.get_next_page
37
37
  items.concat(page.value)
38
38
  end
@@ -23,7 +23,7 @@ module Azure::CDN::Mgmt::V2017_04_02
23
23
  attr_accessor :origin_host_header
24
24
 
25
25
  # @return [String] A directory path on the origin that CDN can use to
26
- # retreive content from, e.g. contoso.cloudapp.net/originpath.
26
+ # retrieve content from, e.g. contoso.cloudapp.net/originpath.
27
27
  attr_accessor :origin_path
28
28
 
29
29
  # @return [Array<String>] List of content types on which compression
@@ -69,7 +69,7 @@ module Azure::CDN::Mgmt::V2017_04_02
69
69
  attr_accessor :probe_path
70
70
 
71
71
  # @return [Array<GeoFilter>] List of rules defining the user's geo access
72
- # within a CDN endpoint. Each geo filter defines an acess rule to a
72
+ # within a CDN endpoint. Each geo filter defines an access rule to a
73
73
  # specified path or content, e.g. block APAC for path /pictures/
74
74
  attr_accessor :geo_filters
75
75
 
@@ -6,7 +6,7 @@
6
6
  module Azure::CDN::Mgmt::V2017_04_02
7
7
  module Models
8
8
  #
9
- # Error reponse indicates CDN service is not able to process the incoming
9
+ # Error response indicates CDN service is not able to process the incoming
10
10
  # request. The reason is provided in the error message.
11
11
  #
12
12
  class ErrorResponse
@@ -33,7 +33,7 @@ module Azure::CDN::Mgmt::V2017_04_02
33
33
  def get_all_items
34
34
  items = @value
35
35
  page = self
36
- while page.next_link != nil do
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
37
  page = page.get_next_page
38
38
  items.concat(page.value)
39
39
  end
@@ -32,7 +32,7 @@ module Azure::CDN::Mgmt::V2017_04_02
32
32
  def get_all_items
33
33
  items = @value
34
34
  page = self
35
- while page.next_link != nil do
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
36
  page = page.get_next_page
37
37
  items.concat(page.value)
38
38
  end
@@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2017_04_02
7
7
  module Models
8
8
  #
9
9
  # Result of the request to list profiles. It contains a list of profile
10
- # objects and a URL link to get the the next set of results.
10
+ # objects and a URL link to get the next set of results.
11
11
  #
12
12
  class ProfileListResult
13
13
 
@@ -32,7 +32,7 @@ module Azure::CDN::Mgmt::V2017_04_02
32
32
  def get_all_items
33
33
  items = @value
34
34
  page = self
35
- while page.next_link != nil do
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
36
  page = page.get_next_page
37
37
  items.concat(page.value)
38
38
  end
@@ -22,6 +22,15 @@ module Azure::CDN::Mgmt::V2017_04_02
22
22
  attr_accessor :type
23
23
 
24
24
 
25
+ # @return [String] the name of the resource group of the resource.
26
+ def resource_group
27
+ unless self.id.nil?
28
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
29
+ groups.captures[0].strip if groups
30
+ end
31
+ end
32
+
33
+
25
34
  #
26
35
  # Mapper for Resource class as Ruby Hash.
27
36
  # This will be used for serialization/deserialization.
@@ -31,7 +31,7 @@ module Azure::CDN::Mgmt::V2017_04_02
31
31
  def get_all_items
32
32
  items = @value
33
33
  page = self
34
- while page.next_link != nil do
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
35
  page = page.get_next_page
36
36
  items.concat(page.value)
37
37
  end
@@ -451,7 +451,7 @@ module Azure::CDN::Mgmt::V2017_04_02
451
451
 
452
452
  #
453
453
  # Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
454
- # Supplemnetal portal is used to configure advanced feature capabilities that
454
+ # Supplemental portal is used to configure advanced feature capabilities that
455
455
  # are not yet available in the Azure portal, such as core reports in a standard
456
456
  # profile; rules engine, advanced HTTP reports, and real-time stats and alerts
457
457
  # in a premium profile. The SSO URI changes approximately every 10 minutes.
@@ -472,7 +472,7 @@ module Azure::CDN::Mgmt::V2017_04_02
472
472
 
473
473
  #
474
474
  # Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
475
- # Supplemnetal portal is used to configure advanced feature capabilities that
475
+ # Supplemental portal is used to configure advanced feature capabilities that
476
476
  # are not yet available in the Azure portal, such as core reports in a standard
477
477
  # profile; rules engine, advanced HTTP reports, and real-time stats and alerts
478
478
  # in a premium profile. The SSO URI changes approximately every 10 minutes.
@@ -492,7 +492,7 @@ module Azure::CDN::Mgmt::V2017_04_02
492
492
 
493
493
  #
494
494
  # Generates a dynamic SSO URI used to sign in to the CDN supplemental portal.
495
- # Supplemnetal portal is used to configure advanced feature capabilities that
495
+ # Supplemental portal is used to configure advanced feature capabilities that
496
496
  # are not yet available in the Azure portal, such as core reports in a standard
497
497
  # profile; rules engine, advanced HTTP reports, and real-time stats and alerts
498
498
  # in a premium profile. The SSO URI changes approximately every 10 minutes.
@@ -34,40 +34,43 @@ module Azure::CDN::Mgmt::V2017_10_12
34
34
  autoload :Sku, '2017-10-12/generated/azure_mgmt_cdn/models/sku.rb'
35
35
  autoload :OriginListResult, '2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb'
36
36
  autoload :ProfileListResult, '2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb'
37
- autoload :PurgeParameters, '2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb'
38
37
  autoload :SsoUri, '2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb'
39
- autoload :LoadParameters, '2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb'
38
+ autoload :CustomDomainParameters, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
40
39
  autoload :DeepCreatedOrigin, '2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb'
41
- autoload :CidrIpAddress, '2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
40
+ autoload :CustomDomainHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_https_parameters.rb'
42
41
  autoload :EndpointListResult, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
43
- autoload :OperationsListResult, '2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb'
42
+ autoload :CdnCertificateSourceParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cdn_certificate_source_parameters.rb'
44
43
  autoload :DeliveryRuleAction, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb'
45
- autoload :ProfileUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
44
+ autoload :ErrorResponse, '2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb'
46
45
  autoload :DeliveryRule, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb'
46
+ autoload :KeyVaultCertificateSourceParameters, '2017-10-12/generated/azure_mgmt_cdn/models/key_vault_certificate_source_parameters.rb'
47
47
  autoload :EndpointUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
48
- autoload :CustomDomainParameters, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
48
+ autoload :UrlPathConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb'
49
49
  autoload :EdgenodeResult, '2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb'
50
+ autoload :UrlFileExtensionConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb'
50
51
  autoload :CustomDomainListResult, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
51
- autoload :ErrorResponse, '2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb'
52
+ autoload :CacheExpirationActionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb'
52
53
  autoload :ValidateCustomDomainInput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
53
- autoload :IpAddressGroup, '2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb'
54
+ autoload :PurgeParameters, '2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb'
54
55
  autoload :ValidateCustomDomainOutput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
55
56
  autoload :Resource, '2017-10-12/generated/azure_mgmt_cdn/models/resource.rb'
56
- autoload :CheckNameAvailabilityInput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
57
+ autoload :Operation, '2017-10-12/generated/azure_mgmt_cdn/models/operation.rb'
58
+ autoload :ProfileUpdateParameters, '2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
59
+ autoload :LoadParameters, '2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb'
60
+ autoload :IpAddressGroup, '2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb'
61
+ autoload :OperationDisplay, '2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb'
57
62
  autoload :DeliveryRuleCondition, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb'
63
+ autoload :CheckNameAvailabilityInput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
64
+ autoload :CidrIpAddress, '2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
58
65
  autoload :CheckNameAvailabilityOutput, '2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
59
- autoload :UrlPathConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb'
66
+ autoload :SupportedOptimizationTypesListResult, '2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
60
67
  autoload :ValidateProbeInput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb'
61
- autoload :CacheExpirationActionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb'
68
+ autoload :EndpointPropertiesUpdateParametersDeliveryPolicy, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb'
62
69
  autoload :ValidateProbeOutput, '2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb'
63
70
  autoload :GeoFilter, '2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb'
64
71
  autoload :ResourceUsage, '2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb'
65
- autoload :UrlFileExtensionConditionParameters, '2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb'
72
+ autoload :OperationsListResult, '2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb'
66
73
  autoload :ResourceUsageListResult, '2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb'
67
- autoload :EndpointPropertiesUpdateParametersDeliveryPolicy, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb'
68
- autoload :OperationDisplay, '2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb'
69
- autoload :SupportedOptimizationTypesListResult, '2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
70
- autoload :Operation, '2017-10-12/generated/azure_mgmt_cdn/models/operation.rb'
71
74
  autoload :Profile, '2017-10-12/generated/azure_mgmt_cdn/models/profile.rb'
72
75
  autoload :Endpoint, '2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb'
73
76
  autoload :DeliveryRuleUrlPathCondition, '2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb'
@@ -76,6 +79,8 @@ module Azure::CDN::Mgmt::V2017_10_12
76
79
  autoload :Origin, '2017-10-12/generated/azure_mgmt_cdn/models/origin.rb'
77
80
  autoload :ProxyResource, '2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb'
78
81
  autoload :CustomDomain, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb'
82
+ autoload :CdnManagedHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/cdn_managed_https_parameters.rb'
83
+ autoload :UserManagedHttpsParameters, '2017-10-12/generated/azure_mgmt_cdn/models/user_managed_https_parameters.rb'
79
84
  autoload :EdgeNode, '2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb'
80
85
  autoload :TrackedResource, '2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb'
81
86
  autoload :SkuName, '2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb'
@@ -88,6 +93,8 @@ module Azure::CDN::Mgmt::V2017_10_12
88
93
  autoload :CustomDomainResourceState, '2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
89
94
  autoload :CustomHttpsProvisioningState, '2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb'
90
95
  autoload :CustomHttpsProvisioningSubstate, '2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb'
96
+ autoload :ProtocolType, '2017-10-12/generated/azure_mgmt_cdn/models/protocol_type.rb'
97
+ autoload :CertificateType, '2017-10-12/generated/azure_mgmt_cdn/models/certificate_type.rb'
91
98
  autoload :ResourceType, '2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb'
92
99
  end
93
100
  end
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2017_10_12
24
24
  # Current version is 2017-04-02.
25
25
  attr_reader :api_version
26
26
 
27
- # @return [String] Gets or sets the preferred language for the response.
27
+ # @return [String] The preferred language for the response.
28
28
  attr_accessor :accept_language
29
29
 
30
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
- # Running Operations. Default value is 30.
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
32
  attr_accessor :long_running_operation_retry_timeout
33
33
 
34
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
- # is generated and included in each request. Default is true.
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
36
37
  attr_accessor :generate_client_request_id
37
38
 
38
39
  # @return [Profiles] profiles
@@ -240,6 +241,107 @@ module Azure::CDN::Mgmt::V2017_10_12
240
241
  promise.execute
241
242
  end
242
243
 
244
+ #
245
+ # Check the availability of a resource name. This is needed for resources where
246
+ # name is globally unique, such as a CDN endpoint.
247
+ #
248
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
249
+ # check.
250
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
251
+ # will be added to the HTTP request.
252
+ #
253
+ # @return [CheckNameAvailabilityOutput] operation results.
254
+ #
255
+ def check_name_availability_with_subscription(check_name_availability_input, custom_headers:nil)
256
+ response = check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
257
+ response.body unless response.nil?
258
+ end
259
+
260
+ #
261
+ # Check the availability of a resource name. This is needed for resources where
262
+ # name is globally unique, such as a CDN endpoint.
263
+ #
264
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
265
+ # check.
266
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
267
+ # will be added to the HTTP request.
268
+ #
269
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
270
+ #
271
+ def check_name_availability_with_subscription_with_http_info(check_name_availability_input, custom_headers:nil)
272
+ check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
273
+ end
274
+
275
+ #
276
+ # Check the availability of a resource name. This is needed for resources where
277
+ # name is globally unique, such as a CDN endpoint.
278
+ #
279
+ # @param check_name_availability_input [CheckNameAvailabilityInput] Input to
280
+ # check.
281
+ # @param [Hash{String => String}] A hash of custom headers that will be added
282
+ # to the HTTP request.
283
+ #
284
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
285
+ #
286
+ def check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:nil)
287
+ fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
288
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
289
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
290
+
291
+
292
+ request_headers = {}
293
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
294
+
295
+ # Set Headers
296
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
297
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
298
+
299
+ # Serialize Request
300
+ request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput.mapper()
301
+ request_content = self.serialize(request_mapper, check_name_availability_input)
302
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
303
+
304
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability'
305
+
306
+ request_url = @base_url || self.base_url
307
+
308
+ options = {
309
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
310
+ path_params: {'subscriptionId' => subscription_id},
311
+ query_params: {'api-version' => api_version},
312
+ body: request_content,
313
+ headers: request_headers.merge(custom_headers || {}),
314
+ base_url: request_url
315
+ }
316
+ promise = self.make_request_async(:post, path_template, options)
317
+
318
+ promise = promise.then do |result|
319
+ http_response = result.response
320
+ status_code = http_response.status
321
+ response_content = http_response.body
322
+ unless status_code == 200
323
+ error_model = JSON.load(response_content)
324
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
325
+ end
326
+
327
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
328
+ # Deserialize Response
329
+ if status_code == 200
330
+ begin
331
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
332
+ result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput.mapper()
333
+ result.body = self.deserialize(result_mapper, parsed_response)
334
+ rescue Exception => e
335
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
336
+ end
337
+ end
338
+
339
+ result
340
+ end
341
+
342
+ promise.execute
343
+ end
344
+
243
345
  #
244
346
  # Check if the probe path is a valid path and the file can be accessed. Probe
245
347
  # path is the path to a file hosted on the origin server to help accelerate the
@@ -351,7 +453,7 @@ module Azure::CDN::Mgmt::V2017_10_12
351
453
  #
352
454
  def add_telemetry
353
455
  sdk_information = 'azure_mgmt_cdn'
354
- sdk_information = "#{sdk_information}/0.16.0"
456
+ sdk_information = "#{sdk_information}/0.17.4"
355
457
  add_user_agent_information(sdk_information)
356
458
  end
357
459
  end