Skip to content

Commit a94c363

Browse files
authored
KeyVaultBackupOperation -> KeyVaultBackupResult (Azure#19284)
1 parent 16185c2 commit a94c363

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ._enums import KeyVaultRoleScope, KeyVaultDataAction
88
from ._internal.client_base import ApiVersion
99
from ._models import (
10-
KeyVaultBackupOperation,
10+
KeyVaultBackupResult,
1111
KeyVaultPermission,
1212
KeyVaultRoleAssignment,
1313
KeyVaultRoleAssignmentProperties,
@@ -17,7 +17,7 @@
1717

1818
__all__ = [
1919
"ApiVersion",
20-
"KeyVaultBackupOperation",
20+
"KeyVaultBackupResult",
2121
"KeyVaultAccessControlClient",
2222
"KeyVaultBackupClient",
2323
"KeyVaultDataAction",

sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_backup_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from six import raise_from
1111
from six.moves.urllib_parse import urlparse
1212

13-
from ._models import KeyVaultBackupOperation
13+
from ._models import KeyVaultBackupResult
1414
from ._internal import KeyVaultClientBase, parse_folder_url
1515
from ._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

sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def _from_generated(cls, definition):
142142
)
143143

144144

145-
class KeyVaultBackupOperation(object):
146-
"""A Key Vault full backup operation
145+
class KeyVaultBackupResult(object):
146+
"""A Key Vault full backup operation result
147147
148148
:ivar str folder_url: URL of the Azure Blob Storage container containing the backup
149149
"""

sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/aio/_backup_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .._internal import AsyncKeyVaultClientBase, parse_folder_url
1212
from .._internal.async_polling import KeyVaultAsyncBackupClientPollingMethod
1313
from .._internal.polling import KeyVaultBackupClientPolling
14-
from .._models import KeyVaultBackupOperation
14+
from .._models import KeyVaultBackupResult
1515

1616
if TYPE_CHECKING:
1717
# pylint:disable=unused-import
@@ -30,15 +30,15 @@ class KeyVaultBackupClient(AsyncKeyVaultClientBase):
3030
# pylint:disable=protected-access
3131
async def begin_backup(
3232
self, blob_storage_url: str, sas_token: str, **kwargs: "Any"
33-
) -> "AsyncLROPoller[KeyVaultBackupOperation]":
33+
) -> "AsyncLROPoller[KeyVaultBackupResult]":
3434
"""Begin a full backup of the Key Vault.
3535
3636
:param str blob_storage_url: URL of the blob storage container in which the backup will be stored, for example
3737
https://<account>.blob.core.windows.net/backup
3838
:param str sas_token: a Shared Access Signature (SAS) token authorizing access to the blob storage resource
3939
:keyword str continuation_token: a continuation token to restart polling from a saved state
40-
:returns: An AsyncLROPoller. Call `result()` on this object to get a :class:`KeyVaultBackupOperation`.
41-
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.keyvault.administration.KeyVaultBackupOperation]
40+
:returns: An AsyncLROPoller. Call `result()` on this object to get a :class:`KeyVaultBackupResult`.
41+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.keyvault.administration.KeyVaultBackupResult]
4242
4343
Example:
4444
.. literalinclude:: ../tests/test_examples_administration_async.py
@@ -73,7 +73,7 @@ async def begin_backup(
7373
return await self._client.begin_full_backup(
7474
vault_base_url=self._vault_url,
7575
azure_storage_blob_container_uri=sas_parameter,
76-
cls=KeyVaultBackupOperation._from_generated,
76+
cls=KeyVaultBackupResult._from_generated,
7777
continuation_token=status_response,
7878
polling=KeyVaultAsyncBackupClientPollingMethod(
7979
lro_algorithms=[KeyVaultBackupClientPolling()], timeout=polling_interval, **kwargs
@@ -87,7 +87,7 @@ async def begin_restore(self, folder_url: str, sas_token: str, **kwargs: "Any")
8787
This method restores either a complete Key Vault backup or when ``key_name`` has a value, a single key.
8888
8989
:param str folder_url: URL for the blob storage resource, including the path to the blob holding the
90-
backup. This would be the `folder_url` of a :class:`KeyVaultBackupOperation` returned by
90+
backup. This would be the `folder_url` of a :class:`KeyVaultBackupResult` returned by
9191
:func:`begin_backup`, for example
9292
https://<account>.blob.core.windows.net/backup/mhsm-account-2020090117323313
9393
:param str sas_token: a Shared Access Signature (SAS) token authorizing access to the blob storage resource

0 commit comments

Comments
 (0)