@@ -32,11 +32,10 @@ class CertificateClient(AsyncKeyVaultClientBase):
32
32
:param str vault_url: URL of the vault the client will access
33
33
:param credential: An object which can provide an access token for the vault, such as a credential from
34
34
:mod:`azure.identity.aio`
35
-
36
- Keyword arguments
37
- - **api_version**: version of the Key Vault API to use. Defaults to the most recent.
38
- - **transport**: :class:`~azure.core.pipeline.transport.AsyncHttpTransport` to use. Defaults to
39
- :class:`~azure.core.pipeline.transport.AioHttpTransport`.
35
+ :keyword str api_version: version of the Key Vault API to use. Defaults to the most recent.
36
+ :keyword transport: transport to use. Defaults to
37
+ :class:`~azure.core.pipeline.transport.AioHttpTransport`.
38
+ :paramtype transport: ~azure.core.pipeline.transport.AsyncHttpTransport
40
39
41
40
Example:
42
41
.. literalinclude:: ../tests/test_examples_certificates_async.py
@@ -61,16 +60,15 @@ async def create_certificate(
61
60
:param policy: The management policy for the certificate.
62
61
:type policy:
63
62
~azure.keyvault.certificates.models.CertificatePolicy
63
+ :keyword bool enabled: Whether the certificate is enabled for use.
64
+ :keyword tags: Application specific metadata in the form of key-value pairs.
65
+ :paramtype tags: dict[str, str]
64
66
:returns: A coroutine for the creation of the certificate. Awaiting the coroutine
65
67
returns the created KeyVaultCertificate if creation is successful, the CertificateOperation if not.
66
68
:rtype: ~azure.keyvault.certificates.models.KeyVaultCertificate or
67
69
~azure.keyvault.certificates.models.CertificateOperation
68
70
:raises: :class:`~azure.core.exceptions.HttpResponseError`
69
71
70
- Keyword arguments
71
- - *enabled (bool)* - Determines whether the object is enabled.
72
- - *tags (dict[str, str])* - Application specific metadata in the form of key-value pairs.
73
-
74
72
Example:
75
73
.. literalinclude:: ../tests/test_examples_certificates_async.py
76
74
:start-after: [START create_certificate]
@@ -251,7 +249,7 @@ async def recover_deleted_certificate(self, name: str, **kwargs: "**Any") -> Key
251
249
"""Recovers the deleted certificate back to its current version under
252
250
/certificates.
253
251
254
- Performs the reversal of the Delete operation. THe operation is applicable
252
+ Performs the reversal of the Delete operation. The operation is applicable
255
253
in vaults enabled for soft-delete, and must be issued during the retention
256
254
interval (available in the deleted certificate's attributes). This operation
257
255
requires the certificates/recover permission.
@@ -289,17 +287,16 @@ async def import_certificate(
289
287
:param str name: The name of the certificate.
290
288
:param bytes certificate_bytes: Bytes of the certificate object to import.
291
289
This certificate needs to contain the private key.
290
+ :keyword bool enabled: Whether the certificate is enabled for use.
291
+ :keyword tags: Application specific metadata in the form of key-value pairs.
292
+ :paramtype tags: dict[str, str]
293
+ :keyword str password: If the private key in the passed in certificate is encrypted, it
294
+ is the password used for encryption.
295
+ :keyword policy: The management policy for the certificate
296
+ :paramtype policy: ~azure.keyvault.certificates.models.CertificatePolicy
292
297
:returns: The imported KeyVaultCertificate
293
298
:rtype: ~azure.keyvault.certificates.models.KeyVaultCertificate
294
299
:raises: :class:`~azure.core.exceptions.HttpResponseError`
295
-
296
- Keyword arguments
297
- - *enabled (bool)* - Determines whether the object is enabled.
298
- - *tags (dict[str, str])* - Application specific metadata in the form of key-value pairs.
299
- - *password (str)* - If the private key in the passed in certificate is encrypted,
300
- it is the password used for encryption.
301
- - *policy (~azure.keyvault.certificates.models.CertificatePolicy)* - The management policy
302
- for the certificate.
303
300
"""
304
301
305
302
enabled = kwargs .pop ("enabled" , None )
@@ -375,14 +372,13 @@ async def update_certificate_properties(
375
372
376
373
:param str name: The name of the certificate in the given key vault.
377
374
:param str version: The version of the certificate.
375
+ :keyword bool enabled: Whether the certificate is enabled for use.
376
+ :keyword tags: Application specific metadata in the form of key-value pairs.
377
+ :paramtype tags: dict[str, str]
378
378
:returns: The updated KeyVaultCertificate
379
379
:rtype: ~azure.keyvault.certificates.models.KeyVaultCertificate
380
380
:raises: :class:`~azure.core.exceptions.HttpResponseError`
381
381
382
- Keyword arguments
383
- - *enabled (bool)* - Determines whether the object is enabled.
384
- - *tags (dict[str, str])* - Application specific metadata in the form of key-value pairs.
385
-
386
382
Example:
387
383
.. literalinclude:: ../tests/test_examples_certificates_async.py
388
384
:start-after: [START update_certificate]
@@ -471,15 +467,13 @@ def list_deleted_certificates(self, **kwargs: "**Any") -> AsyncIterable[DeletedC
471
467
deletion-specific information. This operation requires the certificates/get/list
472
468
permission. This operation can only be enabled on soft-delete enabled vaults.
473
469
470
+ :keyword bool include_pending: Specifies whether to include certificates which are
471
+ not completely deleted.
474
472
:return: An iterator like instance of DeletedCertificate
475
473
:rtype:
476
474
~azure.core.paging.ItemPaged[~azure.keyvault.certificates.models.DeletedCertificate]
477
475
:raises: :class:`~azure.core.exceptions.HttpResponseError`
478
476
479
- Keyword arguments
480
- - *include_pending (bool)* - Specifies whether to include certificates which are
481
- not completely deleted.
482
-
483
477
Example:
484
478
.. literalinclude:: ../tests/test_examples_certificates_async.py
485
479
:start-after: [START list_deleted_certificates]
@@ -505,15 +499,13 @@ def list_certificates(self, **kwargs: "**Any") -> AsyncIterable[CertificatePrope
505
499
in the key vault. This operation requires the
506
500
certificates/list permission.
507
501
502
+ :keyword bool include_pending: Specifies whether to include certificates which are not
503
+ completely provisioned.
508
504
:returns: An iterator like instance of CertificateProperties
509
505
:rtype:
510
506
~azure.core.paging.ItemPaged[~azure.keyvault.certificates.models.CertificateProperties]
511
507
:raises: :class:`~azure.core.exceptions.HttpResponseError`
512
508
513
- Keyword arguments
514
- - *include_pending (bool)* - Specifies whether to include certificates which are
515
- not completely provisioned.
516
-
517
509
Example:
518
510
.. literalinclude:: ../tests/test_examples_certificates_async.py
519
511
:start-after: [START list_certificates]
@@ -721,13 +713,12 @@ async def merge_certificate(
721
713
:param str name: The name of the certificate
722
714
:param x509_certificates: The certificate or the certificate chain to merge.
723
715
:type x509_certificates: list[bytearray]
716
+ :keyword bool enabled: Whether the certificate is enabled for use.
717
+ :keyword tags: Application specific metadata in the form of key-value pairs.
718
+ :paramtype tags: dict[str, str]
724
719
:return: The merged certificate operation
725
720
:rtype: ~azure.keyvault.certificates.models.CertificateOperation
726
721
:raises: :class:`~azure.core.exceptions.HttpResponseError`
727
-
728
- Keyword arguments
729
- - *enabled (bool)* - Determines whether the object is enabled.
730
- - *tags (dict[str, str])* - Application specific metadata in the form of key-value pairs.
731
722
"""
732
723
733
724
enabled = kwargs .pop ("enabled" , None )
@@ -784,18 +775,17 @@ async def create_issuer(
784
775
785
776
:param str name: The name of the issuer.
786
777
:param str provider: The issuer provider.
778
+ :keyword bool enabled: Whether the issuer is enabled for use.
779
+ :keyword str account_id: The user name/account name/account id.
780
+ :keyword str password: The password/secret/account key.
781
+ :keyword str organization_id: Id of the organization
782
+ :keyword admin_details: Details of the organization administrators of the
783
+ certificate issuer.
784
+ :paramtype admin_details: list[~azure.keyvault.certificates.models.AdministratorDetails]
787
785
:returns: The created CertificateIssuer
788
786
:rtype: ~azure.keyvault.certificates.models.CertificateIssuer
789
787
:raises: :class:`~azure.core.exceptions.HttpResponseError`
790
788
791
- Keyword arguments
792
- - *enabled (bool)* - Determines whether the object is enabled.
793
- - *account_id (str)* - The user name/account name/account id.
794
- - *password (str)* - The password/secret/account key.
795
- - *organization_id (str)* - Id of the organization.
796
- - *admin_details (list[~azure.keyvault.certificates.models.AdministratorDetails])*
797
- - Details of the organization administrators of the certificate issuer.
798
-
799
789
Example:
800
790
.. literalinclude:: ../tests/test_examples_certificates_async.py
801
791
:start-after: [START create_issuer]
@@ -856,19 +846,16 @@ async def update_issuer(self, name: str, **kwargs: "**Any") -> CertificateIssuer
856
846
This operation requires the certificates/setissuers permission.
857
847
858
848
:param str name: The name of the issuer.
859
- :param str provider: The issuer provider.
849
+ :keyword bool enabled: Whether the issuer is enabled for use.
850
+ :keyword str provider: The issuer provider
851
+ :keyword str account_id: The user name/account name/account id.
852
+ :keyword str password: The password/secret/account key.
853
+ :keyword str organization_id: Id of the organization
854
+ :keyword admin_details: Details of the organization administrators of the certificate issuer
855
+ :paramtype admin_details: list[~azure.keyvault.certificates.models.AdministratorDetails]
860
856
:return: The updated issuer
861
857
:rtype: ~azure.keyvault.certificates.models.CertificateIssuer
862
858
:raises: :class:`~azure.core.exceptions.HttpResponseError`
863
-
864
- Keyword arguments
865
- - *enabled (bool)* - Determines whether the object is enabled.
866
- - *provider (str)* - The issuer provider.
867
- - *account_id (str)* - The user name/account name/account id.
868
- - *password (str)* - The password/secret/account key.
869
- - *organization_id (str)* - Id of the organization.
870
- - *admin_details (list[~azure.keyvault.certificates.models.AdministratorDetails])*
871
- - Details of the organization administrators of the certificate issuer.
872
859
"""
873
860
874
861
enabled = kwargs .pop ("enabled" , None )
0 commit comments