fog-azure-rm-temp 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/.arclint +8 -0
  3. data/.travis.yml +28 -14
  4. data/CHANGELOG.md +77 -0
  5. data/CONTRIBUTORS.md +4 -0
  6. data/fog-azure-rm.gemspec +3 -2
  7. data/lib/fog/azurerm.rb +1 -0
  8. data/lib/fog/azurerm/async_response.rb +9 -1
  9. data/lib/fog/azurerm/compute.rb +3 -1
  10. data/lib/fog/azurerm/constants.rb +11 -3
  11. data/lib/fog/azurerm/dns.rb +3 -1
  12. data/lib/fog/azurerm/docs/application_gateway.md +119 -117
  13. data/lib/fog/azurerm/docs/compute.md +299 -202
  14. data/lib/fog/azurerm/docs/dns.md +44 -43
  15. data/lib/fog/azurerm/docs/key_vault.md +31 -28
  16. data/lib/fog/azurerm/docs/network.md +407 -404
  17. data/lib/fog/azurerm/docs/resources.md +52 -49
  18. data/lib/fog/azurerm/docs/sql.md +56 -54
  19. data/lib/fog/azurerm/docs/storage.md +92 -157
  20. data/lib/fog/azurerm/docs/traffic_manager.md +55 -53
  21. data/lib/fog/azurerm/models/application_gateway/gateway.rb +5 -1
  22. data/lib/fog/azurerm/models/compute/availability_set.rb +4 -1
  23. data/lib/fog/azurerm/models/compute/managed_disk.rb +0 -1
  24. data/lib/fog/azurerm/models/compute/server.rb +61 -11
  25. data/lib/fog/azurerm/models/compute/servers.rb +2 -2
  26. data/lib/fog/azurerm/models/dns/a_record.rb +15 -0
  27. data/lib/fog/azurerm/models/dns/cname_record.rb +15 -0
  28. data/lib/fog/azurerm/models/dns/record_set.rb +20 -8
  29. data/lib/fog/azurerm/models/key_vault/vault.rb +3 -1
  30. data/lib/fog/azurerm/models/network/load_balancer.rb +3 -1
  31. data/lib/fog/azurerm/models/network/local_network_gateway.rb +3 -1
  32. data/lib/fog/azurerm/models/network/network_interface.rb +3 -1
  33. data/lib/fog/azurerm/models/network/network_security_group.rb +4 -2
  34. data/lib/fog/azurerm/models/network/public_ip.rb +4 -2
  35. data/lib/fog/azurerm/models/network/virtual_network.rb +4 -2
  36. data/lib/fog/azurerm/models/resources/resource_group.rb +3 -1
  37. data/lib/fog/azurerm/models/sql/sql_database.rb +3 -3
  38. data/lib/fog/azurerm/models/sql/sql_server.rb +3 -2
  39. data/lib/fog/azurerm/models/storage/directories.rb +6 -1
  40. data/lib/fog/azurerm/models/storage/file.rb +2 -0
  41. data/lib/fog/azurerm/models/storage/storage_account.rb +4 -1
  42. data/lib/fog/azurerm/models/storage/storage_accounts.rb +7 -0
  43. data/lib/fog/azurerm/models/traffic_manager/traffic_manager_profile.rb +3 -1
  44. data/lib/fog/azurerm/requests/application_gateway/check_ag_exists.rb +1 -1
  45. data/lib/fog/azurerm/requests/application_gateway/create_or_update_application_gateway.rb +1 -0
  46. data/lib/fog/azurerm/requests/compute/attach_data_disk_to_vm.rb +2 -2
  47. data/lib/fog/azurerm/requests/compute/check_availability_set_exists.rb +1 -1
  48. data/lib/fog/azurerm/requests/compute/check_managed_disk_exists.rb +1 -1
  49. data/lib/fog/azurerm/requests/compute/check_vm_exists.rb +1 -1
  50. data/lib/fog/azurerm/requests/compute/check_vm_extension_exists.rb +2 -2
  51. data/lib/fog/azurerm/requests/compute/create_availability_set.rb +4 -2
  52. data/lib/fog/azurerm/requests/compute/create_image.rb +68 -0
  53. data/lib/fog/azurerm/requests/compute/create_virtual_machine.rb +302 -135
  54. data/lib/fog/azurerm/requests/compute/delete_image.rb +29 -0
  55. data/lib/fog/azurerm/requests/compute/get_image.rb +45 -0
  56. data/lib/fog/azurerm/requests/compute/get_virtual_machine.rb +4 -2
  57. data/lib/fog/azurerm/requests/dns/check_record_set_exists.rb +1 -1
  58. data/lib/fog/azurerm/requests/dns/check_zone_exists.rb +3 -2
  59. data/lib/fog/azurerm/requests/dns/create_or_update_record_set.rb +3 -2
  60. data/lib/fog/azurerm/requests/dns/create_or_update_zone.rb +1 -2
  61. data/lib/fog/azurerm/requests/key_vault/check_vault_exists.rb +1 -1
  62. data/lib/fog/azurerm/requests/key_vault/create_or_update_vault.rb +1 -0
  63. data/lib/fog/azurerm/requests/network/check_express_route_cir_auth_exists.rb +1 -1
  64. data/lib/fog/azurerm/requests/network/check_express_route_circuit_exists.rb +1 -1
  65. data/lib/fog/azurerm/requests/network/check_load_balancer_exists.rb +1 -1
  66. data/lib/fog/azurerm/requests/network/check_local_net_gateway_exists.rb +1 -1
  67. data/lib/fog/azurerm/requests/network/check_net_sec_group_exists.rb +1 -1
  68. data/lib/fog/azurerm/requests/network/check_net_sec_rule_exists.rb +1 -1
  69. data/lib/fog/azurerm/requests/network/check_network_interface_exists.rb +1 -1
  70. data/lib/fog/azurerm/requests/network/check_public_ip_exists.rb +1 -1
  71. data/lib/fog/azurerm/requests/network/check_subnet_exists.rb +1 -1
  72. data/lib/fog/azurerm/requests/network/check_virtual_network_exists.rb +1 -1
  73. data/lib/fog/azurerm/requests/network/check_vnet_gateway_connection_exists.rb +1 -1
  74. data/lib/fog/azurerm/requests/network/check_vnet_gateway_exists.rb +1 -1
  75. data/lib/fog/azurerm/requests/network/create_load_balancer.rb +4 -4
  76. data/lib/fog/azurerm/requests/network/create_or_update_express_route_circuit.rb +1 -1
  77. data/lib/fog/azurerm/requests/network/create_or_update_local_network_gateway.rb +1 -2
  78. data/lib/fog/azurerm/requests/network/create_or_update_network_interface.rb +4 -3
  79. data/lib/fog/azurerm/requests/network/create_or_update_network_security_group.rb +4 -3
  80. data/lib/fog/azurerm/requests/network/create_or_update_public_ip.rb +5 -3
  81. data/lib/fog/azurerm/requests/network/create_or_update_virtual_network.rb +4 -3
  82. data/lib/fog/azurerm/requests/network/create_or_update_virtual_network_gateway_connection.rb +1 -1
  83. data/lib/fog/azurerm/requests/resources/check_azure_resource_exists.rb +4 -4
  84. data/lib/fog/azurerm/requests/resources/create_resource_group.rb +2 -1
  85. data/lib/fog/azurerm/requests/resources/delete_resource_tag.rb +4 -4
  86. data/lib/fog/azurerm/requests/resources/tag_resource.rb +4 -4
  87. data/lib/fog/azurerm/requests/sql/create_or_update_database.rb +13 -10
  88. data/lib/fog/azurerm/requests/sql/create_or_update_sql_server.rb +8 -5
  89. data/lib/fog/azurerm/requests/storage/check_storage_account_exists.rb +1 -1
  90. data/lib/fog/azurerm/requests/storage/create_storage_account.rb +4 -2
  91. data/lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_endpoint_exists.rb +1 -1
  92. data/lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_profile_exists.rb +1 -1
  93. data/lib/fog/azurerm/requests/traffic_manager/create_or_update_traffic_manager_profile.rb +13 -3
  94. data/lib/fog/azurerm/storage.rb +0 -18
  95. data/lib/fog/azurerm/utilities/general.rb +21 -10
  96. data/lib/fog/azurerm/version.rb +1 -1
  97. data/rake-script.sh +7 -1
  98. data/rakefile +1 -1
  99. data/test/api_stub.rb +19 -2
  100. data/test/api_stub/models/compute/server.rb +21 -5
  101. data/test/api_stub/requests/compute/image.rb +41 -0
  102. data/test/api_stub/requests/compute/virtual_machine.rb +60 -62
  103. data/test/api_stub/requests/resources/resource_group.rb +1 -1
  104. data/test/integration/application_gateway.rb +8 -1
  105. data/test/integration/availability_set.rb +9 -2
  106. data/test/integration/external_load_balancer.rb +2 -1
  107. data/test/integration/internal_load_balancer.rb +2 -1
  108. data/test/integration/key_vault.rb +2 -1
  109. data/test/integration/managed_disk.rb +10 -5
  110. data/test/integration/network_interface.rb +2 -1
  111. data/test/integration/network_security_group.rb +2 -1
  112. data/test/integration/public_ip.rb +2 -1
  113. data/test/integration/record_set.rb +5 -5
  114. data/test/integration/resource_group.rb +5 -2
  115. data/test/integration/resource_tag.rb +4 -2
  116. data/test/integration/server.rb +113 -23
  117. data/test/integration/server_custom_image.rb +120 -20
  118. data/test/integration/sql_server.rb +10 -2
  119. data/test/integration/storage_account.rb +32 -20
  120. data/test/integration/traffic_manager.rb +6 -1
  121. data/test/integration/virtual_network.rb +2 -1
  122. data/test/integration/virtual_network_gateway_connection.rb +3 -3
  123. data/test/models/application_gateway/test_gateway.rb +2 -1
  124. data/test/models/compute/test_availability_set.rb +2 -1
  125. data/test/models/compute/test_managed_disk.rb +2 -1
  126. data/test/models/compute/test_server.rb +13 -4
  127. data/test/models/dns/test_zone.rb +2 -1
  128. data/test/models/key_vault/test_vault.rb +2 -1
  129. data/test/models/network/test_load_balancer.rb +2 -1
  130. data/test/models/network/test_network_interface.rb +2 -1
  131. data/test/models/network/test_network_security_group.rb +2 -1
  132. data/test/models/network/test_public_ip.rb +2 -1
  133. data/test/models/network/test_virtual_network.rb +2 -1
  134. data/test/models/resources/test_resource_group.rb +2 -1
  135. data/test/models/sql/test_database.rb +2 -1
  136. data/test/models/sql/test_sql_server.rb +2 -1
  137. data/test/models/storage/test_storage_account.rb +2 -1
  138. data/test/models/traffic_manager/test_traffic_manager_profile.rb +2 -1
  139. data/test/requests/application_gateway/test_check_ag_exists.rb +11 -4
  140. data/test/requests/compute/test_attach_data_disk_to_vm.rb +2 -2
  141. data/test/requests/compute/test_check_availability_set_exists.rb +9 -2
  142. data/test/requests/compute/test_check_managed_disk_exists.rb +9 -2
  143. data/test/requests/compute/test_check_vm_exists.rb +9 -2
  144. data/test/requests/compute/test_check_vm_extension_exists.rb +9 -2
  145. data/test/requests/compute/test_create_image.rb +27 -0
  146. data/test/requests/compute/test_create_virtual_machine.rb +41 -17
  147. data/test/requests/compute/test_delete_image.rb +23 -0
  148. data/test/requests/compute/test_get_image.rb +23 -0
  149. data/test/requests/dns/test_check_record_set_exists.rb +9 -2
  150. data/test/requests/dns/test_check_zone_exists.rb +16 -2
  151. data/test/requests/key_vault/test_check_vault_exists.rb +9 -2
  152. data/test/requests/network/test_check_express_route_cir_auth_exists.rb +9 -2
  153. data/test/requests/network/test_check_express_route_circuit_exists.rb +9 -2
  154. data/test/requests/network/test_check_load_balancer_exists.rb +9 -2
  155. data/test/requests/network/test_check_local_net_gateway_exists.rb +11 -4
  156. data/test/requests/network/test_check_net_sec_group_exists.rb +9 -2
  157. data/test/requests/network/test_check_net_sec_rule_exists.rb +9 -2
  158. data/test/requests/network/test_check_network_interface_exists.rb +9 -2
  159. data/test/requests/network/test_check_public_ip_exists.rb +9 -2
  160. data/test/requests/network/test_check_subnet_exists.rb +9 -2
  161. data/test/requests/network/test_check_virtual_network_exists.rb +10 -4
  162. data/test/requests/network/test_check_vnet_gateway_connection_exists.rb +9 -2
  163. data/test/requests/network/test_check_vnet_gateway_exists.rb +9 -2
  164. data/test/requests/network/test_create_load_balancer.rb +3 -2
  165. data/test/requests/network/test_create_network_interface.rb +4 -3
  166. data/test/requests/network/test_create_or_update_network_security_group.rb +3 -2
  167. data/test/requests/network/test_create_or_update_virtual_network.rb +5 -3
  168. data/test/requests/network/test_create_public_ip.rb +3 -2
  169. data/test/requests/network/test_update_public_ip.rb +3 -2
  170. data/test/requests/resources/test_create_resource_group.rb +3 -2
  171. data/test/requests/resources/test_delete_resource_tag.rb +3 -3
  172. data/test/requests/resources/test_tag_resource.rb +3 -3
  173. data/test/requests/storage/test_check_storage_account_exists.rb +8 -1
  174. data/test/requests/traffic_manager/test_check_traffic_manager_endpoint_exists.rb +9 -2
  175. data/test/requests/traffic_manager/test_check_traffic_manager_profile_exists.rb +9 -2
  176. data/test/test_helper.rb +5 -14
  177. metadata +67 -75
  178. data/lib/fog/azurerm/models/storage/recovery_vault.rb +0 -50
  179. data/lib/fog/azurerm/models/storage/recovery_vaults.rb +0 -27
  180. data/lib/fog/azurerm/requests/storage/create_or_update_recovery_vault.rb +0 -54
  181. data/lib/fog/azurerm/requests/storage/delete_recovery_vault.rb +0 -35
  182. data/lib/fog/azurerm/requests/storage/disable_backup_protection.rb +0 -60
  183. data/lib/fog/azurerm/requests/storage/enable_backup_protection.rb +0 -61
  184. data/lib/fog/azurerm/requests/storage/get_all_backup_jobs.rb +0 -56
  185. data/lib/fog/azurerm/requests/storage/get_backup_container.rb +0 -53
  186. data/lib/fog/azurerm/requests/storage/get_backup_item.rb +0 -58
  187. data/lib/fog/azurerm/requests/storage/get_backup_job_for_vm.rb +0 -53
  188. data/lib/fog/azurerm/requests/storage/get_backup_protection_policy.rb +0 -64
  189. data/lib/fog/azurerm/requests/storage/get_recovery_vault.rb +0 -49
  190. data/lib/fog/azurerm/requests/storage/list_recovery_vaults.rb +0 -48
  191. data/lib/fog/azurerm/requests/storage/set_recovery_vault_context.rb +0 -36
  192. data/lib/fog/azurerm/requests/storage/start_backup.rb +0 -54
  193. data/test/api_stub/models/storage/recovery_vault.rb +0 -23
  194. data/test/api_stub/requests/storage/recovery_vault.rb +0 -189
  195. data/test/models/storage/test_recovery_vault.rb +0 -61
  196. data/test/models/storage/test_recovery_vaults.rb +0 -47
  197. data/test/requests/storage/test_create_recovery_vault.rb +0 -35
  198. data/test/requests/storage/test_delete_recovery_vault.rb +0 -34
  199. data/test/requests/storage/test_disable_backup_protection.rb +0 -52
  200. data/test/requests/storage/test_enable_backup_protection.rb +0 -66
  201. data/test/requests/storage/test_get_all_backup_jobs.rb +0 -35
  202. data/test/requests/storage/test_get_backup_container.rb +0 -35
  203. data/test/requests/storage/test_get_backup_item.rb +0 -35
  204. data/test/requests/storage/test_get_backup_job_for_vm.rb +0 -26
  205. data/test/requests/storage/test_get_backup_protection_policy.rb +0 -35
  206. data/test/requests/storage/test_get_recovery_vault.rb +0 -35
  207. data/test/requests/storage/test_list_recovery_vault.rb +0 -35
  208. data/test/requests/storage/test_set_recovery_vault_context.rb +0 -34
  209. data/test/requests/storage/test_start_backup.rb +0 -55
