azure_mgmt_cdn 0.2.1 → 0.3.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 (59) hide show
  1. checksums.yaml +13 -5
  2. data/azure_mgmt_cdn.gemspec +1 -1
  3. data/lib/azure_mgmt_cdn.rb +2 -3
  4. data/lib/azure_mgmt_cdn/cdn_management_client.rb +5 -5
  5. data/lib/azure_mgmt_cdn/custom_domains.rb +293 -72
  6. data/lib/azure_mgmt_cdn/endpoints.rb +573 -142
  7. data/lib/azure_mgmt_cdn/models/check_name_availability_input.rb +3 -3
  8. data/lib/azure_mgmt_cdn/models/check_name_availability_output.rb +6 -6
  9. data/lib/azure_mgmt_cdn/models/custom_domain.rb +3 -3
  10. data/lib/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
  11. data/lib/azure_mgmt_cdn/models/custom_domain_parameters.rb +2 -2
  12. data/lib/azure_mgmt_cdn/models/custom_domain_properties.rb +3 -2
  13. data/lib/azure_mgmt_cdn/models/custom_domain_properties_parameters.rb +3 -2
  14. data/lib/azure_mgmt_cdn/models/custom_domain_resource_state.rb +1 -1
  15. data/lib/azure_mgmt_cdn/models/deep_created_origin.rb +2 -2
  16. data/lib/azure_mgmt_cdn/models/deep_created_origin_properties.rb +6 -5
  17. data/lib/azure_mgmt_cdn/models/endpoint.rb +3 -3
  18. data/lib/azure_mgmt_cdn/models/endpoint_create_parameters.rb +2 -2
  19. data/lib/azure_mgmt_cdn/models/endpoint_list_result.rb +2 -2
  20. data/lib/azure_mgmt_cdn/models/endpoint_properties.rb +12 -12
  21. data/lib/azure_mgmt_cdn/models/endpoint_properties_create_parameters.rb +15 -14
  22. data/lib/azure_mgmt_cdn/models/endpoint_properties_update_parameters.rb +16 -15
  23. data/lib/azure_mgmt_cdn/models/endpoint_resource_state.rb +1 -1
  24. data/lib/azure_mgmt_cdn/models/endpoint_update_parameters.rb +2 -2
  25. data/lib/azure_mgmt_cdn/models/error_response.rb +2 -2
  26. data/lib/azure_mgmt_cdn/models/load_parameters.rb +3 -3
  27. data/lib/azure_mgmt_cdn/models/operation.rb +1 -1
  28. data/lib/azure_mgmt_cdn/models/operation_display.rb +3 -3
  29. data/lib/azure_mgmt_cdn/models/operation_list_result.rb +3 -3
  30. data/lib/azure_mgmt_cdn/models/origin.rb +4 -4
  31. data/lib/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
  32. data/lib/azure_mgmt_cdn/models/origin_parameters.rb +2 -2
  33. data/lib/azure_mgmt_cdn/models/origin_properties.rb +7 -6
  34. data/lib/azure_mgmt_cdn/models/origin_properties_parameters.rb +7 -6
  35. data/lib/azure_mgmt_cdn/models/origin_resource_state.rb +1 -1
  36. data/lib/azure_mgmt_cdn/models/profile.rb +17 -1
  37. data/lib/azure_mgmt_cdn/models/profile_create_parameters.rb +18 -17
  38. data/lib/azure_mgmt_cdn/models/profile_list_result.rb +2 -2
  39. data/lib/azure_mgmt_cdn/models/profile_properties.rb +1 -17
  40. data/lib/azure_mgmt_cdn/models/profile_resource_state.rb +1 -1
  41. data/lib/azure_mgmt_cdn/models/profile_update_parameters.rb +2 -2
  42. data/lib/azure_mgmt_cdn/models/provisioning_state.rb +1 -1
  43. data/lib/azure_mgmt_cdn/models/purge_parameters.rb +3 -3
  44. data/lib/azure_mgmt_cdn/models/query_string_caching_behavior.rb +1 -1
  45. data/lib/azure_mgmt_cdn/models/resource_type.rb +1 -1
  46. data/lib/azure_mgmt_cdn/models/sku.rb +5 -4
  47. data/lib/azure_mgmt_cdn/models/sku_name.rb +5 -3
  48. data/lib/azure_mgmt_cdn/models/sso_uri.rb +3 -3
  49. data/lib/azure_mgmt_cdn/models/tracked_resource.rb +1 -1
  50. data/lib/azure_mgmt_cdn/models/validate_custom_domain_input.rb +4 -3
  51. data/lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb +6 -5
  52. data/lib/azure_mgmt_cdn/module_definition.rb +1 -1
  53. data/lib/azure_mgmt_cdn/name_availability.rb +47 -12
  54. data/lib/azure_mgmt_cdn/operations.rb +34 -7
  55. data/lib/azure_mgmt_cdn/origins.rb +296 -79
  56. data/lib/azure_mgmt_cdn/profiles.rb +358 -84
  57. data/lib/azure_mgmt_cdn/version.rb +2 -2
  58. metadata +25 -21
  59. data/lib/azure_mgmt_cdn/models/profile_properties_create_parameters.rb +0 -63
