Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dacb2ef983 | ||
|
|
f41733beaa | ||
|
|
c419c6e933 | ||
|
|
a3026e6a85 | ||
|
|
320af597ca | ||
|
|
0f47a4c427 | ||
|
|
51fa053ec1 | ||
|
|
ec33c109fe | ||
|
|
773cabb9d7 | ||
|
|
5de44fa4bd | ||
|
|
eaa895f02e | ||
|
|
be58d3d198 | ||
|
|
f8ce42a726 | ||
|
|
68261f0c8d | ||
|
|
45a3be8c65 | ||
|
|
66519a1f90 | ||
|
|
ef02e7707e | ||
|
|
82ce70d07f | ||
|
|
2c8cadba25 | ||
|
|
f90c2115c9 | ||
|
|
14fa5fe61a | ||
|
|
ca9bc6363b | ||
|
|
140879338b | ||
|
|
3f0bc9064e | ||
|
|
14ede93088 | ||
|
|
20fc16db11 | ||
|
|
cca2dd1b12 | ||
|
|
86d673dc39 | ||
|
|
03ae6a55f9 | ||
|
|
beee861ebb | ||
|
|
bdc2381f4b | ||
|
|
2dccf2d4e8 |
104
CHANGELOG
104
CHANGELOG
@@ -1,3 +1,107 @@
|
||||
2020-03-11 Version: 1.36.314
|
||||
- Support certificate translate.
|
||||
|
||||
2020-03-10 Version: 1.36.313
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-03-10 Version: 1.36.312
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-03-09 Version: 1.36.311
|
||||
- Add EmotionConfidence to GetImage.
|
||||
|
||||
2020-03-09 Version: 1.36.310
|
||||
- Add BackupStorageType.
|
||||
|
||||
2020-03-09 Version: 1.36.309
|
||||
- Add EmotionConfidence to GetImage.
|
||||
|
||||
2020-03-09 Version: 1.36.308
|
||||
- Add EmotionConfidence to GetImage.
|
||||
|
||||
2020-03-09 Version: 1.36.307
|
||||
- NlpAutoml update contract api.
|
||||
|
||||
2020-03-09 Version: 1.36.306
|
||||
- NlpAutoml update contract api.
|
||||
|
||||
2020-03-06 Version: 1.36.305
|
||||
- Supported Saf for cn.
|
||||
|
||||
2020-03-06 Version: 1.36.304
|
||||
- Supported Saf for cn.
|
||||
|
||||
2020-03-06 Version: 1.36.303
|
||||
- Supported Saf for oversea.
|
||||
|
||||
2020-03-06 Version: 1.36.302
|
||||
- Add request parameter groupType for OnsGroupCreate.
|
||||
- Add request parameter groupType for OnsGroupList.
|
||||
|
||||
2020-03-05 Version: 1.36.301
|
||||
- Add param InstanceType for ListImages and ListCustomImages.
|
||||
- Fix error codes for SubmitJobs and so on.
|
||||
|
||||
2020-03-04 Version: 1.36.300
|
||||
- Update.
|
||||
|
||||
2020-03-03 Version: 1.36.299
|
||||
- Supported secretmanager stable version for kms.
|
||||
|
||||
2020-03-03 Version: 1.36.298
|
||||
- Supported secretmanager stable version for kms.
|
||||
|
||||
2020-03-03 Version: 1.36.297
|
||||
- GeoIP Databases SDK initial release.
|
||||
|
||||
2020-03-03 Version: 1.36.296
|
||||
- Supported secretmanager for kms.
|
||||
|
||||
2020-02-28 Version: 1.36.295
|
||||
- Add QueryPhoneNoAByTrackNo and AddAxnTrackNo.
|
||||
|
||||
2020-02-28 Version: 1.36.294
|
||||
- Supported secretmanager for kms.
|
||||
|
||||
2020-02-27 Version: 1.36.293
|
||||
- Add translate api.
|
||||
|
||||
2020-02-27 Version: 1.36.292
|
||||
- Release Ft SDK.
|
||||
|
||||
2020-02-26 Version: 1.36.291
|
||||
- Fix tag upper case parameters.
|
||||
- Fix patch.
|
||||
|
||||
2020-02-26 Version: 1.36.290
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add VpcCloudInstanceId for DescribeInstanceAttribute.
|
||||
|
||||
2020-02-26 Version: 1.36.289
|
||||
- Add InitFaceVerify and DescribeFaceVerify API.
|
||||
|
||||
2020-02-25 Version: 1.36.288
|
||||
- Fix ListWorkFlowTemplates, ListWorkFlowNodes API Go SDK build error.
|
||||
|
||||
2020-02-25 Version: 1.36.287
|
||||
- Update backupsetDownloadset fun.
|
||||
|
||||
2020-02-24 Version: 1.36.286
|
||||
- ImmediateDelete.
|
||||
- DescribeInstance CreateTimeUTC ExpireTimeUTC.
|
||||
- DescribeInstances CreateTimeUTC ExpireTimeUTC.
|
||||
- DescribeIpWhitelist Groups GroupName.
|
||||
- CreateCluster.
|
||||
|
||||
2020-02-24 Version: 1.36.285
|
||||
- Release Ft SDK.
|
||||
|
||||
2020-02-24 Version: 1.36.284
|
||||
- Release Ft SDK.
|
||||
|
||||
2020-02-24 Version 1.36.283
|
||||
- Add tag of list instance parameters.
|
||||
|
||||
2020-02-24 Version 1.36.282
|
||||
- Generated 2018-06-12 for `VoiceNavigator`.
|
||||
|
||||
|
||||
@@ -21,6 +21,14 @@ set(alimt_public_header
|
||||
include/alibabacloud/alimt/AlimtExport.h )
|
||||
|
||||
set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h
|
||||
include/alibabacloud/alimt/model/CreateDocTranslateTaskResult.h
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateECommerceRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateECommerceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
|
||||
@@ -28,6 +36,14 @@ set(alimt_public_header_model
|
||||
|
||||
set(alimt_src
|
||||
src/AlimtClient.cc
|
||||
src/model/CreateDocTranslateTaskRequest.cc
|
||||
src/model/CreateDocTranslateTaskResult.cc
|
||||
src/model/GetDocTranslateTaskRequest.cc
|
||||
src/model/GetDocTranslateTaskResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
src/model/TranslateCertificateResult.cc
|
||||
src/model/TranslateECommerceRequest.cc
|
||||
src/model/TranslateECommerceResult.cc
|
||||
src/model/TranslateGeneralRequest.cc
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "AlimtExport.h"
|
||||
#include "model/CreateDocTranslateTaskRequest.h"
|
||||
#include "model/CreateDocTranslateTaskResult.h"
|
||||
#include "model/GetDocTranslateTaskRequest.h"
|
||||
#include "model/GetDocTranslateTaskResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
#include "model/TranslateCertificateResult.h"
|
||||
#include "model/TranslateECommerceRequest.h"
|
||||
#include "model/TranslateECommerceResult.h"
|
||||
#include "model/TranslateGeneralRequest.h"
|
||||
@@ -35,6 +43,18 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_ALIMT_EXPORT AlimtClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CreateDocTranslateTaskResult> CreateDocTranslateTaskOutcome;
|
||||
typedef std::future<CreateDocTranslateTaskOutcome> CreateDocTranslateTaskOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::CreateDocTranslateTaskRequest&, const CreateDocTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDocTranslateTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDocTranslateTaskResult> GetDocTranslateTaskOutcome;
|
||||
typedef std::future<GetDocTranslateTaskOutcome> GetDocTranslateTaskOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetDocTranslateTaskRequest&, const GetDocTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocTranslateTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateCertificateResult> TranslateCertificateOutcome;
|
||||
typedef std::future<TranslateCertificateOutcome> TranslateCertificateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateCertificateRequest&, const TranslateCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateECommerceResult> TranslateECommerceOutcome;
|
||||
typedef std::future<TranslateECommerceOutcome> TranslateECommerceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateECommerceRequest&, const TranslateECommerceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateECommerceAsyncHandler;
|
||||
@@ -46,6 +66,18 @@ namespace AlibabaCloud
|
||||
AlimtClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
AlimtClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~AlimtClient();
|
||||
CreateDocTranslateTaskOutcome createDocTranslateTask(const Model::CreateDocTranslateTaskRequest &request)const;
|
||||
void createDocTranslateTaskAsync(const Model::CreateDocTranslateTaskRequest& request, const CreateDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDocTranslateTaskOutcomeCallable createDocTranslateTaskCallable(const Model::CreateDocTranslateTaskRequest& request) const;
|
||||
GetDocTranslateTaskOutcome getDocTranslateTask(const Model::GetDocTranslateTaskRequest &request)const;
|
||||
void getDocTranslateTaskAsync(const Model::GetDocTranslateTaskRequest& request, const GetDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDocTranslateTaskOutcomeCallable getDocTranslateTaskCallable(const Model::GetDocTranslateTaskRequest& request) const;
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
TranslateCertificateOutcome translateCertificate(const Model::TranslateCertificateRequest &request)const;
|
||||
void translateCertificateAsync(const Model::TranslateCertificateRequest& request, const TranslateCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateCertificateOutcomeCallable translateCertificateCallable(const Model::TranslateCertificateRequest& request) const;
|
||||
TranslateECommerceOutcome translateECommerce(const Model::TranslateECommerceRequest &request)const;
|
||||
void translateECommerceAsync(const Model::TranslateECommerceRequest& request, const TranslateECommerceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateECommerceOutcomeCallable translateECommerceCallable(const Model::TranslateECommerceRequest& request) const;
|
||||
|
||||
@@ -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_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDocTranslateTaskRequest();
|
||||
~CreateDocTranslateTaskRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getFileUrl()const;
|
||||
void setFileUrl(const std::string& fileUrl);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
std::string getCallbackUrl()const;
|
||||
void setCallbackUrl(const std::string& callbackUrl);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string clientToken_;
|
||||
std::string scene_;
|
||||
std::string fileUrl_;
|
||||
std::string targetLanguage_;
|
||||
std::string callbackUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKREQUEST_H_
|
||||
@@ -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_ALIMT_MODEL_CREATEDOCTRANSLATETASKRESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT CreateDocTranslateTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDocTranslateTaskResult();
|
||||
explicit CreateDocTranslateTaskResult(const std::string &payload);
|
||||
~CreateDocTranslateTaskResult();
|
||||
std::string getStatus()const;
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEDOCTRANSLATETASKRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDocTranslateTaskRequest();
|
||||
~GetDocTranslateTaskRequest();
|
||||
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKREQUEST_H_
|
||||
@@ -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_ALIMT_MODEL_GETDOCTRANSLATETASKRESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetDocTranslateTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetDocTranslateTaskResult();
|
||||
explicit GetDocTranslateTaskResult(const std::string &payload);
|
||||
~GetDocTranslateTaskResult();
|
||||
std::string getStatus()const;
|
||||
std::string getTaskId()const;
|
||||
std::string getTranslateFileUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string taskId_;
|
||||
std::string translateFileUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETDOCTRANSLATETASKRESULT_H_
|
||||
@@ -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_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateCertificateRequest();
|
||||
~TranslateCertificateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getCertificateType()const;
|
||||
void setCertificateType(const std::string& certificateType);
|
||||
std::string getResultType()const;
|
||||
void setResultType(const std::string& resultType);
|
||||
std::string getImageUrl()const;
|
||||
void setImageUrl(const std::string& imageUrl);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string certificateType_;
|
||||
std::string resultType_;
|
||||
std::string imageUrl_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATEREQUEST_H_
|
||||
@@ -14,54 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CompareFaceResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateCertificateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CompareResultItem
|
||||
struct Data
|
||||
{
|
||||
struct FaceA
|
||||
struct CertificateTranslateItemDTO
|
||||
{
|
||||
std::string imageUri;
|
||||
std::vector<std::string> axis;
|
||||
std::string valueTranslation;
|
||||
std::string keyTranslation;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct FaceB
|
||||
{
|
||||
std::string imageUri;
|
||||
std::vector<std::string> axis1;
|
||||
};
|
||||
float similarity;
|
||||
FaceA faceA;
|
||||
FaceB faceB;
|
||||
std::vector<CertificateTranslateItemDTO> translatedValues;
|
||||
};
|
||||
|
||||
|
||||
CompareFaceResult();
|
||||
explicit CompareFaceResult(const std::string &payload);
|
||||
~CompareFaceResult();
|
||||
std::vector<CompareResultItem> getCompareResult()const;
|
||||
TranslateCertificateResult();
|
||||
explicit TranslateCertificateResult(const std::string &payload);
|
||||
~TranslateCertificateResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<CompareResultItem> compareResult_;
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATECERTIFICATERESULT_H_
|
||||
60
alimt/include/alibabacloud/alimt/model/TranslateRequest.h
Normal file
60
alimt/include/alibabacloud/alimt/model/TranslateRequest.h
Normal 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_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateRequest();
|
||||
~TranslateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATEREQUEST_H_
|
||||
@@ -14,45 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_TRANSLATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT ListTagNamesResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIMT_EXPORT TranslateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagsItem
|
||||
struct Data
|
||||
{
|
||||
std::string tagName;
|
||||
int num;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
ListTagNamesResult();
|
||||
explicit ListTagNamesResult(const std::string &payload);
|
||||
~ListTagNamesResult();
|
||||
std::string getNextMarker()const;
|
||||
std::vector<TagsItem> getTags()const;
|
||||
TranslateResult();
|
||||
explicit TranslateResult(const std::string &payload);
|
||||
~TranslateResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextMarker_;
|
||||
std::vector<TagsItem> tags_;
|
||||
std::string message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATERESULT_H_
|
||||
@@ -31,26 +31,170 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
}
|
||||
|
||||
AlimtClient::~AlimtClient()
|
||||
{}
|
||||
|
||||
AlimtClient::CreateDocTranslateTaskOutcome AlimtClient::createDocTranslateTask(const CreateDocTranslateTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDocTranslateTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDocTranslateTaskOutcome(CreateDocTranslateTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateDocTranslateTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::createDocTranslateTaskAsync(const CreateDocTranslateTaskRequest& request, const CreateDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDocTranslateTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::CreateDocTranslateTaskOutcomeCallable AlimtClient::createDocTranslateTaskCallable(const CreateDocTranslateTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDocTranslateTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDocTranslateTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetDocTranslateTaskOutcome AlimtClient::getDocTranslateTask(const GetDocTranslateTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDocTranslateTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDocTranslateTaskOutcome(GetDocTranslateTaskResult(outcome.result()));
|
||||
else
|
||||
return GetDocTranslateTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getDocTranslateTaskAsync(const GetDocTranslateTaskRequest& request, const GetDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDocTranslateTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetDocTranslateTaskOutcomeCallable AlimtClient::getDocTranslateTaskCallable(const GetDocTranslateTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDocTranslateTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDocTranslateTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateOutcome(TranslateResult(outcome.result()));
|
||||
else
|
||||
return TranslateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::translateAsync(const TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcomeCallable AlimtClient::translateCallable(const TranslateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateCertificateOutcome AlimtClient::translateCertificate(const TranslateCertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateCertificateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateCertificateOutcome(TranslateCertificateResult(outcome.result()));
|
||||
else
|
||||
return TranslateCertificateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::translateCertificateAsync(const TranslateCertificateRequest& request, const TranslateCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translateCertificate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::TranslateCertificateOutcomeCallable AlimtClient::translateCertificateCallable(const TranslateCertificateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateCertificateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translateCertificate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateECommerceOutcome AlimtClient::translateECommerce(const TranslateECommerceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
alimt/src/model/CreateDocTranslateTaskRequest.cc
Normal file
95
alimt/src/model/CreateDocTranslateTaskRequest.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/alimt/model/CreateDocTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::CreateDocTranslateTaskRequest;
|
||||
|
||||
CreateDocTranslateTaskRequest::CreateDocTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "CreateDocTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDocTranslateTaskRequest::~CreateDocTranslateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getFileUrl()const
|
||||
{
|
||||
return fileUrl_;
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setFileUrl(const std::string& fileUrl)
|
||||
{
|
||||
fileUrl_ = fileUrl;
|
||||
setBodyParameter("FileUrl", fileUrl);
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskRequest::getCallbackUrl()const
|
||||
{
|
||||
return callbackUrl_;
|
||||
}
|
||||
|
||||
void CreateDocTranslateTaskRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setBodyParameter("CallbackUrl", callbackUrl);
|
||||
}
|
||||
|
||||
58
alimt/src/model/CreateDocTranslateTaskResult.cc
Normal file
58
alimt/src/model/CreateDocTranslateTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/alimt/model/CreateDocTranslateTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
CreateDocTranslateTaskResult::CreateDocTranslateTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDocTranslateTaskResult::CreateDocTranslateTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDocTranslateTaskResult::~CreateDocTranslateTaskResult()
|
||||
{}
|
||||
|
||||
void CreateDocTranslateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string CreateDocTranslateTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
40
alimt/src/model/GetDocTranslateTaskRequest.cc
Normal file
40
alimt/src/model/GetDocTranslateTaskRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/alimt/model/GetDocTranslateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetDocTranslateTaskRequest;
|
||||
|
||||
GetDocTranslateTaskRequest::GetDocTranslateTaskRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetDocTranslateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetDocTranslateTaskRequest::~GetDocTranslateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string GetDocTranslateTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetDocTranslateTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
65
alimt/src/model/GetDocTranslateTaskResult.cc
Normal file
65
alimt/src/model/GetDocTranslateTaskResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/alimt/model/GetDocTranslateTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetDocTranslateTaskResult::GetDocTranslateTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDocTranslateTaskResult::GetDocTranslateTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDocTranslateTaskResult::~GetDocTranslateTaskResult()
|
||||
{}
|
||||
|
||||
void GetDocTranslateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["TranslateFileUrl"].isNull())
|
||||
translateFileUrl_ = value["TranslateFileUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDocTranslateTaskResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string GetDocTranslateTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string GetDocTranslateTaskResult::getTranslateFileUrl()const
|
||||
{
|
||||
return translateFileUrl_;
|
||||
}
|
||||
|
||||
84
alimt/src/model/TranslateCertificateRequest.cc
Normal file
84
alimt/src/model/TranslateCertificateRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/alimt/model/TranslateCertificateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateCertificateRequest;
|
||||
|
||||
TranslateCertificateRequest::TranslateCertificateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateCertificate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateCertificateRequest::~TranslateCertificateRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateCertificateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getCertificateType()const
|
||||
{
|
||||
return certificateType_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setCertificateType(const std::string& certificateType)
|
||||
{
|
||||
certificateType_ = certificateType;
|
||||
setBodyParameter("CertificateType", certificateType);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getResultType()const
|
||||
{
|
||||
return resultType_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setResultType(const std::string& resultType)
|
||||
{
|
||||
resultType_ = resultType;
|
||||
setBodyParameter("ResultType", resultType);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
std::string TranslateCertificateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateCertificateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
64
alimt/src/model/TranslateCertificateResult.cc
Normal file
64
alimt/src/model/TranslateCertificateResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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/alimt/model/TranslateCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
TranslateCertificateResult::TranslateCertificateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateCertificateResult::TranslateCertificateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateCertificateResult::~TranslateCertificateResult()
|
||||
{}
|
||||
|
||||
void TranslateCertificateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allTranslatedValuesNode = dataNode["TranslatedValues"]["CertificateTranslateItemDTO"];
|
||||
for (auto dataNodeTranslatedValuesCertificateTranslateItemDTO : allTranslatedValuesNode)
|
||||
{
|
||||
Data::CertificateTranslateItemDTO certificateTranslateItemDTOObject;
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].isNull())
|
||||
certificateTranslateItemDTOObject.key = dataNodeTranslatedValuesCertificateTranslateItemDTO["Key"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].isNull())
|
||||
certificateTranslateItemDTOObject.value = dataNodeTranslatedValuesCertificateTranslateItemDTO["Value"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].isNull())
|
||||
certificateTranslateItemDTOObject.valueTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["ValueTranslation"].asString();
|
||||
if(!dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].isNull())
|
||||
certificateTranslateItemDTOObject.keyTranslation = dataNodeTranslatedValuesCertificateTranslateItemDTO["KeyTranslation"].asString();
|
||||
data_.translatedValues.push_back(certificateTranslateItemDTOObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TranslateCertificateResult::Data TranslateCertificateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Alimt::Model::TranslateECommerceRequest;
|
||||
|
||||
TranslateECommerceRequest::TranslateECommerceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateECommerce")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateECommerceRequest::~TranslateECommerceRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string TranslateECommerceRequest::getSourceLanguage()const
|
||||
void TranslateECommerceRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setCoreParameter("SourceLanguage", sourceLanguage);
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getSourceText()const
|
||||
@@ -44,7 +46,7 @@ std::string TranslateECommerceRequest::getSourceText()const
|
||||
void TranslateECommerceRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setCoreParameter("SourceText", sourceText);
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getFormatType()const
|
||||
@@ -55,7 +57,7 @@ std::string TranslateECommerceRequest::getFormatType()const
|
||||
void TranslateECommerceRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setCoreParameter("FormatType", formatType);
|
||||
setBodyParameter("FormatType", formatType);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getScene()const
|
||||
@@ -66,7 +68,7 @@ std::string TranslateECommerceRequest::getScene()const
|
||||
void TranslateECommerceRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setCoreParameter("Scene", scene);
|
||||
setBodyParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string TranslateECommerceRequest::getTargetLanguage()const
|
||||
@@ -77,6 +79,6 @@ std::string TranslateECommerceRequest::getTargetLanguage()const
|
||||
void TranslateECommerceRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setCoreParameter("TargetLanguage", targetLanguage);
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Alimt::Model::TranslateGeneralRequest;
|
||||
|
||||
TranslateGeneralRequest::TranslateGeneralRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "TranslateGeneral")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateGeneralRequest::~TranslateGeneralRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string TranslateGeneralRequest::getSourceLanguage()const
|
||||
void TranslateGeneralRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setCoreParameter("SourceLanguage", sourceLanguage);
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getSourceText()const
|
||||
@@ -44,7 +46,7 @@ std::string TranslateGeneralRequest::getSourceText()const
|
||||
void TranslateGeneralRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setCoreParameter("SourceText", sourceText);
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getFormatType()const
|
||||
@@ -55,7 +57,7 @@ std::string TranslateGeneralRequest::getFormatType()const
|
||||
void TranslateGeneralRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setCoreParameter("FormatType", formatType);
|
||||
setBodyParameter("FormatType", formatType);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getScene()const
|
||||
@@ -66,7 +68,7 @@ std::string TranslateGeneralRequest::getScene()const
|
||||
void TranslateGeneralRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setCoreParameter("Scene", scene);
|
||||
setBodyParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string TranslateGeneralRequest::getTargetLanguage()const
|
||||
@@ -77,6 +79,6 @@ std::string TranslateGeneralRequest::getTargetLanguage()const
|
||||
void TranslateGeneralRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setCoreParameter("TargetLanguage", targetLanguage);
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
|
||||
84
alimt/src/model/TranslateRequest.cc
Normal file
84
alimt/src/model/TranslateRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/alimt/model/TranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::TranslateRequest;
|
||||
|
||||
TranslateRequest::TranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "Translate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateRequest::~TranslateRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void TranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
void TranslateRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
void TranslateRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setBodyParameter("FormatType", formatType);
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void TranslateRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string TranslateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void TranslateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
66
alimt/src/model/TranslateResult.cc
Normal file
66
alimt/src/model/TranslateResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/alimt/model/TranslateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
TranslateResult::TranslateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateResult::TranslateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateResult::~TranslateResult()
|
||||
{}
|
||||
|
||||
void TranslateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TranslateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TranslateResult::Data TranslateResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int TranslateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/BatchUpdateCdnDomainResult.h
|
||||
include/alibabacloud/cdn/model/CreateCdnCertificateSigningRequestRequest.h
|
||||
include/alibabacloud/cdn/model/CreateCdnCertificateSigningRequestResult.h
|
||||
include/alibabacloud/cdn/model/CreateIllegalUrlExportTaskRequest.h
|
||||
include/alibabacloud/cdn/model/CreateIllegalUrlExportTaskResult.h
|
||||
include/alibabacloud/cdn/model/CreateLiveStreamRecordIndexFilesRequest.h
|
||||
include/alibabacloud/cdn/model/CreateLiveStreamRecordIndexFilesResult.h
|
||||
include/alibabacloud/cdn/model/CreateRealTimeLogDeliveryRequest.h
|
||||
@@ -211,6 +213,8 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeDomainsUsageByDayResult.h
|
||||
include/alibabacloud/cdn/model/DescribeFCTriggerRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeFCTriggerResult.h
|
||||
include/alibabacloud/cdn/model/DescribeIllegalUrlExportTaskRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeIllegalUrlExportTaskResult.h
|
||||
include/alibabacloud/cdn/model/DescribeIpInfoRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeIpInfoResult.h
|
||||
include/alibabacloud/cdn/model/DescribeL2VipsByDomainRequest.h
|
||||
@@ -434,6 +438,8 @@ set(cdn_src
|
||||
src/model/BatchUpdateCdnDomainResult.cc
|
||||
src/model/CreateCdnCertificateSigningRequestRequest.cc
|
||||
src/model/CreateCdnCertificateSigningRequestResult.cc
|
||||
src/model/CreateIllegalUrlExportTaskRequest.cc
|
||||
src/model/CreateIllegalUrlExportTaskResult.cc
|
||||
src/model/CreateLiveStreamRecordIndexFilesRequest.cc
|
||||
src/model/CreateLiveStreamRecordIndexFilesResult.cc
|
||||
src/model/CreateRealTimeLogDeliveryRequest.cc
|
||||
@@ -596,6 +602,8 @@ set(cdn_src
|
||||
src/model/DescribeDomainsUsageByDayResult.cc
|
||||
src/model/DescribeFCTriggerRequest.cc
|
||||
src/model/DescribeFCTriggerResult.cc
|
||||
src/model/DescribeIllegalUrlExportTaskRequest.cc
|
||||
src/model/DescribeIllegalUrlExportTaskResult.cc
|
||||
src/model/DescribeIpInfoRequest.cc
|
||||
src/model/DescribeIpInfoResult.cc
|
||||
src/model/DescribeL2VipsByDomainRequest.cc
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
#include "model/BatchUpdateCdnDomainResult.h"
|
||||
#include "model/CreateCdnCertificateSigningRequestRequest.h"
|
||||
#include "model/CreateCdnCertificateSigningRequestResult.h"
|
||||
#include "model/CreateIllegalUrlExportTaskRequest.h"
|
||||
#include "model/CreateIllegalUrlExportTaskResult.h"
|
||||
#include "model/CreateLiveStreamRecordIndexFilesRequest.h"
|
||||
#include "model/CreateLiveStreamRecordIndexFilesResult.h"
|
||||
#include "model/CreateRealTimeLogDeliveryRequest.h"
|
||||
@@ -212,6 +214,8 @@
|
||||
#include "model/DescribeDomainsUsageByDayResult.h"
|
||||
#include "model/DescribeFCTriggerRequest.h"
|
||||
#include "model/DescribeFCTriggerResult.h"
|
||||
#include "model/DescribeIllegalUrlExportTaskRequest.h"
|
||||
#include "model/DescribeIllegalUrlExportTaskResult.h"
|
||||
#include "model/DescribeIpInfoRequest.h"
|
||||
#include "model/DescribeIpInfoResult.h"
|
||||
#include "model/DescribeL2VipsByDomainRequest.h"
|
||||
@@ -455,6 +459,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateCdnCertificateSigningRequestResult> CreateCdnCertificateSigningRequestOutcome;
|
||||
typedef std::future<CreateCdnCertificateSigningRequestOutcome> CreateCdnCertificateSigningRequestOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::CreateCdnCertificateSigningRequestRequest&, const CreateCdnCertificateSigningRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCdnCertificateSigningRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateIllegalUrlExportTaskResult> CreateIllegalUrlExportTaskOutcome;
|
||||
typedef std::future<CreateIllegalUrlExportTaskOutcome> CreateIllegalUrlExportTaskOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::CreateIllegalUrlExportTaskRequest&, const CreateIllegalUrlExportTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateIllegalUrlExportTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateLiveStreamRecordIndexFilesResult> CreateLiveStreamRecordIndexFilesOutcome;
|
||||
typedef std::future<CreateLiveStreamRecordIndexFilesOutcome> CreateLiveStreamRecordIndexFilesOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::CreateLiveStreamRecordIndexFilesRequest&, const CreateLiveStreamRecordIndexFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLiveStreamRecordIndexFilesAsyncHandler;
|
||||
@@ -698,6 +705,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeFCTriggerResult> DescribeFCTriggerOutcome;
|
||||
typedef std::future<DescribeFCTriggerOutcome> DescribeFCTriggerOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeFCTriggerRequest&, const DescribeFCTriggerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFCTriggerAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIllegalUrlExportTaskResult> DescribeIllegalUrlExportTaskOutcome;
|
||||
typedef std::future<DescribeIllegalUrlExportTaskOutcome> DescribeIllegalUrlExportTaskOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeIllegalUrlExportTaskRequest&, const DescribeIllegalUrlExportTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIllegalUrlExportTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIpInfoResult> DescribeIpInfoOutcome;
|
||||
typedef std::future<DescribeIpInfoOutcome> DescribeIpInfoOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeIpInfoRequest&, const DescribeIpInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpInfoAsyncHandler;
|
||||
@@ -1033,6 +1043,9 @@ namespace AlibabaCloud
|
||||
CreateCdnCertificateSigningRequestOutcome createCdnCertificateSigningRequest(const Model::CreateCdnCertificateSigningRequestRequest &request)const;
|
||||
void createCdnCertificateSigningRequestAsync(const Model::CreateCdnCertificateSigningRequestRequest& request, const CreateCdnCertificateSigningRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCdnCertificateSigningRequestOutcomeCallable createCdnCertificateSigningRequestCallable(const Model::CreateCdnCertificateSigningRequestRequest& request) const;
|
||||
CreateIllegalUrlExportTaskOutcome createIllegalUrlExportTask(const Model::CreateIllegalUrlExportTaskRequest &request)const;
|
||||
void createIllegalUrlExportTaskAsync(const Model::CreateIllegalUrlExportTaskRequest& request, const CreateIllegalUrlExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateIllegalUrlExportTaskOutcomeCallable createIllegalUrlExportTaskCallable(const Model::CreateIllegalUrlExportTaskRequest& request) const;
|
||||
CreateLiveStreamRecordIndexFilesOutcome createLiveStreamRecordIndexFiles(const Model::CreateLiveStreamRecordIndexFilesRequest &request)const;
|
||||
void createLiveStreamRecordIndexFilesAsync(const Model::CreateLiveStreamRecordIndexFilesRequest& request, const CreateLiveStreamRecordIndexFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateLiveStreamRecordIndexFilesOutcomeCallable createLiveStreamRecordIndexFilesCallable(const Model::CreateLiveStreamRecordIndexFilesRequest& request) const;
|
||||
@@ -1276,6 +1289,9 @@ namespace AlibabaCloud
|
||||
DescribeFCTriggerOutcome describeFCTrigger(const Model::DescribeFCTriggerRequest &request)const;
|
||||
void describeFCTriggerAsync(const Model::DescribeFCTriggerRequest& request, const DescribeFCTriggerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFCTriggerOutcomeCallable describeFCTriggerCallable(const Model::DescribeFCTriggerRequest& request) const;
|
||||
DescribeIllegalUrlExportTaskOutcome describeIllegalUrlExportTask(const Model::DescribeIllegalUrlExportTaskRequest &request)const;
|
||||
void describeIllegalUrlExportTaskAsync(const Model::DescribeIllegalUrlExportTaskRequest& request, const DescribeIllegalUrlExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIllegalUrlExportTaskOutcomeCallable describeIllegalUrlExportTaskCallable(const Model::DescribeIllegalUrlExportTaskRequest& request) const;
|
||||
DescribeIpInfoOutcome describeIpInfo(const Model::DescribeIpInfoRequest &request)const;
|
||||
void describeIpInfoAsync(const Model::DescribeIpInfoRequest& request, const DescribeIpInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIpInfoOutcomeCallable describeIpInfoCallable(const Model::DescribeIpInfoRequest& request) const;
|
||||
|
||||
@@ -39,19 +39,19 @@ namespace AlibabaCloud
|
||||
void setFunctions(const std::string& functions);
|
||||
std::string getDomainNames()const;
|
||||
void setDomainNames(const std::string& domainNames);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
|
||||
private:
|
||||
std::string functions_;
|
||||
std::string domainNames_;
|
||||
std::string securityToken_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_CREATEILLEGALURLEXPORTTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_CREATEILLEGALURLEXPORTTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT CreateIllegalUrlExportTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateIllegalUrlExportTaskRequest();
|
||||
~CreateIllegalUrlExportTaskRequest();
|
||||
|
||||
std::string getTaskName()const;
|
||||
void setTaskName(const std::string& taskName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTimePoint()const;
|
||||
void setTimePoint(const std::string& timePoint);
|
||||
|
||||
private:
|
||||
std::string taskName_;
|
||||
long ownerId_;
|
||||
std::string timePoint_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_CREATEILLEGALURLEXPORTTASKREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_CDN_MODEL_CREATEILLEGALURLEXPORTTASKRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_CREATEILLEGALURLEXPORTTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT CreateIllegalUrlExportTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateIllegalUrlExportTaskResult();
|
||||
explicit CreateIllegalUrlExportTaskResult(const std::string &payload);
|
||||
~CreateIllegalUrlExportTaskResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_CREATEILLEGALURLEXPORTTASKRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_CDN_MODEL_DESCRIBEILLEGALURLEXPORTTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEILLEGALURLEXPORTTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeIllegalUrlExportTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeIllegalUrlExportTaskRequest();
|
||||
~DescribeIllegalUrlExportTaskRequest();
|
||||
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string taskId_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEILLEGALURLEXPORTTASKREQUEST_H_
|
||||
@@ -14,44 +14,40 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEREDISLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEREDISLOGCONFIGRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEILLEGALURLEXPORTTASKRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEILLEGALURLEXPORTTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeRedisLogConfigResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeIllegalUrlExportTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeRedisLogConfigResult();
|
||||
explicit DescribeRedisLogConfigResult(const std::string &payload);
|
||||
~DescribeRedisLogConfigResult();
|
||||
std::string getUserLogstoreName()const;
|
||||
int getUserProjectName()const;
|
||||
int getIsUserProjectLogstoreExist()const;
|
||||
int getIsEtlMetaExist()const;
|
||||
DescribeIllegalUrlExportTaskResult();
|
||||
explicit DescribeIllegalUrlExportTaskResult(const std::string &payload);
|
||||
~DescribeIllegalUrlExportTaskResult();
|
||||
std::string getStatus()const;
|
||||
std::string getDownloadUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string userLogstoreName_;
|
||||
int userProjectName_;
|
||||
int isUserProjectLogstoreExist_;
|
||||
int isEtlMetaExist_;
|
||||
std::string status_;
|
||||
std::string downloadUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEREDISLOGCONFIGRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEILLEGALURLEXPORTTASKRESULT_H_
|
||||
@@ -37,18 +37,18 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getObjectPath()const;
|
||||
void setObjectPath(const std::string& objectPath);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getObjectType()const;
|
||||
void setObjectType(const std::string& objectType);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string objectPath_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
std::string objectType_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,15 +35,15 @@ namespace AlibabaCloud
|
||||
SetCdnDomainCSRCertificateRequest();
|
||||
~SetCdnDomainCSRCertificateRequest();
|
||||
|
||||
std::string getCertificate()const;
|
||||
void setCertificate(const std::string& certificate);
|
||||
std::string getServerCertificate()const;
|
||||
void setServerCertificate(const std::string& serverCertificate);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string certificate_;
|
||||
std::string serverCertificate_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
|
||||
|
||||
@@ -555,6 +555,42 @@ CdnClient::CreateCdnCertificateSigningRequestOutcomeCallable CdnClient::createCd
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::CreateIllegalUrlExportTaskOutcome CdnClient::createIllegalUrlExportTask(const CreateIllegalUrlExportTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateIllegalUrlExportTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateIllegalUrlExportTaskOutcome(CreateIllegalUrlExportTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateIllegalUrlExportTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::createIllegalUrlExportTaskAsync(const CreateIllegalUrlExportTaskRequest& request, const CreateIllegalUrlExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createIllegalUrlExportTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::CreateIllegalUrlExportTaskOutcomeCallable CdnClient::createIllegalUrlExportTaskCallable(const CreateIllegalUrlExportTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateIllegalUrlExportTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createIllegalUrlExportTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::CreateLiveStreamRecordIndexFilesOutcome CdnClient::createLiveStreamRecordIndexFiles(const CreateLiveStreamRecordIndexFilesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3471,6 +3507,42 @@ CdnClient::DescribeFCTriggerOutcomeCallable CdnClient::describeFCTriggerCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeIllegalUrlExportTaskOutcome CdnClient::describeIllegalUrlExportTask(const DescribeIllegalUrlExportTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIllegalUrlExportTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIllegalUrlExportTaskOutcome(DescribeIllegalUrlExportTaskResult(outcome.result()));
|
||||
else
|
||||
return DescribeIllegalUrlExportTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeIllegalUrlExportTaskAsync(const DescribeIllegalUrlExportTaskRequest& request, const DescribeIllegalUrlExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIllegalUrlExportTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeIllegalUrlExportTaskOutcomeCallable CdnClient::describeIllegalUrlExportTaskCallable(const DescribeIllegalUrlExportTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIllegalUrlExportTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIllegalUrlExportTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeIpInfoOutcome CdnClient::describeIpInfo(const DescribeIpInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -49,6 +49,17 @@ void BatchSetCdnDomainConfigRequest::setDomainNames(const std::string& domainNam
|
||||
setParameter("DomainNames", domainNames);
|
||||
}
|
||||
|
||||
std::string BatchSetCdnDomainConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void BatchSetCdnDomainConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string BatchSetCdnDomainConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -71,14 +82,3 @@ void BatchSetCdnDomainConfigRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BatchSetCdnDomainConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void BatchSetCdnDomainConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
|
||||
62
cdn/src/model/CreateIllegalUrlExportTaskRequest.cc
Normal file
62
cdn/src/model/CreateIllegalUrlExportTaskRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/cdn/model/CreateIllegalUrlExportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::CreateIllegalUrlExportTaskRequest;
|
||||
|
||||
CreateIllegalUrlExportTaskRequest::CreateIllegalUrlExportTaskRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "CreateIllegalUrlExportTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIllegalUrlExportTaskRequest::~CreateIllegalUrlExportTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIllegalUrlExportTaskRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateIllegalUrlExportTaskRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
long CreateIllegalUrlExportTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateIllegalUrlExportTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateIllegalUrlExportTaskRequest::getTimePoint()const
|
||||
{
|
||||
return timePoint_;
|
||||
}
|
||||
|
||||
void CreateIllegalUrlExportTaskRequest::setTimePoint(const std::string& timePoint)
|
||||
{
|
||||
timePoint_ = timePoint;
|
||||
setParameter("TimePoint", timePoint);
|
||||
}
|
||||
|
||||
51
cdn/src/model/CreateIllegalUrlExportTaskResult.cc
Normal file
51
cdn/src/model/CreateIllegalUrlExportTaskResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cdn/model/CreateIllegalUrlExportTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
CreateIllegalUrlExportTaskResult::CreateIllegalUrlExportTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIllegalUrlExportTaskResult::CreateIllegalUrlExportTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIllegalUrlExportTaskResult::~CreateIllegalUrlExportTaskResult()
|
||||
{}
|
||||
|
||||
void CreateIllegalUrlExportTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIllegalUrlExportTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
51
cdn/src/model/DescribeIllegalUrlExportTaskRequest.cc
Normal file
51
cdn/src/model/DescribeIllegalUrlExportTaskRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeIllegalUrlExportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeIllegalUrlExportTaskRequest;
|
||||
|
||||
DescribeIllegalUrlExportTaskRequest::DescribeIllegalUrlExportTaskRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeIllegalUrlExportTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeIllegalUrlExportTaskRequest::~DescribeIllegalUrlExportTaskRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIllegalUrlExportTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeIllegalUrlExportTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
long DescribeIllegalUrlExportTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIllegalUrlExportTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
58
cdn/src/model/DescribeIllegalUrlExportTaskResult.cc
Normal file
58
cdn/src/model/DescribeIllegalUrlExportTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeIllegalUrlExportTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeIllegalUrlExportTaskResult::DescribeIllegalUrlExportTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIllegalUrlExportTaskResult::DescribeIllegalUrlExportTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIllegalUrlExportTaskResult::~DescribeIllegalUrlExportTaskResult()
|
||||
{}
|
||||
|
||||
void DescribeIllegalUrlExportTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["DownloadUrl"].isNull())
|
||||
downloadUrl_ = value["DownloadUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIllegalUrlExportTaskResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeIllegalUrlExportTaskResult::getDownloadUrl()const
|
||||
{
|
||||
return downloadUrl_;
|
||||
}
|
||||
|
||||
@@ -38,17 +38,6 @@ void RefreshObjectCachesRequest::setObjectPath(const std::string& objectPath)
|
||||
setParameter("ObjectPath", objectPath);
|
||||
}
|
||||
|
||||
long RefreshObjectCachesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RefreshObjectCachesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string RefreshObjectCachesRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
@@ -71,3 +60,14 @@ void RefreshObjectCachesRequest::setObjectType(const std::string& objectType)
|
||||
setParameter("ObjectType", objectType);
|
||||
}
|
||||
|
||||
long RefreshObjectCachesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void RefreshObjectCachesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -27,15 +27,15 @@ SetCdnDomainCSRCertificateRequest::SetCdnDomainCSRCertificateRequest() :
|
||||
SetCdnDomainCSRCertificateRequest::~SetCdnDomainCSRCertificateRequest()
|
||||
{}
|
||||
|
||||
std::string SetCdnDomainCSRCertificateRequest::getCertificate()const
|
||||
std::string SetCdnDomainCSRCertificateRequest::getServerCertificate()const
|
||||
{
|
||||
return certificate_;
|
||||
return serverCertificate_;
|
||||
}
|
||||
|
||||
void SetCdnDomainCSRCertificateRequest::setCertificate(const std::string& certificate)
|
||||
void SetCdnDomainCSRCertificateRequest::setServerCertificate(const std::string& serverCertificate)
|
||||
{
|
||||
certificate_ = certificate;
|
||||
setParameter("Certificate", certificate);
|
||||
serverCertificate_ = serverCertificate;
|
||||
setParameter("ServerCertificate", serverCertificate);
|
||||
}
|
||||
|
||||
std::string SetCdnDomainCSRCertificateRequest::getDomainName()const
|
||||
|
||||
@@ -35,6 +35,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeRPSDKRequest.h
|
||||
@@ -57,10 +59,16 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/InitDeviceRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitDeviceResult.h
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
|
||||
include/alibabacloud/cloudauth/model/VerifyDeviceResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h
|
||||
include/alibabacloud/cloudauth/model/VerifyMaterialResult.h )
|
||||
|
||||
@@ -80,6 +88,8 @@ set(cloudauth_src
|
||||
src/model/DescribeDeviceInfoResult.cc
|
||||
src/model/DescribeFaceUsageRequest.cc
|
||||
src/model/DescribeFaceUsageResult.cc
|
||||
src/model/DescribeFaceVerifyRequest.cc
|
||||
src/model/DescribeFaceVerifyResult.cc
|
||||
src/model/DescribeOssUploadTokenRequest.cc
|
||||
src/model/DescribeOssUploadTokenResult.cc
|
||||
src/model/DescribeRPSDKRequest.cc
|
||||
@@ -102,10 +112,16 @@ set(cloudauth_src
|
||||
src/model/DescribeVerifyUsageResult.cc
|
||||
src/model/DetectFaceAttributesRequest.cc
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/InitDeviceRequest.cc
|
||||
src/model/InitDeviceResult.cc
|
||||
src/model/InitFaceVerifyRequest.cc
|
||||
src/model/InitFaceVerifyResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
src/model/ModifyDeviceInfoResult.cc
|
||||
src/model/UpdateVerifySettingRequest.cc
|
||||
src/model/UpdateVerifySettingResult.cc
|
||||
src/model/VerifyDeviceRequest.cc
|
||||
src/model/VerifyDeviceResult.cc
|
||||
src/model/VerifyMaterialRequest.cc
|
||||
src/model/VerifyMaterialResult.cc )
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "model/DescribeDeviceInfoResult.h"
|
||||
#include "model/DescribeFaceUsageRequest.h"
|
||||
#include "model/DescribeFaceUsageResult.h"
|
||||
#include "model/DescribeFaceVerifyRequest.h"
|
||||
#include "model/DescribeFaceVerifyResult.h"
|
||||
#include "model/DescribeOssUploadTokenRequest.h"
|
||||
#include "model/DescribeOssUploadTokenResult.h"
|
||||
#include "model/DescribeRPSDKRequest.h"
|
||||
@@ -58,10 +60,16 @@
|
||||
#include "model/DescribeVerifyUsageResult.h"
|
||||
#include "model/DetectFaceAttributesRequest.h"
|
||||
#include "model/DetectFaceAttributesResult.h"
|
||||
#include "model/InitDeviceRequest.h"
|
||||
#include "model/InitDeviceResult.h"
|
||||
#include "model/InitFaceVerifyRequest.h"
|
||||
#include "model/InitFaceVerifyResult.h"
|
||||
#include "model/ModifyDeviceInfoRequest.h"
|
||||
#include "model/ModifyDeviceInfoResult.h"
|
||||
#include "model/UpdateVerifySettingRequest.h"
|
||||
#include "model/UpdateVerifySettingResult.h"
|
||||
#include "model/VerifyDeviceRequest.h"
|
||||
#include "model/VerifyDeviceResult.h"
|
||||
#include "model/VerifyMaterialRequest.h"
|
||||
#include "model/VerifyMaterialResult.h"
|
||||
|
||||
@@ -94,6 +102,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeFaceUsageResult> DescribeFaceUsageOutcome;
|
||||
typedef std::future<DescribeFaceUsageOutcome> DescribeFaceUsageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceUsageRequest&, const DescribeFaceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceUsageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFaceVerifyResult> DescribeFaceVerifyOutcome;
|
||||
typedef std::future<DescribeFaceVerifyOutcome> DescribeFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceVerifyRequest&, const DescribeFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeOssUploadTokenResult> DescribeOssUploadTokenOutcome;
|
||||
typedef std::future<DescribeOssUploadTokenOutcome> DescribeOssUploadTokenOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeOssUploadTokenRequest&, const DescribeOssUploadTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOssUploadTokenAsyncHandler;
|
||||
@@ -127,12 +138,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitDeviceResult> InitDeviceOutcome;
|
||||
typedef std::future<InitDeviceOutcome> InitDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitDeviceRequest&, const InitDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitFaceVerifyResult> InitFaceVerifyOutcome;
|
||||
typedef std::future<InitFaceVerifyOutcome> InitFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitFaceVerifyRequest&, const InitFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
|
||||
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyDeviceResult> VerifyDeviceOutcome;
|
||||
typedef std::future<VerifyDeviceOutcome> VerifyDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::VerifyDeviceRequest&, const VerifyDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyMaterialResult> VerifyMaterialOutcome;
|
||||
typedef std::future<VerifyMaterialOutcome> VerifyMaterialOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::VerifyMaterialRequest&, const VerifyMaterialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyMaterialAsyncHandler;
|
||||
@@ -162,6 +182,9 @@ namespace AlibabaCloud
|
||||
DescribeFaceUsageOutcome describeFaceUsage(const Model::DescribeFaceUsageRequest &request)const;
|
||||
void describeFaceUsageAsync(const Model::DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceUsageOutcomeCallable describeFaceUsageCallable(const Model::DescribeFaceUsageRequest& request) const;
|
||||
DescribeFaceVerifyOutcome describeFaceVerify(const Model::DescribeFaceVerifyRequest &request)const;
|
||||
void describeFaceVerifyAsync(const Model::DescribeFaceVerifyRequest& request, const DescribeFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFaceVerifyOutcomeCallable describeFaceVerifyCallable(const Model::DescribeFaceVerifyRequest& request) const;
|
||||
DescribeOssUploadTokenOutcome describeOssUploadToken(const Model::DescribeOssUploadTokenRequest &request)const;
|
||||
void describeOssUploadTokenAsync(const Model::DescribeOssUploadTokenRequest& request, const DescribeOssUploadTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOssUploadTokenOutcomeCallable describeOssUploadTokenCallable(const Model::DescribeOssUploadTokenRequest& request) const;
|
||||
@@ -195,12 +218,21 @@ namespace AlibabaCloud
|
||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||
InitDeviceOutcome initDevice(const Model::InitDeviceRequest &request)const;
|
||||
void initDeviceAsync(const Model::InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitDeviceOutcomeCallable initDeviceCallable(const Model::InitDeviceRequest& request) const;
|
||||
InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const;
|
||||
void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
|
||||
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
|
||||
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
|
||||
VerifyDeviceOutcome verifyDevice(const Model::VerifyDeviceRequest &request)const;
|
||||
void verifyDeviceAsync(const Model::VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyDeviceOutcomeCallable verifyDeviceCallable(const Model::VerifyDeviceRequest& request) const;
|
||||
VerifyMaterialOutcome verifyMaterial(const Model::VerifyMaterialRequest &request)const;
|
||||
void verifyMaterialAsync(const Model::VerifyMaterialRequest& request, const VerifyMaterialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyMaterialOutcomeCallable verifyMaterialCallable(const Model::VerifyMaterialRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeFaceVerifyRequest();
|
||||
~DescribeFaceVerifyRequest();
|
||||
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
|
||||
private:
|
||||
long sceneId_;
|
||||
std::string certifyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
std::string identityInfo;
|
||||
std::string materialInfo;
|
||||
};
|
||||
|
||||
|
||||
DescribeFaceVerifyResult();
|
||||
explicit DescribeFaceVerifyResult(const std::string &payload);
|
||||
~DescribeFaceVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InitDeviceRequest();
|
||||
~InitDeviceRequest();
|
||||
|
||||
std::string getChannel()const;
|
||||
void setChannel(const std::string& channel);
|
||||
std::string getBizData()const;
|
||||
void setBizData(const std::string& bizData);
|
||||
std::string getMerchant()const;
|
||||
void setMerchant(const std::string& merchant);
|
||||
std::string getAppVersion()const;
|
||||
void setAppVersion(const std::string& appVersion);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getProduceNode()const;
|
||||
void setProduceNode(const std::string& produceNode);
|
||||
std::string getProductName()const;
|
||||
void setProductName(const std::string& productName);
|
||||
std::string getCertifyPrincipal()const;
|
||||
void setCertifyPrincipal(const std::string& certifyPrincipal);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
|
||||
private:
|
||||
std::string channel_;
|
||||
std::string bizData_;
|
||||
std::string merchant_;
|
||||
std::string appVersion_;
|
||||
std::string certifyId_;
|
||||
std::string outerOrderNo_;
|
||||
std::string produceNode_;
|
||||
std::string productName_;
|
||||
std::string certifyPrincipal_;
|
||||
std::string metaInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string retMessageSub;
|
||||
std::string certifyId;
|
||||
std::string message;
|
||||
std::string extParams;
|
||||
std::string accessKeySecret;
|
||||
std::string ossEndPoint;
|
||||
std::string securityToken;
|
||||
std::string bucketName;
|
||||
std::string retCode;
|
||||
std::string fileNamePrefix;
|
||||
std::string accessKeyId;
|
||||
std::string retCodeSub;
|
||||
std::string protocol;
|
||||
};
|
||||
|
||||
|
||||
InitDeviceResult();
|
||||
explicit InitDeviceResult(const std::string &payload);
|
||||
~InitDeviceResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitFaceVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InitFaceVerifyRequest();
|
||||
~InitFaceVerifyRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getFaceContrastPicture()const;
|
||||
void setFaceContrastPicture(const std::string& faceContrastPicture);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertType()const;
|
||||
void setCertType(const std::string& certType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getReturnUrl()const;
|
||||
void setReturnUrl(const std::string& returnUrl);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string faceContrastPicture_;
|
||||
std::string certName_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
std::string returnUrl_;
|
||||
std::string metaInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_INITFACEVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitFaceVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string certifyId;
|
||||
};
|
||||
|
||||
|
||||
InitFaceVerifyResult();
|
||||
explicit InitFaceVerifyResult(const std::string &payload);
|
||||
~InitFaceVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VerifyDeviceRequest();
|
||||
~VerifyDeviceRequest();
|
||||
|
||||
std::string getCertifyData()const;
|
||||
void setCertifyData(const std::string& certifyData);
|
||||
std::string getAppVersion()const;
|
||||
void setAppVersion(const std::string& appVersion);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
|
||||
private:
|
||||
std::string certifyData_;
|
||||
std::string appVersion_;
|
||||
std::string certifyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_VERIFYDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string validationRetCode;
|
||||
std::string productRetCode;
|
||||
std::string retMessageSub;
|
||||
std::string extParams;
|
||||
std::string retCodeSub;
|
||||
std::string hasNext;
|
||||
};
|
||||
|
||||
|
||||
VerifyDeviceResult();
|
||||
explicit VerifyDeviceResult(const std::string &payload);
|
||||
~VerifyDeviceResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICERESULT_H_
|
||||
@@ -31,21 +31,21 @@ CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientCon
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CloudauthClient::~CloudauthClient()
|
||||
@@ -303,6 +303,42 @@ CloudauthClient::DescribeFaceUsageOutcomeCallable CloudauthClient::describeFaceU
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceVerifyOutcome CloudauthClient::describeFaceVerify(const DescribeFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFaceVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFaceVerifyOutcome(DescribeFaceVerifyResult(outcome.result()));
|
||||
else
|
||||
return DescribeFaceVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeFaceVerifyAsync(const DescribeFaceVerifyRequest& request, const DescribeFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFaceVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeFaceVerifyOutcomeCallable CloudauthClient::describeFaceVerifyCallable(const DescribeFaceVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFaceVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFaceVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeOssUploadTokenOutcome CloudauthClient::describeOssUploadToken(const DescribeOssUploadTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +735,78 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::InitDeviceOutcome CloudauthClient::initDevice(const InitDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InitDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InitDeviceOutcome(InitDeviceResult(outcome.result()));
|
||||
else
|
||||
return InitDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::initDeviceAsync(const InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, initDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::InitDeviceOutcomeCallable CloudauthClient::initDeviceCallable(const InitDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InitDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->initDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::InitFaceVerifyOutcome CloudauthClient::initFaceVerify(const InitFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InitFaceVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InitFaceVerifyOutcome(InitFaceVerifyResult(outcome.result()));
|
||||
else
|
||||
return InitFaceVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::initFaceVerifyAsync(const InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, initFaceVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::InitFaceVerifyOutcomeCallable CloudauthClient::initFaceVerifyCallable(const InitFaceVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InitFaceVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->initFaceVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +879,42 @@ CloudauthClient::UpdateVerifySettingOutcomeCallable CloudauthClient::updateVerif
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyDeviceOutcome CloudauthClient::verifyDevice(const VerifyDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VerifyDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VerifyDeviceOutcome(VerifyDeviceResult(outcome.result()));
|
||||
else
|
||||
return VerifyDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::verifyDeviceAsync(const VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, verifyDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyDeviceOutcomeCallable CloudauthClient::verifyDeviceCallable(const VerifyDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VerifyDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->verifyDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyMaterialOutcome CloudauthClient::verifyMaterial(const VerifyMaterialRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CompareFacesRequest::getSourceImageType()const
|
||||
void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType)
|
||||
{
|
||||
sourceImageType_ = sourceImageType;
|
||||
setCoreParameter("SourceImageType", sourceImageType);
|
||||
setBodyParameter("SourceImageType", sourceImageType);
|
||||
}
|
||||
|
||||
long CompareFacesRequest::getResourceOwnerId()const
|
||||
@@ -46,7 +46,7 @@ long CompareFacesRequest::getResourceOwnerId()const
|
||||
void CompareFacesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageType()const
|
||||
@@ -57,7 +57,7 @@ std::string CompareFacesRequest::getTargetImageType()const
|
||||
void CompareFacesRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setCoreParameter("TargetImageType", targetImageType);
|
||||
setBodyParameter("TargetImageType", targetImageType);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageValue()const
|
||||
@@ -68,7 +68,7 @@ std::string CompareFacesRequest::getTargetImageValue()const
|
||||
void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValue)
|
||||
{
|
||||
targetImageValue_ = targetImageValue;
|
||||
setCoreParameter("TargetImageValue", targetImageValue);
|
||||
setBodyParameter("TargetImageValue", targetImageValue);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceIp()const
|
||||
@@ -79,7 +79,7 @@ std::string CompareFacesRequest::getSourceIp()const
|
||||
void CompareFacesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageValue()const
|
||||
@@ -90,6 +90,6 @@ std::string CompareFacesRequest::getSourceImageValue()const
|
||||
void CompareFacesRequest::setSourceImageValue(const std::string& sourceImageValue)
|
||||
{
|
||||
sourceImageValue_ = sourceImageValue;
|
||||
setCoreParameter("SourceImageValue", sourceImageValue);
|
||||
setBodyParameter("SourceImageValue", sourceImageValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateAuthKeyRequest::getUserDeviceId()const
|
||||
void CreateAuthKeyRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setCoreParameter("UserDeviceId", userDeviceId);
|
||||
setParameter("UserDeviceId", userDeviceId);
|
||||
}
|
||||
|
||||
bool CreateAuthKeyRequest::getTest()const
|
||||
@@ -46,7 +46,7 @@ bool CreateAuthKeyRequest::getTest()const
|
||||
void CreateAuthKeyRequest::setTest(bool test)
|
||||
{
|
||||
test_ = test;
|
||||
setCoreParameter("Test", test ? "true" : "false");
|
||||
setParameter("Test", test ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getBizType()const
|
||||
@@ -57,7 +57,7 @@ std::string CreateAuthKeyRequest::getBizType()const
|
||||
void CreateAuthKeyRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getSourceIp()const
|
||||
@@ -68,7 +68,7 @@ std::string CreateAuthKeyRequest::getSourceIp()const
|
||||
void CreateAuthKeyRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int CreateAuthKeyRequest::getAuthYears()const
|
||||
@@ -79,7 +79,7 @@ int CreateAuthKeyRequest::getAuthYears()const
|
||||
void CreateAuthKeyRequest::setAuthYears(int authYears)
|
||||
{
|
||||
authYears_ = authYears;
|
||||
setCoreParameter("AuthYears", std::to_string(authYears));
|
||||
setParameter("AuthYears", std::to_string(authYears));
|
||||
}
|
||||
|
||||
std::string CreateAuthKeyRequest::getLang()const
|
||||
@@ -90,6 +90,6 @@ std::string CreateAuthKeyRequest::getLang()const
|
||||
void CreateAuthKeyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateRPSDKRequest::getAppUrl()const
|
||||
void CreateRPSDKRequest::setAppUrl(const std::string& appUrl)
|
||||
{
|
||||
appUrl_ = appUrl;
|
||||
setCoreParameter("AppUrl", appUrl);
|
||||
setParameter("AppUrl", appUrl);
|
||||
}
|
||||
|
||||
std::string CreateRPSDKRequest::getPlatform()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateRPSDKRequest::getPlatform()const
|
||||
void CreateRPSDKRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setCoreParameter("Platform", platform);
|
||||
setParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string CreateRPSDKRequest::getSourceIp()const
|
||||
@@ -57,7 +57,7 @@ std::string CreateRPSDKRequest::getSourceIp()const
|
||||
void CreateRPSDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateRPSDKRequest::getLang()const
|
||||
@@ -68,6 +68,6 @@ std::string CreateRPSDKRequest::getLang()const
|
||||
void CreateRPSDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateVerifySDKRequest::getAppUrl()const
|
||||
void CreateVerifySDKRequest::setAppUrl(const std::string& appUrl)
|
||||
{
|
||||
appUrl_ = appUrl;
|
||||
setCoreParameter("AppUrl", appUrl);
|
||||
setParameter("AppUrl", appUrl);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getPlatform()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateVerifySDKRequest::getPlatform()const
|
||||
void CreateVerifySDKRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setCoreParameter("Platform", platform);
|
||||
setParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getSourceIp()const
|
||||
@@ -57,7 +57,7 @@ std::string CreateVerifySDKRequest::getSourceIp()const
|
||||
void CreateVerifySDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateVerifySDKRequest::getLang()const
|
||||
@@ -68,6 +68,6 @@ std::string CreateVerifySDKRequest::getLang()const
|
||||
void CreateVerifySDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ bool CreateVerifySettingRequest::getGuideStep()const
|
||||
void CreateVerifySettingRequest::setGuideStep(bool guideStep)
|
||||
{
|
||||
guideStep_ = guideStep;
|
||||
setCoreParameter("GuideStep", guideStep ? "true" : "false");
|
||||
setParameter("GuideStep", guideStep ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateVerifySettingRequest::getResultStep()const
|
||||
@@ -46,7 +46,7 @@ bool CreateVerifySettingRequest::getResultStep()const
|
||||
void CreateVerifySettingRequest::setResultStep(bool resultStep)
|
||||
{
|
||||
resultStep_ = resultStep;
|
||||
setCoreParameter("ResultStep", resultStep ? "true" : "false");
|
||||
setParameter("ResultStep", resultStep ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getSourceIp()const
|
||||
@@ -57,7 +57,7 @@ std::string CreateVerifySettingRequest::getSourceIp()const
|
||||
void CreateVerifySettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getSolution()const
|
||||
@@ -68,7 +68,7 @@ std::string CreateVerifySettingRequest::getSolution()const
|
||||
void CreateVerifySettingRequest::setSolution(const std::string& solution)
|
||||
{
|
||||
solution_ = solution;
|
||||
setCoreParameter("Solution", solution);
|
||||
setParameter("Solution", solution);
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getBizName()const
|
||||
@@ -79,7 +79,7 @@ std::string CreateVerifySettingRequest::getBizName()const
|
||||
void CreateVerifySettingRequest::setBizName(const std::string& bizName)
|
||||
{
|
||||
bizName_ = bizName;
|
||||
setCoreParameter("BizName", bizName);
|
||||
setParameter("BizName", bizName);
|
||||
}
|
||||
|
||||
std::string CreateVerifySettingRequest::getBizType()const
|
||||
@@ -90,7 +90,7 @@ std::string CreateVerifySettingRequest::getBizType()const
|
||||
void CreateVerifySettingRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
bool CreateVerifySettingRequest::getPrivacyStep()const
|
||||
@@ -101,6 +101,6 @@ bool CreateVerifySettingRequest::getPrivacyStep()const
|
||||
void CreateVerifySettingRequest::setPrivacyStep(bool privacyStep)
|
||||
{
|
||||
privacyStep_ = privacyStep;
|
||||
setCoreParameter("PrivacyStep", privacyStep ? "true" : "false");
|
||||
setParameter("PrivacyStep", privacyStep ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeDeviceInfoRequest::getUserDeviceId()const
|
||||
void DescribeDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setCoreParameter("UserDeviceId", userDeviceId);
|
||||
setParameter("UserDeviceId", userDeviceId);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getSourceIp()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeDeviceInfoRequest::getSourceIp()const
|
||||
void DescribeDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getPageSize()const
|
||||
@@ -57,7 +57,7 @@ int DescribeDeviceInfoRequest::getPageSize()const
|
||||
void DescribeDeviceInfoRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getLang()const
|
||||
@@ -68,7 +68,7 @@ std::string DescribeDeviceInfoRequest::getLang()const
|
||||
void DescribeDeviceInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getExpiredStartDay()const
|
||||
@@ -79,7 +79,7 @@ std::string DescribeDeviceInfoRequest::getExpiredStartDay()const
|
||||
void DescribeDeviceInfoRequest::setExpiredStartDay(const std::string& expiredStartDay)
|
||||
{
|
||||
expiredStartDay_ = expiredStartDay;
|
||||
setCoreParameter("ExpiredStartDay", expiredStartDay);
|
||||
setParameter("ExpiredStartDay", expiredStartDay);
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getTotalCount()const
|
||||
@@ -90,7 +90,7 @@ int DescribeDeviceInfoRequest::getTotalCount()const
|
||||
void DescribeDeviceInfoRequest::setTotalCount(int totalCount)
|
||||
{
|
||||
totalCount_ = totalCount;
|
||||
setCoreParameter("TotalCount", std::to_string(totalCount));
|
||||
setParameter("TotalCount", std::to_string(totalCount));
|
||||
}
|
||||
|
||||
int DescribeDeviceInfoRequest::getCurrentPage()const
|
||||
@@ -101,7 +101,7 @@ int DescribeDeviceInfoRequest::getCurrentPage()const
|
||||
void DescribeDeviceInfoRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getDeviceId()const
|
||||
@@ -112,7 +112,7 @@ std::string DescribeDeviceInfoRequest::getDeviceId()const
|
||||
void DescribeDeviceInfoRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getBizType()const
|
||||
@@ -123,7 +123,7 @@ std::string DescribeDeviceInfoRequest::getBizType()const
|
||||
void DescribeDeviceInfoRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeDeviceInfoRequest::getExpiredEndDay()const
|
||||
@@ -134,6 +134,6 @@ std::string DescribeDeviceInfoRequest::getExpiredEndDay()const
|
||||
void DescribeDeviceInfoRequest::setExpiredEndDay(const std::string& expiredEndDay)
|
||||
{
|
||||
expiredEndDay_ = expiredEndDay;
|
||||
setCoreParameter("ExpiredEndDay", expiredEndDay);
|
||||
setParameter("ExpiredEndDay", expiredEndDay);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeFaceUsageRequest::getStartDate()const
|
||||
void DescribeFaceUsageRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string DescribeFaceUsageRequest::getEndDate()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeFaceUsageRequest::getEndDate()const
|
||||
void DescribeFaceUsageRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribeFaceUsageRequest::getSourceIp()const
|
||||
@@ -57,6 +57,6 @@ std::string DescribeFaceUsageRequest::getSourceIp()const
|
||||
void DescribeFaceUsageRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
51
cloudauth/src/model/DescribeFaceVerifyRequest.cc
Normal file
51
cloudauth/src/model/DescribeFaceVerifyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cloudauth/model/DescribeFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeFaceVerifyRequest;
|
||||
|
||||
DescribeFaceVerifyRequest::DescribeFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFaceVerifyRequest::~DescribeFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
long DescribeFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string DescribeFaceVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
70
cloudauth/src/model/DescribeFaceVerifyResult.cc
Normal file
70
cloudauth/src/model/DescribeFaceVerifyResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/cloudauth/model/DescribeFaceVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeFaceVerifyResult::DescribeFaceVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFaceVerifyResult::DescribeFaceVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFaceVerifyResult::~DescribeFaceVerifyResult()
|
||||
{}
|
||||
|
||||
void DescribeFaceVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["IdentityInfo"].isNull())
|
||||
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeFaceVerifyResult::ResultObject DescribeFaceVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string DescribeFaceVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeFaceVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DescribeOssUploadTokenRequest::getSourceIp()const
|
||||
void DescribeOssUploadTokenRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeRPSDKRequest::getSourceIp()const
|
||||
void DescribeRPSDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeRPSDKRequest::getLang()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeRPSDKRequest::getLang()const
|
||||
void DescribeRPSDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeRPSDKRequest::getTaskId()const
|
||||
@@ -57,6 +57,6 @@ std::string DescribeRPSDKRequest::getTaskId()const
|
||||
void DescribeRPSDKRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DescribeUploadInfoRequest::getSourceIp()const
|
||||
void DescribeUploadInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DescribeUserStatusRequest::getSourceIp()const
|
||||
void DescribeUserStatusRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeVerifyRecordsRequest::getStatusList()const
|
||||
void DescribeVerifyRecordsRequest::setStatusList(const std::string& statusList)
|
||||
{
|
||||
statusList_ = statusList;
|
||||
setCoreParameter("StatusList", statusList);
|
||||
setParameter("StatusList", statusList);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyRecordsRequest::getStartDate()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeVerifyRecordsRequest::getStartDate()const
|
||||
void DescribeVerifyRecordsRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyRecordsRequest::getSourceIp()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeVerifyRecordsRequest::getSourceIp()const
|
||||
void DescribeVerifyRecordsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeVerifyRecordsRequest::getPageSize()const
|
||||
@@ -68,7 +68,7 @@ int DescribeVerifyRecordsRequest::getPageSize()const
|
||||
void DescribeVerifyRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeVerifyRecordsRequest::getTotalCount()const
|
||||
@@ -79,7 +79,7 @@ int DescribeVerifyRecordsRequest::getTotalCount()const
|
||||
void DescribeVerifyRecordsRequest::setTotalCount(int totalCount)
|
||||
{
|
||||
totalCount_ = totalCount;
|
||||
setCoreParameter("TotalCount", std::to_string(totalCount));
|
||||
setParameter("TotalCount", std::to_string(totalCount));
|
||||
}
|
||||
|
||||
int DescribeVerifyRecordsRequest::getCurrentPage()const
|
||||
@@ -90,7 +90,7 @@ int DescribeVerifyRecordsRequest::getCurrentPage()const
|
||||
void DescribeVerifyRecordsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeVerifyRecordsRequest::getQueryId()const
|
||||
@@ -101,7 +101,7 @@ std::string DescribeVerifyRecordsRequest::getQueryId()const
|
||||
void DescribeVerifyRecordsRequest::setQueryId(const std::string& queryId)
|
||||
{
|
||||
queryId_ = queryId;
|
||||
setCoreParameter("QueryId", queryId);
|
||||
setParameter("QueryId", queryId);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyRecordsRequest::getBizType()const
|
||||
@@ -112,7 +112,7 @@ std::string DescribeVerifyRecordsRequest::getBizType()const
|
||||
void DescribeVerifyRecordsRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyRecordsRequest::getIdCardNum()const
|
||||
@@ -123,7 +123,7 @@ std::string DescribeVerifyRecordsRequest::getIdCardNum()const
|
||||
void DescribeVerifyRecordsRequest::setIdCardNum(const std::string& idCardNum)
|
||||
{
|
||||
idCardNum_ = idCardNum;
|
||||
setCoreParameter("IdCardNum", idCardNum);
|
||||
setParameter("IdCardNum", idCardNum);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyRecordsRequest::getEndDate()const
|
||||
@@ -134,7 +134,7 @@ std::string DescribeVerifyRecordsRequest::getEndDate()const
|
||||
void DescribeVerifyRecordsRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyRecordsRequest::getBizId()const
|
||||
@@ -145,6 +145,6 @@ std::string DescribeVerifyRecordsRequest::getBizId()const
|
||||
void DescribeVerifyRecordsRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeVerifyResultRequest::getBizType()const
|
||||
void DescribeVerifyResultRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyResultRequest::getSourceIp()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeVerifyResultRequest::getSourceIp()const
|
||||
void DescribeVerifyResultRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyResultRequest::getBizId()const
|
||||
@@ -57,6 +57,6 @@ std::string DescribeVerifyResultRequest::getBizId()const
|
||||
void DescribeVerifyResultRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeVerifySDKRequest::getSourceIp()const
|
||||
void DescribeVerifySDKRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getLang()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeVerifySDKRequest::getLang()const
|
||||
void DescribeVerifySDKRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeVerifySDKRequest::getTaskId()const
|
||||
@@ -57,6 +57,6 @@ std::string DescribeVerifySDKRequest::getTaskId()const
|
||||
void DescribeVerifySDKRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DescribeVerifySettingRequest::getSourceIp()const
|
||||
void DescribeVerifySettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeVerifyTokenRequest::getFaceRetainedImageUrl()const
|
||||
void DescribeVerifyTokenRequest::setFaceRetainedImageUrl(const std::string& faceRetainedImageUrl)
|
||||
{
|
||||
faceRetainedImageUrl_ = faceRetainedImageUrl;
|
||||
setCoreParameter("FaceRetainedImageUrl", faceRetainedImageUrl);
|
||||
setParameter("FaceRetainedImageUrl", faceRetainedImageUrl);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getUserId()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeVerifyTokenRequest::getUserId()const
|
||||
void DescribeVerifyTokenRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getSourceIp()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeVerifyTokenRequest::getSourceIp()const
|
||||
void DescribeVerifyTokenRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getCallbackSeed()const
|
||||
@@ -68,7 +68,7 @@ std::string DescribeVerifyTokenRequest::getCallbackSeed()const
|
||||
void DescribeVerifyTokenRequest::setCallbackSeed(const std::string& callbackSeed)
|
||||
{
|
||||
callbackSeed_ = callbackSeed;
|
||||
setCoreParameter("CallbackSeed", callbackSeed);
|
||||
setParameter("CallbackSeed", callbackSeed);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getIdCardBackImageUrl()const
|
||||
@@ -79,7 +79,7 @@ std::string DescribeVerifyTokenRequest::getIdCardBackImageUrl()const
|
||||
void DescribeVerifyTokenRequest::setIdCardBackImageUrl(const std::string& idCardBackImageUrl)
|
||||
{
|
||||
idCardBackImageUrl_ = idCardBackImageUrl;
|
||||
setCoreParameter("IdCardBackImageUrl", idCardBackImageUrl);
|
||||
setParameter("IdCardBackImageUrl", idCardBackImageUrl);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getIdCardNumber()const
|
||||
@@ -90,7 +90,7 @@ std::string DescribeVerifyTokenRequest::getIdCardNumber()const
|
||||
void DescribeVerifyTokenRequest::setIdCardNumber(const std::string& idCardNumber)
|
||||
{
|
||||
idCardNumber_ = idCardNumber;
|
||||
setCoreParameter("IdCardNumber", idCardNumber);
|
||||
setParameter("IdCardNumber", idCardNumber);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getIdCardFrontImageUrl()const
|
||||
@@ -101,7 +101,7 @@ std::string DescribeVerifyTokenRequest::getIdCardFrontImageUrl()const
|
||||
void DescribeVerifyTokenRequest::setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl)
|
||||
{
|
||||
idCardFrontImageUrl_ = idCardFrontImageUrl;
|
||||
setCoreParameter("IdCardFrontImageUrl", idCardFrontImageUrl);
|
||||
setParameter("IdCardFrontImageUrl", idCardFrontImageUrl);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getBizType()const
|
||||
@@ -112,7 +112,7 @@ std::string DescribeVerifyTokenRequest::getBizType()const
|
||||
void DescribeVerifyTokenRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getPassedRedirectUrl()const
|
||||
@@ -123,7 +123,7 @@ std::string DescribeVerifyTokenRequest::getPassedRedirectUrl()const
|
||||
void DescribeVerifyTokenRequest::setPassedRedirectUrl(const std::string& passedRedirectUrl)
|
||||
{
|
||||
passedRedirectUrl_ = passedRedirectUrl;
|
||||
setCoreParameter("PassedRedirectUrl", passedRedirectUrl);
|
||||
setParameter("PassedRedirectUrl", passedRedirectUrl);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getBizId()const
|
||||
@@ -134,7 +134,7 @@ std::string DescribeVerifyTokenRequest::getBizId()const
|
||||
void DescribeVerifyTokenRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getName()const
|
||||
@@ -145,7 +145,7 @@ std::string DescribeVerifyTokenRequest::getName()const
|
||||
void DescribeVerifyTokenRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getCallbackUrl()const
|
||||
@@ -156,7 +156,7 @@ std::string DescribeVerifyTokenRequest::getCallbackUrl()const
|
||||
void DescribeVerifyTokenRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setCoreParameter("CallbackUrl", callbackUrl);
|
||||
setParameter("CallbackUrl", callbackUrl);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyTokenRequest::getFailedRedirectUrl()const
|
||||
@@ -167,6 +167,6 @@ std::string DescribeVerifyTokenRequest::getFailedRedirectUrl()const
|
||||
void DescribeVerifyTokenRequest::setFailedRedirectUrl(const std::string& failedRedirectUrl)
|
||||
{
|
||||
failedRedirectUrl_ = failedRedirectUrl;
|
||||
setCoreParameter("FailedRedirectUrl", failedRedirectUrl);
|
||||
setParameter("FailedRedirectUrl", failedRedirectUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeVerifyUsageRequest::getStartDate()const
|
||||
void DescribeVerifyUsageRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
setParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyUsageRequest::getBizType()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeVerifyUsageRequest::getBizType()const
|
||||
void DescribeVerifyUsageRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyUsageRequest::getEndDate()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeVerifyUsageRequest::getEndDate()const
|
||||
void DescribeVerifyUsageRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
setParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribeVerifyUsageRequest::getSourceIp()const
|
||||
@@ -68,6 +68,6 @@ std::string DescribeVerifyUsageRequest::getSourceIp()const
|
||||
void DescribeVerifyUsageRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ int DetectFaceAttributesRequest::getMaxNumPhotosPerCategory()const
|
||||
void DetectFaceAttributesRequest::setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory)
|
||||
{
|
||||
maxNumPhotosPerCategory_ = maxNumPhotosPerCategory;
|
||||
setCoreParameter("MaxNumPhotosPerCategory", std::to_string(maxNumPhotosPerCategory));
|
||||
setBodyParameter("MaxNumPhotosPerCategory", std::to_string(maxNumPhotosPerCategory));
|
||||
}
|
||||
|
||||
int DetectFaceAttributesRequest::getMaxFaceNum()const
|
||||
@@ -46,7 +46,7 @@ int DetectFaceAttributesRequest::getMaxFaceNum()const
|
||||
void DetectFaceAttributesRequest::setMaxFaceNum(int maxFaceNum)
|
||||
{
|
||||
maxFaceNum_ = maxFaceNum;
|
||||
setCoreParameter("MaxFaceNum", std::to_string(maxFaceNum));
|
||||
setBodyParameter("MaxFaceNum", std::to_string(maxFaceNum));
|
||||
}
|
||||
|
||||
long DetectFaceAttributesRequest::getResourceOwnerId()const
|
||||
@@ -57,7 +57,7 @@ long DetectFaceAttributesRequest::getResourceOwnerId()const
|
||||
void DetectFaceAttributesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getRetAttributes()const
|
||||
@@ -68,7 +68,7 @@ std::string DetectFaceAttributesRequest::getRetAttributes()const
|
||||
void DetectFaceAttributesRequest::setRetAttributes(const std::string& retAttributes)
|
||||
{
|
||||
retAttributes_ = retAttributes;
|
||||
setCoreParameter("RetAttributes", retAttributes);
|
||||
setBodyParameter("RetAttributes", retAttributes);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getClientTag()const
|
||||
@@ -79,7 +79,7 @@ std::string DetectFaceAttributesRequest::getClientTag()const
|
||||
void DetectFaceAttributesRequest::setClientTag(const std::string& clientTag)
|
||||
{
|
||||
clientTag_ = clientTag;
|
||||
setCoreParameter("ClientTag", clientTag);
|
||||
setBodyParameter("ClientTag", clientTag);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getSourceIp()const
|
||||
@@ -90,7 +90,7 @@ std::string DetectFaceAttributesRequest::getSourceIp()const
|
||||
void DetectFaceAttributesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getMaterialValue()const
|
||||
@@ -101,7 +101,7 @@ std::string DetectFaceAttributesRequest::getMaterialValue()const
|
||||
void DetectFaceAttributesRequest::setMaterialValue(const std::string& materialValue)
|
||||
{
|
||||
materialValue_ = materialValue;
|
||||
setCoreParameter("MaterialValue", materialValue);
|
||||
setBodyParameter("MaterialValue", materialValue);
|
||||
}
|
||||
|
||||
bool DetectFaceAttributesRequest::getDontSaveDB()const
|
||||
@@ -112,6 +112,6 @@ bool DetectFaceAttributesRequest::getDontSaveDB()const
|
||||
void DetectFaceAttributesRequest::setDontSaveDB(bool dontSaveDB)
|
||||
{
|
||||
dontSaveDB_ = dontSaveDB;
|
||||
setCoreParameter("DontSaveDB", dontSaveDB ? "true" : "false");
|
||||
setBodyParameter("DontSaveDB", dontSaveDB ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
139
cloudauth/src/model/InitDeviceRequest.cc
Normal file
139
cloudauth/src/model/InitDeviceRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/cloudauth/model/InitDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::InitDeviceRequest;
|
||||
|
||||
InitDeviceRequest::InitDeviceRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "InitDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitDeviceRequest::~InitDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string InitDeviceRequest::getChannel()const
|
||||
{
|
||||
return channel_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setChannel(const std::string& channel)
|
||||
{
|
||||
channel_ = channel;
|
||||
setParameter("Channel", channel);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getBizData()const
|
||||
{
|
||||
return bizData_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setBizData(const std::string& bizData)
|
||||
{
|
||||
bizData_ = bizData;
|
||||
setParameter("BizData", bizData);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getMerchant()const
|
||||
{
|
||||
return merchant_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setMerchant(const std::string& merchant)
|
||||
{
|
||||
merchant_ = merchant;
|
||||
setParameter("Merchant", merchant);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getAppVersion()const
|
||||
{
|
||||
return appVersion_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setAppVersion(const std::string& appVersion)
|
||||
{
|
||||
appVersion_ = appVersion;
|
||||
setParameter("AppVersion", appVersion);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getProduceNode()const
|
||||
{
|
||||
return produceNode_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setProduceNode(const std::string& produceNode)
|
||||
{
|
||||
produceNode_ = produceNode;
|
||||
setParameter("ProduceNode", produceNode);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getProductName()const
|
||||
{
|
||||
return productName_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setProductName(const std::string& productName)
|
||||
{
|
||||
productName_ = productName;
|
||||
setParameter("ProductName", productName);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getCertifyPrincipal()const
|
||||
{
|
||||
return certifyPrincipal_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setCertifyPrincipal(const std::string& certifyPrincipal)
|
||||
{
|
||||
certifyPrincipal_ = certifyPrincipal;
|
||||
setParameter("CertifyPrincipal", certifyPrincipal);
|
||||
}
|
||||
|
||||
std::string InitDeviceRequest::getMetaInfo()const
|
||||
{
|
||||
return metaInfo_;
|
||||
}
|
||||
|
||||
void InitDeviceRequest::setMetaInfo(const std::string& metaInfo)
|
||||
{
|
||||
metaInfo_ = metaInfo;
|
||||
setParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
90
cloudauth/src/model/InitDeviceResult.cc
Normal file
90
cloudauth/src/model/InitDeviceResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/cloudauth/model/InitDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
InitDeviceResult::InitDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InitDeviceResult::InitDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InitDeviceResult::~InitDeviceResult()
|
||||
{}
|
||||
|
||||
void InitDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!resultObjectNode["Protocol"].isNull())
|
||||
resultObject_.protocol = resultObjectNode["Protocol"].asString();
|
||||
if(!resultObjectNode["ExtParams"].isNull())
|
||||
resultObject_.extParams = resultObjectNode["ExtParams"].asString();
|
||||
if(!resultObjectNode["RetCode"].isNull())
|
||||
resultObject_.retCode = resultObjectNode["RetCode"].asString();
|
||||
if(!resultObjectNode["RetCodeSub"].isNull())
|
||||
resultObject_.retCodeSub = resultObjectNode["RetCodeSub"].asString();
|
||||
if(!resultObjectNode["RetMessageSub"].isNull())
|
||||
resultObject_.retMessageSub = resultObjectNode["RetMessageSub"].asString();
|
||||
if(!resultObjectNode["Message"].isNull())
|
||||
resultObject_.message = resultObjectNode["Message"].asString();
|
||||
if(!resultObjectNode["OssEndPoint"].isNull())
|
||||
resultObject_.ossEndPoint = resultObjectNode["OssEndPoint"].asString();
|
||||
if(!resultObjectNode["AccessKeyId"].isNull())
|
||||
resultObject_.accessKeyId = resultObjectNode["AccessKeyId"].asString();
|
||||
if(!resultObjectNode["AccessKeySecret"].isNull())
|
||||
resultObject_.accessKeySecret = resultObjectNode["AccessKeySecret"].asString();
|
||||
if(!resultObjectNode["SecurityToken"].isNull())
|
||||
resultObject_.securityToken = resultObjectNode["SecurityToken"].asString();
|
||||
if(!resultObjectNode["BucketName"].isNull())
|
||||
resultObject_.bucketName = resultObjectNode["BucketName"].asString();
|
||||
if(!resultObjectNode["FileNamePrefix"].isNull())
|
||||
resultObject_.fileNamePrefix = resultObjectNode["FileNamePrefix"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
InitDeviceResult::ResultObject InitDeviceResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string InitDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string InitDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
128
cloudauth/src/model/InitFaceVerifyRequest.cc
Normal file
128
cloudauth/src/model/InitFaceVerifyRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/cloudauth/model/InitFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::InitFaceVerifyRequest;
|
||||
|
||||
InitFaceVerifyRequest::InitFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "InitFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitFaceVerifyRequest::~InitFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string InitFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getFaceContrastPicture()const
|
||||
{
|
||||
return faceContrastPicture_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
|
||||
{
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setParameter("FaceContrastPicture", faceContrastPicture);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setParameter("CertType", certType);
|
||||
}
|
||||
|
||||
long InitFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getReturnUrl()const
|
||||
{
|
||||
return returnUrl_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setReturnUrl(const std::string& returnUrl)
|
||||
{
|
||||
returnUrl_ = returnUrl;
|
||||
setParameter("ReturnUrl", returnUrl);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getMetaInfo()const
|
||||
{
|
||||
return metaInfo_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setMetaInfo(const std::string& metaInfo)
|
||||
{
|
||||
metaInfo_ = metaInfo;
|
||||
setParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
66
cloudauth/src/model/InitFaceVerifyResult.cc
Normal file
66
cloudauth/src/model/InitFaceVerifyResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/cloudauth/model/InitFaceVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
InitFaceVerifyResult::InitFaceVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InitFaceVerifyResult::InitFaceVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InitFaceVerifyResult::~InitFaceVerifyResult()
|
||||
{}
|
||||
|
||||
void InitFaceVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
InitFaceVerifyResult::ResultObject InitFaceVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string ModifyDeviceInfoRequest::getUserDeviceId()const
|
||||
void ModifyDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId)
|
||||
{
|
||||
userDeviceId_ = userDeviceId;
|
||||
setCoreParameter("UserDeviceId", userDeviceId);
|
||||
setParameter("UserDeviceId", userDeviceId);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getDuration()const
|
||||
@@ -46,7 +46,7 @@ std::string ModifyDeviceInfoRequest::getDuration()const
|
||||
void ModifyDeviceInfoRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setCoreParameter("Duration", duration);
|
||||
setParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getExpiredDay()const
|
||||
@@ -57,7 +57,7 @@ std::string ModifyDeviceInfoRequest::getExpiredDay()const
|
||||
void ModifyDeviceInfoRequest::setExpiredDay(const std::string& expiredDay)
|
||||
{
|
||||
expiredDay_ = expiredDay;
|
||||
setCoreParameter("ExpiredDay", expiredDay);
|
||||
setParameter("ExpiredDay", expiredDay);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getSourceIp()const
|
||||
@@ -68,7 +68,7 @@ std::string ModifyDeviceInfoRequest::getSourceIp()const
|
||||
void ModifyDeviceInfoRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getLang()const
|
||||
@@ -79,7 +79,7 @@ std::string ModifyDeviceInfoRequest::getLang()const
|
||||
void ModifyDeviceInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getDeviceId()const
|
||||
@@ -90,7 +90,7 @@ std::string ModifyDeviceInfoRequest::getDeviceId()const
|
||||
void ModifyDeviceInfoRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setCoreParameter("DeviceId", deviceId);
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string ModifyDeviceInfoRequest::getBizType()const
|
||||
@@ -101,6 +101,6 @@ std::string ModifyDeviceInfoRequest::getBizType()const
|
||||
void ModifyDeviceInfoRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ bool UpdateVerifySettingRequest::getGuideStep()const
|
||||
void UpdateVerifySettingRequest::setGuideStep(bool guideStep)
|
||||
{
|
||||
guideStep_ = guideStep;
|
||||
setCoreParameter("GuideStep", guideStep ? "true" : "false");
|
||||
setParameter("GuideStep", guideStep ? "true" : "false");
|
||||
}
|
||||
|
||||
bool UpdateVerifySettingRequest::getResultStep()const
|
||||
@@ -46,7 +46,7 @@ bool UpdateVerifySettingRequest::getResultStep()const
|
||||
void UpdateVerifySettingRequest::setResultStep(bool resultStep)
|
||||
{
|
||||
resultStep_ = resultStep;
|
||||
setCoreParameter("ResultStep", resultStep ? "true" : "false");
|
||||
setParameter("ResultStep", resultStep ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateVerifySettingRequest::getSourceIp()const
|
||||
@@ -57,7 +57,7 @@ std::string UpdateVerifySettingRequest::getSourceIp()const
|
||||
void UpdateVerifySettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string UpdateVerifySettingRequest::getSolution()const
|
||||
@@ -68,7 +68,7 @@ std::string UpdateVerifySettingRequest::getSolution()const
|
||||
void UpdateVerifySettingRequest::setSolution(const std::string& solution)
|
||||
{
|
||||
solution_ = solution;
|
||||
setCoreParameter("Solution", solution);
|
||||
setParameter("Solution", solution);
|
||||
}
|
||||
|
||||
std::string UpdateVerifySettingRequest::getBizName()const
|
||||
@@ -79,7 +79,7 @@ std::string UpdateVerifySettingRequest::getBizName()const
|
||||
void UpdateVerifySettingRequest::setBizName(const std::string& bizName)
|
||||
{
|
||||
bizName_ = bizName;
|
||||
setCoreParameter("BizName", bizName);
|
||||
setParameter("BizName", bizName);
|
||||
}
|
||||
|
||||
std::string UpdateVerifySettingRequest::getBizType()const
|
||||
@@ -90,7 +90,7 @@ std::string UpdateVerifySettingRequest::getBizType()const
|
||||
void UpdateVerifySettingRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
bool UpdateVerifySettingRequest::getPrivacyStep()const
|
||||
@@ -101,6 +101,6 @@ bool UpdateVerifySettingRequest::getPrivacyStep()const
|
||||
void UpdateVerifySettingRequest::setPrivacyStep(bool privacyStep)
|
||||
{
|
||||
privacyStep_ = privacyStep;
|
||||
setCoreParameter("PrivacyStep", privacyStep ? "true" : "false");
|
||||
setParameter("PrivacyStep", privacyStep ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
62
cloudauth/src/model/VerifyDeviceRequest.cc
Normal file
62
cloudauth/src/model/VerifyDeviceRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/cloudauth/model/VerifyDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::VerifyDeviceRequest;
|
||||
|
||||
VerifyDeviceRequest::VerifyDeviceRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "VerifyDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VerifyDeviceRequest::~VerifyDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyDeviceRequest::getCertifyData()const
|
||||
{
|
||||
return certifyData_;
|
||||
}
|
||||
|
||||
void VerifyDeviceRequest::setCertifyData(const std::string& certifyData)
|
||||
{
|
||||
certifyData_ = certifyData;
|
||||
setParameter("CertifyData", certifyData);
|
||||
}
|
||||
|
||||
std::string VerifyDeviceRequest::getAppVersion()const
|
||||
{
|
||||
return appVersion_;
|
||||
}
|
||||
|
||||
void VerifyDeviceRequest::setAppVersion(const std::string& appVersion)
|
||||
{
|
||||
appVersion_ = appVersion;
|
||||
setParameter("AppVersion", appVersion);
|
||||
}
|
||||
|
||||
std::string VerifyDeviceRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void VerifyDeviceRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
76
cloudauth/src/model/VerifyDeviceResult.cc
Normal file
76
cloudauth/src/model/VerifyDeviceResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/cloudauth/model/VerifyDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
VerifyDeviceResult::VerifyDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VerifyDeviceResult::VerifyDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VerifyDeviceResult::~VerifyDeviceResult()
|
||||
{}
|
||||
|
||||
void VerifyDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["ValidationRetCode"].isNull())
|
||||
resultObject_.validationRetCode = resultObjectNode["ValidationRetCode"].asString();
|
||||
if(!resultObjectNode["ProductRetCode"].isNull())
|
||||
resultObject_.productRetCode = resultObjectNode["ProductRetCode"].asString();
|
||||
if(!resultObjectNode["RetCodeSub"].isNull())
|
||||
resultObject_.retCodeSub = resultObjectNode["RetCodeSub"].asString();
|
||||
if(!resultObjectNode["RetMessageSub"].isNull())
|
||||
resultObject_.retMessageSub = resultObjectNode["RetMessageSub"].asString();
|
||||
if(!resultObjectNode["HasNext"].isNull())
|
||||
resultObject_.hasNext = resultObjectNode["HasNext"].asString();
|
||||
if(!resultObjectNode["ExtParams"].isNull())
|
||||
resultObject_.extParams = resultObjectNode["ExtParams"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
VerifyDeviceResult::ResultObject VerifyDeviceResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string VerifyDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string VerifyDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string VerifyMaterialRequest::getFaceImageUrl()const
|
||||
void VerifyMaterialRequest::setFaceImageUrl(const std::string& faceImageUrl)
|
||||
{
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setCoreParameter("FaceImageUrl", faceImageUrl);
|
||||
setParameter("FaceImageUrl", faceImageUrl);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getUserId()const
|
||||
@@ -46,7 +46,7 @@ std::string VerifyMaterialRequest::getUserId()const
|
||||
void VerifyMaterialRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getSourceIp()const
|
||||
@@ -57,7 +57,7 @@ std::string VerifyMaterialRequest::getSourceIp()const
|
||||
void VerifyMaterialRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getIdCardBackImageUrl()const
|
||||
@@ -68,7 +68,7 @@ std::string VerifyMaterialRequest::getIdCardBackImageUrl()const
|
||||
void VerifyMaterialRequest::setIdCardBackImageUrl(const std::string& idCardBackImageUrl)
|
||||
{
|
||||
idCardBackImageUrl_ = idCardBackImageUrl;
|
||||
setCoreParameter("IdCardBackImageUrl", idCardBackImageUrl);
|
||||
setParameter("IdCardBackImageUrl", idCardBackImageUrl);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getIdCardNumber()const
|
||||
@@ -79,7 +79,7 @@ std::string VerifyMaterialRequest::getIdCardNumber()const
|
||||
void VerifyMaterialRequest::setIdCardNumber(const std::string& idCardNumber)
|
||||
{
|
||||
idCardNumber_ = idCardNumber;
|
||||
setCoreParameter("IdCardNumber", idCardNumber);
|
||||
setParameter("IdCardNumber", idCardNumber);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getIdCardFrontImageUrl()const
|
||||
@@ -90,7 +90,7 @@ std::string VerifyMaterialRequest::getIdCardFrontImageUrl()const
|
||||
void VerifyMaterialRequest::setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl)
|
||||
{
|
||||
idCardFrontImageUrl_ = idCardFrontImageUrl;
|
||||
setCoreParameter("IdCardFrontImageUrl", idCardFrontImageUrl);
|
||||
setParameter("IdCardFrontImageUrl", idCardFrontImageUrl);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getBizType()const
|
||||
@@ -101,7 +101,7 @@ std::string VerifyMaterialRequest::getBizType()const
|
||||
void VerifyMaterialRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setCoreParameter("BizType", bizType);
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getBizId()const
|
||||
@@ -112,7 +112,7 @@ std::string VerifyMaterialRequest::getBizId()const
|
||||
void VerifyMaterialRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setCoreParameter("BizId", bizId);
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string VerifyMaterialRequest::getName()const
|
||||
@@ -123,6 +123,6 @@ std::string VerifyMaterialRequest::getName()const
|
||||
void VerifyMaterialRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
11
cpp.php
Normal file
11
cpp.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace AlibabaCloud\cpp;
|
||||
|
||||
use AlibabaCloud\Client\Resolver\VersionResolver;
|
||||
|
||||
/**
|
||||
*/
|
||||
class cpp extends VersionResolver
|
||||
{
|
||||
}
|
||||
@@ -25,12 +25,18 @@ set(dbs_public_header_model
|
||||
include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/CreateBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/CreateBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/CreateFullBackupSetDownloadRequest.h
|
||||
include/alibabacloud/dbs/model/CreateFullBackupSetDownloadResult.h
|
||||
include/alibabacloud/dbs/model/CreateIncrementBackupSetDownloadRequest.h
|
||||
include/alibabacloud/dbs/model/CreateIncrementBackupSetDownloadResult.h
|
||||
include/alibabacloud/dbs/model/CreateRestoreTaskRequest.h
|
||||
include/alibabacloud/dbs/model/CreateRestoreTaskResult.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupGatewayListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupGatewayListResult.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupPlanListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeBackupSetDownloadTaskListResult.h
|
||||
include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeFullBackupListResult.h
|
||||
include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h
|
||||
@@ -49,6 +55,8 @@ set(dbs_public_header_model
|
||||
include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupPlanNameResult.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupSetDownloadRulesRequest.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupSetDownloadRulesResult.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupSourceEndpointRequest.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupSourceEndpointResult.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h
|
||||
@@ -59,6 +67,8 @@ set(dbs_public_header_model
|
||||
include/alibabacloud/dbs/model/StartBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/StartRestoreTaskRequest.h
|
||||
include/alibabacloud/dbs/model/StartRestoreTaskResult.h
|
||||
include/alibabacloud/dbs/model/StartTaskRequest.h
|
||||
include/alibabacloud/dbs/model/StartTaskResult.h
|
||||
include/alibabacloud/dbs/model/StopBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/StopBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/UpgradeBackupPlanRequest.h
|
||||
@@ -70,12 +80,18 @@ set(dbs_src
|
||||
src/model/ConfigureBackupPlanResult.cc
|
||||
src/model/CreateBackupPlanRequest.cc
|
||||
src/model/CreateBackupPlanResult.cc
|
||||
src/model/CreateFullBackupSetDownloadRequest.cc
|
||||
src/model/CreateFullBackupSetDownloadResult.cc
|
||||
src/model/CreateIncrementBackupSetDownloadRequest.cc
|
||||
src/model/CreateIncrementBackupSetDownloadResult.cc
|
||||
src/model/CreateRestoreTaskRequest.cc
|
||||
src/model/CreateRestoreTaskResult.cc
|
||||
src/model/DescribeBackupGatewayListRequest.cc
|
||||
src/model/DescribeBackupGatewayListResult.cc
|
||||
src/model/DescribeBackupPlanListRequest.cc
|
||||
src/model/DescribeBackupPlanListResult.cc
|
||||
src/model/DescribeBackupSetDownloadTaskListRequest.cc
|
||||
src/model/DescribeBackupSetDownloadTaskListResult.cc
|
||||
src/model/DescribeFullBackupListRequest.cc
|
||||
src/model/DescribeFullBackupListResult.cc
|
||||
src/model/DescribeIncrementBackupListRequest.cc
|
||||
@@ -94,6 +110,8 @@ set(dbs_src
|
||||
src/model/ModifyBackupObjectsResult.cc
|
||||
src/model/ModifyBackupPlanNameRequest.cc
|
||||
src/model/ModifyBackupPlanNameResult.cc
|
||||
src/model/ModifyBackupSetDownloadRulesRequest.cc
|
||||
src/model/ModifyBackupSetDownloadRulesResult.cc
|
||||
src/model/ModifyBackupSourceEndpointRequest.cc
|
||||
src/model/ModifyBackupSourceEndpointResult.cc
|
||||
src/model/ModifyBackupStrategyRequest.cc
|
||||
@@ -104,6 +122,8 @@ set(dbs_src
|
||||
src/model/StartBackupPlanResult.cc
|
||||
src/model/StartRestoreTaskRequest.cc
|
||||
src/model/StartRestoreTaskResult.cc
|
||||
src/model/StartTaskRequest.cc
|
||||
src/model/StartTaskResult.cc
|
||||
src/model/StopBackupPlanRequest.cc
|
||||
src/model/StopBackupPlanResult.cc
|
||||
src/model/UpgradeBackupPlanRequest.cc
|
||||
|
||||
@@ -26,12 +26,18 @@
|
||||
#include "model/ConfigureBackupPlanResult.h"
|
||||
#include "model/CreateBackupPlanRequest.h"
|
||||
#include "model/CreateBackupPlanResult.h"
|
||||
#include "model/CreateFullBackupSetDownloadRequest.h"
|
||||
#include "model/CreateFullBackupSetDownloadResult.h"
|
||||
#include "model/CreateIncrementBackupSetDownloadRequest.h"
|
||||
#include "model/CreateIncrementBackupSetDownloadResult.h"
|
||||
#include "model/CreateRestoreTaskRequest.h"
|
||||
#include "model/CreateRestoreTaskResult.h"
|
||||
#include "model/DescribeBackupGatewayListRequest.h"
|
||||
#include "model/DescribeBackupGatewayListResult.h"
|
||||
#include "model/DescribeBackupPlanListRequest.h"
|
||||
#include "model/DescribeBackupPlanListResult.h"
|
||||
#include "model/DescribeBackupSetDownloadTaskListRequest.h"
|
||||
#include "model/DescribeBackupSetDownloadTaskListResult.h"
|
||||
#include "model/DescribeFullBackupListRequest.h"
|
||||
#include "model/DescribeFullBackupListResult.h"
|
||||
#include "model/DescribeIncrementBackupListRequest.h"
|
||||
@@ -50,6 +56,8 @@
|
||||
#include "model/ModifyBackupObjectsResult.h"
|
||||
#include "model/ModifyBackupPlanNameRequest.h"
|
||||
#include "model/ModifyBackupPlanNameResult.h"
|
||||
#include "model/ModifyBackupSetDownloadRulesRequest.h"
|
||||
#include "model/ModifyBackupSetDownloadRulesResult.h"
|
||||
#include "model/ModifyBackupSourceEndpointRequest.h"
|
||||
#include "model/ModifyBackupSourceEndpointResult.h"
|
||||
#include "model/ModifyBackupStrategyRequest.h"
|
||||
@@ -60,6 +68,8 @@
|
||||
#include "model/StartBackupPlanResult.h"
|
||||
#include "model/StartRestoreTaskRequest.h"
|
||||
#include "model/StartRestoreTaskResult.h"
|
||||
#include "model/StartTaskRequest.h"
|
||||
#include "model/StartTaskResult.h"
|
||||
#include "model/StopBackupPlanRequest.h"
|
||||
#include "model/StopBackupPlanResult.h"
|
||||
#include "model/UpgradeBackupPlanRequest.h"
|
||||
@@ -79,6 +89,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateBackupPlanResult> CreateBackupPlanOutcome;
|
||||
typedef std::future<CreateBackupPlanOutcome> CreateBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::CreateBackupPlanRequest&, const CreateBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFullBackupSetDownloadResult> CreateFullBackupSetDownloadOutcome;
|
||||
typedef std::future<CreateFullBackupSetDownloadOutcome> CreateFullBackupSetDownloadOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::CreateFullBackupSetDownloadRequest&, const CreateFullBackupSetDownloadOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFullBackupSetDownloadAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateIncrementBackupSetDownloadResult> CreateIncrementBackupSetDownloadOutcome;
|
||||
typedef std::future<CreateIncrementBackupSetDownloadOutcome> CreateIncrementBackupSetDownloadOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::CreateIncrementBackupSetDownloadRequest&, const CreateIncrementBackupSetDownloadOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateIncrementBackupSetDownloadAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRestoreTaskResult> CreateRestoreTaskOutcome;
|
||||
typedef std::future<CreateRestoreTaskOutcome> CreateRestoreTaskOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::CreateRestoreTaskRequest&, const CreateRestoreTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRestoreTaskAsyncHandler;
|
||||
@@ -88,6 +104,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeBackupPlanListResult> DescribeBackupPlanListOutcome;
|
||||
typedef std::future<DescribeBackupPlanListOutcome> DescribeBackupPlanListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeBackupPlanListRequest&, const DescribeBackupPlanListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlanListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupSetDownloadTaskListResult> DescribeBackupSetDownloadTaskListOutcome;
|
||||
typedef std::future<DescribeBackupSetDownloadTaskListOutcome> DescribeBackupSetDownloadTaskListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeBackupSetDownloadTaskListRequest&, const DescribeBackupSetDownloadTaskListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupSetDownloadTaskListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFullBackupListResult> DescribeFullBackupListOutcome;
|
||||
typedef std::future<DescribeFullBackupListOutcome> DescribeFullBackupListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeFullBackupListRequest&, const DescribeFullBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFullBackupListAsyncHandler;
|
||||
@@ -115,6 +134,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyBackupPlanNameResult> ModifyBackupPlanNameOutcome;
|
||||
typedef std::future<ModifyBackupPlanNameOutcome> ModifyBackupPlanNameOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::ModifyBackupPlanNameRequest&, const ModifyBackupPlanNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupPlanNameAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyBackupSetDownloadRulesResult> ModifyBackupSetDownloadRulesOutcome;
|
||||
typedef std::future<ModifyBackupSetDownloadRulesOutcome> ModifyBackupSetDownloadRulesOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::ModifyBackupSetDownloadRulesRequest&, const ModifyBackupSetDownloadRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupSetDownloadRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyBackupSourceEndpointResult> ModifyBackupSourceEndpointOutcome;
|
||||
typedef std::future<ModifyBackupSourceEndpointOutcome> ModifyBackupSourceEndpointOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::ModifyBackupSourceEndpointRequest&, const ModifyBackupSourceEndpointOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupSourceEndpointAsyncHandler;
|
||||
@@ -130,6 +152,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartRestoreTaskResult> StartRestoreTaskOutcome;
|
||||
typedef std::future<StartRestoreTaskOutcome> StartRestoreTaskOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::StartRestoreTaskRequest&, const StartRestoreTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartRestoreTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartTaskResult> StartTaskOutcome;
|
||||
typedef std::future<StartTaskOutcome> StartTaskOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::StartTaskRequest&, const StartTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopBackupPlanResult> StopBackupPlanOutcome;
|
||||
typedef std::future<StopBackupPlanOutcome> StopBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::StopBackupPlanRequest&, const StopBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopBackupPlanAsyncHandler;
|
||||
@@ -147,6 +172,12 @@ namespace AlibabaCloud
|
||||
CreateBackupPlanOutcome createBackupPlan(const Model::CreateBackupPlanRequest &request)const;
|
||||
void createBackupPlanAsync(const Model::CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBackupPlanOutcomeCallable createBackupPlanCallable(const Model::CreateBackupPlanRequest& request) const;
|
||||
CreateFullBackupSetDownloadOutcome createFullBackupSetDownload(const Model::CreateFullBackupSetDownloadRequest &request)const;
|
||||
void createFullBackupSetDownloadAsync(const Model::CreateFullBackupSetDownloadRequest& request, const CreateFullBackupSetDownloadAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFullBackupSetDownloadOutcomeCallable createFullBackupSetDownloadCallable(const Model::CreateFullBackupSetDownloadRequest& request) const;
|
||||
CreateIncrementBackupSetDownloadOutcome createIncrementBackupSetDownload(const Model::CreateIncrementBackupSetDownloadRequest &request)const;
|
||||
void createIncrementBackupSetDownloadAsync(const Model::CreateIncrementBackupSetDownloadRequest& request, const CreateIncrementBackupSetDownloadAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateIncrementBackupSetDownloadOutcomeCallable createIncrementBackupSetDownloadCallable(const Model::CreateIncrementBackupSetDownloadRequest& request) const;
|
||||
CreateRestoreTaskOutcome createRestoreTask(const Model::CreateRestoreTaskRequest &request)const;
|
||||
void createRestoreTaskAsync(const Model::CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRestoreTaskOutcomeCallable createRestoreTaskCallable(const Model::CreateRestoreTaskRequest& request) const;
|
||||
@@ -156,6 +187,9 @@ namespace AlibabaCloud
|
||||
DescribeBackupPlanListOutcome describeBackupPlanList(const Model::DescribeBackupPlanListRequest &request)const;
|
||||
void describeBackupPlanListAsync(const Model::DescribeBackupPlanListRequest& request, const DescribeBackupPlanListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPlanListOutcomeCallable describeBackupPlanListCallable(const Model::DescribeBackupPlanListRequest& request) const;
|
||||
DescribeBackupSetDownloadTaskListOutcome describeBackupSetDownloadTaskList(const Model::DescribeBackupSetDownloadTaskListRequest &request)const;
|
||||
void describeBackupSetDownloadTaskListAsync(const Model::DescribeBackupSetDownloadTaskListRequest& request, const DescribeBackupSetDownloadTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupSetDownloadTaskListOutcomeCallable describeBackupSetDownloadTaskListCallable(const Model::DescribeBackupSetDownloadTaskListRequest& request) const;
|
||||
DescribeFullBackupListOutcome describeFullBackupList(const Model::DescribeFullBackupListRequest &request)const;
|
||||
void describeFullBackupListAsync(const Model::DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFullBackupListOutcomeCallable describeFullBackupListCallable(const Model::DescribeFullBackupListRequest& request) const;
|
||||
@@ -183,6 +217,9 @@ namespace AlibabaCloud
|
||||
ModifyBackupPlanNameOutcome modifyBackupPlanName(const Model::ModifyBackupPlanNameRequest &request)const;
|
||||
void modifyBackupPlanNameAsync(const Model::ModifyBackupPlanNameRequest& request, const ModifyBackupPlanNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupPlanNameOutcomeCallable modifyBackupPlanNameCallable(const Model::ModifyBackupPlanNameRequest& request) const;
|
||||
ModifyBackupSetDownloadRulesOutcome modifyBackupSetDownloadRules(const Model::ModifyBackupSetDownloadRulesRequest &request)const;
|
||||
void modifyBackupSetDownloadRulesAsync(const Model::ModifyBackupSetDownloadRulesRequest& request, const ModifyBackupSetDownloadRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupSetDownloadRulesOutcomeCallable modifyBackupSetDownloadRulesCallable(const Model::ModifyBackupSetDownloadRulesRequest& request) const;
|
||||
ModifyBackupSourceEndpointOutcome modifyBackupSourceEndpoint(const Model::ModifyBackupSourceEndpointRequest &request)const;
|
||||
void modifyBackupSourceEndpointAsync(const Model::ModifyBackupSourceEndpointRequest& request, const ModifyBackupSourceEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupSourceEndpointOutcomeCallable modifyBackupSourceEndpointCallable(const Model::ModifyBackupSourceEndpointRequest& request) const;
|
||||
@@ -198,6 +235,9 @@ namespace AlibabaCloud
|
||||
StartRestoreTaskOutcome startRestoreTask(const Model::StartRestoreTaskRequest &request)const;
|
||||
void startRestoreTaskAsync(const Model::StartRestoreTaskRequest& request, const StartRestoreTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartRestoreTaskOutcomeCallable startRestoreTaskCallable(const Model::StartRestoreTaskRequest& request) const;
|
||||
StartTaskOutcome startTask(const Model::StartTaskRequest &request)const;
|
||||
void startTaskAsync(const Model::StartTaskRequest& request, const StartTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartTaskOutcomeCallable startTaskCallable(const Model::StartTaskRequest& request) const;
|
||||
StopBackupPlanOutcome stopBackupPlan(const Model::StopBackupPlanRequest &request)const;
|
||||
void stopBackupPlanAsync(const Model::StopBackupPlanRequest& request, const StopBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopBackupPlanOutcomeCallable stopBackupPlanCallable(const Model::StopBackupPlanRequest& request) const;
|
||||
|
||||
@@ -57,6 +57,8 @@ namespace AlibabaCloud
|
||||
void setSourceEndpointIP(const std::string& sourceEndpointIP);
|
||||
bool getEnableBackupLog()const;
|
||||
void setEnableBackupLog(bool enableBackupLog);
|
||||
std::string getBackupStorageType()const;
|
||||
void setBackupStorageType(const std::string& backupStorageType);
|
||||
int getDuplicationArchivePeriod()const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
std::string getSourceEndpointPassword()const;
|
||||
@@ -92,6 +94,7 @@ namespace AlibabaCloud
|
||||
std::string backupStartTime_;
|
||||
std::string sourceEndpointIP_;
|
||||
bool enableBackupLog_;
|
||||
std::string backupStorageType_;
|
||||
int duplicationArchivePeriod_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT CreateFullBackupSetDownloadRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateFullBackupSetDownloadRequest();
|
||||
~CreateFullBackupSetDownloadRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupSetId()const;
|
||||
void setBackupSetId(const std::string& backupSetId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
std::string getBackupSetDataFormat()const;
|
||||
void setBackupSetDataFormat(const std::string& backupSetDataFormat);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string backupSetDataFormat_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT CreateFullBackupSetDownloadResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateFullBackupSetDownloadResult();
|
||||
explicit CreateFullBackupSetDownloadResult(const std::string &payload);
|
||||
~CreateFullBackupSetDownloadResult();
|
||||
std::string getBackupSetDownloadTaskId()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string backupSetDownloadTaskId_;
|
||||
int httpStatusCode_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEFULLBACKUPSETDOWNLOADRESULT_H_
|
||||
@@ -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_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT CreateIncrementBackupSetDownloadRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateIncrementBackupSetDownloadRequest();
|
||||
~CreateIncrementBackupSetDownloadRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupSetName()const;
|
||||
void setBackupSetName(const std::string& backupSetName);
|
||||
std::string getBackupSetId()const;
|
||||
void setBackupSetId(const std::string& backupSetId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
std::string getBackupSetDataFormat()const;
|
||||
void setBackupSetDataFormat(const std::string& backupSetDataFormat);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetName_;
|
||||
std::string backupSetId_;
|
||||
std::string ownerId_;
|
||||
std::string backupSetDataFormat_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT CreateIncrementBackupSetDownloadResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateIncrementBackupSetDownloadResult();
|
||||
explicit CreateIncrementBackupSetDownloadResult(const std::string &payload);
|
||||
~CreateIncrementBackupSetDownloadResult();
|
||||
std::string getBackupSetDownloadTaskId()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string backupSetDownloadTaskId_;
|
||||
int httpStatusCode_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_CREATEINCREMENTBACKUPSETDOWNLOADRESULT_H_
|
||||
@@ -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_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupSetDownloadTaskListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBackupSetDownloadTaskListRequest();
|
||||
~DescribeBackupSetDownloadTaskListRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupSetDownloadTaskId()const;
|
||||
void setBackupSetDownloadTaskId(const std::string& backupSetDownloadTaskId);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupSetDownloadTaskId_;
|
||||
std::string backupPlanId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTREQUEST_H_
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeBackupSetDownloadTaskListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BackupSetDownloadTaskDetail
|
||||
{
|
||||
std::string backupSetDbType;
|
||||
long backupSetDownloadCreateTime;
|
||||
std::string backupSetDownloadTaskName;
|
||||
std::string backupSetDownloadDir;
|
||||
std::string backupSetDownloadWay;
|
||||
std::string backupSetCode;
|
||||
std::string backupSetId;
|
||||
std::string errMessage;
|
||||
std::string backupSetDownloadTargetType;
|
||||
std::string backupSetDownloadStatus;
|
||||
std::string backupSetDownloadIntranetUrl;
|
||||
std::string backupSetDownloadInternetUrl;
|
||||
std::string backupSetDownloadTaskId;
|
||||
long backupSetDownloadFinishTime;
|
||||
std::string backupSetJobType;
|
||||
std::string backupSetDataFormat;
|
||||
std::string backupPlanId;
|
||||
long backupGatewayId;
|
||||
long backupSetDataSize;
|
||||
};
|
||||
|
||||
|
||||
DescribeBackupSetDownloadTaskListResult();
|
||||
explicit DescribeBackupSetDownloadTaskListResult(const std::string &payload);
|
||||
~DescribeBackupSetDownloadTaskListResult();
|
||||
int getPageSize()const;
|
||||
int getPageNum()const;
|
||||
int getHttpStatusCode()const;
|
||||
int getTotalElements()const;
|
||||
std::vector<BackupSetDownloadTaskDetail> getItems()const;
|
||||
int getTotalPages()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int pageNum_;
|
||||
int httpStatusCode_;
|
||||
int totalElements_;
|
||||
std::vector<BackupSetDownloadTaskDetail> items_;
|
||||
int totalPages_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEBACKUPSETDOWNLOADTASKLISTRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT ModifyBackupSetDownloadRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyBackupSetDownloadRulesRequest();
|
||||
~ModifyBackupSetDownloadRulesRequest();
|
||||
|
||||
std::string getFullDataFormat()const;
|
||||
void setFullDataFormat(const std::string& fullDataFormat);
|
||||
long getBackupGatewayId()const;
|
||||
void setBackupGatewayId(long backupGatewayId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupSetDownloadTargetType()const;
|
||||
void setBackupSetDownloadTargetType(const std::string& backupSetDownloadTargetType);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
bool getOpenAutoDownload()const;
|
||||
void setOpenAutoDownload(bool openAutoDownload);
|
||||
std::string getIncrementDataFormat()const;
|
||||
void setIncrementDataFormat(const std::string& incrementDataFormat);
|
||||
std::string getBackupSetDownloadDir()const;
|
||||
void setBackupSetDownloadDir(const std::string& backupSetDownloadDir);
|
||||
|
||||
private:
|
||||
std::string fullDataFormat_;
|
||||
long backupGatewayId_;
|
||||
std::string clientToken_;
|
||||
std::string backupSetDownloadTargetType_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
bool openAutoDownload_;
|
||||
std::string incrementDataFormat_;
|
||||
std::string backupSetDownloadDir_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT ModifyBackupSetDownloadRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyBackupSetDownloadRulesResult();
|
||||
explicit ModifyBackupSetDownloadRulesResult(const std::string &payload);
|
||||
~ModifyBackupSetDownloadRulesResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYBACKUPSETDOWNLOADRULESRESULT_H_
|
||||
54
dbs/include/alibabacloud/dbs/model/StartTaskRequest.h
Normal file
54
dbs/include/alibabacloud/dbs/model/StartTaskRequest.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_STARTTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_STARTTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT StartTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartTaskRequest();
|
||||
~StartTaskRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string ownerId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_STARTTASKREQUEST_H_
|
||||
61
dbs/include/alibabacloud/dbs/model/StartTaskResult.h
Normal file
61
dbs/include/alibabacloud/dbs/model/StartTaskResult.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_STARTTASKRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_STARTTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT StartTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StartTaskResult();
|
||||
explicit StartTaskResult(const std::string &payload);
|
||||
~StartTaskResult();
|
||||
std::string getTaskId()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
std::string getJobTypeName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
int httpStatusCode_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
std::string jobTypeName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_STARTTASKRESULT_H_
|
||||
@@ -123,6 +123,78 @@ DbsClient::CreateBackupPlanOutcomeCallable DbsClient::createBackupPlanCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::CreateFullBackupSetDownloadOutcome DbsClient::createFullBackupSetDownload(const CreateFullBackupSetDownloadRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFullBackupSetDownloadOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFullBackupSetDownloadOutcome(CreateFullBackupSetDownloadResult(outcome.result()));
|
||||
else
|
||||
return CreateFullBackupSetDownloadOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::createFullBackupSetDownloadAsync(const CreateFullBackupSetDownloadRequest& request, const CreateFullBackupSetDownloadAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFullBackupSetDownload(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::CreateFullBackupSetDownloadOutcomeCallable DbsClient::createFullBackupSetDownloadCallable(const CreateFullBackupSetDownloadRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFullBackupSetDownloadOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFullBackupSetDownload(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::CreateIncrementBackupSetDownloadOutcome DbsClient::createIncrementBackupSetDownload(const CreateIncrementBackupSetDownloadRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateIncrementBackupSetDownloadOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateIncrementBackupSetDownloadOutcome(CreateIncrementBackupSetDownloadResult(outcome.result()));
|
||||
else
|
||||
return CreateIncrementBackupSetDownloadOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::createIncrementBackupSetDownloadAsync(const CreateIncrementBackupSetDownloadRequest& request, const CreateIncrementBackupSetDownloadAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createIncrementBackupSetDownload(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::CreateIncrementBackupSetDownloadOutcomeCallable DbsClient::createIncrementBackupSetDownloadCallable(const CreateIncrementBackupSetDownloadRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateIncrementBackupSetDownloadOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createIncrementBackupSetDownload(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::CreateRestoreTaskOutcome DbsClient::createRestoreTask(const CreateRestoreTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +303,42 @@ DbsClient::DescribeBackupPlanListOutcomeCallable DbsClient::describeBackupPlanLi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeBackupSetDownloadTaskListOutcome DbsClient::describeBackupSetDownloadTaskList(const DescribeBackupSetDownloadTaskListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupSetDownloadTaskListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupSetDownloadTaskListOutcome(DescribeBackupSetDownloadTaskListResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupSetDownloadTaskListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeBackupSetDownloadTaskListAsync(const DescribeBackupSetDownloadTaskListRequest& request, const DescribeBackupSetDownloadTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupSetDownloadTaskList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeBackupSetDownloadTaskListOutcomeCallable DbsClient::describeBackupSetDownloadTaskListCallable(const DescribeBackupSetDownloadTaskListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupSetDownloadTaskListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupSetDownloadTaskList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeFullBackupListOutcome DbsClient::describeFullBackupList(const DescribeFullBackupListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +663,42 @@ DbsClient::ModifyBackupPlanNameOutcomeCallable DbsClient::modifyBackupPlanNameCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::ModifyBackupSetDownloadRulesOutcome DbsClient::modifyBackupSetDownloadRules(const ModifyBackupSetDownloadRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyBackupSetDownloadRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyBackupSetDownloadRulesOutcome(ModifyBackupSetDownloadRulesResult(outcome.result()));
|
||||
else
|
||||
return ModifyBackupSetDownloadRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::modifyBackupSetDownloadRulesAsync(const ModifyBackupSetDownloadRulesRequest& request, const ModifyBackupSetDownloadRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyBackupSetDownloadRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::ModifyBackupSetDownloadRulesOutcomeCallable DbsClient::modifyBackupSetDownloadRulesCallable(const ModifyBackupSetDownloadRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyBackupSetDownloadRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyBackupSetDownloadRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::ModifyBackupSourceEndpointOutcome DbsClient::modifyBackupSourceEndpoint(const ModifyBackupSourceEndpointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,6 +879,42 @@ DbsClient::StartRestoreTaskOutcomeCallable DbsClient::startRestoreTaskCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::StartTaskOutcome DbsClient::startTask(const StartTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartTaskOutcome(StartTaskResult(outcome.result()));
|
||||
else
|
||||
return StartTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::startTaskAsync(const StartTaskRequest& request, const StartTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::StartTaskOutcomeCallable DbsClient::startTaskCallable(const StartTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::StopBackupPlanOutcome DbsClient::stopBackupPlan(const StopBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -148,6 +148,17 @@ void ConfigureBackupPlanRequest::setEnableBackupLog(bool enableBackupLog)
|
||||
setParameter("EnableBackupLog", enableBackupLog ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getBackupStorageType()const
|
||||
{
|
||||
return backupStorageType_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupStorageType(const std::string& backupStorageType)
|
||||
{
|
||||
backupStorageType_ = backupStorageType;
|
||||
setParameter("BackupStorageType", backupStorageType);
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getDuplicationArchivePeriod()const
|
||||
{
|
||||
return duplicationArchivePeriod_;
|
||||
|
||||
73
dbs/src/model/CreateFullBackupSetDownloadRequest.cc
Normal file
73
dbs/src/model/CreateFullBackupSetDownloadRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/dbs/model/CreateFullBackupSetDownloadRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::CreateFullBackupSetDownloadRequest;
|
||||
|
||||
CreateFullBackupSetDownloadRequest::CreateFullBackupSetDownloadRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "CreateFullBackupSetDownload")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFullBackupSetDownloadRequest::~CreateFullBackupSetDownloadRequest()
|
||||
{}
|
||||
|
||||
std::string CreateFullBackupSetDownloadRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateFullBackupSetDownloadRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadRequest::getBackupSetId()const
|
||||
{
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void CreateFullBackupSetDownloadRequest::setBackupSetId(const std::string& backupSetId)
|
||||
{
|
||||
backupSetId_ = backupSetId;
|
||||
setParameter("BackupSetId", backupSetId);
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateFullBackupSetDownloadRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadRequest::getBackupSetDataFormat()const
|
||||
{
|
||||
return backupSetDataFormat_;
|
||||
}
|
||||
|
||||
void CreateFullBackupSetDownloadRequest::setBackupSetDataFormat(const std::string& backupSetDataFormat)
|
||||
{
|
||||
backupSetDataFormat_ = backupSetDataFormat;
|
||||
setParameter("BackupSetDataFormat", backupSetDataFormat);
|
||||
}
|
||||
|
||||
79
dbs/src/model/CreateFullBackupSetDownloadResult.cc
Normal file
79
dbs/src/model/CreateFullBackupSetDownloadResult.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/dbs/model/CreateFullBackupSetDownloadResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
CreateFullBackupSetDownloadResult::CreateFullBackupSetDownloadResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFullBackupSetDownloadResult::CreateFullBackupSetDownloadResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFullBackupSetDownloadResult::~CreateFullBackupSetDownloadResult()
|
||||
{}
|
||||
|
||||
void CreateFullBackupSetDownloadResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupSetDownloadTaskId"].isNull())
|
||||
backupSetDownloadTaskId_ = value["BackupSetDownloadTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadResult::getBackupSetDownloadTaskId()const
|
||||
{
|
||||
return backupSetDownloadTaskId_;
|
||||
}
|
||||
|
||||
int CreateFullBackupSetDownloadResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool CreateFullBackupSetDownloadResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateFullBackupSetDownloadResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
84
dbs/src/model/CreateIncrementBackupSetDownloadRequest.cc
Normal file
84
dbs/src/model/CreateIncrementBackupSetDownloadRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/dbs/model/CreateIncrementBackupSetDownloadRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::CreateIncrementBackupSetDownloadRequest;
|
||||
|
||||
CreateIncrementBackupSetDownloadRequest::CreateIncrementBackupSetDownloadRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "CreateIncrementBackupSetDownload")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIncrementBackupSetDownloadRequest::~CreateIncrementBackupSetDownloadRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateIncrementBackupSetDownloadRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getBackupSetName()const
|
||||
{
|
||||
return backupSetName_;
|
||||
}
|
||||
|
||||
void CreateIncrementBackupSetDownloadRequest::setBackupSetName(const std::string& backupSetName)
|
||||
{
|
||||
backupSetName_ = backupSetName;
|
||||
setParameter("BackupSetName", backupSetName);
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getBackupSetId()const
|
||||
{
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void CreateIncrementBackupSetDownloadRequest::setBackupSetId(const std::string& backupSetId)
|
||||
{
|
||||
backupSetId_ = backupSetId;
|
||||
setParameter("BackupSetId", backupSetId);
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateIncrementBackupSetDownloadRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadRequest::getBackupSetDataFormat()const
|
||||
{
|
||||
return backupSetDataFormat_;
|
||||
}
|
||||
|
||||
void CreateIncrementBackupSetDownloadRequest::setBackupSetDataFormat(const std::string& backupSetDataFormat)
|
||||
{
|
||||
backupSetDataFormat_ = backupSetDataFormat;
|
||||
setParameter("BackupSetDataFormat", backupSetDataFormat);
|
||||
}
|
||||
|
||||
79
dbs/src/model/CreateIncrementBackupSetDownloadResult.cc
Normal file
79
dbs/src/model/CreateIncrementBackupSetDownloadResult.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/dbs/model/CreateIncrementBackupSetDownloadResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
CreateIncrementBackupSetDownloadResult::CreateIncrementBackupSetDownloadResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIncrementBackupSetDownloadResult::CreateIncrementBackupSetDownloadResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIncrementBackupSetDownloadResult::~CreateIncrementBackupSetDownloadResult()
|
||||
{}
|
||||
|
||||
void CreateIncrementBackupSetDownloadResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupSetDownloadTaskId"].isNull())
|
||||
backupSetDownloadTaskId_ = value["BackupSetDownloadTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadResult::getBackupSetDownloadTaskId()const
|
||||
{
|
||||
return backupSetDownloadTaskId_;
|
||||
}
|
||||
|
||||
int CreateIncrementBackupSetDownloadResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool CreateIncrementBackupSetDownloadResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateIncrementBackupSetDownloadResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user