azure_mgmt_resources 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +1 -27
  3. data/azure_mgmt_resources.gemspec +1 -1
  4. data/lib/azure_mgmt_resources.rb +7 -10
  5. data/lib/azure_mgmt_resources/deployment_operations.rb +117 -16
  6. data/lib/azure_mgmt_resources/deployments.rb +416 -51
  7. data/lib/azure_mgmt_resources/models/basic_dependency.rb +1 -1
  8. data/lib/azure_mgmt_resources/models/debug_setting.rb +56 -0
  9. data/lib/azure_mgmt_resources/models/dependency.rb +1 -1
  10. data/lib/azure_mgmt_resources/models/deployment.rb +1 -1
  11. data/lib/azure_mgmt_resources/models/deployment_export_result.rb +56 -0
  12. data/lib/azure_mgmt_resources/models/deployment_extended.rb +1 -1
  13. data/lib/azure_mgmt_resources/models/deployment_extended_filter.rb +1 -1
  14. data/lib/azure_mgmt_resources/models/deployment_list_result.rb +1 -1
  15. data/lib/azure_mgmt_resources/models/deployment_mode.rb +1 -1
  16. data/lib/azure_mgmt_resources/models/deployment_operation.rb +1 -1
  17. data/lib/azure_mgmt_resources/models/deployment_operation_properties.rb +42 -1
  18. data/lib/azure_mgmt_resources/models/deployment_operations_list_result.rb +1 -1
  19. data/lib/azure_mgmt_resources/models/deployment_properties.rb +18 -1
  20. data/lib/azure_mgmt_resources/models/deployment_properties_extended.rb +18 -1
  21. data/lib/azure_mgmt_resources/models/deployment_validate_result.rb +1 -1
  22. data/lib/azure_mgmt_resources/models/export_template_request.rb +69 -0
  23. data/lib/azure_mgmt_resources/models/generic_resource.rb +1 -1
  24. data/lib/azure_mgmt_resources/models/generic_resource_filter.rb +1 -1
  25. data/lib/azure_mgmt_resources/models/http_message.rb +56 -0
  26. data/lib/azure_mgmt_resources/models/parameters_link.rb +1 -1
  27. data/lib/azure_mgmt_resources/models/plan.rb +1 -1
  28. data/lib/azure_mgmt_resources/models/provider.rb +1 -1
  29. data/lib/azure_mgmt_resources/models/provider_list_result.rb +1 -1
  30. data/lib/azure_mgmt_resources/models/provider_resource_type.rb +1 -1
  31. data/lib/azure_mgmt_resources/models/resource_group.rb +1 -1
  32. data/lib/azure_mgmt_resources/models/resource_group_export_result.rb +71 -0
  33. data/lib/azure_mgmt_resources/models/resource_group_filter.rb +1 -1
  34. data/lib/azure_mgmt_resources/models/resource_group_list_result.rb +1 -1
  35. data/lib/azure_mgmt_resources/models/resource_group_properties.rb +1 -1
  36. data/lib/azure_mgmt_resources/models/resource_list_result.rb +1 -1
  37. data/lib/azure_mgmt_resources/models/resource_management_error_with_details.rb +18 -5
  38. data/lib/azure_mgmt_resources/models/resource_provider_operation_definition.rb +1 -1
  39. data/lib/azure_mgmt_resources/models/resource_provider_operation_detail_list_result.rb +1 -1
  40. data/lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +1 -1
  41. data/lib/azure_mgmt_resources/models/resources_move_info.rb +1 -1
  42. data/lib/azure_mgmt_resources/models/tag_count.rb +1 -1
  43. data/lib/azure_mgmt_resources/models/tag_details.rb +1 -1
  44. data/lib/azure_mgmt_resources/models/tag_value.rb +1 -1
  45. data/lib/azure_mgmt_resources/models/tags_list_result.rb +1 -1
  46. data/lib/azure_mgmt_resources/models/target_resource.rb +1 -1
  47. data/lib/azure_mgmt_resources/models/template_link.rb +1 -1
  48. data/lib/azure_mgmt_resources/module_definition.rb +1 -1
  49. data/lib/azure_mgmt_resources/providers.rb +181 -26
  50. data/lib/azure_mgmt_resources/resource_groups.rb +461 -54
  51. data/lib/azure_mgmt_resources/resource_management_client.rb +2 -10
  52. data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +73 -11
  53. data/lib/azure_mgmt_resources/resources.rb +306 -57
  54. data/lib/azure_mgmt_resources/tags.rb +207 -31
  55. data/lib/azure_mgmt_resources/version.rb +2 -2
  56. metadata +31 -29
  57. data/lib/azure_mgmt_resources/models/policy_assignment.rb +0 -72
  58. data/lib/azure_mgmt_resources/models/policy_assignment_list_result.rb +0 -86
  59. data/lib/azure_mgmt_resources/models/policy_assignment_properties.rb +0 -74
  60. data/lib/azure_mgmt_resources/models/policy_definition.rb +0 -72
  61. data/lib/azure_mgmt_resources/models/policy_definition_properties.rb +0 -74
  62. data/lib/azure_mgmt_resources/models/resource_management_error.rb +0 -76
  63. data/lib/azure_mgmt_resources/policy_assignments.rb +0 -922
  64. data/lib/azure_mgmt_resources/policy_definitions.rb +0 -208
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -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 DebugSetting
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the debug detail level.
16
+ attr_accessor :detail_level
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.detail_level
35
+ output_object['detailLevel'] = 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 [DebugSetting] Deserialized object.
44
+ #
45
+ def self.deserialize_object(object)
46
+ return if object.nil?
47
+ output_object = DebugSetting.new
48
+
49
+ deserialized_property = object['detailLevel']
50
+ output_object.detail_level = 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.16.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -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 DeploymentExportResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return Gets or sets the template content.
16
+ attr_accessor :template
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.template
35
+ output_object['template'] = 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 [DeploymentExportResult] Deserialized object.
44
+ #
45
+ def self.deserialize_object(object)
46
+ return if object.nil?
47
+ output_object = DeploymentExportResult.new
48
+
49
+ deserialized_property = object['template']
50
+ output_object.template = 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.16.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -18,6 +18,9 @@ module Azure::ARM::Resources
18
18
  # @return [DateTime] Gets or sets the date and time of the operation.
