azure_mgmt_resources 0.1.2 → 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 +4 -4
- data/azure_mgmt_resources.gemspec +2 -7
- data/lib/azure_mgmt_resources.rb +21 -18
- data/lib/azure_mgmt_resources/deployment_operations.rb +54 -135
- data/lib/azure_mgmt_resources/deployments.rb +314 -305
- data/lib/azure_mgmt_resources/models/basic_dependency.rb +1 -3
- data/lib/azure_mgmt_resources/models/dependency.rb +4 -6
- data/lib/azure_mgmt_resources/models/deployment.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_extended.rb +8 -9
- data/lib/azure_mgmt_resources/models/deployment_extended_filter.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/deployment_mode.rb +2 -1
- data/lib/azure_mgmt_resources/models/deployment_operation.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_operation_properties.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/deployment_properties.rb +3 -5
- data/lib/azure_mgmt_resources/models/deployment_properties_extended.rb +9 -11
- data/lib/azure_mgmt_resources/models/deployment_validate_result.rb +1 -3
- data/lib/azure_mgmt_resources/models/generic_resource.rb +1 -3
- data/lib/azure_mgmt_resources/models/generic_resource_filter.rb +1 -3
- data/lib/azure_mgmt_resources/models/parameters_link.rb +2 -4
- data/lib/azure_mgmt_resources/models/plan.rb +1 -3
- data/lib/azure_mgmt_resources/models/policy_assignment.rb +72 -0
- data/lib/azure_mgmt_resources/models/policy_assignment_list_result.rb +86 -0
- data/lib/azure_mgmt_resources/models/policy_assignment_properties.rb +74 -0
- data/lib/azure_mgmt_resources/models/policy_definition.rb +72 -0
- data/lib/azure_mgmt_resources/models/policy_definition_properties.rb +74 -0
- data/lib/azure_mgmt_resources/models/provider.rb +4 -6
- data/lib/azure_mgmt_resources/models/provider_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/provider_resource_type.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_group.rb +8 -9
- data/lib/azure_mgmt_resources/models/resource_group_filter.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_group_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/models/resource_group_properties.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/models/resource_management_error.rb +3 -4
- data/lib/azure_mgmt_resources/models/resource_management_error_with_details.rb +23 -35
- data/lib/azure_mgmt_resources/models/resource_provider_operation_definition.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_provider_operation_detail_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +1 -3
- data/lib/azure_mgmt_resources/models/resources_move_info.rb +1 -3
- data/lib/azure_mgmt_resources/models/tag_count.rb +1 -3
- data/lib/azure_mgmt_resources/models/tag_details.rb +4 -6
- data/lib/azure_mgmt_resources/models/tag_value.rb +1 -3
- data/lib/azure_mgmt_resources/models/tags_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/models/target_resource.rb +1 -3
- data/lib/azure_mgmt_resources/models/template_link.rb +2 -4
- data/lib/azure_mgmt_resources/module_definition.rb +5 -3
- data/lib/azure_mgmt_resources/policy_assignments.rb +922 -0
- data/lib/azure_mgmt_resources/policy_definitions.rb +208 -0
- data/lib/azure_mgmt_resources/providers.rb +90 -219
- data/lib/azure_mgmt_resources/resource_groups.rb +166 -434
- data/lib/azure_mgmt_resources/resource_management_client.rb +25 -10
- data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +88 -43
- data/lib/azure_mgmt_resources/resources.rb +162 -366
- data/lib/azure_mgmt_resources/tags.rb +110 -264
- data/lib/azure_mgmt_resources/version.rb +5 -3
- metadata +12 -86
- data/.travis.yml +0 -3
- data/Gemfile +0 -14
- data/lib/azure_mgmt_resources/models/resource_group_extended.rb +0 -113
- data/lib/azure_mgmt_resources/models/resource_group_extended_filter.rb +0 -63
- data/lib/azure_mgmt_resources/models/resource_group_format_resource_properties.rb +0 -54
@@ -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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -58,8 +58,6 @@ module Azure::ARM::Resources
|
|
58
58
|
deserialized_property = object['tagValue']
|
59
59
|
output_object.tag_value = deserialized_property
|
60
60
|
|
61
|
-
output_object.validate
|
62
|
-
|
63
61
|
output_object
|
64
62
|
end
|
65
63
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -23,6 +23,7 @@ module Azure::ARM::Resources
|
|
23
23
|
# Validate the object. Throws ValidationError if validation fails.
|
24
24
|
#
|
25
25
|
def validate
|
26
|
+
fail MsRest::ValidationError, 'property next_link is nil' if @next_link.nil?
|
26
27
|
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
27
28
|
end
|
28
29
|
|
@@ -35,6 +36,9 @@ module Azure::ARM::Resources
|
|
35
36
|
object.validate
|
36
37
|
output_object = {}
|
37
38
|
|
39
|
+
serialized_property = object.next_link
|
40
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
41
|
+
|
38
42
|
serialized_property = object.value
|
39
43
|
unless serialized_property.nil?
|
40
44
|
serializedArray = []
|
@@ -48,9 +52,6 @@ module Azure::ARM::Resources
|
|
48
52
|
end
|
49
53
|
output_object['value'] = serialized_property unless serialized_property.nil?
|
50
54
|
|
51
|
-
serialized_property = object.next_link
|
52
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
55
|
output_object
|
55
56
|
end
|
56
57
|
|
@@ -63,24 +64,22 @@ module Azure::ARM::Resources
|
|
63
64
|
return if object.nil?
|
64
65
|
output_object = ResourceGroupListResult.new
|
65
66
|
|
67
|
+
deserialized_property = object['nextLink']
|
68
|
+
output_object.next_link = deserialized_property
|
69
|
+
|
66
70
|
deserialized_property = object['value']
|
67
71
|
unless deserialized_property.nil?
|
68
|
-
|
72
|
+
deserialized_array = []
|
69
73
|
deserialized_property.each do |element1|
|
70
74
|
unless element1.nil?
|
71
75
|
element1 = ResourceGroup.deserialize_object(element1)
|
72
76
|
end
|
73
|
-
|
77
|
+
deserialized_array.push(element1)
|
74
78
|
end
|
75
|
-
deserialized_property =
|
79
|
+
deserialized_property = deserialized_array
|
76
80
|
end
|
77
81
|
output_object.value = deserialized_property
|
78
82
|
|
79
|
-
deserialized_property = object['nextLink']
|
80
|
-
output_object.next_link = deserialized_property
|
81
|
-
|
82
|
-
output_object.validate
|
83
|
-
|
84
83
|
output_object
|
85
84
|
end
|
86
85
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -49,8 +49,6 @@ module Azure::ARM::Resources
|
|
49
49
|
deserialized_property = object['provisioningState']
|
50
50
|
output_object.provisioning_state = deserialized_property
|
51
51
|
|
52
|
-
output_object.validate
|
53
|
-
|
54
52
|
output_object
|
55
53
|
end
|
56
54
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -23,6 +23,7 @@ module Azure::ARM::Resources
|
|
23
23
|
# Validate the object. Throws ValidationError if validation fails.
|
24
24
|
#
|
25
25
|
def validate
|
26
|
+
fail MsRest::ValidationError, 'property next_link is nil' if @next_link.nil?
|
26
27
|
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
27
28
|
end
|
28
29
|
|
@@ -35,6 +36,9 @@ module Azure::ARM::Resources
|
|
35
36
|
object.validate
|
36
37
|
output_object = {}
|
37
38
|
|
39
|
+
serialized_property = object.next_link
|
40
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
41
|
+
|
38
42
|
serialized_property = object.value
|
39
43
|
unless serialized_property.nil?
|
40
44
|
serializedArray = []
|
@@ -48,9 +52,6 @@ module Azure::ARM::Resources
|
|
48
52
|
end
|
49
53
|
output_object['value'] = serialized_property unless serialized_property.nil?
|
50
54
|
|
51
|
-
serialized_property = object.next_link
|
52
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
55
|
output_object
|
55
56
|
end
|
56
57
|
|
@@ -63,24 +64,22 @@ module Azure::ARM::Resources
|
|
63
64
|
return if object.nil?
|
64
65
|
output_object = ResourceListResult.new
|
65
66
|
|
67
|
+
deserialized_property = object['nextLink']
|
68
|
+
output_object.next_link = deserialized_property
|
69
|
+
|
66
70
|
deserialized_property = object['value']
|
67
71
|
unless deserialized_property.nil?
|
68
|
-
|
72
|
+
deserialized_array = []
|
69
73
|
deserialized_property.each do |element1|
|
70
74
|
unless element1.nil?
|
71
75
|
element1 = GenericResource.deserialize_object(element1)
|
72
76
|
end
|
73
|
-
|
77
|
+
deserialized_array.push(element1)
|
74
78
|
end
|
75
|
-
deserialized_property =
|
79
|
+
deserialized_property = deserialized_array
|
76
80
|
end
|
77
81
|
output_object.value = deserialized_property
|
78
82
|
|
79
|
-
deserialized_property = object['nextLink']
|
80
|
-
output_object.next_link = deserialized_property
|
81
|
-
|
82
|
-
output_object.validate
|
83
|
-
|
84
83
|
output_object
|
85
84
|
end
|
86
85
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -26,7 +26,8 @@ module Azure::ARM::Resources
|
|
26
26
|
# Validate the object. Throws ValidationError if validation fails.
|
27
27
|
#
|
28
28
|
def validate
|
29
|
-
|
29
|
+
fail MsRest::ValidationError, 'property code is nil' if @code.nil?
|
30
|
+
fail MsRest::ValidationError, 'property message is nil' if @message.nil?
|
30
31
|
end
|
31
32
|
|
32
33
|
#
|
@@ -68,8 +69,6 @@ module Azure::ARM::Resources
|
|
68
69
|
deserialized_property = object['target']
|
69
70
|
output_object.target = deserialized_property
|
70
71
|
|
71
|
-
output_object.validate
|
72
|
-
|
73
72
|
output_object
|
74
73
|
end
|
75
74
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,23 +8,13 @@ module Azure::ARM::Resources
|
|
8
8
|
#
|
9
9
|
# Model object.
|
10
10
|
#
|
11
|
-
class ResourceManagementErrorWithDetails
|
11
|
+
class ResourceManagementErrorWithDetails < ResourceManagementError
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [Array<ResourceManagementError>] Gets or sets validation error.
|
16
16
|
attr_accessor :details
|
17
17
|
|
18
|
-
# @return [String] Gets or sets the error code returned from the server.
|
19
|
-
attr_accessor :code
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the error message returned from the
|
22
|
-
# server.
|
23
|
-
attr_accessor :message
|
24
|
-
|
25
|
-
# @return [String] Gets or sets the target of the error.
|
26
|
-
attr_accessor :target
|
27
|
-
|
28
18
|
#
|
29
19
|
# Validate the object. Throws ValidationError if validation fails.
|
30
20
|
#
|
@@ -41,6 +31,15 @@ module Azure::ARM::Resources
|
|
41
31
|
object.validate
|
42
32
|
output_object = {}
|
43
33
|
|
34
|
+
serialized_property = object.code
|
35
|
+
output_object['code'] = serialized_property unless serialized_property.nil?
|
36
|
+
|
37
|
+
serialized_property = object.message
|
38
|
+
output_object['message'] = serialized_property unless serialized_property.nil?
|
39
|
+
|
40
|
+
serialized_property = object.target
|
41
|
+
output_object['target'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
44
43
|
serialized_property = object.details
|
45
44
|
unless serialized_property.nil?
|
46
45
|
serializedArray = []
|
@@ -54,15 +53,6 @@ module Azure::ARM::Resources
|
|
54
53
|
end
|
55
54
|
output_object['details'] = serialized_property unless serialized_property.nil?
|
56
55
|
|
57
|
-
serialized_property = object.code
|
58
|
-
output_object['code'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
|
-
serialized_property = object.message
|
61
|
-
output_object['message'] = serialized_property unless serialized_property.nil?
|
62
|
-
|
63
|
-
serialized_property = object.target
|
64
|
-
output_object['target'] = serialized_property unless serialized_property.nil?
|
65
|
-
|
66
56
|
output_object
|
67
57
|
end
|
68
58
|
|
@@ -75,19 +65,6 @@ module Azure::ARM::Resources
|
|
75
65
|
return if object.nil?
|
76
66
|
output_object = ResourceManagementErrorWithDetails.new
|
77
67
|
|
78
|
-
deserialized_property = object['details']
|
79
|
-
unless deserialized_property.nil?
|
80
|
-
deserializedArray = [];
|
81
|
-
deserialized_property.each do |element1|
|
82
|
-
unless element1.nil?
|
83
|
-
element1 = ResourceManagementError.deserialize_object(element1)
|
84
|
-
end
|
85
|
-
deserializedArray.push(element1);
|
86
|
-
end
|
87
|
-
deserialized_property = deserializedArray;
|
88
|
-
end
|
89
|
-
output_object.details = deserialized_property
|
90
|
-
|
91
68
|
deserialized_property = object['code']
|
92
69
|
output_object.code = deserialized_property
|
93
70
|
|
@@ -97,7 +74,18 @@ module Azure::ARM::Resources
|
|
97
74
|
deserialized_property = object['target']
|
98
75
|
output_object.target = deserialized_property
|
99
76
|
|
100
|
-
|
77
|
+
deserialized_property = object['details']
|
78
|
+
unless deserialized_property.nil?
|
79
|
+
deserialized_array = []
|
80
|
+
deserialized_property.each do |element1|
|
81
|
+
unless element1.nil?
|
82
|
+
element1 = ResourceManagementError.deserialize_object(element1)
|
83
|
+
end
|
84
|
+
deserialized_array.push(element1)
|
85
|
+
end
|
86
|
+
deserialized_property = deserialized_array
|
87
|
+
end
|
88
|
+
output_object.details = deserialized_property
|
101
89
|
|
102
90
|
output_object
|
103
91
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -65,8 +65,6 @@ module Azure::ARM::Resources
|
|
65
65
|
end
|
66
66
|
output_object.display = deserialized_property
|
67
67
|
|
68
|
-
output_object.validate
|
69
|
-
|
70
68
|
output_object
|
71
69
|
end
|
72
70
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -60,19 +60,17 @@ module Azure::ARM::Resources
|
|
60
60
|
|
61
61
|
deserialized_property = object['value']
|
62
62
|
unless deserialized_property.nil?
|
63
|
-
|
63
|
+
deserialized_array = []
|
64
64
|
deserialized_property.each do |element1|
|
65
65
|
unless element1.nil?
|
66
66
|
element1 = ResourceProviderOperationDefinition.deserialize_object(element1)
|
67
67
|
end
|
68
|
-
|
68
|
+
deserialized_array.push(element1)
|
69
69
|
end
|
70
|
-
deserialized_property =
|
70
|
+
deserialized_property = deserialized_array
|
71
71
|
end
|
72
72
|
output_object.value = deserialized_property
|
73
73
|
|
74
|
-
output_object.validate
|
75
|
-
|
76
74
|
output_object
|
77
75
|
end
|
78
76
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -86,8 +86,6 @@ module Azure::ARM::Resources
|
|
86
86
|
deserialized_property = object['description']
|
87
87
|
output_object.description = deserialized_property
|
88
88
|
|
89
|
-
output_object.validate
|
90
|
-
|
91
89
|
output_object
|
92
90
|
end
|
93
91
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -58,8 +58,6 @@ module Azure::ARM::Resources
|
|
58
58
|
deserialized_property = object['targetResourceGroup']
|
59
59
|
output_object.target_resource_group = deserialized_property
|
60
60
|
|
61
|
-
output_object.validate
|
62
|
-
|
63
61
|
output_object
|
64
62
|
end
|
65
63
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -58,8 +58,6 @@ module Azure::ARM::Resources
|
|
58
58
|
deserialized_property = object['value']
|
59
59
|
output_object.value = deserialized_property
|
60
60
|
|
61
|
-
output_object.validate
|
62
|
-
|
63
61
|
output_object
|
64
62
|
end
|
65
63
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -92,19 +92,17 @@ module Azure::ARM::Resources
|
|
92
92
|
|
93
93
|
deserialized_property = object['values']
|
94
94
|
unless deserialized_property.nil?
|
95
|
-
|
95
|
+
deserialized_array = []
|
96
96
|
deserialized_property.each do |element1|
|
97
97
|
unless element1.nil?
|
98
98
|
element1 = TagValue.deserialize_object(element1)
|
99
99
|
end
|
100
|
-
|
100
|
+
deserialized_array.push(element1)
|
101
101
|
end
|
102
|
-
deserialized_property =
|
102
|
+
deserialized_property = deserialized_array
|
103
103
|
end
|
104
104
|
output_object.values = deserialized_property
|
105
105
|
|
106
|
-
output_object.validate
|
107
|
-
|
108
106
|
output_object
|
109
107
|
end
|
110
108
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -73,8 +73,6 @@ module Azure::ARM::Resources
|
|
73
73
|
end
|
74
74
|
output_object.count = deserialized_property
|
75
75
|
|
76
|
-
output_object.validate
|
77
|
-
|
78
76
|
output_object
|
79
77
|
end
|
80
78
|
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.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -22,6 +22,7 @@ module Azure::ARM::Resources
|
|
22
22
|
# Validate the object. Throws ValidationError if validation fails.
|
23
23
|
#
|
24
24
|
def validate
|
25
|
+
fail MsRest::ValidationError, 'property next_link is nil' if @next_link.nil?
|
25
26
|
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
26
27
|
end
|
27
28
|
|
@@ -34,6 +35,9 @@ module Azure::ARM::Resources
|
|
34
35
|
object.validate
|
35
36
|
output_object = {}
|
36
37
|
|
38
|
+
serialized_property = object.next_link
|
39
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
37
41
|
serialized_property = object.value
|
38
42
|
unless serialized_property.nil?
|
39
43
|
serializedArray = []
|
@@ -47,9 +51,6 @@ module Azure::ARM::Resources
|
|
47
51
|
end
|
48
52
|
output_object['value'] = serialized_property unless serialized_property.nil?
|
49
53
|
|
50
|
-
serialized_property = object.next_link
|
51
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
54
|
output_object
|
54
55
|
end
|
55
56
|
|
@@ -62,24 +63,22 @@ module Azure::ARM::Resources
|
|
62
63
|
return if object.nil?
|
63
64
|
output_object = TagsListResult.new
|
64
65
|
|
66
|
+
deserialized_property = object['nextLink']
|
67
|
+
output_object.next_link = deserialized_property
|
68
|
+
|
65
69
|
deserialized_property = object['value']
|
66
70
|
unless deserialized_property.nil?
|
67
|
-
|
71
|
+
deserialized_array = []
|
68
72
|
deserialized_property.each do |element1|
|
69
73
|
unless element1.nil?
|
70
74
|
element1 = TagDetails.deserialize_object(element1)
|
71
75
|
end
|
72
|
-
|
76
|
+
deserialized_array.push(element1)
|
73
77
|
end
|
74
|
-
deserialized_property =
|
78
|
+
deserialized_property = deserialized_array
|
75
79
|
end
|
76
80
|
output_object.value = deserialized_property
|
77
81
|
|
78
|
-
deserialized_property = object['nextLink']
|
79
|
-
output_object.next_link = deserialized_property
|
80
|
-
|
81
|
-
output_object.validate
|
82
|
-
|
83
82
|
output_object
|
84
83
|
end
|
85
84
|
end
|