pyaz/storage/blob/__init__.py
def upload(container_name, file, account_key=None, account_name=None, auth_mode=None, connection_string=None, content_cache_control=None, content_disposition=None, content_encoding=None, content_language=None, content_md5=None, content_type=None, encryption_scope=None, if_match=None, if_modified_since=None, if_none_match=None, if_unmodified_since=None, lease_id=None, max_connections=None, maxsize_condition=None, metadata=None, name=None, no_progress=None, sas_token=None, socket_timeout=None, tier=None, timeout=None, type=None, validate_content=None):
    '''
    Upload a file to a storage blob.

    Required Parameters:
    - container_name -- The container name.
    - file --  Path of the file to upload as the blob content.

    Optional Parameters:
    - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY
    - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit
    - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE
    - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING
    - content_cache_control -- The cache control string.
    - content_disposition -- Conveys additional information about how to process the response payload, and can also be used to attach additional metadata.
    - content_encoding -- The content encoding type.
    - content_language -- The content language.
    - content_md5 -- The content's MD5 hash.
    - content_type -- The content MIME type.
    - encryption_scope -- A predefined encryption scope used to encrypt the data on the service.
    - if_match --  An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
    - if_modified_since -- Commence only if modified since supplied UTC datetime (Y-m-d'T'H:M'Z')
    - if_none_match --  An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character (*) to perform the operation only if the resource does not exist, and fail the operation if it does exist.
    - if_unmodified_since -- Commence only if unmodified since supplied UTC datetime (Y-m-d'T'H:M'Z')
    - lease_id --  Required if the blob has an active lease.
    - max_connections --  Maximum number of parallel connections to use when the blob size exceeds 64MB.
    - maxsize_condition -- None
    - metadata -- Metadata in space-separated key=value pairs. This overwrites any existing metadata.
    - name -- The blob name.
    - no_progress -- Include this flag to disable progress reporting for the command.
    - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN
    - socket_timeout -- The socket timeout(secs), used by the service to regulate data flow.
    - tier -- None
    - timeout -- Request timeout in seconds. Applies to each call to the service.
    - type -- None
    - validate_content --  If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob. Also note that if enabled, the memory-efficient upload algorithm will not be used, because computing the MD5 hash requires buffering entire blocks, and doing so defeats the purpose of the memory-efficient algorithm.
    '''
    return _call_az("az storage blob upload", locals())

    Upload a file to a storage blob.

    Required Parameters:
    - container_name -- The container name.
    - file --  Path of the file to upload as the blob content.

    Optional Parameters:
    - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY
    - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit
    - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE
    - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING
    - content_cache_control -- The cache control string.
    - content_disposition -- Conveys additional information about how to process the response payload, and can also be used to attach additional metadata.
    - content_encoding -- The content encoding type.
    - content_language -- The content language.
    - content_md5 -- The content's MD5 hash.
    - content_type -- The content MIME type.
    - encryption_scope -- A predefined encryption scope used to encrypt the data on the service.
    - if_match --  An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
    - if_modified_since -- Commence only if modified since supplied UTC datetime (Y-m-d'T'H:M'Z')
    - if_none_match --  An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character (*) to perform the operation only if the resource does not exist, and fail the operation if it does exist.
    - if_unmodified_since -- Commence only if unmodified since supplied UTC datetime (Y-m-d'T'H:M'Z')
    - lease_id --  Required if the blob has an active lease.
    - max_connections --  Maximum number of parallel connections to use when the blob size exceeds 64MB.
    - maxsize_condition -- None
    - metadata -- Metadata in space-separated key=value pairs. This overwrites any existing metadata.
    - name -- The blob name.
    - no_progress -- Include this flag to disable progress reporting for the command.
    - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN
    - socket_timeout -- The socket timeout(secs), used by the service to regulate data flow.
    - tier -- None
    - timeout -- Request timeout in seconds. Applies to each call to the service.
    - type -- None
    - validate_content --  If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob. Also note that if enabled, the memory-efficient upload algorithm will not be used, because computing the MD5 hash requires buffering entire blocks, and doing so defeats the purpose of the memory-efficient algorithm.
    
Upload a file to a storage blob.
Required Parameters:
container_name -- The container name.
file --  Path of the file to upload as the blob content.