@@ -1,18 +1,18 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Parameters required for endpoint load
9
+ # Parameters required for endpoint load.
10
10
  #
11
11
  class LoadParameters
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<String>] The path to the content to be loaded, should
15
+ # @return [Array<String>] The path to the content to be loaded. Should
16
16
  # describe a file path.
17
17
  attr_accessor :content_paths
18
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -16,10 +16,10 @@ module Azure::ARM::CDN
16
16
  attr_accessor :provider
17
17
 
18
18
  # @return [String] Resource on which the operation is performed:
19
- # profile, endpoint,.. etc
19
+ # Profile, endpoint, etc.
20
20
  attr_accessor :resource
21
21
 
22
- # @return [String] Operation type: read, write, delete,.. etc
22
+ # @return [String] Operation type: Read, write, delete, etc.
23
23
  attr_accessor :operation
24
24
 
25
25
  #
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,8 +12,8 @@ module Azure::ARM::CDN
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<Operation>] List of CDN operations within CDN resource
16
- # provider.
15
+ # @return [Array<Operation>] List of CDN operations supported by the CDN
16
+ # resource provider.
17
17
  attr_accessor :value
18
18
 
19
19
  #
@@ -1,15 +1,15 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # CDN Origin is the source of the content being delivered via CDN. When
10
- # the edge nodes represented by an Endpoint do not have the requested
9
+ # CDN origin is the source of the content being delivered via CDN. When
10
+ # the edge nodes represented by an endpoint do not have the requested
11
11
  # content cached, they attempt to fetch it from one or more of the
12
- # configured Origins.
12
+ # configured origins.
13
13
  #
14
14
  class Origin < MsRestAzure::Resource
15
15
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,12 +1,12 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Origin properties needed for origin creation or update
9
+ # Origin properties needed for origin creation or update.
10
10
  #
11
11
  class OriginParameters
12
12
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,15 +12,16 @@ module Azure::ARM::CDN
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The host name of the origin
15
+ # @return [String] The address of the origin. Domain names, IPv4
16
+ # addresses, and IPv6 addresses are supported.
16
17
  attr_accessor :host_name
17
18
 
18
- # @return [Integer] The value of the http port, must be between 1 and
19
- # 65535
19
+ # @return [Integer] The value of the HTTP port. Must be between 1 and
20
+ # 65535.
20
21
  attr_accessor :http_port
21
22
 
22
- # @return [Integer] The value of the https port, must be between 1 and
23
- # 65535
23
+ # @return [Integer] The value of the https port. Must be between 1 and
24
+ # 65535.
24
25
  attr_accessor :https_port
25
26
 
26
27
  # @return [OriginResourceState] Resource status of the origin. Possible
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,15 +12,16 @@ module Azure::ARM::CDN
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] The host name of the origin
15
+ # @return [String] The address of the origin. Domain names, IPv4
16
+ # addresses, and IPv6 addresses are supported.
16
17
  attr_accessor :host_name