@@ -13,7 +13,7 @@ class TestTagResource < Minitest::Test
13
13
  @resources.stub :get, @resource_response do
14
14
  @resources.stub :create_or_update, @resource_response do
15
15
  resource_id = '/subscriptions/########-####-####-####-############/resourceGroups/{RESOURCE-GROUP}/providers/Microsoft.Network/{PROVIDER-NAME}/{RESOURCE-NAME}'
16
- assert_equal @service.tag_resource(resource_id, 'tag_name', 'tag_value'), true
16
+ assert_equal @service.tag_resource(resource_id, 'tag_name', 'tag_value', 'api_version'), true
17
17
  end
18
18
  end
19
19
  end
@@ -23,13 +23,13 @@ class TestTagResource < Minitest::Test
23
23
  @resources.stub :get, @resource_response do
24
24
  @resources.stub :create_or_update, response do
25
25
  resource_id = '/subscriptions/########-####-####-####-############/resourceGroups/{RESOURCE-GROUP}/providers/Microsoft.Network/{PROVIDER-NAME}/{RESOURCE-NAME}'
26
- assert_raises(RuntimeError) { @service.tag_resource(resource_id, 'tag_name', 'tag_value') }
26
+ assert_raises(RuntimeError) { @service.tag_resource(resource_id, 'tag_name', 'tag_value', 'api_version') }
27
27
  end
