14#include "azure/keyvault/certificates/dll_import_export.hpp"
16#include <azure/core/operation.hpp>
17#include <azure/core/operation_status.hpp>
18#include <azure/core/response.hpp>
20namespace Azure {
namespace Security {
namespace KeyVault {
namespace Certificates {
21 class CertificateClient;
26 :
public Azure::Core::Operation<CertificateOperationProperties> {
31 std::shared_ptr<CertificateClient> m_certificateClient;
33 std::string m_continuationToken;
35 Azure::Response<CertificateOperationProperties> PollUntilDoneInternal(
36 std::chrono::milliseconds period,
37 Azure::Core::Context& context)
override;
39 std::unique_ptr<Azure::Core::Http::RawResponse> PollInternal(
40 Azure::Core::Context
const& context)
override;
48 std::shared_ptr<CertificateClient> certificateClient,
49 Azure::Response<CertificateOperationProperties> response);
52 std::string resumeToken,
53 std::shared_ptr<CertificateClient> certificateClient);
86 std::string
const& resumeToken,
88 Azure::Core::Context
const& context = Azure::Core::Context());
95 void Cancel(Azure::Core::Context
const& context = Azure::Core::Context());
102 void Delete(Azure::Core::Context
const& context = Azure::Core::Context());
120 std::shared_ptr<CertificateClient> m_certificateClient;
122 std::string m_continuationToken;
124 Azure::Response<DeletedCertificate> PollUntilDoneInternal(
125 std::chrono::milliseconds period,
126 Azure::Core::Context& context)
override;
128 std::unique_ptr<Azure::Core::Http::RawResponse> PollInternal(
129 Azure::Core::Context
const& context)
override;
137 std::shared_ptr<CertificateClient> certificateClient,
138 Azure::Response<DeletedCertificate> response);
141 std::string resumeToken,
142 std::shared_ptr<CertificateClient> certificateClient);
174 std::string
const& resumeToken,
176 Azure::Core::Context
const& context = Azure::Core::Context());
183 :
public Azure::Core::Operation<KeyVaultCertificateWithPolicy> {
188 std::shared_ptr<CertificateClient> m_certificateClient;
190 std::string m_continuationToken;
192 Azure::Response<KeyVaultCertificateWithPolicy> PollUntilDoneInternal(
193 std::chrono::milliseconds period,
194 Azure::Core::Context& context)
override;
196 std::unique_ptr<Azure::Core::Http::RawResponse> PollInternal(
197 Azure::Core::Context
const& context)
override;
205 std::shared_ptr<CertificateClient> certificateClient,
206 Azure::Response<KeyVaultCertificateWithPolicy> response);
209 std::string resumeToken,
210 std::shared_ptr<CertificateClient> certificateClient);
243 std::string
const& resumeToken,
245 Azure::Core::Context
const& context = Azure::Core::Context());
Defines the Key Vault Certificates types.
The CertificateClient provides synchronous methods to manage KeyVaultCertificate in Azure Key Vault.
Definition certificate_client.hpp:39
A certificate operation.
Definition certificate_client_models.hpp:1187
Represents a create certificate long running operation.
Definition certificate_client_operations.hpp:26
CertificateOperationProperties Value() const override
Get the Azure::Security::KeyVault::Certificates::CertificateOperationProperties object.
Definition certificate_client_operations.hpp:62
static CreateCertificateOperation CreateFromResumeToken(std::string const &resumeToken, CertificateClient const &client, Azure::Core::Context const &context=Azure::Core::Context())
Create a CreateCertificateOperation from the resumeToken fetched from another Operation<T>,...
std::string GetResumeToken() const override
Get an Url as string which can be used to get the status of the operation.
Definition certificate_client_operations.hpp:70
bool IsCompleted() const
Determines if the operation has completed.
void Cancel(Azure::Core::Context const &context=Azure::Core::Context())
Cancels the operation.
void Delete(Azure::Core::Context const &context=Azure::Core::Context())
Delete operation.
Represents a delete certificate long running operation.
Definition certificate_client_operations.hpp:115
std::string GetResumeToken() const override
Get an Url as string which can be used to get the status of the operation.
Definition certificate_client_operations.hpp:158
DeletedCertificate Value() const override
Get the Azure::Security::KeyVault::Certificates::DeletedCertificate object.
Definition certificate_client_operations.hpp:150
static DeleteCertificateOperation CreateFromResumeToken(std::string const &resumeToken, CertificateClient const &client, Azure::Core::Context const &context=Azure::Core::Context())
Create a DeleteCertificateOperation from the resumeToken fetched from another Operation<T>,...
Represents a deleted certificate in a KeyVault.
Definition certificate_client_models.hpp:1295
A KeyVaultCertificate along with its CertificatePolicy.
Definition certificate_client_models.hpp:890
Represents a recover deleted certificate long running operation.
Definition certificate_client_operations.hpp:183
KeyVaultCertificateWithPolicy Value() const override
Get the Azure::Security::KeyVault::Certificates::KeyVaultCertificateWithPolicy object.
Definition certificate_client_operations.hpp:219
std::string GetResumeToken() const override
Get an Url as string which can be used to get the status of the operation.
Definition certificate_client_operations.hpp:227
static RecoverDeletedCertificateOperation CreateFromResumeToken(std::string const &resumeToken, CertificateClient const &client, Azure::Core::Context const &context=Azure::Core::Context())
Create a RecoverDeletedCertificateOperation from the resumeToken fetched from another Operation<T>,...