19
19
  attr_accessor :timestamp
20
20
 
21
+ # @return [String] Gets or sets deployment operation service request id.
22
+ attr_accessor :service_request_id
23
+
21
24
  # @return [String] Gets or sets operation status code.
22
25
  attr_accessor :status_code
23
26
 
@@ -27,11 +30,19 @@ module Azure::ARM::Resources
27
30
  # @return [TargetResource] Gets or sets the target resource.
28
31
  attr_accessor :target_resource
29
32
 
33
+ # @return [HttpMessage] Gets or sets the HTTP request message.
34
+ attr_accessor :request
35
+
36
+ # @return [HttpMessage] Gets or sets the HTTP response message.
37
+ attr_accessor :response
38
+
30
39
  #
31
40
  # Validate the object. Throws ValidationError if validation fails.
32
41
  #
33
42
  def validate
34
43
  @target_resource.validate unless @target_resource.nil?
44
+ @request.validate unless @request.nil?
45
+ @response.validate unless @response.nil?
35
46
  end
36
47
 
37
48
  #
@@ -50,6 +61,9 @@ module Azure::ARM::Resources
50
61
  serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
51
62
  output_object['timestamp'] = serialized_property unless serialized_property.nil?
52
63
 
64
+ serialized_property = object.service_request_id
65
+ output_object['serviceRequestId'] = serialized_property unless serialized_property.nil?
66
+
53
67
  serialized_property = object.status_code
54
68
  output_object['statusCode'] = serialized_property unless serialized_property.nil?
55
69
 
@@ -62,6 +76,18 @@ module Azure::ARM::Resources
62
76
  end
63
77
  output_object['targetResource'] = serialized_property unless serialized_property.nil?
64
78
 
79
+ serialized_property = object.request
80
+ unless serialized_property.nil?
81
+ serialized_property = HttpMessage.serialize_object(serialized_property)
82
+ end
83
+ output_object['request'] = serialized_property unless serialized_property.nil?
84
+
85
+ serialized_property = object.response
86
+ unless serialized_property.nil?
87
+ serialized_property = HttpMessage.serialize_object(serialized_property)
88
+ end
89
+ output_object['response'] = serialized_property unless serialized_property.nil?
90
+
65
91
  output_object
66
92
  end
67
93
 
@@ -81,6 +107,9 @@ module Azure::ARM::Resources
81
107
  deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
82
108
  output_object.timestamp = deserialized_property
83
109
 
110
+ deserialized_property = object['serviceRequestId']
111
+ output_object.service_request_id = deserialized_property
112
+
84
113
  deserialized_property = object['statusCode']
85
114
  output_object.status_code = deserialized_property
86
115
 
@@ -93,6 +122,18 @@ module Azure::ARM::Resources
93
122
  end
94
123
  output_object.target_resource = deserialized_property
95
124
 
125
+ deserialized_property = object['request']
126
+ unless deserialized_property.nil?
127
+ deserialized_property = HttpMessage.deserialize_object(deserialized_property)
128
+ end
129
+ output_object.request = deserialized_property
130
+
131
+ deserialized_property = object['response']
132
+ unless deserialized_property.nil?
133
+ deserialized_property = HttpMessage.deserialize_object(deserialized_property)
134
+ end
135
+ output_object.response = deserialized_property
136
+
96
137
  output_object
97
138
  end
98
139
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -32,12 +32,17 @@ module Azure::ARM::Resources
32
32
  # values include: 'Incremental', 'Complete'
33
33
  attr_accessor :mode
34
34
 
35
+ # @return [DebugSetting] Gets or sets the debug setting of the
36
+ # deployment.
37
+ attr_accessor :debug_setting
38
+
35
39
  #
