1010from six import raise_from
1111from six .moves .urllib_parse import urlparse
1212
13- from ._models import KeyVaultBackupOperation
13+ from ._models import KeyVaultBackupResult
1414from ._internal import KeyVaultClientBase , parse_folder_url
1515from ._internal .polling import KeyVaultBackupClientPolling , KeyVaultBackupClientPollingMethod
1616
@@ -36,16 +36,16 @@ class KeyVaultBackupClient(KeyVaultClientBase):
3636
3737 # pylint:disable=protected-access
3838 def begin_backup (self , blob_storage_url , sas_token , ** kwargs ):
39- # type: (str, str, **Any) -> LROPoller[KeyVaultBackupOperation ]
39+ # type: (str, str, **Any) -> LROPoller[KeyVaultBackupResult ]
4040 """Begin a full backup of the Key Vault.
4141
4242 :param str blob_storage_url: URL of the blob storage container in which the backup will be stored, for example
4343 https://<account>.blob.core.windows.net/backup
4444 :param str sas_token: a Shared Access Signature (SAS) token authorizing access to the blob storage resource
4545 :keyword str continuation_token: a continuation token to restart polling from a saved state
4646 :returns: An :class:`~azure.core.polling.LROPoller` instance. Call `result()` on this object to wait for the
47- operation to complete and get a :class:`KeyVaultBackupOperation `.
48- :rtype: ~azure.core.polling.LROPoller[~azure.keyvault.administration.KeyVaultBackupOperation ]
47+ operation to complete and get a :class:`KeyVaultBackupResult `.
48+ :rtype: ~azure.core.polling.LROPoller[~azure.keyvault.administration.KeyVaultBackupResult ]
4949
5050 Example:
5151 .. literalinclude:: ../tests/test_examples_administration.py
@@ -83,7 +83,7 @@ def begin_backup(self, blob_storage_url, sas_token, **kwargs):
8383 return self ._client .begin_full_backup (
8484 vault_base_url = self ._vault_url ,
8585 azure_storage_blob_container_uri = sas_parameter ,
86- cls = KeyVaultBackupOperation ._from_generated ,
86+ cls = KeyVaultBackupResult ._from_generated ,
8787 continuation_token = status_response ,
8888 polling = KeyVaultBackupClientPollingMethod (
8989 lro_algorithms = [KeyVaultBackupClientPolling ()], timeout = polling_interval , ** kwargs
@@ -98,7 +98,7 @@ def begin_restore(self, folder_url, sas_token, **kwargs):
9898 This method restores either a complete Key Vault backup or when ``key_name`` has a value, a single key.
9999
100100 :param str folder_url: URL of the blob holding the backup. This would be the `folder_url` of a
101- :class:`KeyVaultBackupOperation ` returned by :func:`begin_backup`, for example
101+ :class:`KeyVaultBackupResult ` returned by :func:`begin_backup`, for example
102102 https://<account>.blob.core.windows.net/backup/mhsm-account-2020090117323313
103103 :param str sas_token: a Shared Access Signature (SAS) token authorizing access to the blob storage resource
104104 :keyword str continuation_token: a continuation token to restart polling from a saved state
0 commit comments