fog-azure-rm 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +2 -1
- data/fog-azure-rm.gemspec +11 -9
- data/lib/fog/azurerm.rb +1 -0
- data/lib/fog/azurerm/compute.rb +3 -3
- data/lib/fog/azurerm/config.rb +33 -0
- data/lib/fog/azurerm/credentials.rb +1 -1
- data/lib/fog/azurerm/dns.rb +2 -2
- data/lib/fog/azurerm/docs/storage.md +120 -66
- data/lib/fog/azurerm/models/application_gateway/gateway.rb +30 -31
- data/lib/fog/azurerm/models/application_gateway/gateways.rb +4 -4
- data/lib/fog/azurerm/models/compute/availability_sets.rb +4 -4
- data/lib/fog/azurerm/models/compute/server.rb +14 -14
- data/lib/fog/azurerm/models/compute/servers.rb +4 -4
- data/lib/fog/azurerm/models/compute/virtual_machine_extension.rb +3 -5
- data/lib/fog/azurerm/models/compute/virtual_machine_extensions.rb +5 -5
- data/lib/fog/azurerm/models/dns/record_sets.rb +4 -4
- data/lib/fog/azurerm/models/dns/zones.rb +4 -4
- data/lib/fog/azurerm/models/network/express_route_circuit.rb +2 -5
- data/lib/fog/azurerm/models/network/express_route_circuit_authorization.rb +1 -1
- data/lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb +4 -4
- data/lib/fog/azurerm/models/network/express_route_circuit_peering.rb +3 -5
- data/lib/fog/azurerm/models/network/express_route_circuit_peerings.rb +4 -4
- data/lib/fog/azurerm/models/network/express_route_circuits.rb +4 -4
- data/lib/fog/azurerm/models/network/express_route_service_providers.rb +2 -2
- data/lib/fog/azurerm/models/network/load_balancers.rb +5 -5
- data/lib/fog/azurerm/models/network/local_network_gateway.rb +1 -1
- data/lib/fog/azurerm/models/network/local_network_gateways.rb +4 -4
- data/lib/fog/azurerm/models/network/network_interfaces.rb +5 -5
- data/lib/fog/azurerm/models/network/network_security_groups.rb +5 -5
- data/lib/fog/azurerm/models/network/network_security_rule.rb +3 -4
- data/lib/fog/azurerm/models/network/network_security_rules.rb +4 -4
- data/lib/fog/azurerm/models/network/public_ips.rb +4 -4
- data/lib/fog/azurerm/models/network/subnets.rb +4 -4
- data/lib/fog/azurerm/models/network/virtual_network_gateway.rb +6 -7
- data/lib/fog/azurerm/models/network/virtual_network_gateway_connection.rb +5 -5
- data/lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb +4 -4
- data/lib/fog/azurerm/models/network/virtual_network_gateways.rb +4 -4
- data/lib/fog/azurerm/models/network/virtual_networks.rb +4 -4
- data/lib/fog/azurerm/models/resources/azure_resources.rb +2 -2
- data/lib/fog/azurerm/models/resources/deployments.rb +4 -4
- data/lib/fog/azurerm/models/resources/resource_groups.rb +4 -4
- data/lib/fog/azurerm/models/sql/firewall_rule.rb +1 -1
- data/lib/fog/azurerm/models/sql/firewall_rules.rb +4 -4
- data/lib/fog/azurerm/models/sql/sql_database.rb +28 -24
- data/lib/fog/azurerm/models/sql/sql_databases.rb +5 -6
- data/lib/fog/azurerm/models/sql/sql_servers.rb +4 -4
- data/lib/fog/azurerm/models/storage/directories.rb +49 -24
- data/lib/fog/azurerm/models/storage/directory.rb +126 -40
- data/lib/fog/azurerm/models/storage/file.rb +226 -114
- data/lib/fog/azurerm/models/storage/files.rb +168 -13
- data/lib/fog/azurerm/models/storage/recovery_vault.rb +1 -1
- data/lib/fog/azurerm/models/storage/recovery_vaults.rb +4 -4
- data/lib/fog/azurerm/models/storage/storage_account.rb +5 -5
- data/lib/fog/azurerm/models/storage/storage_accounts.rb +4 -4
- data/lib/fog/azurerm/models/traffic_manager/traffic_manager_end_point.rb +1 -1
- data/lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb +4 -4
- data/lib/fog/azurerm/models/traffic_manager/traffic_manager_profile.rb +4 -4
- data/lib/fog/azurerm/models/traffic_manager/traffic_manager_profiles.rb +4 -4
- data/lib/fog/azurerm/network.rb +1 -1
- data/lib/fog/azurerm/requests/compute/create_virtual_machine.rb +17 -13
- data/lib/fog/azurerm/requests/network/list_virtual_networks.rb +1 -1
- data/lib/fog/azurerm/requests/resources/create_deployment.rb +1 -1
- data/lib/fog/azurerm/requests/resources/create_resource_group.rb +1 -1
- data/lib/fog/azurerm/requests/resources/delete_deployment.rb +1 -1
- data/lib/fog/azurerm/requests/resources/delete_resource_group.rb +1 -1
- data/lib/fog/azurerm/requests/resources/get_deployment.rb +1 -1
- data/lib/fog/azurerm/requests/resources/get_resource_group.rb +1 -1
- data/lib/fog/azurerm/requests/resources/list_deployments.rb +1 -1
- data/lib/fog/azurerm/requests/resources/list_resource_groups.rb +1 -1
- data/lib/fog/azurerm/requests/resources/list_tagged_resources.rb +1 -1
- data/lib/fog/azurerm/requests/resources/tag_resource.rb +1 -1
- data/lib/fog/azurerm/requests/sql/create_or_update_database.rb +3 -3
- data/lib/fog/azurerm/requests/sql/create_or_update_firewall_rule.rb +3 -3
- data/lib/fog/azurerm/requests/sql/create_or_update_sql_server.rb +3 -3
- data/lib/fog/azurerm/requests/sql/delete_database.rb +2 -2
- data/lib/fog/azurerm/requests/sql/delete_firewall_rule.rb +4 -4
- data/lib/fog/azurerm/requests/sql/delete_sql_server.rb +4 -4
- data/lib/fog/azurerm/requests/sql/get_database.rb +3 -3
- data/lib/fog/azurerm/requests/sql/get_firewall_rule.rb +3 -3
- data/lib/fog/azurerm/requests/sql/get_sql_server.rb +3 -3
- data/lib/fog/azurerm/requests/sql/list_databases.rb +3 -3
- data/lib/fog/azurerm/requests/sql/list_firewall_rules.rb +3 -3
- data/lib/fog/azurerm/requests/sql/list_sql_servers.rb +3 -3
- data/lib/fog/azurerm/requests/storage/acquire_blob_lease.rb +5 -2
- data/lib/fog/azurerm/requests/storage/acquire_container_lease.rb +5 -2
- data/lib/fog/azurerm/requests/storage/commit_blob_blocks.rb +30 -0
- data/lib/fog/azurerm/requests/storage/compare_container_blobs.rb +148 -0
- data/lib/fog/azurerm/requests/storage/copy_blob.rb +8 -8
- data/lib/fog/azurerm/requests/storage/copy_blob_from_uri.rb +8 -8
- data/lib/fog/azurerm/requests/storage/create_block_blob.rb +108 -0
- data/lib/fog/azurerm/requests/storage/create_container.rb +12 -10
- data/lib/fog/azurerm/requests/storage/create_disk.rb +45 -19
- data/lib/fog/azurerm/requests/storage/create_or_update_recovery_vault.rb +2 -2
- data/lib/fog/azurerm/requests/storage/create_page_blob.rb +31 -0
- data/lib/fog/azurerm/requests/storage/create_storage_account.rb +2 -2
- data/lib/fog/azurerm/requests/storage/delete_blob.rb +10 -5
- data/lib/fog/azurerm/requests/storage/delete_container.rb +6 -2
- data/lib/fog/azurerm/requests/storage/delete_disk.rb +19 -16
- data/lib/fog/azurerm/requests/storage/get_all_backup_jobs.rb +2 -2
- data/lib/fog/azurerm/requests/storage/get_backup_container.rb +2 -2
- data/lib/fog/azurerm/requests/storage/get_backup_item.rb +2 -2
- data/lib/fog/azurerm/requests/storage/get_backup_job_for_vm.rb +1 -1
- data/lib/fog/azurerm/requests/storage/get_backup_protection_policy.rb +2 -2
- data/lib/fog/azurerm/requests/storage/get_blob.rb +163 -0
- data/lib/fog/azurerm/requests/storage/get_blob_http_url.rb +39 -0
- data/lib/fog/azurerm/requests/storage/get_blob_https_url.rb +39 -0
- data/lib/fog/azurerm/requests/storage/get_blob_properties.rb +37 -35
- data/lib/fog/azurerm/requests/storage/get_blob_url.rb +28 -0
- data/lib/fog/azurerm/requests/storage/get_container_acl.rb +30 -0
- data/lib/fog/azurerm/requests/storage/get_container_properties.rb +16 -12
- data/lib/fog/azurerm/requests/storage/get_container_url.rb +34 -0
- data/lib/fog/azurerm/requests/storage/get_recovery_vault.rb +2 -2
- data/lib/fog/azurerm/requests/storage/get_storage_access_keys.rb +4 -3
- data/lib/fog/azurerm/requests/storage/get_storage_account.rb +2 -2
- data/lib/fog/azurerm/requests/storage/list_blobs.rb +110 -24
- data/lib/fog/azurerm/requests/storage/list_containers.rb +46 -23
- data/lib/fog/azurerm/requests/storage/list_recovery_vaults.rb +2 -2
- data/lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb +2 -2
- data/lib/fog/azurerm/requests/storage/list_storage_accounts.rb +2 -2
- data/lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb +110 -0
- data/lib/fog/azurerm/requests/storage/put_blob_block.rb +30 -0
- data/lib/fog/azurerm/requests/storage/{set_blob_metadata.rb → put_blob_metadata.rb} +7 -3
- data/lib/fog/azurerm/requests/storage/put_blob_pages.rb +30 -0
- data/lib/fog/azurerm/requests/storage/put_blob_properties.rb +31 -0
- data/lib/fog/azurerm/requests/storage/put_container_acl.rb +31 -0
- data/lib/fog/azurerm/requests/storage/{set_container_metadata.rb → put_container_metadata.rb} +7 -3
- data/lib/fog/azurerm/requests/storage/release_blob_lease.rb +4 -1
- data/lib/fog/azurerm/requests/storage/release_container_lease.rb +4 -1
- data/lib/fog/azurerm/requests/storage/save_page_blob.rb +111 -0
- data/lib/fog/azurerm/requests/storage/start_backup.rb +1 -1
- data/lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb +56 -0
- data/lib/fog/azurerm/resources.rb +2 -2
- data/lib/fog/azurerm/storage.rb +33 -19
- data/lib/fog/azurerm/traffic_manager.rb +1 -1
- data/lib/fog/azurerm/utilities/general.rb +70 -3
- data/lib/fog/azurerm/version.rb +1 -1
- data/rake-script.sh +5 -2
- data/test/api_stub/models/application_gateway/gateway.rb +1 -1
- data/test/api_stub/models/compute/server.rb +1 -1
- data/test/api_stub/models/dns/record_set.rb +2 -2
- data/test/api_stub/models/dns/zone.rb +1 -1
- data/test/api_stub/models/network/express_route_circuit.rb +1 -1
- data/test/api_stub/models/network/express_route_circuit_authorization.rb +1 -1
- data/test/api_stub/models/network/express_route_circuit_peering.rb +1 -1
- data/test/api_stub/models/network/express_route_service_provider.rb +1 -1
- data/test/api_stub/models/network/load_balancer.rb +1 -1
- data/test/api_stub/models/network/network_interface.rb +1 -1
- data/test/api_stub/models/network/network_security_group.rb +1 -1
- data/test/api_stub/models/network/network_security_rule.rb +1 -1
- data/test/api_stub/models/network/public_ip.rb +1 -1
- data/test/api_stub/models/network/subnet.rb +1 -1
- data/test/api_stub/models/network/virtual_network.rb +1 -1
- data/test/api_stub/models/network/virtual_network_gateway.rb +1 -1
- data/test/api_stub/models/network/virtual_network_gateway_connection.rb +1 -1
- data/test/api_stub/models/resources/resource.rb +2 -2
- data/test/api_stub/models/resources/resource_group.rb +1 -1
- data/test/api_stub/models/storage/directory.rb +148 -62
- data/test/api_stub/models/storage/file.rb +122 -119
- data/test/api_stub/models/traffic_manager/traffic_manager_end_point.rb +1 -1
- data/test/api_stub/models/traffic_manager/traffic_manager_profile.rb +1 -1
- data/test/api_stub/requests/application_gateway/gateway.rb +2 -2
- data/test/api_stub/requests/compute/availability_set.rb +3 -3
- data/test/api_stub/requests/compute/virtual_machine.rb +9 -9
- data/test/api_stub/requests/dns/record_set.rb +3 -3
- data/test/api_stub/requests/dns/zone.rb +18 -18
- data/test/api_stub/requests/network/express_route_circuit.rb +2 -2
- data/test/api_stub/requests/network/express_route_circuit_authorization.rb +1 -1
- data/test/api_stub/requests/network/express_route_circuit_peering.rb +2 -2
- data/test/api_stub/requests/network/express_route_service_provider.rb +1 -1
- data/test/api_stub/requests/network/load_balancer.rb +2 -2
- data/test/api_stub/requests/network/network_interface.rb +4 -4
- data/test/api_stub/requests/network/network_security_group.rb +3 -3
- data/test/api_stub/requests/network/network_security_rule.rb +2 -2
- data/test/api_stub/requests/network/public_ip.rb +2 -2
- data/test/api_stub/requests/network/subnet.rb +2 -2
- data/test/api_stub/requests/network/virtual_network.rb +2 -2
- data/test/api_stub/requests/network/virtual_network_gateway.rb +2 -2
- data/test/api_stub/requests/network/virtual_network_gateway_connection.rb +3 -3
- data/test/api_stub/requests/resources/resource.rb +2 -2
- data/test/api_stub/requests/resources/resource_group.rb +2 -2
- data/test/api_stub/requests/storage/directory.rb +59 -65
- data/test/api_stub/requests/storage/file.rb +183 -113
- data/test/api_stub/requests/storage/storageaccount.rb +1 -1
- data/test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb +1 -1
- data/test/api_stub/requests/traffic_manager/traffic_manager_profile.rb +2 -2
- data/test/integration/Virtual_network_gateway_connection.rb +189 -182
- data/test/integration/application_gateway.rb +208 -183
- data/test/integration/availability_set.rb +44 -27
- data/test/integration/blob.rb +293 -169
- data/test/integration/container.rb +93 -42
- data/test/integration/data_disk.rb +57 -46
- data/test/integration/deployment.rb +40 -32
- data/test/integration/express_route_circuit.rb +86 -82
- data/test/integration/external_load_balancer.rb +108 -100
- data/test/integration/internal_load_balancer.rb +115 -106
- data/test/integration/local_network_gateway.rb +46 -39
- data/test/integration/network_interface.rb +119 -107
- data/test/integration/network_security_group.rb +86 -74
- data/test/integration/network_security_rule.rb +65 -57
- data/test/integration/public_ip.rb +50 -42
- data/test/integration/record_set.rb +90 -78
- data/test/integration/resource_group.rb +26 -14
- data/test/integration/resource_tag.rb +56 -45
- data/test/integration/server.rb +152 -135
- data/test/integration/server_custom_image.rb +85 -76
- data/test/integration/sql_server.rb +130 -117
- data/test/integration/storage_account.rb +82 -70
- data/test/integration/subnet.rb +87 -74
- data/test/integration/traffic_manager.rb +86 -74
- data/test/integration/virtual_machine_extension.rb +115 -106
- data/test/integration/virtual_network.rb +121 -100
- data/test/integration/virtual_network_gateway.rb +86 -79
- data/test/integration/virtual_network_gateway_connection_to_express_route.rb +94 -87
- data/test/integration/zone.rb +36 -28
- data/test/models/storage/test_directories.rb +26 -71
- data/test/models/storage/test_directory.rb +111 -58
- data/test/models/storage/test_file.rb +179 -143
- data/test/models/storage/test_files.rb +197 -30
- data/test/models/storage/test_storage_account.rb +1 -1
- data/test/requests/compute/test_attach_data_disk_to_vm.rb +15 -17
- data/test/requests/storage/test_acquire_blob_lease.rb +23 -4
- data/test/requests/storage/test_acquire_container_lease.rb +24 -5
- data/test/requests/storage/test_commit_blob_blocks.rb +34 -0
- data/test/requests/storage/test_compare_container_blobs.rb +36 -0
- data/test/requests/storage/test_copy_blob.rb +22 -3
- data/test/requests/storage/test_copy_blob_from_uri.rb +23 -4
- data/test/requests/storage/test_create_block_blob.rb +80 -0
- data/test/requests/storage/test_create_container.rb +18 -13
- data/test/requests/storage/test_create_disk.rb +57 -4
- data/test/requests/storage/test_create_page_blob.rb +34 -0
- data/test/requests/storage/test_delete_blob.rb +25 -5
- data/test/requests/storage/test_delete_container.rb +21 -9
- data/test/requests/storage/test_delete_disk.rb +14 -7
- data/test/requests/storage/test_get_blob.rb +141 -0
- data/test/requests/storage/test_get_blob_http_url.rb +30 -0
- data/test/requests/storage/test_get_blob_https_url.rb +30 -0
- data/test/requests/storage/test_get_blob_properties.rb +29 -7
- data/test/requests/storage/test_get_blob_url.rb +33 -0
- data/test/requests/storage/test_get_container_acl.rb +37 -0
- data/test/requests/storage/test_get_container_properties.rb +25 -11
- data/test/requests/storage/test_get_container_url.rb +33 -0
- data/test/requests/storage/test_list_blobs.rb +77 -0
- data/test/requests/storage/test_list_containers.rb +38 -7
- data/test/requests/storage/test_multipart_save_block_blob.rb +105 -0
- data/test/requests/storage/test_put_blob_block.rb +34 -0
- data/test/requests/storage/test_put_blob_metadata.rb +36 -0
- data/test/requests/storage/test_put_blob_pages.rb +34 -0
- data/test/requests/storage/test_put_blob_properties.rb +39 -0
- data/test/requests/storage/test_put_container_acl.rb +34 -0
- data/test/requests/storage/test_put_container_metadata.rb +36 -0
- data/test/requests/storage/test_release_blob_lease.rb +20 -2
- data/test/requests/storage/test_release_container_lease.rb +21 -3
- data/test/requests/storage/test_save_page_blob.rb +115 -0
- data/test/requests/storage/test_wait_blob_copy_operation_to_finish.rb +148 -0
- data/test/test_helper.rb +34 -21
- metadata +92 -46
- data/lib/fog/azurerm/requests/storage/check_blob_exist.rb +0 -25
- data/lib/fog/azurerm/requests/storage/compare_blob.rb +0 -73
- data/lib/fog/azurerm/requests/storage/download_blob_to_file.rb +0 -56
- data/lib/fog/azurerm/requests/storage/get_blob_metadata.rb +0 -59
- data/lib/fog/azurerm/requests/storage/get_container_access_control_list.rb +0 -30
- data/lib/fog/azurerm/requests/storage/get_container_metadata.rb +0 -32
- data/lib/fog/azurerm/requests/storage/set_blob_properties.rb +0 -26
- data/lib/fog/azurerm/requests/storage/upload_block_blob_from_file.rb +0 -60
- data/test/requests/storage/test_check_blob_exist.rb +0 -17
- data/test/requests/storage/test_compare_blob.rb +0 -17
- data/test/requests/storage/test_download_blob_to_file.rb +0 -25
- data/test/requests/storage/test_get_blob_metadata.rb +0 -18
- data/test/requests/storage/test_get_container_access_control_list.rb +0 -31
- data/test/requests/storage/test_get_container_metadata.rb +0 -18
- data/test/requests/storage/test_list_blobs_in_container.rb +0 -23
- data/test/requests/storage/test_set_blob_metadata.rb +0 -17
- data/test/requests/storage/test_set_blob_properties.rb +0 -16
- data/test/requests/storage/test_set_container_metadata.rb +0 -17
- data/test/requests/storage/test_upload_block_blob_from_file.rb +0 -23
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.1.
|
4
|
+
version: 0.1.1
|
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: 2016-
|
17
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rake
|
@@ -48,30 +48,30 @@ dependencies:
|
|
48
48
|
name: simplecov
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0
|
60
|
+
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: codeclimate-test-reporter
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 1.0.0
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 1.0.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: fog-core
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,6 +86,20 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: 1.43.0
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: fog-json
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.0'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: rest-client
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,98 +120,112 @@ dependencies:
|
|
106
120
|
requirements:
|
107
121
|
- - "~>"
|
108
122
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.
|
123
|
+
version: 0.7.0
|
110
124
|
type: :runtime
|
111
125
|
prerelease: false
|
112
126
|
version_requirements: !ruby/object:Gem::Requirement
|
113
127
|
requirements:
|
114
128
|
- - "~>"
|
115
129
|
- !ruby/object:Gem::Version
|
116
|
-
version: 0.
|
130
|
+
version: 0.7.0
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: azure_mgmt_resources
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
120
134
|
requirements:
|
121
135
|
- - "~>"
|
122
136
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.
|
137
|
+
version: 0.7.0
|
124
138
|
type: :runtime
|
125
139
|
prerelease: false
|
126
140
|
version_requirements: !ruby/object:Gem::Requirement
|
127
141
|
requirements:
|
128
142
|
- - "~>"
|
129
143
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.
|
144
|
+
version: 0.7.0
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
146
|
name: azure_mgmt_storage
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|
134
148
|
requirements:
|
135
149
|
- - "~>"
|
136
150
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.
|
151
|
+
version: 0.7.0
|
138
152
|
type: :runtime
|
139
153
|
prerelease: false
|
140
154
|
version_requirements: !ruby/object:Gem::Requirement
|
141
155
|
requirements:
|
142
156
|
- - "~>"
|
143
157
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0.
|
158
|
+
version: 0.7.0
|
145
159
|
- !ruby/object:Gem::Dependency
|
146
160
|
name: azure_mgmt_network
|
147
161
|
requirement: !ruby/object:Gem::Requirement
|
148
162
|
requirements:
|
149
163
|
- - "~>"
|
150
164
|
- !ruby/object:Gem::Version
|
151
|
-
version: 0.
|
165
|
+
version: 0.7.0
|
152
166
|
type: :runtime
|
153
167
|
prerelease: false
|
154
168
|
version_requirements: !ruby/object:Gem::Requirement
|
155
169
|
requirements:
|
156
170
|
- - "~>"
|
157
171
|
- !ruby/object:Gem::Version
|
158
|
-
version: 0.
|
172
|
+
version: 0.7.0
|
159
173
|
- !ruby/object:Gem::Dependency
|
160
174
|
name: azure_mgmt_dns
|
161
175
|
requirement: !ruby/object:Gem::Requirement
|
162
176
|
requirements:
|
163
177
|
- - "~>"
|
164
178
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.
|
179
|
+
version: 0.7.0
|
166
180
|
type: :runtime
|
167
181
|
prerelease: false
|
168
182
|
version_requirements: !ruby/object:Gem::Requirement
|
169
183
|
requirements:
|
170
184
|
- - "~>"
|
171
185
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.
|
186
|
+
version: 0.7.0
|
173
187
|
- !ruby/object:Gem::Dependency
|
174
188
|
name: azure_mgmt_traffic_manager
|
175
189
|
requirement: !ruby/object:Gem::Requirement
|
176
190
|
requirements:
|
177
191
|
- - "~>"
|
178
192
|
- !ruby/object:Gem::Version
|
179
|
-
version: 0.
|
193
|
+
version: 0.7.0
|
180
194
|
type: :runtime
|
181
195
|
prerelease: false
|
182
196
|
version_requirements: !ruby/object:Gem::Requirement
|
183
197
|
requirements:
|
184
198
|
- - "~>"
|
185
199
|
- !ruby/object:Gem::Version
|
186
|
-
version: 0.
|
200
|
+
version: 0.7.0
|
187
201
|
- !ruby/object:Gem::Dependency
|
188
202
|
name: azure-storage
|
189
203
|
requirement: !ruby/object:Gem::Requirement
|
190
204
|
requirements:
|
191
205
|
- - "~>"
|
192
206
|
- !ruby/object:Gem::Version
|
193
|
-
version: 0.11.
|
207
|
+
version: 0.11.3.preview
|
194
208
|
type: :runtime
|
195
209
|
prerelease: false
|
196
210
|
version_requirements: !ruby/object:Gem::Requirement
|
197
211
|
requirements:
|
198
212
|
- - "~>"
|
199
213
|
- !ruby/object:Gem::Version
|
200
|
-
version: 0.11.
|
214
|
+
version: 0.11.3.preview
|
215
|
+
- !ruby/object:Gem::Dependency
|
216
|
+
name: vhd
|
217
|
+
requirement: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - '='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: 0.0.4
|
222
|
+
type: :runtime
|
223
|
+
prerelease: false
|
224
|
+
version_requirements: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - '='
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: 0.0.4
|
201
229
|
description: |-
|
202
230
|
This library can be used as a module for 'fog' or as standalone provider
|
203
231
|
to use the Azure Resource Manager cloud services in applications..
|
@@ -459,14 +487,16 @@ files:
|
|
459
487
|
- lib/fog/azurerm/requests/sql/list_sql_servers.rb
|
460
488
|
- lib/fog/azurerm/requests/storage/acquire_blob_lease.rb
|
461
489
|
- lib/fog/azurerm/requests/storage/acquire_container_lease.rb
|
462
|
-
- lib/fog/azurerm/requests/storage/check_blob_exist.rb
|
463
490
|
- lib/fog/azurerm/requests/storage/check_storage_account_name_availability.rb
|
464
|
-
- lib/fog/azurerm/requests/storage/
|
491
|
+
- lib/fog/azurerm/requests/storage/commit_blob_blocks.rb
|
492
|
+
- lib/fog/azurerm/requests/storage/compare_container_blobs.rb
|
465
493
|
- lib/fog/azurerm/requests/storage/copy_blob.rb
|
466
494
|
- lib/fog/azurerm/requests/storage/copy_blob_from_uri.rb
|
495
|
+
- lib/fog/azurerm/requests/storage/create_block_blob.rb
|
467
496
|
- lib/fog/azurerm/requests/storage/create_container.rb
|
468
497
|
- lib/fog/azurerm/requests/storage/create_disk.rb
|
469
498
|
- lib/fog/azurerm/requests/storage/create_or_update_recovery_vault.rb
|
499
|
+
- lib/fog/azurerm/requests/storage/create_page_blob.rb
|
470
500
|
- lib/fog/azurerm/requests/storage/create_storage_account.rb
|
471
501
|
- lib/fog/azurerm/requests/storage/delete_blob.rb
|
472
502
|
- lib/fog/azurerm/requests/storage/delete_container.rb
|
@@ -474,18 +504,20 @@ files:
|
|
474
504
|
- lib/fog/azurerm/requests/storage/delete_recovery_vault.rb
|
475
505
|
- lib/fog/azurerm/requests/storage/delete_storage_account.rb
|
476
506
|
- lib/fog/azurerm/requests/storage/disable_backup_protection.rb
|
477
|
-
- lib/fog/azurerm/requests/storage/download_blob_to_file.rb
|
478
507
|
- lib/fog/azurerm/requests/storage/enable_backup_protection.rb
|
479
508
|
- lib/fog/azurerm/requests/storage/get_all_backup_jobs.rb
|
480
509
|
- lib/fog/azurerm/requests/storage/get_backup_container.rb
|
481
510
|
- lib/fog/azurerm/requests/storage/get_backup_item.rb
|
482
511
|
- lib/fog/azurerm/requests/storage/get_backup_job_for_vm.rb
|
483
512
|
- lib/fog/azurerm/requests/storage/get_backup_protection_policy.rb
|
484
|
-
- lib/fog/azurerm/requests/storage/
|
513
|
+
- lib/fog/azurerm/requests/storage/get_blob.rb
|
514
|
+
- lib/fog/azurerm/requests/storage/get_blob_http_url.rb
|
515
|
+
- lib/fog/azurerm/requests/storage/get_blob_https_url.rb
|
485
516
|
- lib/fog/azurerm/requests/storage/get_blob_properties.rb
|
486
|
-
- lib/fog/azurerm/requests/storage/
|
487
|
-
- lib/fog/azurerm/requests/storage/
|
517
|
+
- lib/fog/azurerm/requests/storage/get_blob_url.rb
|
518
|
+
- lib/fog/azurerm/requests/storage/get_container_acl.rb
|
488
519
|
- lib/fog/azurerm/requests/storage/get_container_properties.rb
|
520
|
+
- lib/fog/azurerm/requests/storage/get_container_url.rb
|
489
521
|
- lib/fog/azurerm/requests/storage/get_recovery_vault.rb
|
490
522
|
- lib/fog/azurerm/requests/storage/get_storage_access_keys.rb
|
491
523
|
- lib/fog/azurerm/requests/storage/get_storage_account.rb
|
@@ -494,15 +526,20 @@ files:
|
|
494
526
|
- lib/fog/azurerm/requests/storage/list_recovery_vaults.rb
|
495
527
|
- lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb
|
496
528
|
- lib/fog/azurerm/requests/storage/list_storage_accounts.rb
|
529
|
+
- lib/fog/azurerm/requests/storage/multipart_save_block_blob.rb
|
530
|
+
- lib/fog/azurerm/requests/storage/put_blob_block.rb
|
531
|
+
- lib/fog/azurerm/requests/storage/put_blob_metadata.rb
|
532
|
+
- lib/fog/azurerm/requests/storage/put_blob_pages.rb
|
533
|
+
- lib/fog/azurerm/requests/storage/put_blob_properties.rb
|
534
|
+
- lib/fog/azurerm/requests/storage/put_container_acl.rb
|
535
|
+
- lib/fog/azurerm/requests/storage/put_container_metadata.rb
|
497
536
|
- lib/fog/azurerm/requests/storage/release_blob_lease.rb
|
498
537
|
- lib/fog/azurerm/requests/storage/release_container_lease.rb
|
499
|
-
- lib/fog/azurerm/requests/storage/
|
500
|
-
- lib/fog/azurerm/requests/storage/set_blob_properties.rb
|
501
|
-
- lib/fog/azurerm/requests/storage/set_container_metadata.rb
|
538
|
+
- lib/fog/azurerm/requests/storage/save_page_blob.rb
|
502
539
|
- lib/fog/azurerm/requests/storage/set_recovery_vault_context.rb
|
503
540
|
- lib/fog/azurerm/requests/storage/start_backup.rb
|
504
541
|
- lib/fog/azurerm/requests/storage/update_storage_account.rb
|
505
|
-
- lib/fog/azurerm/requests/storage/
|
542
|
+
- lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb
|
506
543
|
- lib/fog/azurerm/requests/traffic_manager/create_or_update_traffic_manager_endpoint.rb
|
507
544
|
- lib/fog/azurerm/requests/traffic_manager/create_or_update_traffic_manager_profile.rb
|
508
545
|
- lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
|
@@ -815,13 +852,15 @@ files:
|
|
815
852
|
- test/requests/sql/test_list_sql_servers.rb
|
816
853
|
- test/requests/storage/test_acquire_blob_lease.rb
|
817
854
|
- test/requests/storage/test_acquire_container_lease.rb
|
818
|
-
- test/requests/storage/test_check_blob_exist.rb
|
819
855
|
- test/requests/storage/test_check_storage_account_name_availability.rb
|
820
|
-
- test/requests/storage/
|
856
|
+
- test/requests/storage/test_commit_blob_blocks.rb
|
857
|
+
- test/requests/storage/test_compare_container_blobs.rb
|
821
858
|
- test/requests/storage/test_copy_blob.rb
|
822
859
|
- test/requests/storage/test_copy_blob_from_uri.rb
|
860
|
+
- test/requests/storage/test_create_block_blob.rb
|
823
861
|
- test/requests/storage/test_create_container.rb
|
824
862
|
- test/requests/storage/test_create_disk.rb
|
863
|
+
- test/requests/storage/test_create_page_blob.rb
|
825
864
|
- test/requests/storage/test_create_recovery_vault.rb
|
826
865
|
- test/requests/storage/test_create_storage_account.rb
|
827
866
|
- test/requests/storage/test_delete_blob.rb
|
@@ -830,35 +869,42 @@ files:
|
|
830
869
|
- test/requests/storage/test_delete_recovery_vault.rb
|
831
870
|
- test/requests/storage/test_delete_storage_account.rb
|
832
871
|
- test/requests/storage/test_disable_backup_protection.rb
|
833
|
-
- test/requests/storage/test_download_blob_to_file.rb
|
834
872
|
- test/requests/storage/test_enable_backup_protection.rb
|
835
873
|
- test/requests/storage/test_get_all_backup_jobs.rb
|
836
874
|
- test/requests/storage/test_get_backup_container.rb
|
837
875
|
- test/requests/storage/test_get_backup_item.rb
|
838
876
|
- test/requests/storage/test_get_backup_job_for_vm.rb
|
839
877
|
- test/requests/storage/test_get_backup_protection_policy.rb
|
840
|
-
- test/requests/storage/
|
878
|
+
- test/requests/storage/test_get_blob.rb
|
879
|
+
- test/requests/storage/test_get_blob_http_url.rb
|
880
|
+
- test/requests/storage/test_get_blob_https_url.rb
|
841
881
|
- test/requests/storage/test_get_blob_properties.rb
|
842
|
-
- test/requests/storage/
|
843
|
-
- test/requests/storage/
|
882
|
+
- test/requests/storage/test_get_blob_url.rb
|
883
|
+
- test/requests/storage/test_get_container_acl.rb
|
844
884
|
- test/requests/storage/test_get_container_properties.rb
|
885
|
+
- test/requests/storage/test_get_container_url.rb
|
845
886
|
- test/requests/storage/test_get_recovery_vault.rb
|
846
887
|
- test/requests/storage/test_get_storage_access_keys.rb
|
847
888
|
- test/requests/storage/test_get_storage_account.rb
|
848
|
-
- test/requests/storage/
|
889
|
+
- test/requests/storage/test_list_blobs.rb
|
849
890
|
- test/requests/storage/test_list_containers.rb
|
850
891
|
- test/requests/storage/test_list_recovery_vault.rb
|
851
892
|
- test/requests/storage/test_list_storage_accounts.rb
|
852
893
|
- test/requests/storage/test_list_storage_accounts_for_rg.rb
|
894
|
+
- test/requests/storage/test_multipart_save_block_blob.rb
|
895
|
+
- test/requests/storage/test_put_blob_block.rb
|
896
|
+
- test/requests/storage/test_put_blob_metadata.rb
|
897
|
+
- test/requests/storage/test_put_blob_pages.rb
|
898
|
+
- test/requests/storage/test_put_blob_properties.rb
|
899
|
+
- test/requests/storage/test_put_container_acl.rb
|
900
|
+
- test/requests/storage/test_put_container_metadata.rb
|
853
901
|
- test/requests/storage/test_release_blob_lease.rb
|
854
902
|
- test/requests/storage/test_release_container_lease.rb
|
855
|
-
- test/requests/storage/
|
856
|
-
- test/requests/storage/test_set_blob_properties.rb
|
857
|
-
- test/requests/storage/test_set_container_metadata.rb
|
903
|
+
- test/requests/storage/test_save_page_blob.rb
|
858
904
|
- test/requests/storage/test_set_recovery_vault_context.rb
|
859
905
|
- test/requests/storage/test_start_backup.rb
|
860
906
|
- test/requests/storage/test_update_storage_account.rb
|
861
|
-
- test/requests/storage/
|
907
|
+
- test/requests/storage/test_wait_blob_copy_operation_to_finish.rb
|
862
908
|
- test/requests/traffic_manager/test_create_traffic_manager_endpoint.rb
|
863
909
|
- test/requests/traffic_manager/test_create_traffic_manager_profile.rb
|
864
910
|
- test/requests/traffic_manager/test_delete_traffic_manager_endpoint.rb
|
@@ -892,7 +938,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
892
938
|
version: '0'
|
893
939
|
requirements: []
|
894
940
|
rubyforge_project:
|
895
|
-
rubygems_version: 2.
|
941
|
+
rubygems_version: 2.5.1
|
896
942
|
signing_key:
|
897
943
|
specification_version: 4
|
898
944
|
summary: Module for the 'fog' gem to support Azure Resource Manager cloud services.
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Storage
|
3
|
-
class AzureRM
|
4
|
-
# This class provides the actual implemention for service calls.
|
5
|
-
class Real
|
6
|
-
def check_blob_exist(container_name, name, options = {})
|
7
|
-
Fog::Logger.debug "Check Blob #{name} exist in container #{container_name}."
|
8
|
-
begin
|
9
|
-
@blob_client.get_blob_properties(container_name, name, options)
|
10
|
-
rescue Azure::Core::Http::HTTPError
|
11
|
-
return false
|
12
|
-
end
|
13
|
-
Fog::Logger.debug "Blob #{name} Exists."
|
14
|
-
true
|
15
|
-
end
|
16
|
-
end
|
17
|
-
# This class provides the mock implementation for unit tests.
|
18
|
-
class Mock
|
19
|
-
def check_blob_exist(*)
|
20
|
-
true
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,73 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Storage
|
3
|
-
class AzureRM
|
4
|
-
# This class provides the actual implementation for service calls.
|
5
|
-
class Real
|
6
|
-
def compare_blob(container1, container2)
|
7
|
-
msg = "Comparing blobs from container #{container1} to container #{container2}"
|
8
|
-
Fog::Logger.debug msg
|
9
|
-
begin
|
10
|
-
identical_blobs = get_identical_blobs_from_containers(container1, container2)
|
11
|
-
rescue Azure::Core::Http::HTTPError => ex
|
12
|
-
raise_azure_exception(ex, msg)
|
13
|
-
end
|
14
|
-
identical_blobs
|
15
|
-
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
def get_identical_blobs_from_containers(container1, container2)
|
20
|
-
container1_blobs = list_blobs(container1)
|
21
|
-
container2_blobs = list_blobs(container2)
|
22
|
-
|
23
|
-
identical_blobs = []
|
24
|
-
container1_blobs.each do |container1_blob|
|
25
|
-
container2_blobs.each do |container2_blob|
|
26
|
-
container1_prop = get_blob_properties(container1, container1_blob.name)
|
27
|
-
container2_prop = get_blob_properties(container2, container2_blob.name)
|
28
|
-
if container1_blob.name == container2_blob.name && container1_prop.properties[:content_md5] == container2_prop.properties[:content_md5]
|
29
|
-
identical_blobs.push(container1_blob)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
identical_blobs
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# This class provides the mock implementation for unit tests.
|
38
|
-
class Mock
|
39
|
-
def compare_blob(*)
|
40
|
-
[
|
41
|
-
{
|
42
|
-
'name' => 'blob_name',
|
43
|
-
'metadata' => {},
|
44
|
-
'properties' =>
|
45
|
-
{
|
46
|
-
'last_modified' => 'Thu, 28 Jul 2016 06:53:05 GMT',
|
47
|
-
'etag' => '0x8D3B6B3D353FFCA',
|
48
|
-
'lease_status' => 'unlocked',
|
49
|
-
'lease_state' => 'available',
|
50
|
-
'lease_duration' => nil,
|
51
|
-
'content_length' => 4_194_304,
|
52
|
-
'content_type' => 'application/atom+xml; charset=utf-8',
|
53
|
-
'content_encoding' => 'ASCII-8BIT',
|
54
|
-
'content_language' => nil,
|
55
|
-
'content_disposition' => nil,
|
56
|
-
'content_md5' => 'tXAohIyxuu/t94Lp/ujeRw==',
|
57
|
-
'cache_control' => nil,
|
58
|
-
'blob_type' => 'BlockBlob',
|
59
|
-
'copy_id' => nil,
|
60
|
-
'copy_status' => nil,
|
61
|
-
'copy_source' => nil,
|
62
|
-
'copy_progress' => nil,
|
63
|
-
'copy_completion_time' => nil,
|
64
|
-
'copy_status_description' => nil,
|
65
|
-
'accept_ranges' => 0
|
66
|
-
}
|
67
|
-
}
|
68
|
-
]
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
@@ -1,56 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Storage
|
3
|
-
class AzureRM
|
4
|
-
# This class provides the actual implemention for service calls.
|
5
|
-
class Real
|
6
|
-
def download_blob_to_file(container_name, blob_name, file_path, options = {})
|
7
|
-
Fog::Logger.debug "Downloading file #{file_path} from blob #{blob_name} in the container #{container_name}."
|
8
|
-
|
9
|
-
begin
|
10
|
-
blob, content = @blob_client.get_blob(container_name, blob_name, options)
|
11
|
-
IO.binwrite(::File.expand_path(file_path), content)
|
12
|
-
Fog::Logger.debug "File #{file_path} downloaded successfully."
|
13
|
-
blob
|
14
|
-
rescue IOError => ex
|
15
|
-
raise "Exception in writing #{file_path}: #{ex.inspect}"
|
16
|
-
rescue Azure::Core::Http::HTTPError => ex
|
17
|
-
raise "Exception in downloading blob #{blob_name}: #{ex.inspect}"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
# This class provides the mock implementation for unit tests.
|
22
|
-
class Mock
|
23
|
-
def download_blob_to_file(_container_name, blob_name, _file_path, _options = {})
|
24
|
-
Fog::Logger.debug 'File downloaded successfully.'
|
25
|
-
{
|
26
|
-
'name' => blob_name,
|
27
|
-
'metadata' => {},
|
28
|
-
'properties' =>
|
29
|
-
{
|
30
|
-
'last_modified' => 'Thu, 28 Jul 2016 06:53:05 GMT',
|
31
|
-
'etag' => '0x8D3B6B3D353FFCA',
|
32
|
-
'lease_status' => 'unlocked',
|
33
|
-
'lease_state' => 'available',
|
34
|
-
'lease_duration' => nil,
|
35
|
-
'content_length' => 4_194_304,
|
36
|
-
'content_type' => 'application/atom+xml; charset=utf-8',
|
37
|
-
'content_encoding' => 'ASCII-8BIT',
|
38
|
-
'content_language' => nil,
|
39
|
-
'content_disposition' => nil,
|
40
|
-
'content_md5' => 'tXAohIyxuu/t94Lp/ujeRw==',
|
41
|
-
'cache_control' => nil,
|
42
|
-
'blob_type' => 'BlockBlob',
|
43
|
-
'copy_id' => nil,
|
44
|
-
'copy_status' => nil,
|
45
|
-
'copy_source' => nil,
|
46
|
-
'copy_progress' => nil,
|
47
|
-
'copy_completion_time' => nil,
|
48
|
-
'copy_status_description' => nil,
|
49
|
-
'accept_ranges' => 0
|
50
|
-
}
|
51
|
-
}
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|