azure_mgmt_resources 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +14 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +106 -0
  8. data/Rakefile +5 -0
  9. data/azure_mgmt_resources.gemspec +38 -0
  10. data/lib/azure_mgmt_resources.rb +74 -0
  11. data/lib/azure_mgmt_resources/Models/basic_dependency.rb +76 -0
  12. data/lib/azure_mgmt_resources/Models/dependency.rb +105 -0
  13. data/lib/azure_mgmt_resources/Models/deployment.rb +64 -0
  14. data/lib/azure_mgmt_resources/Models/deployment_extended.rb +83 -0
  15. data/lib/azure_mgmt_resources/Models/deployment_extended_filter.rb +58 -0
  16. data/lib/azure_mgmt_resources/Models/deployment_list_result.rb +88 -0
  17. data/lib/azure_mgmt_resources/Models/deployment_mode.rb +15 -0
  18. data/lib/azure_mgmt_resources/Models/deployment_operation.rb +83 -0
  19. data/lib/azure_mgmt_resources/Models/deployment_operation_properties.rb +102 -0
  20. data/lib/azure_mgmt_resources/Models/deployment_operations_list_result.rb +88 -0
  21. data/lib/azure_mgmt_resources/Models/deployment_properties.rb +116 -0
  22. data/lib/azure_mgmt_resources/Models/deployment_properties_extended.rb +216 -0
  23. data/lib/azure_mgmt_resources/Models/deployment_validate_result.rb +82 -0
  24. data/lib/azure_mgmt_resources/Models/generic_resource.rb +103 -0
  25. data/lib/azure_mgmt_resources/Models/generic_resource_filter.rb +76 -0
  26. data/lib/azure_mgmt_resources/Models/parameters_link.rb +68 -0
  27. data/lib/azure_mgmt_resources/Models/plan.rb +85 -0
  28. data/lib/azure_mgmt_resources/Models/provider.rb +106 -0
  29. data/lib/azure_mgmt_resources/Models/provider_list_result.rb +87 -0
  30. data/lib/azure_mgmt_resources/Models/provider_resource_type.rb +88 -0
  31. data/lib/azure_mgmt_resources/Models/resource_group.rb +105 -0
  32. data/lib/azure_mgmt_resources/Models/resource_group_extended.rb +113 -0
  33. data/lib/azure_mgmt_resources/Models/resource_group_extended_filter.rb +63 -0
  34. data/lib/azure_mgmt_resources/Models/resource_group_filter.rb +67 -0
  35. data/lib/azure_mgmt_resources/Models/resource_group_format_resource_properties.rb +54 -0
  36. data/lib/azure_mgmt_resources/Models/resource_group_list_result.rb +88 -0
  37. data/lib/azure_mgmt_resources/Models/resource_group_properties.rb +58 -0
  38. data/lib/azure_mgmt_resources/Models/resource_list_result.rb +88 -0
  39. data/lib/azure_mgmt_resources/Models/resource_management_error.rb +77 -0
  40. data/lib/azure_mgmt_resources/Models/resource_management_error_with_details.rb +106 -0
  41. data/lib/azure_mgmt_resources/Models/resource_provider_operation_definition.rb +74 -0
  42. data/lib/azure_mgmt_resources/Models/resource_provider_operation_detail_list_result.rb +80 -0
  43. data/lib/azure_mgmt_resources/Models/resource_provider_operation_display_properties.rb +95 -0
  44. data/lib/azure_mgmt_resources/Models/resources_move_info.rb +67 -0
  45. data/lib/azure_mgmt_resources/Models/tag_count.rb +67 -0
  46. data/lib/azure_mgmt_resources/Models/tag_details.rb +112 -0
  47. data/lib/azure_mgmt_resources/Models/tag_value.rb +82 -0
  48. data/lib/azure_mgmt_resources/Models/tags_list_result.rb +87 -0
  49. data/lib/azure_mgmt_resources/Models/target_resource.rb +76 -0
  50. data/lib/azure_mgmt_resources/Models/template_link.rb +68 -0
  51. data/lib/azure_mgmt_resources/deployment_operations.rb +297 -0
  52. data/lib/azure_mgmt_resources/deployments.rb +601 -0
  53. data/lib/azure_mgmt_resources/module_definition.rb +6 -0
  54. data/lib/azure_mgmt_resources/providers.rb +461 -0
  55. data/lib/azure_mgmt_resources/resource_groups.rb +891 -0
  56. data/lib/azure_mgmt_resources/resource_management_client.rb +85 -0
  57. data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +126 -0
  58. data/lib/azure_mgmt_resources/resources.rb +737 -0
  59. data/lib/azure_mgmt_resources/tags.rb +546 -0
  60. data/lib/azure_mgmt_resources/version.rb +6 -0
  61. metadata +235 -0
