lib/fog/azurerm/config.rb in fog-azure-rm-0.1.0 vs lib/fog/azurerm/config.rb in fog-azure-rm-0.1.1
- old
+ new
@@ -18,5 +18,38 @@
RESOURCE_NAME = 8
AZURE_ENDPOINTS = 'azureEndpoints'.freeze
EXTERNAL_ENDPOINTS = 'externalEndpoints'.freeze
NESTED_ENDPOINTS = 'nestedEndpoints'.freeze
GLOBAL = 'global'.freeze
+UPLOAD_BLOB_WORKER_THREAD_COUNT = 8
+VM_NAME_POSITION = 8
+
+# Set a CLOUD value from 'Azure', 'AzureChina', 'AzureGermanCloud' and 'AzureUSGovernment'
+CLOUD = 'Azure'.freeze
+
+AZURE_GLOBAL_RM_ENDPOINT_URL = 'https://management.azure.com/'.freeze
+AZURE_CHINA_RM_ENDPOINT_URL = 'https://management.chinacloudapi.cn'.freeze
+GERMAN_CLOUD_RM_ENDPOINT_URL = 'https://management.microsoftazure.de'.freeze
+US_GOVERNMENT_RM_ENDPOINT_URL = 'https://management.usgovcloudapi.net'.freeze
+
+LOCATION = 'eastus'.freeze
+
+# State of the copy operation
+COPY_STATUS = {
+ # The copy completed successfully.
+ SUCCESS: 'success',
+ # The copy is in progress
+ PENDING: 'pending'
+}.freeze
+
+# https://msdn.microsoft.com/en-us/library/azure/dd179451.aspx
+# The maximum size for a block blob created via Put Blob is 64 MB. But for better performance, this size should be 32 MB.
+# If your blob is larger than 32 MB, you must upload it as a set of blocks.
+SINGLE_BLOB_PUT_THRESHOLD = 32 * 1024 * 1024
+
+# Block blob: https://msdn.microsoft.com/en-us/library/azure/dd135726.aspx
+# Page blob: https://msdn.microsoft.com/en-us/library/azure/ee691975.aspx
+# Each block/page can be a different size, up to a maximum of 4 MB
+MAXIMUM_CHUNK_SIZE = 4 * 1024 * 1024
+
+# The hash value of 4MB empty content
+HASH_OF_4MB_EMPTY_CONTENT = 'b5cfa9d6c8febd618f91ac2843d50a1c'.freeze