17
18
 
18
- # @return [Integer] The value of the http port, must be between 1 and
19
- # 65535
19
+ # @return [Integer] The value of the HTTP port. Must be between 1 and
20
+ # 65535.
20
21
  attr_accessor :http_port
21
22
 
22
- # @return [Integer] The value of the https port, must be between 1 and
23
- # 65535
23
+ # @return [Integer] The value of the HTTPS port. Must be between 1 and
24
+ # 65535.
24
25
  attr_accessor :https_port
25
26
 
26
27
  #
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -15,6 +15,9 @@ module Azure::ARM::CDN
15
15
 
16
16
  include MsRestAzure
17
17
 
18
+ # @return [Sku] The SKU (pricing tier) of the CDN profile.
19
+ attr_accessor :sku
20
+
18
21
  # @return [ProfileProperties]
19
22
  attr_accessor :properties
20
23
 
@@ -22,6 +25,7 @@ module Azure::ARM::CDN
22
25
  # Validate the object. Throws ValidationError if validation fails.
23
26
  #
24
27
  def validate
28
+ @sku.validate unless @sku.nil?
25
29
  @properties.validate unless @properties.nil?
26
30
  end
27
31
 
@@ -49,6 +53,12 @@ module Azure::ARM::CDN
49
53
  serialized_property = object.type
50
54
  output_object['type'] = serialized_property unless serialized_property.nil?
51
55
 
56
+ serialized_property = object.sku
57
+ unless serialized_property.nil?
58
+ serialized_property = Sku.serialize_object(serialized_property)
59
+ end
60
+ output_object['sku'] = serialized_property unless serialized_property.nil?
61
+
52
62
  serialized_property = object.properties
53
63
  unless serialized_property.nil?
54
64
  serialized_property = ProfileProperties.serialize_object(serialized_property)
@@ -82,6 +92,12 @@ module Azure::ARM::CDN
82
92
  deserialized_property = object['type']
83
93
  output_object.type = deserialized_property
84
94
 
95
+ deserialized_property = object['sku']
96
+ unless deserialized_property.nil?
97
+ deserialized_property = Sku.deserialize_object(deserialized_property)
98
+ end
99
+ output_object.sku = deserialized_property
100
+
85
101
  deserialized_property = object['properties']
86
102
  unless deserialized_property.nil?
87
103
  deserialized_property = ProfileProperties.deserialize_object(deserialized_property)
@@ -1,12 +1,12 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Profile properties required for profile creation
9
+ # Profile properties required for profile creation.
10
10
  #
11
11
  class ProfileCreateParameters
12
12
 
@@ -18,16 +18,17 @@ module Azure::ARM::CDN
18
18
  # @return [Hash{String => String}] Profile tags
19
19
  attr_accessor :tags
20
20
 
21
- # @return [ProfilePropertiesCreateParameters]
22
- attr_accessor :properties
21
+ # @return [Sku] The SKU (pricing tier) of the CDN profile.
22
+ attr_accessor :sku
23
23
 
24
24
  #
25
25
  # Validate the object. Throws ValidationError if validation fails.
26
26
  #
27
27
  def validate
28
28
  fail MsRest::ValidationError, 'property location is nil' if @location.nil?
29
+ fail MsRest::ValidationError, 'property sku is nil' if @sku.nil?
29
30
  @tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
30
- @properties.validate unless @properties.nil?
31
+ @sku.validate unless @sku.nil?
31
32
  end
32
33
 
33
34
  #
@@ -42,14 +43,14 @@ module Azure::ARM::CDN
42
43
  serialized_property = object.location
43
44
  output_object['location'] = serialized_property unless serialized_property.nil?
44
45
 
45
- serialized_property = object.tags
46
- output_object['tags'] = serialized_property unless serialized_property.nil?
47
-
48
- serialized_property = object.properties
46
+ serialized_property = object.sku
49
47
  unless serialized_property.nil?
