azure_mgmt_cdn 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/azure_mgmt_cdn.gemspec +1 -1
- data/lib/azure_mgmt_cdn.rb +2 -3
- data/lib/azure_mgmt_cdn/cdn_management_client.rb +5 -5
- data/lib/azure_mgmt_cdn/custom_domains.rb +293 -72
- data/lib/azure_mgmt_cdn/endpoints.rb +573 -142
- data/lib/azure_mgmt_cdn/models/check_name_availability_input.rb +3 -3
- data/lib/azure_mgmt_cdn/models/check_name_availability_output.rb +6 -6
- data/lib/azure_mgmt_cdn/models/custom_domain.rb +3 -3
- data/lib/azure_mgmt_cdn/models/custom_domain_list_result.rb +1 -1
- data/lib/azure_mgmt_cdn/models/custom_domain_parameters.rb +2 -2
- data/lib/azure_mgmt_cdn/models/custom_domain_properties.rb +3 -2
- data/lib/azure_mgmt_cdn/models/custom_domain_properties_parameters.rb +3 -2
- data/lib/azure_mgmt_cdn/models/custom_domain_resource_state.rb +1 -1
- data/lib/azure_mgmt_cdn/models/deep_created_origin.rb +2 -2
- data/lib/azure_mgmt_cdn/models/deep_created_origin_properties.rb +6 -5
- data/lib/azure_mgmt_cdn/models/endpoint.rb +3 -3
- data/lib/azure_mgmt_cdn/models/endpoint_create_parameters.rb +2 -2
- data/lib/azure_mgmt_cdn/models/endpoint_list_result.rb +2 -2
- data/lib/azure_mgmt_cdn/models/endpoint_properties.rb +12 -12
- data/lib/azure_mgmt_cdn/models/endpoint_properties_create_parameters.rb +15 -14
- data/lib/azure_mgmt_cdn/models/endpoint_properties_update_parameters.rb +16 -15
- data/lib/azure_mgmt_cdn/models/endpoint_resource_state.rb +1 -1
- data/lib/azure_mgmt_cdn/models/endpoint_update_parameters.rb +2 -2
- data/lib/azure_mgmt_cdn/models/error_response.rb +2 -2
- data/lib/azure_mgmt_cdn/models/load_parameters.rb +3 -3
- data/lib/azure_mgmt_cdn/models/operation.rb +1 -1
- data/lib/azure_mgmt_cdn/models/operation_display.rb +3 -3
- data/lib/azure_mgmt_cdn/models/operation_list_result.rb +3 -3
- data/lib/azure_mgmt_cdn/models/origin.rb +4 -4
- data/lib/azure_mgmt_cdn/models/origin_list_result.rb +1 -1
- data/lib/azure_mgmt_cdn/models/origin_parameters.rb +2 -2
- data/lib/azure_mgmt_cdn/models/origin_properties.rb +7 -6
- data/lib/azure_mgmt_cdn/models/origin_properties_parameters.rb +7 -6
- data/lib/azure_mgmt_cdn/models/origin_resource_state.rb +1 -1
- data/lib/azure_mgmt_cdn/models/profile.rb +17 -1
- data/lib/azure_mgmt_cdn/models/profile_create_parameters.rb +18 -17
- data/lib/azure_mgmt_cdn/models/profile_list_result.rb +2 -2
- data/lib/azure_mgmt_cdn/models/profile_properties.rb +1 -17
- data/lib/azure_mgmt_cdn/models/profile_resource_state.rb +1 -1
- data/lib/azure_mgmt_cdn/models/profile_update_parameters.rb +2 -2
- data/lib/azure_mgmt_cdn/models/provisioning_state.rb +1 -1
- data/lib/azure_mgmt_cdn/models/purge_parameters.rb +3 -3
- data/lib/azure_mgmt_cdn/models/query_string_caching_behavior.rb +1 -1
- data/lib/azure_mgmt_cdn/models/resource_type.rb +1 -1
- data/lib/azure_mgmt_cdn/models/sku.rb +5 -4
- data/lib/azure_mgmt_cdn/models/sku_name.rb +5 -3
- data/lib/azure_mgmt_cdn/models/sso_uri.rb +3 -3
- data/lib/azure_mgmt_cdn/models/tracked_resource.rb +1 -1
- data/lib/azure_mgmt_cdn/models/validate_custom_domain_input.rb +4 -3
- data/lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb +6 -5
- data/lib/azure_mgmt_cdn/module_definition.rb +1 -1
- data/lib/azure_mgmt_cdn/name_availability.rb +47 -12
- data/lib/azure_mgmt_cdn/operations.rb +34 -7
- data/lib/azure_mgmt_cdn/origins.rb +296 -79
- data/lib/azure_mgmt_cdn/profiles.rb +358 -84
- data/lib/azure_mgmt_cdn/version.rb +2 -2
- metadata +25 -21
- 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.
|
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
|
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.
|
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
|
-
#
|
19
|
+
# Profile, endpoint, etc.
|
20
20
|
attr_accessor :resource
|
21
21
|
|
22
|
-
# @return [String] Operation type:
|
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.
|
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
|
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.
|
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
|
10
|
-
# the edge nodes represented by an
|
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
|
12
|
+
# configured origins.
|
13
13
|
#
|
14
14
|
class Origin < MsRestAzure::Resource
|
15
15
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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.
|
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
|
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
|
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
|
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.
|
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
|
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
|
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
|
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.
|
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.
|
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 [
|
22
|
-
attr_accessor :
|
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
|
-
@
|
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.
|
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 =
|
48
|
+
serialized_property = Sku.serialize_object(serialized_property)
|
51
49
|
end
|
52
|
-
output_object['
|
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['
|
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 =
|
72
|
+
deserialized_property = Sku.deserialize_object(deserialized_property)
|
75
73
|
end
|
76
|
-
output_object.
|
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.
|
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
|
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.
|
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,12 +1,12 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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,18 +1,18 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 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
|
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
|
|