28
28
  end
29
29
  end
30
30
 
31
31
  def test_invalid_resource_id_exeception
32
32
  resource_id = 'Invalid-Resource-ID'
33
- assert_raises(RuntimeError) { @service.tag_resource(resource_id, 'tag_name', 'tag_value') }
33
+ assert_raises(RuntimeError) { @service.tag_resource(resource_id, 'tag_name', 'tag_value', 'api_version') }
34
34
  end
35
35
  end
@@ -25,8 +25,15 @@ class TestCheckStorageAccountExists < Minitest::Test
25
25
  end
26
26
  end
27
27
 
28
+ def test_check_storage_account_resource_group_exists_failure
29
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
30
+ @storage_accounts.stub :get_properties, response do
31
+ assert !@service.check_storage_account_exists('fog_test_rg', 'fogtestsasecond')
32
+ end
33
+ end
34
+
28
35
  def test_check_storage_account_exists_exception
29
- response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
36
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'error' => { 'message' => 'mocked exception', 'code' => 'Exception' }) }
30
37
  @storage_accounts.stub :get_properties, response do
31
38
  assert_raises(RuntimeError) { @service.check_storage_account_exists('fog_test_rg', 'fogtestsasecond') }
32
39
  end
@@ -16,14 +16,21 @@ class TestCheckTrafficManagerEndpointExists < Minitest::Test
16
16
  end
