Fix typos in KeyVault Keys and Secrets sources. (#4716)
This commit is contained in:
Родитель
fac8d4e309
Коммит
b2f92f3513
|
@ -96,7 +96,7 @@ Response<KeyVaultCertificateWithPolicy> CertificateClient::GetCertificate(
|
|||
{
|
||||
auto request = CreateRequest(HttpMethod::Get, {CertificatesPath, certificateName});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultCertificateSerializer::Deserialize(certificateName, *rawResponse);
|
||||
return Azure::Response<KeyVaultCertificateWithPolicy>(std::move(value), std::move(rawResponse));
|
||||
|
@ -112,7 +112,7 @@ Response<KeyVaultCertificate> CertificateClient::GetCertificateVersion(
|
|||
|
||||
auto request = CreateRequest(HttpMethod::Get, std::move(path));
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultCertificateSerializer::Deserialize(certificateName, *rawResponse);
|
||||
return Azure::Response<KeyVaultCertificate>(std::move(value), std::move(rawResponse));
|
||||
|
@ -144,7 +144,7 @@ Response<DeletedCertificate> CertificateClient::GetDeletedCertificate(
|
|||
{
|
||||
auto request = CreateRequest(HttpMethod::Get, {DeletedCertificatesPath, certificateName});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = DeletedCertificateSerializer::Deserialize(certificateName, *rawResponse);
|
||||
return Azure::Response<DeletedCertificate>(std::move(value), std::move(rawResponse));
|
||||
|
@ -211,7 +211,7 @@ Response<CertificateContactsResult> CertificateClient::GetContacts(
|
|||
{
|
||||
auto request = CreateRequest(HttpMethod::Get, {CertificatesPath, ContactsPath});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = CertificateContactsSerializer::Deserialize(*rawResponse);
|
||||
return Azure::Response<CertificateContactsResult>(std::move(value), std::move(rawResponse));
|
||||
|
@ -222,7 +222,7 @@ Response<CertificateContactsResult> CertificateClient::DeleteContacts(
|
|||
{
|
||||
auto request = CreateRequest(HttpMethod::Delete, {CertificatesPath, ContactsPath});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = CertificateContactsSerializer::Deserialize(*rawResponse);
|
||||
return Azure::Response<CertificateContactsResult>(std::move(value), std::move(rawResponse));
|
||||
|
@ -292,7 +292,7 @@ Response<PurgedCertificate> CertificateClient::PurgeDeletedCertificate(
|
|||
{
|
||||
auto request = CreateRequest(HttpMethod::Delete, {DeletedCertificatesPath, certificateName});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
PurgedCertificate value;
|
||||
return Azure::Response<PurgedCertificate>(std::move(value), std::move(rawResponse));
|
||||
|
@ -391,7 +391,7 @@ CertificatePropertiesPagedResponse CertificateClient::GetPropertiesOfCertificate
|
|||
request.GetUrl().AppendQueryParameter(
|
||||
IncludePendingQuery, options.IncludePending.Value() ? TrueQueryValue : FalseQueryValue);
|
||||
}
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = CertificatePropertiesPagedResponseSerializer::Deserialize(*rawResponse);
|
||||
return CertificatePropertiesPagedResponse(
|
||||
|
@ -407,7 +407,7 @@ CertificatePropertiesPagedResponse CertificateClient::GetPropertiesOfCertificate
|
|||
auto request = ContinuationTokenRequest(
|
||||
{CertificatesPath, certificateName, VersionsPath}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = CertificatePropertiesPagedResponseSerializer::Deserialize(*rawResponse);
|
||||
return CertificatePropertiesPagedResponse(
|
||||
|
@ -421,7 +421,7 @@ IssuerPropertiesPagedResponse CertificateClient::GetPropertiesOfIssuers(
|
|||
// Request and settings
|
||||
auto request = ContinuationTokenRequest({CertificatesPath, IssuersPath}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = IssuerPropertiesPagedResponseSerializer::Deserialize(*rawResponse);
|
||||
return IssuerPropertiesPagedResponse(
|
||||
|
@ -435,7 +435,7 @@ DeletedCertificatesPagedResponse CertificateClient::GetDeletedCertificates(
|
|||
// Request and settings
|
||||
auto request = ContinuationTokenRequest({DeletedCertificatesPath}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = DeletedCertificatesPagedResponseSerializer::Deserialize(*rawResponse);
|
||||
return DeletedCertificatesPagedResponse(
|
||||
|
|
|
@ -86,7 +86,7 @@ std::unique_ptr<Azure::Core::Http::RawResponse> CryptographyClient::SendCryptoRe
|
|||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
request.SetHeader(HttpShared::Accept, HttpShared::ApplicationJson);
|
||||
|
||||
// Send, parse and validate respone
|
||||
// Send, parse and validate response
|
||||
return Azure::Security::KeyVault::_detail::KeyVaultKeysCommonRequest::SendRequest(
|
||||
*m_pipeline, request, context);
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ Azure::Response<EncryptResult> CryptographyClient::Encrypt(
|
|||
EncryptParameters const& parameters,
|
||||
Azure::Core::Context const& context)
|
||||
{
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendCryptoRequest(
|
||||
{EncryptValue}, EncryptParametersSerializer::EncryptParametersSerialize(parameters), context);
|
||||
auto value = EncryptResultSerializer::EncryptResultDeserialize(*rawResponse);
|
||||
|
@ -134,7 +134,7 @@ Azure::Response<DecryptResult> CryptographyClient::Decrypt(
|
|||
DecryptParameters const& parameters,
|
||||
Azure::Core::Context const& context)
|
||||
{
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendCryptoRequest(
|
||||
{DecryptValue}, DecryptParametersSerializer::DecryptParametersSerialize(parameters), context);
|
||||
auto value = DecryptResultSerializer::DecryptResultDeserialize(*rawResponse);
|
||||
|
@ -147,7 +147,7 @@ Azure::Response<WrapResult> CryptographyClient::WrapKey(
|
|||
std::vector<uint8_t> const& key,
|
||||
Azure::Core::Context const& context)
|
||||
{
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendCryptoRequest(
|
||||
{WrapKeyValue},
|
||||
KeyWrapParametersSerializer::KeyWrapParametersSerialize(
|
||||
|
@ -163,7 +163,7 @@ Azure::Response<UnwrapResult> CryptographyClient::UnwrapKey(
|
|||
std::vector<uint8_t> const& encryptedKey,
|
||||
Azure::Core::Context const& context)
|
||||
{
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendCryptoRequest(
|
||||
{UnwrapKeyValue},
|
||||
KeyWrapParametersSerializer::KeyWrapParametersSerialize(
|
||||
|
@ -179,7 +179,7 @@ Azure::Response<SignResult> CryptographyClient::Sign(
|
|||
std::vector<uint8_t> const& digest,
|
||||
Azure::Core::Context const& context)
|
||||
{
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendCryptoRequest(
|
||||
{SignValue},
|
||||
KeySignParametersSerializer::KeySignParametersSerialize(
|
||||
|
@ -212,7 +212,7 @@ Azure::Response<VerifyResult> CryptographyClient::Verify(
|
|||
std::vector<uint8_t> const& signature,
|
||||
Azure::Core::Context const& context)
|
||||
{
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendCryptoRequest(
|
||||
{VerifyValue},
|
||||
KeyVerifyParametersSerializer::KeyVerifyParametersSerialize(
|
||||
|
|
|
@ -98,7 +98,7 @@ Azure::Response<KeyVaultKey> KeyClient::GetKey(
|
|||
// Request with no payload
|
||||
auto request = CreateRequest(HttpMethod::Get, {_detail::KeysPath, name, options.Version});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(name, *rawResponse);
|
||||
return Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -121,7 +121,7 @@ Azure::Response<KeyVaultKey> KeyClient::CreateKey(
|
|||
= CreateRequest(HttpMethod::Post, {_detail::KeysPath, name, CreateValue}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(name, *rawResponse);
|
||||
return Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -142,7 +142,7 @@ Azure::Response<KeyVaultKey> KeyClient::CreateEcKey(
|
|||
= CreateRequest(HttpMethod::Post, {_detail::KeysPath, keyName, CreateValue}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(keyName, *rawResponse);
|
||||
return Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -163,7 +163,7 @@ Azure::Response<KeyVaultKey> KeyClient::CreateRsaKey(
|
|||
= CreateRequest(HttpMethod::Post, {_detail::KeysPath, keyName, CreateValue}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(keyName, *rawResponse);
|
||||
return Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -184,7 +184,7 @@ Azure::Response<KeyVaultKey> KeyClient::CreateOctKey(
|
|||
= CreateRequest(HttpMethod::Post, {_detail::KeysPath, keyName, CreateValue}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(keyName, *rawResponse);
|
||||
return Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -197,7 +197,7 @@ KeyPropertiesPagedResponse KeyClient::GetPropertiesOfKeys(
|
|||
// Request and settings
|
||||
auto request = ContinuationTokenRequest({_detail::KeysPath}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyPropertiesPagedResultSerializer::KeyPropertiesPagedResultDeserialize(
|
||||
*rawResponse);
|
||||
|
@ -214,7 +214,7 @@ KeyPropertiesPagedResponse KeyClient::GetPropertiesOfKeyVersions(
|
|||
auto request
|
||||
= ContinuationTokenRequest({_detail::KeysPath, name, "versions"}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyPropertiesPagedResultSerializer::KeyPropertiesPagedResultDeserialize(
|
||||
*rawResponse);
|
||||
|
@ -229,7 +229,7 @@ Azure::Security::KeyVault::Keys::DeleteKeyOperation KeyClient::StartDeleteKey(
|
|||
// Request with no payload
|
||||
auto request = CreateRequest(HttpMethod::Delete, {_detail::KeysPath, name});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::DeletedKeySerializer::DeletedKeyDeserialize(name, *rawResponse);
|
||||
auto responseT = Azure::Response<DeletedKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -253,7 +253,7 @@ Azure::Response<ReleaseKeyResult> KeyClient::ReleaseKey(
|
|||
&payloadStream);
|
||||
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyReleaseOptionsSerializer::KeyReleaseOptionsDeserialize(*rawResponse);
|
||||
return Azure::Response<ReleaseKeyResult>(value, std::move(rawResponse));
|
||||
|
@ -266,7 +266,7 @@ Azure::Security::KeyVault::Keys::RecoverDeletedKeyOperation KeyClient::StartReco
|
|||
// Request with no payload
|
||||
auto request = CreateRequest(HttpMethod::Post, {_detail::DeletedKeysPath, name, "recover"});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(name, *rawResponse);
|
||||
auto responseT = Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -281,7 +281,7 @@ Azure::Response<DeletedKey> KeyClient::GetDeletedKey(
|
|||
// Request with no payload
|
||||
auto request = CreateRequest(HttpMethod::Get, {_detail::DeletedKeysPath, name});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::DeletedKeySerializer::DeletedKeyDeserialize(name, *rawResponse);
|
||||
return Azure::Response<DeletedKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -294,7 +294,7 @@ DeletedKeyPagedResponse KeyClient::GetDeletedKeys(
|
|||
// Request and settings
|
||||
auto request = ContinuationTokenRequest({_detail::DeletedKeysPath}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value
|
||||
= _detail::KeyPropertiesPagedResultSerializer::DeletedKeyPagedResultDeserialize(*rawResponse);
|
||||
|
@ -309,7 +309,7 @@ Azure::Response<PurgedKey> KeyClient::PurgeDeletedKey(
|
|||
// Request with no payload
|
||||
auto request = CreateRequest(HttpMethod::Delete, {_detail::DeletedKeysPath, name});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = PurgedKey();
|
||||
return Azure::Response<PurgedKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -331,7 +331,7 @@ Azure::Response<KeyVaultKey> KeyClient::UpdateKeyProperties(
|
|||
HttpMethod::Patch, {_detail::KeysPath, properties.Name, properties.Version}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value
|
||||
= _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(properties.Name, *rawResponse);
|
||||
|
@ -345,7 +345,7 @@ Azure::Response<BackupKeyResult> KeyClient::BackupKey(
|
|||
// Request with no payload
|
||||
auto request = CreateRequest(HttpMethod::Post, {_detail::KeysPath, name, "backup"});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
// the internal backupKey model provides the Deserialize implementation
|
||||
auto internalValue = _detail::KeyBackup::Deserialize(*rawResponse);
|
||||
|
@ -368,7 +368,7 @@ Azure::Response<KeyVaultKey> KeyClient::RestoreKeyBackup(
|
|||
auto request = CreateRequest(HttpMethod::Post, {_detail::KeysPath, "restore"}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(*rawResponse);
|
||||
return Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -397,7 +397,7 @@ Azure::Response<KeyVaultKey> KeyClient::ImportKey(
|
|||
HttpMethod::Put, {_detail::KeysPath, importKeyOptions.Name()}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(
|
||||
importKeyOptions.Name(), *rawResponse);
|
||||
|
@ -412,7 +412,7 @@ Azure::Response<KeyVaultKey> KeyClient::RotateKey(
|
|||
auto request
|
||||
= CreateRequest(HttpMethod::Post, {_detail::KeysPath, name, _detail::RotateActionsValue});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyVaultKeySerializer::KeyVaultKeyDeserialize(name, *rawResponse);
|
||||
return Azure::Response<KeyVaultKey>(std::move(value), std::move(rawResponse));
|
||||
|
@ -426,7 +426,7 @@ Azure::Response<KeyRotationPolicy> KeyClient::GetKeyRotationPolicy(
|
|||
auto request
|
||||
= CreateRequest(HttpMethod::Get, {_detail::KeysPath, name, _detail::RotationPolicyPath});
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::KeyRotationPolicySerializer::KeyRotationPolicyDeserialize(*rawResponse);
|
||||
return Azure::Response<KeyRotationPolicy>(std::move(value), std::move(rawResponse));
|
||||
|
@ -465,7 +465,7 @@ Azure::Response<GetRandomBytesResult> KeyClient::GetRandomBytes(
|
|||
auto request = CreateRequest(HttpMethod::Post, {"/rng"}, &payloadStream);
|
||||
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto response = GetRandomBytesResult{
|
||||
_detail::GetRandomBytesSerializer::GetRandomBytesResponseDeserialize(*rawResponse)};
|
||||
|
|
|
@ -57,7 +57,7 @@ TEST_F(KeyVaultKeyClient, BackupKey)
|
|||
{
|
||||
// Restore
|
||||
std::cout << std::endl << "- Restore key";
|
||||
auto respone = client.RestoreKeyBackup(backUpResponse.Value.BackupKey);
|
||||
auto response = client.RestoreKeyBackup(backUpResponse.Value.BackupKey);
|
||||
CheckValidResponse(backUpResponse);
|
||||
}
|
||||
{
|
||||
|
|
|
@ -169,7 +169,7 @@ namespace Azure { namespace Security { namespace KeyVault { namespace _detail {
|
|||
|
||||
/**
|
||||
* @brief Create a key vault request and send it using the Azure Core pipeline directly to avoid
|
||||
* checking the respone code.
|
||||
* checking the response code.
|
||||
*
|
||||
* @param context A context for cancellation.
|
||||
* @param method The HTTP method for the request.
|
||||
|
|
|
@ -95,7 +95,7 @@ Azure::Response<KeyVaultSecret> SecretClient::GetSecret(
|
|||
{
|
||||
auto request = CreateRequest(HttpMethod::Get, {_detail::SecretPath, name, options.Version});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::SecretSerializer::Deserialize(name, *rawResponse);
|
||||
return Azure::Response<KeyVaultSecret>(std::move(value), std::move(rawResponse));
|
||||
|
@ -107,7 +107,7 @@ Azure::Response<DeletedSecret> SecretClient::GetDeletedSecret(
|
|||
{
|
||||
auto request = CreateRequest(HttpMethod::Get, {_detail::DeletedSecretPath, name});
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::DeletedSecretSerializer::Deserialize(name, *rawResponse);
|
||||
return Azure::Response<DeletedSecret>(std::move(value), std::move(rawResponse));
|
||||
|
@ -132,7 +132,7 @@ Azure::Response<KeyVaultSecret> SecretClient::SetSecret(
|
|||
reinterpret_cast<const uint8_t*>(payload.data()), payload.size());
|
||||
|
||||
auto request = CreateRequest(HttpMethod::Put, {_detail::SecretPath, name}, &payloadStream);
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::SecretSerializer::Deserialize(name, *rawResponse);
|
||||
return Azure::Response<KeyVaultSecret>(std::move(value), std::move(rawResponse));
|
||||
|
@ -150,7 +150,7 @@ Azure::Response<KeyVaultSecret> SecretClient::UpdateSecretProperties(
|
|||
HttpMethod::Patch,
|
||||
{_detail::SecretPath, properties.Name, properties.Version},
|
||||
&payloadStream);
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::SecretSerializer::Deserialize(properties.Name, *rawResponse);
|
||||
return Azure::Response<KeyVaultSecret>(std::move(value), std::move(rawResponse));
|
||||
|
@ -162,7 +162,7 @@ Azure::Response<BackupSecretResult> SecretClient::BackupSecret(
|
|||
{
|
||||
auto request
|
||||
= CreateRequest(HttpMethod::Post, {_detail::SecretPath, name, _detail::BackupSecretPath});
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::BackupSecretSerializer::Deserialize(*rawResponse);
|
||||
return Azure::Response<BackupSecretResult>(std::move(value), std::move(rawResponse));
|
||||
|
@ -178,7 +178,7 @@ Azure::Response<KeyVaultSecret> SecretClient::RestoreSecretBackup(
|
|||
|
||||
auto request = CreateRequest(
|
||||
HttpMethod::Post, {_detail::SecretPath, _detail::RestoreSecretPath}, &payloadStream);
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::SecretSerializer::Deserialize(*rawResponse);
|
||||
return Azure::Response<KeyVaultSecret>(std::move(value), std::move(rawResponse));
|
||||
|
@ -189,7 +189,7 @@ Azure::Response<PurgedSecret> SecretClient::PurgeDeletedSecret(
|
|||
Azure::Core::Context const& context) const
|
||||
{
|
||||
auto request = CreateRequest(HttpMethod::Delete, {_detail::DeletedSecretPath, name});
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
PurgedSecret value;
|
||||
return Azure::Response<PurgedSecret>(std::move(value), std::move(rawResponse));
|
||||
|
@ -200,7 +200,7 @@ Azure::Security::KeyVault::Secrets::DeleteSecretOperation SecretClient::StartDel
|
|||
Azure::Core::Context const& context) const
|
||||
{
|
||||
auto request = CreateRequest(HttpMethod::Delete, {_detail::SecretPath, name});
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::DeletedSecretSerializer::Deserialize(name, *rawResponse);
|
||||
auto responseT = Azure::Response<DeletedSecret>(std::move(value), std::move(rawResponse));
|
||||
|
@ -212,7 +212,7 @@ Azure::Security::KeyVault::Secrets::RecoverDeletedSecretOperation SecretClient::
|
|||
{
|
||||
auto request = CreateRequest(
|
||||
HttpMethod::Post, {_detail::DeletedSecretPath, name, _detail::RecoverDeletedSecretPath});
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto parsedResponse = _detail::SecretSerializer::Deserialize(name, *rawResponse);
|
||||
|
||||
|
@ -228,7 +228,7 @@ SecretPropertiesPagedResponse SecretClient::GetPropertiesOfSecrets(
|
|||
// Request and settings
|
||||
auto request = ContinuationTokenRequest({SecretPath}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::SecretPropertiesPagedResultSerializer::Deserialize(*rawResponse);
|
||||
return SecretPropertiesPagedResponse(
|
||||
|
@ -244,7 +244,7 @@ SecretPropertiesPagedResponse SecretClient::GetPropertiesOfSecretsVersions(
|
|||
auto request = ContinuationTokenRequest(
|
||||
{_detail::SecretPath, name, _detail::VersionsName}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::SecretPropertiesPagedResultSerializer::Deserialize(*rawResponse);
|
||||
return SecretPropertiesPagedResponse(
|
||||
|
@ -258,7 +258,7 @@ DeletedSecretPagedResponse SecretClient::GetDeletedSecrets(
|
|||
// Request and settings
|
||||
auto request = ContinuationTokenRequest({_detail::DeletedSecretPath}, options.NextPageToken);
|
||||
|
||||
// Send and parse respone
|
||||
// Send and parse response
|
||||
auto rawResponse = SendRequest(request, context);
|
||||
auto value = _detail::DeletedSecretPagedResultSerializer::Deserialize(*rawResponse);
|
||||
return DeletedSecretPagedResponse(
|
||||
|
|
Загрузка…
Ссылка в новой задаче