Add kms apis.

This commit is contained in:
sdk-team
2022-07-21 08:44:47 +00:00
parent 53badb17c1
commit 63d1456017
13 changed files with 643 additions and 1 deletions

View File

@@ -56,6 +56,8 @@
#include "model/CreateUploadImageResult.h"
#include "model/CreateUploadVideoRequest.h"
#include "model/CreateUploadVideoResult.h"
#include "model/DecryptKMSDataKeyRequest.h"
#include "model/DecryptKMSDataKeyResult.h"
#include "model/DeleteAIImageInfosRequest.h"
#include "model/DeleteAIImageInfosResult.h"
#include "model/DeleteAITemplateRequest.h"
@@ -132,6 +134,8 @@
#include "model/DescribeVodVerifyContentResult.h"
#include "model/DetachAppPolicyFromIdentityRequest.h"
#include "model/DetachAppPolicyFromIdentityResult.h"
#include "model/GenerateKMSDataKeyRequest.h"
#include "model/GenerateKMSDataKeyResult.h"
#include "model/GetAIImageJobsRequest.h"
#include "model/GetAIImageJobsResult.h"
#include "model/GetAIMediaAuditJobRequest.h"
@@ -366,6 +370,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateUploadVideoResult> CreateUploadVideoOutcome;
typedef std::future<CreateUploadVideoOutcome> CreateUploadVideoOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::CreateUploadVideoRequest&, const CreateUploadVideoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUploadVideoAsyncHandler;
typedef Outcome<Error, Model::DecryptKMSDataKeyResult> DecryptKMSDataKeyOutcome;
typedef std::future<DecryptKMSDataKeyOutcome> DecryptKMSDataKeyOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::DecryptKMSDataKeyRequest&, const DecryptKMSDataKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DecryptKMSDataKeyAsyncHandler;
typedef Outcome<Error, Model::DeleteAIImageInfosResult> DeleteAIImageInfosOutcome;
typedef std::future<DeleteAIImageInfosOutcome> DeleteAIImageInfosOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::DeleteAIImageInfosRequest&, const DeleteAIImageInfosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAIImageInfosAsyncHandler;
@@ -480,6 +487,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DetachAppPolicyFromIdentityResult> DetachAppPolicyFromIdentityOutcome;
typedef std::future<DetachAppPolicyFromIdentityOutcome> DetachAppPolicyFromIdentityOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::DetachAppPolicyFromIdentityRequest&, const DetachAppPolicyFromIdentityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachAppPolicyFromIdentityAsyncHandler;
typedef Outcome<Error, Model::GenerateKMSDataKeyResult> GenerateKMSDataKeyOutcome;
typedef std::future<GenerateKMSDataKeyOutcome> GenerateKMSDataKeyOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::GenerateKMSDataKeyRequest&, const GenerateKMSDataKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateKMSDataKeyAsyncHandler;
typedef Outcome<Error, Model::GetAIImageJobsResult> GetAIImageJobsOutcome;
typedef std::future<GetAIImageJobsOutcome> GetAIImageJobsOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::GetAIImageJobsRequest&, const GetAIImageJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAIImageJobsAsyncHandler;
@@ -797,6 +807,9 @@ namespace AlibabaCloud
CreateUploadVideoOutcome createUploadVideo(const Model::CreateUploadVideoRequest &request)const;
void createUploadVideoAsync(const Model::CreateUploadVideoRequest& request, const CreateUploadVideoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateUploadVideoOutcomeCallable createUploadVideoCallable(const Model::CreateUploadVideoRequest& request) const;
DecryptKMSDataKeyOutcome decryptKMSDataKey(const Model::DecryptKMSDataKeyRequest &request)const;
void decryptKMSDataKeyAsync(const Model::DecryptKMSDataKeyRequest& request, const DecryptKMSDataKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DecryptKMSDataKeyOutcomeCallable decryptKMSDataKeyCallable(const Model::DecryptKMSDataKeyRequest& request) const;
DeleteAIImageInfosOutcome deleteAIImageInfos(const Model::DeleteAIImageInfosRequest &request)const;
void deleteAIImageInfosAsync(const Model::DeleteAIImageInfosRequest& request, const DeleteAIImageInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteAIImageInfosOutcomeCallable deleteAIImageInfosCallable(const Model::DeleteAIImageInfosRequest& request) const;
@@ -911,6 +924,9 @@ namespace AlibabaCloud
DetachAppPolicyFromIdentityOutcome detachAppPolicyFromIdentity(const Model::DetachAppPolicyFromIdentityRequest &request)const;
void detachAppPolicyFromIdentityAsync(const Model::DetachAppPolicyFromIdentityRequest& request, const DetachAppPolicyFromIdentityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachAppPolicyFromIdentityOutcomeCallable detachAppPolicyFromIdentityCallable(const Model::DetachAppPolicyFromIdentityRequest& request) const;
GenerateKMSDataKeyOutcome generateKMSDataKey(const Model::GenerateKMSDataKeyRequest &request)const;
void generateKMSDataKeyAsync(const Model::GenerateKMSDataKeyRequest& request, const GenerateKMSDataKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GenerateKMSDataKeyOutcomeCallable generateKMSDataKeyCallable(const Model::GenerateKMSDataKeyRequest& request) const;
GetAIImageJobsOutcome getAIImageJobs(const Model::GetAIImageJobsRequest &request)const;
void getAIImageJobsAsync(const Model::GetAIImageJobsRequest& request, const GetAIImageJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetAIImageJobsOutcomeCallable getAIImageJobsCallable(const Model::GetAIImageJobsRequest& request) const;

View 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.
*/
#ifndef ALIBABACLOUD_VOD_MODEL_DECRYPTKMSDATAKEYREQUEST_H_
#define ALIBABACLOUD_VOD_MODEL_DECRYPTKMSDATAKEYREQUEST_H_
#include <alibabacloud/vod/VodExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Vod {
namespace Model {
class ALIBABACLOUD_VOD_EXPORT DecryptKMSDataKeyRequest : public RpcServiceRequest {
public:
DecryptKMSDataKeyRequest();
~DecryptKMSDataKeyRequest();
std::string getResourceOwnerId() const;
void setResourceOwnerId(const std::string &resourceOwnerId);
long getResourceRealOwnerId() const;
void setResourceRealOwnerId(long resourceRealOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getKmsRegionId() const;
void setKmsRegionId(const std::string &kmsRegionId);
std::string getCipherText() const;
void setCipherText(const std::string &cipherText);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
std::string getOwnerId() const;
void setOwnerId(const std::string &ownerId);
private:
std::string resourceOwnerId_;
long resourceRealOwnerId_;
std::string accessKeyId_;
std::string kmsRegionId_;
std::string cipherText_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string ownerId_;
};
} // namespace Model
} // namespace Vod
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VOD_MODEL_DECRYPTKMSDATAKEYREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_VOD_MODEL_DECRYPTKMSDATAKEYRESULT_H_
#define ALIBABACLOUD_VOD_MODEL_DECRYPTKMSDATAKEYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT DecryptKMSDataKeyResult : public ServiceResult
{
public:
DecryptKMSDataKeyResult();
explicit DecryptKMSDataKeyResult(const std::string &payload);
~DecryptKMSDataKeyResult();
std::string getPlaintext()const;
std::string getKeyId()const;
protected:
void parse(const std::string &payload);
private:
std::string plaintext_;
std::string keyId_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_DECRYPTKMSDATAKEYRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_VOD_MODEL_GENERATEKMSDATAKEYREQUEST_H_
#define ALIBABACLOUD_VOD_MODEL_GENERATEKMSDATAKEYREQUEST_H_
#include <alibabacloud/vod/VodExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Vod {
namespace Model {
class ALIBABACLOUD_VOD_EXPORT GenerateKMSDataKeyRequest : public RpcServiceRequest {
public:
GenerateKMSDataKeyRequest();
~GenerateKMSDataKeyRequest();
std::string getResourceOwnerId() const;
void setResourceOwnerId(const std::string &resourceOwnerId);
long getResourceRealOwnerId() const;
void setResourceRealOwnerId(long resourceRealOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getKmsRegionId() const;
void setKmsRegionId(const std::string &kmsRegionId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
std::string getOwnerId() const;
void setOwnerId(const std::string &ownerId);
private:
std::string resourceOwnerId_;
long resourceRealOwnerId_;
std::string accessKeyId_;
std::string kmsRegionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string ownerId_;
};
} // namespace Model
} // namespace Vod
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VOD_MODEL_GENERATEKMSDATAKEYREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_VOD_MODEL_GENERATEKMSDATAKEYRESULT_H_
#define ALIBABACLOUD_VOD_MODEL_GENERATEKMSDATAKEYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT GenerateKMSDataKeyResult : public ServiceResult
{
public:
GenerateKMSDataKeyResult();
explicit GenerateKMSDataKeyResult(const std::string &payload);
~GenerateKMSDataKeyResult();
std::string getCiphertextBlob()const;
std::string getPlaintext()const;
std::string getKeyId()const;
protected:
void parse(const std::string &payload);
private:
std::string ciphertextBlob_;
std::string plaintext_;
std::string keyId_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_GENERATEKMSDATAKEYRESULT_H_