17
17
 
18
18
  def test_check_traffic_manager_endpoint_exists_failure
19
- response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'code' => 'NotFound' ) }
19
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'code' => 'NotFound') }
20
+ @end_points.stub :get, response do
21
+ assert !@service.check_traffic_manager_endpoint_exists('fog-test-rg', 'fog-test-profile', 'fog-test-endpoint-name', 'fog-test-endpoint-type')
22
+ end
23
+ end
24
+
25
+ def test_check_traffic_manager_endpoint_resource_group_exists_failure
26
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
20
27
  @end_points.stub :get, response do
21
28
  assert !@service.check_traffic_manager_endpoint_exists('fog-test-rg', 'fog-test-profile', 'fog-test-endpoint-name', 'fog-test-endpoint-type')
22
29
  end
23
30
  end
24
31
 
25
32
  def test_check_traffic_manager_endpoint_exists_exception
26
- response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
33
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'error' => { 'message' => 'mocked exception', 'code' => 'Exception' }) }
27
34
  @end_points.stub :get, response do
28
35
  assert_raises(RuntimeError) { @service.check_traffic_manager_endpoint_exists('fog-test-rg', 'fog-test-profile', 'fog-test-endpoint-name', 'fog-test-endpoint-type') }
29
36
  end
@@ -16,14 +16,21 @@ class TestCheckTrafficManagerProfileExists < Minitest::Test
16
16
  end
