Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8ce42a726 | ||
|
|
68261f0c8d | ||
|
|
45a3be8c65 | ||
|
|
66519a1f90 | ||
|
|
ef02e7707e | ||
|
|
82ce70d07f | ||
|
|
2c8cadba25 | ||
|
|
f90c2115c9 | ||
|
|
14fa5fe61a | ||
|
|
ca9bc6363b | ||
|
|
140879338b | ||
|
|
3f0bc9064e | ||
|
|
14ede93088 | ||
|
|
20fc16db11 | ||
|
|
cca2dd1b12 | ||
|
|
86d673dc39 | ||
|
|
03ae6a55f9 | ||
|
|
beee861ebb | ||
|
|
bdc2381f4b | ||
|
|
2dccf2d4e8 |
68
CHANGELOG
68
CHANGELOG
@@ -1,3 +1,71 @@
|
||||
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,12 @@ 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/TranslateECommerceRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateECommerceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateGeneralRequest.h
|
||||
@@ -28,6 +34,12 @@ 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/TranslateECommerceRequest.cc
|
||||
src/model/TranslateECommerceResult.cc
|
||||
src/model/TranslateGeneralRequest.cc
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
#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/TranslateECommerceRequest.h"
|
||||
#include "model/TranslateECommerceResult.h"
|
||||
#include "model/TranslateGeneralRequest.h"
|
||||
@@ -35,6 +41,15 @@ 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::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 +61,15 @@ 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;
|
||||
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_
|
||||
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_
|
||||
59
alimt/include/alibabacloud/alimt/model/TranslateResult.h
Normal file
59
alimt/include/alibabacloud/alimt/model/TranslateResult.h
Normal file
@@ -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_ALIMT_MODEL_TRANSLATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_TRANSLATERESULT_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 TranslateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
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 message_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_TRANSLATERESULT_H_
|
||||
@@ -51,6 +51,114 @@ AlimtClient::AlimtClient(const std::string & accessKeyId, const std::string & ac
|
||||
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::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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_
|
||||
@@ -31,21 +31,21 @@ DbsClient::DbsClient(const Credentials &credentials, const ClientConfiguration &
|
||||
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, "cbs");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DbsClient::DbsClient(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, "cbs");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DbsClient::DbsClient(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, "cbs");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
DbsClient::~DbsClient()
|
||||
@@ -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();
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
95
dbs/src/model/DescribeBackupSetDownloadTaskListRequest.cc
Normal file
95
dbs/src/model/DescribeBackupSetDownloadTaskListRequest.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/dbs/model/DescribeBackupSetDownloadTaskListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeBackupSetDownloadTaskListRequest;
|
||||
|
||||
DescribeBackupSetDownloadTaskListRequest::DescribeBackupSetDownloadTaskListRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupSetDownloadTaskList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupSetDownloadTaskListRequest::~DescribeBackupSetDownloadTaskListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getBackupSetDownloadTaskId()const
|
||||
{
|
||||
return backupSetDownloadTaskId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setBackupSetDownloadTaskId(const std::string& backupSetDownloadTaskId)
|
||||
{
|
||||
backupSetDownloadTaskId_ = backupSetDownloadTaskId;
|
||||
setParameter("BackupSetDownloadTaskId", backupSetDownloadTaskId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
149
dbs/src/model/DescribeBackupSetDownloadTaskListResult.cc
Normal file
149
dbs/src/model/DescribeBackupSetDownloadTaskListResult.cc
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* 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/DescribeBackupSetDownloadTaskListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DescribeBackupSetDownloadTaskListResult::DescribeBackupSetDownloadTaskListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupSetDownloadTaskListResult::DescribeBackupSetDownloadTaskListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupSetDownloadTaskListResult::~DescribeBackupSetDownloadTaskListResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupSetDownloadTaskListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["BackupSetDownloadTaskDetail"];
|
||||
for (auto valueItemsBackupSetDownloadTaskDetail : allItemsNode)
|
||||
{
|
||||
BackupSetDownloadTaskDetail itemsObject;
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupPlanId"].isNull())
|
||||
itemsObject.backupPlanId = valueItemsBackupSetDownloadTaskDetail["BackupPlanId"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskId"].isNull())
|
||||
itemsObject.backupSetDownloadTaskId = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskId"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskName"].isNull())
|
||||
itemsObject.backupSetDownloadTaskName = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTaskName"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadStatus"].isNull())
|
||||
itemsObject.backupSetDownloadStatus = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadStatus"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadCreateTime"].isNull())
|
||||
itemsObject.backupSetDownloadCreateTime = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadCreateTime"].asString());
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadFinishTime"].isNull())
|
||||
itemsObject.backupSetDownloadFinishTime = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadFinishTime"].asString());
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetId"].isNull())
|
||||
itemsObject.backupSetId = valueItemsBackupSetDownloadTaskDetail["BackupSetId"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetCode"].isNull())
|
||||
itemsObject.backupSetCode = valueItemsBackupSetDownloadTaskDetail["BackupSetCode"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetJobType"].isNull())
|
||||
itemsObject.backupSetJobType = valueItemsBackupSetDownloadTaskDetail["BackupSetJobType"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDataSize"].isNull())
|
||||
itemsObject.backupSetDataSize = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupSetDataSize"].asString());
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDataFormat"].isNull())
|
||||
itemsObject.backupSetDataFormat = valueItemsBackupSetDownloadTaskDetail["BackupSetDataFormat"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDbType"].isNull())
|
||||
itemsObject.backupSetDbType = valueItemsBackupSetDownloadTaskDetail["BackupSetDbType"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadWay"].isNull())
|
||||
itemsObject.backupSetDownloadWay = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadWay"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadDir"].isNull())
|
||||
itemsObject.backupSetDownloadDir = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadDir"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTargetType"].isNull())
|
||||
itemsObject.backupSetDownloadTargetType = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadTargetType"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupGatewayId"].isNull())
|
||||
itemsObject.backupGatewayId = std::stol(valueItemsBackupSetDownloadTaskDetail["BackupGatewayId"].asString());
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadIntranetUrl"].isNull())
|
||||
itemsObject.backupSetDownloadIntranetUrl = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadIntranetUrl"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadInternetUrl"].isNull())
|
||||
itemsObject.backupSetDownloadInternetUrl = valueItemsBackupSetDownloadTaskDetail["BackupSetDownloadInternetUrl"].asString();
|
||||
if(!valueItemsBackupSetDownloadTaskDetail["ErrMessage"].isNull())
|
||||
itemsObject.errMessage = valueItemsBackupSetDownloadTaskDetail["ErrMessage"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
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["TotalPages"].isNull())
|
||||
totalPages_ = std::stoi(value["TotalPages"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["TotalElements"].isNull())
|
||||
totalElements_ = std::stoi(value["TotalElements"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListResult::getTotalElements()const
|
||||
{
|
||||
return totalElements_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupSetDownloadTaskListResult::BackupSetDownloadTaskDetail> DescribeBackupSetDownloadTaskListResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
int DescribeBackupSetDownloadTaskListResult::getTotalPages()const
|
||||
{
|
||||
return totalPages_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DescribeBackupSetDownloadTaskListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadTaskListResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
128
dbs/src/model/ModifyBackupSetDownloadRulesRequest.cc
Normal file
128
dbs/src/model/ModifyBackupSetDownloadRulesRequest.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/dbs/model/ModifyBackupSetDownloadRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::ModifyBackupSetDownloadRulesRequest;
|
||||
|
||||
ModifyBackupSetDownloadRulesRequest::ModifyBackupSetDownloadRulesRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSetDownloadRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyBackupSetDownloadRulesRequest::~ModifyBackupSetDownloadRulesRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getFullDataFormat()const
|
||||
{
|
||||
return fullDataFormat_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setFullDataFormat(const std::string& fullDataFormat)
|
||||
{
|
||||
fullDataFormat_ = fullDataFormat;
|
||||
setParameter("FullDataFormat", fullDataFormat);
|
||||
}
|
||||
|
||||
long ModifyBackupSetDownloadRulesRequest::getBackupGatewayId()const
|
||||
{
|
||||
return backupGatewayId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupGatewayId(long backupGatewayId)
|
||||
{
|
||||
backupGatewayId_ = backupGatewayId;
|
||||
setParameter("BackupGatewayId", std::to_string(backupGatewayId));
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetType()const
|
||||
{
|
||||
return backupSetDownloadTargetType_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetType(const std::string& backupSetDownloadTargetType)
|
||||
{
|
||||
backupSetDownloadTargetType_ = backupSetDownloadTargetType;
|
||||
setParameter("BackupSetDownloadTargetType", backupSetDownloadTargetType);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
bool ModifyBackupSetDownloadRulesRequest::getOpenAutoDownload()const
|
||||
{
|
||||
return openAutoDownload_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setOpenAutoDownload(bool openAutoDownload)
|
||||
{
|
||||
openAutoDownload_ = openAutoDownload;
|
||||
setParameter("OpenAutoDownload", openAutoDownload ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getIncrementDataFormat()const
|
||||
{
|
||||
return incrementDataFormat_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setIncrementDataFormat(const std::string& incrementDataFormat)
|
||||
{
|
||||
incrementDataFormat_ = incrementDataFormat;
|
||||
setParameter("IncrementDataFormat", incrementDataFormat);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadDir()const
|
||||
{
|
||||
return backupSetDownloadDir_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadDir(const std::string& backupSetDownloadDir)
|
||||
{
|
||||
backupSetDownloadDir_ = backupSetDownloadDir;
|
||||
setParameter("BackupSetDownloadDir", backupSetDownloadDir);
|
||||
}
|
||||
|
||||
79
dbs/src/model/ModifyBackupSetDownloadRulesResult.cc
Normal file
79
dbs/src/model/ModifyBackupSetDownloadRulesResult.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/ModifyBackupSetDownloadRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
ModifyBackupSetDownloadRulesResult::ModifyBackupSetDownloadRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyBackupSetDownloadRulesResult::ModifyBackupSetDownloadRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyBackupSetDownloadRulesResult::~ModifyBackupSetDownloadRulesResult()
|
||||
{}
|
||||
|
||||
void ModifyBackupSetDownloadRulesResult::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["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ModifyBackupSetDownloadRulesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool ModifyBackupSetDownloadRulesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
62
dbs/src/model/StartTaskRequest.cc
Normal file
62
dbs/src/model/StartTaskRequest.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/dbs/model/StartTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::StartTaskRequest;
|
||||
|
||||
StartTaskRequest::StartTaskRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "StartTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartTaskRequest::~StartTaskRequest()
|
||||
{}
|
||||
|
||||
std::string StartTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
std::string StartTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StartTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
86
dbs/src/model/StartTaskResult.cc
Normal file
86
dbs/src/model/StartTaskResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/StartTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
StartTaskResult::StartTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartTaskResult::StartTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartTaskResult::~StartTaskResult()
|
||||
{}
|
||||
|
||||
void StartTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["JobTypeName"].isNull())
|
||||
jobTypeName_ = value["JobTypeName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
int StartTaskResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string StartTaskResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool StartTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string StartTaskResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
std::string StartTaskResult::getJobTypeName()const
|
||||
{
|
||||
return jobTypeName_;
|
||||
}
|
||||
|
||||
266
dms-enterprise/CMakeLists.txt
Normal file
266
dms-enterprise/CMakeLists.txt
Normal file
@@ -0,0 +1,266 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(dms-enterprise_public_header
|
||||
include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h
|
||||
include/alibabacloud/dms-enterprise/Dms_enterpriseExport.h )
|
||||
|
||||
set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/DeleteUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DisableUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/DisableUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/EnableUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/EnableUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteDataExportResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOpLogResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListColumnsResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListIndexesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListInstancesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListLogicTablesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListOrdersResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListTablesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListTablesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUsersRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUsersResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/RegisterInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/RegisterUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/RevokeUserPermissionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchTableRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchTableResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SetOwnersRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SetOwnersResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SyncInstanceMetaResult.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateUserResult.h )
|
||||
|
||||
set(dms-enterprise_src
|
||||
src/Dms-enterpriseClient.cc
|
||||
src/model/ApproveOrderRequest.cc
|
||||
src/model/ApproveOrderResult.cc
|
||||
src/model/CloseOrderRequest.cc
|
||||
src/model/CloseOrderResult.cc
|
||||
src/model/CreateOrderRequest.cc
|
||||
src/model/CreateOrderResult.cc
|
||||
src/model/CreatePublishGroupTaskRequest.cc
|
||||
src/model/CreatePublishGroupTaskResult.cc
|
||||
src/model/DeleteInstanceRequest.cc
|
||||
src/model/DeleteInstanceResult.cc
|
||||
src/model/DeleteUserRequest.cc
|
||||
src/model/DeleteUserResult.cc
|
||||
src/model/DisableUserRequest.cc
|
||||
src/model/DisableUserResult.cc
|
||||
src/model/EnableUserRequest.cc
|
||||
src/model/EnableUserResult.cc
|
||||
src/model/ExecuteDataCorrectRequest.cc
|
||||
src/model/ExecuteDataCorrectResult.cc
|
||||
src/model/ExecuteDataExportRequest.cc
|
||||
src/model/ExecuteDataExportResult.cc
|
||||
src/model/GetApprovalDetailRequest.cc
|
||||
src/model/GetApprovalDetailResult.cc
|
||||
src/model/GetDataCorrectBackupFilesRequest.cc
|
||||
src/model/GetDataCorrectBackupFilesResult.cc
|
||||
src/model/GetDataCorrectOrderDetailRequest.cc
|
||||
src/model/GetDataCorrectOrderDetailResult.cc
|
||||
src/model/GetDataExportDownloadURLRequest.cc
|
||||
src/model/GetDataExportDownloadURLResult.cc
|
||||
src/model/GetDataExportOrderDetailRequest.cc
|
||||
src/model/GetDataExportOrderDetailResult.cc
|
||||
src/model/GetDatabaseRequest.cc
|
||||
src/model/GetDatabaseResult.cc
|
||||
src/model/GetInstanceRequest.cc
|
||||
src/model/GetInstanceResult.cc
|
||||
src/model/GetLogicDatabaseRequest.cc
|
||||
src/model/GetLogicDatabaseResult.cc
|
||||
src/model/GetOpLogRequest.cc
|
||||
src/model/GetOpLogResult.cc
|
||||
src/model/GetOrderBaseInfoRequest.cc
|
||||
src/model/GetOrderBaseInfoResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/GrantUserPermissionRequest.cc
|
||||
src/model/GrantUserPermissionResult.cc
|
||||
src/model/ListColumnsRequest.cc
|
||||
src/model/ListColumnsResult.cc
|
||||
src/model/ListDatabaseUserPermssionsRequest.cc
|
||||
src/model/ListDatabaseUserPermssionsResult.cc
|
||||
src/model/ListDatabasesRequest.cc
|
||||
src/model/ListDatabasesResult.cc
|
||||
src/model/ListIndexesRequest.cc
|
||||
src/model/ListIndexesResult.cc
|
||||
src/model/ListInstancesRequest.cc
|
||||
src/model/ListInstancesResult.cc
|
||||
src/model/ListLogicDatabasesRequest.cc
|
||||
src/model/ListLogicDatabasesResult.cc
|
||||
src/model/ListLogicTablesRequest.cc
|
||||
src/model/ListLogicTablesResult.cc
|
||||
src/model/ListOrdersRequest.cc
|
||||
src/model/ListOrdersResult.cc
|
||||
src/model/ListTablesRequest.cc
|
||||
src/model/ListTablesResult.cc
|
||||
src/model/ListUserPermissionsRequest.cc
|
||||
src/model/ListUserPermissionsResult.cc
|
||||
src/model/ListUsersRequest.cc
|
||||
src/model/ListUsersResult.cc
|
||||
src/model/ListWorkFlowNodesRequest.cc
|
||||
src/model/ListWorkFlowNodesResult.cc
|
||||
src/model/ListWorkFlowTemplatesRequest.cc
|
||||
src/model/ListWorkFlowTemplatesResult.cc
|
||||
src/model/RegisterInstanceRequest.cc
|
||||
src/model/RegisterInstanceResult.cc
|
||||
src/model/RegisterUserRequest.cc
|
||||
src/model/RegisterUserResult.cc
|
||||
src/model/RevokeUserPermissionRequest.cc
|
||||
src/model/RevokeUserPermissionResult.cc
|
||||
src/model/SearchDatabaseRequest.cc
|
||||
src/model/SearchDatabaseResult.cc
|
||||
src/model/SearchTableRequest.cc
|
||||
src/model/SearchTableResult.cc
|
||||
src/model/SetOwnersRequest.cc
|
||||
src/model/SetOwnersResult.cc
|
||||
src/model/SubmitOrderApprovalRequest.cc
|
||||
src/model/SubmitOrderApprovalResult.cc
|
||||
src/model/SyncDatabaseMetaRequest.cc
|
||||
src/model/SyncDatabaseMetaResult.cc
|
||||
src/model/SyncInstanceMetaRequest.cc
|
||||
src/model/SyncInstanceMetaResult.cc
|
||||
src/model/UpdateInstanceRequest.cc
|
||||
src/model/UpdateInstanceResult.cc
|
||||
src/model/UpdateUserRequest.cc
|
||||
src/model/UpdateUserResult.cc )
|
||||
|
||||
add_library(dms-enterprise ${LIB_TYPE}
|
||||
${dms-enterprise_public_header}
|
||||
${dms-enterprise_public_header_model}
|
||||
${dms-enterprise_src})
|
||||
|
||||
set_target_properties(dms-enterprise
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}dms-enterprise
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(dms-enterprise
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DMS_ENTERPRISE_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(dms-enterprise
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(dms-enterprise
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(dms-enterprise
|
||||
jsoncpp)
|
||||
target_include_directories(dms-enterprise
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(dms-enterprise
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(dms-enterprise
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(dms-enterprise
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(dms-enterprise
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${dms-enterprise_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dms-enterprise)
|
||||
install(FILES ${dms-enterprise_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dms-enterprise/model)
|
||||
install(TARGETS dms-enterprise
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -0,0 +1,414 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_DMS_ENTERPRISECLIENT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISECLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Dms_enterpriseExport.h"
|
||||
#include "model/ApproveOrderRequest.h"
|
||||
#include "model/ApproveOrderResult.h"
|
||||
#include "model/CloseOrderRequest.h"
|
||||
#include "model/CloseOrderResult.h"
|
||||
#include "model/CreateOrderRequest.h"
|
||||
#include "model/CreateOrderResult.h"
|
||||
#include "model/CreatePublishGroupTaskRequest.h"
|
||||
#include "model/CreatePublishGroupTaskResult.h"
|
||||
#include "model/DeleteInstanceRequest.h"
|
||||
#include "model/DeleteInstanceResult.h"
|
||||
#include "model/DeleteUserRequest.h"
|
||||
#include "model/DeleteUserResult.h"
|
||||
#include "model/DisableUserRequest.h"
|
||||
#include "model/DisableUserResult.h"
|
||||
#include "model/EnableUserRequest.h"
|
||||
#include "model/EnableUserResult.h"
|
||||
#include "model/ExecuteDataCorrectRequest.h"
|
||||
#include "model/ExecuteDataCorrectResult.h"
|
||||
#include "model/ExecuteDataExportRequest.h"
|
||||
#include "model/ExecuteDataExportResult.h"
|
||||
#include "model/GetApprovalDetailRequest.h"
|
||||
#include "model/GetApprovalDetailResult.h"
|
||||
#include "model/GetDataCorrectBackupFilesRequest.h"
|
||||
#include "model/GetDataCorrectBackupFilesResult.h"
|
||||
#include "model/GetDataCorrectOrderDetailRequest.h"
|
||||
#include "model/GetDataCorrectOrderDetailResult.h"
|
||||
#include "model/GetDataExportDownloadURLRequest.h"
|
||||
#include "model/GetDataExportDownloadURLResult.h"
|
||||
#include "model/GetDataExportOrderDetailRequest.h"
|
||||
#include "model/GetDataExportOrderDetailResult.h"
|
||||
#include "model/GetDatabaseRequest.h"
|
||||
#include "model/GetDatabaseResult.h"
|
||||
#include "model/GetInstanceRequest.h"
|
||||
#include "model/GetInstanceResult.h"
|
||||
#include "model/GetLogicDatabaseRequest.h"
|
||||
#include "model/GetLogicDatabaseResult.h"
|
||||
#include "model/GetOpLogRequest.h"
|
||||
#include "model/GetOpLogResult.h"
|
||||
#include "model/GetOrderBaseInfoRequest.h"
|
||||
#include "model/GetOrderBaseInfoResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/GrantUserPermissionRequest.h"
|
||||
#include "model/GrantUserPermissionResult.h"
|
||||
#include "model/ListColumnsRequest.h"
|
||||
#include "model/ListColumnsResult.h"
|
||||
#include "model/ListDatabaseUserPermssionsRequest.h"
|
||||
#include "model/ListDatabaseUserPermssionsResult.h"
|
||||
#include "model/ListDatabasesRequest.h"
|
||||
#include "model/ListDatabasesResult.h"
|
||||
#include "model/ListIndexesRequest.h"
|
||||
#include "model/ListIndexesResult.h"
|
||||
#include "model/ListInstancesRequest.h"
|
||||
#include "model/ListInstancesResult.h"
|
||||
#include "model/ListLogicDatabasesRequest.h"
|
||||
#include "model/ListLogicDatabasesResult.h"
|
||||
#include "model/ListLogicTablesRequest.h"
|
||||
#include "model/ListLogicTablesResult.h"
|
||||
#include "model/ListOrdersRequest.h"
|
||||
#include "model/ListOrdersResult.h"
|
||||
#include "model/ListTablesRequest.h"
|
||||
#include "model/ListTablesResult.h"
|
||||
#include "model/ListUserPermissionsRequest.h"
|
||||
#include "model/ListUserPermissionsResult.h"
|
||||
#include "model/ListUsersRequest.h"
|
||||
#include "model/ListUsersResult.h"
|
||||
#include "model/ListWorkFlowNodesRequest.h"
|
||||
#include "model/ListWorkFlowNodesResult.h"
|
||||
#include "model/ListWorkFlowTemplatesRequest.h"
|
||||
#include "model/ListWorkFlowTemplatesResult.h"
|
||||
#include "model/RegisterInstanceRequest.h"
|
||||
#include "model/RegisterInstanceResult.h"
|
||||
#include "model/RegisterUserRequest.h"
|
||||
#include "model/RegisterUserResult.h"
|
||||
#include "model/RevokeUserPermissionRequest.h"
|
||||
#include "model/RevokeUserPermissionResult.h"
|
||||
#include "model/SearchDatabaseRequest.h"
|
||||
#include "model/SearchDatabaseResult.h"
|
||||
#include "model/SearchTableRequest.h"
|
||||
#include "model/SearchTableResult.h"
|
||||
#include "model/SetOwnersRequest.h"
|
||||
#include "model/SetOwnersResult.h"
|
||||
#include "model/SubmitOrderApprovalRequest.h"
|
||||
#include "model/SubmitOrderApprovalResult.h"
|
||||
#include "model/SyncDatabaseMetaRequest.h"
|
||||
#include "model/SyncDatabaseMetaResult.h"
|
||||
#include "model/SyncInstanceMetaRequest.h"
|
||||
#include "model/SyncInstanceMetaResult.h"
|
||||
#include "model/UpdateInstanceRequest.h"
|
||||
#include "model/UpdateInstanceResult.h"
|
||||
#include "model/UpdateUserRequest.h"
|
||||
#include "model/UpdateUserResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT Dms_enterpriseClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ApproveOrderResult> ApproveOrderOutcome;
|
||||
typedef std::future<ApproveOrderOutcome> ApproveOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ApproveOrderRequest&, const ApproveOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CloseOrderResult> CloseOrderOutcome;
|
||||
typedef std::future<CloseOrderOutcome> CloseOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CloseOrderRequest&, const CloseOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateOrderResult> CreateOrderOutcome;
|
||||
typedef std::future<CreateOrderOutcome> CreateOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateOrderRequest&, const CreateOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePublishGroupTaskResult> CreatePublishGroupTaskOutcome;
|
||||
typedef std::future<CreatePublishGroupTaskOutcome> CreatePublishGroupTaskOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreatePublishGroupTaskRequest&, const CreatePublishGroupTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePublishGroupTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteInstanceResult> DeleteInstanceOutcome;
|
||||
typedef std::future<DeleteInstanceOutcome> DeleteInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::DeleteInstanceRequest&, const DeleteInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserResult> DeleteUserOutcome;
|
||||
typedef std::future<DeleteUserOutcome> DeleteUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::DeleteUserRequest&, const DeleteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableUserResult> DisableUserOutcome;
|
||||
typedef std::future<DisableUserOutcome> DisableUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::DisableUserRequest&, const DisableUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableUserResult> EnableUserOutcome;
|
||||
typedef std::future<EnableUserOutcome> EnableUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::EnableUserRequest&, const EnableUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExecuteDataCorrectResult> ExecuteDataCorrectOutcome;
|
||||
typedef std::future<ExecuteDataCorrectOutcome> ExecuteDataCorrectOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ExecuteDataCorrectRequest&, const ExecuteDataCorrectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteDataCorrectAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExecuteDataExportResult> ExecuteDataExportOutcome;
|
||||
typedef std::future<ExecuteDataExportOutcome> ExecuteDataExportOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ExecuteDataExportRequest&, const ExecuteDataExportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteDataExportAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetApprovalDetailResult> GetApprovalDetailOutcome;
|
||||
typedef std::future<GetApprovalDetailOutcome> GetApprovalDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetApprovalDetailRequest&, const GetApprovalDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetApprovalDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataCorrectBackupFilesResult> GetDataCorrectBackupFilesOutcome;
|
||||
typedef std::future<GetDataCorrectBackupFilesOutcome> GetDataCorrectBackupFilesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataCorrectBackupFilesRequest&, const GetDataCorrectBackupFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataCorrectBackupFilesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataCorrectOrderDetailResult> GetDataCorrectOrderDetailOutcome;
|
||||
typedef std::future<GetDataCorrectOrderDetailOutcome> GetDataCorrectOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataCorrectOrderDetailRequest&, const GetDataCorrectOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataCorrectOrderDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataExportDownloadURLResult> GetDataExportDownloadURLOutcome;
|
||||
typedef std::future<GetDataExportDownloadURLOutcome> GetDataExportDownloadURLOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataExportDownloadURLRequest&, const GetDataExportDownloadURLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataExportDownloadURLAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataExportOrderDetailResult> GetDataExportOrderDetailOutcome;
|
||||
typedef std::future<GetDataExportOrderDetailOutcome> GetDataExportOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataExportOrderDetailRequest&, const GetDataExportOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataExportOrderDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDatabaseResult> GetDatabaseOutcome;
|
||||
typedef std::future<GetDatabaseOutcome> GetDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDatabaseRequest&, const GetDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetInstanceResult> GetInstanceOutcome;
|
||||
typedef std::future<GetInstanceOutcome> GetInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetInstanceRequest&, const GetInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetLogicDatabaseResult> GetLogicDatabaseOutcome;
|
||||
typedef std::future<GetLogicDatabaseOutcome> GetLogicDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetLogicDatabaseRequest&, const GetLogicDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLogicDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetOpLogResult> GetOpLogOutcome;
|
||||
typedef std::future<GetOpLogOutcome> GetOpLogOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetOpLogRequest&, const GetOpLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOpLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetOrderBaseInfoResult> GetOrderBaseInfoOutcome;
|
||||
typedef std::future<GetOrderBaseInfoOutcome> GetOrderBaseInfoOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetOrderBaseInfoRequest&, const GetOrderBaseInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOrderBaseInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::GrantUserPermissionResult> GrantUserPermissionOutcome;
|
||||
typedef std::future<GrantUserPermissionOutcome> GrantUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GrantUserPermissionRequest&, const GrantUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantUserPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListColumnsResult> ListColumnsOutcome;
|
||||
typedef std::future<ListColumnsOutcome> ListColumnsOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListColumnsRequest&, const ListColumnsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListColumnsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDatabaseUserPermssionsResult> ListDatabaseUserPermssionsOutcome;
|
||||
typedef std::future<ListDatabaseUserPermssionsOutcome> ListDatabaseUserPermssionsOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDatabaseUserPermssionsRequest&, const ListDatabaseUserPermssionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatabaseUserPermssionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDatabasesResult> ListDatabasesOutcome;
|
||||
typedef std::future<ListDatabasesOutcome> ListDatabasesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDatabasesRequest&, const ListDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatabasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListIndexesResult> ListIndexesOutcome;
|
||||
typedef std::future<ListIndexesOutcome> ListIndexesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListIndexesRequest&, const ListIndexesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListIndexesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstancesResult> ListInstancesOutcome;
|
||||
typedef std::future<ListInstancesOutcome> ListInstancesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListInstancesRequest&, const ListInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListLogicDatabasesResult> ListLogicDatabasesOutcome;
|
||||
typedef std::future<ListLogicDatabasesOutcome> ListLogicDatabasesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListLogicDatabasesRequest&, const ListLogicDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLogicDatabasesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListLogicTablesResult> ListLogicTablesOutcome;
|
||||
typedef std::future<ListLogicTablesOutcome> ListLogicTablesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListLogicTablesRequest&, const ListLogicTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLogicTablesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListOrdersResult> ListOrdersOutcome;
|
||||
typedef std::future<ListOrdersOutcome> ListOrdersOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListOrdersRequest&, const ListOrdersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOrdersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTablesResult> ListTablesOutcome;
|
||||
typedef std::future<ListTablesOutcome> ListTablesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListTablesRequest&, const ListTablesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTablesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUserPermissionsResult> ListUserPermissionsOutcome;
|
||||
typedef std::future<ListUserPermissionsOutcome> ListUserPermissionsOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUserPermissionsRequest&, const ListUserPermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserPermissionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
|
||||
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListWorkFlowNodesResult> ListWorkFlowNodesOutcome;
|
||||
typedef std::future<ListWorkFlowNodesOutcome> ListWorkFlowNodesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListWorkFlowNodesRequest&, const ListWorkFlowNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListWorkFlowNodesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListWorkFlowTemplatesResult> ListWorkFlowTemplatesOutcome;
|
||||
typedef std::future<ListWorkFlowTemplatesOutcome> ListWorkFlowTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListWorkFlowTemplatesRequest&, const ListWorkFlowTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListWorkFlowTemplatesAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterInstanceResult> RegisterInstanceOutcome;
|
||||
typedef std::future<RegisterInstanceOutcome> RegisterInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::RegisterInstanceRequest&, const RegisterInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RegisterUserResult> RegisterUserOutcome;
|
||||
typedef std::future<RegisterUserOutcome> RegisterUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::RegisterUserRequest&, const RegisterUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::RevokeUserPermissionResult> RevokeUserPermissionOutcome;
|
||||
typedef std::future<RevokeUserPermissionOutcome> RevokeUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::RevokeUserPermissionRequest&, const RevokeUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeUserPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchDatabaseResult> SearchDatabaseOutcome;
|
||||
typedef std::future<SearchDatabaseOutcome> SearchDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SearchDatabaseRequest&, const SearchDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchTableResult> SearchTableOutcome;
|
||||
typedef std::future<SearchTableOutcome> SearchTableOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SearchTableRequest&, const SearchTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTableAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetOwnersResult> SetOwnersOutcome;
|
||||
typedef std::future<SetOwnersOutcome> SetOwnersOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SetOwnersRequest&, const SetOwnersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetOwnersAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitOrderApprovalResult> SubmitOrderApprovalOutcome;
|
||||
typedef std::future<SubmitOrderApprovalOutcome> SubmitOrderApprovalOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SubmitOrderApprovalRequest&, const SubmitOrderApprovalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitOrderApprovalAsyncHandler;
|
||||
typedef Outcome<Error, Model::SyncDatabaseMetaResult> SyncDatabaseMetaOutcome;
|
||||
typedef std::future<SyncDatabaseMetaOutcome> SyncDatabaseMetaOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SyncDatabaseMetaRequest&, const SyncDatabaseMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncDatabaseMetaAsyncHandler;
|
||||
typedef Outcome<Error, Model::SyncInstanceMetaResult> SyncInstanceMetaOutcome;
|
||||
typedef std::future<SyncInstanceMetaOutcome> SyncInstanceMetaOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SyncInstanceMetaRequest&, const SyncInstanceMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncInstanceMetaAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateInstanceResult> UpdateInstanceOutcome;
|
||||
typedef std::future<UpdateInstanceOutcome> UpdateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::UpdateInstanceRequest&, const UpdateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateUserResult> UpdateUserOutcome;
|
||||
typedef std::future<UpdateUserOutcome> UpdateUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::UpdateUserRequest&, const UpdateUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateUserAsyncHandler;
|
||||
|
||||
Dms_enterpriseClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Dms_enterpriseClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Dms_enterpriseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Dms_enterpriseClient();
|
||||
ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const;
|
||||
void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const;
|
||||
CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const;
|
||||
void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const;
|
||||
CreateOrderOutcome createOrder(const Model::CreateOrderRequest &request)const;
|
||||
void createOrderAsync(const Model::CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateOrderOutcomeCallable createOrderCallable(const Model::CreateOrderRequest& request) const;
|
||||
CreatePublishGroupTaskOutcome createPublishGroupTask(const Model::CreatePublishGroupTaskRequest &request)const;
|
||||
void createPublishGroupTaskAsync(const Model::CreatePublishGroupTaskRequest& request, const CreatePublishGroupTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePublishGroupTaskOutcomeCallable createPublishGroupTaskCallable(const Model::CreatePublishGroupTaskRequest& request) const;
|
||||
DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const;
|
||||
void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const;
|
||||
DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const;
|
||||
void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const;
|
||||
DisableUserOutcome disableUser(const Model::DisableUserRequest &request)const;
|
||||
void disableUserAsync(const Model::DisableUserRequest& request, const DisableUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableUserOutcomeCallable disableUserCallable(const Model::DisableUserRequest& request) const;
|
||||
EnableUserOutcome enableUser(const Model::EnableUserRequest &request)const;
|
||||
void enableUserAsync(const Model::EnableUserRequest& request, const EnableUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableUserOutcomeCallable enableUserCallable(const Model::EnableUserRequest& request) const;
|
||||
ExecuteDataCorrectOutcome executeDataCorrect(const Model::ExecuteDataCorrectRequest &request)const;
|
||||
void executeDataCorrectAsync(const Model::ExecuteDataCorrectRequest& request, const ExecuteDataCorrectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExecuteDataCorrectOutcomeCallable executeDataCorrectCallable(const Model::ExecuteDataCorrectRequest& request) const;
|
||||
ExecuteDataExportOutcome executeDataExport(const Model::ExecuteDataExportRequest &request)const;
|
||||
void executeDataExportAsync(const Model::ExecuteDataExportRequest& request, const ExecuteDataExportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExecuteDataExportOutcomeCallable executeDataExportCallable(const Model::ExecuteDataExportRequest& request) const;
|
||||
GetApprovalDetailOutcome getApprovalDetail(const Model::GetApprovalDetailRequest &request)const;
|
||||
void getApprovalDetailAsync(const Model::GetApprovalDetailRequest& request, const GetApprovalDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetApprovalDetailOutcomeCallable getApprovalDetailCallable(const Model::GetApprovalDetailRequest& request) const;
|
||||
GetDataCorrectBackupFilesOutcome getDataCorrectBackupFiles(const Model::GetDataCorrectBackupFilesRequest &request)const;
|
||||
void getDataCorrectBackupFilesAsync(const Model::GetDataCorrectBackupFilesRequest& request, const GetDataCorrectBackupFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataCorrectBackupFilesOutcomeCallable getDataCorrectBackupFilesCallable(const Model::GetDataCorrectBackupFilesRequest& request) const;
|
||||
GetDataCorrectOrderDetailOutcome getDataCorrectOrderDetail(const Model::GetDataCorrectOrderDetailRequest &request)const;
|
||||
void getDataCorrectOrderDetailAsync(const Model::GetDataCorrectOrderDetailRequest& request, const GetDataCorrectOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataCorrectOrderDetailOutcomeCallable getDataCorrectOrderDetailCallable(const Model::GetDataCorrectOrderDetailRequest& request) const;
|
||||
GetDataExportDownloadURLOutcome getDataExportDownloadURL(const Model::GetDataExportDownloadURLRequest &request)const;
|
||||
void getDataExportDownloadURLAsync(const Model::GetDataExportDownloadURLRequest& request, const GetDataExportDownloadURLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataExportDownloadURLOutcomeCallable getDataExportDownloadURLCallable(const Model::GetDataExportDownloadURLRequest& request) const;
|
||||
GetDataExportOrderDetailOutcome getDataExportOrderDetail(const Model::GetDataExportOrderDetailRequest &request)const;
|
||||
void getDataExportOrderDetailAsync(const Model::GetDataExportOrderDetailRequest& request, const GetDataExportOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataExportOrderDetailOutcomeCallable getDataExportOrderDetailCallable(const Model::GetDataExportOrderDetailRequest& request) const;
|
||||
GetDatabaseOutcome getDatabase(const Model::GetDatabaseRequest &request)const;
|
||||
void getDatabaseAsync(const Model::GetDatabaseRequest& request, const GetDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDatabaseOutcomeCallable getDatabaseCallable(const Model::GetDatabaseRequest& request) const;
|
||||
GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const;
|
||||
void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const;
|
||||
GetLogicDatabaseOutcome getLogicDatabase(const Model::GetLogicDatabaseRequest &request)const;
|
||||
void getLogicDatabaseAsync(const Model::GetLogicDatabaseRequest& request, const GetLogicDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLogicDatabaseOutcomeCallable getLogicDatabaseCallable(const Model::GetLogicDatabaseRequest& request) const;
|
||||
GetOpLogOutcome getOpLog(const Model::GetOpLogRequest &request)const;
|
||||
void getOpLogAsync(const Model::GetOpLogRequest& request, const GetOpLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOpLogOutcomeCallable getOpLogCallable(const Model::GetOpLogRequest& request) const;
|
||||
GetOrderBaseInfoOutcome getOrderBaseInfo(const Model::GetOrderBaseInfoRequest &request)const;
|
||||
void getOrderBaseInfoAsync(const Model::GetOrderBaseInfoRequest& request, const GetOrderBaseInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOrderBaseInfoOutcomeCallable getOrderBaseInfoCallable(const Model::GetOrderBaseInfoRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
GrantUserPermissionOutcome grantUserPermission(const Model::GrantUserPermissionRequest &request)const;
|
||||
void grantUserPermissionAsync(const Model::GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantUserPermissionOutcomeCallable grantUserPermissionCallable(const Model::GrantUserPermissionRequest& request) const;
|
||||
ListColumnsOutcome listColumns(const Model::ListColumnsRequest &request)const;
|
||||
void listColumnsAsync(const Model::ListColumnsRequest& request, const ListColumnsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListColumnsOutcomeCallable listColumnsCallable(const Model::ListColumnsRequest& request) const;
|
||||
ListDatabaseUserPermssionsOutcome listDatabaseUserPermssions(const Model::ListDatabaseUserPermssionsRequest &request)const;
|
||||
void listDatabaseUserPermssionsAsync(const Model::ListDatabaseUserPermssionsRequest& request, const ListDatabaseUserPermssionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatabaseUserPermssionsOutcomeCallable listDatabaseUserPermssionsCallable(const Model::ListDatabaseUserPermssionsRequest& request) const;
|
||||
ListDatabasesOutcome listDatabases(const Model::ListDatabasesRequest &request)const;
|
||||
void listDatabasesAsync(const Model::ListDatabasesRequest& request, const ListDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatabasesOutcomeCallable listDatabasesCallable(const Model::ListDatabasesRequest& request) const;
|
||||
ListIndexesOutcome listIndexes(const Model::ListIndexesRequest &request)const;
|
||||
void listIndexesAsync(const Model::ListIndexesRequest& request, const ListIndexesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListIndexesOutcomeCallable listIndexesCallable(const Model::ListIndexesRequest& request) const;
|
||||
ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const;
|
||||
void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const;
|
||||
ListLogicDatabasesOutcome listLogicDatabases(const Model::ListLogicDatabasesRequest &request)const;
|
||||
void listLogicDatabasesAsync(const Model::ListLogicDatabasesRequest& request, const ListLogicDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListLogicDatabasesOutcomeCallable listLogicDatabasesCallable(const Model::ListLogicDatabasesRequest& request) const;
|
||||
ListLogicTablesOutcome listLogicTables(const Model::ListLogicTablesRequest &request)const;
|
||||
void listLogicTablesAsync(const Model::ListLogicTablesRequest& request, const ListLogicTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListLogicTablesOutcomeCallable listLogicTablesCallable(const Model::ListLogicTablesRequest& request) const;
|
||||
ListOrdersOutcome listOrders(const Model::ListOrdersRequest &request)const;
|
||||
void listOrdersAsync(const Model::ListOrdersRequest& request, const ListOrdersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOrdersOutcomeCallable listOrdersCallable(const Model::ListOrdersRequest& request) const;
|
||||
ListTablesOutcome listTables(const Model::ListTablesRequest &request)const;
|
||||
void listTablesAsync(const Model::ListTablesRequest& request, const ListTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTablesOutcomeCallable listTablesCallable(const Model::ListTablesRequest& request) const;
|
||||
ListUserPermissionsOutcome listUserPermissions(const Model::ListUserPermissionsRequest &request)const;
|
||||
void listUserPermissionsAsync(const Model::ListUserPermissionsRequest& request, const ListUserPermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUserPermissionsOutcomeCallable listUserPermissionsCallable(const Model::ListUserPermissionsRequest& request) const;
|
||||
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
|
||||
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
|
||||
ListWorkFlowNodesOutcome listWorkFlowNodes(const Model::ListWorkFlowNodesRequest &request)const;
|
||||
void listWorkFlowNodesAsync(const Model::ListWorkFlowNodesRequest& request, const ListWorkFlowNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListWorkFlowNodesOutcomeCallable listWorkFlowNodesCallable(const Model::ListWorkFlowNodesRequest& request) const;
|
||||
ListWorkFlowTemplatesOutcome listWorkFlowTemplates(const Model::ListWorkFlowTemplatesRequest &request)const;
|
||||
void listWorkFlowTemplatesAsync(const Model::ListWorkFlowTemplatesRequest& request, const ListWorkFlowTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListWorkFlowTemplatesOutcomeCallable listWorkFlowTemplatesCallable(const Model::ListWorkFlowTemplatesRequest& request) const;
|
||||
RegisterInstanceOutcome registerInstance(const Model::RegisterInstanceRequest &request)const;
|
||||
void registerInstanceAsync(const Model::RegisterInstanceRequest& request, const RegisterInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterInstanceOutcomeCallable registerInstanceCallable(const Model::RegisterInstanceRequest& request) const;
|
||||
RegisterUserOutcome registerUser(const Model::RegisterUserRequest &request)const;
|
||||
void registerUserAsync(const Model::RegisterUserRequest& request, const RegisterUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RegisterUserOutcomeCallable registerUserCallable(const Model::RegisterUserRequest& request) const;
|
||||
RevokeUserPermissionOutcome revokeUserPermission(const Model::RevokeUserPermissionRequest &request)const;
|
||||
void revokeUserPermissionAsync(const Model::RevokeUserPermissionRequest& request, const RevokeUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeUserPermissionOutcomeCallable revokeUserPermissionCallable(const Model::RevokeUserPermissionRequest& request) const;
|
||||
SearchDatabaseOutcome searchDatabase(const Model::SearchDatabaseRequest &request)const;
|
||||
void searchDatabaseAsync(const Model::SearchDatabaseRequest& request, const SearchDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchDatabaseOutcomeCallable searchDatabaseCallable(const Model::SearchDatabaseRequest& request) const;
|
||||
SearchTableOutcome searchTable(const Model::SearchTableRequest &request)const;
|
||||
void searchTableAsync(const Model::SearchTableRequest& request, const SearchTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTableOutcomeCallable searchTableCallable(const Model::SearchTableRequest& request) const;
|
||||
SetOwnersOutcome setOwners(const Model::SetOwnersRequest &request)const;
|
||||
void setOwnersAsync(const Model::SetOwnersRequest& request, const SetOwnersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetOwnersOutcomeCallable setOwnersCallable(const Model::SetOwnersRequest& request) const;
|
||||
SubmitOrderApprovalOutcome submitOrderApproval(const Model::SubmitOrderApprovalRequest &request)const;
|
||||
void submitOrderApprovalAsync(const Model::SubmitOrderApprovalRequest& request, const SubmitOrderApprovalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitOrderApprovalOutcomeCallable submitOrderApprovalCallable(const Model::SubmitOrderApprovalRequest& request) const;
|
||||
SyncDatabaseMetaOutcome syncDatabaseMeta(const Model::SyncDatabaseMetaRequest &request)const;
|
||||
void syncDatabaseMetaAsync(const Model::SyncDatabaseMetaRequest& request, const SyncDatabaseMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SyncDatabaseMetaOutcomeCallable syncDatabaseMetaCallable(const Model::SyncDatabaseMetaRequest& request) const;
|
||||
SyncInstanceMetaOutcome syncInstanceMeta(const Model::SyncInstanceMetaRequest &request)const;
|
||||
void syncInstanceMetaAsync(const Model::SyncInstanceMetaRequest& request, const SyncInstanceMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SyncInstanceMetaOutcomeCallable syncInstanceMetaCallable(const Model::SyncInstanceMetaRequest& request) const;
|
||||
UpdateInstanceOutcome updateInstance(const Model::UpdateInstanceRequest &request)const;
|
||||
void updateInstanceAsync(const Model::UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateInstanceOutcomeCallable updateInstanceCallable(const Model::UpdateInstanceRequest& request) const;
|
||||
UpdateUserOutcome updateUser(const Model::UpdateUserRequest &request)const;
|
||||
void updateUserAsync(const Model::UpdateUserRequest& request, const UpdateUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateUserOutcomeCallable updateUserCallable(const Model::UpdateUserRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISECLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_DMS_ENTERPRISEEXPORT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISEEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DMS_ENTERPRISE_LIBRARY)
|
||||
# define ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DMS_ENTERPRISE_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_DMS_ENTERPRISEEXPORT_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_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ApproveOrderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ApproveOrderRequest();
|
||||
~ApproveOrderRequest();
|
||||
|
||||
std::string getApprovalType()const;
|
||||
void setApprovalType(const std::string& approvalType);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
long getWorkflowInstanceId()const;
|
||||
void setWorkflowInstanceId(long workflowInstanceId);
|
||||
|
||||
private:
|
||||
std::string approvalType_;
|
||||
long tid_;
|
||||
long workflowInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERREQUEST_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_DMS_ENTERPRISE_MODEL_APPROVEORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ApproveOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ApproveOrderResult();
|
||||
explicit ApproveOrderResult(const std::string &payload);
|
||||
~ApproveOrderResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_APPROVEORDERRESULT_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_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CloseOrderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CloseOrderRequest();
|
||||
~CloseOrderRequest();
|
||||
|
||||
long getOrderId()const;
|
||||
void setOrderId(long orderId);
|
||||
std::string getCloseReason()const;
|
||||
void setCloseReason(const std::string& closeReason);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
long orderId_;
|
||||
std::string closeReason_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERREQUEST_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_DMS_ENTERPRISE_MODEL_CLOSEORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CloseOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CloseOrderResult();
|
||||
explicit CloseOrderResult(const std::string &payload);
|
||||
~CloseOrderResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CLOSEORDERRESULT_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_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateOrderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateOrderRequest();
|
||||
~CreateOrderRequest();
|
||||
|
||||
std::string getPluginType()const;
|
||||
void setPluginType(const std::string& pluginType);
|
||||
std::string getComment()const;
|
||||
void setComment(const std::string& comment);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
std::map<std::string, std::string> getPluginParam()const;
|
||||
void setPluginParam(const std::map<std::string, std::string>& pluginParam);
|
||||
std::string getRelatedUserList()const;
|
||||
void setRelatedUserList(const std::string& relatedUserList);
|
||||
|
||||
private:
|
||||
std::string pluginType_;
|
||||
std::string comment_;
|
||||
long tid_;
|
||||
std::map<std::string, std::string> pluginParam_;
|
||||
std::string relatedUserList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERREQUEST_H_
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_CREATEORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateOrderResult();
|
||||
explicit CreateOrderResult(const std::string &payload);
|
||||
~CreateOrderResult();
|
||||
std::vector<std::string> getCreateOrderResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> createOrderResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEORDERRESULT_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_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreatePublishGroupTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreatePublishGroupTaskRequest();
|
||||
~CreatePublishGroupTaskRequest();
|
||||
|
||||
long getOrderId()const;
|
||||
void setOrderId(long orderId);
|
||||
int getDbId()const;
|
||||
void setDbId(int dbId);
|
||||
std::string getPlanTime()const;
|
||||
void setPlanTime(const std::string& planTime);
|
||||
bool getLogic()const;
|
||||
void setLogic(bool logic);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
std::string getPublishStrategy()const;
|
||||
void setPublishStrategy(const std::string& publishStrategy);
|
||||
|
||||
private:
|
||||
long orderId_;
|
||||
int dbId_;
|
||||
std::string planTime_;
|
||||
bool logic_;
|
||||
long tid_;
|
||||
std::string publishStrategy_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKREQUEST_H_
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreatePublishGroupTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreatePublishGroupTaskResult();
|
||||
explicit CreatePublishGroupTaskResult(const std::string &payload);
|
||||
~CreatePublishGroupTaskResult();
|
||||
long getTaskId()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long taskId_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPUBLISHGROUPTASKRESULT_H_
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteInstanceRequest();
|
||||
~DeleteInstanceRequest();
|
||||
|
||||
int getPort()const;
|
||||
void setPort(int port);
|
||||
std::string getHost()const;
|
||||
void setHost(const std::string& host);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
std::string getSid()const;
|
||||
void setSid(const std::string& sid);
|
||||
|
||||
private:
|
||||
int port_;
|
||||
std::string host_;
|
||||
long tid_;
|
||||
std::string sid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCEREQUEST_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_DMS_ENTERPRISE_MODEL_DELETEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteInstanceResult();
|
||||
explicit DeleteInstanceResult(const std::string &payload);
|
||||
~DeleteInstanceResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEINSTANCERESULT_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_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteUserRequest();
|
||||
~DeleteUserRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERREQUEST_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_DMS_ENTERPRISE_MODEL_DELETEUSERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteUserResult();
|
||||
explicit DeleteUserResult(const std::string &payload);
|
||||
~DeleteUserResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEUSERRESULT_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_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DisableUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DisableUserRequest();
|
||||
~DisableUserRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERREQUEST_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_DMS_ENTERPRISE_MODEL_DISABLEUSERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DisableUserResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DisableUserResult();
|
||||
explicit DisableUserResult(const std::string &payload);
|
||||
~DisableUserResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DISABLEUSERRESULT_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user