fog-azure-rm-temp 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +0 -5
  3. data/fog-azure-rm.gemspec +1 -1
  4. data/lib/fog/azurerm/compute.rb +2 -0
  5. data/lib/fog/azurerm/docs/storage.md +66 -0
  6. data/lib/fog/azurerm/models/compute/creation_data.rb +4 -2
  7. data/lib/fog/azurerm/models/compute/data_disk.rb +26 -0
  8. data/lib/fog/azurerm/models/compute/managed_disk.rb +5 -4
  9. data/lib/fog/azurerm/models/compute/server.rb +24 -3
  10. data/lib/fog/azurerm/models/storage/recovery_vault.rb +50 -0
  11. data/lib/fog/azurerm/models/storage/recovery_vaults.rb +27 -0
  12. data/lib/fog/azurerm/requests/compute/attach_data_disk_to_vm.rb +49 -13
  13. data/lib/fog/azurerm/requests/compute/detach_data_disk_from_vm.rb +1 -2
  14. data/lib/fog/azurerm/requests/storage/create_or_update_recovery_vault.rb +54 -0
  15. data/lib/fog/azurerm/requests/storage/delete_recovery_vault.rb +35 -0
  16. data/lib/fog/azurerm/requests/storage/disable_backup_protection.rb +60 -0
  17. data/lib/fog/azurerm/requests/storage/enable_backup_protection.rb +61 -0
  18. data/lib/fog/azurerm/requests/storage/get_all_backup_jobs.rb +56 -0
  19. data/lib/fog/azurerm/requests/storage/get_backup_container.rb +53 -0
  20. data/lib/fog/azurerm/requests/storage/get_backup_item.rb +58 -0
  21. data/lib/fog/azurerm/requests/storage/get_backup_job_for_vm.rb +53 -0
  22. data/lib/fog/azurerm/requests/storage/get_backup_protection_policy.rb +64 -0
  23. data/lib/fog/azurerm/requests/storage/get_recovery_vault.rb +49 -0
  24. data/lib/fog/azurerm/requests/storage/list_recovery_vaults.rb +48 -0
  25. data/lib/fog/azurerm/requests/storage/set_recovery_vault_context.rb +36 -0
  26. data/lib/fog/azurerm/requests/storage/start_backup.rb +54 -0
  27. data/lib/fog/azurerm/storage.rb +18 -1
  28. data/lib/fog/azurerm/version.rb +1 -1
  29. data/test/api_stub.rb +2 -0
  30. data/test/api_stub/models/compute/server.rb +62 -0
  31. data/test/api_stub/models/storage/recovery_vault.rb +23 -0
  32. data/test/api_stub/requests/compute/virtual_machine.rb +77 -0
  33. data/test/api_stub/requests/storage/recovery_vault.rb +189 -0
  34. data/test/models/{storage → compute}/test_data_disk.rb +2 -2
  35. data/test/models/compute/test_server.rb +27 -1
  36. data/test/models/storage/test_recovery_vault.rb +61 -0
  37. data/test/models/storage/test_recovery_vaults.rb +47 -0
  38. data/test/requests/compute/test_attach_data_disk_to_vm.rb +21 -6
  39. data/test/requests/storage/test_create_recovery_vault.rb +35 -0
  40. data/test/requests/storage/test_delete_recovery_vault.rb +34 -0
  41. data/test/requests/storage/test_disable_backup_protection.rb +52 -0
  42. data/test/requests/storage/test_enable_backup_protection.rb +66 -0
  43. data/test/requests/storage/test_get_all_backup_jobs.rb +35 -0
  44. data/test/requests/storage/test_get_backup_container.rb +35 -0
  45. data/test/requests/storage/test_get_backup_item.rb +35 -0
  46. data/test/requests/storage/test_get_backup_job_for_vm.rb +26 -0
  47. data/test/requests/storage/test_get_backup_protection_policy.rb +35 -0
  48. data/test/requests/storage/test_get_recovery_vault.rb +35 -0
  49. data/test/requests/storage/test_list_recovery_vault.rb +35 -0
  50. data/test/requests/storage/test_set_recovery_vault_context.rb +34 -0
  51. data/test/requests/storage/test_start_backup.rb +55 -0
  52. data/test/test_helper.rb +14 -0
  53. metadata +38 -13
  54. data/.arclint +0 -8
  55. data/lib/fog/azurerm/models/storage/data_disk.rb +0 -27
