fog-azure-rm 0.2.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/fog-azure-rm.gemspec +8 -8
- data/lib/fog/azurerm.rb +5 -0
- data/lib/fog/azurerm/async_response.rb +36 -0
- data/lib/fog/azurerm/compute.rb +15 -1
- data/lib/fog/azurerm/constants.rb +6 -0
- data/lib/fog/azurerm/docs/compute.md +145 -2
- data/lib/fog/azurerm/models/compute/creation_data.rb +21 -0
- data/lib/fog/azurerm/models/compute/disk_create_option.rb +16 -0
- data/lib/fog/azurerm/models/compute/encryption_settings.rb +29 -0
- data/lib/fog/azurerm/models/compute/image_disk_reference.rb +15 -0
- data/lib/fog/azurerm/models/compute/managed_disk.rb +77 -0
- data/lib/fog/azurerm/models/compute/managed_disks.rb +43 -0
- data/lib/fog/azurerm/models/compute/operation_status_response.rb +18 -0
- data/lib/fog/azurerm/models/compute/server.rb +12 -7
- data/lib/fog/azurerm/models/compute/servers.rb +6 -0
- data/lib/fog/azurerm/models/traffic_manager/traffic_manager_profile.rb +1 -0
- data/lib/fog/azurerm/requests/compute/check_managed_disk_exists.rb +33 -0
- data/lib/fog/azurerm/requests/compute/create_or_update_managed_disk.rb +121 -0
- data/lib/fog/azurerm/requests/compute/create_virtual_machine.rb +24 -11
- data/lib/fog/azurerm/requests/compute/delete_managed_disk.rb +29 -0
- data/lib/fog/azurerm/requests/compute/delete_virtual_machine.rb +1 -1
- data/lib/fog/azurerm/requests/compute/get_managed_disk.rb +64 -0
- data/lib/fog/azurerm/requests/compute/grant_access_to_managed_disk.rb +30 -0
- data/lib/fog/azurerm/requests/compute/list_managed_disks_by_rg.rb +66 -0
- data/lib/fog/azurerm/requests/compute/list_managed_disks_in_subscription.rb +66 -0
- data/lib/fog/azurerm/requests/compute/revoke_access_to_managed_disk.rb +33 -0
- data/lib/fog/azurerm/requests/dns/check_zone_exists.rb +5 -1
- data/lib/fog/azurerm/requests/network/check_net_sec_rule_exists.rb +1 -1
- data/lib/fog/azurerm/requests/network/check_subnet_exists.rb +1 -1
- data/lib/fog/azurerm/utilities/general.rb +13 -10
- data/lib/fog/azurerm/version.rb +1 -1
- data/test/api_stub.rb +2 -0
- data/test/api_stub/models/compute/managed_disk.rb +59 -0
- data/test/api_stub/requests/compute/managed_disk.rb +102 -0
- data/test/api_stub/requests/compute/virtual_machine.rb +6 -6
- data/test/integration/Virtual_network_gateway_connection.rb +0 -6
- data/test/integration/application_gateway.rb +1 -1
- data/test/integration/credentials/azure.yml +1 -1
- data/test/integration/managed_disk.rb +113 -0
- data/test/integration/server.rb +39 -1
- data/test/integration/traffic_manager.rb +2 -2
- data/test/models/compute/test_managed_disk.rb +61 -0
- data/test/models/compute/test_managed_disks.rb +68 -0
- data/test/models/compute/test_server.rb +7 -1
- data/test/models/compute/test_servers.rb +1 -0
- data/test/requests/compute/test_check_managed_disk_exists.rb +31 -0
- data/test/requests/compute/test_create_or_update_managed_disk.rb +38 -0
- data/test/requests/compute/test_create_virtual_machine.rb +27 -0
- data/test/requests/compute/test_delete_managed_disk.rb +23 -0
- data/test/requests/compute/test_get_managed_disk.rb +24 -0
- data/test/requests/compute/test_grant_access_to_managed_disk.rb +26 -0
- data/test/requests/compute/test_list_managed_disks_by_rg.rb +24 -0
- data/test/requests/compute/test_list_managed_disks_in_subscription.rb +24 -0
- data/test/requests/compute/test_revoke_access_to_managed_disk.rb +24 -0
- data/test/test_helper.rb +15 -1
- metadata +47 -18
@@ -0,0 +1,38 @@
|
|
1
|
+
require File.expand_path '../../test_helper', __dir__
|
2
|
+
|
3
|
+
# Test class for Create Managed Disk Request
|
4
|
+
class TestCreateManagedDisk < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@service = Fog::Compute::AzureRM.new(credentials)
|
7
|
+
@client = @service.instance_variable_get(:@compute_mgmt_client)
|
8
|
+
@managed_disks = @client.disks
|
9
|
+
@disk = {
|
10
|
+
name: 'my-managed-disk',
|
11
|
+
location: 'eastus',
|
12
|
+
resource_group_name: 'fog-test-rg',
|
13
|
+
account_type: 'Premium_LRS',
|
14
|
+
disk_size_gb: 1024,
|
15
|
+
creation_data: {
|
16
|
+
create_option: 'Empty'
|
17
|
+
}
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_create_or_update_managed_disk_success
|
22
|
+
mocked_response = ApiStub::Requests::Compute::ManagedDisk.create_or_update_managed_disk_response(@client)
|
23
|
+
@managed_disks.stub :validate_params, true do
|
24
|
+
@managed_disks.stub :create_or_update, mocked_response do
|
25
|
+
assert_equal @service.create_or_update_managed_disk(@disk), mocked_response
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_create_or_update_managed_disk_failure
|
31
|
+
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
|
32
|
+
@managed_disks.stub :validate_params, true do
|
33
|
+
@managed_disks.stub :create_or_update, response do
|
34
|
+
assert_raises(RuntimeError) { @service.create_or_update_managed_disk(@disk) }
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -16,12 +16,22 @@ class TestCreateVirtualMachine < Minitest::Test
|
|
16
16
|
@virtual_machines.stub :create_or_update, @response do
|
17
17
|
assert_equal @service.create_virtual_machine(@linux_virtual_machine_hash), @response
|
18
18
|
end
|
19
|
+
|
20
|
+
# Async
|
21
|
+
@virtual_machines.stub :create_or_update_async, @response do
|
22
|
+
assert_equal @service.create_virtual_machine(@linux_virtual_machine_hash, true), @response
|
23
|
+
end
|
19
24
|
end
|
20
25
|
|
21
26
|
def test_create_windows_virtual_machine_success
|
22
27
|
@virtual_machines.stub :create_or_update, @response do
|
23
28
|
assert_equal @service.create_virtual_machine(@windows_virtual_machine_hash), @response
|
24
29
|
end
|
30
|
+
|
31
|
+
# Async
|
32
|
+
@virtual_machines.stub :create_or_update_async, @response do
|
33
|
+
assert_equal @service.create_virtual_machine(@windows_virtual_machine_hash, true), @response
|
34
|
+
end
|
25
35
|
end
|
26
36
|
|
27
37
|
def test_create_linux_virtual_machine_from_custom_image_success
|
@@ -29,6 +39,11 @@ class TestCreateVirtualMachine < Minitest::Test
|
|
29
39
|
@virtual_machines.stub :create_or_update, @response do
|
30
40
|
assert_equal @service.create_virtual_machine(linux_virtual_machine_with_custom_image_hash), @response
|
31
41
|
end
|
42
|
+
|
43
|
+
# Async
|
44
|
+
@virtual_machines.stub :create_or_update_async, @response do
|
45
|
+
assert_equal @service.create_virtual_machine(linux_virtual_machine_with_custom_image_hash, true), @response
|
46
|
+
end
|
32
47
|
end
|
33
48
|
|
34
49
|
def test_create_windows_virtual_machine_from_custom_image_success
|
@@ -36,6 +51,11 @@ class TestCreateVirtualMachine < Minitest::Test
|
|
36
51
|
@virtual_machines.stub :create_or_update, @response do
|
37
52
|
assert_equal @service.create_virtual_machine(windows_virtual_machine_with_custom_image_hash), @response
|
38
53
|
end
|
54
|
+
|
55
|
+
# Async
|
56
|
+
@virtual_machines.stub :create_or_update_async, @response do
|
57
|
+
assert_equal @service.create_virtual_machine(windows_virtual_machine_with_custom_image_hash, true), @response
|
58
|
+
end
|
39
59
|
end
|
40
60
|
|
41
61
|
def test_create_linux_virtual_machine_with_custom_data_success
|
@@ -59,5 +79,12 @@ class TestCreateVirtualMachine < Minitest::Test
|
|
59
79
|
@service.create_virtual_machine(@linux_virtual_machine_hash)
|
60
80
|
end
|
61
81
|
end
|
82
|
+
|
83
|
+
# Async
|
84
|
+
@virtual_machines.stub :create_or_update_async, response do
|
85
|
+
assert_raises RuntimeError do
|
86
|
+
@service.create_virtual_machine(@linux_virtual_machine_hash, true)
|
87
|
+
end
|
88
|
+
end
|
62
89
|
end
|
63
90
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require File.expand_path '../../test_helper', __dir__
|
2
|
+
|
3
|
+
# Test class for Delete Managed Disk Request
|
4
|
+
class TestDeleteManagedDisk < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@service = Fog::Compute::AzureRM.new(credentials)
|
7
|
+
client = @service.instance_variable_get(:@compute_mgmt_client)
|
8
|
+
@managed_disks = client.disks
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_delete_managed_disk_success
|
12
|
+
@managed_disks.stub :delete, true do
|
13
|
+
assert @service.delete_managed_disk('fog-test-rg', 'test-disk')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_delete_managed_disk_failure
|
18
|
+
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
|
19
|
+
@managed_disks.stub :delete, response do
|
20
|
+
assert_raises(RuntimeError) { @service.delete_managed_disk('fog-test-rg', 'test-disk') }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.expand_path '../../test_helper', __dir__
|
2
|
+
|
3
|
+
# Test class for Get Managed Disk Request
|
4
|
+
class TestGetManagedDisk < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@service = Fog::Compute::AzureRM.new(credentials)
|
7
|
+
@client = @service.instance_variable_get(:@compute_mgmt_client)
|
8
|
+
@managed_disks = @client.disks
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_get_managed_disk_success
|
12
|
+
mocked_response = ApiStub::Requests::Compute::ManagedDisk.get_managed_disk_response(@client)
|
13
|
+
@managed_disks.stub :get, mocked_response do
|
14
|
+
assert_equal @service.get_managed_disk('myrg1', 'disk1'), mocked_response
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_get_managed_disk_failure
|
19
|
+
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
|
20
|
+
@managed_disks.stub :get, response do
|
21
|
+
assert_raises(RuntimeError) { @service.get_managed_disk('myrg1', 'disk1') }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require File.expand_path '../../test_helper', __dir__
|
2
|
+
|
3
|
+
# Test class for Grant Access to Managed Disk Request
|
4
|
+
class TestGrantAccessToManagedDisk < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@service = Fog::Compute::AzureRM.new(credentials)
|
7
|
+
@client = @service.instance_variable_get(:@compute_mgmt_client)
|
8
|
+
@managed_disks = @client.disks
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_grant_access_to_managed_disk_success
|
12
|
+
mocked_response = Azure::ARM::Compute::Models::AccessUri.new
|
13
|
+
mocked_response.stub :access_sas, 'xxxxxxxx-xxxx-xxxx-xxxxxxxx' do
|
14
|
+
@managed_disks.stub :grant_access, mocked_response do
|
15
|
+
assert_equal @service.grant_access_to_managed_disk('myrg1', 'disk1', 'Read', 100), 'xxxxxxxx-xxxx-xxxx-xxxxxxxx'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_grant_access_to_managed_disk_failure
|
21
|
+
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
|
22
|
+
@managed_disks.stub :grant_access, response do
|
23
|
+
assert_raises(RuntimeError) { @service.grant_access_to_managed_disk('myrg1', 'disk1', 'Read', 100) }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.expand_path '../../test_helper', __dir__
|
2
|
+
|
3
|
+
# Test class for List Managed Disks Request
|
4
|
+
class TestListManagedDisksByRG < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@service = Fog::Compute::AzureRM.new(credentials)
|
7
|
+
@client = @service.instance_variable_get(:@compute_mgmt_client)
|
8
|
+
@managed_disks = @client.disks
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_list_managed_disks_by_rg_success
|
12
|
+
mocked_response = [ApiStub::Requests::Compute::ManagedDisk.create_or_update_managed_disk_response(@client)]
|
13
|
+
@managed_disks.stub :list_by_resource_group, mocked_response do
|
14
|
+
assert_equal @service.list_managed_disks_by_rg('fog-test-rg'), mocked_response
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_list_managed_disks_by_rg_failure
|
19
|
+
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
|
20
|
+
@managed_disks.stub :list_by_resource_group, response do
|
21
|
+
assert_raises(RuntimeError) { @service.list_managed_disks_by_rg('fog-test-rg') }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.expand_path '../../test_helper', __dir__
|
2
|
+
|
3
|
+
# Test class for List Managed Disks Request
|
4
|
+
class TestListManagedDisksInSubscription < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@service = Fog::Compute::AzureRM.new(credentials)
|
7
|
+
@client = @service.instance_variable_get(:@compute_mgmt_client)
|
8
|
+
@managed_disks = @client.disks
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_list_managed_disks_in_subscription_success
|
12
|
+
mocked_response = [ApiStub::Requests::Compute::ManagedDisk.create_or_update_managed_disk_response(@client)]
|
13
|
+
@managed_disks.stub :list, mocked_response do
|
14
|
+
assert_equal @service.list_managed_disks_in_subscription, mocked_response
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_list_managed_disks_in_subscription_failure
|
19
|
+
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
|
20
|
+
@managed_disks.stub :list, response do
|
21
|
+
assert_raises(RuntimeError) { @service.list_managed_disks_in_subscription }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require File.expand_path '../../test_helper', __dir__
|
2
|
+
|
3
|
+
# Test class for Revoke Access from Managed Disk Request
|
4
|
+
class TestRevokeAccessFromManagedDisk < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@service = Fog::Compute::AzureRM.new(credentials)
|
7
|
+
@client = @service.instance_variable_get(:@compute_mgmt_client)
|
8
|
+
@managed_disks = @client.disks
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_revoke_access_from_managed_disk_success
|
12
|
+
mocked_response = ApiStub::Requests::Compute::ManagedDisk.operation_status_response(@client)
|
13
|
+
@managed_disks.stub :revoke_access, mocked_response do
|
14
|
+
assert_equal @service.revoke_access_to_managed_disk('myrg1', 'myavset1'), mocked_response
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_revoke_access_from_managed_disk_failure
|
19
|
+
response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception' }) }
|
20
|
+
@managed_disks.stub :revoke_access, response do
|
21
|
+
assert_raises(RuntimeError) { @service.revoke_access_to_managed_disk('myrg1', 'myavset1') }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -85,7 +85,7 @@ def server(service)
|
|
85
85
|
username: 'shaffan',
|
86
86
|
password: 'Confiz=123',
|
87
87
|
disable_password_authentication: false,
|
88
|
-
|
88
|
+
network_interface_card_ids: ['/subscriptions/########-####-####-####-############/resourceGroups/shaffanRG/providers/Microsoft.Network/networkInterfaces/testNIC'],
|
89
89
|
publisher: 'Canonical',
|
90
90
|
offer: 'UbuntuServer',
|
91
91
|
sku: '14.04.2-LTS',
|
@@ -801,3 +801,17 @@ def recovery_vault(service)
|
|
801
801
|
service: service
|
802
802
|
)
|
803
803
|
end
|
804
|
+
|
805
|
+
def managed_disk(service)
|
806
|
+
Fog::Compute::AzureRM::ManagedDisk.new(
|
807
|
+
name: 'managed-disk',
|
808
|
+
location: 'East US',
|
809
|
+
resource_group_name: 'fog-test-rg',
|
810
|
+
account_type: 'Premium_LRS',
|
811
|
+
disk_size_gb: 1023,
|
812
|
+
creation_data: {
|
813
|
+
create_option: 'Empty'
|
814
|
+
},
|
815
|
+
service: service
|
816
|
+
)
|
817
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-azure-rm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaffan Chaudhry
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2017-
|
17
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rake
|
@@ -120,112 +120,112 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.
|
123
|
+
version: 0.9.0
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.
|
130
|
+
version: 0.9.0
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: azure_mgmt_resources
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.
|
137
|
+
version: 0.9.0
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0.
|
144
|
+
version: 0.9.0
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: azure_mgmt_storage
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 0.
|
151
|
+
version: 0.9.0
|
152
152
|
type: :runtime
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 0.
|
158
|
+
version: 0.9.0
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: azure_mgmt_network
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.
|
165
|
+
version: 0.9.0
|
166
166
|
type: :runtime
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.
|
172
|
+
version: 0.9.0
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: azure_mgmt_dns
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 0.
|
179
|
+
version: 0.9.0
|
180
180
|
type: :runtime
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: 0.
|
186
|
+
version: 0.9.0
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: azure_mgmt_traffic_manager
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: 0.
|
193
|
+
version: 0.9.0
|
194
194
|
type: :runtime
|
195
195
|
prerelease: false
|
196
196
|
version_requirements: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: 0.
|
200
|
+
version: 0.9.0
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: azure_mgmt_sql
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
205
|
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: 0.
|
207
|
+
version: 0.9.0
|
208
208
|
type: :runtime
|
209
209
|
prerelease: false
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.
|
214
|
+
version: 0.9.0
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
216
|
name: azure_mgmt_key_vault
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - "~>"
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0.
|
221
|
+
version: 0.9.0
|
222
222
|
type: :runtime
|
223
223
|
prerelease: false
|
224
224
|
version_requirements: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
226
|
- - "~>"
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: 0.
|
228
|
+
version: 0.9.0
|
229
229
|
- !ruby/object:Gem::Dependency
|
230
230
|
name: azure-storage
|
231
231
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,6 +277,7 @@ files:
|
|
277
277
|
- fog-azure-rm.gemspec
|
278
278
|
- lib/fog/azurerm.rb
|
279
279
|
- lib/fog/azurerm/application_gateway.rb
|
280
|
+
- lib/fog/azurerm/async_response.rb
|
280
281
|
- lib/fog/azurerm/compute.rb
|
281
282
|
- lib/fog/azurerm/config.rb
|
282
283
|
- lib/fog/azurerm/constants.rb
|
@@ -308,7 +309,14 @@ files:
|
|
308
309
|
- lib/fog/azurerm/models/compute/availability_set.rb
|
309
310
|
- lib/fog/azurerm/models/compute/availability_sets.rb
|
310
311
|
- lib/fog/azurerm/models/compute/caching_types.rb
|
312
|
+
- lib/fog/azurerm/models/compute/creation_data.rb
|
313
|
+
- lib/fog/azurerm/models/compute/disk_create_option.rb
|
311
314
|
- lib/fog/azurerm/models/compute/disk_create_option_types.rb
|
315
|
+
- lib/fog/azurerm/models/compute/encryption_settings.rb
|
316
|
+
- lib/fog/azurerm/models/compute/image_disk_reference.rb
|
317
|
+
- lib/fog/azurerm/models/compute/managed_disk.rb
|
318
|
+
- lib/fog/azurerm/models/compute/managed_disks.rb
|
319
|
+
- lib/fog/azurerm/models/compute/operation_status_response.rb
|
312
320
|
- lib/fog/azurerm/models/compute/server.rb
|
313
321
|
- lib/fog/azurerm/models/compute/servers.rb
|
314
322
|
- lib/fog/azurerm/models/compute/virtual_machine_extension.rb
|
@@ -404,27 +412,35 @@ files:
|
|
404
412
|
- lib/fog/azurerm/requests/application_gateway/update_subnet_id_in_gateway_ip_configuration.rb
|
405
413
|
- lib/fog/azurerm/requests/compute/attach_data_disk_to_vm.rb
|
406
414
|
- lib/fog/azurerm/requests/compute/check_availability_set_exists.rb
|
415
|
+
- lib/fog/azurerm/requests/compute/check_managed_disk_exists.rb
|
407
416
|
- lib/fog/azurerm/requests/compute/check_vm_exists.rb
|
408
417
|
- lib/fog/azurerm/requests/compute/check_vm_extension_exists.rb
|
409
418
|
- lib/fog/azurerm/requests/compute/check_vm_status.rb
|
410
419
|
- lib/fog/azurerm/requests/compute/create_availability_set.rb
|
420
|
+
- lib/fog/azurerm/requests/compute/create_or_update_managed_disk.rb
|
411
421
|
- lib/fog/azurerm/requests/compute/create_or_update_vm_extension.rb
|
412
422
|
- lib/fog/azurerm/requests/compute/create_virtual_machine.rb
|
413
423
|
- lib/fog/azurerm/requests/compute/deallocate_virtual_machine.rb
|
414
424
|
- lib/fog/azurerm/requests/compute/delete_availability_set.rb
|
425
|
+
- lib/fog/azurerm/requests/compute/delete_managed_disk.rb
|
415
426
|
- lib/fog/azurerm/requests/compute/delete_virtual_machine.rb
|
416
427
|
- lib/fog/azurerm/requests/compute/delete_vm_extension.rb
|
417
428
|
- lib/fog/azurerm/requests/compute/detach_data_disk_from_vm.rb
|
418
429
|
- lib/fog/azurerm/requests/compute/generalize_virtual_machine.rb
|
419
430
|
- lib/fog/azurerm/requests/compute/get_availability_set.rb
|
431
|
+
- lib/fog/azurerm/requests/compute/get_managed_disk.rb
|
420
432
|
- lib/fog/azurerm/requests/compute/get_virtual_machine.rb
|
421
433
|
- lib/fog/azurerm/requests/compute/get_vm_extension.rb
|
434
|
+
- lib/fog/azurerm/requests/compute/grant_access_to_managed_disk.rb
|
422
435
|
- lib/fog/azurerm/requests/compute/list_availability_sets.rb
|
423
436
|
- lib/fog/azurerm/requests/compute/list_available_sizes_for_virtual_machine.rb
|
437
|
+
- lib/fog/azurerm/requests/compute/list_managed_disks_by_rg.rb
|
438
|
+
- lib/fog/azurerm/requests/compute/list_managed_disks_in_subscription.rb
|
424
439
|
- lib/fog/azurerm/requests/compute/list_virtual_machines.rb
|
425
440
|
- lib/fog/azurerm/requests/compute/power_off_virtual_machine.rb
|
426
441
|
- lib/fog/azurerm/requests/compute/redeploy_virtual_machine.rb
|
427
442
|
- lib/fog/azurerm/requests/compute/restart_virtual_machine.rb
|
443
|
+
- lib/fog/azurerm/requests/compute/revoke_access_to_managed_disk.rb
|
428
444
|
- lib/fog/azurerm/requests/compute/start_virtual_machine.rb
|
429
445
|
- lib/fog/azurerm/requests/dns/check_record_set_exists.rb
|
430
446
|
- lib/fog/azurerm/requests/dns/check_zone_exists.rb
|
@@ -634,6 +650,7 @@ files:
|
|
634
650
|
- test/api_stub.rb
|
635
651
|
- test/api_stub/models/application_gateway/gateway.rb
|
636
652
|
- test/api_stub/models/compute/availability_set.rb
|
653
|
+
- test/api_stub/models/compute/managed_disk.rb
|
637
654
|
- test/api_stub/models/compute/server.rb
|
638
655
|
- test/api_stub/models/compute/virtual_machine_extension.rb
|
639
656
|
- test/api_stub/models/dns/record_set.rb
|
@@ -667,6 +684,7 @@ files:
|
|
667
684
|
- test/api_stub/models/traffic_manager/traffic_manager_profile.rb
|
668
685
|
- test/api_stub/requests/application_gateway/gateway.rb
|
669
686
|
- test/api_stub/requests/compute/availability_set.rb
|
687
|
+
- test/api_stub/requests/compute/managed_disk.rb
|
670
688
|
- test/api_stub/requests/compute/virtual_machine.rb
|
671
689
|
- test/api_stub/requests/compute/virtual_machine_extension.rb
|
672
690
|
- test/api_stub/requests/dns/record_set.rb
|
@@ -712,6 +730,7 @@ files:
|
|
712
730
|
- test/integration/internal_load_balancer.rb
|
713
731
|
- test/integration/key_vault.rb
|
714
732
|
- test/integration/local_network_gateway.rb
|
733
|
+
- test/integration/managed_disk.rb
|
715
734
|
- test/integration/network_interface.rb
|
716
735
|
- test/integration/network_security_group.rb
|
717
736
|
- test/integration/network_security_rule.rb
|
@@ -734,6 +753,8 @@ files:
|
|
734
753
|
- test/models/application_gateway/test_gateways.rb
|
735
754
|
- test/models/compute/test_availability_set.rb
|
736
755
|
- test/models/compute/test_availability_sets.rb
|
756
|
+
- test/models/compute/test_managed_disk.rb
|
757
|
+
- test/models/compute/test_managed_disks.rb
|
737
758
|
- test/models/compute/test_server.rb
|
738
759
|
- test/models/compute/test_servers.rb
|
739
760
|
- test/models/compute/test_virtual_machine_extension.rb
|
@@ -805,26 +826,34 @@ files:
|
|
805
826
|
- test/requests/application_gateway/test_stop_application_gateway.rb
|
806
827
|
- test/requests/compute/test_attach_data_disk_to_vm.rb
|
807
828
|
- test/requests/compute/test_check_availability_set_exists.rb
|
829
|
+
- test/requests/compute/test_check_managed_disk_exists.rb
|
808
830
|
- test/requests/compute/test_check_vm_exists.rb
|
809
831
|
- test/requests/compute/test_check_vm_extension_exists.rb
|
810
832
|
- test/requests/compute/test_create_availability_set.rb
|
833
|
+
- test/requests/compute/test_create_or_update_managed_disk.rb
|
811
834
|
- test/requests/compute/test_create_virtual_machine.rb
|
812
835
|
- test/requests/compute/test_create_vm_extension.rb
|
813
836
|
- test/requests/compute/test_deallocate_virtual_machine.rb
|
814
837
|
- test/requests/compute/test_delete_availability_set.rb
|
838
|
+
- test/requests/compute/test_delete_managed_disk.rb
|
815
839
|
- test/requests/compute/test_delete_virtual_machine.rb
|
816
840
|
- test/requests/compute/test_detach_data_disk_from_vm.rb
|
817
841
|
- test/requests/compute/test_generalize_virtual_machine.rb
|
818
842
|
- test/requests/compute/test_get_availability_set.rb
|
843
|
+
- test/requests/compute/test_get_managed_disk.rb
|
819
844
|
- test/requests/compute/test_get_virtual_machine.rb
|
820
845
|
- test/requests/compute/test_get_vm_extension.rb
|
821
846
|
- test/requests/compute/test_get_vm_status.rb
|
847
|
+
- test/requests/compute/test_grant_access_to_managed_disk.rb
|
822
848
|
- test/requests/compute/test_list_availability_sets.rb
|
823
849
|
- test/requests/compute/test_list_available_sizes_for_virtual_machine.rb
|
850
|
+
- test/requests/compute/test_list_managed_disks_by_rg.rb
|
851
|
+
- test/requests/compute/test_list_managed_disks_in_subscription.rb
|
824
852
|
- test/requests/compute/test_list_virtual_machines.rb
|
825
853
|
- test/requests/compute/test_power_off_virtual_machine.rb
|
826
854
|
- test/requests/compute/test_redeploy_virtual_machine.rb
|
827
855
|
- test/requests/compute/test_restart_virtual_machine.rb
|
856
|
+
- test/requests/compute/test_revoke_access_to_managed_disk.rb
|
828
857
|
- test/requests/compute/test_start_virtual_machine.rb
|
829
858
|
- test/requests/compute/test_update_vm_extension.rb
|
830
859
|
- test/requests/dns/test_check_record_set_exists.rb
|