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,64 @@
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
+ # Deployment operation parameters.
10
+ #
11
+ class Deployment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DeploymentProperties] Gets or sets the deployment properties.
16
+ attr_accessor :properties
17
+
18
+ #
19
+ # Validate the object. Throws ValidationError if validation fails.
20
+ #
21
+ def validate
22
+ @properties.validate unless @properties.nil?
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.properties
35
+ unless serialized_property.nil?
36
+ serialized_property = DeploymentProperties.serialize_object(serialized_property)
37
+ end
38
+ output_object['properties'] = serialized_property unless serialized_property.nil?
39
+
40
+ output_object
41
+ end
42
+
43
+ #
44
+ # Deserializes given Ruby Hash into Model object.
45
+ # @param object [Hash] Ruby Hash object to deserialize.
46
+ # @return [Deployment] Deserialized object.
47
+ #
48
+ def self.deserialize_object(object)
49
+ return if object.nil?
50
+ output_object = Deployment.new
51
+
52
+ deserialized_property = object['properties']
53
+ unless deserialized_property.nil?
54
+ deserialized_property = DeploymentProperties.deserialize_object(deserialized_property)
55
+ end
56
+ output_object.properties = deserialized_property
57
+
58
+ output_object.validate
59
+
60
+ output_object
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,83 @@
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
+ # Deployment information.
10
+ #
11
+ class DeploymentExtended
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the ID of the deployment.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets the name of the deployment.
19
+ attr_accessor :name
20
+
21
+ # @return [DeploymentPropertiesExtended] Gets or sets deployment
22
+ # properties.
23
+ attr_accessor :properties
24
+
25
+ #
26
+ # Validate the object. Throws ValidationError if validation fails.
27
+ #
28
+ def validate
29
+ @properties.validate unless @properties.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.id
42
+ output_object['id'] = serialized_property unless serialized_property.nil?
43
+
44
+ serialized_property = object.name
45
+ output_object['name'] = serialized_property unless serialized_property.nil?
46
+
47
+ serialized_property = object.properties
48
+ unless serialized_property.nil?
49
+ serialized_property = DeploymentPropertiesExtended.serialize_object(serialized_property)
50
+ end
51
+ output_object['properties'] = serialized_property unless serialized_property.nil?
52
+
53
+ output_object
54
+ end
55
+
56
+ #
57
+ # Deserializes given Ruby Hash into Model object.
58
+ # @param object [Hash] Ruby Hash object to deserialize.
59
+ # @return [DeploymentExtended] Deserialized object.
60
+ #
61
+ def self.deserialize_object(object)
62
+ return if object.nil?
63
+ output_object = DeploymentExtended.new
64
+
65
+ deserialized_property = object['id']
66
+ output_object.id = deserialized_property
67
+
68
+ deserialized_property = object['name']
69
+ output_object.name = deserialized_property
70
+
71
+ deserialized_property = object['properties']
72
+ unless deserialized_property.nil?
73
+ deserialized_property = DeploymentPropertiesExtended.deserialize_object(deserialized_property)
74
+ end
75
+ output_object.properties = deserialized_property
76
+
77
+ output_object.validate
78
+
79
+ output_object
80
+ end
81
+ end
82
+ end
83
+ 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
+ # Deployment filter.
10
+ #
11
+ class DeploymentExtendedFilter
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the 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 [DeploymentExtendedFilter] Deserialized object.
44
+ #
45
+ def self.deserialize_object(object)
46
+ return if object.nil?
47
+ output_object = DeploymentExtendedFilter.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 deployments.
10
+ #
11
+ class DeploymentListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<DeploymentExtended>] Gets or sets the list of
16
+ # deployments.
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 = DeploymentExtended.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 [DeploymentListResult] Deserialized object.
61
+ #
62
+ def self.deserialize_object(object)
63
+ return if object.nil?
64
+ output_object = DeploymentListResult.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 = DeploymentExtended.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,15 @@
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
+ # Defines values for DeploymentMode
10
+ #
11
+ module DeploymentMode
12
+ Incremental = "Incremental"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,83 @@
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
+ # Deployment operation information.
10
+ #
11
+ class DeploymentOperation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets full deployment operation id.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets or sets deployment operation id.
19
+ attr_accessor :operation_id
20
+
21
+ # @return [DeploymentOperationProperties] Gets or sets deployment
22
+ # properties.
23
+ attr_accessor :properties
24
+
25
+ #
26
+ # Validate the object. Throws ValidationError if validation fails.
27
+ #
28
+ def validate
29
+ @properties.validate unless @properties.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.id
42
+ output_object['id'] = serialized_property unless serialized_property.nil?
43
+
44
+ serialized_property = object.operation_id
45
+ output_object['operationId'] = serialized_property unless serialized_property.nil?
46
+
47
+ serialized_property = object.properties
48
+ unless serialized_property.nil?
49
+ serialized_property = DeploymentOperationProperties.serialize_object(serialized_property)
50
+ end
51
+ output_object['properties'] = serialized_property unless serialized_property.nil?
52
+
53
+ output_object
54
+ end
55
+
56
+ #
57
+ # Deserializes given Ruby Hash into Model object.
58
+ # @param object [Hash] Ruby Hash object to deserialize.
59
+ # @return [DeploymentOperation] Deserialized object.
60
+ #
61
+ def self.deserialize_object(object)
62
+ return if object.nil?
63
+ output_object = DeploymentOperation.new
64
+
65
+ deserialized_property = object['id']
66
+ output_object.id = deserialized_property
67
+
68
+ deserialized_property = object['operationId']
69
+ output_object.operation_id = deserialized_property
70
+
71
+ deserialized_property = object['properties']
72
+ unless deserialized_property.nil?
73
+ deserialized_property = DeploymentOperationProperties.deserialize_object(deserialized_property)
74
+ end
75
+ output_object.properties = deserialized_property
76
+
77
+ output_object.validate
78
+
79
+ output_object
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,102 @@
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
+ # Deployment operation properties.
10
+ #
11
+ class DeploymentOperationProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the state of the provisioning.
16
+ attr_accessor :provisioning_state
17
+
18
+ # @return [DateTime] Gets or sets the date and time of the operation.
19
+ attr_accessor :timestamp
20
+
21
+ # @return [String] Gets or sets operation status code.
22
+ attr_accessor :status_code
23
+
24
+ # @return Gets or sets operation status message.
25
+ attr_accessor :status_message
26
+
27
+ # @return [TargetResource] Gets or sets the target resource.
28
+ attr_accessor :target_resource
29
+
30
+ #
31
+ # Validate the object. Throws ValidationError if validation fails.
32
+ #
33
+ def validate
34
+ @target_resource.validate unless @target_resource.nil?
35
+ end
36
+
37
+ #
38
+ # Serializes given Model object into Ruby Hash.
39
+ # @param object Model object to serialize.
40
+ # @return [Hash] Serialized object in form of Ruby Hash.
41
+ #
42
+ def self.serialize_object(object)
43
+ object.validate
44
+ output_object = {}
45
+
46
+ serialized_property = object.provisioning_state
47
+ output_object['provisioningState'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.timestamp
50
+ serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
51
+ output_object['timestamp'] = serialized_property unless serialized_property.nil?
52
+
53
+ serialized_property = object.status_code
54
+ output_object['statusCode'] = serialized_property unless serialized_property.nil?
55
+
56
+ serialized_property = object.status_message
57
+ output_object['statusMessage'] = serialized_property unless serialized_property.nil?
58
+
59
+ serialized_property = object.target_resource
60
+ unless serialized_property.nil?
61
+ serialized_property = TargetResource.serialize_object(serialized_property)
62
+ end
63
+ output_object['targetResource'] = serialized_property unless serialized_property.nil?
64
+
65
+ output_object
66
+ end
67
+
68
+ #
69
+ # Deserializes given Ruby Hash into Model object.
70
+ # @param object [Hash] Ruby Hash object to deserialize.
71
+ # @return [DeploymentOperationProperties] Deserialized object.
72
+ #
73
+ def self.deserialize_object(object)
74
+ return if object.nil?
75
+ output_object = DeploymentOperationProperties.new
76
+
77
+ deserialized_property = object['provisioningState']
78
+ output_object.provisioning_state = deserialized_property
79
+
80
+ deserialized_property = object['timestamp']
81
+ deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
82
+ output_object.timestamp = deserialized_property
83
+
84
+ deserialized_property = object['statusCode']
85
+ output_object.status_code = deserialized_property
86
+
87
+ deserialized_property = object['statusMessage']
88
+ output_object.status_message = deserialized_property
89
+
90
+ deserialized_property = object['targetResource']
91
+ unless deserialized_property.nil?
92
+ deserialized_property = TargetResource.deserialize_object(deserialized_property)
93
+ end
94
+ output_object.target_resource = deserialized_property
95
+
96
+ output_object.validate
97
+
98
+ output_object
99
+ end
100
+ end
101
+ end
102
+ end