@@ -0,0 +1,35 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Get Backup Container request
4
+ class TestGetBackupContainer < Minitest::Test
5
+ def setup
6
+ @service = Fog::Storage::AzureRM.new(credentials)
7
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
8
+ end
9
+
10
+ def test_get_backup_container_success
11
+ response = ApiStub::Requests::Storage::RecoveryVault.get_backup_container_response
12
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
13
+ RestClient.stub :get, response do
14
+ assert_equal @service.get_backup_container('fog-test-rg', 'fog-test-vault', 'fog-test-vm'), JSON.parse(response)['value']
15
+ end
16
+ end
17
+ end
18
+
19
+ def test_get_backup_container_argument_error
20
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
21
+ assert_raises ArgumentError do
22
+ @service.get_backup_container('fog-test-rg', 'fog-test-vault')
23
+ end
24
+ end
25
+ end
26
+
27
+ def test_get_backup_container_exception
28
+ response = -> { fail Exception.new('mocked exception') }
29
+ @token_provider.stub :get_authentication_header, response do
30
+ assert_raises Exception do
31
+ @service.get_backup_container('fog-test-rg', 'fog-test-vault', 'fog-test-vm')
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Get Backup Item request
4
+ class TestGetBackupItem < Minitest::Test
5
+ def setup
6
+ @service = Fog::Storage::AzureRM.new(credentials)
7
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
8
+ end
9
+
10
+ def test_get_backup_item_success
11
+ response = ApiStub::Requests::Storage::RecoveryVault.get_backup_item_response
12
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
13
+ RestClient.stub :get, response do
14
+ assert_equal @service.get_backup_item('fog-test-rg', 'fog-test-vault'), JSON.parse(response)['value']
15
+ end
16
+ end
17
+ end
18
+
19
+ def test_get_backup_item_argument_error
20
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
21
+ assert_raises ArgumentError do
22
+ @service.get_backup_item('fog-test-rg')
23
+ end
24
+ end
25
+ end
26
+
27
+ def test_get_backup_item_exception
28
+ response = -> { fail Exception.new('mocked exception') }
29
+ @token_provider.stub :get_authentication_header, response do
30
+ assert_raises Exception do
31
+ @service.get_backup_item('fog-test-rg', 'fog-test-vault')
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,26 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Get Backup Job for VM request
4
+ class TestGetBackupJobForVM < Minitest::Test
5
+ def setup
6
+ @service = Fog::Storage::AzureRM.new(credentials)
7
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
8
+ end
9
+
10
+ def test_get_backup_job_for_vm_success
11
+ backup_jobs_response = ApiStub::Requests::Storage::RecoveryVault.get_all_backup_jobs_response
12
+ single_backup_job_response = JSON.parse(backup_jobs_response)['value'][0]
13
+ @service.stub :get_all_backup_jobs, JSON.parse(backup_jobs_response)['value'] do
14
+ assert_equal @service.get_backup_job_for_vm('fog-test-vault', 'fog-test-vault', 'fog-test-vm', 'fog-test-vm-rg', 'Backup'), single_backup_job_response
15
+ end
16
+ end
17
+
18
+ def test_get_backup_job_for_vm_argument_error
19
+ backup_jobs_response = ApiStub::Requests::Storage::RecoveryVault.get_all_backup_jobs_response
20
+ @service.stub :get_all_backup_jobs, JSON.parse(backup_jobs_response)['value'] do
21
+ assert_raises ArgumentError do
22
+ @service.get_backup_job_for_vm('fog-test-vault', 'fog-test-vault', 'fog-test-vm')
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,35 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Get Backup Protection Policy request
4
+ class TestGetBackupProtectionPolicy < Minitest::Test
5
+ def setup
6
+ @service = Fog::Storage::AzureRM.new(credentials)
7
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
8
+ end
9
+
10
+ def test_get_backup_protection_policy_success
11
+ response = ApiStub::Requests::Storage::RecoveryVault.get_backup_protection_policy_response
12
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
13
+ RestClient.stub :get, response do
14
+ assert_equal @service.get_backup_protection_policy('fog-test-rg', 'fog-test-vault'), JSON.parse(response)['value']
15
+ end
16
+ end
17
+ end
18
+
19
+ def test_get_backup_protection_policy_argument_error
20
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
21
+ assert_raises ArgumentError do
22
+ @service.get_backup_protection_policy('fog-test-rg')
23
+ end
24
+ end
25
+ end
26
+
27
+ def test_get_backup_protection_policy_exception
28
+ response = -> { fail Exception.new('mocked exception') }
29
+ @token_provider.stub :get_authentication_header, response do
30
+ assert_raises Exception do
31
+ @service.get_backup_protection_policy('fog-test-rg', 'fog-test-vault')
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Get Recovery Vault request
4
+ class TestGetRecoveryVault < Minitest::Test
5
+ def setup
6
+ @service = Fog::Storage::AzureRM.new(credentials)
7
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
8
+ end
9
+
10
+ def test_get_recovery_vault_success
11
+ response = ApiStub::Requests::Storage::RecoveryVault.get_recovery_vault_response
12
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
13
+ RestClient.stub :get, response do
14
+ assert_equal @service.get_recovery_vault('fog-test-rg', 'fog-test-vault'), JSON.parse(response)['value'][0]
15
+ end
16
+ end
17
+ end
18
+
19
+ def test_get_recovery_vault_argument_error
20
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
21
+ assert_raises ArgumentError do
22
+ @service.get_recovery_vault('fog-test-rg')
23
+ end
24
+ end
25
+ end
26
+
27
+ def test_get_recovery_vault_exception
28
+ response = -> { fail Exception.new('mocked exception') }
29
+ @token_provider.stub :get_authentication_header, response do
30
+ assert_raises Exception do
31
+ @service.get_recovery_vault('fog-test-rg', 'fog-test-vault')
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for List Recovery Vault request
4
+ class TestListRecoveryVault < Minitest::Test
5
+ def setup
6
+ @service = Fog::Storage::AzureRM.new(credentials)
7
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
8
+ end
9
+
10
+ def test_list_recovery_vault_success
11
+ response = ApiStub::Requests::Storage::RecoveryVault.get_recovery_vault_response
12
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
13
+ RestClient.stub :get, response do
14
+ assert_equal @service.list_recovery_vaults('fog-test-rg'), JSON.parse(response)['value']
15
+ end
16
+ end
17
+ end
18
+
19
+ def test_list_recovery_vault_argument_error
20
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
21
+ assert_raises ArgumentError do
22
+ @service.list_recovery_vaults
23
+ end
24
+ end
25
+ end
26
+
27
+ def test_list_recovery_vault_exception
28
+ response = -> { fail Exception.new('mocked exception') }
29
+ @token_provider.stub :get_authentication_header, response do
30
+ assert_raises Exception do
31
+ @service.list_recovery_vaults('fog-test-rg')
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,34 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Set Recovery Vault Context
4
+ class TestSetRecoveryVaultContext < Minitest::Test
5
+ def setup
6
+ @service = Fog::Storage::AzureRM.new(credentials)
7
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
8
+ end
9
+
10
+ def test_set_recovery_vault_context_success
11
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
12
+ RestClient.stub :get, true do
13
+ assert_equal @service.set_recovery_vault_context('fog-test-rg', 'fog-test-vault'), true
14
+ end
15
+ end
16
+ end
17
+
18
+ def test_set_recovery_vault_context_argument_error
19
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
20
+ assert_raises ArgumentError do
21
+ @service.set_recovery_vault_context('fog-test-rg')
22
+ end
23
+ end
24
+ end
25
+
26
+ def test_set_recovery_vault_context_exception
27
+ response = -> { fail Exception.new('mocked exception') }
28
+ @token_provider.stub :get_authentication_header, response do
29
+ assert_raises Exception do
30
+ @service.set_recovery_vault_context('fog-test-rg', 'fog-test-vault')
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,55 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ class TestStartBackup < Minitest::Test
4
+ def setup
5
+ @service = Fog::Storage::AzureRM.new(credentials)
6
+ @token_provider = Fog::Credentials::AzureRM.instance_variable_get(:@token_provider)
7
+ end
8
+
9
+ def test_start_backup_success
10
+ backup_item_response = ApiStub::Requests::Storage::RecoveryVault.get_backup_item_response
11
+ @service.stub :get_backup_job_for_vm, nil do
12
+ @service.stub :get_backup_item, JSON.parse(backup_item_response)['value'] do
13
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
14
+ RestClient.stub :post, true do
15
+ assert_equal @service.start_backup('fog-test-rg', 'fog-test-vault', 'fog-test-vm', 'fog-test-vm-rg'), true
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+
22
+ def test_start_backup_job_running
23
+ backup_job_response = ApiStub::Requests::Storage::RecoveryVault.get_backup_job_for_vm_response
24
+ @service.stub :get_backup_job_for_vm, JSON.parse(backup_job_response) do
25
+ assert_equal @service.start_backup('fog-test-rg', 'fog-test-vault', 'fog-test-vm', 'fog-test-vm-rg'), false
26
+ end
27
+ end
28
+
29
+ def test_start_backup_argument_error
30
+ backup_item_response = ApiStub::Requests::Storage::RecoveryVault.get_backup_item_response
31
+ @service.stub :get_backup_job_for_vm, nil do
32
+ @service.stub :get_backup_item, JSON.parse(backup_item_response)['value'] do
33
+ @token_provider.stub :get_authentication_header, 'Bearer <some-token>' do
34
+ assert_raises ArgumentError do
35
+ @service.start_backup('fog-test-rg', 'fog-test-vault')
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
41
+
42
+ def test_start_backup_exception
43
+ backup_item_response = ApiStub::Requests::Storage::RecoveryVault.get_backup_item_response
44
+ rest_client_response = -> { fail Exception.new('mocked exception') }
45
+ @service.stub :get_backup_job_for_vm, nil do
46
+ @service.stub :get_backup_item, JSON.parse(backup_item_response)['value'] do
47
+ @token_provider.stub :get_authentication_header, rest_client_response do
48
+ assert_raises Exception do
49
+ assert_equal @service.start_backup('fog-test-rg', 'fog-test-vault', 'fog-test-vm', 'fog-test-vm-rg'), true
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
data/test/test_helper.rb CHANGED
@@ -790,6 +790,20 @@ def sql_server_firewall_rules(service)
790
790
  )