36
40
  # Validate the object. Throws ValidationError if validation fails.
37
41
  #
38
42
  def validate
39
43
  @template_link.validate unless @template_link.nil?
40
44
  @parameters_link.validate unless @parameters_link.nil?
45
+ @debug_setting.validate unless @debug_setting.nil?
41
46
  end
42
47
 
43
48
  #
@@ -70,6 +75,12 @@ module Azure::ARM::Resources
70
75
  serialized_property = object.mode
71
76
  output_object['mode'] = serialized_property unless serialized_property.nil?
72
77
 
78
+ serialized_property = object.debug_setting
79
+ unless serialized_property.nil?
80
+ serialized_property = DebugSetting.serialize_object(serialized_property)
81
+ end
82
+ output_object['debugSetting'] = serialized_property unless serialized_property.nil?
83
+
73
84
  output_object
74
85
  end
75
86
 
@@ -107,6 +118,12 @@ module Azure::ARM::Resources
107
118
  end
108
119
  output_object.mode = deserialized_property
109
120
 
121
+ deserialized_property = object['debugSetting']
122
+ unless deserialized_property.nil?
123
+ deserialized_property = DebugSetting.deserialize_object(deserialized_property)
124
+ end
125
+ output_object.debug_setting = deserialized_property
126
+
110
127
  output_object
111
128
  end
112
129
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -52,6 +52,10 @@ module Azure::ARM::Resources
52
52
  # values include: 'Incremental', 'Complete'
53
53
  attr_accessor :mode
54
54
 
55
+ # @return [DebugSetting] Gets or sets the debug setting of the
56
+ # deployment.
57
+ attr_accessor :debug_setting
58
+
55
59
  #
56
60
  # Validate the object. Throws ValidationError if validation fails.
57
61
  #
@@ -60,6 +64,7 @@ module Azure::ARM::Resources
60
64
  @dependencies.each{ |e| e.validate if e.respond_to?(:validate) } unless @dependencies.nil?
61
65
  @template_link.validate unless @template_link.nil?
62
66
  @parameters_link.validate unless @parameters_link.nil?
67
+ @debug_setting.validate unless @debug_setting.nil?
63
68
  end
64
69
 
65
70
  #
@@ -131,6 +136,12 @@ module Azure::ARM::Resources
131
136
  serialized_property = object.mode
132
137
  output_object['mode'] = serialized_property unless serialized_property.nil?
133
138
 
139
+ serialized_property = object.debug_setting
140
+ unless serialized_property.nil?
141
+ serialized_property = DebugSetting.serialize_object(serialized_property)
142
+ end
143
+ output_object['debugSetting'] = serialized_property unless serialized_property.nil?
144
+
134
145
  output_object
135
146
  end
136
147
 
@@ -207,6 +218,12 @@ module Azure::ARM::Resources
207
218
  end
208
219
  output_object.mode = deserialized_property
209
220
 
221
+ deserialized_property = object['debugSetting']
222
+ unless deserialized_property.nil?
223
+ deserialized_property = DebugSetting.deserialize_object(deserialized_property)
224
+ end
225
+ output_object.debug_setting = deserialized_property
226
+
210
227
  output_object
211
228
  end
212
229
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.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
 
@@ -0,0 +1,69 @@
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
+ # Export resource group template request parameters.
10
+ #
11
+ class ExportTemplateRequest
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] Gets or sets the ids of the resources. The
16
+ # only supported string currently is '*' (all resources). Future api
17
+ # updates will support exporting specific resources.
18
+ attr_accessor :resources
19
+
20
+ # @return [String] The export template options. Supported values include
21
+ # 'IncludeParameterDefaultValue', 'IncludeComments' or
22
+ # 'IncludeParameterDefaultValue, IncludeComments
23
+ attr_accessor :options
24
+
25
+ #
26
+ # Validate the object. Throws ValidationError if validation fails.
27
+ #
28
+ def validate
29
+ @resources.each{ |e| e.validate if e.respond_to?(:validate) } unless @resources.nil?
30
+ end
31
+
32
+ #
33
+ # Serializes given Model object into Ruby Hash.
34
+ # @param object Model object to serialize.
35
+ # @return [Hash] Serialized object in form of Ruby Hash.
36
+ #
37
+ def self.serialize_object(object)
38
+ object.validate
39
+ output_object = {}
40
+
41
+ serialized_property = object.resources
42
+ output_object['resources'] = serialized_property unless serialized_property.nil?
43
+
44
+ serialized_property = object.options
45
+ output_object['options'] = 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 [ExportTemplateRequest] Deserialized object.
54
+ #
55
+ def self.deserialize_object(object)
56
+ return if object.nil?
57
+ output_object = ExportTemplateRequest.new
58
+
59
+ deserialized_property = object['resources']
60
+ output_object.resources = deserialized_property
61
+
62
+ deserialized_property = object['options']
63
+ output_object.options = deserialized_property
64
+
65
+ output_object
66
+ end
67
+ end
68
+ end
69
+ end