diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_key_vault_client.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_key_vault_client.py index 310258a4b81e..94ec92e7907c 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_key_vault_client.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_key_vault_client.py @@ -37,65 +37,13 @@ class KeyVaultClient(KeyVaultClientOperationsMixin, MultiApiClientMixin, _SDKCli missing in profile. :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = '7.1' + DEFAULT_API_VERSION = '2016-10-01' _PROFILE_TAG = "azure.keyvault.KeyVaultClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, - 'backup_key': '7.0', - 'backup_secret': '7.0', - 'backup_storage_account': '7.0', - 'create_key': '7.0', - 'decrypt': '7.0', - 'delete_key': '7.0', - 'delete_sas_definition': '7.0', - 'delete_secret': '7.0', - 'delete_storage_account': '7.0', - 'encrypt': '7.0', - 'get_deleted_key': '7.0', - 'get_deleted_keys': '7.0', - 'get_deleted_sas_definition': '7.0', - 'get_deleted_sas_definitions': '7.0', - 'get_deleted_secret': '7.0', - 'get_deleted_secrets': '7.0', - 'get_deleted_storage_account': '7.0', - 'get_deleted_storage_accounts': '7.0', - 'get_key': '7.0', - 'get_key_versions': '7.0', - 'get_keys': '7.0', - 'get_sas_definition': '7.0', - 'get_sas_definitions': '7.0', - 'get_secret': '7.0', - 'get_secret_versions': '7.0', - 'get_secrets': '7.0', - 'get_storage_account': '7.0', - 'get_storage_accounts': '7.0', - 'import_key': '7.0', - 'purge_deleted_key': '7.0', - 'purge_deleted_secret': '7.0', - 'purge_deleted_storage_account': '7.0', - 'recover_deleted_key': '7.0', - 'recover_deleted_sas_definition': '7.0', - 'recover_deleted_secret': '7.0', - 'recover_deleted_storage_account': '7.0', - 'regenerate_storage_account_key': '7.0', - 'restore_key': '7.0', - 'restore_secret': '7.0', - 'restore_storage_account': '7.0', - 'set_sas_definition': '7.0', - 'set_secret': '7.0', - 'set_storage_account': '7.0', - 'sign': '7.0', - 'unwrap_key': '7.0', - 'update_key': '7.0', - 'update_sas_definition': '7.0', - 'update_secret': '7.0', - 'update_storage_account': '7.0', - 'verify': '7.0', - 'wrap_key': '7.0', }}, _PROFILE_TAG + " latest" ) diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_operations_mixin.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_operations_mixin.py index 33910d2df4c0..509cc725bd72 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_operations_mixin.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_operations_mixin.py @@ -85,7 +85,7 @@ def backup_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: BackupKeyResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.BackupKeyResult + :rtype: ~azure.keyvault.v2016_10_01.models.BackupKeyResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('backup_key') @@ -119,7 +119,7 @@ def backup_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: BackupSecretResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.BackupSecretResult + :rtype: ~azure.keyvault.v2016_10_01.models.BackupSecretResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('backup_secret') @@ -185,10 +185,10 @@ def create_certificate( :param certificate_name: The name of the certificate. :type certificate_name: str :param parameters: The parameters to create a certificate. - :type parameters: ~azure.keyvault.v7_1.models.CertificateCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('create_certificate') @@ -226,10 +226,10 @@ def create_key( new key. :type key_name: str :param parameters: The parameters to create a key. - :type parameters: ~azure.keyvault.v7_0.models.KeyCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('create_key') @@ -270,10 +270,10 @@ def decrypt( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the decryption operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('decrypt') @@ -308,7 +308,7 @@ def delete_certificate( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedCertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.DeletedCertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedCertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate') @@ -341,7 +341,7 @@ def delete_certificate_contacts( :type vault_base_url: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Contacts, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.Contacts + :rtype: ~azure.keyvault.v2016_10_01.models.Contacts :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate_contacts') @@ -377,7 +377,7 @@ def delete_certificate_issuer( :type issuer_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate_issuer') @@ -414,7 +414,7 @@ def delete_certificate_operation( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate_operation') @@ -452,7 +452,7 @@ def delete_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedKeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedKeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedKeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_key') @@ -486,8 +486,8 @@ def delete_sas_definition( :param sas_definition_name: The name of the SAS definition. :type sas_definition_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: DeletedSasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedSasDefinitionBundle + :return: SasDefinitionBundle, or the result of cls(response) + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_sas_definition') @@ -521,7 +521,7 @@ def delete_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedSecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedSecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedSecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_secret') @@ -551,8 +551,8 @@ def delete_storage_account( :param storage_account_name: The name of the storage account. :type storage_account_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: DeletedStorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedStorageBundle + :return: StorageBundle, or the result of cls(response) + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_storage_account') @@ -595,10 +595,10 @@ def encrypt( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the encryption operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('encrypt') @@ -631,12 +631,11 @@ def get_certificate( :type vault_base_url: str :param certificate_name: The name of the certificate in the given vault. :type certificate_name: str - :param certificate_version: The version of the certificate. This URI fragment is optional. If - not specified, the latest version of the certificate is returned. + :param certificate_version: The version of the certificate. :type certificate_version: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate') @@ -669,7 +668,7 @@ def get_certificate_contacts( :type vault_base_url: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Contacts, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.Contacts + :rtype: ~azure.keyvault.v2016_10_01.models.Contacts :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_contacts') @@ -706,7 +705,7 @@ def get_certificate_issuer( :type issuer_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_issuer') @@ -744,7 +743,7 @@ def get_certificate_issuers( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CertificateIssuerListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_1.models.CertificateIssuerListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.CertificateIssuerListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_issuers') @@ -780,7 +779,7 @@ def get_certificate_operation( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_operation') @@ -816,7 +815,7 @@ def get_certificate_policy( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificatePolicy, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificatePolicy + :rtype: ~azure.keyvault.v2016_10_01.models.CertificatePolicy :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_policy') @@ -856,7 +855,7 @@ def get_certificate_versions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CertificateListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_1.models.CertificateListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.CertificateListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_versions') @@ -879,7 +878,6 @@ def get_certificates( self, vault_base_url, # type: str maxresults=None, # type: Optional[int] - include_pending=None, # type: Optional[bool] **kwargs # type: Any ): """List certificates in a specified key vault. @@ -892,12 +890,9 @@ def get_certificates( :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int - :param include_pending: Specifies whether to include certificates which are not completely - provisioned. - :type include_pending: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CertificateListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_1.models.CertificateListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.CertificateListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificates') @@ -914,7 +909,7 @@ def get_certificates( mixin_instance._config = self._config mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.get_certificates(vault_base_url, maxresults, include_pending, **kwargs) + return mixin_instance.get_certificates(vault_base_url, maxresults, **kwargs) def get_deleted_certificate( self, @@ -934,7 +929,7 @@ def get_deleted_certificate( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedCertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.DeletedCertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedCertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_certificate') @@ -957,7 +952,6 @@ def get_deleted_certificates( self, vault_base_url, # type: str maxresults=None, # type: Optional[int] - include_pending=None, # type: Optional[bool] **kwargs # type: Any ): """Lists the deleted certificates in the specified vault currently available for recovery. @@ -972,12 +966,9 @@ def get_deleted_certificates( :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int - :param include_pending: Specifies whether to include certificates which are not completely - provisioned. - :type include_pending: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DeletedCertificateListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_1.models.DeletedCertificateListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.DeletedCertificateListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_certificates') @@ -994,7 +985,7 @@ def get_deleted_certificates( mixin_instance._config = self._config mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.get_deleted_certificates(vault_base_url, maxresults, include_pending, **kwargs) + return mixin_instance.get_deleted_certificates(vault_base_url, maxresults, **kwargs) def get_deleted_key( self, @@ -1014,7 +1005,7 @@ def get_deleted_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedKeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedKeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedKeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_key') @@ -1052,7 +1043,7 @@ def get_deleted_keys( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DeletedKeyListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.DeletedKeyListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.DeletedKeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_keys') @@ -1157,7 +1148,7 @@ def get_deleted_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedSecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedSecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedSecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_secret') @@ -1192,7 +1183,7 @@ def get_deleted_secrets( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DeletedSecretListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.DeletedSecretListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.DeletedSecretListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_secrets') @@ -1290,12 +1281,11 @@ def get_key( :type vault_base_url: str :param key_name: The name of the key to get. :type key_name: str - :param key_version: Adding the version parameter retrieves a specific version of a key. This - URI fragment is optional. If not specified, the latest version of the key is returned. + :param key_version: Adding the version parameter retrieves a specific version of a key. :type key_version: str :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_key') @@ -1333,7 +1323,7 @@ def get_key_versions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either KeyListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.KeyListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.KeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_key_versions') @@ -1370,7 +1360,7 @@ def get_keys( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either KeyListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.KeyListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.KeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_keys') @@ -1405,7 +1395,7 @@ def get_sas_definition( :type sas_definition_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SasDefinitionBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_sas_definition') @@ -1441,7 +1431,7 @@ def get_sas_definitions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SasDefinitionListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.SasDefinitionListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.SasDefinitionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_sas_definitions') @@ -1474,12 +1464,11 @@ def get_secret( :type vault_base_url: str :param secret_name: The name of the secret. :type secret_name: str - :param secret_version: The version of the secret. This URI fragment is optional. If not - specified, the latest version of the secret is returned. + :param secret_version: The version of the secret. :type secret_version: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_secret') @@ -1517,7 +1506,7 @@ def get_secret_versions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SecretListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.SecretListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.SecretListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_secret_versions') @@ -1553,7 +1542,7 @@ def get_secrets( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SecretListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.SecretListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.SecretListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_secrets') @@ -1585,7 +1574,7 @@ def get_storage_account( :type storage_account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_storage_account') @@ -1618,7 +1607,7 @@ def get_storage_accounts( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either StorageListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v7_0.models.StorageListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.keyvault.v2016_10_01.models.StorageListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_storage_accounts') @@ -1654,10 +1643,10 @@ def import_certificate( :param certificate_name: The name of the certificate. :type certificate_name: str :param parameters: The parameters to import the certificate. - :type parameters: ~azure.keyvault.v7_1.models.CertificateImportParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateImportParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('import_certificate') @@ -1694,10 +1683,10 @@ def import_key( :param key_name: Name for the imported key. :type key_name: str :param parameters: The parameters to import a key. - :type parameters: ~azure.keyvault.v7_0.models.KeyImportParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyImportParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('import_key') @@ -1732,10 +1721,10 @@ def merge_certificate( :param certificate_name: The name of the certificate. :type certificate_name: str :param parameters: The parameters to merge certificate. - :type parameters: ~azure.keyvault.v7_1.models.CertificateMergeParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateMergeParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('merge_certificate') @@ -1913,7 +1902,7 @@ def recover_deleted_certificate( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('recover_deleted_certificate') @@ -1951,7 +1940,7 @@ def recover_deleted_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('recover_deleted_key') @@ -2021,7 +2010,7 @@ def recover_deleted_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('recover_deleted_secret') @@ -2086,10 +2075,10 @@ def regenerate_storage_account_key( :param storage_account_name: The name of the storage account. :type storage_account_name: str :param parameters: The parameters to regenerate storage account key. - :type parameters: ~azure.keyvault.v7_0.models.StorageAccountRegenerteKeyParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.StorageAccountRegenerteKeyParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('regenerate_storage_account_key') @@ -2162,10 +2151,10 @@ def restore_key( :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param parameters: The parameters to restore the key. - :type parameters: ~azure.keyvault.v7_0.models.KeyRestoreParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyRestoreParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('restore_key') @@ -2196,10 +2185,10 @@ def restore_secret( :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param parameters: The parameters to restore the secret. - :type parameters: ~azure.keyvault.v7_0.models.SecretRestoreParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SecretRestoreParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('restore_secret') @@ -2262,10 +2251,10 @@ def set_certificate_contacts( :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param contacts: The contacts for the key vault certificate. - :type contacts: ~azure.keyvault.v7_1.models.Contacts + :type contacts: ~azure.keyvault.v2016_10_01.models.Contacts :keyword callable cls: A custom type or function that will be passed the direct response :return: Contacts, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.Contacts + :rtype: ~azure.keyvault.v2016_10_01.models.Contacts :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_certificate_contacts') @@ -2301,10 +2290,10 @@ def set_certificate_issuer( :param issuer_name: The name of the issuer. :type issuer_name: str :param parameter: Certificate issuer set parameter. - :type parameter: ~azure.keyvault.v7_1.models.CertificateIssuerSetParameters + :type parameter: ~azure.keyvault.v2016_10_01.models.CertificateIssuerSetParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_certificate_issuer') @@ -2341,10 +2330,10 @@ def set_sas_definition( :param sas_definition_name: The name of the SAS definition. :type sas_definition_name: str :param parameters: The parameters to create a SAS definition. - :type parameters: ~azure.keyvault.v7_0.models.SasDefinitionCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SasDefinitionCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SasDefinitionBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_sas_definition') @@ -2379,10 +2368,10 @@ def set_secret( :param secret_name: The name of the secret. :type secret_name: str :param parameters: The parameters for setting the secret. - :type parameters: ~azure.keyvault.v7_0.models.SecretSetParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SecretSetParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_secret') @@ -2413,10 +2402,10 @@ def set_storage_account( :param storage_account_name: The name of the storage account. :type storage_account_name: str :param parameters: The parameters to create a storage account. - :type parameters: ~azure.keyvault.v7_0.models.StorageAccountCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.StorageAccountCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_storage_account') @@ -2454,10 +2443,10 @@ def sign( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the signing operation. - :type parameters: ~azure.keyvault.v7_0.models.KeySignParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeySignParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('sign') @@ -2496,10 +2485,10 @@ def unwrap_key( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the key operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('unwrap_key') @@ -2537,10 +2526,10 @@ def update_certificate( :param certificate_version: The version of the certificate. :type certificate_version: str :param parameters: The parameters for certificate update. - :type parameters: ~azure.keyvault.v7_1.models.CertificateUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate') @@ -2576,10 +2565,10 @@ def update_certificate_issuer( :param issuer_name: The name of the issuer. :type issuer_name: str :param parameter: Certificate issuer update parameter. - :type parameter: ~azure.keyvault.v7_1.models.CertificateIssuerUpdateParameters + :type parameter: ~azure.keyvault.v2016_10_01.models.CertificateIssuerUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate_issuer') @@ -2615,10 +2604,10 @@ def update_certificate_operation( :param certificate_name: The name of the certificate. :type certificate_name: str :param certificate_operation: The certificate operation response. - :type certificate_operation: ~azure.keyvault.v7_1.models.CertificateOperationUpdateParameter + :type certificate_operation: ~azure.keyvault.v2016_10_01.models.CertificateOperationUpdateParameter :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate_operation') @@ -2654,10 +2643,10 @@ def update_certificate_policy( :param certificate_name: The name of the certificate in the given vault. :type certificate_name: str :param certificate_policy: The policy for the certificate. - :type certificate_policy: ~azure.keyvault.v7_1.models.CertificatePolicy + :type certificate_policy: ~azure.keyvault.v2016_10_01.models.CertificatePolicy :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificatePolicy, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificatePolicy + :rtype: ~azure.keyvault.v2016_10_01.models.CertificatePolicy :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate_policy') @@ -2697,10 +2686,10 @@ def update_key( :param key_version: The version of the key to update. :type key_version: str :param parameters: The parameters of the key to update. - :type parameters: ~azure.keyvault.v7_0.models.KeyUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_key') @@ -2735,10 +2724,10 @@ def update_sas_definition( :param sas_definition_name: The name of the SAS definition. :type sas_definition_name: str :param parameters: The parameters to update a SAS definition. - :type parameters: ~azure.keyvault.v7_0.models.SasDefinitionUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SasDefinitionUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SasDefinitionBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_sas_definition') @@ -2776,10 +2765,10 @@ def update_secret( :param secret_version: The version of the secret. :type secret_version: str :param parameters: The parameters for update secret operation. - :type parameters: ~azure.keyvault.v7_0.models.SecretUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SecretUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_secret') @@ -2811,10 +2800,10 @@ def update_storage_account( :param storage_account_name: The name of the storage account. :type storage_account_name: str :param parameters: The parameters to update a storage account. - :type parameters: ~azure.keyvault.v7_0.models.StorageAccountUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.StorageAccountUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_storage_account') @@ -2854,10 +2843,10 @@ def verify( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for verify operations. - :type parameters: ~azure.keyvault.v7_0.models.KeyVerifyParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyVerifyParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyVerifyResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyVerifyResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyVerifyResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('verify') @@ -2898,10 +2887,10 @@ def wrap_key( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for wrap operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('wrap_key') diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_key_vault_client_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_key_vault_client_async.py index c6482924df96..d8f64365ab8c 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_key_vault_client_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_key_vault_client_async.py @@ -37,65 +37,13 @@ class KeyVaultClient(KeyVaultClientOperationsMixin, MultiApiClientMixin, _SDKCli missing in profile. :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = '7.1' + DEFAULT_API_VERSION = '2016-10-01' _PROFILE_TAG = "azure.keyvault.KeyVaultClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, - 'backup_key': '7.0', - 'backup_secret': '7.0', - 'backup_storage_account': '7.0', - 'create_key': '7.0', - 'decrypt': '7.0', - 'delete_key': '7.0', - 'delete_sas_definition': '7.0', - 'delete_secret': '7.0', - 'delete_storage_account': '7.0', - 'encrypt': '7.0', - 'get_deleted_key': '7.0', - 'get_deleted_keys': '7.0', - 'get_deleted_sas_definition': '7.0', - 'get_deleted_sas_definitions': '7.0', - 'get_deleted_secret': '7.0', - 'get_deleted_secrets': '7.0', - 'get_deleted_storage_account': '7.0', - 'get_deleted_storage_accounts': '7.0', - 'get_key': '7.0', - 'get_key_versions': '7.0', - 'get_keys': '7.0', - 'get_sas_definition': '7.0', - 'get_sas_definitions': '7.0', - 'get_secret': '7.0', - 'get_secret_versions': '7.0', - 'get_secrets': '7.0', - 'get_storage_account': '7.0', - 'get_storage_accounts': '7.0', - 'import_key': '7.0', - 'purge_deleted_key': '7.0', - 'purge_deleted_secret': '7.0', - 'purge_deleted_storage_account': '7.0', - 'recover_deleted_key': '7.0', - 'recover_deleted_sas_definition': '7.0', - 'recover_deleted_secret': '7.0', - 'recover_deleted_storage_account': '7.0', - 'regenerate_storage_account_key': '7.0', - 'restore_key': '7.0', - 'restore_secret': '7.0', - 'restore_storage_account': '7.0', - 'set_sas_definition': '7.0', - 'set_secret': '7.0', - 'set_storage_account': '7.0', - 'sign': '7.0', - 'unwrap_key': '7.0', - 'update_key': '7.0', - 'update_sas_definition': '7.0', - 'update_secret': '7.0', - 'update_storage_account': '7.0', - 'verify': '7.0', - 'wrap_key': '7.0', }}, _PROFILE_TAG + " latest" ) diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_operations_mixin_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_operations_mixin_async.py index 7d06436fdf10..c0bfb5d85a49 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_operations_mixin_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/aio/_operations_mixin_async.py @@ -81,7 +81,7 @@ async def backup_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: BackupKeyResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.BackupKeyResult + :rtype: ~azure.keyvault.v2016_10_01.models.BackupKeyResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('backup_key') @@ -115,7 +115,7 @@ async def backup_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: BackupSecretResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.BackupSecretResult + :rtype: ~azure.keyvault.v2016_10_01.models.BackupSecretResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('backup_secret') @@ -181,10 +181,10 @@ async def create_certificate( :param certificate_name: The name of the certificate. :type certificate_name: str :param parameters: The parameters to create a certificate. - :type parameters: ~azure.keyvault.v7_1.models.CertificateCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('create_certificate') @@ -222,10 +222,10 @@ async def create_key( new key. :type key_name: str :param parameters: The parameters to create a key. - :type parameters: ~azure.keyvault.v7_0.models.KeyCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('create_key') @@ -266,10 +266,10 @@ async def decrypt( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the decryption operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('decrypt') @@ -304,7 +304,7 @@ async def delete_certificate( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedCertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.DeletedCertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedCertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate') @@ -337,7 +337,7 @@ async def delete_certificate_contacts( :type vault_base_url: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Contacts, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.Contacts + :rtype: ~azure.keyvault.v2016_10_01.models.Contacts :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate_contacts') @@ -373,7 +373,7 @@ async def delete_certificate_issuer( :type issuer_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate_issuer') @@ -410,7 +410,7 @@ async def delete_certificate_operation( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_certificate_operation') @@ -448,7 +448,7 @@ async def delete_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedKeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedKeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedKeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_key') @@ -471,7 +471,7 @@ async def delete_sas_definition( storage_account_name: str, sas_definition_name: str, **kwargs - ) -> "models.DeletedSasDefinitionBundle": + ) -> "models.SasDefinitionBundle": """Deletes a SAS definition from a specified storage account. This operation requires the storage/deletesas permission. @@ -482,8 +482,8 @@ async def delete_sas_definition( :param sas_definition_name: The name of the SAS definition. :type sas_definition_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: DeletedSasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedSasDefinitionBundle + :return: SasDefinitionBundle, or the result of cls(response) + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_sas_definition') @@ -517,7 +517,7 @@ async def delete_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedSecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedSecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedSecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_secret') @@ -539,7 +539,7 @@ async def delete_storage_account( vault_base_url: str, storage_account_name: str, **kwargs - ) -> "models.DeletedStorageBundle": + ) -> "models.StorageBundle": """Deletes a storage account. This operation requires the storage/delete permission. :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. @@ -547,8 +547,8 @@ async def delete_storage_account( :param storage_account_name: The name of the storage account. :type storage_account_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: DeletedStorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedStorageBundle + :return: StorageBundle, or the result of cls(response) + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('delete_storage_account') @@ -591,10 +591,10 @@ async def encrypt( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the encryption operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('encrypt') @@ -627,12 +627,11 @@ async def get_certificate( :type vault_base_url: str :param certificate_name: The name of the certificate in the given vault. :type certificate_name: str - :param certificate_version: The version of the certificate. This URI fragment is optional. If - not specified, the latest version of the certificate is returned. + :param certificate_version: The version of the certificate. :type certificate_version: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate') @@ -665,7 +664,7 @@ async def get_certificate_contacts( :type vault_base_url: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Contacts, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.Contacts + :rtype: ~azure.keyvault.v2016_10_01.models.Contacts :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_contacts') @@ -702,7 +701,7 @@ async def get_certificate_issuer( :type issuer_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_issuer') @@ -740,7 +739,7 @@ def get_certificate_issuers( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CertificateIssuerListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_1.models.CertificateIssuerListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.CertificateIssuerListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_issuers') @@ -776,7 +775,7 @@ async def get_certificate_operation( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_operation') @@ -812,7 +811,7 @@ async def get_certificate_policy( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificatePolicy, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificatePolicy + :rtype: ~azure.keyvault.v2016_10_01.models.CertificatePolicy :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_policy') @@ -852,7 +851,7 @@ def get_certificate_versions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CertificateListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_1.models.CertificateListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.CertificateListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificate_versions') @@ -875,7 +874,6 @@ def get_certificates( self, vault_base_url: str, maxresults: Optional[int] = None, - include_pending: Optional[bool] = None, **kwargs ) -> AsyncItemPaged["models.CertificateListResult"]: """List certificates in a specified key vault. @@ -888,12 +886,9 @@ def get_certificates( :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int - :param include_pending: Specifies whether to include certificates which are not completely - provisioned. - :type include_pending: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either CertificateListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_1.models.CertificateListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.CertificateListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_certificates') @@ -910,7 +905,7 @@ def get_certificates( mixin_instance._config = self._config mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.get_certificates(vault_base_url, maxresults, include_pending, **kwargs) + return mixin_instance.get_certificates(vault_base_url, maxresults, **kwargs) async def get_deleted_certificate( self, @@ -930,7 +925,7 @@ async def get_deleted_certificate( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedCertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.DeletedCertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedCertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_certificate') @@ -953,7 +948,6 @@ def get_deleted_certificates( self, vault_base_url: str, maxresults: Optional[int] = None, - include_pending: Optional[bool] = None, **kwargs ) -> AsyncItemPaged["models.DeletedCertificateListResult"]: """Lists the deleted certificates in the specified vault currently available for recovery. @@ -968,12 +962,9 @@ def get_deleted_certificates( :param maxresults: Maximum number of results to return in a page. If not specified the service will return up to 25 results. :type maxresults: int - :param include_pending: Specifies whether to include certificates which are not completely - provisioned. - :type include_pending: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DeletedCertificateListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_1.models.DeletedCertificateListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.DeletedCertificateListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_certificates') @@ -990,7 +981,7 @@ def get_deleted_certificates( mixin_instance._config = self._config mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.get_deleted_certificates(vault_base_url, maxresults, include_pending, **kwargs) + return mixin_instance.get_deleted_certificates(vault_base_url, maxresults, **kwargs) async def get_deleted_key( self, @@ -1010,7 +1001,7 @@ async def get_deleted_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedKeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedKeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedKeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_key') @@ -1048,7 +1039,7 @@ def get_deleted_keys( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DeletedKeyListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.DeletedKeyListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.DeletedKeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_keys') @@ -1153,7 +1144,7 @@ async def get_deleted_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DeletedSecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.DeletedSecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.DeletedSecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_secret') @@ -1188,7 +1179,7 @@ def get_deleted_secrets( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DeletedSecretListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.DeletedSecretListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.DeletedSecretListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_deleted_secrets') @@ -1286,12 +1277,11 @@ async def get_key( :type vault_base_url: str :param key_name: The name of the key to get. :type key_name: str - :param key_version: Adding the version parameter retrieves a specific version of a key. This - URI fragment is optional. If not specified, the latest version of the key is returned. + :param key_version: Adding the version parameter retrieves a specific version of a key. :type key_version: str :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_key') @@ -1329,7 +1319,7 @@ def get_key_versions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either KeyListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.KeyListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.KeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_key_versions') @@ -1366,7 +1356,7 @@ def get_keys( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either KeyListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.KeyListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.KeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_keys') @@ -1401,7 +1391,7 @@ async def get_sas_definition( :type sas_definition_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SasDefinitionBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_sas_definition') @@ -1437,7 +1427,7 @@ def get_sas_definitions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SasDefinitionListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.SasDefinitionListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.SasDefinitionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_sas_definitions') @@ -1470,12 +1460,11 @@ async def get_secret( :type vault_base_url: str :param secret_name: The name of the secret. :type secret_name: str - :param secret_version: The version of the secret. This URI fragment is optional. If not - specified, the latest version of the secret is returned. + :param secret_version: The version of the secret. :type secret_version: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_secret') @@ -1513,7 +1502,7 @@ def get_secret_versions( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SecretListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.SecretListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.SecretListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_secret_versions') @@ -1549,7 +1538,7 @@ def get_secrets( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either SecretListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.SecretListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.SecretListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_secrets') @@ -1581,7 +1570,7 @@ async def get_storage_account( :type storage_account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_storage_account') @@ -1614,7 +1603,7 @@ def get_storage_accounts( :type maxresults: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either StorageListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v7_0.models.StorageListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.keyvault.v2016_10_01.models.StorageListResult] :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('get_storage_accounts') @@ -1650,10 +1639,10 @@ async def import_certificate( :param certificate_name: The name of the certificate. :type certificate_name: str :param parameters: The parameters to import the certificate. - :type parameters: ~azure.keyvault.v7_1.models.CertificateImportParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateImportParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('import_certificate') @@ -1690,10 +1679,10 @@ async def import_key( :param key_name: Name for the imported key. :type key_name: str :param parameters: The parameters to import a key. - :type parameters: ~azure.keyvault.v7_0.models.KeyImportParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyImportParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('import_key') @@ -1728,10 +1717,10 @@ async def merge_certificate( :param certificate_name: The name of the certificate. :type certificate_name: str :param parameters: The parameters to merge certificate. - :type parameters: ~azure.keyvault.v7_1.models.CertificateMergeParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateMergeParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('merge_certificate') @@ -1909,7 +1898,7 @@ async def recover_deleted_certificate( :type certificate_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('recover_deleted_certificate') @@ -1947,7 +1936,7 @@ async def recover_deleted_key( :type key_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('recover_deleted_key') @@ -2017,7 +2006,7 @@ async def recover_deleted_secret( :type secret_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('recover_deleted_secret') @@ -2082,10 +2071,10 @@ async def regenerate_storage_account_key( :param storage_account_name: The name of the storage account. :type storage_account_name: str :param parameters: The parameters to regenerate storage account key. - :type parameters: ~azure.keyvault.v7_0.models.StorageAccountRegenerteKeyParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.StorageAccountRegenerteKeyParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('regenerate_storage_account_key') @@ -2158,10 +2147,10 @@ async def restore_key( :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param parameters: The parameters to restore the key. - :type parameters: ~azure.keyvault.v7_0.models.KeyRestoreParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyRestoreParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('restore_key') @@ -2192,10 +2181,10 @@ async def restore_secret( :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param parameters: The parameters to restore the secret. - :type parameters: ~azure.keyvault.v7_0.models.SecretRestoreParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SecretRestoreParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('restore_secret') @@ -2258,10 +2247,10 @@ async def set_certificate_contacts( :param vault_base_url: The vault name, for example https://myvault.vault.azure.net. :type vault_base_url: str :param contacts: The contacts for the key vault certificate. - :type contacts: ~azure.keyvault.v7_1.models.Contacts + :type contacts: ~azure.keyvault.v2016_10_01.models.Contacts :keyword callable cls: A custom type or function that will be passed the direct response :return: Contacts, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.Contacts + :rtype: ~azure.keyvault.v2016_10_01.models.Contacts :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_certificate_contacts') @@ -2297,10 +2286,10 @@ async def set_certificate_issuer( :param issuer_name: The name of the issuer. :type issuer_name: str :param parameter: Certificate issuer set parameter. - :type parameter: ~azure.keyvault.v7_1.models.CertificateIssuerSetParameters + :type parameter: ~azure.keyvault.v2016_10_01.models.CertificateIssuerSetParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_certificate_issuer') @@ -2337,10 +2326,10 @@ async def set_sas_definition( :param sas_definition_name: The name of the SAS definition. :type sas_definition_name: str :param parameters: The parameters to create a SAS definition. - :type parameters: ~azure.keyvault.v7_0.models.SasDefinitionCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SasDefinitionCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SasDefinitionBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_sas_definition') @@ -2375,10 +2364,10 @@ async def set_secret( :param secret_name: The name of the secret. :type secret_name: str :param parameters: The parameters for setting the secret. - :type parameters: ~azure.keyvault.v7_0.models.SecretSetParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SecretSetParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_secret') @@ -2409,10 +2398,10 @@ async def set_storage_account( :param storage_account_name: The name of the storage account. :type storage_account_name: str :param parameters: The parameters to create a storage account. - :type parameters: ~azure.keyvault.v7_0.models.StorageAccountCreateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.StorageAccountCreateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('set_storage_account') @@ -2450,10 +2439,10 @@ async def sign( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the signing operation. - :type parameters: ~azure.keyvault.v7_0.models.KeySignParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeySignParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('sign') @@ -2492,10 +2481,10 @@ async def unwrap_key( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for the key operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('unwrap_key') @@ -2533,10 +2522,10 @@ async def update_certificate( :param certificate_version: The version of the certificate. :type certificate_version: str :param parameters: The parameters for certificate update. - :type parameters: ~azure.keyvault.v7_1.models.CertificateUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.CertificateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateBundle + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate') @@ -2572,10 +2561,10 @@ async def update_certificate_issuer( :param issuer_name: The name of the issuer. :type issuer_name: str :param parameter: Certificate issuer update parameter. - :type parameter: ~azure.keyvault.v7_1.models.CertificateIssuerUpdateParameters + :type parameter: ~azure.keyvault.v2016_10_01.models.CertificateIssuerUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: IssuerBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.IssuerBundle + :rtype: ~azure.keyvault.v2016_10_01.models.IssuerBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate_issuer') @@ -2611,10 +2600,10 @@ async def update_certificate_operation( :param certificate_name: The name of the certificate. :type certificate_name: str :param certificate_operation: The certificate operation response. - :type certificate_operation: ~azure.keyvault.v7_1.models.CertificateOperationUpdateParameter + :type certificate_operation: ~azure.keyvault.v2016_10_01.models.CertificateOperationUpdateParameter :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificateOperation, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificateOperation + :rtype: ~azure.keyvault.v2016_10_01.models.CertificateOperation :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate_operation') @@ -2650,10 +2639,10 @@ async def update_certificate_policy( :param certificate_name: The name of the certificate in the given vault. :type certificate_name: str :param certificate_policy: The policy for the certificate. - :type certificate_policy: ~azure.keyvault.v7_1.models.CertificatePolicy + :type certificate_policy: ~azure.keyvault.v2016_10_01.models.CertificatePolicy :keyword callable cls: A custom type or function that will be passed the direct response :return: CertificatePolicy, or the result of cls(response) - :rtype: ~azure.keyvault.v7_1.models.CertificatePolicy + :rtype: ~azure.keyvault.v2016_10_01.models.CertificatePolicy :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_certificate_policy') @@ -2693,10 +2682,10 @@ async def update_key( :param key_version: The version of the key to update. :type key_version: str :param parameters: The parameters of the key to update. - :type parameters: ~azure.keyvault.v7_0.models.KeyUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyBundle + :rtype: ~azure.keyvault.v2016_10_01.models.KeyBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_key') @@ -2731,10 +2720,10 @@ async def update_sas_definition( :param sas_definition_name: The name of the SAS definition. :type sas_definition_name: str :param parameters: The parameters to update a SAS definition. - :type parameters: ~azure.keyvault.v7_0.models.SasDefinitionUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SasDefinitionUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SasDefinitionBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SasDefinitionBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SasDefinitionBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_sas_definition') @@ -2772,10 +2761,10 @@ async def update_secret( :param secret_version: The version of the secret. :type secret_version: str :param parameters: The parameters for update secret operation. - :type parameters: ~azure.keyvault.v7_0.models.SecretUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.SecretUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: SecretBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.SecretBundle + :rtype: ~azure.keyvault.v2016_10_01.models.SecretBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_secret') @@ -2807,10 +2796,10 @@ async def update_storage_account( :param storage_account_name: The name of the storage account. :type storage_account_name: str :param parameters: The parameters to update a storage account. - :type parameters: ~azure.keyvault.v7_0.models.StorageAccountUpdateParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.StorageAccountUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: StorageBundle, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.StorageBundle + :rtype: ~azure.keyvault.v2016_10_01.models.StorageBundle :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('update_storage_account') @@ -2850,10 +2839,10 @@ async def verify( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for verify operations. - :type parameters: ~azure.keyvault.v7_0.models.KeyVerifyParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyVerifyParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyVerifyResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyVerifyResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyVerifyResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('verify') @@ -2894,10 +2883,10 @@ async def wrap_key( :param key_version: The version of the key. :type key_version: str :param parameters: The parameters for wrap operation. - :type parameters: ~azure.keyvault.v7_0.models.KeyOperationsParameters + :type parameters: ~azure.keyvault.v2016_10_01.models.KeyOperationsParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyOperationResult, or the result of cls(response) - :rtype: ~azure.keyvault.v7_0.models.KeyOperationResult + :rtype: ~azure.keyvault.v2016_10_01.models.KeyOperationResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('wrap_key') diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/models.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/models.py index d80a03e1dcdd..78c01632767f 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/models.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/models.py @@ -4,5 +4,4 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v7_0.models import * -from .v7_1.models import * +from .v2016_10_01.models import * diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_key_vault_client.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_key_vault_client.py index d9db79ab8785..051edbb7abed 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_key_vault_client.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_key_vault_client.py @@ -23,7 +23,6 @@ class KeyVaultClient(KeyVaultClientOperationsMixin): """The key vault client performs cryptographic key operations and vault operations against the Key Vault service. - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_metadata.json b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_metadata.json index ec6b44c0477e..ad1d554bd15e 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_metadata.json +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/_metadata.json @@ -7,7 +7,8 @@ "description": "The key vault client performs cryptographic key operations and vault operations against the Key Vault service.", "base_url": null, "custom_base_url": "\u0027{vaultBaseUrl}\u0027", - "azure_arm": false + "azure_arm": false, + "has_lro_operations": false }, "global_parameters": { "sync_method": { @@ -22,7 +23,8 @@ "credential": false, "credential_scopes": null, "credential_default_policy_type": "BearerTokenCredentialPolicy", - "credential_default_policy_type_has_async_version": true + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null }, "operation_groups": { }, diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/_key_vault_client_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/_key_vault_client_async.py index 2d273c4e45f8..58ad4c64124a 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/_key_vault_client_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/_key_vault_client_async.py @@ -19,7 +19,6 @@ class KeyVaultClient(KeyVaultClientOperationsMixin): """The key vault client performs cryptographic key operations and vault operations against the Key Vault service. - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/operations_async/_key_vault_client_operations_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/operations_async/_key_vault_client_operations_async.py index 53a7cb4a4642..dc533ba34616 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/operations_async/_key_vault_client_operations_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/aio/operations_async/_key_vault_client_operations_async.py @@ -50,6 +50,7 @@ async def create_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_key.metadata['url'] # type: ignore @@ -66,13 +67,12 @@ async def create_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -118,6 +118,7 @@ async def import_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_key.metadata['url'] # type: ignore @@ -134,13 +135,12 @@ async def import_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyImportParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -183,6 +183,7 @@ async def delete_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_key.metadata['url'] # type: ignore @@ -198,7 +199,7 @@ async def delete_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -249,6 +250,7 @@ async def update_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_key.metadata['url'] # type: ignore @@ -266,13 +268,12 @@ async def update_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -316,6 +317,7 @@ async def get_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_key.metadata['url'] # type: ignore @@ -332,7 +334,7 @@ async def get_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -379,11 +381,12 @@ def get_key_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -463,11 +466,12 @@ def get_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -551,6 +555,7 @@ async def backup_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.backup_key.metadata['url'] # type: ignore @@ -566,7 +571,7 @@ async def backup_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -618,6 +623,7 @@ async def restore_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_key.metadata['url'] # type: ignore @@ -633,13 +639,12 @@ async def restore_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -693,6 +698,7 @@ async def encrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.encrypt.metadata['url'] # type: ignore @@ -710,13 +716,12 @@ async def encrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -768,6 +773,7 @@ async def decrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.decrypt.metadata['url'] # type: ignore @@ -785,13 +791,12 @@ async def decrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -840,6 +845,7 @@ async def sign( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.sign.metadata['url'] # type: ignore @@ -857,13 +863,12 @@ async def sign( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeySignParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -914,6 +919,7 @@ async def verify( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.verify.metadata['url'] # type: ignore @@ -931,13 +937,12 @@ async def verify( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyVerifyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -989,6 +994,7 @@ async def wrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.wrap_key.metadata['url'] # type: ignore @@ -1006,13 +1012,12 @@ async def wrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1062,6 +1067,7 @@ async def unwrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.unwrap_key.metadata['url'] # type: ignore @@ -1079,13 +1085,12 @@ async def unwrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1130,11 +1135,12 @@ def get_deleted_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1210,6 +1216,7 @@ async def get_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_deleted_key.metadata['url'] # type: ignore @@ -1225,7 +1232,7 @@ async def get_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1269,6 +1276,7 @@ async def purge_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.purge_deleted_key.metadata['url'] # type: ignore @@ -1284,6 +1292,7 @@ async def purge_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1325,6 +1334,7 @@ async def recover_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.recover_deleted_key.metadata['url'] # type: ignore @@ -1340,7 +1350,7 @@ async def recover_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1388,6 +1398,7 @@ async def set_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_secret.metadata['url'] # type: ignore @@ -1404,13 +1415,12 @@ async def set_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1451,6 +1461,7 @@ async def delete_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_secret.metadata['url'] # type: ignore @@ -1466,7 +1477,7 @@ async def delete_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1517,6 +1528,7 @@ async def update_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_secret.metadata['url'] # type: ignore @@ -1534,13 +1546,12 @@ async def update_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1584,6 +1595,7 @@ async def get_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_secret.metadata['url'] # type: ignore @@ -1600,7 +1612,7 @@ async def get_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1645,11 +1657,12 @@ def get_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1728,11 +1741,12 @@ def get_secret_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1810,11 +1824,12 @@ def get_deleted_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1889,6 +1904,7 @@ async def get_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_deleted_secret.metadata['url'] # type: ignore @@ -1904,7 +1920,7 @@ async def get_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1948,6 +1964,7 @@ async def purge_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.purge_deleted_secret.metadata['url'] # type: ignore @@ -1963,6 +1980,7 @@ async def purge_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2002,6 +2020,7 @@ async def recover_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.recover_deleted_secret.metadata['url'] # type: ignore @@ -2017,7 +2036,7 @@ async def recover_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2060,6 +2079,7 @@ async def backup_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.backup_secret.metadata['url'] # type: ignore @@ -2075,7 +2095,7 @@ async def backup_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2119,6 +2139,7 @@ async def restore_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_secret.metadata['url'] # type: ignore @@ -2134,13 +2155,12 @@ async def restore_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2182,11 +2202,12 @@ def get_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2262,6 +2283,7 @@ async def delete_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate.metadata['url'] # type: ignore @@ -2277,7 +2299,7 @@ async def delete_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2321,6 +2343,7 @@ async def set_certificate_contacts( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_contacts.metadata['url'] # type: ignore @@ -2336,13 +2359,12 @@ async def set_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(contacts, 'Contacts') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2380,6 +2402,7 @@ async def get_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_contacts.metadata['url'] # type: ignore @@ -2394,7 +2417,7 @@ async def get_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2434,6 +2457,7 @@ async def delete_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate_contacts.metadata['url'] # type: ignore @@ -2448,7 +2472,7 @@ async def delete_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2493,11 +2517,12 @@ def get_certificate_issuers( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2576,6 +2601,7 @@ async def set_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_issuer.metadata['url'] # type: ignore @@ -2592,13 +2618,12 @@ async def set_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2643,6 +2668,7 @@ async def update_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_issuer.metadata['url'] # type: ignore @@ -2659,13 +2685,12 @@ async def update_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2707,6 +2732,7 @@ async def get_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_issuer.metadata['url'] # type: ignore @@ -2722,7 +2748,7 @@ async def get_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2765,6 +2791,7 @@ async def delete_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate_issuer.metadata['url'] # type: ignore @@ -2780,7 +2807,7 @@ async def delete_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2827,6 +2854,7 @@ async def create_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_certificate.metadata['url'] # type: ignore @@ -2843,13 +2871,12 @@ async def create_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2896,6 +2923,7 @@ async def import_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_certificate.metadata['url'] # type: ignore @@ -2912,13 +2940,12 @@ async def import_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateImportParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2963,11 +2990,12 @@ def get_certificate_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3044,6 +3072,7 @@ async def get_certificate_policy( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_policy.metadata['url'] # type: ignore @@ -3059,7 +3088,7 @@ async def get_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3106,6 +3135,7 @@ async def update_certificate_policy( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_policy.metadata['url'] # type: ignore @@ -3122,13 +3152,12 @@ async def update_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_policy, 'CertificatePolicy') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3177,6 +3206,7 @@ async def update_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate.metadata['url'] # type: ignore @@ -3194,13 +3224,12 @@ async def update_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3244,6 +3273,7 @@ async def get_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate.metadata['url'] # type: ignore @@ -3260,7 +3290,7 @@ async def get_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3307,6 +3337,7 @@ async def update_certificate_operation( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_operation.metadata['url'] # type: ignore @@ -3323,13 +3354,12 @@ async def update_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_operation, 'CertificateOperationUpdateParameter') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3370,6 +3400,7 @@ async def get_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_operation.metadata['url'] # type: ignore @@ -3385,7 +3416,7 @@ async def get_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3429,6 +3460,7 @@ async def delete_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate_operation.metadata['url'] # type: ignore @@ -3444,7 +3476,7 @@ async def delete_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3492,6 +3524,7 @@ async def merge_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.merge_certificate.metadata['url'] # type: ignore @@ -3508,13 +3541,12 @@ async def merge_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateMergeParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3558,11 +3590,12 @@ def get_deleted_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3638,6 +3671,7 @@ async def get_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_deleted_certificate.metadata['url'] # type: ignore @@ -3653,7 +3687,7 @@ async def get_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3697,6 +3731,7 @@ async def purge_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.purge_deleted_certificate.metadata['url'] # type: ignore @@ -3712,6 +3747,7 @@ async def purge_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3753,6 +3789,7 @@ async def recover_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.recover_deleted_certificate.metadata['url'] # type: ignore @@ -3768,7 +3805,7 @@ async def recover_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3810,11 +3847,12 @@ def get_storage_accounts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3886,6 +3924,7 @@ async def delete_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_storage_account.metadata['url'] # type: ignore @@ -3901,7 +3940,7 @@ async def delete_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3942,6 +3981,7 @@ async def get_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_storage_account.metadata['url'] # type: ignore @@ -3957,7 +3997,7 @@ async def get_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4001,6 +4041,7 @@ async def set_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_storage_account.metadata['url'] # type: ignore @@ -4017,13 +4058,12 @@ async def set_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4066,6 +4106,7 @@ async def update_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_storage_account.metadata['url'] # type: ignore @@ -4082,13 +4123,12 @@ async def update_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4131,6 +4171,7 @@ async def regenerate_storage_account_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.regenerate_storage_account_key.metadata['url'] # type: ignore @@ -4147,13 +4188,12 @@ async def regenerate_storage_account_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountRegenerteKeyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4196,11 +4236,12 @@ def get_sas_definitions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4278,6 +4319,7 @@ async def delete_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_sas_definition.metadata['url'] # type: ignore @@ -4294,7 +4336,7 @@ async def delete_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4338,6 +4380,7 @@ async def get_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_sas_definition.metadata['url'] # type: ignore @@ -4354,7 +4397,7 @@ async def get_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4402,6 +4445,7 @@ async def set_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_sas_definition.metadata['url'] # type: ignore @@ -4419,13 +4463,12 @@ async def set_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4471,6 +4514,7 @@ async def update_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_sas_definition.metadata['url'] # type: ignore @@ -4488,13 +4532,12 @@ async def update_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/operations/_key_vault_client_operations.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/operations/_key_vault_client_operations.py index 3ea87e0dccb8..927f739612a9 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/operations/_key_vault_client_operations.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v2016_10_01/operations/_key_vault_client_operations.py @@ -55,6 +55,7 @@ def create_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_key.metadata['url'] # type: ignore @@ -71,13 +72,12 @@ def create_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -124,6 +124,7 @@ def import_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_key.metadata['url'] # type: ignore @@ -140,13 +141,12 @@ def import_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyImportParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -190,6 +190,7 @@ def delete_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_key.metadata['url'] # type: ignore @@ -205,7 +206,7 @@ def delete_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -257,6 +258,7 @@ def update_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_key.metadata['url'] # type: ignore @@ -274,13 +276,12 @@ def update_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -325,6 +326,7 @@ def get_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_key.metadata['url'] # type: ignore @@ -341,7 +343,7 @@ def get_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -389,11 +391,12 @@ def get_key_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -474,11 +477,12 @@ def get_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -563,6 +567,7 @@ def backup_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.backup_key.metadata['url'] # type: ignore @@ -578,7 +583,7 @@ def backup_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -631,6 +636,7 @@ def restore_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_key.metadata['url'] # type: ignore @@ -646,13 +652,12 @@ def restore_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -707,6 +712,7 @@ def encrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.encrypt.metadata['url'] # type: ignore @@ -724,13 +730,12 @@ def encrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -783,6 +788,7 @@ def decrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.decrypt.metadata['url'] # type: ignore @@ -800,13 +806,12 @@ def decrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -856,6 +861,7 @@ def sign( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.sign.metadata['url'] # type: ignore @@ -873,13 +879,12 @@ def sign( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeySignParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -931,6 +936,7 @@ def verify( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.verify.metadata['url'] # type: ignore @@ -948,13 +954,12 @@ def verify( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyVerifyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1007,6 +1012,7 @@ def wrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.wrap_key.metadata['url'] # type: ignore @@ -1024,13 +1030,12 @@ def wrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1081,6 +1086,7 @@ def unwrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.unwrap_key.metadata['url'] # type: ignore @@ -1098,13 +1104,12 @@ def unwrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1150,11 +1155,12 @@ def get_deleted_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1231,6 +1237,7 @@ def get_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_deleted_key.metadata['url'] # type: ignore @@ -1246,7 +1253,7 @@ def get_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1291,6 +1298,7 @@ def purge_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.purge_deleted_key.metadata['url'] # type: ignore @@ -1306,6 +1314,7 @@ def purge_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1348,6 +1357,7 @@ def recover_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.recover_deleted_key.metadata['url'] # type: ignore @@ -1363,7 +1373,7 @@ def recover_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1412,6 +1422,7 @@ def set_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_secret.metadata['url'] # type: ignore @@ -1428,13 +1439,12 @@ def set_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1476,6 +1486,7 @@ def delete_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_secret.metadata['url'] # type: ignore @@ -1491,7 +1502,7 @@ def delete_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1543,6 +1554,7 @@ def update_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_secret.metadata['url'] # type: ignore @@ -1560,13 +1572,12 @@ def update_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1611,6 +1622,7 @@ def get_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_secret.metadata['url'] # type: ignore @@ -1627,7 +1639,7 @@ def get_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1673,11 +1685,12 @@ def get_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1757,11 +1770,12 @@ def get_secret_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1840,11 +1854,12 @@ def get_deleted_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1920,6 +1935,7 @@ def get_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_deleted_secret.metadata['url'] # type: ignore @@ -1935,7 +1951,7 @@ def get_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1980,6 +1996,7 @@ def purge_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.purge_deleted_secret.metadata['url'] # type: ignore @@ -1995,6 +2012,7 @@ def purge_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2035,6 +2053,7 @@ def recover_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.recover_deleted_secret.metadata['url'] # type: ignore @@ -2050,7 +2069,7 @@ def recover_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2094,6 +2113,7 @@ def backup_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.backup_secret.metadata['url'] # type: ignore @@ -2109,7 +2129,7 @@ def backup_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2154,6 +2174,7 @@ def restore_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_secret.metadata['url'] # type: ignore @@ -2169,13 +2190,12 @@ def restore_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2218,11 +2238,12 @@ def get_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2299,6 +2320,7 @@ def delete_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate.metadata['url'] # type: ignore @@ -2314,7 +2336,7 @@ def delete_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2359,6 +2381,7 @@ def set_certificate_contacts( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_contacts.metadata['url'] # type: ignore @@ -2374,13 +2397,12 @@ def set_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(contacts, 'Contacts') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2419,6 +2441,7 @@ def get_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_contacts.metadata['url'] # type: ignore @@ -2433,7 +2456,7 @@ def get_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2474,6 +2497,7 @@ def delete_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate_contacts.metadata['url'] # type: ignore @@ -2488,7 +2512,7 @@ def delete_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2534,11 +2558,12 @@ def get_certificate_issuers( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2618,6 +2643,7 @@ def set_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_issuer.metadata['url'] # type: ignore @@ -2634,13 +2660,12 @@ def set_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2686,6 +2711,7 @@ def update_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_issuer.metadata['url'] # type: ignore @@ -2702,13 +2728,12 @@ def update_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2751,6 +2776,7 @@ def get_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_issuer.metadata['url'] # type: ignore @@ -2766,7 +2792,7 @@ def get_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2810,6 +2836,7 @@ def delete_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate_issuer.metadata['url'] # type: ignore @@ -2825,7 +2852,7 @@ def delete_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2873,6 +2900,7 @@ def create_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_certificate.metadata['url'] # type: ignore @@ -2889,13 +2917,12 @@ def create_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2943,6 +2970,7 @@ def import_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_certificate.metadata['url'] # type: ignore @@ -2959,13 +2987,12 @@ def import_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateImportParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3011,11 +3038,12 @@ def get_certificate_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3093,6 +3121,7 @@ def get_certificate_policy( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_policy.metadata['url'] # type: ignore @@ -3108,7 +3137,7 @@ def get_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3156,6 +3185,7 @@ def update_certificate_policy( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_policy.metadata['url'] # type: ignore @@ -3172,13 +3202,12 @@ def update_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_policy, 'CertificatePolicy') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3228,6 +3257,7 @@ def update_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate.metadata['url'] # type: ignore @@ -3245,13 +3275,12 @@ def update_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3296,6 +3325,7 @@ def get_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate.metadata['url'] # type: ignore @@ -3312,7 +3342,7 @@ def get_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3360,6 +3390,7 @@ def update_certificate_operation( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_operation.metadata['url'] # type: ignore @@ -3376,13 +3407,12 @@ def update_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_operation, 'CertificateOperationUpdateParameter') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3424,6 +3454,7 @@ def get_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_certificate_operation.metadata['url'] # type: ignore @@ -3439,7 +3470,7 @@ def get_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3484,6 +3515,7 @@ def delete_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_certificate_operation.metadata['url'] # type: ignore @@ -3499,7 +3531,7 @@ def delete_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3548,6 +3580,7 @@ def merge_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.merge_certificate.metadata['url'] # type: ignore @@ -3564,13 +3597,12 @@ def merge_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateMergeParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3615,11 +3647,12 @@ def get_deleted_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3696,6 +3729,7 @@ def get_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_deleted_certificate.metadata['url'] # type: ignore @@ -3711,7 +3745,7 @@ def get_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3756,6 +3790,7 @@ def purge_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.purge_deleted_certificate.metadata['url'] # type: ignore @@ -3771,6 +3806,7 @@ def purge_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3813,6 +3849,7 @@ def recover_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.recover_deleted_certificate.metadata['url'] # type: ignore @@ -3828,7 +3865,7 @@ def recover_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3871,11 +3908,12 @@ def get_storage_accounts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3948,6 +3986,7 @@ def delete_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_storage_account.metadata['url'] # type: ignore @@ -3963,7 +4002,7 @@ def delete_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4005,6 +4044,7 @@ def get_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_storage_account.metadata['url'] # type: ignore @@ -4020,7 +4060,7 @@ def get_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4065,6 +4105,7 @@ def set_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_storage_account.metadata['url'] # type: ignore @@ -4081,13 +4122,12 @@ def set_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4131,6 +4171,7 @@ def update_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_storage_account.metadata['url'] # type: ignore @@ -4147,13 +4188,12 @@ def update_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4197,6 +4237,7 @@ def regenerate_storage_account_key( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.regenerate_storage_account_key.metadata['url'] # type: ignore @@ -4213,13 +4254,12 @@ def regenerate_storage_account_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountRegenerteKeyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4263,11 +4303,12 @@ def get_sas_definitions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4346,6 +4387,7 @@ def delete_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.delete_sas_definition.metadata['url'] # type: ignore @@ -4362,7 +4404,7 @@ def delete_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4407,6 +4449,7 @@ def get_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" + accept = "application/json" # Construct URL url = self.get_sas_definition.metadata['url'] # type: ignore @@ -4423,7 +4466,7 @@ def get_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4472,6 +4515,7 @@ def set_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_sas_definition.metadata['url'] # type: ignore @@ -4489,13 +4533,12 @@ def set_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4542,6 +4585,7 @@ def update_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "2016-10-01" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_sas_definition.metadata['url'] # type: ignore @@ -4559,13 +4603,12 @@ def update_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_key_vault_client.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_key_vault_client.py index d9db79ab8785..051edbb7abed 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_key_vault_client.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_key_vault_client.py @@ -23,7 +23,6 @@ class KeyVaultClient(KeyVaultClientOperationsMixin): """The key vault client performs cryptographic key operations and vault operations against the Key Vault service. - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_metadata.json b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_metadata.json index 32f572a8aad4..54d74c3501ce 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_metadata.json +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/_metadata.json @@ -7,7 +7,8 @@ "description": "The key vault client performs cryptographic key operations and vault operations against the Key Vault service.", "base_url": null, "custom_base_url": "\u0027{vaultBaseUrl}\u0027", - "azure_arm": false + "azure_arm": false, + "has_lro_operations": false }, "global_parameters": { "sync_method": { @@ -22,7 +23,8 @@ "credential": false, "credential_scopes": null, "credential_default_policy_type": "BearerTokenCredentialPolicy", - "credential_default_policy_type_has_async_version": true + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null }, "operation_groups": { }, diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/_key_vault_client_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/_key_vault_client_async.py index 2d273c4e45f8..58ad4c64124a 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/_key_vault_client_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/_key_vault_client_async.py @@ -19,7 +19,6 @@ class KeyVaultClient(KeyVaultClientOperationsMixin): """The key vault client performs cryptographic key operations and vault operations against the Key Vault service. - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/operations_async/_key_vault_client_operations_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/operations_async/_key_vault_client_operations_async.py index 5897008f9769..df7ed32b4a57 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/operations_async/_key_vault_client_operations_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/aio/operations_async/_key_vault_client_operations_async.py @@ -50,6 +50,7 @@ async def create_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_key.metadata['url'] # type: ignore @@ -66,13 +67,12 @@ async def create_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -118,6 +118,7 @@ async def import_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_key.metadata['url'] # type: ignore @@ -134,13 +135,12 @@ async def import_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyImportParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -183,6 +183,7 @@ async def delete_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_key.metadata['url'] # type: ignore @@ -198,7 +199,7 @@ async def delete_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -249,6 +250,7 @@ async def update_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_key.metadata['url'] # type: ignore @@ -266,13 +268,12 @@ async def update_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -317,6 +318,7 @@ async def get_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_key.metadata['url'] # type: ignore @@ -333,7 +335,7 @@ async def get_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -380,11 +382,12 @@ def get_key_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -464,11 +467,12 @@ def get_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -552,6 +556,7 @@ async def backup_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_key.metadata['url'] # type: ignore @@ -567,7 +572,7 @@ async def backup_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -619,6 +624,7 @@ async def restore_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_key.metadata['url'] # type: ignore @@ -634,13 +640,12 @@ async def restore_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -694,6 +699,7 @@ async def encrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.encrypt.metadata['url'] # type: ignore @@ -711,13 +717,12 @@ async def encrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -769,6 +774,7 @@ async def decrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.decrypt.metadata['url'] # type: ignore @@ -786,13 +792,12 @@ async def decrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -841,6 +846,7 @@ async def sign( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.sign.metadata['url'] # type: ignore @@ -858,13 +864,12 @@ async def sign( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeySignParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -915,6 +920,7 @@ async def verify( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.verify.metadata['url'] # type: ignore @@ -932,13 +938,12 @@ async def verify( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyVerifyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -990,6 +995,7 @@ async def wrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.wrap_key.metadata['url'] # type: ignore @@ -1007,13 +1013,12 @@ async def wrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1063,6 +1068,7 @@ async def unwrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.unwrap_key.metadata['url'] # type: ignore @@ -1080,13 +1086,12 @@ async def unwrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1131,11 +1136,12 @@ def get_deleted_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1211,6 +1217,7 @@ async def get_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_key.metadata['url'] # type: ignore @@ -1226,7 +1233,7 @@ async def get_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1270,6 +1277,7 @@ async def purge_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_key.metadata['url'] # type: ignore @@ -1285,6 +1293,7 @@ async def purge_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1326,6 +1335,7 @@ async def recover_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_key.metadata['url'] # type: ignore @@ -1341,7 +1351,7 @@ async def recover_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1389,6 +1399,7 @@ async def set_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_secret.metadata['url'] # type: ignore @@ -1405,13 +1416,12 @@ async def set_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1452,6 +1462,7 @@ async def delete_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_secret.metadata['url'] # type: ignore @@ -1467,7 +1478,7 @@ async def delete_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1518,6 +1529,7 @@ async def update_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_secret.metadata['url'] # type: ignore @@ -1535,13 +1547,12 @@ async def update_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1586,6 +1597,7 @@ async def get_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_secret.metadata['url'] # type: ignore @@ -1602,7 +1614,7 @@ async def get_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1647,11 +1659,12 @@ def get_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1730,11 +1743,12 @@ def get_secret_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1812,11 +1826,12 @@ def get_deleted_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1891,6 +1906,7 @@ async def get_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_secret.metadata['url'] # type: ignore @@ -1906,7 +1922,7 @@ async def get_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1950,6 +1966,7 @@ async def purge_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_secret.metadata['url'] # type: ignore @@ -1965,6 +1982,7 @@ async def purge_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2004,6 +2022,7 @@ async def recover_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_secret.metadata['url'] # type: ignore @@ -2019,7 +2038,7 @@ async def recover_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2062,6 +2081,7 @@ async def backup_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_secret.metadata['url'] # type: ignore @@ -2077,7 +2097,7 @@ async def backup_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2121,6 +2141,7 @@ async def restore_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_secret.metadata['url'] # type: ignore @@ -2136,13 +2157,12 @@ async def restore_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2188,11 +2208,12 @@ def get_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2270,6 +2291,7 @@ async def delete_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate.metadata['url'] # type: ignore @@ -2285,7 +2307,7 @@ async def delete_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2329,6 +2351,7 @@ async def set_certificate_contacts( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_contacts.metadata['url'] # type: ignore @@ -2344,13 +2367,12 @@ async def set_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(contacts, 'Contacts') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2388,6 +2410,7 @@ async def get_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_contacts.metadata['url'] # type: ignore @@ -2402,7 +2425,7 @@ async def get_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2442,6 +2465,7 @@ async def delete_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate_contacts.metadata['url'] # type: ignore @@ -2456,7 +2480,7 @@ async def delete_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2501,11 +2525,12 @@ def get_certificate_issuers( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2584,6 +2609,7 @@ async def set_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_issuer.metadata['url'] # type: ignore @@ -2600,13 +2626,12 @@ async def set_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2651,6 +2676,7 @@ async def update_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_issuer.metadata['url'] # type: ignore @@ -2667,13 +2693,12 @@ async def update_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2715,6 +2740,7 @@ async def get_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_issuer.metadata['url'] # type: ignore @@ -2730,7 +2756,7 @@ async def get_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2773,6 +2799,7 @@ async def delete_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate_issuer.metadata['url'] # type: ignore @@ -2788,7 +2815,7 @@ async def delete_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -2835,6 +2862,7 @@ async def create_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_certificate.metadata['url'] # type: ignore @@ -2851,13 +2879,12 @@ async def create_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2904,6 +2931,7 @@ async def import_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_certificate.metadata['url'] # type: ignore @@ -2920,13 +2948,12 @@ async def import_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateImportParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2971,11 +2998,12 @@ def get_certificate_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3052,6 +3080,7 @@ async def get_certificate_policy( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_policy.metadata['url'] # type: ignore @@ -3067,7 +3096,7 @@ async def get_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3114,6 +3143,7 @@ async def update_certificate_policy( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_policy.metadata['url'] # type: ignore @@ -3130,13 +3160,12 @@ async def update_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_policy, 'CertificatePolicy') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3185,6 +3214,7 @@ async def update_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate.metadata['url'] # type: ignore @@ -3202,13 +3232,12 @@ async def update_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3253,6 +3282,7 @@ async def get_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate.metadata['url'] # type: ignore @@ -3269,7 +3299,7 @@ async def get_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3316,6 +3346,7 @@ async def update_certificate_operation( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_operation.metadata['url'] # type: ignore @@ -3332,13 +3363,12 @@ async def update_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_operation, 'CertificateOperationUpdateParameter') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3379,6 +3409,7 @@ async def get_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_operation.metadata['url'] # type: ignore @@ -3394,7 +3425,7 @@ async def get_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3438,6 +3469,7 @@ async def delete_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate_operation.metadata['url'] # type: ignore @@ -3453,7 +3485,7 @@ async def delete_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3501,6 +3533,7 @@ async def merge_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.merge_certificate.metadata['url'] # type: ignore @@ -3517,13 +3550,12 @@ async def merge_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateMergeParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3565,6 +3597,7 @@ async def backup_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_certificate.metadata['url'] # type: ignore @@ -3580,7 +3613,7 @@ async def backup_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3624,6 +3657,7 @@ async def restore_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_certificate.metadata['url'] # type: ignore @@ -3639,13 +3673,12 @@ async def restore_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3693,11 +3726,12 @@ def get_deleted_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3775,6 +3809,7 @@ async def get_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_certificate.metadata['url'] # type: ignore @@ -3790,7 +3825,7 @@ async def get_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3834,6 +3869,7 @@ async def purge_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_certificate.metadata['url'] # type: ignore @@ -3849,6 +3885,7 @@ async def purge_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3890,6 +3927,7 @@ async def recover_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_certificate.metadata['url'] # type: ignore @@ -3905,7 +3943,7 @@ async def recover_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -3947,11 +3985,12 @@ def get_storage_accounts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4027,11 +4066,12 @@ def get_deleted_storage_accounts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4106,6 +4146,7 @@ async def get_deleted_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_storage_account.metadata['url'] # type: ignore @@ -4121,7 +4162,7 @@ async def get_deleted_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4165,6 +4206,7 @@ async def purge_deleted_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_storage_account.metadata['url'] # type: ignore @@ -4180,6 +4222,7 @@ async def purge_deleted_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4220,6 +4263,7 @@ async def recover_deleted_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_storage_account.metadata['url'] # type: ignore @@ -4235,7 +4279,7 @@ async def recover_deleted_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4278,6 +4322,7 @@ async def backup_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_storage_account.metadata['url'] # type: ignore @@ -4293,7 +4338,7 @@ async def backup_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4337,6 +4382,7 @@ async def restore_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_storage_account.metadata['url'] # type: ignore @@ -4352,13 +4398,12 @@ async def restore_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4396,6 +4441,7 @@ async def delete_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_storage_account.metadata['url'] # type: ignore @@ -4411,7 +4457,7 @@ async def delete_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4452,6 +4498,7 @@ async def get_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_storage_account.metadata['url'] # type: ignore @@ -4467,7 +4514,7 @@ async def get_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4511,6 +4558,7 @@ async def set_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_storage_account.metadata['url'] # type: ignore @@ -4527,13 +4575,12 @@ async def set_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4576,6 +4623,7 @@ async def update_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_storage_account.metadata['url'] # type: ignore @@ -4592,13 +4640,12 @@ async def update_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4641,6 +4688,7 @@ async def regenerate_storage_account_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.regenerate_storage_account_key.metadata['url'] # type: ignore @@ -4657,13 +4705,12 @@ async def regenerate_storage_account_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountRegenerteKeyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4706,11 +4753,12 @@ def get_sas_definitions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4791,11 +4839,12 @@ def get_deleted_sas_definitions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4875,6 +4924,7 @@ async def get_deleted_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_sas_definition.metadata['url'] # type: ignore @@ -4891,7 +4941,7 @@ async def get_deleted_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4938,6 +4988,7 @@ async def recover_deleted_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_sas_definition.metadata['url'] # type: ignore @@ -4954,7 +5005,7 @@ async def recover_deleted_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -4998,6 +5049,7 @@ async def delete_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_sas_definition.metadata['url'] # type: ignore @@ -5014,7 +5066,7 @@ async def delete_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -5058,6 +5110,7 @@ async def get_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_sas_definition.metadata['url'] # type: ignore @@ -5074,7 +5127,7 @@ async def get_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -5122,6 +5175,7 @@ async def set_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_sas_definition.metadata['url'] # type: ignore @@ -5139,13 +5193,12 @@ async def set_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -5191,6 +5244,7 @@ async def update_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_sas_definition.metadata['url'] # type: ignore @@ -5208,13 +5262,12 @@ async def update_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/operations/_key_vault_client_operations.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/operations/_key_vault_client_operations.py index 2c3025282c59..d8e5863c0f6e 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/operations/_key_vault_client_operations.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_0/operations/_key_vault_client_operations.py @@ -55,6 +55,7 @@ def create_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_key.metadata['url'] # type: ignore @@ -71,13 +72,12 @@ def create_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -124,6 +124,7 @@ def import_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_key.metadata['url'] # type: ignore @@ -140,13 +141,12 @@ def import_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyImportParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -190,6 +190,7 @@ def delete_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_key.metadata['url'] # type: ignore @@ -205,7 +206,7 @@ def delete_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -257,6 +258,7 @@ def update_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_key.metadata['url'] # type: ignore @@ -274,13 +276,12 @@ def update_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -326,6 +327,7 @@ def get_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_key.metadata['url'] # type: ignore @@ -342,7 +344,7 @@ def get_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -390,11 +392,12 @@ def get_key_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -475,11 +478,12 @@ def get_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -564,6 +568,7 @@ def backup_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_key.metadata['url'] # type: ignore @@ -579,7 +584,7 @@ def backup_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -632,6 +637,7 @@ def restore_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_key.metadata['url'] # type: ignore @@ -647,13 +653,12 @@ def restore_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -708,6 +713,7 @@ def encrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.encrypt.metadata['url'] # type: ignore @@ -725,13 +731,12 @@ def encrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -784,6 +789,7 @@ def decrypt( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.decrypt.metadata['url'] # type: ignore @@ -801,13 +807,12 @@ def decrypt( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -857,6 +862,7 @@ def sign( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.sign.metadata['url'] # type: ignore @@ -874,13 +880,12 @@ def sign( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeySignParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -932,6 +937,7 @@ def verify( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.verify.metadata['url'] # type: ignore @@ -949,13 +955,12 @@ def verify( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyVerifyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1008,6 +1013,7 @@ def wrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.wrap_key.metadata['url'] # type: ignore @@ -1025,13 +1031,12 @@ def wrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1082,6 +1087,7 @@ def unwrap_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.unwrap_key.metadata['url'] # type: ignore @@ -1099,13 +1105,12 @@ def unwrap_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'KeyOperationsParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1151,11 +1156,12 @@ def get_deleted_keys( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1232,6 +1238,7 @@ def get_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_key.metadata['url'] # type: ignore @@ -1247,7 +1254,7 @@ def get_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1292,6 +1299,7 @@ def purge_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_key.metadata['url'] # type: ignore @@ -1307,6 +1315,7 @@ def purge_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1349,6 +1358,7 @@ def recover_deleted_key( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_key.metadata['url'] # type: ignore @@ -1364,7 +1374,7 @@ def recover_deleted_key( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1413,6 +1423,7 @@ def set_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_secret.metadata['url'] # type: ignore @@ -1429,13 +1440,12 @@ def set_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1477,6 +1487,7 @@ def delete_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_secret.metadata['url'] # type: ignore @@ -1492,7 +1503,7 @@ def delete_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1544,6 +1555,7 @@ def update_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_secret.metadata['url'] # type: ignore @@ -1561,13 +1573,12 @@ def update_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1613,6 +1624,7 @@ def get_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_secret.metadata['url'] # type: ignore @@ -1629,7 +1641,7 @@ def get_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1675,11 +1687,12 @@ def get_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1759,11 +1772,12 @@ def get_secret_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1842,11 +1856,12 @@ def get_deleted_secrets( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1922,6 +1937,7 @@ def get_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_secret.metadata['url'] # type: ignore @@ -1937,7 +1953,7 @@ def get_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1982,6 +1998,7 @@ def purge_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_secret.metadata['url'] # type: ignore @@ -1997,6 +2014,7 @@ def purge_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2037,6 +2055,7 @@ def recover_deleted_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_secret.metadata['url'] # type: ignore @@ -2052,7 +2071,7 @@ def recover_deleted_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2096,6 +2115,7 @@ def backup_secret( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_secret.metadata['url'] # type: ignore @@ -2111,7 +2131,7 @@ def backup_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2156,6 +2176,7 @@ def restore_secret( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_secret.metadata['url'] # type: ignore @@ -2171,13 +2192,12 @@ def restore_secret( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SecretRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2224,11 +2244,12 @@ def get_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2307,6 +2328,7 @@ def delete_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate.metadata['url'] # type: ignore @@ -2322,7 +2344,7 @@ def delete_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2367,6 +2389,7 @@ def set_certificate_contacts( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_contacts.metadata['url'] # type: ignore @@ -2382,13 +2405,12 @@ def set_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(contacts, 'Contacts') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2427,6 +2449,7 @@ def get_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_contacts.metadata['url'] # type: ignore @@ -2441,7 +2464,7 @@ def get_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2482,6 +2505,7 @@ def delete_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate_contacts.metadata['url'] # type: ignore @@ -2496,7 +2520,7 @@ def delete_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2542,11 +2566,12 @@ def get_certificate_issuers( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -2626,6 +2651,7 @@ def set_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_issuer.metadata['url'] # type: ignore @@ -2642,13 +2668,12 @@ def set_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2694,6 +2719,7 @@ def update_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_issuer.metadata['url'] # type: ignore @@ -2710,13 +2736,12 @@ def update_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2759,6 +2784,7 @@ def get_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_issuer.metadata['url'] # type: ignore @@ -2774,7 +2800,7 @@ def get_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2818,6 +2844,7 @@ def delete_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate_issuer.metadata['url'] # type: ignore @@ -2833,7 +2860,7 @@ def delete_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -2881,6 +2908,7 @@ def create_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_certificate.metadata['url'] # type: ignore @@ -2897,13 +2925,12 @@ def create_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -2951,6 +2978,7 @@ def import_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_certificate.metadata['url'] # type: ignore @@ -2967,13 +2995,12 @@ def import_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateImportParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3019,11 +3046,12 @@ def get_certificate_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3101,6 +3129,7 @@ def get_certificate_policy( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_policy.metadata['url'] # type: ignore @@ -3116,7 +3145,7 @@ def get_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3164,6 +3193,7 @@ def update_certificate_policy( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_policy.metadata['url'] # type: ignore @@ -3180,13 +3210,12 @@ def update_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_policy, 'CertificatePolicy') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3236,6 +3265,7 @@ def update_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate.metadata['url'] # type: ignore @@ -3253,13 +3283,12 @@ def update_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3305,6 +3334,7 @@ def get_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate.metadata['url'] # type: ignore @@ -3321,7 +3351,7 @@ def get_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3369,6 +3399,7 @@ def update_certificate_operation( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_operation.metadata['url'] # type: ignore @@ -3385,13 +3416,12 @@ def update_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_operation, 'CertificateOperationUpdateParameter') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3433,6 +3463,7 @@ def get_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_certificate_operation.metadata['url'] # type: ignore @@ -3448,7 +3479,7 @@ def get_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3493,6 +3524,7 @@ def delete_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_certificate_operation.metadata['url'] # type: ignore @@ -3508,7 +3540,7 @@ def delete_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3557,6 +3589,7 @@ def merge_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.merge_certificate.metadata['url'] # type: ignore @@ -3573,13 +3606,12 @@ def merge_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateMergeParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3622,6 +3654,7 @@ def backup_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_certificate.metadata['url'] # type: ignore @@ -3637,7 +3670,7 @@ def backup_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3682,6 +3715,7 @@ def restore_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_certificate.metadata['url'] # type: ignore @@ -3697,13 +3731,12 @@ def restore_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -3752,11 +3785,12 @@ def get_deleted_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -3835,6 +3869,7 @@ def get_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_certificate.metadata['url'] # type: ignore @@ -3850,7 +3885,7 @@ def get_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3895,6 +3930,7 @@ def purge_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_certificate.metadata['url'] # type: ignore @@ -3910,6 +3946,7 @@ def purge_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -3952,6 +3989,7 @@ def recover_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_certificate.metadata['url'] # type: ignore @@ -3967,7 +4005,7 @@ def recover_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4010,11 +4048,12 @@ def get_storage_accounts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4091,11 +4130,12 @@ def get_deleted_storage_accounts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4171,6 +4211,7 @@ def get_deleted_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_storage_account.metadata['url'] # type: ignore @@ -4186,7 +4227,7 @@ def get_deleted_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4231,6 +4272,7 @@ def purge_deleted_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.purge_deleted_storage_account.metadata['url'] # type: ignore @@ -4246,6 +4288,7 @@ def purge_deleted_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4287,6 +4330,7 @@ def recover_deleted_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_storage_account.metadata['url'] # type: ignore @@ -4302,7 +4346,7 @@ def recover_deleted_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4346,6 +4390,7 @@ def backup_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.backup_storage_account.metadata['url'] # type: ignore @@ -4361,7 +4406,7 @@ def backup_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4406,6 +4451,7 @@ def restore_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_storage_account.metadata['url'] # type: ignore @@ -4421,13 +4467,12 @@ def restore_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4466,6 +4511,7 @@ def delete_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_storage_account.metadata['url'] # type: ignore @@ -4481,7 +4527,7 @@ def delete_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4523,6 +4569,7 @@ def get_storage_account( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_storage_account.metadata['url'] # type: ignore @@ -4538,7 +4585,7 @@ def get_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -4583,6 +4630,7 @@ def set_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_storage_account.metadata['url'] # type: ignore @@ -4599,13 +4647,12 @@ def set_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4649,6 +4696,7 @@ def update_storage_account( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_storage_account.metadata['url'] # type: ignore @@ -4665,13 +4713,12 @@ def update_storage_account( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4715,6 +4762,7 @@ def regenerate_storage_account_key( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.regenerate_storage_account_key.metadata['url'] # type: ignore @@ -4731,13 +4779,12 @@ def regenerate_storage_account_key( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'StorageAccountRegenerteKeyParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -4781,11 +4828,12 @@ def get_sas_definitions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4867,11 +4915,12 @@ def get_deleted_sas_definitions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -4952,6 +5001,7 @@ def get_deleted_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_deleted_sas_definition.metadata['url'] # type: ignore @@ -4968,7 +5018,7 @@ def get_deleted_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -5016,6 +5066,7 @@ def recover_deleted_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.recover_deleted_sas_definition.metadata['url'] # type: ignore @@ -5032,7 +5083,7 @@ def recover_deleted_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -5077,6 +5128,7 @@ def delete_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.delete_sas_definition.metadata['url'] # type: ignore @@ -5093,7 +5145,7 @@ def delete_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -5138,6 +5190,7 @@ def get_sas_definition( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" + accept = "application/json" # Construct URL url = self.get_sas_definition.metadata['url'] # type: ignore @@ -5154,7 +5207,7 @@ def get_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -5203,6 +5256,7 @@ def set_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_sas_definition.metadata['url'] # type: ignore @@ -5220,13 +5274,12 @@ def set_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionCreateParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -5273,6 +5326,7 @@ def update_sas_definition( error_map.update(kwargs.pop('error_map', {})) api_version = "7.0" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_sas_definition.metadata['url'] # type: ignore @@ -5290,13 +5344,12 @@ def update_sas_definition( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'SasDefinitionUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_key_vault_client.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_key_vault_client.py index d9db79ab8785..051edbb7abed 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_key_vault_client.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_key_vault_client.py @@ -23,7 +23,6 @@ class KeyVaultClient(KeyVaultClientOperationsMixin): """The key vault client performs cryptographic key operations and vault operations against the Key Vault service. - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_metadata.json b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_metadata.json index de42c75075ca..864eaf7699f9 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_metadata.json +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/_metadata.json @@ -7,7 +7,8 @@ "description": "The key vault client performs cryptographic key operations and vault operations against the Key Vault service.", "base_url": null, "custom_base_url": "\u0027{vaultBaseUrl}\u0027", - "azure_arm": false + "azure_arm": false, + "has_lro_operations": false }, "global_parameters": { "sync_method": { @@ -22,7 +23,8 @@ "credential": false, "credential_scopes": null, "credential_default_policy_type": "BearerTokenCredentialPolicy", - "credential_default_policy_type_has_async_version": true + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null }, "operation_groups": { }, diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/_key_vault_client_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/_key_vault_client_async.py index 2d273c4e45f8..58ad4c64124a 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/_key_vault_client_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/_key_vault_client_async.py @@ -19,7 +19,6 @@ class KeyVaultClient(KeyVaultClientOperationsMixin): """The key vault client performs cryptographic key operations and vault operations against the Key Vault service. - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/operations_async/_key_vault_client_operations_async.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/operations_async/_key_vault_client_operations_async.py index b3fb92dd9cf4..55d0ac62dd19 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/operations_async/_key_vault_client_operations_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/aio/operations_async/_key_vault_client_operations_async.py @@ -49,11 +49,12 @@ def get_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -131,6 +132,7 @@ async def delete_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate.metadata['url'] # type: ignore @@ -146,7 +148,7 @@ async def delete_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -190,6 +192,7 @@ async def set_certificate_contacts( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_contacts.metadata['url'] # type: ignore @@ -205,13 +208,12 @@ async def set_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(contacts, 'Contacts') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -249,6 +251,7 @@ async def get_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_contacts.metadata['url'] # type: ignore @@ -263,7 +266,7 @@ async def get_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -303,6 +306,7 @@ async def delete_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate_contacts.metadata['url'] # type: ignore @@ -317,7 +321,7 @@ async def delete_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -362,11 +366,12 @@ def get_certificate_issuers( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -445,6 +450,7 @@ async def set_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_issuer.metadata['url'] # type: ignore @@ -461,13 +467,12 @@ async def set_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -512,6 +517,7 @@ async def update_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_issuer.metadata['url'] # type: ignore @@ -528,13 +534,12 @@ async def update_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -576,6 +581,7 @@ async def get_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_issuer.metadata['url'] # type: ignore @@ -591,7 +597,7 @@ async def get_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -634,6 +640,7 @@ async def delete_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate_issuer.metadata['url'] # type: ignore @@ -649,7 +656,7 @@ async def delete_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -696,6 +703,7 @@ async def create_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_certificate.metadata['url'] # type: ignore @@ -712,13 +720,12 @@ async def create_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -765,6 +772,7 @@ async def import_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_certificate.metadata['url'] # type: ignore @@ -781,13 +789,12 @@ async def import_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateImportParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -832,11 +839,12 @@ def get_certificate_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -913,6 +921,7 @@ async def get_certificate_policy( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_policy.metadata['url'] # type: ignore @@ -928,7 +937,7 @@ async def get_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -975,6 +984,7 @@ async def update_certificate_policy( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_policy.metadata['url'] # type: ignore @@ -991,13 +1001,12 @@ async def update_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_policy, 'CertificatePolicy') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1046,6 +1055,7 @@ async def update_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate.metadata['url'] # type: ignore @@ -1063,13 +1073,12 @@ async def update_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1114,6 +1123,7 @@ async def get_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate.metadata['url'] # type: ignore @@ -1130,7 +1140,7 @@ async def get_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1177,6 +1187,7 @@ async def update_certificate_operation( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_operation.metadata['url'] # type: ignore @@ -1193,13 +1204,12 @@ async def update_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_operation, 'CertificateOperationUpdateParameter') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1240,6 +1250,7 @@ async def get_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_operation.metadata['url'] # type: ignore @@ -1255,7 +1266,7 @@ async def get_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1299,6 +1310,7 @@ async def delete_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate_operation.metadata['url'] # type: ignore @@ -1314,7 +1326,7 @@ async def delete_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1362,6 +1374,7 @@ async def merge_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.merge_certificate.metadata['url'] # type: ignore @@ -1378,13 +1391,12 @@ async def merge_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateMergeParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1426,6 +1438,7 @@ async def backup_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.backup_certificate.metadata['url'] # type: ignore @@ -1441,7 +1454,7 @@ async def backup_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1485,6 +1498,7 @@ async def restore_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_certificate.metadata['url'] # type: ignore @@ -1500,13 +1514,12 @@ async def restore_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1554,11 +1567,12 @@ def get_deleted_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1636,6 +1650,7 @@ async def get_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_deleted_certificate.metadata['url'] # type: ignore @@ -1651,7 +1666,7 @@ async def get_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1695,6 +1710,7 @@ async def purge_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.purge_deleted_certificate.metadata['url'] # type: ignore @@ -1710,6 +1726,7 @@ async def purge_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -1751,6 +1768,7 @@ async def recover_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.recover_deleted_certificate.metadata['url'] # type: ignore @@ -1766,7 +1784,7 @@ async def recover_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/operations/_key_vault_client_operations.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/operations/_key_vault_client_operations.py index e6aef045f2a4..401862212bb4 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/operations/_key_vault_client_operations.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/v7_1/operations/_key_vault_client_operations.py @@ -54,11 +54,12 @@ def get_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -137,6 +138,7 @@ def delete_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate.metadata['url'] # type: ignore @@ -152,7 +154,7 @@ def delete_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -197,6 +199,7 @@ def set_certificate_contacts( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_contacts.metadata['url'] # type: ignore @@ -212,13 +215,12 @@ def set_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(contacts, 'Contacts') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -257,6 +259,7 @@ def get_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_contacts.metadata['url'] # type: ignore @@ -271,7 +274,7 @@ def get_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -312,6 +315,7 @@ def delete_certificate_contacts( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate_contacts.metadata['url'] # type: ignore @@ -326,7 +330,7 @@ def delete_certificate_contacts( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -372,11 +376,12 @@ def get_certificate_issuers( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -456,6 +461,7 @@ def set_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.set_certificate_issuer.metadata['url'] # type: ignore @@ -472,13 +478,12 @@ def set_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerSetParameters') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -524,6 +529,7 @@ def update_certificate_issuer( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_issuer.metadata['url'] # type: ignore @@ -540,13 +546,12 @@ def update_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameter, 'CertificateIssuerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -589,6 +594,7 @@ def get_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_issuer.metadata['url'] # type: ignore @@ -604,7 +610,7 @@ def get_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -648,6 +654,7 @@ def delete_certificate_issuer( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate_issuer.metadata['url'] # type: ignore @@ -663,7 +670,7 @@ def delete_certificate_issuer( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -711,6 +718,7 @@ def create_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.create_certificate.metadata['url'] # type: ignore @@ -727,13 +735,12 @@ def create_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateCreateParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -781,6 +788,7 @@ def import_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.import_certificate.metadata['url'] # type: ignore @@ -797,13 +805,12 @@ def import_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateImportParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -849,11 +856,12 @@ def get_certificate_versions( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -931,6 +939,7 @@ def get_certificate_policy( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_policy.metadata['url'] # type: ignore @@ -946,7 +955,7 @@ def get_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -994,6 +1003,7 @@ def update_certificate_policy( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_policy.metadata['url'] # type: ignore @@ -1010,13 +1020,12 @@ def update_certificate_policy( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_policy, 'CertificatePolicy') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1066,6 +1075,7 @@ def update_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate.metadata['url'] # type: ignore @@ -1083,13 +1093,12 @@ def update_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1135,6 +1144,7 @@ def get_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate.metadata['url'] # type: ignore @@ -1151,7 +1161,7 @@ def get_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1199,6 +1209,7 @@ def update_certificate_operation( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.update_certificate_operation.metadata['url'] # type: ignore @@ -1215,13 +1226,12 @@ def update_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(certificate_operation, 'CertificateOperationUpdateParameter') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1263,6 +1273,7 @@ def get_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_certificate_operation.metadata['url'] # type: ignore @@ -1278,7 +1289,7 @@ def get_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1323,6 +1334,7 @@ def delete_certificate_operation( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.delete_certificate_operation.metadata['url'] # type: ignore @@ -1338,7 +1350,7 @@ def delete_certificate_operation( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1387,6 +1399,7 @@ def merge_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.merge_certificate.metadata['url'] # type: ignore @@ -1403,13 +1416,12 @@ def merge_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateMergeParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1452,6 +1464,7 @@ def backup_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.backup_certificate.metadata['url'] # type: ignore @@ -1467,7 +1480,7 @@ def backup_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1512,6 +1525,7 @@ def restore_certificate( error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.restore_certificate.metadata['url'] # type: ignore @@ -1527,13 +1541,12 @@ def restore_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'CertificateRestoreParameters') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -1582,11 +1595,12 @@ def get_deleted_certificates( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1665,6 +1679,7 @@ def get_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.get_deleted_certificate.metadata['url'] # type: ignore @@ -1680,7 +1695,7 @@ def get_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1725,6 +1740,7 @@ def purge_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.purge_deleted_certificate.metadata['url'] # type: ignore @@ -1740,6 +1756,7 @@ def purge_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -1782,6 +1799,7 @@ def recover_deleted_certificate( error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop('error_map', {})) api_version = "7.1" + accept = "application/json" # Construct URL url = self.recover_deleted_certificate.metadata['url'] # type: ignore @@ -1797,7 +1815,7 @@ def recover_deleted_certificate( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)