791
791
  end
792
792
 
793
+ def recovery_vault(service)
794
+ Fog::Storage::AzureRM::RecoveryVault.new(
795
+ name: 'fog-test-vault',
796
+ id: '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.RecoveryServices/vaults/fog-test-vault',
797
+ resource_group: 'fog-test-rg',
798
+ location: 'westus',
799
+ type: 'Microsoft.RecoveryServices/vaults',
800
+ sku: {
801
+ name: 'standard'
802
+ },
803
+ service: service
804
+ )
805
+ end
806
+
793
807
  def managed_disk(service)
794
808
  Fog::Compute::AzureRM::ManagedDisk.new(
795
809
  name: 'managed-disk',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-azure-rm-temp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaffan Chaudhry
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2017-09-25 00:00:00.000000000 Z
21
+ date: 2017-09-28 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: rake
@@ -220,22 +220,16 @@ dependencies:
220
220
  name: azure-storage
221
221
  requirement: !ruby/object:Gem::Requirement
222
222
  requirements:
223
- - - '>='
223
+ - - '='
224
224
  - !ruby/object:Gem::Version
225
225
  version: 0.11.5.preview
226
- - - <
227
- - !ruby/object:Gem::Version
228
- version: '1.0'
229
226
  type: :runtime
230
227
  prerelease: false
231
228
  version_requirements: !ruby/object:Gem::Requirement
232
229
  requirements:
233
- - - '>='
230
+ - - '='
234
231
  - !ruby/object:Gem::Version
235
232
  version: 0.11.5.preview
236
- - - <
237
- - !ruby/object:Gem::Version
238
- version: '1.0'
239
233
  - !ruby/object:Gem::Dependency
240
234
  name: vhd
241
235
  requirement: !ruby/object:Gem::Requirement
@@ -259,7 +253,6 @@ extensions: []
259
253
  extra_rdoc_files:
260
254
  - README.md
261
255
  files:
262
- - .arclint
263
256
  - .codeclimate.yml
264
257
  - .gitignore
265
258
  - .hound.yml
@@ -307,6 +300,7 @@ files:
307
300
  - lib/fog/azurerm/models/compute/availability_sets.rb
308
301
  - lib/fog/azurerm/models/compute/caching_types.rb
309
302
  - lib/fog/azurerm/models/compute/creation_data.rb
303
+ - lib/fog/azurerm/models/compute/data_disk.rb
310
304
  - lib/fog/azurerm/models/compute/disk_create_option.rb
311
305
  - lib/fog/azurerm/models/compute/disk_create_option_types.rb
312
306
  - lib/fog/azurerm/models/compute/encryption_settings.rb
@@ -381,12 +375,13 @@ files:
381
375
  - lib/fog/azurerm/models/sql/sql_databases.rb
382
376
  - lib/fog/azurerm/models/sql/sql_server.rb
383
377
  - lib/fog/azurerm/models/sql/sql_servers.rb
384
- - lib/fog/azurerm/models/storage/data_disk.rb
385
378
  - lib/fog/azurerm/models/storage/directories.rb
386
379
  - lib/fog/azurerm/models/storage/directory.rb
387
380
  - lib/fog/azurerm/models/storage/file.rb
388
381
  - lib/fog/azurerm/models/storage/files.rb
389
382
  - lib/fog/azurerm/models/storage/kind.rb
383
+ - lib/fog/azurerm/models/storage/recovery_vault.rb
384
+ - lib/fog/azurerm/models/storage/recovery_vaults.rb
390
385
  - lib/fog/azurerm/models/storage/sku_name.rb
391
386
  - lib/fog/azurerm/models/storage/sku_tier.rb
392
387
  - lib/fog/azurerm/models/storage/storage_account.rb
@@ -579,12 +574,21 @@ files:
579
574
  - lib/fog/azurerm/requests/storage/create_block_blob.rb
580
575
  - lib/fog/azurerm/requests/storage/create_container.rb
581
576
  - lib/fog/azurerm/requests/storage/create_disk.rb
577
+ - lib/fog/azurerm/requests/storage/create_or_update_recovery_vault.rb
582
578
  - lib/fog/azurerm/requests/storage/create_page_blob.rb
583
579
  - lib/fog/azurerm/requests/storage/create_storage_account.rb
584
580
  - lib/fog/azurerm/requests/storage/delete_blob.rb
585
581
  - lib/fog/azurerm/requests/storage/delete_container.rb
586
582
  - lib/fog/azurerm/requests/storage/delete_disk.rb
583
+ - lib/fog/azurerm/requests/storage/delete_recovery_vault.rb
587
584
  - lib/fog/azurerm/requests/storage/delete_storage_account.rb
585
+ - lib/fog/azurerm/requests/storage/disable_backup_protection.rb
586
+ - lib/fog/azurerm/requests/storage/enable_backup_protection.rb
587
+ - lib/fog/azurerm/requests/storage/get_all_backup_jobs.rb
588
+ - lib/fog/azurerm/requests/storage/get_backup_container.rb
589
+ - lib/fog/azurerm/requests/storage/get_backup_item.rb
590
+ - lib/fog/azurerm/requests/storage/get_backup_job_for_vm.rb
591
+ - lib/fog/azurerm/requests/storage/get_backup_protection_policy.rb
588
592
  - lib/fog/azurerm/requests/storage/get_blob.rb
589
593
  - lib/fog/azurerm/requests/storage/get_blob_http_url.rb
590
594
  - lib/fog/azurerm/requests/storage/get_blob_https_url.rb
@@ -593,10 +597,12 @@ files:
593
597
  - lib/fog/azurerm/requests/storage/get_container_acl.rb
594
598
  - lib/fog/azurerm/requests/storage/get_container_properties.rb
595
599
  - lib/fog/azurerm/requests/storage/get_container_url.rb
600
+ - lib/fog/azurerm/requests/storage/get_recovery_vault.rb
596
601
  - lib/fog/azurerm/requests/storage/get_storage_access_keys.rb
597
602
  - lib/fog/azurerm/requests/storage/get_storage_account.rb
598
603
  - lib/fog/azurerm/requests/storage/list_blobs.rb
599
604
  - lib/fog/azurerm/requests/storage/list_containers.rb
605
+ - lib/fog/azurerm/requests/storage/list_recovery_vaults.rb
600
606
  - lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb
601
607
  - lib/fog/azurerm/requests/storage/list_storage_accounts.rb
602
608
  - lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb
@@ -609,6 +615,8 @@ files:
609
615
  - lib/fog/azurerm/requests/storage/release_blob_lease.rb
610
616
  - lib/fog/azurerm/requests/storage/release_container_lease.rb
611
617
  - lib/fog/azurerm/requests/storage/save_page_blob.rb
618
+ - lib/fog/azurerm/requests/storage/set_recovery_vault_context.rb
619
+ - lib/fog/azurerm/requests/storage/start_backup.rb
612
620
  - lib/fog/azurerm/requests/storage/update_storage_account.rb
613
621
  - lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb
614
622
  - lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_endpoint_exists.rb
@@ -660,6 +668,7 @@ files:
660
668
  - test/api_stub/models/sql/sql_server.rb
661
669
  - test/api_stub/models/storage/directory.rb
662
670
  - test/api_stub/models/storage/file.rb
671
+ - test/api_stub/models/storage/recovery_vault.rb
663
672
  - test/api_stub/models/storage/storageaccount.rb
664
673
  - test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
665
674
  - test/api_stub/models/traffic_manager/traffic_manager_profile.rb
@@ -693,6 +702,7 @@ files:
693
702
  - test/api_stub/requests/sql/sql_server.rb
694
703
  - test/api_stub/requests/storage/directory.rb
695
704
  - test/api_stub/requests/storage/file.rb
705
+ - test/api_stub/requests/storage/recovery_vault.rb
696
706
  - test/api_stub/requests/storage/storageaccount.rb
697
707
  - test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
698
708
  - test/api_stub/requests/traffic_manager/traffic_manager_profile.rb
@@ -733,6 +743,7 @@ files:
733
743
  - test/models/application_gateway/test_gateways.rb
734
744
  - test/models/compute/test_availability_set.rb
735
745
  - test/models/compute/test_availability_sets.rb
746
+ - test/models/compute/test_data_disk.rb
736
747
  - test/models/compute/test_managed_disk.rb
737
748
  - test/models/compute/test_managed_disks.rb
738
749
  - test/models/compute/test_server.rb
@@ -784,11 +795,12 @@ files:
784
795
  - test/models/sql/test_firewall_rules.rb
785
796
  - test/models/sql/test_sql_server.rb
786
797
  - test/models/sql/test_sql_servers.rb
787
- - test/models/storage/test_data_disk.rb
788
798
  - test/models/storage/test_directories.rb
789
799
  - test/models/storage/test_directory.rb
790
800
  - test/models/storage/test_file.rb
791
801
  - test/models/storage/test_files.rb
802
+ - test/models/storage/test_recovery_vault.rb
803
+ - test/models/storage/test_recovery_vaults.rb
792
804
  - test/models/storage/test_storage_account.rb
793
805
  - test/models/storage/test_storage_accounts.rb
794
806
  - test/models/traffic_manager/test_traffic_manager_end_point.rb
@@ -974,11 +986,20 @@ files:
974
986
  - test/requests/storage/test_create_container.rb
975
987
  - test/requests/storage/test_create_disk.rb
976
988
  - test/requests/storage/test_create_page_blob.rb
989
+ - test/requests/storage/test_create_recovery_vault.rb
977
990
  - test/requests/storage/test_create_storage_account.rb
978
991
  - test/requests/storage/test_delete_blob.rb
979
992
  - test/requests/storage/test_delete_container.rb
980
993
  - test/requests/storage/test_delete_disk.rb
994
+ - test/requests/storage/test_delete_recovery_vault.rb
981
995
  - test/requests/storage/test_delete_storage_account.rb
996
+ - test/requests/storage/test_disable_backup_protection.rb
997
+ - test/requests/storage/test_enable_backup_protection.rb
998
+ - test/requests/storage/test_get_all_backup_jobs.rb
999
+ - test/requests/storage/test_get_backup_container.rb
1000
+ - test/requests/storage/test_get_backup_item.rb
1001
+ - test/requests/storage/test_get_backup_job_for_vm.rb
1002
+ - test/requests/storage/test_get_backup_protection_policy.rb
982
1003
  - test/requests/storage/test_get_blob.rb
983
1004
  - test/requests/storage/test_get_blob_http_url.rb
984
1005
  - test/requests/storage/test_get_blob_https_url.rb
@@ -987,10 +1008,12 @@ files:
987
1008
  - test/requests/storage/test_get_container_acl.rb
988
1009
  - test/requests/storage/test_get_container_properties.rb
989
1010
  - test/requests/storage/test_get_container_url.rb
1011
+ - test/requests/storage/test_get_recovery_vault.rb
990
1012
  - test/requests/storage/test_get_storage_access_keys.rb
991
1013
  - test/requests/storage/test_get_storage_account.rb
992
1014
  - test/requests/storage/test_list_blobs.rb
993
1015
  - test/requests/storage/test_list_containers.rb
1016
+ - test/requests/storage/test_list_recovery_vault.rb
994
1017
  - test/requests/storage/test_list_storage_accounts.rb
995
1018
  - test/requests/storage/test_list_storage_accounts_for_rg.rb
996
1019
  - test/requests/storage/test_multipart_save_block_blob.rb
@@ -1003,6 +1026,8 @@ files:
1003
1026
  - test/requests/storage/test_release_blob_lease.rb
1004
1027
  - test/requests/storage/test_release_container_lease.rb
1005
1028
  - test/requests/storage/test_save_page_blob.rb
1029
+ - test/requests/storage/test_set_recovery_vault_context.rb
1030
+ - test/requests/storage/test_start_backup.rb
1006
1031
  - test/requests/storage/test_update_storage_account.rb
1007
1032
  - test/requests/storage/test_wait_blob_copy_operation_to_finish.rb
1008
1033
  - test/requests/traffic_manager/test_check_traffic_manager_endpoint_exists.rb