@@ -0,0 +1,88 @@
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 groups.
10
+ #
11
+ class ResourceGroupListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ResourceGroup>] Gets or sets the list of resource
16
+ # groups.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Gets or sets the URL to get the next set of 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 = ResourceGroup.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 [ResourceGroupListResult] Deserialized object.
61
+ #
62
+ def self.deserialize_object(object)
63
+ return if object.nil?
64
+ output_object = ResourceGroupListResult.new
65
+
66
+ deserialized_property = object['value']
67
+ unless deserialized_property.nil?
68
+ deserializedArray = [];
69
+ deserialized_property.each do |element1|
70
+ unless element1.nil?
71
+ element1 = ResourceGroup.deserialize_object(element1)
72
+ end
73
+ deserializedArray.push(element1);
74
+ end
75
+ deserialized_property = deserializedArray;
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.validate
83
+
84
+ output_object
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,58 @@
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
+ # The resource group properties.
10
+ #
11
+ class ResourceGroupProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets resource group provisioning state.
16
+ attr_accessor :provisioning_state
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.provisioning_state
35
+ output_object['provisioningState'] = 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 [ResourceGroupProperties] Deserialized object.
44
+ #
45
+ def self.deserialize_object(object)
46
+ return if object.nil?
47
+ output_object = ResourceGroupProperties.new
48
+
49
+ deserialized_property = object['provisioningState']
50
+ output_object.provisioning_state = deserialized_property
51
+
52
+ output_object.validate
53
+
54
+ output_object
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,88 @@
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 groups.
10
+ #
11
+ class ResourceListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<GenericResource>] Gets or sets the list of resource
16
+ # groups.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Gets or sets the URL to get the next set of 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 = GenericResource.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 [ResourceListResult] Deserialized object.
61
+ #
62
+ def self.deserialize_object(object)
63
+ return if object.nil?
64
+ output_object = ResourceListResult.new
65
+
66
+ deserialized_property = object['value']
67
+ unless deserialized_property.nil?
68
+ deserializedArray = [];
69
+ deserialized_property.each do |element1|
70
+ unless element1.nil?
71
+ element1 = GenericResource.deserialize_object(element1)
72
+ end
73
+ deserializedArray.push(element1);
74
+ end
75
+ deserialized_property = deserializedArray;
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.validate
83
+
84
+ output_object
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,77 @@
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
+ # 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
+ # Nothing to validate
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.code
42
+ output_object['code'] = serialized_property unless serialized_property.nil?
43
+
44
+ serialized_property = object.message
45
+ output_object['message'] = serialized_property unless serialized_property.nil?
46
+
47
+ serialized_property = object.target
48
+ output_object['target'] = serialized_property unless serialized_property.nil?
49
+
50
+ output_object
51
+ end
52
+
53
+ #
54
+ # Deserializes given Ruby Hash into Model object.
55
+ # @param object [Hash] Ruby Hash object to deserialize.
56
+ # @return [ResourceManagementError] Deserialized object.
57
+ #
58
+ def self.deserialize_object(object)
59
+ return if object.nil?
60
+ output_object = ResourceManagementError.new
61
+
62
+ deserialized_property = object['code']
63
+ output_object.code = deserialized_property
64
+
65
+ deserialized_property = object['message']
66
+ output_object.message = deserialized_property
67
+
68
+ deserialized_property = object['target']
69
+ output_object.target = deserialized_property
70
+
71
+ output_object.validate
72
+
73
+ output_object
74
+ end
75
+ end
76
+ end
77
+ 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
+ # Model object.
10
+ #
11
+ class ResourceManagementErrorWithDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ResourceManagementError>] Gets or sets validation error.
16
+ attr_accessor :details
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
+ #
29
+ # Validate the object. Throws ValidationError if validation fails.
30
+ #
31
+ def validate
32
+ @details.each{ |e| e.validate if e.respond_to?(:validate) } unless @details.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.details
45
+ unless serialized_property.nil?
46
+ serializedArray = []
47
+ serialized_property.each do |element|
48
+ unless element.nil?
49
+ element = ResourceManagementError.serialize_object(element)
50
+ end
51
+ serializedArray.push(element)
52
+ end
53
+ serialized_property = serializedArray
54
+ end
55
+ output_object['details'] = serialized_property unless serialized_property.nil?
56
+
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
+ 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 [ResourceManagementErrorWithDetails] Deserialized object.
73
+ #
74
+ def self.deserialize_object(object)
75
+ return if object.nil?
76
+ output_object = ResourceManagementErrorWithDetails.new
77
+
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
+ deserialized_property = object['code']
92
+ output_object.code = deserialized_property
93
+
94
+ deserialized_property = object['message']
95
+ output_object.message = deserialized_property
96
+
97
+ deserialized_property = object['target']
98
+ output_object.target = deserialized_property
99
+
100
+ output_object.validate
101
+
102
+ output_object
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,74 @@
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 operation information.
10
+ #
11
+ class ResourceProviderOperationDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the provider operation name.
16
+ attr_accessor :name
17
+
18
+ # @return [ResourceProviderOperationDisplayProperties] Gets or sets the
19
+ # display property of the provider operation.
20
+ attr_accessor :display
21
+
22
+ #
23
+ # Validate the object. Throws ValidationError if validation fails.
24
+ #
25
+ def validate
26
+ @display.validate unless @display.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.name
39
+ output_object['name'] = serialized_property unless serialized_property.nil?
40
+
41
+ serialized_property = object.display
42
+ unless serialized_property.nil?
43
+ serialized_property = ResourceProviderOperationDisplayProperties.serialize_object(serialized_property)
44
+ end
45
+ output_object['display'] = 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 [ResourceProviderOperationDefinition] Deserialized object.
54
+ #
55
+ def self.deserialize_object(object)
56
+ return if object.nil?
57
+ output_object = ResourceProviderOperationDefinition.new
58
+
59
+ deserialized_property = object['name']
60
+ output_object.name = deserialized_property
61
+
62
+ deserialized_property = object['display']
63
+ unless deserialized_property.nil?
64
+ deserialized_property = ResourceProviderOperationDisplayProperties.deserialize_object(deserialized_property)
65
+ end
66
+ output_object.display = deserialized_property
67
+
68
+ output_object.validate
69
+
70
+ output_object
71
+ end
72
+ end
73
+ end
74
+ end