10
10
from six import raise_from
11
11
from six .moves .urllib_parse import urlparse
12
12
13
- from ._models import KeyVaultBackupOperation
13
+ from ._models import KeyVaultBackupResult
14
14
from ._internal import KeyVaultClientBase , parse_folder_url
15
15
from ._internal .polling import KeyVaultBackupClientPolling , KeyVaultBackupClientPollingMethod
16
16
@@ -36,16 +36,16 @@ class KeyVaultBackupClient(KeyVaultClientBase):
36
36
37
37
# pylint:disable=protected-access
38
38
def begin_backup (self , blob_storage_url , sas_token , ** kwargs ):
39
- # type: (str, str, **Any) -> LROPoller[KeyVaultBackupOperation ]
39
+ # type: (str, str, **Any) -> LROPoller[KeyVaultBackupResult ]
40
40
"""Begin a full backup of the Key Vault.
41
41
42
42
:param str blob_storage_url: URL of the blob storage container in which the backup will be stored, for example
43
43
https://<account>.blob.core.windows.net/backup
44
44
:param str sas_token: a Shared Access Signature (SAS) token authorizing access to the blob storage resource
45
45
:keyword str continuation_token: a continuation token to restart polling from a saved state
46
46
: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 ]
49
49
50
50
Example:
51
51
.. literalinclude:: ../tests/test_examples_administration.py
@@ -83,7 +83,7 @@ def begin_backup(self, blob_storage_url, sas_token, **kwargs):
83
83
return self ._client .begin_full_backup (
84
84
vault_base_url = self ._vault_url ,
85
85
azure_storage_blob_container_uri = sas_parameter ,
86
- cls = KeyVaultBackupOperation ._from_generated ,
86
+ cls = KeyVaultBackupResult ._from_generated ,
87
87
continuation_token = status_response ,
88
88
polling = KeyVaultBackupClientPollingMethod (
89
89
lro_algorithms = [KeyVaultBackupClientPolling ()], timeout = polling_interval , ** kwargs
@@ -98,7 +98,7 @@ def begin_restore(self, folder_url, sas_token, **kwargs):
98
98
This method restores either a complete Key Vault backup or when ``key_name`` has a value, a single key.
99
99
100
100
: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
102
102
https://<account>.blob.core.windows.net/backup/mhsm-account-2020090117323313
103
103
:param str sas_token: a Shared Access Signature (SAS) token authorizing access to the blob storage resource
104
104
:keyword str continuation_token: a continuation token to restart polling from a saved state
0 commit comments