azure_mgmt_resources 0.1.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/.gitignore +10 -0
- data/.rspec +3 -0
- data/.travis.yml +3 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +21 -0
- data/README.md +106 -0
- data/Rakefile +5 -0
- data/azure_mgmt_resources.gemspec +38 -0
- data/lib/azure_mgmt_resources.rb +74 -0
- data/lib/azure_mgmt_resources/Models/basic_dependency.rb +76 -0
- data/lib/azure_mgmt_resources/Models/dependency.rb +105 -0
- data/lib/azure_mgmt_resources/Models/deployment.rb +64 -0
- data/lib/azure_mgmt_resources/Models/deployment_extended.rb +83 -0
- data/lib/azure_mgmt_resources/Models/deployment_extended_filter.rb +58 -0
- data/lib/azure_mgmt_resources/Models/deployment_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/deployment_mode.rb +15 -0
- data/lib/azure_mgmt_resources/Models/deployment_operation.rb +83 -0
- data/lib/azure_mgmt_resources/Models/deployment_operation_properties.rb +102 -0
- data/lib/azure_mgmt_resources/Models/deployment_operations_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/deployment_properties.rb +116 -0
- data/lib/azure_mgmt_resources/Models/deployment_properties_extended.rb +216 -0
- data/lib/azure_mgmt_resources/Models/deployment_validate_result.rb +82 -0
- data/lib/azure_mgmt_resources/Models/generic_resource.rb +103 -0
- data/lib/azure_mgmt_resources/Models/generic_resource_filter.rb +76 -0
- data/lib/azure_mgmt_resources/Models/parameters_link.rb +68 -0
- data/lib/azure_mgmt_resources/Models/plan.rb +85 -0
- data/lib/azure_mgmt_resources/Models/provider.rb +106 -0
- data/lib/azure_mgmt_resources/Models/provider_list_result.rb +87 -0
- data/lib/azure_mgmt_resources/Models/provider_resource_type.rb +88 -0
- data/lib/azure_mgmt_resources/Models/resource_group.rb +105 -0
- data/lib/azure_mgmt_resources/Models/resource_group_extended.rb +113 -0
- data/lib/azure_mgmt_resources/Models/resource_group_extended_filter.rb +63 -0
- data/lib/azure_mgmt_resources/Models/resource_group_filter.rb +67 -0
- data/lib/azure_mgmt_resources/Models/resource_group_format_resource_properties.rb +54 -0
- data/lib/azure_mgmt_resources/Models/resource_group_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/resource_group_properties.rb +58 -0
- data/lib/azure_mgmt_resources/Models/resource_list_result.rb +88 -0
- data/lib/azure_mgmt_resources/Models/resource_management_error.rb +77 -0
- data/lib/azure_mgmt_resources/Models/resource_management_error_with_details.rb +106 -0
- data/lib/azure_mgmt_resources/Models/resource_provider_operation_definition.rb +74 -0
- data/lib/azure_mgmt_resources/Models/resource_provider_operation_detail_list_result.rb +80 -0
- data/lib/azure_mgmt_resources/Models/resource_provider_operation_display_properties.rb +95 -0
- data/lib/azure_mgmt_resources/Models/resources_move_info.rb +67 -0
- data/lib/azure_mgmt_resources/Models/tag_count.rb +67 -0
- data/lib/azure_mgmt_resources/Models/tag_details.rb +112 -0
- data/lib/azure_mgmt_resources/Models/tag_value.rb +82 -0
- data/lib/azure_mgmt_resources/Models/tags_list_result.rb +87 -0
- data/lib/azure_mgmt_resources/Models/target_resource.rb +76 -0
- data/lib/azure_mgmt_resources/Models/template_link.rb +68 -0
- data/lib/azure_mgmt_resources/deployment_operations.rb +297 -0
- data/lib/azure_mgmt_resources/deployments.rb +601 -0
- data/lib/azure_mgmt_resources/module_definition.rb +6 -0
- data/lib/azure_mgmt_resources/providers.rb +461 -0
- data/lib/azure_mgmt_resources/resource_groups.rb +891 -0
- data/lib/azure_mgmt_resources/resource_management_client.rb +85 -0
- data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +126 -0
- data/lib/azure_mgmt_resources/resources.rb +737 -0
- data/lib/azure_mgmt_resources/tags.rb +546 -0
- data/lib/azure_mgmt_resources/version.rb +6 -0
- metadata +235 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Resources
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource information.
|
10
|
+
#
|
11
|
+
class GenericResource < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Plan] Gets or sets the plan of the resource.
|
16
|
+
attr_accessor :plan
|
17
|
+
|
18
|
+
# @return Gets or sets the resource properties.
|
19
|
+
attr_accessor :properties
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
@plan.validate unless @plan.nil?
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# Serializes given Model object into Ruby Hash.
|
30
|
+
# @param object Model object to serialize.
|
31
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
+
#
|
33
|
+
def self.serialize_object(object)
|
34
|
+
object.validate
|
35
|
+
output_object = {}
|
36
|
+
|
37
|
+
serialized_property = object.location
|
38
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
39
|
+
|
40
|
+
serialized_property = object.id
|
41
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
43
|
+
serialized_property = object.name
|
44
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
45
|
+
|
46
|
+
serialized_property = object.type
|
47
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
48
|
+
|
49
|
+
serialized_property = object.tags
|
50
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
51
|
+
|
52
|
+
serialized_property = object.plan
|
53
|
+
unless serialized_property.nil?
|
54
|
+
serialized_property = Plan.serialize_object(serialized_property)
|
55
|
+
end
|
56
|
+
output_object['plan'] = serialized_property unless serialized_property.nil?
|
57
|
+
|
58
|
+
serialized_property = object.properties
|
59
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
60
|
+
|
61
|
+
output_object
|
62
|
+
end
|
63
|
+
|
64
|
+
#
|
65
|
+
# Deserializes given Ruby Hash into Model object.
|
66
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
67
|
+
# @return [GenericResource] Deserialized object.
|
68
|
+
#
|
69
|
+
def self.deserialize_object(object)
|
70
|
+
return if object.nil?
|
71
|
+
output_object = GenericResource.new
|
72
|
+
|
73
|
+
deserialized_property = object['location']
|
74
|
+
output_object.location = deserialized_property
|
75
|
+
|
76
|
+
deserialized_property = object['id']
|
77
|
+
output_object.id = deserialized_property
|
78
|
+
|
79
|
+
deserialized_property = object['name']
|
80
|
+
output_object.name = deserialized_property
|
81
|
+
|
82
|
+
deserialized_property = object['type']
|
83
|
+
output_object.type = deserialized_property
|
84
|
+
|
85
|
+
deserialized_property = object['tags']
|
86
|
+
output_object.tags = deserialized_property
|
87
|
+
|
88
|
+
deserialized_property = object['plan']
|
89
|
+
unless deserialized_property.nil?
|
90
|
+
deserialized_property = Plan.deserialize_object(deserialized_property)
|
91
|
+
end
|
92
|
+
output_object.plan = deserialized_property
|
93
|
+
|
94
|
+
deserialized_property = object['properties']
|
95
|
+
output_object.properties = deserialized_property
|
96
|
+
|
97
|
+
output_object.validate
|
98
|
+
|
99
|
+
output_object
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Resources
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource filter.
|
10
|
+
#
|
11
|
+
class GenericResourceFilter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the resource type.
|
16
|
+
attr_accessor :resource_type
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the tag name.
|
19
|
+
attr_accessor :tagname
|
20
|
+
|
21
|
+
# @return [String] Gets or sets the tag value.
|
22
|
+
attr_accessor :tagvalue
|
23
|
+
|
24
|
+
#
|
25
|
+
# Validate the object. Throws ValidationError if validation fails.
|
26
|
+
#
|
27
|
+
def validate
|
28
|
+
# Nothing to validate
|
29
|
+
end
|
30
|
+
|
31
|
+
#
|
32
|
+
# Serializes given Model object into Ruby Hash.
|
33
|
+
# @param object Model object to serialize.
|
34
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
+
#
|
36
|
+
def self.serialize_object(object)
|
37
|
+
object.validate
|
38
|
+
output_object = {}
|
39
|
+
|
40
|
+
serialized_property = object.resource_type
|
41
|
+
output_object['resourceType'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
43
|
+
serialized_property = object.tagname
|
44
|
+
output_object['tagname'] = serialized_property unless serialized_property.nil?
|
45
|
+
|
46
|
+
serialized_property = object.tagvalue
|
47
|
+
output_object['tagvalue'] = serialized_property unless serialized_property.nil?
|
48
|
+
|
49
|
+
output_object
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Deserializes given Ruby Hash into Model object.
|
54
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
55
|
+
# @return [GenericResourceFilter] Deserialized object.
|
56
|
+
#
|
57
|
+
def self.deserialize_object(object)
|
58
|
+
return if object.nil?
|
59
|
+
output_object = GenericResourceFilter.new
|
60
|
+
|
61
|
+
deserialized_property = object['resourceType']
|
62
|
+
output_object.resource_type = deserialized_property
|
63
|
+
|
64
|
+
deserialized_property = object['tagname']
|
65
|
+
output_object.tagname = deserialized_property
|
66
|
+
|
67
|
+
deserialized_property = object['tagvalue']
|
68
|
+
output_object.tagvalue = deserialized_property
|
69
|
+
|
70
|
+
output_object.validate
|
71
|
+
|
72
|
+
output_object
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Resources
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Entity representing the reference to the deployment paramaters.
|
10
|
+
#
|
11
|
+
class ParametersLink
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] URI referencing the template.
|
16
|
+
attr_accessor :uri
|
17
|
+
|
18
|
+
# @return [String] If included it must match the ContentVersion in the
|
19
|
+
# template.
|
20
|
+
attr_accessor :content_version
|
21
|
+
|
22
|
+
#
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
24
|
+
#
|
25
|
+
def validate
|
26
|
+
# Nothing to validate
|
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.uri
|
39
|
+
output_object['uri'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
41
|
+
serialized_property = object.content_version
|
42
|
+
output_object['contentVersion'] = 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 [ParametersLink] Deserialized object.
|
51
|
+
#
|
52
|
+
def self.deserialize_object(object)
|
53
|
+
return if object.nil?
|
54
|
+
output_object = ParametersLink.new
|
55
|
+
|
56
|
+
deserialized_property = object['uri']
|
57
|
+
output_object.uri = deserialized_property
|
58
|
+
|
59
|
+
deserialized_property = object['contentVersion']
|
60
|
+
output_object.content_version = deserialized_property
|
61
|
+
|
62
|
+
output_object.validate
|
63
|
+
|
64
|
+
output_object
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Resources
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Plan for the resource.
|
10
|
+
#
|
11
|
+
class Plan
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the plan ID.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the publisher ID.
|
19
|
+
attr_accessor :publisher
|
20
|
+
|
21
|
+
# @return [String] Gets or sets the offer ID.
|
22
|
+
attr_accessor :product
|
23
|
+
|
24
|
+
# @return [String] Gets or sets the promotion code.
|
25
|
+
attr_accessor :promotion_code
|
26
|
+
|
27
|
+
#
|
28
|
+
# Validate the object. Throws ValidationError if validation fails.
|
29
|
+
#
|
30
|
+
def validate
|
31
|
+
# Nothing to validate
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
# Serializes given Model object into Ruby Hash.
|
36
|
+
# @param object Model object to serialize.
|
37
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
38
|
+
#
|
39
|
+
def self.serialize_object(object)
|
40
|
+
object.validate
|
41
|
+
output_object = {}
|
42
|
+
|
43
|
+
serialized_property = object.name
|
44
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
45
|
+
|
46
|
+
serialized_property = object.publisher
|
47
|
+
output_object['publisher'] = serialized_property unless serialized_property.nil?
|
48
|
+
|
49
|
+
serialized_property = object.product
|
50
|
+
output_object['product'] = serialized_property unless serialized_property.nil?
|
51
|
+
|
52
|
+
serialized_property = object.promotion_code
|
53
|
+
output_object['promotionCode'] = serialized_property unless serialized_property.nil?
|
54
|
+
|
55
|
+
output_object
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Deserializes given Ruby Hash into Model object.
|
60
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
61
|
+
# @return [Plan] Deserialized object.
|
62
|
+
#
|
63
|
+
def self.deserialize_object(object)
|
64
|
+
return if object.nil?
|
65
|
+
output_object = Plan.new
|
66
|
+
|
67
|
+
deserialized_property = object['name']
|
68
|
+
output_object.name = deserialized_property
|
69
|
+
|
70
|
+
deserialized_property = object['publisher']
|
71
|
+
output_object.publisher = deserialized_property
|
72
|
+
|
73
|
+
deserialized_property = object['product']
|
74
|
+
output_object.product = deserialized_property
|
75
|
+
|
76
|
+
deserialized_property = object['promotionCode']
|
77
|
+
output_object.promotion_code = deserialized_property
|
78
|
+
|
79
|
+
output_object.validate
|
80
|
+
|
81
|
+
output_object
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Resources
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource provider information.
|
10
|
+
#
|
11
|
+
class Provider
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the provider id.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the namespace of the provider.
|
19
|
+
attr_accessor :namespace
|
20
|
+
|
21
|
+
# @return [String] Gets or sets the registration state of the provider.
|
22
|
+
attr_accessor :registration_state
|
23
|
+
|
24
|
+
# @return [Array<ProviderResourceType>] Gets or sets the collection of
|
25
|
+
# provider resource types.
|
26
|
+
attr_accessor :resource_types
|
27
|
+
|
28
|
+
#
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
30
|
+
#
|
31
|
+
def validate
|
32
|
+
@resource_types.each{ |e| e.validate if e.respond_to?(:validate) } unless @resource_types.nil?
|
33
|
+
end
|
34
|
+
|
35
|
+
#
|
36
|
+
# Serializes given Model object into Ruby Hash.
|
37
|
+
# @param object Model object to serialize.
|
38
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
39
|
+
#
|
40
|
+
def self.serialize_object(object)
|
41
|
+
object.validate
|
42
|
+
output_object = {}
|
43
|
+
|
44
|
+
serialized_property = object.id
|
45
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
serialized_property = object.namespace
|
48
|
+
output_object['namespace'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
serialized_property = object.registration_state
|
51
|
+
output_object['registrationState'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.resource_types
|
54
|
+
unless serialized_property.nil?
|
55
|
+
serializedArray = []
|
56
|
+
serialized_property.each do |element|
|
57
|
+
unless element.nil?
|
58
|
+
element = ProviderResourceType.serialize_object(element)
|
59
|
+
end
|
60
|
+
serializedArray.push(element)
|
61
|
+
end
|
62
|
+
serialized_property = serializedArray
|
63
|
+
end
|
64
|
+
output_object['resourceTypes'] = serialized_property unless serialized_property.nil?
|
65
|
+
|
66
|
+
output_object
|
67
|
+
end
|
68
|
+
|
69
|
+
#
|
70
|
+
# Deserializes given Ruby Hash into Model object.
|
71
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
72
|
+
# @return [Provider] Deserialized object.
|
73
|
+
#
|
74
|
+
def self.deserialize_object(object)
|
75
|
+
return if object.nil?
|
76
|
+
output_object = Provider.new
|
77
|
+
|
78
|
+
deserialized_property = object['id']
|
79
|
+
output_object.id = deserialized_property
|
80
|
+
|
81
|
+
deserialized_property = object['namespace']
|
82
|
+
output_object.namespace = deserialized_property
|
83
|
+
|
84
|
+
deserialized_property = object['registrationState']
|
85
|
+
output_object.registration_state = deserialized_property
|
86
|
+
|
87
|
+
deserialized_property = object['resourceTypes']
|
88
|
+
unless deserialized_property.nil?
|
89
|
+
deserializedArray = [];
|
90
|
+
deserialized_property.each do |element1|
|
91
|
+
unless element1.nil?
|
92
|
+
element1 = ProviderResourceType.deserialize_object(element1)
|
93
|
+
end
|
94
|
+
deserializedArray.push(element1);
|
95
|
+
end
|
96
|
+
deserialized_property = deserializedArray;
|
97
|
+
end
|
98
|
+
output_object.resource_types = deserialized_property
|
99
|
+
|
100
|
+
output_object.validate
|
101
|
+
|
102
|
+
output_object
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Resources
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of resource providers.
|
10
|
+
#
|
11
|
+
class ProviderListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Provider>] Gets or sets the list of resource providers.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the URL to get the next set of results.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# Serializes given Model object into Ruby Hash.
|
30
|
+
# @param object Model object to serialize.
|
31
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
+
#
|
33
|
+
def self.serialize_object(object)
|
34
|
+
object.validate
|
35
|
+
output_object = {}
|
36
|
+
|
37
|
+
serialized_property = object.value
|
38
|
+
unless serialized_property.nil?
|
39
|
+
serializedArray = []
|
40
|
+
serialized_property.each do |element|
|
41
|
+
unless element.nil?
|
42
|
+
element = Provider.serialize_object(element)
|
43
|
+
end
|
44
|
+
serializedArray.push(element)
|
45
|
+
end
|
46
|
+
serialized_property = serializedArray
|
47
|
+
end
|
48
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
serialized_property = object.next_link
|
51
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
output_object
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Deserializes given Ruby Hash into Model object.
|
58
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
59
|
+
# @return [ProviderListResult] Deserialized object.
|
60
|
+
#
|
61
|
+
def self.deserialize_object(object)
|
62
|
+
return if object.nil?
|
63
|
+
output_object = ProviderListResult.new
|
64
|
+
|
65
|
+
deserialized_property = object['value']
|
66
|
+
unless deserialized_property.nil?
|
67
|
+
deserializedArray = [];
|
68
|
+
deserialized_property.each do |element1|
|
69
|
+
unless element1.nil?
|
70
|
+
element1 = Provider.deserialize_object(element1)
|
71
|
+
end
|
72
|
+
deserializedArray.push(element1);
|
73
|
+
end
|
74
|
+
deserialized_property = deserializedArray;
|
75
|
+
end
|
76
|
+
output_object.value = deserialized_property
|
77
|
+
|
78
|
+
deserialized_property = object['nextLink']
|
79
|
+
output_object.next_link = deserialized_property
|
80
|
+
|
81
|
+
output_object.validate
|
82
|
+
|
83
|
+
output_object
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|