This commit is contained in:
Srinath Narayanan 2019-10-25 13:40:36 -07:00
Родитель b3079ffb36
Коммит 26247d6d34
6 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@ -73,7 +73,7 @@ class _HTTPClient(object):
:param HTTPRequest request:
The request to serialize and send.
:return: An HTTPResponse containing the parsed HTTP response.
:rtype: :class:`~azure.cosmosdb.common._http.HTTPResponse`
:rtype: :class:`~azure.cosmosdb.table.common._http.HTTPResponse`
'''
# Verify the body is in bytes or either a file-like/stream object
if request.body:

Просмотреть файл

@ -111,9 +111,9 @@ class RetryContext(object):
whether and how to retry. This context is stored across retries and may be
used to store other information relevant to the retry strategy.
:ivar ~azure.cosmosdb.common._http.HTTPRequest request:
:ivar ~azure.cosmosdb.table.common._http.HTTPRequest request:
The request sent to the storage service.
:ivar ~azure.cosmosdb.common._http.HTTPResponse response:
:ivar ~azure.cosmosdb.table.common._http.HTTPResponse response:
The response returned by the storage service.
:ivar LocationMode location_mode:
The location the request was sent to.

Просмотреть файл

@ -81,7 +81,7 @@ class SharedAccessSignature(object):
restricts the request to those IP addresses.
:param str protocol:
Specifies the protocol permitted for a request made. The default value
is https,http. See :class:`~azure.cosmosdb.common.models.Protocol` for possible values.
is https,http. See :class:`~azure.cosmosdb.table.common.models.Protocol` for possible values.
'''
sas = _SharedAccessHelper()
sas.add_base(permission, expiry, start, ip, protocol, self.x_ms_version)

Просмотреть файл

@ -90,10 +90,10 @@ class StorageClient(object):
reading from secondary.
:ivar function(context) retry:
A function which determines whether to retry. Takes as a parameter a
:class:`~azure.cosmosdb.common.models.RetryContext` object. Returns the number
:class:`~azure.cosmosdb.table.common.models.RetryContext` object. Returns the number
of seconds to wait before retrying the request, or None to indicate not
to retry.
:ivar ~azure.cosmosdb.common.models.LocationMode location_mode:
:ivar ~azure.cosmosdb.table.common.models.LocationMode location_mode:
The host location to use to make requests. Defaults to LocationMode.PRIMARY.
Note that this setting only applies to RA-GRS accounts as other account
types do not allow reading from secondary. If the location_mode is set to

Просмотреть файл

@ -85,7 +85,7 @@ class TableSharedAccessSignature(SharedAccessSignature):
restricts the request to those IP addresses.
:param str protocol:
Specifies the protocol permitted for a request made. The default value
is https,http. See :class:`~azure.cosmosdb.common.models.Protocol` for possible values.
is https,http. See :class:`~azure.cosmosdb.table.common.models.Protocol` for possible values.
:param str start_pk:
The minimum partition key accessible with this shared access
signature. startpk must accompany startrk. Key values are inclusive.

Просмотреть файл

@ -236,7 +236,7 @@ class TableService(StorageClient):
restricts the request to those IP addresses.
:param str protocol:
Specifies the protocol permitted for a request made. The default value
is https,http. See :class:`~azure.cosmosdb.common.models.Protocol` for possible values.
is https,http. See :class:`~azure.cosmosdb.table.common.models.Protocol` for possible values.
:return: A Shared Access Signature (sas) token.
:rtype: str
'''
@ -290,7 +290,7 @@ class TableService(StorageClient):
restricts the request to those IP addresses.
:param str protocol:
Specifies the protocol permitted for a request made. The default value
is https,http. See :class:`~azure.cosmosdb.common.models.Protocol` for possible values.
is https,http. See :class:`~azure.cosmosdb.table.common.models.Protocol` for possible values.
:param str start_pk:
The minimum partition key accessible with this shared access
signature. startpk must accompany startrk. Key values are inclusive.
@ -354,7 +354,7 @@ class TableService(StorageClient):
:param int timeout:
The timeout parameter is expressed in seconds.
:return: The table service stats.
:rtype: :class:`~azure.cosmosdb.common.models.ServiceStats`
:rtype: :class:`~azure.cosmosdb.table.common.models.ServiceStats`
'''
request = HTTPRequest()
request.method = 'GET'
@ -376,7 +376,7 @@ class TableService(StorageClient):
:param int timeout:
The server timeout, expressed in seconds.
:return: The table service properties.
:rtype: :class:`~azure.cosmosdb.common.models.ServiceProperties`
:rtype: :class:`~azure.cosmosdb.table.common.models.ServiceProperties`
'''
request = HTTPRequest()
request.method = 'GET'
@ -413,7 +413,7 @@ class TableService(StorageClient):
and CORS will be disabled for the service. For detailed information
about CORS rules and evaluation logic, see
https://msdn.microsoft.com/en-us/library/azure/dn535601.aspx.
:type cors: list(:class:`~azure.cosmosdb.common.models.CorsRule`)
:type cors: list(:class:`~azure.cosmosdb.table.common.models.CorsRule`)
:param int timeout:
The server timeout, expressed in seconds.
'''
@ -455,8 +455,8 @@ class TableService(StorageClient):
The server timeout, expressed in seconds. This function may make multiple
calls to the service in which case the timeout value specified will be
applied to each individual call.
:return: A generator which produces :class:`~azure.cosmosdb.common.models.table.Table` objects.
:rtype: :class:`~azure.cosmosdb.common.models.ListGenerator`:
:return: A generator which produces :class:`~azure.cosmosdb.table.common.models.table.Table` objects.
:rtype: :class:`~azure.cosmosdb.table.common.models.ListGenerator`:
'''
operation_context = _OperationContext(location_lock=True)
kwargs = {'max_results': num_results, 'marker': marker, 'timeout': timeout,
@ -485,7 +485,7 @@ class TableService(StorageClient):
:param int timeout:
The server timeout, expressed in seconds.
:return: A list of tables, potentially with a next_marker property.
:rtype: list(:class:`~azure.cosmosdb.common.models.table.Table`)
:rtype: list(:class:`~azure.cosmosdb.table.common.models.table.Table`)
'''
request = HTTPRequest()
request.method = 'GET'
@ -620,7 +620,7 @@ class TableService(StorageClient):
:param int timeout:
The server timeout, expressed in seconds.
:return: A dictionary of access policies associated with the table.
:rtype: dict(str, :class:`~azure.cosmosdb.common.models.AccessPolicy`)
:rtype: dict(str, :class:`~azure.cosmosdb.table.common.models.AccessPolicy`)
'''
_validate_not_none('table_name', table_name)
request = HTTPRequest()
@ -656,7 +656,7 @@ class TableService(StorageClient):
A dictionary of access policies to associate with the table. The
dictionary may contain up to 5 elements. An empty dictionary
will clear the access policies set on the service.
:type signed_identifiers: dict(str, :class:`~azure.cosmosdb.common.models.AccessPolicy`)
:type signed_identifiers: dict(str, :class:`~azure.cosmosdb.table.common.models.AccessPolicy`)
:param int timeout:
The server timeout, expressed in seconds.
'''
@ -722,7 +722,7 @@ class TableService(StorageClient):
calls to the service in which case the timeout value specified will be
applied to each individual call.
:return: A generator which produces :class:`~azure.storage.table.models.Entity` objects.
:rtype: :class:`~azure.cosmosdb.common.models.ListGenerator`
:rtype: :class:`~azure.cosmosdb.table.common.models.ListGenerator`
'''
operation_context = _OperationContext(location_lock=True)