azure_mgmt_resources 0.1.0 → 0.3.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 +13 -5
- data/README.md +1 -27
- data/azure_mgmt_resources.gemspec +2 -6
- data/lib/azure_mgmt_resources/deployment_operations.rb +161 -141
- data/lib/azure_mgmt_resources/deployments.rb +684 -310
- data/lib/azure_mgmt_resources/{Models → models}/basic_dependency.rb +1 -3
- data/lib/azure_mgmt_resources/models/debug_setting.rb +56 -0
- data/lib/azure_mgmt_resources/{Models → models}/dependency.rb +4 -6
- data/lib/azure_mgmt_resources/{Models → models}/deployment.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_export_result.rb +56 -0
- data/lib/azure_mgmt_resources/{Models → models}/deployment_extended.rb +8 -9
- data/lib/azure_mgmt_resources/{Models → models}/deployment_extended_filter.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/deployment_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/{Models → models}/deployment_mode.rb +2 -1
- data/lib/azure_mgmt_resources/{Models → models}/deployment_operation.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/deployment_operation_properties.rb +41 -2
- data/lib/azure_mgmt_resources/{Models → models}/deployment_operations_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/{Models → models}/deployment_properties.rb +19 -4
- data/lib/azure_mgmt_resources/{Models → models}/deployment_properties_extended.rb +25 -10
- data/lib/azure_mgmt_resources/{Models → models}/deployment_validate_result.rb +1 -3
- data/lib/azure_mgmt_resources/models/export_template_request.rb +69 -0
- data/lib/azure_mgmt_resources/{Models → models}/generic_resource.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/generic_resource_filter.rb +1 -3
- data/lib/azure_mgmt_resources/models/http_message.rb +56 -0
- data/lib/azure_mgmt_resources/{Models → models}/parameters_link.rb +2 -4
- data/lib/azure_mgmt_resources/{Models → models}/plan.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/provider.rb +4 -6
- data/lib/azure_mgmt_resources/{Models → models}/provider_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/{Models → models}/provider_resource_type.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/resource_group.rb +8 -9
- data/lib/azure_mgmt_resources/models/resource_group_export_result.rb +71 -0
- data/lib/azure_mgmt_resources/{Models → models}/resource_group_filter.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/resource_group_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/{Models → models}/resource_group_properties.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/resource_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/{Models → models}/resource_management_error_with_details.rb +29 -28
- data/lib/azure_mgmt_resources/{Models → models}/resource_provider_operation_definition.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/resource_provider_operation_detail_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/{Models → models}/resource_provider_operation_display_properties.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/resources_move_info.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/tag_count.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/tag_details.rb +4 -6
- data/lib/azure_mgmt_resources/{Models → models}/tag_value.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/tags_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/{Models → models}/target_resource.rb +1 -3
- data/lib/azure_mgmt_resources/{Models → models}/template_link.rb +2 -4
- data/lib/azure_mgmt_resources/module_definition.rb +5 -3
- data/lib/azure_mgmt_resources/providers.rb +265 -239
- data/lib/azure_mgmt_resources/resource_groups.rb +604 -465
- data/lib/azure_mgmt_resources/resource_management_client.rb +18 -11
- data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +154 -47
- data/lib/azure_mgmt_resources/resources.rb +425 -380
- data/lib/azure_mgmt_resources/tags.rb +310 -288
- data/lib/azure_mgmt_resources/version.rb +5 -3
- data/lib/azure_mgmt_resources.rb +20 -19
- metadata +68 -126
- 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
- data/lib/azure_mgmt_resources/Models/resource_management_error.rb +0 -77
|
@@ -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
|
|
|
@@ -94,8 +94,6 @@ module Azure::ARM::Resources
|
|
|
94
94
|
deserialized_property = object['properties']
|
|
95
95
|
output_object.properties = deserialized_property
|
|
96
96
|
|
|
97
|
-
output_object.validate
|
|
98
|
-
|
|
99
97
|
output_object
|
|
100
98
|
end
|
|
101
99
|
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
|
|
|
@@ -67,8 +67,6 @@ module Azure::ARM::Resources
|
|
|
67
67
|
deserialized_property = object['tagvalue']
|
|
68
68
|
output_object.tagvalue = deserialized_property
|
|
69
69
|
|
|
70
|
-
output_object.validate
|
|
71
|
-
|
|
72
70
|
output_object
|
|
73
71
|
end
|
|
74
72
|
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
|
+
# Model object.
|
|
10
|
+
#
|
|
11
|
+
class HttpMessage
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return Gets or sets HTTP message content.
|
|
16
|
+
attr_accessor :content
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
20
|
+
#
|
|
21
|
+
def validate
|
|
22
|
+
# Nothing to 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.content
|
|
35
|
+
output_object['content'] = 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 [HttpMessage] Deserialized object.
|
|
44
|
+
#
|
|
45
|
+
def self.deserialize_object(object)
|
|
46
|
+
return if object.nil?
|
|
47
|
+
output_object = HttpMessage.new
|
|
48
|
+
|
|
49
|
+
deserialized_property = object['content']
|
|
50
|
+
output_object.content = deserialized_property
|
|
51
|
+
|
|
52
|
+
output_object
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
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
|
|
|
@@ -23,7 +23,7 @@ module Azure::ARM::Resources
|
|
|
23
23
|
# Validate the object. Throws ValidationError if validation fails.
|
|
24
24
|
#
|
|
25
25
|
def validate
|
|
26
|
-
|
|
26
|
+
fail MsRest::ValidationError, 'property uri is nil' if @uri.nil?
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
#
|
|
@@ -59,8 +59,6 @@ module Azure::ARM::Resources
|
|
|
59
59
|
deserialized_property = object['contentVersion']
|
|
60
60
|
output_object.content_version = deserialized_property
|
|
61
61
|
|
|
62
|
-
output_object.validate
|
|
63
|
-
|
|
64
62
|
output_object
|
|
65
63
|
end
|
|
66
64
|
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
|
|
|
@@ -76,8 +76,6 @@ module Azure::ARM::Resources
|
|
|
76
76
|
deserialized_property = object['promotionCode']
|
|
77
77
|
output_object.promotion_code = deserialized_property
|
|
78
78
|
|
|
79
|
-
output_object.validate
|
|
80
|
-
|
|
81
79
|
output_object
|
|
82
80
|
end
|
|
83
81
|
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
|
|
|
@@ -86,19 +86,17 @@ module Azure::ARM::Resources
|
|
|
86
86
|
|
|
87
87
|
deserialized_property = object['resourceTypes']
|
|
88
88
|
unless deserialized_property.nil?
|
|
89
|
-
|
|
89
|
+
deserialized_array = []
|
|
90
90
|
deserialized_property.each do |element1|
|
|
91
91
|
unless element1.nil?
|
|
92
92
|
element1 = ProviderResourceType.deserialize_object(element1)
|
|
93
93
|
end
|
|
94
|
-
|
|
94
|
+
deserialized_array.push(element1)
|
|
95
95
|
end
|
|
96
|
-
deserialized_property =
|
|
96
|
+
deserialized_property = deserialized_array
|
|
97
97
|
end
|
|
98
98
|
output_object.resource_types = deserialized_property
|
|
99
99
|
|
|
100
|
-
output_object.validate
|
|
101
|
-
|
|
102
100
|
output_object
|
|
103
101
|
end
|
|
104
102
|
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
|
|
|
@@ -64,22 +64,20 @@ module Azure::ARM::Resources
|
|
|
64
64
|
|
|
65
65
|
deserialized_property = object['value']
|
|
66
66
|
unless deserialized_property.nil?
|
|
67
|
-
|
|
67
|
+
deserialized_array = []
|
|
68
68
|
deserialized_property.each do |element1|
|
|
69
69
|
unless element1.nil?
|
|
70
70
|
element1 = Provider.deserialize_object(element1)
|
|
71
71
|
end
|
|
72
|
-
|
|
72
|
+
deserialized_array.push(element1)
|
|
73
73
|
end
|
|
74
|
-
deserialized_property =
|
|
74
|
+
deserialized_property = deserialized_array
|
|
75
75
|
end
|
|
76
76
|
output_object.value = deserialized_property
|
|
77
77
|
|
|
78
78
|
deserialized_property = object['nextLink']
|
|
79
79
|
output_object.next_link = deserialized_property
|
|
80
80
|
|
|
81
|
-
output_object.validate
|
|
82
|
-
|
|
83
81
|
output_object
|
|
84
82
|
end
|
|
85
83
|
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
|
|
|
@@ -79,8 +79,6 @@ module Azure::ARM::Resources
|
|
|
79
79
|
deserialized_property = object['properties']
|
|
80
80
|
output_object.properties = deserialized_property
|
|
81
81
|
|
|
82
|
-
output_object.validate
|
|
83
|
-
|
|
84
82
|
output_object
|
|
85
83
|
end
|
|
86
84
|
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
|
|
|
@@ -35,6 +35,7 @@ module Azure::ARM::Resources
|
|
|
35
35
|
# Validate the object. Throws ValidationError if validation fails.
|
|
36
36
|
#
|
|
37
37
|
def validate
|
|
38
|
+
fail MsRest::ValidationError, 'property location is nil' if @location.nil?
|
|
38
39
|
@properties.validate unless @properties.nil?
|
|
39
40
|
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
|
40
41
|
end
|
|
@@ -48,6 +49,9 @@ module Azure::ARM::Resources
|
|
|
48
49
|
object.validate
|
|
49
50
|
output_object = {}
|
|
50
51
|
|
|
52
|
+
serialized_property = object.location
|
|
53
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
|
54
|
+
|
|
51
55
|
serialized_property = object.id
|
|
52
56
|
output_object['id'] = serialized_property unless serialized_property.nil?
|
|
53
57
|
|
|
@@ -60,9 +64,6 @@ module Azure::ARM::Resources
|
|
|
60
64
|
end
|
|
61
65
|
output_object['properties'] = serialized_property unless serialized_property.nil?
|
|
62
66
|
|
|
63
|
-
serialized_property = object.location
|
|
64
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
|
65
|
-
|
|
66
67
|
serialized_property = object.tags
|
|
67
68
|
output_object['tags'] = serialized_property unless serialized_property.nil?
|
|
68
69
|
|
|
@@ -78,6 +79,9 @@ module Azure::ARM::Resources
|
|
|
78
79
|
return if object.nil?
|
|
79
80
|
output_object = ResourceGroup.new
|
|
80
81
|
|
|
82
|
+
deserialized_property = object['location']
|
|
83
|
+
output_object.location = deserialized_property
|
|
84
|
+
|
|
81
85
|
deserialized_property = object['id']
|
|
82
86
|
output_object.id = deserialized_property
|
|
83
87
|
|
|
@@ -90,14 +94,9 @@ module Azure::ARM::Resources
|
|
|
90
94
|
end
|
|
91
95
|
output_object.properties = deserialized_property
|
|
92
96
|
|
|
93
|
-
deserialized_property = object['location']
|
|
94
|
-
output_object.location = deserialized_property
|
|
95
|
-
|
|
96
97
|
deserialized_property = object['tags']
|
|
97
98
|
output_object.tags = deserialized_property
|
|
98
99
|
|
|
99
|
-
output_object.validate
|
|
100
|
-
|
|
101
100
|
output_object
|
|
102
101
|
end
|
|
103
102
|
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
|
+
# Model object.
|
|
10
|
+
#
|
|
11
|
+
class ResourceGroupExportResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return Gets or sets the template content.
|
|
16
|
+
attr_accessor :template
|
|
17
|
+
|
|
18
|
+
# @return [ResourceManagementErrorWithDetails] Gets or sets the error.
|
|
19
|
+
attr_accessor :error
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
23
|
+
#
|
|
24
|
+
def validate
|
|
25
|
+
@error.validate unless @error.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.template
|
|
38
|
+
output_object['template'] = serialized_property unless serialized_property.nil?
|
|
39
|
+
|
|
40
|
+
serialized_property = object.error
|
|
41
|
+
unless serialized_property.nil?
|
|
42
|
+
serialized_property = ResourceManagementErrorWithDetails.serialize_object(serialized_property)
|
|
43
|
+
end
|
|
44
|
+
output_object['error'] = serialized_property unless serialized_property.nil?
|
|
45
|
+
|
|
46
|
+
output_object
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
#
|
|
50
|
+
# Deserializes given Ruby Hash into Model object.
|
|
51
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
52
|
+
# @return [ResourceGroupExportResult] Deserialized object.
|
|
53
|
+
#
|
|
54
|
+
def self.deserialize_object(object)
|
|
55
|
+
return if object.nil?
|
|
56
|
+
output_object = ResourceGroupExportResult.new
|
|
57
|
+
|
|
58
|
+
deserialized_property = object['template']
|
|
59
|
+
output_object.template = deserialized_property
|
|
60
|
+
|
|
61
|
+
deserialized_property = object['error']
|
|
62
|
+
unless deserialized_property.nil?
|
|
63
|
+
deserialized_property = ResourceManagementErrorWithDetails.deserialize_object(deserialized_property)
|
|
64
|
+
end
|
|
65
|
+
output_object.error = deserialized_property
|
|
66
|
+
|
|
67
|
+
output_object
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
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
|
|
|
@@ -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.17.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.17.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.17.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.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::Resources
|
|
|
12
12
|
|
|
13
13
|
include MsRestAzure
|
|
14
14
|
|
|
15
|
-
# @return [Array<ResourceManagementError>] Gets or sets validation error.
|
|
16
|
-
attr_accessor :details
|
|
17
|
-
|
|
18
15
|
# @return [String] Gets or sets the error code returned from the server.
|
|
19
16
|
attr_accessor :code
|
|
20
17
|
|
|
@@ -25,10 +22,16 @@ module Azure::ARM::Resources
|
|
|
25
22
|
# @return [String] Gets or sets the target of the error.
|
|
26
23
|
attr_accessor :target
|
|
27
24
|
|
|
25
|
+
# @return [Array<ResourceManagementErrorWithDetails>] Gets or sets
|
|
26
|
+
# validation error.
|
|
27
|
+
attr_accessor :details
|
|
28
|
+
|
|
28
29
|
#
|
|
29
30
|
# Validate the object. Throws ValidationError if validation fails.
|
|
30
31
|
#
|
|
31
32
|
def validate
|
|
33
|
+
fail MsRest::ValidationError, 'property code is nil' if @code.nil?
|
|
34
|
+
fail MsRest::ValidationError, 'property message is nil' if @message.nil?
|
|
32
35
|
@details.each{ |e| e.validate if e.respond_to?(:validate) } unless @details.nil?
|
|
33
36
|
end
|
|
34
37
|
|
|
@@ -41,12 +44,21 @@ module Azure::ARM::Resources
|
|
|
41
44
|
object.validate
|
|
42
45
|
output_object = {}
|
|
43
46
|
|
|
47
|
+
serialized_property = object.code
|
|
48
|
+
output_object['code'] = serialized_property unless serialized_property.nil?
|
|
49
|
+
|
|
50
|
+
serialized_property = object.message
|
|
51
|
+
output_object['message'] = serialized_property unless serialized_property.nil?
|
|
52
|
+
|
|
53
|
+
serialized_property = object.target
|
|
54
|
+
output_object['target'] = serialized_property unless serialized_property.nil?
|
|
55
|
+
|
|
44
56
|
serialized_property = object.details
|
|
45
57
|
unless serialized_property.nil?
|
|
46
58
|
serializedArray = []
|
|
47
59
|
serialized_property.each do |element|
|
|
48
60
|
unless element.nil?
|
|
49
|
-
element =
|
|
61
|
+
element = ResourceManagementErrorWithDetails.serialize_object(element)
|
|
50
62
|
end
|
|
51
63
|
serializedArray.push(element)
|
|
52
64
|
end
|
|
@@ -54,15 +66,6 @@ module Azure::ARM::Resources
|
|
|
54
66
|
end
|
|
55
67
|
output_object['details'] = serialized_property unless serialized_property.nil?
|
|
56
68
|
|
|
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
69
|
output_object
|
|
67
70
|
end
|
|
68
71
|
|
|
@@ -75,19 +78,6 @@ module Azure::ARM::Resources
|
|
|
75
78
|
return if object.nil?
|
|
76
79
|
output_object = ResourceManagementErrorWithDetails.new
|
|
77
80
|
|
|
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
81
|
deserialized_property = object['code']
|
|
92
82
|
output_object.code = deserialized_property
|
|
93
83
|
|
|
@@ -97,7 +87,18 @@ module Azure::ARM::Resources
|
|
|
97
87
|
deserialized_property = object['target']
|
|
98
88
|
output_object.target = deserialized_property
|
|
99
89
|
|
|
100
|
-
|
|
90
|
+
deserialized_property = object['details']
|
|
91
|
+
unless deserialized_property.nil?
|
|
92
|
+
deserialized_array = []
|
|
93
|
+
deserialized_property.each do |element1|
|
|
94
|
+
unless element1.nil?
|
|
95
|
+
element1 = ResourceManagementErrorWithDetails.deserialize_object(element1)
|
|
96
|
+
end
|
|
97
|
+
deserialized_array.push(element1)
|
|
98
|
+
end
|
|
99
|
+
deserialized_property = deserialized_array
|
|
100
|
+
end
|
|
101
|
+
output_object.details = deserialized_property
|
|
101
102
|
|
|
102
103
|
output_object
|
|
103
104
|
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
|
|
|
@@ -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
|
data/lib/azure_mgmt_resources/{Models → models}/resource_provider_operation_detail_list_result.rb
RENAMED
|
@@ -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
|
|
|
@@ -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
|
data/lib/azure_mgmt_resources/{Models → models}/resource_provider_operation_display_properties.rb
RENAMED
|
@@ -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
|
|
|
@@ -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
|