azure_mgmt_cdn 0.2.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.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_cdn.gemspec +34 -0
- data/lib/azure_mgmt_cdn.rb +77 -0
- data/lib/azure_mgmt_cdn/cdn_management_client.rb +87 -0
- data/lib/azure_mgmt_cdn/custom_domains.rb +482 -0
- data/lib/azure_mgmt_cdn/endpoints.rb +940 -0
- data/lib/azure_mgmt_cdn/models/check_name_availability_input.rb +66 -0
- data/lib/azure_mgmt_cdn/models/check_name_availability_output.rb +75 -0
- data/lib/azure_mgmt_cdn/models/custom_domain.rb +82 -0
- data/lib/azure_mgmt_cdn/models/custom_domain_list_result.rb +77 -0
- data/lib/azure_mgmt_cdn/models/custom_domain_parameters.rb +62 -0
- data/lib/azure_mgmt_cdn/models/custom_domain_properties.rb +84 -0
- data/lib/azure_mgmt_cdn/models/custom_domain_properties_parameters.rb +56 -0
- data/lib/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/azure_mgmt_cdn/models/deep_created_origin.rb +72 -0
- data/lib/azure_mgmt_cdn/models/deep_created_origin_properties.rb +78 -0
- data/lib/azure_mgmt_cdn/models/endpoint.rb +95 -0
- data/lib/azure_mgmt_cdn/models/endpoint_create_parameters.rb +82 -0
- data/lib/azure_mgmt_cdn/models/endpoint_list_result.rb +76 -0
- data/lib/azure_mgmt_cdn/models/endpoint_properties.rb +197 -0
- data/lib/azure_mgmt_cdn/models/endpoint_properties_create_parameters.rb +160 -0
- data/lib/azure_mgmt_cdn/models/endpoint_properties_update_parameters.rb +127 -0
- data/lib/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/azure_mgmt_cdn/models/endpoint_update_parameters.rb +72 -0
- data/lib/azure_mgmt_cdn/models/error_response.rb +65 -0
- data/lib/azure_mgmt_cdn/models/load_parameters.rb +58 -0
- data/lib/azure_mgmt_cdn/models/operation.rb +71 -0
- data/lib/azure_mgmt_cdn/models/operation_display.rb +75 -0
- data/lib/azure_mgmt_cdn/models/operation_list_result.rb +77 -0
- data/lib/azure_mgmt_cdn/models/origin.rb +83 -0
- data/lib/azure_mgmt_cdn/models/origin_list_result.rb +76 -0
- data/lib/azure_mgmt_cdn/models/origin_parameters.rb +62 -0
- data/lib/azure_mgmt_cdn/models/origin_properties.rb +106 -0
- data/lib/azure_mgmt_cdn/models/origin_properties_parameters.rb +78 -0
- data/lib/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/azure_mgmt_cdn/models/profile.rb +95 -0
- data/lib/azure_mgmt_cdn/models/profile_create_parameters.rb +82 -0
- data/lib/azure_mgmt_cdn/models/profile_list_result.rb +76 -0
- data/lib/azure_mgmt_cdn/models/profile_properties.rb +90 -0
- data/lib/azure_mgmt_cdn/models/profile_properties_create_parameters.rb +63 -0
- data/lib/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/azure_mgmt_cdn/models/profile_update_parameters.rb +57 -0
- data/lib/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
- data/lib/azure_mgmt_cdn/models/purge_parameters.rb +58 -0
- data/lib/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/azure_mgmt_cdn/models/sku.rb +60 -0
- data/lib/azure_mgmt_cdn/models/sku_name.rb +16 -0
- data/lib/azure_mgmt_cdn/models/sso_uri.rb +56 -0
- data/lib/azure_mgmt_cdn/models/tracked_resource.rb +85 -0
- data/lib/azure_mgmt_cdn/models/validate_custom_domain_input.rb +56 -0
- data/lib/azure_mgmt_cdn/models/validate_custom_domain_output.rb +75 -0
- data/lib/azure_mgmt_cdn/module_definition.rb +8 -0
- data/lib/azure_mgmt_cdn/name_availability.rb +101 -0
- data/lib/azure_mgmt_cdn/operations.rb +87 -0
- data/lib/azure_mgmt_cdn/origins.rb +533 -0
- data/lib/azure_mgmt_cdn/profiles.rb +607 -0
- data/lib/azure_mgmt_cdn/version.rb +8 -0
- metadata +172 -0
@@ -0,0 +1,66 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CDN
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Input of check name availability API
|
10
|
+
#
|
11
|
+
class CheckNameAvailabilityInput
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The resource name to validate
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] The type of the resource whose name is to be validated
|
19
|
+
attr_accessor :type
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
26
|
+
fail MsRest::ValidationError, 'property type is nil' if @type.nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
31
|
+
# @param object Model object to serialize.
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
+
#
|
34
|
+
def self.serialize_object(object)
|
35
|
+
object.validate
|
36
|
+
output_object = {}
|
37
|
+
|
38
|
+
serialized_property = object.name
|
39
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
41
|
+
serialized_property = object.type
|
42
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
43
|
+
|
44
|
+
output_object
|
45
|
+
end
|
46
|
+
|
47
|
+
#
|
48
|
+
# Deserializes given Ruby Hash into Model object.
|
49
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
50
|
+
# @return [CheckNameAvailabilityInput] Deserialized object.
|
51
|
+
#
|
52
|
+
def self.deserialize_object(object)
|
53
|
+
return if object.nil?
|
54
|
+
output_object = CheckNameAvailabilityInput.new
|
55
|
+
|
56
|
+
deserialized_property = object['name']
|
57
|
+
output_object.name = deserialized_property
|
58
|
+
|
59
|
+
deserialized_property = object['type']
|
60
|
+
output_object.type = deserialized_property
|
61
|
+
|
62
|
+
output_object
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CDN
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Output of check name availability API
|
10
|
+
#
|
11
|
+
class CheckNameAvailabilityOutput
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] Indicates whether the name is available
|
16
|
+
attr_accessor :name_available
|
17
|
+
|
18
|
+
# @return [String] The reason why the name is not available
|
19
|
+
attr_accessor :reason
|
20
|
+
|
21
|
+
# @return [String] The detailed error message on why the name is not
|
22
|
+
# available
|
23
|
+
attr_accessor :message
|
24
|
+
|
25
|
+
#
|
26
|
+
# Validate the object. Throws ValidationError if validation fails.
|
27
|
+
#
|
28
|
+
def validate
|
29
|
+
# Nothing to validate
|
30
|
+
end
|
31
|
+
|
32
|
+
#
|
33
|
+
# Serializes given Model object into Ruby Hash.
|
34
|
+
# @param object Model object to serialize.
|
35
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
36
|
+
#
|
37
|
+
def self.serialize_object(object)
|
38
|
+
object.validate
|
39
|
+
output_object = {}
|
40
|
+
|
41
|
+
serialized_property = object.name_available
|
42
|
+
output_object['NameAvailable'] = serialized_property unless serialized_property.nil?
|
43
|
+
|
44
|
+
serialized_property = object.reason
|
45
|
+
output_object['Reason'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
serialized_property = object.message
|
48
|
+
output_object['Message'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
output_object
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Deserializes given Ruby Hash into Model object.
|
55
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
56
|
+
# @return [CheckNameAvailabilityOutput] Deserialized object.
|
57
|
+
#
|
58
|
+
def self.deserialize_object(object)
|
59
|
+
return if object.nil?
|
60
|
+
output_object = CheckNameAvailabilityOutput.new
|
61
|
+
|
62
|
+
deserialized_property = object['NameAvailable']
|
63
|
+
output_object.name_available = deserialized_property
|
64
|
+
|
65
|
+
deserialized_property = object['Reason']
|
66
|
+
output_object.reason = deserialized_property
|
67
|
+
|
68
|
+
deserialized_property = object['Message']
|
69
|
+
output_object.message = deserialized_property
|
70
|
+
|
71
|
+
output_object
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CDN
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# CDN CustomDomain represents a mapping between a user specified domain
|
10
|
+
# name and an Endpoint. It is a common practice to use custom domain
|
11
|
+
# names to represent the URLs for branding purposes.
|
12
|
+
#
|
13
|
+
class CustomDomain < MsRestAzure::Resource
|
14
|
+
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
# @return [CustomDomainProperties]
|
18
|
+
attr_accessor :properties
|
19
|
+
|
20
|
+
#
|
21
|
+
# Validate the object. Throws ValidationError if validation fails.
|
22
|
+
#
|
23
|
+
def validate
|
24
|
+
@properties.validate unless @properties.nil?
|
25
|
+
end
|
26
|
+
|
27
|
+
#
|
28
|
+
# Serializes given Model object into Ruby Hash.
|
29
|
+
# @param object Model object to serialize.
|
30
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
31
|
+
#
|
32
|
+
def self.serialize_object(object)
|
33
|
+
object.validate
|
34
|
+
output_object = {}
|
35
|
+
|
36
|
+
serialized_property = object.id
|
37
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
38
|
+
|
39
|
+
serialized_property = object.name
|
40
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
41
|
+
|
42
|
+
serialized_property = object.type
|
43
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
44
|
+
|
45
|
+
serialized_property = object.properties
|
46
|
+
unless serialized_property.nil?
|
47
|
+
serialized_property = CustomDomainProperties.serialize_object(serialized_property)
|
48
|
+
end
|
49
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
output_object
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Deserializes given Ruby Hash into Model object.
|
56
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
57
|
+
# @return [CustomDomain] Deserialized object.
|
58
|
+
#
|
59
|
+
def self.deserialize_object(object)
|
60
|
+
return if object.nil?
|
61
|
+
output_object = CustomDomain.new
|
62
|
+
|
63
|
+
deserialized_property = object['id']
|
64
|
+
output_object.id = deserialized_property
|
65
|
+
|
66
|
+
deserialized_property = object['name']
|
67
|
+
output_object.name = deserialized_property
|
68
|
+
|
69
|
+
deserialized_property = object['type']
|
70
|
+
output_object.type = deserialized_property
|
71
|
+
|
72
|
+
deserialized_property = object['properties']
|
73
|
+
unless deserialized_property.nil?
|
74
|
+
deserialized_property = CustomDomainProperties.deserialize_object(deserialized_property)
|
75
|
+
end
|
76
|
+
output_object.properties = deserialized_property
|
77
|
+
|
78
|
+
output_object
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CDN
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class CustomDomainListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<CustomDomain>] List of CDN CustomDomains within an
|
16
|
+
# endpoint.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
#
|
20
|
+
# Validate the object. Throws ValidationError if validation fails.
|
21
|
+
#
|
22
|
+
def validate
|
23
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
24
|
+
end
|
25
|
+
|
26
|
+
#
|
27
|
+
# Serializes given Model object into Ruby Hash.
|
28
|
+
# @param object Model object to serialize.
|
29
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
30
|
+
#
|
31
|
+
def self.serialize_object(object)
|
32
|
+
object.validate
|
33
|
+
output_object = {}
|
34
|
+
|
35
|
+
serialized_property = object.value
|
36
|
+
unless serialized_property.nil?
|
37
|
+
serializedArray = []
|
38
|
+
serialized_property.each do |element|
|
39
|
+
unless element.nil?
|
40
|
+
element = CustomDomain.serialize_object(element)
|
41
|
+
end
|
42
|
+
serializedArray.push(element)
|
43
|
+
end
|
44
|
+
serialized_property = serializedArray
|
45
|
+
end
|
46
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
47
|
+
|
48
|
+
output_object
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Deserializes given Ruby Hash into Model object.
|
53
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
54
|
+
# @return [CustomDomainListResult] Deserialized object.
|
55
|
+
#
|
56
|
+
def self.deserialize_object(object)
|
57
|
+
return if object.nil?
|
58
|
+
output_object = CustomDomainListResult.new
|
59
|
+
|
60
|
+
deserialized_property = object['value']
|
61
|
+
unless deserialized_property.nil?
|
62
|
+
deserialized_array = []
|
63
|
+
deserialized_property.each do |element1|
|
64
|
+
unless element1.nil?
|
65
|
+
element1 = CustomDomain.deserialize_object(element1)
|
66
|
+
end
|
67
|
+
deserialized_array.push(element1)
|
68
|
+
end
|
69
|
+
deserialized_property = deserialized_array
|
70
|
+
end
|
71
|
+
output_object.value = deserialized_property
|
72
|
+
|
73
|
+
output_object
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CDN
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# CustomDomain properties required for custom domain creation or update
|
10
|
+
#
|
11
|
+
class CustomDomainParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [CustomDomainPropertiesParameters]
|
16
|
+
attr_accessor :properties
|
17
|
+
|
18
|
+
#
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
20
|
+
#
|
21
|
+
def validate
|
22
|
+
@properties.validate unless @properties.nil?
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Serializes given Model object into Ruby Hash.
|
27
|
+
# @param object Model object to serialize.
|
28
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
+
#
|
30
|
+
def self.serialize_object(object)
|
31
|
+
object.validate
|
32
|
+
output_object = {}
|
33
|
+
|
34
|
+
serialized_property = object.properties
|
35
|
+
unless serialized_property.nil?
|
36
|
+
serialized_property = CustomDomainPropertiesParameters.serialize_object(serialized_property)
|
37
|
+
end
|
38
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
39
|
+
|
40
|
+
output_object
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Deserializes given Ruby Hash into Model object.
|
45
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
46
|
+
# @return [CustomDomainParameters] Deserialized object.
|
47
|
+
#
|
48
|
+
def self.deserialize_object(object)
|
49
|
+
return if object.nil?
|
50
|
+
output_object = CustomDomainParameters.new
|
51
|
+
|
52
|
+
deserialized_property = object['properties']
|
53
|
+
unless deserialized_property.nil?
|
54
|
+
deserialized_property = CustomDomainPropertiesParameters.deserialize_object(deserialized_property)
|
55
|
+
end
|
56
|
+
output_object.properties = deserialized_property
|
57
|
+
|
58
|
+
output_object
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::CDN
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class CustomDomainProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The host name of the custom domain
|
16
|
+
attr_accessor :host_name
|
17
|
+
|
18
|
+
# @return [CustomDomainResourceState] Resource status of the custom
|
19
|
+
# domain. Possible values include: 'Creating', 'Active', 'Deleting'
|
20
|
+
attr_accessor :resource_state
|
21
|
+
|
22
|
+
# @return [ProvisioningState] Provisioning status of the custom domain.
|
23
|
+
# Possible values include: 'Creating', 'Succeeded', 'Failed'
|
24
|
+
attr_accessor :provisioning_state
|
25
|
+
|
26
|
+
#
|
27
|
+
# Validate the object. Throws ValidationError if validation fails.
|
28
|
+
#
|
29
|
+
def validate
|
30
|
+
fail MsRest::ValidationError, 'property host_name is nil' if @host_name.nil?
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Serializes given Model object into Ruby Hash.
|
35
|
+
# @param object Model object to serialize.
|
36
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
37
|
+
#
|
38
|
+
def self.serialize_object(object)
|
39
|
+
object.validate
|
40
|
+
output_object = {}
|
41
|
+
|
42
|
+
serialized_property = object.host_name
|
43
|
+
output_object['hostName'] = serialized_property unless serialized_property.nil?
|
44
|
+
|
45
|
+
serialized_property = object.resource_state
|
46
|
+
output_object['resourceState'] = serialized_property unless serialized_property.nil?
|
47
|
+
|
48
|
+
serialized_property = object.provisioning_state
|
49
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
output_object
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Deserializes given Ruby Hash into Model object.
|
56
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
57
|
+
# @return [CustomDomainProperties] Deserialized object.
|
58
|
+
#
|
59
|
+
def self.deserialize_object(object)
|
60
|
+
return if object.nil?
|
61
|
+
output_object = CustomDomainProperties.new
|
62
|
+
|
63
|
+
deserialized_property = object['hostName']
|
64
|
+
output_object.host_name = deserialized_property
|
65
|
+
|
66
|
+
deserialized_property = object['resourceState']
|
67
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
68
|
+
enum_is_valid = CustomDomainResourceState.constants.any? { |e| CustomDomainResourceState.const_get(e).to_s.downcase == deserialized_property.downcase }
|
69
|
+
warn 'Enum CustomDomainResourceState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
70
|
+
end
|
71
|
+
output_object.resource_state = deserialized_property
|
72
|
+
|
73
|
+
deserialized_property = object['provisioningState']
|
74
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
75
|
+
enum_is_valid = ProvisioningState.constants.any? { |e| ProvisioningState.const_get(e).to_s.downcase == deserialized_property.downcase }
|
76
|
+
warn 'Enum ProvisioningState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
77
|
+
end
|
78
|
+
output_object.provisioning_state = deserialized_property
|
79
|
+
|
80
|
+
output_object
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|