17
17
 
18
18
  def test_check_traffic_manager_profile_exists_failure
19
- response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceNotFound' }) }
19
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceNotFound' }) }
20
+ @profiles.stub :get, response do
21
+ assert !@service.check_traffic_manager_profile_exists('fog-test-rg', 'fog-test-profile')
22
+ end
23
+ end
24
+
25
+ def test_check_traffic_manager_profile_resource_group_exists_failure
26
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
20
27
  @profiles.stub :get, response do
21
28
  assert !@service.check_traffic_manager_profile_exists('fog-test-rg', 'fog-test-profile')
22
29
  end
23
30
  end
24
31
 
25
32
  def test_check_traffic_manager_profile_exists_exception
26
- response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
33
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, create_mock_response, 'error' => { 'message' => 'mocked exception', 'code' => 'Exception' }) }
27
34
  @profiles.stub :get, response do
28
35
  assert_raises(RuntimeError) { @service.check_traffic_manager_profile_exists('fog-test-rg', 'fog-test-profile') }
29
36
  end
@@ -790,20 +790,6 @@ 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
-
807
793
  def managed_disk(service)
808
794
  Fog::Compute::AzureRM::ManagedDisk.new(
809
795
  name: 'managed-disk',
@@ -838,3 +824,8 @@ def key_vault(service)
838
824
  service: service
839
825
  )
840
826
  end
827
+
828
+ def create_mock_response
829
+ response_headers = { 'status' => HTTP_NOT_FOUND }
830
+ Faraday::Response.new(response_headers)
831
+ end
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaffan Chaudhry
@@ -18,202 +18,202 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2017-09-28 00:00:00.000000000 Z
21
+ date: 2018-01-16 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: rake
25
25
  requirement: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '10.0'
30
30
  type: :development
31
31
  prerelease: false
32
32
  version_requirements: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ~>
34
+ - - "~>"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '10.0'
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: minitest
39
39
  requirement: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ~>
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: 5.8.4
44
44
  type: :development
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ~>
48
+ - - "~>"
49
49
  - !ruby/object:Gem::Version
50
50
  version: 5.8.4
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: simplecov
53
53
  requirement: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - '>='
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  type: :development
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - '>='
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: codeclimate-test-reporter
67
67
  requirement: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ~>
69
+ - - "~>"
70
70
  - !ruby/object:Gem::Version
71
71
  version: 1.0.0
72
72
  type: :development
73
73
  prerelease: false
74
74
  version_requirements: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - ~>
76
+ - - "~>"
77
77
  - !ruby/object:Gem::Version
78
78
  version: 1.0.0
79
79
  - !ruby/object:Gem::Dependency
80
80
  name: fog-core
81
81
  requirement: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ~>
83
+ - - "~>"
84
84
  - !ruby/object:Gem::Version
85
- version: 1.43.0
85
+ version: '1.43'
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - ~>
90
+ - - "~>"
91
91
  - !ruby/object:Gem::Version
92
- version: 1.43.0
92
+ version: '1.43'
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: fog-json
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ~>
97
+ - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: '1.0'
99
+ version: 1.0.2
100
100
  type: :runtime
101
101
  prerelease: false
102
102
  version_requirements: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ~>
104
+ - - "~>"
105
105
  - !ruby/object:Gem::Version
106
- version: '1.0'
106
+ version: 1.0.2
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: azure_mgmt_compute
109
109
  requirement: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ~>
111
+ - - "~>"
112
112
  - !ruby/object:Gem::Version
113
113
  version: 0.9.0
114
114
  type: :runtime
115
115
  prerelease: false
116
116
  version_requirements: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - ~>
118
+ - - "~>"
119
119
  - !ruby/object:Gem::Version
120
120
  version: 0.9.0
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: azure_mgmt_resources
123
123
  requirement: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - ~>
125
+ - - "~>"
126
126
  - !ruby/object:Gem::Version
127
127
  version: 0.9.0
128
128
  type: :runtime
129
129
  prerelease: false
130
130
  version_requirements: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - ~>
132
+ - - "~>"
133
133
  - !ruby/object:Gem::Version
134
134
  version: 0.9.0
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: azure_mgmt_storage
137
137
  requirement: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - ~>
139
+ - - "~>"
140
140
  - !ruby/object:Gem::Version
141
141
  version: 0.9.0
142
142
  type: :runtime
143
143
  prerelease: false
144
144
  version_requirements: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ~>
146
+ - - "~>"
147
147
  - !ruby/object:Gem::Version
148
148
  version: 0.9.0
149
149
  - !ruby/object:Gem::Dependency
150
150
  name: azure_mgmt_network
151
151
  requirement: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - ~>
153
+ - - "~>"
154
154
  - !ruby/object:Gem::Version
155
155
  version: 0.9.0
156
156
  type: :runtime
157
157
  prerelease: false
158
158
  version_requirements: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - ~>
160
+ - - "~>"
161
161
  - !ruby/object:Gem::Version
