pyaz/storage/blob/__init__.py
def query(container_name, name, query_expression, account_key=None, account_name=None, auth_mode=None, connection_string=None, if_match=None, if_modified_since=None, if_none_match=None, if_unmodified_since=None, in_column_separator=None, in_escape_char=None, in_has_header=None, in_line_separator=None, in_quote_char=None, in_record_separator=None, input_format=None, lease_id=None, out_column_separator=None, out_escape_char=None, out_has_header=None, out_line_separator=None, out_quote_char=None, out_record_separator=None, output_format=None, result_file=None, sas_token=None, tags_condition=None, timeout=None):
    '''
    Enable users to select/project on blob or blob snapshot data by providing simple query expressions.

    Required Parameters:
    - container_name -- The container name.
    - name -- The blob name.
    - query_expression -- The query expression in SQL. The maximum size of the query expression is 256KiB. For more information about the expression syntax, please see https://docs.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference

    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
    - 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')
    - in_column_separator -- The string used to separate columns.
    - in_escape_char -- The string used as an escape character. Default to empty.
    - in_has_header -- Whether the blob data includes headers in the first line. The default value is False, meaning that the data will be returned inclusive of the first line. If set to True, the data will be returned exclusive of the first line.
    - in_line_separator -- The string used to separate records.
    - in_quote_char -- The string used to quote a specific field.
    - in_record_separator -- The string used to separate records.
    - input_format -- Serialization type of the data currently stored in the blob. The default is to treat the blob data as CSV data formatted in the default dialect.The blob data will be reformatted according to that profile when blob format is specified. If you choose `json`, please specify `Output Json Text Configuration Arguments` accordingly; If you choose `csv`, please specify `Output Delimited Text Configuration Arguments`.
    - lease_id -- Required if the blob has an active lease.
    - out_column_separator -- The string used to separate columns.
    - out_escape_char -- The string used as an escape character. Default to empty.
    - out_has_header -- Whether the blob data includes headers in the first line. The default value is False, meaning that the data will be returned inclusive of the first line. If set to True, the data will be returned exclusive of the first line.
    - out_line_separator -- The string used to separate records.
    - out_quote_char -- The string used to quote a specific field.
    - out_record_separator -- The string used to separate records.
    - output_format -- Output serialization type for the data stream. By default the data will be returned as it is represented in the blob. By providing an output format, the blob data will be reformatted according to that profile. If you choose `json`, please specify `Output Json Text Configuration Arguments` accordingly; If you choose `csv`, please specify `Output Delimited Text Configuration Arguments`.
    - result_file -- Specify the file path to save result.
    - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN
    - tags_condition -- Specify a SQL where clause on blob tags to operate only on blobs with a matching value.
    - timeout -- Request timeout in seconds. Applies to each call to the service.
    '''
    return _call_az("az storage blob query", locals())

    Enable users to select/project on blob or blob snapshot data by providing simple query expressions.

    Required Parameters:
    - container_name -- The container name.
    - name -- The blob name.
    - query_expression -- The query expression in SQL. The maximum size of the query expression is 256KiB. For more information about the expression syntax, please see https://docs.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference

    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
    - 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')
    - in_column_separator -- The string used to separate columns.
    - in_escape_char -- The string used as an escape character. Default to empty.
    - in_has_header -- Whether the blob data includes headers in the first line. The default value is False, meaning that the data will be returned inclusive of the first line. If set to True, the data will be returned exclusive of the first line.
    - in_line_separator -- The string used to separate records.
    - in_quote_char -- The string used to quote a specific field.
    - in_record_separator -- The string used to separate records.
    - input_format -- Serialization type of the data currently stored in the blob. The default is to treat the blob data as CSV data formatted in the default dialect.The blob data will be reformatted according to that profile when blob format is specified. If you choose `json`, please specify `Output Json Text Configuration Arguments` accordingly; If you choose `csv`, please specify `Output Delimited Text Configuration Arguments`.
    - lease_id -- Required if the blob has an active lease.
    - out_column_separator -- The string used to separate columns.
    - out_escape_char -- The string used as an escape character. Default to empty.
    - out_has_header -- Whether the blob data includes headers in the first line. The default value is False, meaning that the data will be returned inclusive of the first line. If set to True, the data will be returned exclusive of the first line.
    - out_line_separator -- The string used to separate records.
    - out_quote_char -- The string used to quote a specific field.
    - out_record_separator -- The string used to separate records.
    - output_format -- Output serialization type for the data stream. By default the data will be returned as it is represented in the blob. By providing an output format, the blob data will be reformatted according to that profile. If you choose `json`, please specify `Output Json Text Configuration Arguments` accordingly; If you choose `csv`, please specify `Output Delimited Text Configuration Arguments`.
    - result_file -- Specify the file path to save result.
    - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN
    - tags_condition -- Specify a SQL where clause on blob tags to operate only on blobs with a matching value.
    - timeout -- Request timeout in seconds. Applies to each call to the service.
    
