-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Autorest IssueClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.KeyVault
Milestone
Description
from azure.identity import DefaultAzureCredential
from azure.keyvault.certificates import ApiVersion, CertificateClient
client = CertificateClient(VAULT_URL, DefaultAzureCredential(), api_version=ApiVersion.V2016_10_01)
[_ for _ in client.list_properties_of_certificates()]Raises an error:
Traceback (most recent call last):
File "C:\temp\kv\repro.py", line 13, in <module>
props = [_ for _ in client.list_properties_of_certificates()]
File "...\azure-core\azure\core\tracing\decorator.py", line 83, in wrapper_use_tracer
return func(*args, **kwargs)
File "...\azure-keyvault-certificates\azure\keyvault\certificates\_client.py", line 596, in list_properties_of_certificates
**kwargs
File "...\azure-keyvault-certificates\azure\keyvault\certificates\_generated\_operations_mixin.py", line 917, in get_certificates
return mixin_instance.get_certificates(vault_base_url, maxresults, include_pending, **kwargs)
TypeError: get_certificates() takes from 2 to 3 positional arguments but 4 were given
The error occurs because the call uses positional arguments and the generated method for version 2016-10-01 doesn't have an include_pending parameter:
# 2016-10-01
def get_certificates(self, vault_base_url, maxresults=None, **kwargs)
# 7.0
def get_certificates(self, vault_base_url, maxresults=None, include_pending=None, **kwargs)get_deleted_certificates has the same problem.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Autorest IssueClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.KeyVault