162
162
  version: 0.9.0
163
163
  - !ruby/object:Gem::Dependency
164
164
  name: azure_mgmt_dns
165
165
  requirement: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ~>
167
+ - - "~>"
168
168
  - !ruby/object:Gem::Version
169
169
  version: 0.9.0
170
170
  type: :runtime
171
171
  prerelease: false
172
172
  version_requirements: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - ~>
174
+ - - "~>"
175
175
  - !ruby/object:Gem::Version
176
176
  version: 0.9.0
177
177
  - !ruby/object:Gem::Dependency
178
178
  name: azure_mgmt_traffic_manager
179
179
  requirement: !ruby/object:Gem::Requirement
180
180
  requirements:
181
- - - ~>
181
+ - - "~>"
182
182
  - !ruby/object:Gem::Version
183
183
  version: 0.9.0
184
184
  type: :runtime
185
185
  prerelease: false
186
186
  version_requirements: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - ~>
188
+ - - "~>"
189
189
  - !ruby/object:Gem::Version
190
190
  version: 0.9.0
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: azure_mgmt_sql
193
193
  requirement: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - ~>
195
+ - - "~>"
196
196
  - !ruby/object:Gem::Version
197
197
  version: 0.9.0
198
198
  type: :runtime
199
199
  prerelease: false
200
200
  version_requirements: !ruby/object:Gem::Requirement
201
201
  requirements:
202
- - - ~>
202
+ - - "~>"
203
203
  - !ruby/object:Gem::Version
204
204
  version: 0.9.0
205
205
  - !ruby/object:Gem::Dependency
206
206
  name: azure_mgmt_key_vault
207
207
  requirement: !ruby/object:Gem::Requirement
208
208
  requirements:
209
- - - ~>
209
+ - - "~>"
210
210
  - !ruby/object:Gem::Version
211
211
  version: 0.9.0
212
212
  type: :runtime
213
213
  prerelease: false
214
214
  version_requirements: !ruby/object:Gem::Requirement
215
215
  requirements:
216
- - - ~>
216
+ - - "~>"
217
217
  - !ruby/object:Gem::Version
218
218
  version: 0.9.0
219
219
  - !ruby/object:Gem::Dependency
@@ -244,6 +244,20 @@ dependencies:
244
244
  - - '='
245
245
  - !ruby/object:Gem::Version
246
246
  version: 0.0.4
247
+ - !ruby/object:Gem::Dependency
248
+ name: mime-types
249
+ requirement: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - "~>"
252
+ - !ruby/object:Gem::Version
253
+ version: '1.25'
254
+ type: :runtime
255
+ prerelease: false
256
+ version_requirements: !ruby/object:Gem::Requirement
257
+ requirements:
258
+ - - "~>"
259
+ - !ruby/object:Gem::Version
260
+ version: '1.25'
247
261
  description: |-
248
262
  This library can be used as a module for 'fog' or as standalone provider
249
263
  to use the Azure Resource Manager cloud services in applications..
@@ -253,11 +267,12 @@ extensions: []
253
267
  extra_rdoc_files:
254
268
  - README.md
255
269
  files:
256
- - .codeclimate.yml
257
- - .gitignore
258
- - .hound.yml
259
- - .rubocop.yml
260
- - .travis.yml
270
+ - ".arclint"
271
+ - ".codeclimate.yml"
272
+ - ".gitignore"
273
+ - ".hound.yml"
274
+ - ".rubocop.yml"
275
+ - ".travis.yml"
261
276
  - CHANGELOG.md
262
277
  - CONTRIBUTING.md
263
278
  - CONTRIBUTORS.md
@@ -312,6 +327,8 @@ files:
312
327
  - lib/fog/azurerm/models/compute/servers.rb
313
328
  - lib/fog/azurerm/models/compute/virtual_machine_extension.rb
314
329
  - lib/fog/azurerm/models/compute/virtual_machine_extensions.rb
330
+ - lib/fog/azurerm/models/dns/a_record.rb
331
+ - lib/fog/azurerm/models/dns/cname_record.rb
315
332
  - lib/fog/azurerm/models/dns/record_set.rb
316
333
  - lib/fog/azurerm/models/dns/record_sets.rb
317
334
  - lib/fog/azurerm/models/dns/zone.rb
@@ -380,8 +397,6 @@ files:
380
397
  - lib/fog/azurerm/models/storage/file.rb
381
398
  - lib/fog/azurerm/models/storage/files.rb
382
399
  - 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
385
400
  - lib/fog/azurerm/models/storage/sku_name.rb
386
401
  - lib/fog/azurerm/models/storage/sku_tier.rb
387
402
  - lib/fog/azurerm/models/storage/storage_account.rb
@@ -407,17 +422,20 @@ files:
407
422
  - lib/fog/azurerm/requests/compute/check_vm_extension_exists.rb
408
423
  - lib/fog/azurerm/requests/compute/check_vm_status.rb
409
424
  - lib/fog/azurerm/requests/compute/create_availability_set.rb
425
+ - lib/fog/azurerm/requests/compute/create_image.rb
410
426
  - lib/fog/azurerm/requests/compute/create_or_update_managed_disk.rb
