Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regenerate code #11964

Merged
merged 2 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
regenerate code
  • Loading branch information
xiafu-msft committed Jun 10, 2020
commit 1617581ae5d5a19d309c033f925898834498cda7
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ async def create(self, content_length, timeout=None, metadata=None, request_id=N
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

# Construct URL
url = self.create.metadata['url']
Expand Down Expand Up @@ -185,6 +188,8 @@ async def create(self, content_length, timeout=None, metadata=None, request_id=N
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct and send request
request = self._client.put(url, query_parameters, header_parameters)
Expand Down Expand Up @@ -295,6 +300,9 @@ async def append_block(self, body, content_length, timeout=None, transactional_c
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

comp = "appendblock"

Expand Down Expand Up @@ -344,6 +352,8 @@ async def append_block(self, body, content_length, timeout=None, transactional_c
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct body

Expand Down Expand Up @@ -468,6 +478,9 @@ async def append_block_from_url(self, source_url, content_length, source_range=N
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags
source_if_modified_since = None
if source_modified_access_conditions is not None:
source_if_modified_since = source_modified_access_conditions.source_if_modified_since
Expand Down Expand Up @@ -533,6 +546,8 @@ async def append_block_from_url(self, source_url, content_length, source_range=N
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')
if source_if_modified_since is not None:
header_parameters['x-ms-source-if-modified-since'] = self._serialize.header("source_if_modified_since", source_if_modified_since, 'rfc-1123')
if source_if_unmodified_since is not None:
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ async def upload(self, body, content_length, timeout=None, transactional_content
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

# Construct URL
url = self.upload.metadata['url']
Expand Down Expand Up @@ -204,6 +207,8 @@ async def upload(self, body, content_length, timeout=None, transactional_content
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct body

Expand Down Expand Up @@ -622,6 +627,9 @@ async def commit_block_list(self, blocks, timeout=None, transactional_content_md
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

comp = "blocklist"

Expand Down Expand Up @@ -684,6 +692,8 @@ async def commit_block_list(self, blocks, timeout=None, transactional_content_md
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct body
body_content = self._serialize.body(blocks, 'BlockLookupList')
Expand Down Expand Up @@ -716,7 +726,7 @@ async def commit_block_list(self, blocks, timeout=None, transactional_content_md
return cls(response, None, response_headers)
commit_block_list.metadata = {'url': '/{containerName}/{blob}'}

async def get_block_list(self, list_type="committed", snapshot=None, timeout=None, request_id=None, lease_access_conditions=None, *, cls=None, **kwargs):
async def get_block_list(self, list_type="committed", snapshot=None, timeout=None, request_id=None, lease_access_conditions=None, modified_access_conditions=None, *, cls=None, **kwargs):
"""The Get Block List operation retrieves the list of blocks that have
been uploaded as part of a block blob.

Expand All @@ -743,6 +753,10 @@ async def get_block_list(self, list_type="committed", snapshot=None, timeout=Non
operation
:type lease_access_conditions:
~azure.storage.blob.models.LeaseAccessConditions
:param modified_access_conditions: Additional parameters for the
operation
:type modified_access_conditions:
~azure.storage.blob.models.ModifiedAccessConditions
:param callable cls: A custom type or function that will be passed the
direct response
:return: BlockList or the result of cls(response)
Expand All @@ -754,6 +768,9 @@ async def get_block_list(self, list_type="committed", snapshot=None, timeout=Non
lease_id = None
if lease_access_conditions is not None:
lease_id = lease_access_conditions.lease_id
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

comp = "blocklist"

Expand Down Expand Up @@ -781,6 +798,8 @@ async def get_block_list(self, list_type="committed", snapshot=None, timeout=Non
header_parameters['x-ms-client-request-id'] = self._serialize.header("request_id", request_id, 'str')
if lease_id is not None:
header_parameters['x-ms-lease-id'] = self._serialize.header("lease_id", lease_id, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ async def rename(self, rename_source, timeout=None, marker=None, path_rename_mod
default umask - 0027 will be used.
:type posix_umask: str
:param source_lease_id: A lease ID for the source path. If specified,
the source path must have an active lease and the leaase ID must
match.
the source path must have an active lease and the lease ID must match.
:type source_lease_id: str
:param request_id: Provides a client-generated, opaque value with a 1
KB character limit that is recorded in the analytics logs when storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ async def create(self, content_length, blob_content_length, timeout=None, tier=N
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

# Construct URL
url = self.create.metadata['url']
Expand Down Expand Up @@ -203,6 +206,8 @@ async def create(self, content_length, blob_content_length, timeout=None, tier=N
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct and send request
request = self._client.put(url, query_parameters, header_parameters)
Expand Down Expand Up @@ -316,6 +321,9 @@ async def upload_pages(self, body, content_length, transactional_content_md5=Non
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

comp = "page"
page_write = "update"
Expand Down Expand Up @@ -371,6 +379,8 @@ async def upload_pages(self, body, content_length, transactional_content_md5=Non
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct body

Expand Down Expand Up @@ -649,6 +659,9 @@ async def upload_pages_from_url(self, source_url, source_range, content_length,
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags
source_if_modified_since = None
if source_modified_access_conditions is not None:
source_if_modified_since = source_modified_access_conditions.source_if_modified_since
Expand Down Expand Up @@ -716,6 +729,8 @@ async def upload_pages_from_url(self, source_url, source_range, content_length,
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')
if source_if_modified_since is not None:
header_parameters['x-ms-source-if-modified-since'] = self._serialize.header("source_if_modified_since", source_if_modified_since, 'rfc-1123')
if source_if_unmodified_since is not None:
Expand Down Expand Up @@ -805,6 +820,9 @@ async def get_page_ranges(self, snapshot=None, timeout=None, range=None, request
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

comp = "pagelist"

Expand Down Expand Up @@ -841,6 +859,8 @@ async def get_page_ranges(self, snapshot=None, timeout=None, range=None, request
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
Expand Down Expand Up @@ -941,6 +961,9 @@ async def get_page_ranges_diff(self, snapshot=None, timeout=None, prevsnapshot=N
if_none_match = None
if modified_access_conditions is not None:
if_none_match = modified_access_conditions.if_none_match
if_tags = None
if modified_access_conditions is not None:
if_tags = modified_access_conditions.if_tags

comp = "pagelist"

Expand Down Expand Up @@ -981,6 +1004,8 @@ async def get_page_ranges_diff(self, snapshot=None, timeout=None, prevsnapshot=N
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
if if_none_match is not None:
header_parameters['If-None-Match'] = self._serialize.header("if_none_match", if_none_match, 'str')
if if_tags is not None:
header_parameters['x-ms-if-tags'] = self._serialize.header("if_tags", if_tags, 'str')

# Construct and send request
request = self._client.get(url, query_parameters, header_parameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ._models_py3 import BlobItemInternal
from ._models_py3 import BlobMetadata
from ._models_py3 import BlobPrefix
from ._models_py3 import BlobProperties
from ._models_py3 import BlobPropertiesInternal
from ._models_py3 import BlobTag
from ._models_py3 import BlobTags
from ._models_py3 import Block
Expand Down Expand Up @@ -49,9 +49,9 @@
from ._models_py3 import ModifiedAccessConditions
from ._models_py3 import PageList
from ._models_py3 import PageRange
from ._models_py3 import QueryFormat
from ._models_py3 import QueryRequest
from ._models_py3 import QuickQueryFormat
from ._models_py3 import QuickQuerySerialization
from ._models_py3 import QuerySerialization
from ._models_py3 import RetentionPolicy
from ._models_py3 import SequenceNumberAccessConditions
from ._models_py3 import SignedIdentifier
Expand All @@ -70,7 +70,7 @@
from ._models import BlobItemInternal
from ._models import BlobMetadata
from ._models import BlobPrefix
from ._models import BlobProperties
from ._models import BlobPropertiesInternal
from ._models import BlobTag
from ._models import BlobTags
from ._models import Block
Expand Down Expand Up @@ -101,9 +101,9 @@
from ._models import ModifiedAccessConditions
from ._models import PageList
from ._models import PageRange
from ._models import QueryFormat
from ._models import QueryRequest
from ._models import QuickQueryFormat
from ._models import QuickQuerySerialization
from ._models import QuerySerialization
from ._models import RetentionPolicy
from ._models import SequenceNumberAccessConditions
from ._models import SignedIdentifier
Expand Down Expand Up @@ -134,7 +134,7 @@
PathRenameMode,
PremiumPageBlobAccessTier,
PublicAccessType,
QuickQueryFormatType,
QueryFormatType,
RehydratePriority,
SequenceNumberActionType,
SkuName,
Expand All @@ -151,7 +151,7 @@
'BlobItemInternal',
'BlobMetadata',
'BlobPrefix',
'BlobProperties',
'BlobPropertiesInternal',
'BlobTag',
'BlobTags',
'Block',
Expand Down Expand Up @@ -182,9 +182,9 @@
'ModifiedAccessConditions',
'PageList',
'PageRange',
'QueryFormat',
'QueryRequest',
'QuickQueryFormat',
'QuickQuerySerialization',
'QuerySerialization',
'RetentionPolicy',
'SequenceNumberAccessConditions',
'SignedIdentifier',
Expand All @@ -204,7 +204,7 @@
'BlobType',
'StorageErrorCode',
'GeoReplicationStatusType',
'QuickQueryFormatType',
'QueryFormatType',
'AccessTierRequired',
'AccessTierOptional',
'PremiumPageBlobAccessTier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class GeoReplicationStatusType(str, Enum):
unavailable = "unavailable"


class QuickQueryFormatType(str, Enum):
class QueryFormatType(str, Enum):

delimited = "delimited"
json = "json"
Expand Down
Loading