azure_mgmt_resources 0.1.2 → 0.2.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 +4 -4
- data/azure_mgmt_resources.gemspec +2 -7
- data/lib/azure_mgmt_resources.rb +21 -18
- data/lib/azure_mgmt_resources/deployment_operations.rb +54 -135
- data/lib/azure_mgmt_resources/deployments.rb +314 -305
- data/lib/azure_mgmt_resources/models/basic_dependency.rb +1 -3
- data/lib/azure_mgmt_resources/models/dependency.rb +4 -6
- data/lib/azure_mgmt_resources/models/deployment.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_extended.rb +8 -9
- data/lib/azure_mgmt_resources/models/deployment_extended_filter.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/deployment_mode.rb +2 -1
- data/lib/azure_mgmt_resources/models/deployment_operation.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_operation_properties.rb +1 -3
- data/lib/azure_mgmt_resources/models/deployment_operations_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/deployment_properties.rb +3 -5
- data/lib/azure_mgmt_resources/models/deployment_properties_extended.rb +9 -11
- data/lib/azure_mgmt_resources/models/deployment_validate_result.rb +1 -3
- data/lib/azure_mgmt_resources/models/generic_resource.rb +1 -3
- data/lib/azure_mgmt_resources/models/generic_resource_filter.rb +1 -3
- data/lib/azure_mgmt_resources/models/parameters_link.rb +2 -4
- data/lib/azure_mgmt_resources/models/plan.rb +1 -3
- data/lib/azure_mgmt_resources/models/policy_assignment.rb +72 -0
- data/lib/azure_mgmt_resources/models/policy_assignment_list_result.rb +86 -0
- data/lib/azure_mgmt_resources/models/policy_assignment_properties.rb +74 -0
- data/lib/azure_mgmt_resources/models/policy_definition.rb +72 -0
- data/lib/azure_mgmt_resources/models/policy_definition_properties.rb +74 -0
- data/lib/azure_mgmt_resources/models/provider.rb +4 -6
- data/lib/azure_mgmt_resources/models/provider_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/provider_resource_type.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_group.rb +8 -9
- data/lib/azure_mgmt_resources/models/resource_group_filter.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_group_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/models/resource_group_properties.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/models/resource_management_error.rb +3 -4
- data/lib/azure_mgmt_resources/models/resource_management_error_with_details.rb +23 -35
- data/lib/azure_mgmt_resources/models/resource_provider_operation_definition.rb +1 -3
- data/lib/azure_mgmt_resources/models/resource_provider_operation_detail_list_result.rb +4 -6
- data/lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +1 -3
- data/lib/azure_mgmt_resources/models/resources_move_info.rb +1 -3
- data/lib/azure_mgmt_resources/models/tag_count.rb +1 -3
- data/lib/azure_mgmt_resources/models/tag_details.rb +4 -6
- data/lib/azure_mgmt_resources/models/tag_value.rb +1 -3
- data/lib/azure_mgmt_resources/models/tags_list_result.rb +11 -12
- data/lib/azure_mgmt_resources/models/target_resource.rb +1 -3
- data/lib/azure_mgmt_resources/models/template_link.rb +2 -4
- data/lib/azure_mgmt_resources/module_definition.rb +5 -3
- data/lib/azure_mgmt_resources/policy_assignments.rb +922 -0
- data/lib/azure_mgmt_resources/policy_definitions.rb +208 -0
- data/lib/azure_mgmt_resources/providers.rb +90 -219
- data/lib/azure_mgmt_resources/resource_groups.rb +166 -434
- data/lib/azure_mgmt_resources/resource_management_client.rb +25 -10
- data/lib/azure_mgmt_resources/resource_provider_operation_details.rb +88 -43
- data/lib/azure_mgmt_resources/resources.rb +162 -366
- data/lib/azure_mgmt_resources/tags.rb +110 -264
- data/lib/azure_mgmt_resources/version.rb +5 -3
- metadata +12 -86
- 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
@@ -1,6 +1,8 @@
|
|
1
|
-
#
|
2
|
-
#
|
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.
|
3
5
|
|
4
6
|
module Azure::ARM::Resources
|
5
|
-
|
7
|
+
VERSION = '0.2.0'
|
6
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,106 +66,28 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: json
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.8'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.8'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: concurrent-ruby
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.0.0.pre1
|
90
|
-
- - "<"
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: '2'
|
93
|
-
type: :runtime
|
94
|
-
prerelease: false
|
95
|
-
version_requirements: !ruby/object:Gem::Requirement
|
96
|
-
requirements:
|
97
|
-
- - ">="
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: 1.0.0.pre1
|
100
|
-
- - "<"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '2'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: faraday
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0.9'
|
110
|
-
type: :runtime
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - "~>"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '0.9'
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: faraday-cookie_jar
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - "~>"
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: 0.0.6
|
124
|
-
type: :runtime
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - "~>"
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: 0.0.6
|
131
69
|
- !ruby/object:Gem::Dependency
|
132
70
|
name: ms_rest_azure
|
133
71
|
requirement: !ruby/object:Gem::Requirement
|
134
72
|
requirements:
|
135
73
|
- - "~>"
|
136
74
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.
|
138
|
-
type: :runtime
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - "~>"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: 0.1.0
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: ms_rest
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: 0.1.0
|
75
|
+
version: 0.2.0
|
152
76
|
type: :runtime
|
153
77
|
prerelease: false
|
154
78
|
version_requirements: !ruby/object:Gem::Requirement
|
155
79
|
requirements:
|
156
80
|
- - "~>"
|
157
81
|
- !ruby/object:Gem::Version
|
158
|
-
version: 0.
|
82
|
+
version: 0.2.0
|
159
83
|
description: Microsoft Azure Resource Management Client Library for Ruby
|
160
|
-
email:
|
84
|
+
email: azrubyteam@microsoft.com
|
161
85
|
executables: []
|
162
86
|
extensions: []
|
163
87
|
extra_rdoc_files: []
|
164
88
|
files:
|
165
89
|
- ".gitignore"
|
166
90
|
- ".rspec"
|
167
|
-
- ".travis.yml"
|
168
|
-
- Gemfile
|
169
91
|
- LICENSE.txt
|
170
92
|
- README.md
|
171
93
|
- Rakefile
|
@@ -190,14 +112,16 @@ files:
|
|
190
112
|
- lib/azure_mgmt_resources/models/generic_resource_filter.rb
|
191
113
|
- lib/azure_mgmt_resources/models/parameters_link.rb
|
192
114
|
- lib/azure_mgmt_resources/models/plan.rb
|
115
|
+
- lib/azure_mgmt_resources/models/policy_assignment.rb
|
116
|
+
- lib/azure_mgmt_resources/models/policy_assignment_list_result.rb
|
117
|
+
- lib/azure_mgmt_resources/models/policy_assignment_properties.rb
|
118
|
+
- lib/azure_mgmt_resources/models/policy_definition.rb
|
119
|
+
- lib/azure_mgmt_resources/models/policy_definition_properties.rb
|
193
120
|
- lib/azure_mgmt_resources/models/provider.rb
|
194
121
|
- lib/azure_mgmt_resources/models/provider_list_result.rb
|
195
122
|
- lib/azure_mgmt_resources/models/provider_resource_type.rb
|
196
123
|
- lib/azure_mgmt_resources/models/resource_group.rb
|
197
|
-
- lib/azure_mgmt_resources/models/resource_group_extended.rb
|
198
|
-
- lib/azure_mgmt_resources/models/resource_group_extended_filter.rb
|
199
124
|
- lib/azure_mgmt_resources/models/resource_group_filter.rb
|
200
|
-
- lib/azure_mgmt_resources/models/resource_group_format_resource_properties.rb
|
201
125
|
- lib/azure_mgmt_resources/models/resource_group_list_result.rb
|
202
126
|
- lib/azure_mgmt_resources/models/resource_group_properties.rb
|
203
127
|
- lib/azure_mgmt_resources/models/resource_list_result.rb
|
@@ -214,6 +138,8 @@ files:
|
|
214
138
|
- lib/azure_mgmt_resources/models/target_resource.rb
|
215
139
|
- lib/azure_mgmt_resources/models/template_link.rb
|
216
140
|
- lib/azure_mgmt_resources/module_definition.rb
|
141
|
+
- lib/azure_mgmt_resources/policy_assignments.rb
|
142
|
+
- lib/azure_mgmt_resources/policy_definitions.rb
|
217
143
|
- lib/azure_mgmt_resources/providers.rb
|
218
144
|
- lib/azure_mgmt_resources/resource_groups.rb
|
219
145
|
- lib/azure_mgmt_resources/resource_management_client.rb
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
-
|
5
|
-
source 'https://rubygems.org'
|
6
|
-
|
7
|
-
gemspec
|
8
|
-
|
9
|
-
group :development do
|
10
|
-
end
|
11
|
-
|
12
|
-
group :test do
|
13
|
-
gem 'rspec'
|
14
|
-
end
|
@@ -1,113 +0,0 @@
|
|
1
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
2
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
3
|
-
|
4
|
-
|
5
|
-
module Azure::ARM::Resources
|
6
|
-
module Models
|
7
|
-
#
|
8
|
-
# Resource group information.
|
9
|
-
#
|
10
|
-
class ResourceGroupExtended
|
11
|
-
# @return [String] Gets or sets the ID of the resource group.
|
12
|
-
attr_accessor :id
|
13
|
-
|
14
|
-
# @return [String] Gets or sets the Name of the resource group.
|
15
|
-
attr_accessor :name
|
16
|
-
|
17
|
-
# @return [ResourceGroupFormatResourceProperties]
|
18
|
-
attr_accessor :properties
|
19
|
-
|
20
|
-
# @return [String] Gets or sets the location of the resource group. It
|
21
|
-
# cannot be changed after the resource group has been created. Has to
|
22
|
-
# be one of the supported Azure Locations, such as West US, East US,
|
23
|
-
# West Europe, East Asia, etc.
|
24
|
-
attr_accessor :location
|
25
|
-
|
26
|
-
# @return Gets or sets the tags attached to the resource group.
|
27
|
-
attr_accessor :tags
|
28
|
-
|
29
|
-
# @return [String] Gets or sets resource group provisioning state.
|
30
|
-
attr_accessor :provisioning_state
|
31
|
-
|
32
|
-
def initialize
|
33
|
-
@tags = {};
|
34
|
-
end
|
35
|
-
|
36
|
-
#
|
37
|
-
# Validate the object. Throws ArgumentError if validation fails.
|
38
|
-
#
|
39
|
-
def validate
|
40
|
-
@properties.validate unless @properties.nil?
|
41
|
-
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
42
|
-
end
|
43
|
-
|
44
|
-
#
|
45
|
-
# Serializes given Model object into Ruby Hash.
|
46
|
-
# @param object Model object to serialize.
|
47
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
48
|
-
#
|
49
|
-
def self.serialize_object(object)
|
50
|
-
object.validate
|
51
|
-
output_object = {}
|
52
|
-
|
53
|
-
serialized_property = object.id
|
54
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
serialized_property = object.name
|
57
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
58
|
-
|
59
|
-
serialized_property = object.properties
|
60
|
-
if (serialized_property)
|
61
|
-
serialized_property = Azure::ARM::Resources::Models::ResourceGroupFormatResourceProperties.serialize_object(serialized_property)
|
62
|
-
end
|
63
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
serialized_property = object.location
|
66
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
67
|
-
|
68
|
-
serialized_property = object.tags
|
69
|
-
output_object['tags'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
serialized_property = object.provisioning_state
|
72
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
73
|
-
|
74
|
-
output_object
|
75
|
-
end
|
76
|
-
|
77
|
-
#
|
78
|
-
# Deserializes given Ruby Hash into Model object.
|
79
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
80
|
-
# @return [ResourceGroupExtended] Deserialized object.
|
81
|
-
#
|
82
|
-
def self.deserialize_object(object)
|
83
|
-
return if object.nil?
|
84
|
-
output_object = ResourceGroupExtended.new
|
85
|
-
|
86
|
-
deserialized_property = object['id']
|
87
|
-
output_object.id = deserialized_property
|
88
|
-
|
89
|
-
deserialized_property = object['name']
|
90
|
-
output_object.name = deserialized_property
|
91
|
-
|
92
|
-
deserialized_property = object['properties']
|
93
|
-
if (deserialized_property)
|
94
|
-
deserialized_property = Azure::ARM::Resources::Models::ResourceGroupFormatResourceProperties.deserialize_object(deserialized_property)
|
95
|
-
end
|
96
|
-
output_object.properties = deserialized_property
|
97
|
-
|
98
|
-
deserialized_property = object['location']
|
99
|
-
output_object.location = deserialized_property
|
100
|
-
|
101
|
-
deserialized_property = object['tags']
|
102
|
-
output_object.tags = deserialized_property
|
103
|
-
|
104
|
-
deserialized_property = object['provisioningState']
|
105
|
-
output_object.provisioning_state = deserialized_property
|
106
|
-
|
107
|
-
output_object.validate
|
108
|
-
|
109
|
-
output_object
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
@@ -1,63 +0,0 @@
|
|
1
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
2
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
3
|
-
|
4
|
-
|
5
|
-
module Azure::ARM::Resources
|
6
|
-
module Models
|
7
|
-
#
|
8
|
-
# Resource group filter.
|
9
|
-
#
|
10
|
-
class ResourceGroupExtendedFilter
|
11
|
-
# @return [String] Gets or sets the tag name.
|
12
|
-
attr_accessor :tag_name
|
13
|
-
|
14
|
-
# @return [String] Gets or sets the tag value.
|
15
|
-
attr_accessor :tag_value
|
16
|
-
|
17
|
-
#
|
18
|
-
# Validate the object. Throws ArgumentError if validation fails.
|
19
|
-
#
|
20
|
-
def validate
|
21
|
-
# Nothing to validate
|
22
|
-
end
|
23
|
-
|
24
|
-
#
|
25
|
-
# Serializes given Model object into Ruby Hash.
|
26
|
-
# @param object Model object to serialize.
|
27
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
28
|
-
#
|
29
|
-
def self.serialize_object(object)
|
30
|
-
object.validate
|
31
|
-
output_object = {}
|
32
|
-
|
33
|
-
serialized_property = object.tag_name
|
34
|
-
output_object['tagName'] = serialized_property unless serialized_property.nil?
|
35
|
-
|
36
|
-
serialized_property = object.tag_value
|
37
|
-
output_object['tagValue'] = serialized_property unless serialized_property.nil?
|
38
|
-
|
39
|
-
output_object
|
40
|
-
end
|
41
|
-
|
42
|
-
#
|
43
|
-
# Deserializes given Ruby Hash into Model object.
|
44
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
45
|
-
# @return [ResourceGroupExtendedFilter] Deserialized object.
|
46
|
-
#
|
47
|
-
def self.deserialize_object(object)
|
48
|
-
return if object.nil?
|
49
|
-
output_object = ResourceGroupExtendedFilter.new
|
50
|
-
|
51
|
-
deserialized_property = object['tagName']
|
52
|
-
output_object.tag_name = deserialized_property
|
53
|
-
|
54
|
-
deserialized_property = object['tagValue']
|
55
|
-
output_object.tag_value = deserialized_property
|
56
|
-
|
57
|
-
output_object.validate
|
58
|
-
|
59
|
-
output_object
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
2
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
3
|
-
|
4
|
-
|
5
|
-
module Azure::ARM::Resources
|
6
|
-
module Models
|
7
|
-
#
|
8
|
-
# The resource group properties.
|
9
|
-
#
|
10
|
-
class ResourceGroupFormatResourceProperties
|
11
|
-
# @return [String] Gets or sets resource group provisioning state.
|
12
|
-
attr_accessor :provisioning_state
|
13
|
-
|
14
|
-
#
|
15
|
-
# Validate the object. Throws ArgumentError if validation fails.
|
16
|
-
#
|
17
|
-
def validate
|
18
|
-
# Nothing to validate
|
19
|
-
end
|
20
|
-
|
21
|
-
#
|
22
|
-
# Serializes given Model object into Ruby Hash.
|
23
|
-
# @param object Model object to serialize.
|
24
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
25
|
-
#
|
26
|
-
def self.serialize_object(object)
|
27
|
-
object.validate
|
28
|
-
output_object = {}
|
29
|
-
|
30
|
-
serialized_property = object.provisioning_state
|
31
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
32
|
-
|
33
|
-
output_object
|
34
|
-
end
|
35
|
-
|
36
|
-
#
|
37
|
-
# Deserializes given Ruby Hash into Model object.
|
38
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
39
|
-
# @return [ResourceGroupFormatResourceProperties] Deserialized object.
|
40
|
-
#
|
41
|
-
def self.deserialize_object(object)
|
42
|
-
return if object.nil?
|
43
|
-
output_object = ResourceGroupFormatResourceProperties.new
|
44
|
-
|
45
|
-
deserialized_property = object['provisioningState']
|
46
|
-
output_object.provisioning_state = deserialized_property
|
47
|
-
|
48
|
-
output_object.validate
|
49
|
-
|
50
|
-
output_object
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|