411
427
  - lib/fog/azurerm/requests/compute/create_or_update_vm_extension.rb
412
428
  - lib/fog/azurerm/requests/compute/create_virtual_machine.rb
413
429
  - lib/fog/azurerm/requests/compute/deallocate_virtual_machine.rb
414
430
  - lib/fog/azurerm/requests/compute/delete_availability_set.rb
431
+ - lib/fog/azurerm/requests/compute/delete_image.rb
415
432
  - lib/fog/azurerm/requests/compute/delete_managed_disk.rb
416
433
  - lib/fog/azurerm/requests/compute/delete_virtual_machine.rb
417
434
  - lib/fog/azurerm/requests/compute/delete_vm_extension.rb
418
435
  - lib/fog/azurerm/requests/compute/detach_data_disk_from_vm.rb
419
436
  - lib/fog/azurerm/requests/compute/generalize_virtual_machine.rb
420
437
  - lib/fog/azurerm/requests/compute/get_availability_set.rb
438
+ - lib/fog/azurerm/requests/compute/get_image.rb
421
439
  - lib/fog/azurerm/requests/compute/get_managed_disk.rb
422
440
  - lib/fog/azurerm/requests/compute/get_virtual_machine.rb
423
441
  - lib/fog/azurerm/requests/compute/get_vm_extension.rb
@@ -574,21 +592,12 @@ files:
574
592
  - lib/fog/azurerm/requests/storage/create_block_blob.rb
575
593
  - lib/fog/azurerm/requests/storage/create_container.rb
576
594
  - lib/fog/azurerm/requests/storage/create_disk.rb
577
- - lib/fog/azurerm/requests/storage/create_or_update_recovery_vault.rb
578
595
  - lib/fog/azurerm/requests/storage/create_page_blob.rb
579
596
  - lib/fog/azurerm/requests/storage/create_storage_account.rb
580
597
  - lib/fog/azurerm/requests/storage/delete_blob.rb
581
598
  - lib/fog/azurerm/requests/storage/delete_container.rb
582
599
  - lib/fog/azurerm/requests/storage/delete_disk.rb
583
- - lib/fog/azurerm/requests/storage/delete_recovery_vault.rb
584
600
  - 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
592
601
  - lib/fog/azurerm/requests/storage/get_blob.rb
593
602
  - lib/fog/azurerm/requests/storage/get_blob_http_url.rb
594
603
  - lib/fog/azurerm/requests/storage/get_blob_https_url.rb
@@ -597,12 +606,10 @@ files:
597
606
  - lib/fog/azurerm/requests/storage/get_container_acl.rb
598
607
  - lib/fog/azurerm/requests/storage/get_container_properties.rb
599
608
  - lib/fog/azurerm/requests/storage/get_container_url.rb
600
- - lib/fog/azurerm/requests/storage/get_recovery_vault.rb
601
609
  - lib/fog/azurerm/requests/storage/get_storage_access_keys.rb
602
610
  - lib/fog/azurerm/requests/storage/get_storage_account.rb
603
611
  - lib/fog/azurerm/requests/storage/list_blobs.rb
604
612
  - lib/fog/azurerm/requests/storage/list_containers.rb
605
- - lib/fog/azurerm/requests/storage/list_recovery_vaults.rb
606
613
  - lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb
607
614
  - lib/fog/azurerm/requests/storage/list_storage_accounts.rb
608
615
  - lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb
@@ -615,8 +622,6 @@ files:
615
622
  - lib/fog/azurerm/requests/storage/release_blob_lease.rb
616
623
  - lib/fog/azurerm/requests/storage/release_container_lease.rb
617
624
  - 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
620
625
  - lib/fog/azurerm/requests/storage/update_storage_account.rb
621
626
  - lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb
622
627
  - lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_endpoint_exists.rb
@@ -668,12 +673,12 @@ files:
668
673
  - test/api_stub/models/sql/sql_server.rb
669
674
  - test/api_stub/models/storage/directory.rb
670
675
  - test/api_stub/models/storage/file.rb
671
- - test/api_stub/models/storage/recovery_vault.rb
672
676
  - test/api_stub/models/storage/storageaccount.rb
673
677
  - test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
674
678
  - test/api_stub/models/traffic_manager/traffic_manager_profile.rb
675
679
  - test/api_stub/requests/application_gateway/gateway.rb
676
680
  - test/api_stub/requests/compute/availability_set.rb
681
+ - test/api_stub/requests/compute/image.rb
677
682
  - test/api_stub/requests/compute/managed_disk.rb
678
683
  - test/api_stub/requests/compute/virtual_machine.rb
679
684
  - test/api_stub/requests/compute/virtual_machine_extension.rb
@@ -702,7 +707,6 @@ files:
702
707
  - test/api_stub/requests/sql/sql_server.rb
703
708
  - test/api_stub/requests/storage/directory.rb
704
709
  - test/api_stub/requests/storage/file.rb
705
- - test/api_stub/requests/storage/recovery_vault.rb
706
710
  - test/api_stub/requests/storage/storageaccount.rb
707
711
  - test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
708
712
  - test/api_stub/requests/traffic_manager/traffic_manager_profile.rb
@@ -799,8 +803,6 @@ files:
799
803
  - test/models/storage/test_directory.rb
