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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f7b8635e25b95c9efdfff7191fc3cd54d8e3a4a4
4
- data.tar.gz: 42b3d1b49d0b30759ce1fd6a6779a5cfa49bfabf
2
+ SHA256:
3
+ metadata.gz: c725f2f989d108175c84f291898d8b6368d1f7ae69de4444acaf9009dfd0aa90
4
+ data.tar.gz: 20c549d1016bacd6a36409cdbabc500f19abd9519b8f609bffb999d2b5f75506
5
5
  SHA512:
6
- metadata.gz: af92f8218e2cb27be949c6a6958851fc6ee43dfb07ed78eec8184cb0e8299304230016bcbb5a07c05dba4709fcb678c6a5255e120c18f38ab9b946d8fd07fa32
7
- data.tar.gz: 6e77c3b89e2b7bce3557761433f5c286f49a0713a378e3b69c0199738235b9e641751151522f9984aa38a21b3f08aa355394dc097586eb27a311826ef4887d72
6
+ metadata.gz: 951c2c7ca4859147a289bee29d0b69f9341533f9567d584b0817f380a92a2fa3f3f478a02b21e52025f22eb16893c7c2270044d86e973fa629ddf32b5dd43839
7
+ data.tar.gz: fb2f8b6d0973aa633c0c6782b1d99bbd910269dd3cb97ee5c40591f3bd595d6aa4396bd8c3866131a36a6ea68c55455a1769e1722d88dfbec06c5651169bffbe
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2015_06_01
24
24
  # Current version is 2015-06-01
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
@@ -144,7 +145,7 @@ module Azure::CDN::Mgmt::V2015_06_01
144
145
  #
145
146
  def add_telemetry
146
147
  sdk_information = 'azure_mgmt_cdn'
147
- sdk_information = "#{sdk_information}/0.16.0"
148
+ sdk_information = "#{sdk_information}/0.17.4"
148
149
  add_user_agent_information(sdk_information)
149
150
  end
150
151
  end
@@ -23,6 +23,15 @@ module Azure::CDN::Mgmt::V2015_06_01
23
23
  attr_accessor :type
24
24
 
25
25
 
26
+ # @return [String] the name of the resource group of the resource.
27
+ def resource_group
28
+ unless self.id.nil?
29
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
30
+ groups.captures[0].strip if groups
31
+ end
32
+ end
33
+
34
+
26
35
  #
27
36
  # Mapper for Resource class as Ruby Hash.
28
37
  # This will be used for serialization/deserialization.
@@ -25,7 +25,7 @@ module Azure::CDN::Mgmt::V2015_06_01
25
25
  attr_reader :client
26
26
 
27
27
  #
28
- # Lists the CDN profiles within an Azure subscitption.
28
+ # Lists the CDN profiles within an Azure subscription.
29
29
  #
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
@@ -38,7 +38,7 @@ module Azure::CDN::Mgmt::V2015_06_01
38
38
  end
39
39
 
40
40
  #
41
- # Lists the CDN profiles within an Azure subscitption.
41
+ # Lists the CDN profiles within an Azure subscription.
42
42
  #
43
43
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
44
  # will be added to the HTTP request.
@@ -50,7 +50,7 @@ module Azure::CDN::Mgmt::V2015_06_01
50
50
  end
51
51
 
52
52
  #
53
- # Lists the CDN profiles within an Azure subscitption.
53
+ # Lists the CDN profiles within an Azure subscription.
54
54
  #
55
55
  # @param [Hash{String => String}] A hash of custom headers that will be added
56
56
  # to the HTTP request.
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2016_04_02
24
24
  # Current version is 2016-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
@@ -144,7 +145,7 @@ module Azure::CDN::Mgmt::V2016_04_02
144
145
  #
145
146
  def add_telemetry
146
147
  sdk_information = 'azure_mgmt_cdn'
147
- sdk_information = "#{sdk_information}/0.16.0"
148
+ sdk_information = "#{sdk_information}/0.17.4"
148
149
  add_user_agent_information(sdk_information)
149
150
  end
150
151
  end
@@ -23,6 +23,15 @@ module Azure::CDN::Mgmt::V2016_04_02
23
23
  attr_accessor :type
24
24
 
25
25
 
26
+ # @return [String] the name of the resource group of the resource.
27
+ def resource_group
28
+ unless self.id.nil?
29
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
30
+ groups.captures[0].strip if groups
31
+ end
32
+ end
33
+
34
+
26
35
  #
27
36
  # Mapper for Resource class as Ruby Hash.
28
37
  # This will be used for serialization/deserialization.
@@ -25,7 +25,7 @@ module Azure::CDN::Mgmt::V2016_04_02
25
25
  attr_reader :client
26
26
 
27
27
  #
28
- # Lists the CDN profiles within an Azure subscitption.
28
+ # Lists the CDN profiles within an Azure subscription.
29
29
  #
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
@@ -38,7 +38,7 @@ module Azure::CDN::Mgmt::V2016_04_02
38
38
  end
39
39
 
40
40
  #
41
- # Lists the CDN profiles within an Azure subscitption.
41
+ # Lists the CDN profiles within an Azure subscription.
42
42
  #
43
43
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
44
  # will be added to the HTTP request.
@@ -50,7 +50,7 @@ module Azure::CDN::Mgmt::V2016_04_02
50
50
  end
