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,76 @@
|
|
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 ProfileListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Profile>] List of CDN Profiles within a resource group
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
#
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
20
|
+
#
|
21
|
+
def validate
|
22
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.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.value
|
35
|
+
unless serialized_property.nil?
|
36
|
+
serializedArray = []
|
37
|
+
serialized_property.each do |element|
|
38
|
+
unless element.nil?
|
39
|
+
element = Profile.serialize_object(element)
|
40
|
+
end
|
41
|
+
serializedArray.push(element)
|
42
|
+
end
|
43
|
+
serialized_property = serializedArray
|
44
|
+
end
|
45
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
output_object
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# Deserializes given Ruby Hash into Model object.
|
52
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
53
|
+
# @return [ProfileListResult] Deserialized object.
|
54
|
+
#
|
55
|
+
def self.deserialize_object(object)
|
56
|
+
return if object.nil?
|
57
|
+
output_object = ProfileListResult.new
|
58
|
+
|
59
|
+
deserialized_property = object['value']
|
60
|
+
unless deserialized_property.nil?
|
61
|
+
deserialized_array = []
|
62
|
+
deserialized_property.each do |element1|
|
63
|
+
unless element1.nil?
|
64
|
+
element1 = Profile.deserialize_object(element1)
|
65
|
+
end
|
66
|
+
deserialized_array.push(element1)
|
67
|
+
end
|
68
|
+
deserialized_property = deserialized_array
|
69
|
+
end
|
70
|
+
output_object.value = deserialized_property
|
71
|
+
|
72
|
+
output_object
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,90 @@
|
|
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 ProfileProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Sku] Profile sku
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
# @return [ProfileResourceState] Resource status of the profile.
|
19
|
+
# Possible values include: 'Creating', 'Active', 'Deleting', 'Disabled'
|
20
|
+
attr_accessor :resource_state
|
21
|
+
|
22
|
+
# @return [ProvisioningState] Provisioning status of the profile.
|
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
|
+
@sku.validate unless @sku.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.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
|
+
serialized_property = object.resource_state
|
49
|
+
output_object['resourceState'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
serialized_property = object.provisioning_state
|
52
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
53
|
+
|
54
|
+
output_object
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Deserializes given Ruby Hash into Model object.
|
59
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
60
|
+
# @return [ProfileProperties] Deserialized object.
|
61
|
+
#
|
62
|
+
def self.deserialize_object(object)
|
63
|
+
return if object.nil?
|
64
|
+
output_object = ProfileProperties.new
|
65
|
+
|
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
|
+
deserialized_property = object['resourceState']
|
73
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
74
|
+
enum_is_valid = ProfileResourceState.constants.any? { |e| ProfileResourceState.const_get(e).to_s.downcase == deserialized_property.downcase }
|
75
|
+
warn 'Enum ProfileResourceState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
76
|
+
end
|
77
|
+
output_object.resource_state = deserialized_property
|
78
|
+
|
79
|
+
deserialized_property = object['provisioningState']
|
80
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
81
|
+
enum_is_valid = ProvisioningState.constants.any? { |e| ProvisioningState.const_get(e).to_s.downcase == deserialized_property.downcase }
|
82
|
+
warn 'Enum ProvisioningState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
83
|
+
end
|
84
|
+
output_object.provisioning_state = deserialized_property
|
85
|
+
|
86
|
+
output_object
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,63 @@
|
|
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 ProfilePropertiesCreateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Sku] Profile sku
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
#
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
20
|
+
#
|
21
|
+
def validate
|
22
|
+
fail MsRest::ValidationError, 'property sku is nil' if @sku.nil?
|
23
|
+
@sku.validate unless @sku.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.sku
|
36
|
+
unless serialized_property.nil?
|
37
|
+
serialized_property = Sku.serialize_object(serialized_property)
|
38
|
+
end
|
39
|
+
output_object['sku'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
41
|
+
output_object
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Deserializes given Ruby Hash into Model object.
|
46
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
47
|
+
# @return [ProfilePropertiesCreateParameters] Deserialized object.
|
48
|
+
#
|
49
|
+
def self.deserialize_object(object)
|
50
|
+
return if object.nil?
|
51
|
+
output_object = ProfilePropertiesCreateParameters.new
|
52
|
+
|
53
|
+
deserialized_property = object['sku']
|
54
|
+
unless deserialized_property.nil?
|
55
|
+
deserialized_property = Sku.deserialize_object(deserialized_property)
|
56
|
+
end
|
57
|
+
output_object.sku = deserialized_property
|
58
|
+
|
59
|
+
output_object
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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
|
+
# Defines values for ProfileResourceState
|
10
|
+
#
|
11
|
+
module ProfileResourceState
|
12
|
+
Creating = "Creating"
|
13
|
+
Active = "Active"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Disabled = "Disabled"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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
|
+
# Profile properties required for profile update
|
10
|
+
#
|
11
|
+
class ProfileUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] Profile tags
|
16
|
+
attr_accessor :tags
|
17
|
+
|
18
|
+
#
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
20
|
+
#
|
21
|
+
def validate
|
22
|
+
fail MsRest::ValidationError, 'property tags is nil' if @tags.nil?
|
23
|
+
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.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.tags
|
36
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
37
|
+
|
38
|
+
output_object
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Deserializes given Ruby Hash into Model object.
|
43
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
44
|
+
# @return [ProfileUpdateParameters] Deserialized object.
|
45
|
+
#
|
46
|
+
def self.deserialize_object(object)
|
47
|
+
return if object.nil?
|
48
|
+
output_object = ProfileUpdateParameters.new
|
49
|
+
|
50
|
+
deserialized_property = object['tags']
|
51
|
+
output_object.tags = deserialized_property
|
52
|
+
|
53
|
+
output_object
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,17 @@
|
|
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
|
+
# Defines values for ProvisioningState
|
10
|
+
#
|
11
|
+
module ProvisioningState
|
12
|
+
Creating = "Creating"
|
13
|
+
Succeeded = "Succeeded"
|
14
|
+
Failed = "Failed"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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
|
+
# Parameters required for endpoint purge
|
10
|
+
#
|
11
|
+
class PurgeParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<String>] The path to the content to be purged, can
|
16
|
+
# describe a file path or a wild card directory.
|
17
|
+
attr_accessor :content_paths
|
18
|
+
|
19
|
+
#
|
20
|
+
# Validate the object. Throws ValidationError if validation fails.
|
21
|
+
#
|
22
|
+
def validate
|
23
|
+
fail MsRest::ValidationError, 'property content_paths is nil' if @content_paths.nil?
|
24
|
+
@content_paths.each{ |e| e.validate if e.respond_to?(:validate) } unless @content_paths.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.content_paths
|
37
|
+
output_object['contentPaths'] = serialized_property unless serialized_property.nil?
|
38
|
+
|
39
|
+
output_object
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Deserializes given Ruby Hash into Model object.
|
44
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
45
|
+
# @return [PurgeParameters] Deserialized object.
|
46
|
+
#
|
47
|
+
def self.deserialize_object(object)
|
48
|
+
return if object.nil?
|
49
|
+
output_object = PurgeParameters.new
|
50
|
+
|
51
|
+
deserialized_property = object['contentPaths']
|
52
|
+
output_object.content_paths = deserialized_property
|
53
|
+
|
54
|
+
output_object
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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
|
+
# Defines values for QueryStringCachingBehavior
|
10
|
+
#
|
11
|
+
module QueryStringCachingBehavior
|
12
|
+
IgnoreQueryString = "IgnoreQueryString"
|
13
|
+
BypassCaching = "BypassCaching"
|
14
|
+
UseQueryString = "UseQueryString"
|
15
|
+
NotSet = "NotSet"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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
|
+
# Defines a pricing tier for a profile
|
10
|
+
#
|
11
|
+
class Sku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [SkuName] Name of the resource sku. Possible values include:
|
16
|
+
# 'Standard', 'Premium'
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
#
|
20
|
+
# Validate the object. Throws ValidationError if validation fails.
|
21
|
+
#
|
22
|
+
def validate
|
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.name
|
35
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
36
|
+
|
37
|
+
output_object
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Deserializes given Ruby Hash into Model object.
|
42
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
+
# @return [Sku] Deserialized object.
|
44
|
+
#
|
45
|
+
def self.deserialize_object(object)
|
46
|
+
return if object.nil?
|
47
|
+
output_object = Sku.new
|
48
|
+
|
49
|
+
deserialized_property = object['name']
|
50
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
51
|
+
enum_is_valid = SkuName.constants.any? { |e| SkuName.const_get(e).to_s.downcase == deserialized_property.downcase }
|
52
|
+
warn 'Enum SkuName does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
53
|
+
end
|
54
|
+
output_object.name = deserialized_property
|
55
|
+
|
56
|
+
output_object
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|