@@ -55,7 +55,7 @@ def __init__(self, api, max_upload_workers=10, max_copy_workers=10):
5555 """
5656 Initialize Services object using given session.
5757
58- :param b2sdk.v1 .B2Api api:
58+ :param b2sdk.v2 .B2Api api:
5959 :param int max_upload_workers: a number of upload threads
6060 :param int max_copy_workers: a number of copy threads
6161 """
@@ -72,7 +72,7 @@ class B2Api(metaclass=B2TraceMeta):
7272 """
7373 Provide file-level access to B2 services.
7474
75- While :class:`b2sdk.v1 .B2RawHTTPApi` provides direct access to the B2 web APIs, this
75+ While :class:`b2sdk.v2 .B2RawHTTPApi` provides direct access to the B2 web APIs, this
7676 class handles several things that simplify the task of uploading
7777 and downloading files:
7878
@@ -107,7 +107,7 @@ def __init__(
107107 Initialize the API using the given account info.
108108
109109 :param account_info: To learn more about Account Info objects, see here
110- :class:`~b2sdk.v1 .SqliteAccountInfo`
110+ :class:`~b2sdk.v2 .SqliteAccountInfo`
111111
112112 :param cache: It is used by B2Api to cache the mapping between bucket name and bucket ids.
113113 default is :class:`~b2sdk.cache.DummyCache`
@@ -189,10 +189,10 @@ def create_bucket(
189189 :param dict bucket_info: additional bucket info to store with the bucket
190190 :param dict cors_rules: bucket CORS rules to store with the bucket
191191 :param dict lifecycle_rules: bucket lifecycle rules to store with the bucket
192- :param b2sdk.v1 .EncryptionSetting default_server_side_encryption: default server side encryption settings (``None`` if unknown)
192+ :param b2sdk.v2 .EncryptionSetting default_server_side_encryption: default server side encryption settings (``None`` if unknown)
193193 :param bool is_file_lock_enabled: boolean value specifies whether bucket is File Lock-enabled
194194 :return: a Bucket object
195- :rtype: b2sdk.v1 .Bucket
195+ :rtype: b2sdk.v2 .Bucket
196196 """
197197 account_id = self .account_info .get_account_id ()
198198
@@ -269,7 +269,7 @@ def update_file_legal_hold(
269269 def get_bucket_by_id (self , bucket_id : str ) -> Bucket :
270270 """
271271 Return the Bucket matching the given bucket_id.
272- :raises b2sdk.v1 .exception.NonExistentBucket : if the bucket does not exist in the account
272+ :raises b2sdk.v2 .exception.BucketIdNotFound : if the bucket does not exist in the account
273273 """
274274 # Give a useful warning if the current application key does not
275275 # allow access to bucket.
@@ -294,8 +294,8 @@ def get_bucket_by_name(self, bucket_name):
294294
295295 :param str bucket_name: the name of the bucket to return
296296 :return: a Bucket object
297- :rtype: b2sdk.v1 .Bucket
298- :raises b2sdk.v1 .exception.NonExistentBucket: if the bucket does not exist in the account
297+ :rtype: b2sdk.v2 .Bucket
298+ :raises b2sdk.v2 .exception.NonExistentBucket: if the bucket does not exist in the account
299299 """
300300 # Give a useful warning if the current application key does not
301301 # allow access to the named bucket.
@@ -318,7 +318,7 @@ def delete_bucket(self, bucket):
318318 """
319319 Delete a chosen bucket.
320320
321- :param b2sdk.v1 .Bucket bucket: a :term:`bucket` to delete
321+ :param b2sdk.v2 .Bucket bucket: a :term:`bucket` to delete
322322 :rtype: None
323323 """
324324 account_id = self .account_info .get_account_id ()
@@ -336,7 +336,7 @@ def list_buckets(self, bucket_name=None, bucket_id=None):
336336
337337 :param str bucket_name: the name of the one bucket to return
338338 :param str bucket_id: the ID of the one bucket to return
339- :rtype: list[b2sdk.v1 .Bucket]
339+ :rtype: list[b2sdk.v2 .Bucket]
340340 """
341341 # Give a useful warning if the current application key does not
342342 # allow access to the named bucket.
@@ -367,7 +367,7 @@ def list_buckets(self, bucket_name=None, bucket_id=None):
367367
368368 def list_parts (self , file_id , start_part_number = None , batch_size = None ):
369369 """
370- Generator that yields a :py:class:`b2sdk.v1 .Part` for each of the parts that have been uploaded.
370+ Generator that yields a :py:class:`b2sdk.v2 .Part` for each of the parts that have been uploaded.
371371
372372 :param str file_id: the ID of the large file that is not finished
373373 :param int start_part_number: the first part number to return; defaults to the first part
@@ -507,9 +507,9 @@ def check_bucket_name_restrictions(self, bucket_name: str):
507507 Check to see if the allowed field from authorize-account has a bucket restriction.
508508
509509 If it does, checks if the bucket_name for a given api call matches that.
510- If not, it raises a :py:exc:`b2sdk.v1 .exception.RestrictedBucket` error.
510+ If not, it raises a :py:exc:`b2sdk.v2 .exception.RestrictedBucket` error.
511511
512- :raises b2sdk.v1 .exception.RestrictedBucket: if the account is not allowed to use this bucket
512+ :raises b2sdk.v2 .exception.RestrictedBucket: if the account is not allowed to use this bucket
513513 """
514514 self ._check_bucket_restrictions ('bucketName' , bucket_name )
515515
@@ -518,9 +518,9 @@ def check_bucket_id_restrictions(self, bucket_id: str):
518518 Check to see if the allowed field from authorize-account has a bucket restriction.
519519
520520 If it does, checks if the bucket_id for a given api call matches that.
521- If not, it raises a :py:exc:`b2sdk.v1 .exception.RestrictedBucket` error.
521+ If not, it raises a :py:exc:`b2sdk.v2 .exception.RestrictedBucket` error.
522522
523- :raises b2sdk.v1 .exception.RestrictedBucket: if the account is not allowed to use this bucket
523+ :raises b2sdk.v2 .exception.RestrictedBucket: if the account is not allowed to use this bucket
524524 """
525525 self ._check_bucket_restrictions ('bucketId' , bucket_id )
526526
0 commit comments