Enable users to select/project on blob or blob snapshot data by providing simple query expressions.
Required Parameters:
container_name -- The container name.
name -- The blob name.
query_expression -- The query expression in SQL. The maximum size of the query expression is 256KiB.

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
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.
Enable users to select / project on blob or blob snapshot data by providing simple query expressions . Required Parameters : container_name -- The container name . name -- The blob name . query_expression -- The query expression in SQL . The maximum size of the query expression is 256KiB . 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 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 query(container_name, name, query_expression, account_key=None, account_name=None, auth_mode=None, connection_string=None, if_match=None, if_modified_since=None, if_none_match=None, if_unmodified_since=None, in_column_separator=None, in_escape_char=None, in_has_header=None, in_line_separator=None, in_quote_char=None, in_record_separator=None, input_format=None, lease_id=None, out_column_separator=None, out_escape_char=None, out_has_header=None, out_line_separator=None, out_quote_char=None, out_record_separator=None, output_format=None, result_file=None, sas_token=None, tags_condition=None, timeout=None):
    return _call_az("az storage blob query", locals())
def query ( container_name , name , query_expression , account_key = None , account_name = None , auth_mode = None , connection_string = None , if_match = None , if_modified_since = None , if_none_match = None , if_unmodified_since = None , in_column_separator = None , in_escape_char = None , in_has_header = None , in_line_separator = None , in_quote_char = None , in_record_separator = None , input_format = None , lease_id = None , out_column_separator = None , out_escape_char = None , out_has_header = None , out_line_separator = None , out_quote_char = None , out_record_separator = None , output_format = None , result_file = None , sas_token = None , tags_condition = None , timeout = None ) : return _call_az ( "az storage blob query" , locals ( ) )
Enable users to select/project on blob or blob snapshot data by providing simple query expressions.
Enable users to select / project on blob or blob snapshot data by providing simple query expressions .
'''
    Enable users to select/project on blob or blob snapshot data by providing simple query expressions.

    Required Parameters:
    - container_name -- The container name.
    - name -- The blob name.
    - query_expression -- The query expression in SQL. The maximum size of the query expression is 256KiB. For more information about the expression syntax, please see https://docs.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference

    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
    - 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')
    - in_column_separator -- The string used to separate columns.
    - in_escape_char -- The string used as an escape character. Default to empty.
    - in_has_header -- Whether the blob data includes headers in the first line. The default value is False, meaning that the data will be returned inclusive of the first line. If set to True, the data will be returned exclusive of the first line.
    - in_line_separator -- The string used to separate records.
    - in_quote_char -- The string used to quote a specific field.
    - in_record_separator -- The string used to separate records.
    - input_format -- Serialization type of the data currently stored in the blob. The default is to treat the blob data as CSV data formatted in the default dialect.The blob data will be reformatted according to that profile when blob format is specified. If you choose `json`, please specify `Output Json Text Configuration Arguments` accordingly; If you choose `csv`, please specify `Output Delimited Text Configuration Arguments`.
    - lease_id -- Required if the blob has an active lease.
    - out_column_separator -- The string used to separate columns.
    - out_escape_char -- The string used as an escape character. Default to empty.
    - out_has_header -- Whether the blob data includes headers in the first line. The default value is False, meaning that the data will be returned inclusive of the first line. If set to True, the data will be returned exclusive of the first line.
    - out_line_separator -- The string used to separate records.
    - out_quote_char -- The string used to quote a specific field.
    - out_record_separator -- The string used to separate records.
    - output_format -- Output serialization type for the data stream. By default the data will be returned as it is represented in the blob. By providing an output format, the blob data will be reformatted according to that profile. If you choose `json`, please specify `Output Json Text Configuration Arguments` accordingly; If you choose `csv`, please specify `Output Delimited Text Configuration Arguments`.
    - result_file -- Specify the file path to save result.
    - sas_token -- A Shared Access Signature (SAS). Must be used in conjunction with storage account name. Environment variable: AZURE_STORAGE_SAS_TOKEN
    - tags_condition -- Specify a SQL where clause on blob tags to operate only on blobs with a matching value.
    - timeout -- Request timeout in seconds. Applies to each call to the service.
    '''
container_name
name
query_expression
account_key
account_name
auth_mode
connection_string
if_match
if_modified_since
if_none_match
if_unmodified_since
in_column_separator
in_escape_char
in_has_header
in_line_separator
in_quote_char
in_record_separator
input_format
lease_id
out_column_separator
out_escape_char
out_has_header
out_line_separator
out_quote_char
out_record_separator
output_format
result_file
sas_token
tags_condition
timeout