51
51
 
52
52
  #
53
- # Lists the CDN profiles within an Azure subscitption.
53
+ # Lists the CDN profiles within an Azure subscription.
54
54
  #
55
55
  # @param [Hash{String => String}] A hash of custom headers that will be added
56
56
  # to the HTTP request.
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2016_10_02
24
24
  # Current version is 2016-10-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
@@ -742,7 +743,7 @@ module Azure::CDN::Mgmt::V2016_10_02
742
743
  #
743
744
  def add_telemetry
744
745
  sdk_information = 'azure_mgmt_cdn'
745
- sdk_information = "#{sdk_information}/0.16.0"
746
+ sdk_information = "#{sdk_information}/0.17.4"
746
747
  add_user_agent_information(sdk_information)
747
748
  end
748
749
  end
@@ -132,7 +132,7 @@ module Azure::CDN::Mgmt::V2016_10_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::V2016_10_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::V2016_10_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::V2016_10_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::V2016_10_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.
@@ -1564,7 +1564,7 @@ module Azure::CDN::Mgmt::V2016_10_02
1564
1564
  # @param endpoint_name [String] Name of the endpoint under the profile which is
1565
1565
  # unique globally.
1566
1566
  # @param content_file_paths [LoadParameters] The path to the content to be
1567
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
1567
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
1568
1568
  # single file
1569
1569
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1570
1570
  # will be added to the HTTP request.
@@ -1585,7 +1585,7 @@ module Azure::CDN::Mgmt::V2016_10_02
1585
1585
  # @param endpoint_name [String] Name of the endpoint under the profile which is
1586
1586
  # unique globally.
1587
1587
  # @param content_file_paths [LoadParameters] The path to the content to be
1588
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
1588
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
1589
1589
  # single file
1590
1590
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1591
1591
  # will be added to the HTTP request.
@@ -1606,7 +1606,7 @@ module Azure::CDN::Mgmt::V2016_10_02
1606
1606
  # @param endpoint_name [String] Name of the endpoint under the profile which is
1607
1607
  # unique globally.
1608
1608
  # @param content_file_paths [LoadParameters] The path to the content to be
1609
- # loaded. Path should be a full URL, e.g. ‘/pictires/city.png' which loads a
1609
+ # loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a
1610
1610
  # single file
1611
1611
  # @param [Hash{String => String}] A hash of custom headers that will be added
1612
1612
  # to the HTTP request.
@@ -12,7 +12,7 @@ module Azure::CDN::Mgmt::V2016_10_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.
@@ -6,7 +6,7 @@
6
6
  module Azure::CDN::Mgmt::V2016_10_02
7
7
  module Models
8
8
  #
9
- # Customer provided domain for branding purposes, e.g. www.consoto.com.
9
+ # Customer provided domain for branding purposes, e.g. www.contoso.com.
10
10
  #
11
11
  class CustomDomain < Resource
12
12
 
@@ -33,7 +33,7 @@ module Azure::CDN::Mgmt::V2016_10_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::V2016_10_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
@@ -57,12 +57,12 @@ module Azure::CDN::Mgmt::V2016_10_02
57
57
  attr_accessor :optimization_type
58
58
 
59
59
  # @return [Array<GeoFilter>] List of rules defining user geo access
60
- # within a CDN endpoint. Each geo filter defines an acess rule to a
60
+ # within a CDN endpoint. Each geo filter defines an access rule to a
61
61
  # specified path or content, e.g. block APAC for path /pictures/
62
62
  attr_accessor :geo_filters
63
63
 
64
64
  # @return [String] The host name of the endpoint structured as
65
- # {endpointName}.{DNSZone}, e.g. consoto.azureedge.net
65
+ # {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
66
66
  attr_accessor :host_name
67
67
 
68
68
  # @return [Array<DeepCreatedOrigin>] The source of the content being
@@ -7,7 +7,7 @@ module Azure::CDN::Mgmt::V2016_10_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::V2016_10_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
@@ -57,7 +57,7 @@ module Azure::CDN::Mgmt::V2016_10_02
57
57
  attr_accessor :optimization_type
58
58
 
59
59
  # @return [Array<GeoFilter>] List of rules defining user geo access
60
- # within a CDN endpoint. Each geo filter defines an acess rule to a
60
+ # within a CDN endpoint. Each geo filter defines an access rule to a
61
61
  # specified path or content, e.g. block APAC for path /pictures/
62
62
  attr_accessor :geo_filters
63
63
 
@@ -6,7 +6,7 @@
6
6
  module Azure::CDN::Mgmt::V2016_10_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::V2016_10_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::V2016_10_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::V2016_10_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::V2016_10_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
@@ -28,6 +28,15 @@ module Azure::CDN::Mgmt::V2016_10_02
28
28
  attr_accessor :tags
29
29
 
30
30
 
31
+ # @return [String] the name of the resource group of the resource.
32
+ def resource_group
33
+ unless self.id.nil?
34
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
35
+ groups.captures[0].strip if groups
36
+ end
37
+ end
38
+
39
+
31
40
  #
32
41
  # Mapper for Resource class as Ruby Hash.
33
42
  # This will be used for serialization/deserialization.
@@ -31,7 +31,7 @@ module Azure::CDN::Mgmt::V2016_10_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::V2016_10_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::V2016_10_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::V2016_10_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.