add Instance, NetworkRule, Policy, ApplicationAccessPoint, ClientKey OpenAPIs
This commit is contained in:
@@ -375,6 +375,42 @@ KmsClient::CertificatePublicKeyVerifyOutcomeCallable KmsClient::certificatePubli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ConnectKmsInstanceOutcome KmsClient::connectKmsInstance(const ConnectKmsInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConnectKmsInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ConnectKmsInstanceOutcome(ConnectKmsInstanceResult(outcome.result()));
|
||||
else
|
||||
return ConnectKmsInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::connectKmsInstanceAsync(const ConnectKmsInstanceRequest& request, const ConnectKmsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, connectKmsInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::ConnectKmsInstanceOutcomeCallable KmsClient::connectKmsInstanceCallable(const ConnectKmsInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ConnectKmsInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->connectKmsInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreateAliasOutcome KmsClient::createAlias(const CreateAliasRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +447,42 @@ KmsClient::CreateAliasOutcomeCallable KmsClient::createAliasCallable(const Creat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreateApplicationAccessPointOutcome KmsClient::createApplicationAccessPoint(const CreateApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateApplicationAccessPointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateApplicationAccessPointOutcome(CreateApplicationAccessPointResult(outcome.result()));
|
||||
else
|
||||
return CreateApplicationAccessPointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::createApplicationAccessPointAsync(const CreateApplicationAccessPointRequest& request, const CreateApplicationAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createApplicationAccessPoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::CreateApplicationAccessPointOutcomeCallable KmsClient::createApplicationAccessPointCallable(const CreateApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateApplicationAccessPointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createApplicationAccessPoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreateCertificateOutcome KmsClient::createCertificate(const CreateCertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +519,42 @@ KmsClient::CreateCertificateOutcomeCallable KmsClient::createCertificateCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreateClientKeyOutcome KmsClient::createClientKey(const CreateClientKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateClientKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateClientKeyOutcome(CreateClientKeyResult(outcome.result()));
|
||||
else
|
||||
return CreateClientKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::createClientKeyAsync(const CreateClientKeyRequest& request, const CreateClientKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createClientKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::CreateClientKeyOutcomeCallable KmsClient::createClientKeyCallable(const CreateClientKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateClientKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createClientKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreateKeyOutcome KmsClient::createKey(const CreateKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +627,78 @@ KmsClient::CreateKeyVersionOutcomeCallable KmsClient::createKeyVersionCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreateNetworkRuleOutcome KmsClient::createNetworkRule(const CreateNetworkRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNetworkRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateNetworkRuleOutcome(CreateNetworkRuleResult(outcome.result()));
|
||||
else
|
||||
return CreateNetworkRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::createNetworkRuleAsync(const CreateNetworkRuleRequest& request, const CreateNetworkRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createNetworkRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::CreateNetworkRuleOutcomeCallable KmsClient::createNetworkRuleCallable(const CreateNetworkRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateNetworkRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createNetworkRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreatePolicyOutcome KmsClient::createPolicy(const CreatePolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreatePolicyOutcome(CreatePolicyResult(outcome.result()));
|
||||
else
|
||||
return CreatePolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::createPolicyAsync(const CreatePolicyRequest& request, const CreatePolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::CreatePolicyOutcomeCallable KmsClient::createPolicyCallable(const CreatePolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreatePolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::CreateSecretOutcome KmsClient::createSecret(const CreateSecretRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +807,42 @@ KmsClient::DeleteAliasOutcomeCallable KmsClient::deleteAliasCallable(const Delet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DeleteApplicationAccessPointOutcome KmsClient::deleteApplicationAccessPoint(const DeleteApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteApplicationAccessPointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteApplicationAccessPointOutcome(DeleteApplicationAccessPointResult(outcome.result()));
|
||||
else
|
||||
return DeleteApplicationAccessPointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::deleteApplicationAccessPointAsync(const DeleteApplicationAccessPointRequest& request, const DeleteApplicationAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteApplicationAccessPoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::DeleteApplicationAccessPointOutcomeCallable KmsClient::deleteApplicationAccessPointCallable(const DeleteApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteApplicationAccessPointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteApplicationAccessPoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DeleteCertificateOutcome KmsClient::deleteCertificate(const DeleteCertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +879,42 @@ KmsClient::DeleteCertificateOutcomeCallable KmsClient::deleteCertificateCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DeleteClientKeyOutcome KmsClient::deleteClientKey(const DeleteClientKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteClientKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteClientKeyOutcome(DeleteClientKeyResult(outcome.result()));
|
||||
else
|
||||
return DeleteClientKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::deleteClientKeyAsync(const DeleteClientKeyRequest& request, const DeleteClientKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteClientKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::DeleteClientKeyOutcomeCallable KmsClient::deleteClientKeyCallable(const DeleteClientKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteClientKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteClientKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DeleteKeyMaterialOutcome KmsClient::deleteKeyMaterial(const DeleteKeyMaterialRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +951,78 @@ KmsClient::DeleteKeyMaterialOutcomeCallable KmsClient::deleteKeyMaterialCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DeleteNetworkRuleOutcome KmsClient::deleteNetworkRule(const DeleteNetworkRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNetworkRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteNetworkRuleOutcome(DeleteNetworkRuleResult(outcome.result()));
|
||||
else
|
||||
return DeleteNetworkRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::deleteNetworkRuleAsync(const DeleteNetworkRuleRequest& request, const DeleteNetworkRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteNetworkRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::DeleteNetworkRuleOutcomeCallable KmsClient::deleteNetworkRuleCallable(const DeleteNetworkRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteNetworkRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteNetworkRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DeletePolicyOutcome KmsClient::deletePolicy(const DeletePolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePolicyOutcome(DeletePolicyResult(outcome.result()));
|
||||
else
|
||||
return DeletePolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::deletePolicyAsync(const DeletePolicyRequest& request, const DeletePolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::DeletePolicyOutcomeCallable KmsClient::deletePolicyCallable(const DeletePolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DeleteSecretOutcome KmsClient::deleteSecret(const DeleteSecretRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +1095,42 @@ KmsClient::DescribeAccountKmsStatusOutcomeCallable KmsClient::describeAccountKms
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DescribeApplicationAccessPointOutcome KmsClient::describeApplicationAccessPoint(const DescribeApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeApplicationAccessPointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeApplicationAccessPointOutcome(DescribeApplicationAccessPointResult(outcome.result()));
|
||||
else
|
||||
return DescribeApplicationAccessPointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::describeApplicationAccessPointAsync(const DescribeApplicationAccessPointRequest& request, const DescribeApplicationAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeApplicationAccessPoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::DescribeApplicationAccessPointOutcomeCallable KmsClient::describeApplicationAccessPointCallable(const DescribeApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeApplicationAccessPointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeApplicationAccessPoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DescribeCertificateOutcome KmsClient::describeCertificate(const DescribeCertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +1239,78 @@ KmsClient::DescribeKeyVersionOutcomeCallable KmsClient::describeKeyVersionCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DescribeNetworkRuleOutcome KmsClient::describeNetworkRule(const DescribeNetworkRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNetworkRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNetworkRuleOutcome(DescribeNetworkRuleResult(outcome.result()));
|
||||
else
|
||||
return DescribeNetworkRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::describeNetworkRuleAsync(const DescribeNetworkRuleRequest& request, const DescribeNetworkRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNetworkRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::DescribeNetworkRuleOutcomeCallable KmsClient::describeNetworkRuleCallable(const DescribeNetworkRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNetworkRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNetworkRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DescribePolicyOutcome KmsClient::describePolicy(const DescribePolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePolicyOutcome(DescribePolicyResult(outcome.result()));
|
||||
else
|
||||
return DescribePolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::describePolicyAsync(const DescribePolicyRequest& request, const DescribePolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::DescribePolicyOutcomeCallable KmsClient::describePolicyCallable(const DescribePolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::DescribeRegionsOutcome KmsClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1671,78 @@ KmsClient::GetCertificateOutcomeCallable KmsClient::getCertificateCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::GetClientKeyOutcome KmsClient::getClientKey(const GetClientKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetClientKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetClientKeyOutcome(GetClientKeyResult(outcome.result()));
|
||||
else
|
||||
return GetClientKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::getClientKeyAsync(const GetClientKeyRequest& request, const GetClientKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getClientKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::GetClientKeyOutcomeCallable KmsClient::getClientKeyCallable(const GetClientKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetClientKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getClientKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::GetKmsInstanceOutcome KmsClient::getKmsInstance(const GetKmsInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetKmsInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetKmsInstanceOutcome(GetKmsInstanceResult(outcome.result()));
|
||||
else
|
||||
return GetKmsInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::getKmsInstanceAsync(const GetKmsInstanceRequest& request, const GetKmsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getKmsInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::GetKmsInstanceOutcomeCallable KmsClient::getKmsInstanceCallable(const GetKmsInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetKmsInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getKmsInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::GetParametersForImportOutcome KmsClient::getParametersForImport(const GetParametersForImportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1491,6 +1995,78 @@ KmsClient::ListAliasesByKeyIdOutcomeCallable KmsClient::listAliasesByKeyIdCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ListApplicationAccessPointsOutcome KmsClient::listApplicationAccessPoints(const ListApplicationAccessPointsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListApplicationAccessPointsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListApplicationAccessPointsOutcome(ListApplicationAccessPointsResult(outcome.result()));
|
||||
else
|
||||
return ListApplicationAccessPointsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::listApplicationAccessPointsAsync(const ListApplicationAccessPointsRequest& request, const ListApplicationAccessPointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listApplicationAccessPoints(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::ListApplicationAccessPointsOutcomeCallable KmsClient::listApplicationAccessPointsCallable(const ListApplicationAccessPointsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListApplicationAccessPointsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listApplicationAccessPoints(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ListClientKeysOutcome KmsClient::listClientKeys(const ListClientKeysRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListClientKeysOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListClientKeysOutcome(ListClientKeysResult(outcome.result()));
|
||||
else
|
||||
return ListClientKeysOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::listClientKeysAsync(const ListClientKeysRequest& request, const ListClientKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listClientKeys(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::ListClientKeysOutcomeCallable KmsClient::listClientKeysCallable(const ListClientKeysRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListClientKeysOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listClientKeys(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ListKeyVersionsOutcome KmsClient::listKeyVersions(const ListKeyVersionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,6 +2139,114 @@ KmsClient::ListKeysOutcomeCallable KmsClient::listKeysCallable(const ListKeysReq
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ListKmsInstancesOutcome KmsClient::listKmsInstances(const ListKmsInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListKmsInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListKmsInstancesOutcome(ListKmsInstancesResult(outcome.result()));
|
||||
else
|
||||
return ListKmsInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::listKmsInstancesAsync(const ListKmsInstancesRequest& request, const ListKmsInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listKmsInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::ListKmsInstancesOutcomeCallable KmsClient::listKmsInstancesCallable(const ListKmsInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListKmsInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listKmsInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ListNetworkRulesOutcome KmsClient::listNetworkRules(const ListNetworkRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListNetworkRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListNetworkRulesOutcome(ListNetworkRulesResult(outcome.result()));
|
||||
else
|
||||
return ListNetworkRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::listNetworkRulesAsync(const ListNetworkRulesRequest& request, const ListNetworkRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listNetworkRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::ListNetworkRulesOutcomeCallable KmsClient::listNetworkRulesCallable(const ListNetworkRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListNetworkRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listNetworkRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ListPoliciesOutcome KmsClient::listPolicies(const ListPoliciesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPoliciesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPoliciesOutcome(ListPoliciesResult(outcome.result()));
|
||||
else
|
||||
return ListPoliciesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::listPoliciesAsync(const ListPoliciesRequest& request, const ListPoliciesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPolicies(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::ListPoliciesOutcomeCallable KmsClient::listPoliciesCallable(const ListPoliciesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPoliciesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPolicies(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::ListResourceTagsOutcome KmsClient::listResourceTags(const ListResourceTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2139,6 +2823,42 @@ KmsClient::UpdateAliasOutcomeCallable KmsClient::updateAliasCallable(const Updat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::UpdateApplicationAccessPointOutcome KmsClient::updateApplicationAccessPoint(const UpdateApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateApplicationAccessPointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateApplicationAccessPointOutcome(UpdateApplicationAccessPointResult(outcome.result()));
|
||||
else
|
||||
return UpdateApplicationAccessPointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::updateApplicationAccessPointAsync(const UpdateApplicationAccessPointRequest& request, const UpdateApplicationAccessPointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateApplicationAccessPoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::UpdateApplicationAccessPointOutcomeCallable KmsClient::updateApplicationAccessPointCallable(const UpdateApplicationAccessPointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateApplicationAccessPointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateApplicationAccessPoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::UpdateCertificateStatusOutcome KmsClient::updateCertificateStatus(const UpdateCertificateStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2211,6 +2931,114 @@ KmsClient::UpdateKeyDescriptionOutcomeCallable KmsClient::updateKeyDescriptionCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::UpdateKmsInstanceBindVpcOutcome KmsClient::updateKmsInstanceBindVpc(const UpdateKmsInstanceBindVpcRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateKmsInstanceBindVpcOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateKmsInstanceBindVpcOutcome(UpdateKmsInstanceBindVpcResult(outcome.result()));
|
||||
else
|
||||
return UpdateKmsInstanceBindVpcOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::updateKmsInstanceBindVpcAsync(const UpdateKmsInstanceBindVpcRequest& request, const UpdateKmsInstanceBindVpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateKmsInstanceBindVpc(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::UpdateKmsInstanceBindVpcOutcomeCallable KmsClient::updateKmsInstanceBindVpcCallable(const UpdateKmsInstanceBindVpcRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateKmsInstanceBindVpcOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateKmsInstanceBindVpc(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::UpdateNetworkRuleOutcome KmsClient::updateNetworkRule(const UpdateNetworkRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNetworkRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNetworkRuleOutcome(UpdateNetworkRuleResult(outcome.result()));
|
||||
else
|
||||
return UpdateNetworkRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::updateNetworkRuleAsync(const UpdateNetworkRuleRequest& request, const UpdateNetworkRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNetworkRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::UpdateNetworkRuleOutcomeCallable KmsClient::updateNetworkRuleCallable(const UpdateNetworkRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNetworkRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNetworkRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::UpdatePolicyOutcome KmsClient::updatePolicy(const UpdatePolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdatePolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdatePolicyOutcome(UpdatePolicyResult(outcome.result()));
|
||||
else
|
||||
return UpdatePolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void KmsClient::updatePolicyAsync(const UpdatePolicyRequest& request, const UpdatePolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updatePolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
KmsClient::UpdatePolicyOutcomeCallable KmsClient::updatePolicyCallable(const UpdatePolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdatePolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updatePolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
KmsClient::UpdateRotationPolicyOutcome KmsClient::updateRotationPolicy(const UpdateRotationPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
72
kms/src/model/ConnectKmsInstanceRequest.cc
Normal file
72
kms/src/model/ConnectKmsInstanceRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ConnectKmsInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::ConnectKmsInstanceRequest;
|
||||
|
||||
ConnectKmsInstanceRequest::ConnectKmsInstanceRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "ConnectKmsInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConnectKmsInstanceRequest::~ConnectKmsInstanceRequest() {}
|
||||
|
||||
std::string ConnectKmsInstanceRequest::getKmsInstanceId() const {
|
||||
return kmsInstanceId_;
|
||||
}
|
||||
|
||||
void ConnectKmsInstanceRequest::setKmsInstanceId(const std::string &kmsInstanceId) {
|
||||
kmsInstanceId_ = kmsInstanceId;
|
||||
setParameter(std::string("KmsInstanceId"), kmsInstanceId);
|
||||
}
|
||||
|
||||
std::string ConnectKmsInstanceRequest::getVSwitchIds() const {
|
||||
return vSwitchIds_;
|
||||
}
|
||||
|
||||
void ConnectKmsInstanceRequest::setVSwitchIds(const std::string &vSwitchIds) {
|
||||
vSwitchIds_ = vSwitchIds;
|
||||
setParameter(std::string("VSwitchIds"), vSwitchIds);
|
||||
}
|
||||
|
||||
std::string ConnectKmsInstanceRequest::getKMProvider() const {
|
||||
return kMProvider_;
|
||||
}
|
||||
|
||||
void ConnectKmsInstanceRequest::setKMProvider(const std::string &kMProvider) {
|
||||
kMProvider_ = kMProvider;
|
||||
setParameter(std::string("KMProvider"), kMProvider);
|
||||
}
|
||||
|
||||
std::string ConnectKmsInstanceRequest::getZoneIds() const {
|
||||
return zoneIds_;
|
||||
}
|
||||
|
||||
void ConnectKmsInstanceRequest::setZoneIds(const std::string &zoneIds) {
|
||||
zoneIds_ = zoneIds;
|
||||
setParameter(std::string("ZoneIds"), zoneIds);
|
||||
}
|
||||
|
||||
std::string ConnectKmsInstanceRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void ConnectKmsInstanceRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
44
kms/src/model/ConnectKmsInstanceResult.cc
Normal file
44
kms/src/model/ConnectKmsInstanceResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ConnectKmsInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
ConnectKmsInstanceResult::ConnectKmsInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConnectKmsInstanceResult::ConnectKmsInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConnectKmsInstanceResult::~ConnectKmsInstanceResult()
|
||||
{}
|
||||
|
||||
void ConnectKmsInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
kms/src/model/CreateApplicationAccessPointRequest.cc
Normal file
63
kms/src/model/CreateApplicationAccessPointRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreateApplicationAccessPointRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::CreateApplicationAccessPointRequest;
|
||||
|
||||
CreateApplicationAccessPointRequest::CreateApplicationAccessPointRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "CreateApplicationAccessPoint") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApplicationAccessPointRequest::~CreateApplicationAccessPointRequest() {}
|
||||
|
||||
std::string CreateApplicationAccessPointRequest::getPolicies() const {
|
||||
return policies_;
|
||||
}
|
||||
|
||||
void CreateApplicationAccessPointRequest::setPolicies(const std::string &policies) {
|
||||
policies_ = policies;
|
||||
setParameter(std::string("Policies"), policies);
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateApplicationAccessPointRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateApplicationAccessPointRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointRequest::getAuthenticationMethod() const {
|
||||
return authenticationMethod_;
|
||||
}
|
||||
|
||||
void CreateApplicationAccessPointRequest::setAuthenticationMethod(const std::string &authenticationMethod) {
|
||||
authenticationMethod_ = authenticationMethod;
|
||||
setParameter(std::string("AuthenticationMethod"), authenticationMethod);
|
||||
}
|
||||
|
||||
79
kms/src/model/CreateApplicationAccessPointResult.cc
Normal file
79
kms/src/model/CreateApplicationAccessPointResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreateApplicationAccessPointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
CreateApplicationAccessPointResult::CreateApplicationAccessPointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateApplicationAccessPointResult::CreateApplicationAccessPointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateApplicationAccessPointResult::~CreateApplicationAccessPointResult()
|
||||
{}
|
||||
|
||||
void CreateApplicationAccessPointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["Policies"].isNull())
|
||||
policies_ = value["Policies"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Arn"].isNull())
|
||||
arn_ = value["Arn"].asString();
|
||||
if(!value["AuthenticationMethod"].isNull())
|
||||
authenticationMethod_ = value["AuthenticationMethod"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointResult::getPolicies()const
|
||||
{
|
||||
return policies_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointResult::getAuthenticationMethod()const
|
||||
{
|
||||
return authenticationMethod_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointResult::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationAccessPointResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
63
kms/src/model/CreateClientKeyRequest.cc
Normal file
63
kms/src/model/CreateClientKeyRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreateClientKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::CreateClientKeyRequest;
|
||||
|
||||
CreateClientKeyRequest::CreateClientKeyRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "CreateClientKey") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClientKeyRequest::~CreateClientKeyRequest() {}
|
||||
|
||||
std::string CreateClientKeyRequest::getNotBefore() const {
|
||||
return notBefore_;
|
||||
}
|
||||
|
||||
void CreateClientKeyRequest::setNotBefore(const std::string ¬Before) {
|
||||
notBefore_ = notBefore;
|
||||
setParameter(std::string("NotBefore"), notBefore);
|
||||
}
|
||||
|
||||
std::string CreateClientKeyRequest::getNotAfter() const {
|
||||
return notAfter_;
|
||||
}
|
||||
|
||||
void CreateClientKeyRequest::setNotAfter(const std::string ¬After) {
|
||||
notAfter_ = notAfter;
|
||||
setParameter(std::string("NotAfter"), notAfter);
|
||||
}
|
||||
|
||||
std::string CreateClientKeyRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateClientKeyRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
std::string CreateClientKeyRequest::getAapName() const {
|
||||
return aapName_;
|
||||
}
|
||||
|
||||
void CreateClientKeyRequest::setAapName(const std::string &aapName) {
|
||||
aapName_ = aapName;
|
||||
setParameter(std::string("AapName"), aapName);
|
||||
}
|
||||
|
||||
79
kms/src/model/CreateClientKeyResult.cc
Normal file
79
kms/src/model/CreateClientKeyResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreateClientKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
CreateClientKeyResult::CreateClientKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClientKeyResult::CreateClientKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClientKeyResult::~CreateClientKeyResult()
|
||||
{}
|
||||
|
||||
void CreateClientKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClientKeyId"].isNull())
|
||||
clientKeyId_ = value["ClientKeyId"].asString();
|
||||
if(!value["KeyAlgorithm"].isNull())
|
||||
keyAlgorithm_ = value["KeyAlgorithm"].asString();
|
||||
if(!value["PrivateKeyData"].isNull())
|
||||
privateKeyData_ = value["PrivateKeyData"].asString();
|
||||
if(!value["NotBefore"].isNull())
|
||||
notBefore_ = value["NotBefore"].asString();
|
||||
if(!value["NotAfter"].isNull())
|
||||
notAfter_ = value["NotAfter"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClientKeyResult::getClientKeyId()const
|
||||
{
|
||||
return clientKeyId_;
|
||||
}
|
||||
|
||||
std::string CreateClientKeyResult::getPrivateKeyData()const
|
||||
{
|
||||
return privateKeyData_;
|
||||
}
|
||||
|
||||
std::string CreateClientKeyResult::getNotBefore()const
|
||||
{
|
||||
return notBefore_;
|
||||
}
|
||||
|
||||
std::string CreateClientKeyResult::getNotAfter()const
|
||||
{
|
||||
return notAfter_;
|
||||
}
|
||||
|
||||
std::string CreateClientKeyResult::getKeyAlgorithm()const
|
||||
{
|
||||
return keyAlgorithm_;
|
||||
}
|
||||
|
||||
63
kms/src/model/CreateNetworkRuleRequest.cc
Normal file
63
kms/src/model/CreateNetworkRuleRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreateNetworkRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::CreateNetworkRuleRequest;
|
||||
|
||||
CreateNetworkRuleRequest::CreateNetworkRuleRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "CreateNetworkRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNetworkRuleRequest::~CreateNetworkRuleRequest() {}
|
||||
|
||||
std::string CreateNetworkRuleRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateNetworkRuleRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateNetworkRuleRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateNetworkRuleRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleRequest::getSourcePrivateIp() const {
|
||||
return sourcePrivateIp_;
|
||||
}
|
||||
|
||||
void CreateNetworkRuleRequest::setSourcePrivateIp(const std::string &sourcePrivateIp) {
|
||||
sourcePrivateIp_ = sourcePrivateIp;
|
||||
setParameter(std::string("SourcePrivateIp"), sourcePrivateIp);
|
||||
}
|
||||
|
||||
79
kms/src/model/CreateNetworkRuleResult.cc
Normal file
79
kms/src/model/CreateNetworkRuleResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreateNetworkRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
CreateNetworkRuleResult::CreateNetworkRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNetworkRuleResult::CreateNetworkRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNetworkRuleResult::~CreateNetworkRuleResult()
|
||||
{}
|
||||
|
||||
void CreateNetworkRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["SourcePrivateIp"].isNull())
|
||||
sourcePrivateIp_ = value["SourcePrivateIp"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Arn"].isNull())
|
||||
arn_ = value["Arn"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleResult::getSourcePrivateIp()const
|
||||
{
|
||||
return sourcePrivateIp_;
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleResult::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
std::string CreateNetworkRuleResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
81
kms/src/model/CreatePolicyRequest.cc
Normal file
81
kms/src/model/CreatePolicyRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreatePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::CreatePolicyRequest;
|
||||
|
||||
CreatePolicyRequest::CreatePolicyRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "CreatePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePolicyRequest::~CreatePolicyRequest() {}
|
||||
|
||||
std::string CreatePolicyRequest::getAccessControlRules() const {
|
||||
return accessControlRules_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setAccessControlRules(const std::string &accessControlRules) {
|
||||
accessControlRules_ = accessControlRules;
|
||||
setParameter(std::string("AccessControlRules"), accessControlRules);
|
||||
}
|
||||
|
||||
std::string CreatePolicyRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreatePolicyRequest::getResources() const {
|
||||
return resources_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setResources(const std::string &resources) {
|
||||
resources_ = resources;
|
||||
setParameter(std::string("Resources"), resources);
|
||||
}
|
||||
|
||||
std::string CreatePolicyRequest::getKmsInstance() const {
|
||||
return kmsInstance_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setKmsInstance(const std::string &kmsInstance) {
|
||||
kmsInstance_ = kmsInstance;
|
||||
setParameter(std::string("KmsInstance"), kmsInstance);
|
||||
}
|
||||
|
||||
std::string CreatePolicyRequest::getPermissions() const {
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setPermissions(const std::string &permissions) {
|
||||
permissions_ = permissions;
|
||||
setParameter(std::string("Permissions"), permissions);
|
||||
}
|
||||
|
||||
std::string CreatePolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreatePolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
93
kms/src/model/CreatePolicyResult.cc
Normal file
93
kms/src/model/CreatePolicyResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/CreatePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
CreatePolicyResult::CreatePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePolicyResult::CreatePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePolicyResult::~CreatePolicyResult()
|
||||
{}
|
||||
|
||||
void CreatePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Arn"].isNull())
|
||||
arn_ = value["Arn"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["KmsInstance"].isNull())
|
||||
kmsInstance_ = value["KmsInstance"].asString();
|
||||
if(!value["Permissions"].isNull())
|
||||
permissions_ = value["Permissions"].asString();
|
||||
if(!value["Resources"].isNull())
|
||||
resources_ = value["Resources"].asString();
|
||||
if(!value["AccessControlRules"].isNull())
|
||||
accessControlRules_ = value["AccessControlRules"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreatePolicyResult::getKmsInstance()const
|
||||
{
|
||||
return kmsInstance_;
|
||||
}
|
||||
|
||||
std::string CreatePolicyResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreatePolicyResult::getAccessControlRules()const
|
||||
{
|
||||
return accessControlRules_;
|
||||
}
|
||||
|
||||
std::string CreatePolicyResult::getPermissions()const
|
||||
{
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
std::string CreatePolicyResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
std::string CreatePolicyResult::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
std::string CreatePolicyResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
36
kms/src/model/DeleteApplicationAccessPointRequest.cc
Normal file
36
kms/src/model/DeleteApplicationAccessPointRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeleteApplicationAccessPointRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::DeleteApplicationAccessPointRequest;
|
||||
|
||||
DeleteApplicationAccessPointRequest::DeleteApplicationAccessPointRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "DeleteApplicationAccessPoint") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteApplicationAccessPointRequest::~DeleteApplicationAccessPointRequest() {}
|
||||
|
||||
std::string DeleteApplicationAccessPointRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteApplicationAccessPointRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
kms/src/model/DeleteApplicationAccessPointResult.cc
Normal file
44
kms/src/model/DeleteApplicationAccessPointResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeleteApplicationAccessPointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
DeleteApplicationAccessPointResult::DeleteApplicationAccessPointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteApplicationAccessPointResult::DeleteApplicationAccessPointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteApplicationAccessPointResult::~DeleteApplicationAccessPointResult()
|
||||
{}
|
||||
|
||||
void DeleteApplicationAccessPointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
kms/src/model/DeleteClientKeyRequest.cc
Normal file
36
kms/src/model/DeleteClientKeyRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeleteClientKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::DeleteClientKeyRequest;
|
||||
|
||||
DeleteClientKeyRequest::DeleteClientKeyRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "DeleteClientKey") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteClientKeyRequest::~DeleteClientKeyRequest() {}
|
||||
|
||||
std::string DeleteClientKeyRequest::getClientKeyId() const {
|
||||
return clientKeyId_;
|
||||
}
|
||||
|
||||
void DeleteClientKeyRequest::setClientKeyId(const std::string &clientKeyId) {
|
||||
clientKeyId_ = clientKeyId;
|
||||
setParameter(std::string("ClientKeyId"), clientKeyId);
|
||||
}
|
||||
|
||||
44
kms/src/model/DeleteClientKeyResult.cc
Normal file
44
kms/src/model/DeleteClientKeyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeleteClientKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
DeleteClientKeyResult::DeleteClientKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteClientKeyResult::DeleteClientKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteClientKeyResult::~DeleteClientKeyResult()
|
||||
{}
|
||||
|
||||
void DeleteClientKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
kms/src/model/DeleteNetworkRuleRequest.cc
Normal file
36
kms/src/model/DeleteNetworkRuleRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeleteNetworkRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::DeleteNetworkRuleRequest;
|
||||
|
||||
DeleteNetworkRuleRequest::DeleteNetworkRuleRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "DeleteNetworkRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNetworkRuleRequest::~DeleteNetworkRuleRequest() {}
|
||||
|
||||
std::string DeleteNetworkRuleRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteNetworkRuleRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
kms/src/model/DeleteNetworkRuleResult.cc
Normal file
44
kms/src/model/DeleteNetworkRuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeleteNetworkRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
DeleteNetworkRuleResult::DeleteNetworkRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNetworkRuleResult::DeleteNetworkRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNetworkRuleResult::~DeleteNetworkRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteNetworkRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
kms/src/model/DeletePolicyRequest.cc
Normal file
36
kms/src/model/DeletePolicyRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeletePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::DeletePolicyRequest;
|
||||
|
||||
DeletePolicyRequest::DeletePolicyRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "DeletePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePolicyRequest::~DeletePolicyRequest() {}
|
||||
|
||||
std::string DeletePolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeletePolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
kms/src/model/DeletePolicyResult.cc
Normal file
44
kms/src/model/DeletePolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DeletePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
DeletePolicyResult::DeletePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePolicyResult::DeletePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePolicyResult::~DeletePolicyResult()
|
||||
{}
|
||||
|
||||
void DeletePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
kms/src/model/DescribeApplicationAccessPointRequest.cc
Normal file
36
kms/src/model/DescribeApplicationAccessPointRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DescribeApplicationAccessPointRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::DescribeApplicationAccessPointRequest;
|
||||
|
||||
DescribeApplicationAccessPointRequest::DescribeApplicationAccessPointRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "DescribeApplicationAccessPoint") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeApplicationAccessPointRequest::~DescribeApplicationAccessPointRequest() {}
|
||||
|
||||
std::string DescribeApplicationAccessPointRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeApplicationAccessPointRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
79
kms/src/model/DescribeApplicationAccessPointResult.cc
Normal file
79
kms/src/model/DescribeApplicationAccessPointResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DescribeApplicationAccessPointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
DescribeApplicationAccessPointResult::DescribeApplicationAccessPointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApplicationAccessPointResult::DescribeApplicationAccessPointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApplicationAccessPointResult::~DescribeApplicationAccessPointResult()
|
||||
{}
|
||||
|
||||
void DescribeApplicationAccessPointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Arn"].isNull())
|
||||
arn_ = value["Arn"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["AuthenticationMethod"].isNull())
|
||||
authenticationMethod_ = value["AuthenticationMethod"].asString();
|
||||
if(!value["Policies"].isNull())
|
||||
policies_ = value["Policies"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApplicationAccessPointResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationAccessPointResult::getPolicies()const
|
||||
{
|
||||
return policies_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationAccessPointResult::getAuthenticationMethod()const
|
||||
{
|
||||
return authenticationMethod_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationAccessPointResult::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationAccessPointResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
36
kms/src/model/DescribeNetworkRuleRequest.cc
Normal file
36
kms/src/model/DescribeNetworkRuleRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DescribeNetworkRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::DescribeNetworkRuleRequest;
|
||||
|
||||
DescribeNetworkRuleRequest::DescribeNetworkRuleRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "DescribeNetworkRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNetworkRuleRequest::~DescribeNetworkRuleRequest() {}
|
||||
|
||||
std::string DescribeNetworkRuleRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeNetworkRuleRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
72
kms/src/model/DescribeNetworkRuleResult.cc
Normal file
72
kms/src/model/DescribeNetworkRuleResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DescribeNetworkRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
DescribeNetworkRuleResult::DescribeNetworkRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNetworkRuleResult::DescribeNetworkRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNetworkRuleResult::~DescribeNetworkRuleResult()
|
||||
{}
|
||||
|
||||
void DescribeNetworkRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Arn"].isNull())
|
||||
arn_ = value["Arn"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["SourcePrivateIp"].isNull())
|
||||
sourcePrivateIp_ = value["SourcePrivateIp"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNetworkRuleResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkRuleResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkRuleResult::getSourcePrivateIp()const
|
||||
{
|
||||
return sourcePrivateIp_;
|
||||
}
|
||||
|
||||
std::string DescribeNetworkRuleResult::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
36
kms/src/model/DescribePolicyRequest.cc
Normal file
36
kms/src/model/DescribePolicyRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DescribePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::DescribePolicyRequest;
|
||||
|
||||
DescribePolicyRequest::DescribePolicyRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "DescribePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePolicyRequest::~DescribePolicyRequest() {}
|
||||
|
||||
std::string DescribePolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribePolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
95
kms/src/model/DescribePolicyResult.cc
Normal file
95
kms/src/model/DescribePolicyResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/DescribePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
DescribePolicyResult::DescribePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePolicyResult::DescribePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePolicyResult::~DescribePolicyResult()
|
||||
{}
|
||||
|
||||
void DescribePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPermissions = value["Permissions"]["permission"];
|
||||
for (const auto &item : allPermissions)
|
||||
permissions_.push_back(item.asString());
|
||||
auto allResources = value["Resources"]["resource"];
|
||||
for (const auto &item : allResources)
|
||||
resources_.push_back(item.asString());
|
||||
if(!value["Arn"].isNull())
|
||||
arn_ = value["Arn"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["KmsInstance"].isNull())
|
||||
kmsInstance_ = value["KmsInstance"].asString();
|
||||
if(!value["AccessControlRules"].isNull())
|
||||
accessControlRules_ = value["AccessControlRules"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribePolicyResult::getKmsInstance()const
|
||||
{
|
||||
return kmsInstance_;
|
||||
}
|
||||
|
||||
std::string DescribePolicyResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribePolicyResult::getAccessControlRules()const
|
||||
{
|
||||
return accessControlRules_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribePolicyResult::getPermissions()const
|
||||
{
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribePolicyResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
std::string DescribePolicyResult::getArn()const
|
||||
{
|
||||
return arn_;
|
||||
}
|
||||
|
||||
std::string DescribePolicyResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
36
kms/src/model/GetClientKeyRequest.cc
Normal file
36
kms/src/model/GetClientKeyRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/GetClientKeyRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::GetClientKeyRequest;
|
||||
|
||||
GetClientKeyRequest::GetClientKeyRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "GetClientKey") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetClientKeyRequest::~GetClientKeyRequest() {}
|
||||
|
||||
std::string GetClientKeyRequest::getClientKeyId() const {
|
||||
return clientKeyId_;
|
||||
}
|
||||
|
||||
void GetClientKeyRequest::setClientKeyId(const std::string &clientKeyId) {
|
||||
clientKeyId_ = clientKeyId;
|
||||
setParameter(std::string("ClientKeyId"), clientKeyId);
|
||||
}
|
||||
|
||||
100
kms/src/model/GetClientKeyResult.cc
Normal file
100
kms/src/model/GetClientKeyResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/GetClientKeyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
GetClientKeyResult::GetClientKeyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetClientKeyResult::GetClientKeyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetClientKeyResult::~GetClientKeyResult()
|
||||
{}
|
||||
|
||||
void GetClientKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClientKeyId"].isNull())
|
||||
clientKeyId_ = value["ClientKeyId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["KeyAlgorithm"].isNull())
|
||||
keyAlgorithm_ = value["KeyAlgorithm"].asString();
|
||||
if(!value["KeyOrigin"].isNull())
|
||||
keyOrigin_ = value["KeyOrigin"].asString();
|
||||
if(!value["PublicKeyData"].isNull())
|
||||
publicKeyData_ = value["PublicKeyData"].asString();
|
||||
if(!value["NotAfter"].isNull())
|
||||
notAfter_ = value["NotAfter"].asString();
|
||||
if(!value["NotBefore"].isNull())
|
||||
notBefore_ = value["NotBefore"].asString();
|
||||
if(!value["AapName"].isNull())
|
||||
aapName_ = value["AapName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getClientKeyId()const
|
||||
{
|
||||
return clientKeyId_;
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getAapName()const
|
||||
{
|
||||
return aapName_;
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getPublicKeyData()const
|
||||
{
|
||||
return publicKeyData_;
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getNotAfter()const
|
||||
{
|
||||
return notAfter_;
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getNotBefore()const
|
||||
{
|
||||
return notBefore_;
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getKeyOrigin()const
|
||||
{
|
||||
return keyOrigin_;
|
||||
}
|
||||
|
||||
std::string GetClientKeyResult::getKeyAlgorithm()const
|
||||
{
|
||||
return keyAlgorithm_;
|
||||
}
|
||||
|
||||
36
kms/src/model/GetKmsInstanceRequest.cc
Normal file
36
kms/src/model/GetKmsInstanceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/GetKmsInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::GetKmsInstanceRequest;
|
||||
|
||||
GetKmsInstanceRequest::GetKmsInstanceRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "GetKmsInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetKmsInstanceRequest::~GetKmsInstanceRequest() {}
|
||||
|
||||
std::string GetKmsInstanceRequest::getKmsInstanceId() const {
|
||||
return kmsInstanceId_;
|
||||
}
|
||||
|
||||
void GetKmsInstanceRequest::setKmsInstanceId(const std::string &kmsInstanceId) {
|
||||
kmsInstanceId_ = kmsInstanceId;
|
||||
setParameter(std::string("KmsInstanceId"), kmsInstanceId);
|
||||
}
|
||||
|
||||
92
kms/src/model/GetKmsInstanceResult.cc
Normal file
92
kms/src/model/GetKmsInstanceResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/GetKmsInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
GetKmsInstanceResult::GetKmsInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetKmsInstanceResult::GetKmsInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetKmsInstanceResult::~GetKmsInstanceResult()
|
||||
{}
|
||||
|
||||
void GetKmsInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto kmsInstanceNode = value["KmsInstance"];
|
||||
if(!kmsInstanceNode["InstanceId"].isNull())
|
||||
kmsInstance_.instanceId = kmsInstanceNode["InstanceId"].asString();
|
||||
if(!kmsInstanceNode["InstanceName"].isNull())
|
||||
kmsInstance_.instanceName = kmsInstanceNode["InstanceName"].asString();
|
||||
if(!kmsInstanceNode["Status"].isNull())
|
||||
kmsInstance_.status = kmsInstanceNode["Status"].asString();
|
||||
if(!kmsInstanceNode["CreateTime"].isNull())
|
||||
kmsInstance_.createTime = kmsInstanceNode["CreateTime"].asString();
|
||||
if(!kmsInstanceNode["Spec"].isNull())
|
||||
kmsInstance_.spec = std::stol(kmsInstanceNode["Spec"].asString());
|
||||
if(!kmsInstanceNode["KeyNum"].isNull())
|
||||
kmsInstance_.keyNum = std::stol(kmsInstanceNode["KeyNum"].asString());
|
||||
if(!kmsInstanceNode["SecretNum"].isNull())
|
||||
kmsInstance_.secretNum = kmsInstanceNode["SecretNum"].asString();
|
||||
if(!kmsInstanceNode["VpcNum"].isNull())
|
||||
kmsInstance_.vpcNum = std::stol(kmsInstanceNode["VpcNum"].asString());
|
||||
if(!kmsInstanceNode["VpcId"].isNull())
|
||||
kmsInstance_.vpcId = kmsInstanceNode["VpcId"].asString();
|
||||
if(!kmsInstanceNode["ZoneIds"].isNull())
|
||||
kmsInstance_.zoneIds = kmsInstanceNode["ZoneIds"].asString();
|
||||
if(!kmsInstanceNode["VswitchIds"].isNull())
|
||||
kmsInstance_.vswitchIds = kmsInstanceNode["VswitchIds"].asString();
|
||||
if(!kmsInstanceNode["EndDate"].isNull())
|
||||
kmsInstance_.endDate = kmsInstanceNode["EndDate"].asString();
|
||||
if(!kmsInstanceNode["StartDate"].isNull())
|
||||
kmsInstance_.startDate = kmsInstanceNode["StartDate"].asString();
|
||||
if(!kmsInstanceNode["CaCertificateChainPem"].isNull())
|
||||
kmsInstance_.caCertificateChainPem = kmsInstanceNode["CaCertificateChainPem"].asString();
|
||||
auto allBindVpcsNode = kmsInstanceNode["BindVpcs"]["BindVpc"];
|
||||
for (auto kmsInstanceNodeBindVpcsBindVpc : allBindVpcsNode)
|
||||
{
|
||||
KmsInstance::BindVpc bindVpcObject;
|
||||
if(!kmsInstanceNodeBindVpcsBindVpc["RegionId"].isNull())
|
||||
bindVpcObject.regionId = kmsInstanceNodeBindVpcsBindVpc["RegionId"].asString();
|
||||
if(!kmsInstanceNodeBindVpcsBindVpc["VpcId"].isNull())
|
||||
bindVpcObject.vpcId = kmsInstanceNodeBindVpcsBindVpc["VpcId"].asString();
|
||||
if(!kmsInstanceNodeBindVpcsBindVpc["VpcOwnerId"].isNull())
|
||||
bindVpcObject.vpcOwnerId = kmsInstanceNodeBindVpcsBindVpc["VpcOwnerId"].asString();
|
||||
if(!kmsInstanceNodeBindVpcsBindVpc["VSwitchId"].isNull())
|
||||
bindVpcObject.vSwitchId = kmsInstanceNodeBindVpcsBindVpc["VSwitchId"].asString();
|
||||
kmsInstance_.bindVpcs.push_back(bindVpcObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetKmsInstanceResult::KmsInstance GetKmsInstanceResult::getKmsInstance()const
|
||||
{
|
||||
return kmsInstance_;
|
||||
}
|
||||
|
||||
45
kms/src/model/ListApplicationAccessPointsRequest.cc
Normal file
45
kms/src/model/ListApplicationAccessPointsRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListApplicationAccessPointsRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::ListApplicationAccessPointsRequest;
|
||||
|
||||
ListApplicationAccessPointsRequest::ListApplicationAccessPointsRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "ListApplicationAccessPoints") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListApplicationAccessPointsRequest::~ListApplicationAccessPointsRequest() {}
|
||||
|
||||
int ListApplicationAccessPointsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListApplicationAccessPointsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListApplicationAccessPointsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListApplicationAccessPointsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
80
kms/src/model/ListApplicationAccessPointsResult.cc
Normal file
80
kms/src/model/ListApplicationAccessPointsResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListApplicationAccessPointsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
ListApplicationAccessPointsResult::ListApplicationAccessPointsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApplicationAccessPointsResult::ListApplicationAccessPointsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApplicationAccessPointsResult::~ListApplicationAccessPointsResult()
|
||||
{}
|
||||
|
||||
void ListApplicationAccessPointsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApplicationAccessPointsNode = value["ApplicationAccessPoints"]["ApplicationAccessPoint"];
|
||||
for (auto valueApplicationAccessPointsApplicationAccessPoint : allApplicationAccessPointsNode)
|
||||
{
|
||||
ApplicationAccessPoint applicationAccessPointsObject;
|
||||
if(!valueApplicationAccessPointsApplicationAccessPoint["Name"].isNull())
|
||||
applicationAccessPointsObject.name = valueApplicationAccessPointsApplicationAccessPoint["Name"].asString();
|
||||
if(!valueApplicationAccessPointsApplicationAccessPoint["AuthenticationMethod"].isNull())
|
||||
applicationAccessPointsObject.authenticationMethod = valueApplicationAccessPointsApplicationAccessPoint["AuthenticationMethod"].asString();
|
||||
applicationAccessPoints_.push_back(applicationAccessPointsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListApplicationAccessPointsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListApplicationAccessPointsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListApplicationAccessPointsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListApplicationAccessPointsResult::ApplicationAccessPoint> ListApplicationAccessPointsResult::getApplicationAccessPoints()const
|
||||
{
|
||||
return applicationAccessPoints_;
|
||||
}
|
||||
|
||||
36
kms/src/model/ListClientKeysRequest.cc
Normal file
36
kms/src/model/ListClientKeysRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListClientKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::ListClientKeysRequest;
|
||||
|
||||
ListClientKeysRequest::ListClientKeysRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "ListClientKeys") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListClientKeysRequest::~ListClientKeysRequest() {}
|
||||
|
||||
std::string ListClientKeysRequest::getAapName() const {
|
||||
return aapName_;
|
||||
}
|
||||
|
||||
void ListClientKeysRequest::setAapName(const std::string &aapName) {
|
||||
aapName_ = aapName;
|
||||
setParameter(std::string("AapName"), aapName);
|
||||
}
|
||||
|
||||
71
kms/src/model/ListClientKeysResult.cc
Normal file
71
kms/src/model/ListClientKeysResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListClientKeysResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
ListClientKeysResult::ListClientKeysResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListClientKeysResult::ListClientKeysResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListClientKeysResult::~ListClientKeysResult()
|
||||
{}
|
||||
|
||||
void ListClientKeysResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClientKeysNode = value["ClientKeys"]["ClientKey"];
|
||||
for (auto valueClientKeysClientKey : allClientKeysNode)
|
||||
{
|
||||
ClientKey clientKeysObject;
|
||||
if(!valueClientKeysClientKey["ClientKeyId"].isNull())
|
||||
clientKeysObject.clientKeyId = valueClientKeysClientKey["ClientKeyId"].asString();
|
||||
if(!valueClientKeysClientKey["CreateTime"].isNull())
|
||||
clientKeysObject.createTime = valueClientKeysClientKey["CreateTime"].asString();
|
||||
if(!valueClientKeysClientKey["PublicKeyData"].isNull())
|
||||
clientKeysObject.publicKeyData = valueClientKeysClientKey["PublicKeyData"].asString();
|
||||
if(!valueClientKeysClientKey["KeyAlgorithm"].isNull())
|
||||
clientKeysObject.keyAlgorithm = valueClientKeysClientKey["KeyAlgorithm"].asString();
|
||||
if(!valueClientKeysClientKey["NotBefore"].isNull())
|
||||
clientKeysObject.notBefore = valueClientKeysClientKey["NotBefore"].asString();
|
||||
if(!valueClientKeysClientKey["NotAfter"].isNull())
|
||||
clientKeysObject.notAfter = valueClientKeysClientKey["NotAfter"].asString();
|
||||
if(!valueClientKeysClientKey["KeyOrigin"].isNull())
|
||||
clientKeysObject.keyOrigin = valueClientKeysClientKey["KeyOrigin"].asString();
|
||||
if(!valueClientKeysClientKey["AapName"].isNull())
|
||||
clientKeysObject.aapName = valueClientKeysClientKey["AapName"].asString();
|
||||
clientKeys_.push_back(clientKeysObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListClientKeysResult::ClientKey> ListClientKeysResult::getClientKeys()const
|
||||
{
|
||||
return clientKeys_;
|
||||
}
|
||||
|
||||
45
kms/src/model/ListKmsInstancesRequest.cc
Normal file
45
kms/src/model/ListKmsInstancesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListKmsInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::ListKmsInstancesRequest;
|
||||
|
||||
ListKmsInstancesRequest::ListKmsInstancesRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "ListKmsInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListKmsInstancesRequest::~ListKmsInstancesRequest() {}
|
||||
|
||||
int ListKmsInstancesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListKmsInstancesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListKmsInstancesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListKmsInstancesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
80
kms/src/model/ListKmsInstancesResult.cc
Normal file
80
kms/src/model/ListKmsInstancesResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListKmsInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
ListKmsInstancesResult::ListKmsInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListKmsInstancesResult::ListKmsInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListKmsInstancesResult::~ListKmsInstancesResult()
|
||||
{}
|
||||
|
||||
void ListKmsInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allKmsInstancesNode = value["KmsInstances"]["KmsInstance"];
|
||||
for (auto valueKmsInstancesKmsInstance : allKmsInstancesNode)
|
||||
{
|
||||
KmsInstance kmsInstancesObject;
|
||||
if(!valueKmsInstancesKmsInstance["KmsInstanceArn"].isNull())
|
||||
kmsInstancesObject.kmsInstanceArn = valueKmsInstancesKmsInstance["KmsInstanceArn"].asString();
|
||||
if(!valueKmsInstancesKmsInstance["KmsInstanceId"].isNull())
|
||||
kmsInstancesObject.kmsInstanceId = valueKmsInstancesKmsInstance["KmsInstanceId"].asString();
|
||||
kmsInstances_.push_back(kmsInstancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListKmsInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long ListKmsInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long ListKmsInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListKmsInstancesResult::KmsInstance> ListKmsInstancesResult::getKmsInstances()const
|
||||
{
|
||||
return kmsInstances_;
|
||||
}
|
||||
|
||||
45
kms/src/model/ListNetworkRulesRequest.cc
Normal file
45
kms/src/model/ListNetworkRulesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListNetworkRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::ListNetworkRulesRequest;
|
||||
|
||||
ListNetworkRulesRequest::ListNetworkRulesRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "ListNetworkRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListNetworkRulesRequest::~ListNetworkRulesRequest() {}
|
||||
|
||||
int ListNetworkRulesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListNetworkRulesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListNetworkRulesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListNetworkRulesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
80
kms/src/model/ListNetworkRulesResult.cc
Normal file
80
kms/src/model/ListNetworkRulesResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListNetworkRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
ListNetworkRulesResult::ListNetworkRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListNetworkRulesResult::ListNetworkRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListNetworkRulesResult::~ListNetworkRulesResult()
|
||||
{}
|
||||
|
||||
void ListNetworkRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNetworkRulesNode = value["NetworkRules"]["NetworkRule"];
|
||||
for (auto valueNetworkRulesNetworkRule : allNetworkRulesNode)
|
||||
{
|
||||
NetworkRule networkRulesObject;
|
||||
if(!valueNetworkRulesNetworkRule["Type"].isNull())
|
||||
networkRulesObject.type = valueNetworkRulesNetworkRule["Type"].asString();
|
||||
if(!valueNetworkRulesNetworkRule["Name"].isNull())
|
||||
networkRulesObject.name = valueNetworkRulesNetworkRule["Name"].asString();
|
||||
networkRules_.push_back(networkRulesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListNetworkRulesResult::NetworkRule> ListNetworkRulesResult::getNetworkRules()const
|
||||
{
|
||||
return networkRules_;
|
||||
}
|
||||
|
||||
int ListNetworkRulesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListNetworkRulesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListNetworkRulesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
45
kms/src/model/ListPoliciesRequest.cc
Normal file
45
kms/src/model/ListPoliciesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListPoliciesRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::ListPoliciesRequest;
|
||||
|
||||
ListPoliciesRequest::ListPoliciesRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "ListPolicies") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPoliciesRequest::~ListPoliciesRequest() {}
|
||||
|
||||
int ListPoliciesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPoliciesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListPoliciesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListPoliciesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
78
kms/src/model/ListPoliciesResult.cc
Normal file
78
kms/src/model/ListPoliciesResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/ListPoliciesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
ListPoliciesResult::ListPoliciesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPoliciesResult::ListPoliciesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPoliciesResult::~ListPoliciesResult()
|
||||
{}
|
||||
|
||||
void ListPoliciesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPoliciesNode = value["Policies"]["Policy"];
|
||||
for (auto valuePoliciesPolicy : allPoliciesNode)
|
||||
{
|
||||
Policy policiesObject;
|
||||
if(!valuePoliciesPolicy["Name"].isNull())
|
||||
policiesObject.name = valuePoliciesPolicy["Name"].asString();
|
||||
policies_.push_back(policiesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListPoliciesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListPoliciesResult::Policy> ListPoliciesResult::getPolicies()const
|
||||
{
|
||||
return policies_;
|
||||
}
|
||||
|
||||
int ListPoliciesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListPoliciesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
54
kms/src/model/UpdateApplicationAccessPointRequest.cc
Normal file
54
kms/src/model/UpdateApplicationAccessPointRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdateApplicationAccessPointRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::UpdateApplicationAccessPointRequest;
|
||||
|
||||
UpdateApplicationAccessPointRequest::UpdateApplicationAccessPointRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "UpdateApplicationAccessPoint") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateApplicationAccessPointRequest::~UpdateApplicationAccessPointRequest() {}
|
||||
|
||||
std::string UpdateApplicationAccessPointRequest::getPolicies() const {
|
||||
return policies_;
|
||||
}
|
||||
|
||||
void UpdateApplicationAccessPointRequest::setPolicies(const std::string &policies) {
|
||||
policies_ = policies;
|
||||
setParameter(std::string("Policies"), policies);
|
||||
}
|
||||
|
||||
std::string UpdateApplicationAccessPointRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateApplicationAccessPointRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateApplicationAccessPointRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateApplicationAccessPointRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
kms/src/model/UpdateApplicationAccessPointResult.cc
Normal file
44
kms/src/model/UpdateApplicationAccessPointResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdateApplicationAccessPointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
UpdateApplicationAccessPointResult::UpdateApplicationAccessPointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateApplicationAccessPointResult::UpdateApplicationAccessPointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateApplicationAccessPointResult::~UpdateApplicationAccessPointResult()
|
||||
{}
|
||||
|
||||
void UpdateApplicationAccessPointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
kms/src/model/UpdateKmsInstanceBindVpcRequest.cc
Normal file
45
kms/src/model/UpdateKmsInstanceBindVpcRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdateKmsInstanceBindVpcRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::UpdateKmsInstanceBindVpcRequest;
|
||||
|
||||
UpdateKmsInstanceBindVpcRequest::UpdateKmsInstanceBindVpcRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "UpdateKmsInstanceBindVpc") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
UpdateKmsInstanceBindVpcRequest::~UpdateKmsInstanceBindVpcRequest() {}
|
||||
|
||||
std::string UpdateKmsInstanceBindVpcRequest::getKmsInstanceId() const {
|
||||
return kmsInstanceId_;
|
||||
}
|
||||
|
||||
void UpdateKmsInstanceBindVpcRequest::setKmsInstanceId(const std::string &kmsInstanceId) {
|
||||
kmsInstanceId_ = kmsInstanceId;
|
||||
setParameter(std::string("KmsInstanceId"), kmsInstanceId);
|
||||
}
|
||||
|
||||
std::string UpdateKmsInstanceBindVpcRequest::getBindVpcs() const {
|
||||
return bindVpcs_;
|
||||
}
|
||||
|
||||
void UpdateKmsInstanceBindVpcRequest::setBindVpcs(const std::string &bindVpcs) {
|
||||
bindVpcs_ = bindVpcs;
|
||||
setParameter(std::string("BindVpcs"), bindVpcs);
|
||||
}
|
||||
|
||||
44
kms/src/model/UpdateKmsInstanceBindVpcResult.cc
Normal file
44
kms/src/model/UpdateKmsInstanceBindVpcResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdateKmsInstanceBindVpcResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
UpdateKmsInstanceBindVpcResult::UpdateKmsInstanceBindVpcResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateKmsInstanceBindVpcResult::UpdateKmsInstanceBindVpcResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateKmsInstanceBindVpcResult::~UpdateKmsInstanceBindVpcResult()
|
||||
{}
|
||||
|
||||
void UpdateKmsInstanceBindVpcResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
kms/src/model/UpdateNetworkRuleRequest.cc
Normal file
54
kms/src/model/UpdateNetworkRuleRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdateNetworkRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::UpdateNetworkRuleRequest;
|
||||
|
||||
UpdateNetworkRuleRequest::UpdateNetworkRuleRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "UpdateNetworkRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateNetworkRuleRequest::~UpdateNetworkRuleRequest() {}
|
||||
|
||||
std::string UpdateNetworkRuleRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateNetworkRuleRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateNetworkRuleRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateNetworkRuleRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string UpdateNetworkRuleRequest::getSourcePrivateIp() const {
|
||||
return sourcePrivateIp_;
|
||||
}
|
||||
|
||||
void UpdateNetworkRuleRequest::setSourcePrivateIp(const std::string &sourcePrivateIp) {
|
||||
sourcePrivateIp_ = sourcePrivateIp;
|
||||
setParameter(std::string("SourcePrivateIp"), sourcePrivateIp);
|
||||
}
|
||||
|
||||
44
kms/src/model/UpdateNetworkRuleResult.cc
Normal file
44
kms/src/model/UpdateNetworkRuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdateNetworkRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
UpdateNetworkRuleResult::UpdateNetworkRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNetworkRuleResult::UpdateNetworkRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNetworkRuleResult::~UpdateNetworkRuleResult()
|
||||
{}
|
||||
|
||||
void UpdateNetworkRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
72
kms/src/model/UpdatePolicyRequest.cc
Normal file
72
kms/src/model/UpdatePolicyRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdatePolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Kms::Model::UpdatePolicyRequest;
|
||||
|
||||
UpdatePolicyRequest::UpdatePolicyRequest()
|
||||
: RpcServiceRequest("kms", "2016-01-20", "UpdatePolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePolicyRequest::~UpdatePolicyRequest() {}
|
||||
|
||||
std::string UpdatePolicyRequest::getAccessControlRules() const {
|
||||
return accessControlRules_;
|
||||
}
|
||||
|
||||
void UpdatePolicyRequest::setAccessControlRules(const std::string &accessControlRules) {
|
||||
accessControlRules_ = accessControlRules;
|
||||
setParameter(std::string("AccessControlRules"), accessControlRules);
|
||||
}
|
||||
|
||||
std::string UpdatePolicyRequest::getResources() const {
|
||||
return resources_;
|
||||
}
|
||||
|
||||
void UpdatePolicyRequest::setResources(const std::string &resources) {
|
||||
resources_ = resources;
|
||||
setParameter(std::string("Resources"), resources);
|
||||
}
|
||||
|
||||
std::string UpdatePolicyRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdatePolicyRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdatePolicyRequest::getPermissions() const {
|
||||
return permissions_;
|
||||
}
|
||||
|
||||
void UpdatePolicyRequest::setPermissions(const std::string &permissions) {
|
||||
permissions_ = permissions;
|
||||
setParameter(std::string("Permissions"), permissions);
|
||||
}
|
||||
|
||||
std::string UpdatePolicyRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdatePolicyRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
44
kms/src/model/UpdatePolicyResult.cc
Normal file
44
kms/src/model/UpdatePolicyResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/kms/model/UpdatePolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Kms;
|
||||
using namespace AlibabaCloud::Kms::Model;
|
||||
|
||||
UpdatePolicyResult::UpdatePolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePolicyResult::UpdatePolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePolicyResult::~UpdatePolicyResult()
|
||||
{}
|
||||
|
||||
void UpdatePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user