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,72 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Resources
7
- module Models
8
- #
9
- # Policy assignment.
10
- #
11
- class PolicyAssignment
12
-
13
- include MsRestAzure
14
-
15
- # @return [PolicyAssignmentProperties] Gets or sets the policy
16
- # assignment properties.
17
- attr_accessor :properties
18
-
19
- # @return [String] Gets or sets the policy assignment name.
20
- attr_accessor :name
21
-
22
- #
23
- # Validate the object. Throws ValidationError if validation fails.
24
- #
25
- def validate
26
- @properties.validate unless @properties.nil?
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.properties
39
- unless serialized_property.nil?
40
- serialized_property = PolicyAssignmentProperties.serialize_object(serialized_property)
41
- end
42
- output_object['properties'] = serialized_property unless serialized_property.nil?
43
-
44
- serialized_property = object.name
45
- output_object['name'] = 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 [PolicyAssignment] Deserialized object.
54
- #
55
- def self.deserialize_object(object)
56
- return if object.nil?
57
- output_object = PolicyAssignment.new
58
-
59
- deserialized_property = object['properties']
60
- unless deserialized_property.nil?
61
- deserialized_property = PolicyAssignmentProperties.deserialize_object(deserialized_property)
62
- end
63
- output_object.properties = deserialized_property
64
-
65
- deserialized_property = object['name']
66
- output_object.name = deserialized_property
67
-
68
- output_object
69
- end
70
- end
71
- end
72
- end
@@ -1,86 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Resources
7
- module Models
8
- #
9
- # Policy assignment list operation result.
10
- #
11
- class PolicyAssignmentListResult
12
-
13
- include MsRestAzure
14
-
15
- # @return [Array<PolicyAssignment>] Policy assignment list.
16
- attr_accessor :value
17
-
18
- # @return [String] Gets or sets the URL to get the next set of policy
19
- # assignment results.
20
- attr_accessor :next_link
21
-
22
- #
23
- # Validate the object. Throws ValidationError if validation fails.
24
- #
25
- def validate
26
- @value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
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.value
39
- unless serialized_property.nil?
40
- serializedArray = []
41
- serialized_property.each do |element|
42
- unless element.nil?
43
- element = PolicyAssignment.serialize_object(element)
44
- end
45
- serializedArray.push(element)
46
- end
47
- serialized_property = serializedArray
48
- end
49
- output_object['value'] = serialized_property unless serialized_property.nil?
50
-
51
- serialized_property = object.next_link
52
- output_object['nextLink'] = serialized_property unless serialized_property.nil?
53
-
54
- output_object
55
- end
56
-
57
- #
58
- # Deserializes given Ruby Hash into Model object.
59
- # @param object [Hash] Ruby Hash object to deserialize.
60
- # @return [PolicyAssignmentListResult] Deserialized object.
61
- #
62
- def self.deserialize_object(object)
63
- return if object.nil?
64
- output_object = PolicyAssignmentListResult.new
65
-
66
- deserialized_property = object['value']
67
- unless deserialized_property.nil?
68
- deserialized_array = []
69
- deserialized_property.each do |element1|
70
- unless element1.nil?
71
- element1 = PolicyAssignment.deserialize_object(element1)
72
- end
73
- deserialized_array.push(element1)
74
- end
75
- deserialized_property = deserialized_array
76
- end
77
- output_object.value = deserialized_property
78
-
79
- deserialized_property = object['nextLink']
80
- output_object.next_link = deserialized_property
81
-
82
- output_object
83
- end
84
- end
85
- end
86
- end
@@ -1,74 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Resources
7
- module Models
8
- #
9
- # Policy Assignment properties.
10
- #
11
- class PolicyAssignmentProperties
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets the policy assignment scope.
16
- attr_accessor :scope
17
-
18
- # @return [String] Gets or sets the policy assignment display name.
19
- attr_accessor :display_name
20
-
21
- # @return [String] Gets or sets the policy definition Id.
22
- attr_accessor :policy_definition_id
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.scope
41
- output_object['scope'] = serialized_property unless serialized_property.nil?
42
-
43
- serialized_property = object.display_name
44
- output_object['displayName'] = serialized_property unless serialized_property.nil?
45
-
46
- serialized_property = object.policy_definition_id
47
- output_object['policyDefinitionId'] = 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 [PolicyAssignmentProperties] Deserialized object.
56
- #
57
- def self.deserialize_object(object)
58
- return if object.nil?
59
- output_object = PolicyAssignmentProperties.new
60
-
61
- deserialized_property = object['scope']
62
- output_object.scope = deserialized_property
63
-
64
- deserialized_property = object['displayName']
65
- output_object.display_name = deserialized_property
66
-
67
- deserialized_property = object['policyDefinitionId']
68
- output_object.policy_definition_id = deserialized_property
69
-
70
- output_object
71
- end
72
- end
73
- end
74
- end
@@ -1,72 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Resources
7
- module Models
8
- #
9
- # Policy definition.
10
- #
11
- class PolicyDefinition
12
-
13
- include MsRestAzure
14
-
15
- # @return [PolicyDefinitionProperties] Gets or sets the policy
16
- # definition properties.
17
- attr_accessor :properties
18
-
19
- # @return [String] Gets or sets the policy definition name.
20
- attr_accessor :name
21
-
22
- #
23
- # Validate the object. Throws ValidationError if validation fails.
24
- #
25
- def validate
26
- @properties.validate unless @properties.nil?
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.properties
39
- unless serialized_property.nil?
40
- serialized_property = PolicyDefinitionProperties.serialize_object(serialized_property)
41
- end
42
- output_object['properties'] = serialized_property unless serialized_property.nil?
43
-
44
- serialized_property = object.name
45
- output_object['name'] = 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 [PolicyDefinition] Deserialized object.
54
- #
55
- def self.deserialize_object(object)
56
- return if object.nil?
57
- output_object = PolicyDefinition.new
58
-
59
- deserialized_property = object['properties']
60
- unless deserialized_property.nil?
61
- deserialized_property = PolicyDefinitionProperties.deserialize_object(deserialized_property)
62
- end
63
- output_object.properties = deserialized_property
64
-
65
- deserialized_property = object['name']
66
- output_object.name = deserialized_property
67
-
68
- output_object
69
- end
70
- end
71
- end
72
- end
@@ -1,74 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Resources
7
- module Models
8
- #
9
- # Policy definition properties.
10
- #
11
- class PolicyDefinitionProperties
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets the policy definition description.
16
- attr_accessor :description
17
-
18
- # @return [String] Gets or sets the policy definition display name.
19
- attr_accessor :display_name
20
-
21
- # @return The policy rule json.
22
- attr_accessor :policy_rule
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.description
41
- output_object['description'] = serialized_property unless serialized_property.nil?
42
-
43
- serialized_property = object.display_name
44
- output_object['displayName'] = serialized_property unless serialized_property.nil?
45
-
46
- serialized_property = object.policy_rule
47
- output_object['policyRule'] = 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 [PolicyDefinitionProperties] Deserialized object.
56
- #
57
- def self.deserialize_object(object)
58
- return if object.nil?
59
- output_object = PolicyDefinitionProperties.new
60
-
61
- deserialized_property = object['description']
62
- output_object.description = deserialized_property
63
-
64
- deserialized_property = object['displayName']
65
- output_object.display_name = deserialized_property
66
-
67
- deserialized_property = object['policyRule']
68
- output_object.policy_rule = deserialized_property
69
-
70
- output_object
71
- end
72
- end
73
- end
74
- end
@@ -1,76 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::ARM::Resources
7
- module Models
8
- #
9
- # Model object.
10
- #
11
- class ResourceManagementError
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] Gets or sets the error code returned from the server.
16
- attr_accessor :code
17
-
18
- # @return [String] Gets or sets the error message returned from the
19
- # server.
20
- attr_accessor :message
21
-
22
- # @return [String] Gets or sets the target of the error.
23
- attr_accessor :target
24
-
25
- #
26
- # Validate the object. Throws ValidationError if validation fails.
27
- #
28
- def validate
29
- fail MsRest::ValidationError, 'property code is nil' if @code.nil?
30
- fail MsRest::ValidationError, 'property message is nil' if @message.nil?
31
- end
32
-
33
- #
34
- # Serializes given Model object into Ruby Hash.
35
- # @param object Model object to serialize.
36
- # @return [Hash] Serialized object in form of Ruby Hash.
37
- #
38
- def self.serialize_object(object)
39
- object.validate
40
- output_object = {}
41
-
42
- serialized_property = object.code
43
- output_object['code'] = serialized_property unless serialized_property.nil?
44
-
45
- serialized_property = object.message
46
- output_object['message'] = serialized_property unless serialized_property.nil?
47
-
48
- serialized_property = object.target
49
- output_object['target'] = serialized_property unless serialized_property.nil?
50
-
51
- output_object
52
- end
53
-
54
- #
55
- # Deserializes given Ruby Hash into Model object.
56
- # @param object [Hash] Ruby Hash object to deserialize.
57
- # @return [ResourceManagementError] Deserialized object.
58
- #
59
- def self.deserialize_object(object)
60
- return if object.nil?
61
- output_object = ResourceManagementError.new
62
-
63
- deserialized_property = object['code']
64
- output_object.code = deserialized_property
65
-
66
- deserialized_property = object['message']
67
- output_object.message = deserialized_property
68
-
69
- deserialized_property = object['target']
70
- output_object.target = deserialized_property
71
-
72
- output_object
73
- end
74
- end
75
- end
76
- end