Optional Parameters:
account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY
account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit
auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE
connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING
content_cache_control -- The cache control string.
content_disposition -- Conveys additional information about how to process the response payload, and can also be used to attach additional metadata.
content_encoding -- The content encoding type.
content_language -- The content language.
content_md5 -- The content's MD5 hash.
content_type -- The content MIME type.
encryption_scope -- A predefined encryption scope used to encrypt the data on the service.
if_match --  An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
Upload a file to a storage blob . Required Parameters : container_name -- The container name . file -- Path of the file to upload as the blob content . Optional Parameters : account_key -- Storage account key . Must be used in conjunction with storage account name . Environment variable : AZURE_STORAGE_KEY account_name -- Storage account name . Related environment variable : AZURE_STORAGE_ACCOUNT . Must be used in conjunction with either storage account key or a SAS token . If neither are present the command will try to query the storage account key using the authenticated Azure account . If a large number of storage commands are executed the API quota may be hit auth_mode -- The mode in which to run the command . " login " mode will directly use your login credentials for the authentication . The legacy " key " mode will attempt to query for an account key if no authentication parameters for the account are provided . Environment variable : AZURE_STORAGE_AUTH_MODE connection_string -- Storage account connection string . Environment variable : AZURE_STORAGE_CONNECTION_STRING content_cache_control -- The cache control string . content_disposition -- Conveys additional information about how to process the response payload and can also be used to attach additional metadata . content_encoding -- The content encoding type . content_language -- The content language . content_md5 -- The content ' s MD5 hash . content_type -- The content MIME type . encryption_scope -- A predefined encryption scope used to encrypt the data on the service . if_match -- An ETag value or the wildcard character ( * ) . Specify this header to perform the operation only if the resource ' s ETag matches the value specified .
def upload(container_name, file, account_key=None, account_name=None, auth_mode=None, connection_string=None, content_cache_control=None, content_disposition=None, content_encoding=None, content_language=None, content_md5=None, content_type=None, encryption_scope=None, if_match=None, if_modified_since=None, if_none_match=None, if_unmodified_since=None, lease_id=None, max_connections=None, maxsize_condition=None, metadata=None, name=None, no_progress=None, sas_token=None, socket_timeout=None, tier=None, timeout=None, type=None, validate_content=None):
    return _call_az("az storage blob upload", locals())
def upload ( container_name , file , account_key = None , account_name = None , auth_mode = None , connection_string = None , content_cache_control = None , content_disposition = None , content_encoding = None , content_language = None , content_md5 = None , content_type = None , encryption_scope = None , if_match = None , if_modified_since = None , if_none_match = None , if_unmodified_since = None , lease_id = None , max_connections = None , maxsize_condition = None , metadata = None , name = None , no_progress = None , sas_token = None , socket_timeout = None , tier = None , timeout = None , type = None , validate_content = None ) : return _call_az ( "az storage blob upload" , locals ( ) )
Upload a file to a storage blob.
Upload a file to a storage blob .
'''
    Upload a file to a storage blob.

    Required Parameters:
    - container_name -- The container name.
    - file --  Path of the file to upload as the blob content.

    Optional Parameters:
    - account_key -- Storage account key. Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_KEY
    - account_name -- Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT. Must be used in conjunction with either storage account key or a SAS token. If neither are present, the command will try to query the storage account key using the authenticated Azure account. If a large number of storage commands are executed the API quota may be hit
    - auth_mode -- The mode in which to run the command. "login" mode will directly use your login credentials for the authentication. The legacy "key" mode will attempt to query for an account key if no authentication parameters for the account are provided. Environment variable: AZURE_STORAGE_AUTH_MODE
    - connection_string -- Storage account connection string. Environment variable: AZURE_STORAGE_CONNECTION_STRING
    - content_cache_control -- The cache control string.
    - content_disposition -- Conveys additional information about how to process the response payload, and can also be used to attach additional metadata.
    - content_encoding -- The content encoding type.
    - content_language -- The content language.
    - content_md5 -- The content's MD5 hash.
    - content_type -- The content MIME type.
    - encryption_scope -- A predefined encryption scope used to encrypt the data on the service.
    - if_match --  An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag matches the value specified.
    - if_modified_since -- Commence only if modified since supplied UTC datetime (Y-m-d'T'H:M'Z')
    - if_none_match --  An ETag value, or the wildcard character (*). Specify this header to perform the operation only if the resource's ETag does not match the value specified. Specify the wildcard character (*) to perform the operation only if the resource does not exist, and fail the operation if it does exist.
    - if_unmodified_since -- Commence only if unmodified since supplied UTC datetime (Y-m-d'T'H:M'Z')
    - lease_id --  Required if the blob has an active lease.
    - max_connections --  Maximum number of parallel connections to use when the blob size exceeds 64MB.
    - maxsize_condition -- None
    - metadata -- Metadata in space-separated key=value pairs. This overwrites any existing metadata.
    - name -- The blob name.
    - no_progress -- Include this flag to disable progress reporting for the command.
    - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN
    - socket_timeout -- The socket timeout(secs), used by the service to regulate data flow.
    - tier -- None
    - timeout -- Request timeout in seconds. Applies to each call to the service.
    - type -- None
    - validate_content --  If true, calculates an MD5 hash for each chunk of the blob. The storage service checks the hash of the content that has arrived with the hash that was sent. This is primarily valuable for detecting bitflips on the wire if using http instead of https as https (the default) will already validate. Note that this MD5 hash is not stored with the blob. Also note that if enabled, the memory-efficient upload algorithm will not be used, because computing the MD5 hash requires buffering entire blocks, and doing so defeats the purpose of the memory-efficient algorithm.
    '''
container_name
file
account_key
account_name
auth_mode
connection_string
content_cache_control
content_disposition
content_encoding
content_language
content_md5
content_type
encryption_scope
if_match
if_modified_since
if_none_match
if_unmodified_since
lease_id
max_connections
maxsize_condition
metadata
name
no_progress
sas_token
socket_timeout
tier
timeout
type
validate_content