800
804
  - test/models/storage/test_file.rb
801
805
  - test/models/storage/test_files.rb
802
- - test/models/storage/test_recovery_vault.rb
803
- - test/models/storage/test_recovery_vaults.rb
804
806
  - test/models/storage/test_storage_account.rb
805
807
  - test/models/storage/test_storage_accounts.rb
806
808
  - test/models/traffic_manager/test_traffic_manager_end_point.rb
@@ -820,16 +822,19 @@ files:
820
822
  - test/requests/compute/test_check_vm_exists.rb
821
823
  - test/requests/compute/test_check_vm_extension_exists.rb
822
824
  - test/requests/compute/test_create_availability_set.rb
825
+ - test/requests/compute/test_create_image.rb
823
826
  - test/requests/compute/test_create_or_update_managed_disk.rb
824
827
  - test/requests/compute/test_create_virtual_machine.rb
825
828
  - test/requests/compute/test_create_vm_extension.rb
826
829
  - test/requests/compute/test_deallocate_virtual_machine.rb
827
830
  - test/requests/compute/test_delete_availability_set.rb
831
+ - test/requests/compute/test_delete_image.rb
828
832
  - test/requests/compute/test_delete_managed_disk.rb
829
833
  - test/requests/compute/test_delete_virtual_machine.rb
830
834
  - test/requests/compute/test_detach_data_disk_from_vm.rb
831
835
  - test/requests/compute/test_generalize_virtual_machine.rb
832
836
  - test/requests/compute/test_get_availability_set.rb
837
+ - test/requests/compute/test_get_image.rb
833
838
  - test/requests/compute/test_get_managed_disk.rb
834
839
  - test/requests/compute/test_get_virtual_machine.rb
835
840
  - test/requests/compute/test_get_vm_extension.rb
@@ -986,20 +991,11 @@ files:
986
991
  - test/requests/storage/test_create_container.rb
987
992
  - test/requests/storage/test_create_disk.rb
988
993
  - test/requests/storage/test_create_page_blob.rb
989
- - test/requests/storage/test_create_recovery_vault.rb
990
994
  - test/requests/storage/test_create_storage_account.rb
991
995
  - test/requests/storage/test_delete_blob.rb
992
996
  - test/requests/storage/test_delete_container.rb
993
997
  - test/requests/storage/test_delete_disk.rb
994
- - test/requests/storage/test_delete_recovery_vault.rb
995
998
  - 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
1003
999
  - test/requests/storage/test_get_blob.rb
1004
1000
  - test/requests/storage/test_get_blob_http_url.rb
1005
1001
  - test/requests/storage/test_get_blob_https_url.rb
@@ -1008,12 +1004,10 @@ files:
1008
1004
  - test/requests/storage/test_get_container_acl.rb
1009
1005
  - test/requests/storage/test_get_container_properties.rb
1010
1006
  - test/requests/storage/test_get_container_url.rb
1011
- - test/requests/storage/test_get_recovery_vault.rb
1012
1007
  - test/requests/storage/test_get_storage_access_keys.rb
1013
1008
  - test/requests/storage/test_get_storage_account.rb
1014
1009
  - test/requests/storage/test_list_blobs.rb
1015
1010
  - test/requests/storage/test_list_containers.rb
1016
- - test/requests/storage/test_list_recovery_vault.rb
1017
1011
  - test/requests/storage/test_list_storage_accounts.rb
1018
1012
  - test/requests/storage/test_list_storage_accounts_for_rg.rb
1019
1013
  - test/requests/storage/test_multipart_save_block_blob.rb
@@ -1026,8 +1020,6 @@ files:
1026
1020
  - test/requests/storage/test_release_blob_lease.rb
1027
1021
  - test/requests/storage/test_release_container_lease.rb
1028
1022
  - 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
1031
1023
  - test/requests/storage/test_update_storage_account.rb
1032
1024
  - test/requests/storage/test_wait_blob_copy_operation_to_finish.rb
1033
1025
  - test/requests/traffic_manager/test_check_traffic_manager_endpoint_exists.rb
@@ -1050,22 +1042,22 @@ licenses:
1050
1042
  metadata: {}
1051
1043
  post_install_message: Thanks for installing!
1052
1044
  rdoc_options:
1053
- - --charset=UTF-8
1045
+ - "--charset=UTF-8"
1054
1046
  require_paths:
1055
1047
  - lib
1056
1048
  required_ruby_version: !ruby/object:Gem::Requirement
1057
1049
  requirements:
1058
- - - '>='
1050
+ - - ">="
1059
1051
  - !ruby/object:Gem::Version
1060
1052
  version: 2.0.0
1061
1053
  required_rubygems_version: !ruby/object:Gem::Requirement
1062
1054
  requirements:
1063
- - - '>='
1055
+ - - ">="
1064
1056
  - !ruby/object:Gem::Version
1065
1057
  version: '0'
1066
1058
  requirements: []
1067
1059
  rubyforge_project:
1068
- rubygems_version: 2.4.8
1060
+ rubygems_version: 2.5.1
1069
1061
  signing_key:
1070
1062
  specification_version: 4
1071
1063
  summary: Module for the 'fog' gem to support Azure Resource Manager cloud services.