50
- serialized_property = ProfilePropertiesCreateParameters.serialize_object(serialized_property)
48
+ serialized_property = Sku.serialize_object(serialized_property)
51
49
  end
52
- output_object['properties'] = serialized_property unless serialized_property.nil?
50
+ output_object['sku'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.tags
53
+ output_object['tags'] = serialized_property unless serialized_property.nil?
53
54
 
54
55
  output_object
55
56
  end
@@ -66,14 +67,14 @@ module Azure::ARM::CDN
66
67
  deserialized_property = object['location']
67
68
  output_object.location = deserialized_property
68
69
 
69
- deserialized_property = object['tags']
70
- output_object.tags = deserialized_property
71
-
72
- deserialized_property = object['properties']
70
+ deserialized_property = object['sku']
73
71
  unless deserialized_property.nil?
74
- deserialized_property = ProfilePropertiesCreateParameters.deserialize_object(deserialized_property)
72
+ deserialized_property = Sku.deserialize_object(deserialized_property)
75
73
  end
76
- output_object.properties = deserialized_property
74
+ output_object.sku = deserialized_property
75
+
76
+ deserialized_property = object['tags']
77
+ output_object.tags = deserialized_property
77
78
 
78
79
  output_object
79
80
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,7 +12,7 @@ module Azure::ARM::CDN
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<Profile>] List of CDN Profiles within a resource group
15
+ # @return [Array<Profile>] List of CDN profiles within a resource group.
16
16
  attr_accessor :value
17
17
 
18
18
  #
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,9 +12,6 @@ module Azure::ARM::CDN
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Sku] Profile sku
16
- attr_accessor :sku
17
-
18
15
  # @return [ProfileResourceState] Resource status of the profile.
19
16
  # Possible values include: 'Creating', 'Active', 'Deleting', 'Disabled'
20
17
  attr_accessor :resource_state
@@ -27,7 +24,6 @@ module Azure::ARM::CDN
27
24
  # Validate the object. Throws ValidationError if validation fails.
28
25
  #
29
26
  def validate
30
- @sku.validate unless @sku.nil?
31
27
  end
32
28
 
33
29
  #
@@ -39,12 +35,6 @@ module Azure::ARM::CDN
39
35
  object.validate
40
36
  output_object = {}
41
37
 
42
- serialized_property = object.sku
43
- unless serialized_property.nil?
44
- serialized_property = Sku.serialize_object(serialized_property)
45
- end
46
- output_object['sku'] = serialized_property unless serialized_property.nil?
47
-
48
38
  serialized_property = object.resource_state
49
39
  output_object['resourceState'] = serialized_property unless serialized_property.nil?
50
40
 
@@ -63,12 +53,6 @@ module Azure::ARM::CDN
63
53
  return if object.nil?
64
54
  output_object = ProfileProperties.new
65
55
 
66
- deserialized_property = object['sku']
67
- unless deserialized_property.nil?
68
- deserialized_property = Sku.deserialize_object(deserialized_property)
69
- end
70
- output_object.sku = deserialized_property
71
-
72
56
  deserialized_property = object['resourceState']
73
57
  if (!deserialized_property.nil? && !deserialized_property.empty?)
74
58
  enum_is_valid = ProfileResourceState.constants.any? { |e| ProfileResourceState.const_get(e).to_s.downcase == deserialized_property.downcase }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,12 +1,12 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Profile properties required for profile update
9
+ # Profile properties required for profile update.
10
10
  #
11
11
  class ProfileUpdateParameters
12
12
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,18 +1,18 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::CDN
7
7
  module Models
8
8
  #
9
- # Parameters required for endpoint purge
9
+ # Parameters required for endpoint purge.
10
10
  #
11
11
  class PurgeParameters
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<String>] The path to the content to be purged, can
15
+ # @return [Array<String>] The path to the content to be purged. Can
16
16
  # describe a file path or a wild card directory.
17
17
  attr_accessor :content_paths
18
18
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5