Compare commits

..

19 Commits

Author SHA1 Message Date
sdk-team
d7a89ac3dc Add isv interface. 2020-10-20 07:51:00 +00:00
sdk-team
b98f01cab4 Generated 2016-11-01 for live. 2020-10-20 01:10:27 +00:00
sdk-team
675ab8f60f Add a new interface for asynchronous image translation. 2020-10-19 12:14:21 +00:00
sdk-team
9fd70bc2bf Metering 1019. 2020-10-19 09:09:57 +00:00
wb-hx510875
ee91c28732 fix: set http body with body parameters 2020-10-19 11:35:25 +08:00
sdk-team
ec9ecb41d2 Metering 1019. 2020-10-19 02:08:09 +00:00
sdk-team
272e447860 Metering 1019. 2020-10-19 02:01:12 +00:00
sdk-team
3af83f0124 Metering. 2020-10-17 12:39:03 +00:00
sdk-team
2f31a44faf Metering. 2020-10-17 03:02:33 +00:00
sdk-team
512b1bb5c5 Metering. 2020-10-16 15:46:32 +00:00
sdk-team
564c05144a Metering. 2020-10-16 15:01:41 +00:00
sdk-team
8aa1d22f90 Metering. 2020-10-16 14:47:58 +00:00
sdk-team
14ebba9911 Metering. 2020-10-16 14:25:12 +00:00
sdk-team
38438abdfb Supported AndroidNotificationNotifyId for Push and MassPush. 2020-10-16 08:29:54 +00:00
sdk-team
e72934f959 Support create for serverlesshbase. 2020-10-16 08:14:07 +00:00
wb-hx510875
076ff65f85 fix: set content-type default header 2020-10-16 10:52:14 +08:00
sdk-team
1fb31c98d9 Update cert API. 2020-10-16 01:44:01 +00:00
sdk-team
d704ed0f33 Update cert API. 2020-10-16 01:38:46 +00:00
wb-hx510875
b0fe238f34 fix: set content-md5 header when content is empty 2020-10-15 18:13:43 +08:00
69 changed files with 3239 additions and 2 deletions

View File

@@ -1,3 +1,52 @@
2020-10-20 Version: patch
- Add isv interface.
2020-10-20 Version: patch
- Generated 2016-11-01 for `live`.
2020-10-19 Version: patch
- Add a new interface for asynchronous image translation.
2020-10-19 Version: patch
- Metering 1019.
2020-10-19 Version: patch
- Metering 1019.
2020-10-19 Version: patch
- Metering 1019.
2020-10-17 Version: patch
- Metering.
2020-10-17 Version: patch
- Metering.
2020-10-16 Version: patch
- Metering.
2020-10-16 Version: patch
- Metering.
2020-10-16 Version: patch
- Metering.
2020-10-16 Version: patch
- Metering.
2020-10-16 Version: patch
- Supported AndroidNotificationNotifyId for Push and MassPush.
- Supported iOSNotificationCollapseId for Push and MassPush.
2020-10-16 Version: patch
- Support create for serverlesshbase.
2020-10-16 Version: patch
- Update cert API.
2020-10-16 Version: patch
- Update cert API.
2020-10-15 Version: patch
- Supported TAG APIs.

View File

@@ -23,6 +23,8 @@ set(alimt_public_header
set(alimt_public_header_model
include/alibabacloud/alimt/model/CreateDocTranslateTaskRequest.h
include/alibabacloud/alimt/model/CreateDocTranslateTaskResult.h
include/alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h
include/alibabacloud/alimt/model/CreateImageTranslateTaskResult.h
include/alibabacloud/alimt/model/GetDetectLanguageRequest.h
include/alibabacloud/alimt/model/GetDetectLanguageResult.h
include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
@@ -31,6 +33,8 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/GetImageDiagnoseResult.h
include/alibabacloud/alimt/model/GetImageTranslateRequest.h
include/alibabacloud/alimt/model/GetImageTranslateResult.h
include/alibabacloud/alimt/model/GetImageTranslateTaskRequest.h
include/alibabacloud/alimt/model/GetImageTranslateTaskResult.h
include/alibabacloud/alimt/model/GetTitleDiagnoseRequest.h
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
@@ -50,6 +54,8 @@ set(alimt_src
src/AlimtClient.cc
src/model/CreateDocTranslateTaskRequest.cc
src/model/CreateDocTranslateTaskResult.cc
src/model/CreateImageTranslateTaskRequest.cc
src/model/CreateImageTranslateTaskResult.cc
src/model/GetDetectLanguageRequest.cc
src/model/GetDetectLanguageResult.cc
src/model/GetDocTranslateTaskRequest.cc
@@ -58,6 +64,8 @@ set(alimt_src
src/model/GetImageDiagnoseResult.cc
src/model/GetImageTranslateRequest.cc
src/model/GetImageTranslateResult.cc
src/model/GetImageTranslateTaskRequest.cc
src/model/GetImageTranslateTaskResult.cc
src/model/GetTitleDiagnoseRequest.cc
src/model/GetTitleDiagnoseResult.cc
src/model/GetTitleGenerateRequest.cc

View File

@@ -24,6 +24,8 @@
#include "AlimtExport.h"
#include "model/CreateDocTranslateTaskRequest.h"
#include "model/CreateDocTranslateTaskResult.h"
#include "model/CreateImageTranslateTaskRequest.h"
#include "model/CreateImageTranslateTaskResult.h"
#include "model/GetDetectLanguageRequest.h"
#include "model/GetDetectLanguageResult.h"
#include "model/GetDocTranslateTaskRequest.h"
@@ -32,6 +34,8 @@
#include "model/GetImageDiagnoseResult.h"
#include "model/GetImageTranslateRequest.h"
#include "model/GetImageTranslateResult.h"
#include "model/GetImageTranslateTaskRequest.h"
#include "model/GetImageTranslateTaskResult.h"
#include "model/GetTitleDiagnoseRequest.h"
#include "model/GetTitleDiagnoseResult.h"
#include "model/GetTitleGenerateRequest.h"
@@ -58,6 +62,9 @@ namespace AlibabaCloud
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::CreateImageTranslateTaskResult> CreateImageTranslateTaskOutcome;
typedef std::future<CreateImageTranslateTaskOutcome> CreateImageTranslateTaskOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::CreateImageTranslateTaskRequest&, const CreateImageTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateImageTranslateTaskAsyncHandler;
typedef Outcome<Error, Model::GetDetectLanguageResult> GetDetectLanguageOutcome;
typedef std::future<GetDetectLanguageOutcome> GetDetectLanguageOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetDetectLanguageRequest&, const GetDetectLanguageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDetectLanguageAsyncHandler;
@@ -70,6 +77,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetImageTranslateResult> GetImageTranslateOutcome;
typedef std::future<GetImageTranslateOutcome> GetImageTranslateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetImageTranslateRequest&, const GetImageTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageTranslateAsyncHandler;
typedef Outcome<Error, Model::GetImageTranslateTaskResult> GetImageTranslateTaskOutcome;
typedef std::future<GetImageTranslateTaskOutcome> GetImageTranslateTaskOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetImageTranslateTaskRequest&, const GetImageTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageTranslateTaskAsyncHandler;
typedef Outcome<Error, Model::GetTitleDiagnoseResult> GetTitleDiagnoseOutcome;
typedef std::future<GetTitleDiagnoseOutcome> GetTitleDiagnoseOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleDiagnoseRequest&, const GetTitleDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleDiagnoseAsyncHandler;
@@ -99,6 +109,9 @@ namespace AlibabaCloud
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;
CreateImageTranslateTaskOutcome createImageTranslateTask(const Model::CreateImageTranslateTaskRequest &request)const;
void createImageTranslateTaskAsync(const Model::CreateImageTranslateTaskRequest& request, const CreateImageTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateImageTranslateTaskOutcomeCallable createImageTranslateTaskCallable(const Model::CreateImageTranslateTaskRequest& request) const;
GetDetectLanguageOutcome getDetectLanguage(const Model::GetDetectLanguageRequest &request)const;
void getDetectLanguageAsync(const Model::GetDetectLanguageRequest& request, const GetDetectLanguageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDetectLanguageOutcomeCallable getDetectLanguageCallable(const Model::GetDetectLanguageRequest& request) const;
@@ -111,6 +124,9 @@ namespace AlibabaCloud
GetImageTranslateOutcome getImageTranslate(const Model::GetImageTranslateRequest &request)const;
void getImageTranslateAsync(const Model::GetImageTranslateRequest& request, const GetImageTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetImageTranslateOutcomeCallable getImageTranslateCallable(const Model::GetImageTranslateRequest& request) const;
GetImageTranslateTaskOutcome getImageTranslateTask(const Model::GetImageTranslateTaskRequest &request)const;
void getImageTranslateTaskAsync(const Model::GetImageTranslateTaskRequest& request, const GetImageTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetImageTranslateTaskOutcomeCallable getImageTranslateTaskCallable(const Model::GetImageTranslateTaskRequest& request) const;
GetTitleDiagnoseOutcome getTitleDiagnose(const Model::GetTitleDiagnoseRequest &request)const;
void getTitleDiagnoseAsync(const Model::GetTitleDiagnoseRequest& request, const GetTitleDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleDiagnoseOutcomeCallable getTitleDiagnoseCallable(const Model::GetTitleDiagnoseRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_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 CreateImageTranslateTaskRequest : public RpcServiceRequest
{
public:
CreateImageTranslateTaskRequest();
~CreateImageTranslateTaskRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getUrlList()const;
void setUrlList(const std::string& urlList);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string clientToken_;
std::string urlList_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKREQUEST_H_

View 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_CREATEIMAGETRANSLATETASKRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_CREATEIMAGETRANSLATETASKRESULT_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 CreateImageTranslateTaskResult : public ServiceResult
{
public:
struct Data
{
std::string taskId;
};
CreateImageTranslateTaskResult();
explicit CreateImageTranslateTaskResult(const std::string &payload);
~CreateImageTranslateTaskResult();
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_CREATEIMAGETRANSLATETASKRESULT_H_

View File

@@ -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_GETIMAGETRANSLATETASKREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_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 GetImageTranslateTaskRequest : public RpcServiceRequest
{
public:
GetImageTranslateTaskRequest();
~GetImageTranslateTaskRequest();
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKREQUEST_H_

View 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_GETIMAGETRANSLATETASKRESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATETASKRESULT_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 GetImageTranslateTaskResult : public ServiceResult
{
public:
struct Data
{
std::string imageData;
};
GetImageTranslateTaskResult();
explicit GetImageTranslateTaskResult(const std::string &payload);
~GetImageTranslateTaskResult();
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_GETIMAGETRANSLATETASKRESULT_H_

View File

@@ -87,6 +87,42 @@ AlimtClient::CreateDocTranslateTaskOutcomeCallable AlimtClient::createDocTransla
return task->get_future();
}
AlimtClient::CreateImageTranslateTaskOutcome AlimtClient::createImageTranslateTask(const CreateImageTranslateTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateImageTranslateTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateImageTranslateTaskOutcome(CreateImageTranslateTaskResult(outcome.result()));
else
return CreateImageTranslateTaskOutcome(outcome.error());
}
void AlimtClient::createImageTranslateTaskAsync(const CreateImageTranslateTaskRequest& request, const CreateImageTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createImageTranslateTask(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::CreateImageTranslateTaskOutcomeCallable AlimtClient::createImageTranslateTaskCallable(const CreateImageTranslateTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateImageTranslateTaskOutcome()>>(
[this, request]()
{
return this->createImageTranslateTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetDetectLanguageOutcome AlimtClient::getDetectLanguage(const GetDetectLanguageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,6 +267,42 @@ AlimtClient::GetImageTranslateOutcomeCallable AlimtClient::getImageTranslateCall
return task->get_future();
}
AlimtClient::GetImageTranslateTaskOutcome AlimtClient::getImageTranslateTask(const GetImageTranslateTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetImageTranslateTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetImageTranslateTaskOutcome(GetImageTranslateTaskResult(outcome.result()));
else
return GetImageTranslateTaskOutcome(outcome.error());
}
void AlimtClient::getImageTranslateTaskAsync(const GetImageTranslateTaskRequest& request, const GetImageTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getImageTranslateTask(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetImageTranslateTaskOutcomeCallable AlimtClient::getImageTranslateTaskCallable(const GetImageTranslateTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetImageTranslateTaskOutcome()>>(
[this, request]()
{
return this->getImageTranslateTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetTitleDiagnoseOutcome AlimtClient::getTitleDiagnose(const GetTitleDiagnoseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View 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/CreateImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::CreateImageTranslateTaskRequest;
CreateImageTranslateTaskRequest::CreateImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "CreateImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateImageTranslateTaskRequest::~CreateImageTranslateTaskRequest()
{}
std::string CreateImageTranslateTaskRequest::getSourceLanguage()const
{
return sourceLanguage_;
}
void CreateImageTranslateTaskRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
}
std::string CreateImageTranslateTaskRequest::getClientToken()const
{
return clientToken_;
}
void CreateImageTranslateTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
}
std::string CreateImageTranslateTaskRequest::getUrlList()const
{
return urlList_;
}
void CreateImageTranslateTaskRequest::setUrlList(const std::string& urlList)
{
urlList_ = urlList;
setBodyParameter("UrlList", urlList);
}
std::string CreateImageTranslateTaskRequest::getExtra()const
{
return extra_;
}
void CreateImageTranslateTaskRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
}
std::string CreateImageTranslateTaskRequest::getTargetLanguage()const
{
return targetLanguage_;
}
void CreateImageTranslateTaskRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
}

View 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/CreateImageTranslateTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
CreateImageTranslateTaskResult::CreateImageTranslateTaskResult() :
ServiceResult()
{}
CreateImageTranslateTaskResult::CreateImageTranslateTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateImageTranslateTaskResult::~CreateImageTranslateTaskResult()
{}
void CreateImageTranslateTaskResult::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["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateImageTranslateTaskResult::getMessage()const
{
return message_;
}
CreateImageTranslateTaskResult::Data CreateImageTranslateTaskResult::getData()const
{
return data_;
}
int CreateImageTranslateTaskResult::getCode()const
{
return code_;
}

View 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/GetImageTranslateTaskRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateTaskRequest;
GetImageTranslateTaskRequest::GetImageTranslateTaskRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslateTask")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateTaskRequest::~GetImageTranslateTaskRequest()
{}
std::string GetImageTranslateTaskRequest::getTaskId()const
{
return taskId_;
}
void GetImageTranslateTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

View 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/GetImageTranslateTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetImageTranslateTaskResult::GetImageTranslateTaskResult() :
ServiceResult()
{}
GetImageTranslateTaskResult::GetImageTranslateTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetImageTranslateTaskResult::~GetImageTranslateTaskResult()
{}
void GetImageTranslateTaskResult::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["ImageData"].isNull())
data_.imageData = dataNode["ImageData"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetImageTranslateTaskResult::getMessage()const
{
return message_;
}
GetImageTranslateTaskResult::Data GetImageTranslateTaskResult::getData()const
{
return data_;
}
int GetImageTranslateTaskResult::getCode()const
{
return code_;
}

View File

@@ -279,6 +279,8 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/DescribeTagResourcesResult.h
include/alibabacloud/cdn/model/DescribeTopDomainsByFlowRequest.h
include/alibabacloud/cdn/model/DescribeTopDomainsByFlowResult.h
include/alibabacloud/cdn/model/DescribeUserCertificateExpireCountRequest.h
include/alibabacloud/cdn/model/DescribeUserCertificateExpireCountResult.h
include/alibabacloud/cdn/model/DescribeUserConfigsRequest.h
include/alibabacloud/cdn/model/DescribeUserConfigsResult.h
include/alibabacloud/cdn/model/DescribeUserCustomLogConfigRequest.h
@@ -678,6 +680,8 @@ set(cdn_src
src/model/DescribeTagResourcesResult.cc
src/model/DescribeTopDomainsByFlowRequest.cc
src/model/DescribeTopDomainsByFlowResult.cc
src/model/DescribeUserCertificateExpireCountRequest.cc
src/model/DescribeUserCertificateExpireCountResult.cc
src/model/DescribeUserConfigsRequest.cc
src/model/DescribeUserConfigsResult.cc
src/model/DescribeUserCustomLogConfigRequest.cc

View File

@@ -280,6 +280,8 @@
#include "model/DescribeTagResourcesResult.h"
#include "model/DescribeTopDomainsByFlowRequest.h"
#include "model/DescribeTopDomainsByFlowResult.h"
#include "model/DescribeUserCertificateExpireCountRequest.h"
#include "model/DescribeUserCertificateExpireCountResult.h"
#include "model/DescribeUserConfigsRequest.h"
#include "model/DescribeUserConfigsResult.h"
#include "model/DescribeUserCustomLogConfigRequest.h"
@@ -814,6 +816,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeTopDomainsByFlowResult> DescribeTopDomainsByFlowOutcome;
typedef std::future<DescribeTopDomainsByFlowOutcome> DescribeTopDomainsByFlowOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeTopDomainsByFlowRequest&, const DescribeTopDomainsByFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTopDomainsByFlowAsyncHandler;
typedef Outcome<Error, Model::DescribeUserCertificateExpireCountResult> DescribeUserCertificateExpireCountOutcome;
typedef std::future<DescribeUserCertificateExpireCountOutcome> DescribeUserCertificateExpireCountOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeUserCertificateExpireCountRequest&, const DescribeUserCertificateExpireCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserCertificateExpireCountAsyncHandler;
typedef Outcome<Error, Model::DescribeUserConfigsResult> DescribeUserConfigsOutcome;
typedef std::future<DescribeUserConfigsOutcome> DescribeUserConfigsOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeUserConfigsRequest&, const DescribeUserConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserConfigsAsyncHandler;
@@ -1413,6 +1418,9 @@ namespace AlibabaCloud
DescribeTopDomainsByFlowOutcome describeTopDomainsByFlow(const Model::DescribeTopDomainsByFlowRequest &request)const;
void describeTopDomainsByFlowAsync(const Model::DescribeTopDomainsByFlowRequest& request, const DescribeTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTopDomainsByFlowOutcomeCallable describeTopDomainsByFlowCallable(const Model::DescribeTopDomainsByFlowRequest& request) const;
DescribeUserCertificateExpireCountOutcome describeUserCertificateExpireCount(const Model::DescribeUserCertificateExpireCountRequest &request)const;
void describeUserCertificateExpireCountAsync(const Model::DescribeUserCertificateExpireCountRequest& request, const DescribeUserCertificateExpireCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUserCertificateExpireCountOutcomeCallable describeUserCertificateExpireCountCallable(const Model::DescribeUserCertificateExpireCountRequest& request) const;
DescribeUserConfigsOutcome describeUserConfigs(const Model::DescribeUserConfigsRequest &request)const;
void describeUserConfigsAsync(const Model::DescribeUserConfigsRequest& request, const DescribeUserConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUserConfigsOutcomeCallable describeUserConfigsCallable(const Model::DescribeUserConfigsRequest& request) const;

View File

@@ -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_CDN_MODEL_DESCRIBEUSERCERTIFICATEEXPIRECOUNTREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEUSERCERTIFICATEEXPIRECOUNTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeUserCertificateExpireCountRequest : public RpcServiceRequest
{
public:
DescribeUserCertificateExpireCountRequest();
~DescribeUserCertificateExpireCountRequest();
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEUSERCERTIFICATEEXPIRECOUNTREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEUSERCERTIFICATEEXPIRECOUNTRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEUSERCERTIFICATEEXPIRECOUNTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cdn/CdnExport.h>
namespace AlibabaCloud
{
namespace Cdn
{
namespace Model
{
class ALIBABACLOUD_CDN_EXPORT DescribeUserCertificateExpireCountResult : public ServiceResult
{
public:
DescribeUserCertificateExpireCountResult();
explicit DescribeUserCertificateExpireCountResult(const std::string &payload);
~DescribeUserCertificateExpireCountResult();
int getExpireWithin30DaysCount()const;
int getExpiredCount()const;
protected:
void parse(const std::string &payload);
private:
int expireWithin30DaysCount_;
int expiredCount_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEUSERCERTIFICATEEXPIRECOUNTRESULT_H_

View File

@@ -4695,6 +4695,42 @@ CdnClient::DescribeTopDomainsByFlowOutcomeCallable CdnClient::describeTopDomains
return task->get_future();
}
CdnClient::DescribeUserCertificateExpireCountOutcome CdnClient::describeUserCertificateExpireCount(const DescribeUserCertificateExpireCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUserCertificateExpireCountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUserCertificateExpireCountOutcome(DescribeUserCertificateExpireCountResult(outcome.result()));
else
return DescribeUserCertificateExpireCountOutcome(outcome.error());
}
void CdnClient::describeUserCertificateExpireCountAsync(const DescribeUserCertificateExpireCountRequest& request, const DescribeUserCertificateExpireCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUserCertificateExpireCount(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeUserCertificateExpireCountOutcomeCallable CdnClient::describeUserCertificateExpireCountCallable(const DescribeUserCertificateExpireCountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUserCertificateExpireCountOutcome()>>(
[this, request]()
{
return this->describeUserCertificateExpireCount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeUserConfigsOutcome CdnClient::describeUserConfigs(const DescribeUserConfigsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View 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/cdn/model/DescribeUserCertificateExpireCountRequest.h>
using AlibabaCloud::Cdn::Model::DescribeUserCertificateExpireCountRequest;
DescribeUserCertificateExpireCountRequest::DescribeUserCertificateExpireCountRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeUserCertificateExpireCount")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUserCertificateExpireCountRequest::~DescribeUserCertificateExpireCountRequest()
{}
long DescribeUserCertificateExpireCountRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeUserCertificateExpireCountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeUserCertificateExpireCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeUserCertificateExpireCountResult::DescribeUserCertificateExpireCountResult() :
ServiceResult()
{}
DescribeUserCertificateExpireCountResult::DescribeUserCertificateExpireCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserCertificateExpireCountResult::~DescribeUserCertificateExpireCountResult()
{}
void DescribeUserCertificateExpireCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ExpireWithin30DaysCount"].isNull())
expireWithin30DaysCount_ = std::stoi(value["ExpireWithin30DaysCount"].asString());
if(!value["ExpiredCount"].isNull())
expiredCount_ = std::stoi(value["ExpiredCount"].asString());
}
int DescribeUserCertificateExpireCountResult::getExpireWithin30DaysCount()const
{
return expireWithin30DaysCount_;
}
int DescribeUserCertificateExpireCountResult::getExpiredCount()const
{
return expiredCount_;
}

View File

@@ -128,6 +128,22 @@ RoaServiceClient::buildHttpRequest(const std::string &endpoint,
request.setHeader("Content-MD5",
ComputeContentMD5(msg.content(), msg.contentSize()));
request.setBody(msg.content(), msg.contentSize());
} else {
if (msg.parameter("Content-Type").empty()) {
request.setHeader("Content-Type", "application/x-www-form-urlencoded");
auto body_params = msg.bodyParameters();
std::stringstream sbody;
for (const auto &p : body_params) {
sbody << "&" << p.first << "=" << UrlEncode(p.second);
}
request.setBody(sbody.str().c_str(), sbody.str().size());
request.setHeader("Content-Length", std::to_string(request.bodySize()));
request.setHeader("Content-MD5",
ComputeContentMD5(request.body(), request.bodySize()));
} else {
request.setHeader("Content-MD5",
ComputeContentMD5(msg.content(), msg.contentSize()));
}
}
std::time_t t = std::time(nullptr);

View File

@@ -39,6 +39,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/BatchStartDcdnDomainResult.h
include/alibabacloud/dcdn/model/BatchStopDcdnDomainRequest.h
include/alibabacloud/dcdn/model/BatchStopDcdnDomainResult.h
include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestRequest.h
include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestResult.h
include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h
include/alibabacloud/dcdn/model/DeleteDcdnDomainResult.h
include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.h
@@ -163,6 +165,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h
include/alibabacloud/dcdn/model/DescribeDcdnUserTagsRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnUserTagsResult.h
include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentResult.h
include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusRequest.h
include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h
include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h
@@ -179,6 +183,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/RollbackDcdnStagingConfigResult.h
include/alibabacloud/dcdn/model/SetDcdnConfigOfVersionRequest.h
include/alibabacloud/dcdn/model/SetDcdnConfigOfVersionResult.h
include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateRequest.h
include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateResult.h
include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h
include/alibabacloud/dcdn/model/SetDcdnDomainCertificateResult.h
include/alibabacloud/dcdn/model/SetDcdnDomainStagingConfigRequest.h
@@ -198,7 +204,9 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/UpdateDcdnDomainRequest.h
include/alibabacloud/dcdn/model/UpdateDcdnDomainResult.h
include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainRequest.h
include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h )
include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h
include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerRequest.h
include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerResult.h )
set(dcdn_src
src/DcdnClient.cc
@@ -220,6 +228,8 @@ set(dcdn_src
src/model/BatchStartDcdnDomainResult.cc
src/model/BatchStopDcdnDomainRequest.cc
src/model/BatchStopDcdnDomainResult.cc
src/model/CreateDcdnCertificateSigningRequestRequest.cc
src/model/CreateDcdnCertificateSigningRequestResult.cc
src/model/DeleteDcdnDomainRequest.cc
src/model/DeleteDcdnDomainResult.cc
src/model/DeleteDcdnIpaDomainRequest.cc
@@ -344,6 +354,8 @@ set(dcdn_src
src/model/DescribeDcdnUserResourcePackageResult.cc
src/model/DescribeDcdnUserTagsRequest.cc
src/model/DescribeDcdnUserTagsResult.cc
src/model/DescribeDcdnVerifyContentRequest.cc
src/model/DescribeDcdnVerifyContentResult.cc
src/model/DescribeUserDcdnIpaStatusRequest.cc
src/model/DescribeUserDcdnIpaStatusResult.cc
src/model/DescribeUserDcdnStatusRequest.cc
@@ -360,6 +372,8 @@ set(dcdn_src
src/model/RollbackDcdnStagingConfigResult.cc
src/model/SetDcdnConfigOfVersionRequest.cc
src/model/SetDcdnConfigOfVersionResult.cc
src/model/SetDcdnDomainCSRCertificateRequest.cc
src/model/SetDcdnDomainCSRCertificateResult.cc
src/model/SetDcdnDomainCertificateRequest.cc
src/model/SetDcdnDomainCertificateResult.cc
src/model/SetDcdnDomainStagingConfigRequest.cc
@@ -379,7 +393,9 @@ set(dcdn_src
src/model/UpdateDcdnDomainRequest.cc
src/model/UpdateDcdnDomainResult.cc
src/model/UpdateDcdnIpaDomainRequest.cc
src/model/UpdateDcdnIpaDomainResult.cc )
src/model/UpdateDcdnIpaDomainResult.cc
src/model/VerifyDcdnDomainOwnerRequest.cc
src/model/VerifyDcdnDomainOwnerResult.cc )
add_library(dcdn ${LIB_TYPE}
${dcdn_public_header}

View File

@@ -40,6 +40,8 @@
#include "model/BatchStartDcdnDomainResult.h"
#include "model/BatchStopDcdnDomainRequest.h"
#include "model/BatchStopDcdnDomainResult.h"
#include "model/CreateDcdnCertificateSigningRequestRequest.h"
#include "model/CreateDcdnCertificateSigningRequestResult.h"
#include "model/DeleteDcdnDomainRequest.h"
#include "model/DeleteDcdnDomainResult.h"
#include "model/DeleteDcdnIpaDomainRequest.h"
@@ -164,6 +166,8 @@
#include "model/DescribeDcdnUserResourcePackageResult.h"
#include "model/DescribeDcdnUserTagsRequest.h"
#include "model/DescribeDcdnUserTagsResult.h"
#include "model/DescribeDcdnVerifyContentRequest.h"
#include "model/DescribeDcdnVerifyContentResult.h"
#include "model/DescribeUserDcdnIpaStatusRequest.h"
#include "model/DescribeUserDcdnIpaStatusResult.h"
#include "model/DescribeUserDcdnStatusRequest.h"
@@ -180,6 +184,8 @@
#include "model/RollbackDcdnStagingConfigResult.h"
#include "model/SetDcdnConfigOfVersionRequest.h"
#include "model/SetDcdnConfigOfVersionResult.h"
#include "model/SetDcdnDomainCSRCertificateRequest.h"
#include "model/SetDcdnDomainCSRCertificateResult.h"
#include "model/SetDcdnDomainCertificateRequest.h"
#include "model/SetDcdnDomainCertificateResult.h"
#include "model/SetDcdnDomainStagingConfigRequest.h"
@@ -200,6 +206,8 @@
#include "model/UpdateDcdnDomainResult.h"
#include "model/UpdateDcdnIpaDomainRequest.h"
#include "model/UpdateDcdnIpaDomainResult.h"
#include "model/VerifyDcdnDomainOwnerRequest.h"
#include "model/VerifyDcdnDomainOwnerResult.h"
namespace AlibabaCloud
@@ -236,6 +244,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::BatchStopDcdnDomainResult> BatchStopDcdnDomainOutcome;
typedef std::future<BatchStopDcdnDomainOutcome> BatchStopDcdnDomainOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::BatchStopDcdnDomainRequest&, const BatchStopDcdnDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchStopDcdnDomainAsyncHandler;
typedef Outcome<Error, Model::CreateDcdnCertificateSigningRequestResult> CreateDcdnCertificateSigningRequestOutcome;
typedef std::future<CreateDcdnCertificateSigningRequestOutcome> CreateDcdnCertificateSigningRequestOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::CreateDcdnCertificateSigningRequestRequest&, const CreateDcdnCertificateSigningRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDcdnCertificateSigningRequestAsyncHandler;
typedef Outcome<Error, Model::DeleteDcdnDomainResult> DeleteDcdnDomainOutcome;
typedef std::future<DeleteDcdnDomainOutcome> DeleteDcdnDomainOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DeleteDcdnDomainRequest&, const DeleteDcdnDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDcdnDomainAsyncHandler;
@@ -422,6 +433,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDcdnUserTagsResult> DescribeDcdnUserTagsOutcome;
typedef std::future<DescribeDcdnUserTagsOutcome> DescribeDcdnUserTagsOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserTagsRequest&, const DescribeDcdnUserTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserTagsAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnVerifyContentResult> DescribeDcdnVerifyContentOutcome;
typedef std::future<DescribeDcdnVerifyContentOutcome> DescribeDcdnVerifyContentOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnVerifyContentRequest&, const DescribeDcdnVerifyContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnVerifyContentAsyncHandler;
typedef Outcome<Error, Model::DescribeUserDcdnIpaStatusResult> DescribeUserDcdnIpaStatusOutcome;
typedef std::future<DescribeUserDcdnIpaStatusOutcome> DescribeUserDcdnIpaStatusOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeUserDcdnIpaStatusRequest&, const DescribeUserDcdnIpaStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserDcdnIpaStatusAsyncHandler;
@@ -446,6 +460,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetDcdnConfigOfVersionResult> SetDcdnConfigOfVersionOutcome;
typedef std::future<SetDcdnConfigOfVersionOutcome> SetDcdnConfigOfVersionOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::SetDcdnConfigOfVersionRequest&, const SetDcdnConfigOfVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDcdnConfigOfVersionAsyncHandler;
typedef Outcome<Error, Model::SetDcdnDomainCSRCertificateResult> SetDcdnDomainCSRCertificateOutcome;
typedef std::future<SetDcdnDomainCSRCertificateOutcome> SetDcdnDomainCSRCertificateOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::SetDcdnDomainCSRCertificateRequest&, const SetDcdnDomainCSRCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDcdnDomainCSRCertificateAsyncHandler;
typedef Outcome<Error, Model::SetDcdnDomainCertificateResult> SetDcdnDomainCertificateOutcome;
typedef std::future<SetDcdnDomainCertificateOutcome> SetDcdnDomainCertificateOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::SetDcdnDomainCertificateRequest&, const SetDcdnDomainCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDcdnDomainCertificateAsyncHandler;
@@ -476,6 +493,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateDcdnIpaDomainResult> UpdateDcdnIpaDomainOutcome;
typedef std::future<UpdateDcdnIpaDomainOutcome> UpdateDcdnIpaDomainOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::UpdateDcdnIpaDomainRequest&, const UpdateDcdnIpaDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDcdnIpaDomainAsyncHandler;
typedef Outcome<Error, Model::VerifyDcdnDomainOwnerResult> VerifyDcdnDomainOwnerOutcome;
typedef std::future<VerifyDcdnDomainOwnerOutcome> VerifyDcdnDomainOwnerOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::VerifyDcdnDomainOwnerRequest&, const VerifyDcdnDomainOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDcdnDomainOwnerAsyncHandler;
DcdnClient(const Credentials &credentials, const ClientConfiguration &configuration);
DcdnClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -508,6 +528,9 @@ namespace AlibabaCloud
BatchStopDcdnDomainOutcome batchStopDcdnDomain(const Model::BatchStopDcdnDomainRequest &request)const;
void batchStopDcdnDomainAsync(const Model::BatchStopDcdnDomainRequest& request, const BatchStopDcdnDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchStopDcdnDomainOutcomeCallable batchStopDcdnDomainCallable(const Model::BatchStopDcdnDomainRequest& request) const;
CreateDcdnCertificateSigningRequestOutcome createDcdnCertificateSigningRequest(const Model::CreateDcdnCertificateSigningRequestRequest &request)const;
void createDcdnCertificateSigningRequestAsync(const Model::CreateDcdnCertificateSigningRequestRequest& request, const CreateDcdnCertificateSigningRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDcdnCertificateSigningRequestOutcomeCallable createDcdnCertificateSigningRequestCallable(const Model::CreateDcdnCertificateSigningRequestRequest& request) const;
DeleteDcdnDomainOutcome deleteDcdnDomain(const Model::DeleteDcdnDomainRequest &request)const;
void deleteDcdnDomainAsync(const Model::DeleteDcdnDomainRequest& request, const DeleteDcdnDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDcdnDomainOutcomeCallable deleteDcdnDomainCallable(const Model::DeleteDcdnDomainRequest& request) const;
@@ -694,6 +717,9 @@ namespace AlibabaCloud
DescribeDcdnUserTagsOutcome describeDcdnUserTags(const Model::DescribeDcdnUserTagsRequest &request)const;
void describeDcdnUserTagsAsync(const Model::DescribeDcdnUserTagsRequest& request, const DescribeDcdnUserTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnUserTagsOutcomeCallable describeDcdnUserTagsCallable(const Model::DescribeDcdnUserTagsRequest& request) const;
DescribeDcdnVerifyContentOutcome describeDcdnVerifyContent(const Model::DescribeDcdnVerifyContentRequest &request)const;
void describeDcdnVerifyContentAsync(const Model::DescribeDcdnVerifyContentRequest& request, const DescribeDcdnVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnVerifyContentOutcomeCallable describeDcdnVerifyContentCallable(const Model::DescribeDcdnVerifyContentRequest& request) const;
DescribeUserDcdnIpaStatusOutcome describeUserDcdnIpaStatus(const Model::DescribeUserDcdnIpaStatusRequest &request)const;
void describeUserDcdnIpaStatusAsync(const Model::DescribeUserDcdnIpaStatusRequest& request, const DescribeUserDcdnIpaStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUserDcdnIpaStatusOutcomeCallable describeUserDcdnIpaStatusCallable(const Model::DescribeUserDcdnIpaStatusRequest& request) const;
@@ -718,6 +744,9 @@ namespace AlibabaCloud
SetDcdnConfigOfVersionOutcome setDcdnConfigOfVersion(const Model::SetDcdnConfigOfVersionRequest &request)const;
void setDcdnConfigOfVersionAsync(const Model::SetDcdnConfigOfVersionRequest& request, const SetDcdnConfigOfVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetDcdnConfigOfVersionOutcomeCallable setDcdnConfigOfVersionCallable(const Model::SetDcdnConfigOfVersionRequest& request) const;
SetDcdnDomainCSRCertificateOutcome setDcdnDomainCSRCertificate(const Model::SetDcdnDomainCSRCertificateRequest &request)const;
void setDcdnDomainCSRCertificateAsync(const Model::SetDcdnDomainCSRCertificateRequest& request, const SetDcdnDomainCSRCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetDcdnDomainCSRCertificateOutcomeCallable setDcdnDomainCSRCertificateCallable(const Model::SetDcdnDomainCSRCertificateRequest& request) const;
SetDcdnDomainCertificateOutcome setDcdnDomainCertificate(const Model::SetDcdnDomainCertificateRequest &request)const;
void setDcdnDomainCertificateAsync(const Model::SetDcdnDomainCertificateRequest& request, const SetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetDcdnDomainCertificateOutcomeCallable setDcdnDomainCertificateCallable(const Model::SetDcdnDomainCertificateRequest& request) const;
@@ -748,6 +777,9 @@ namespace AlibabaCloud
UpdateDcdnIpaDomainOutcome updateDcdnIpaDomain(const Model::UpdateDcdnIpaDomainRequest &request)const;
void updateDcdnIpaDomainAsync(const Model::UpdateDcdnIpaDomainRequest& request, const UpdateDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDcdnIpaDomainOutcomeCallable updateDcdnIpaDomainCallable(const Model::UpdateDcdnIpaDomainRequest& request) const;
VerifyDcdnDomainOwnerOutcome verifyDcdnDomainOwner(const Model::VerifyDcdnDomainOwnerRequest &request)const;
void verifyDcdnDomainOwnerAsync(const Model::VerifyDcdnDomainOwnerRequest& request, const VerifyDcdnDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyDcdnDomainOwnerOutcomeCallable verifyDcdnDomainOwnerCallable(const Model::VerifyDcdnDomainOwnerRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT CreateDcdnCertificateSigningRequestRequest : public RpcServiceRequest
{
public:
CreateDcdnCertificateSigningRequestRequest();
~CreateDcdnCertificateSigningRequestRequest();
std::string getCountry()const;
void setCountry(const std::string& country);
std::string getCity()const;
void setCity(const std::string& city);
std::string getCommonName()const;
void setCommonName(const std::string& commonName);
std::string getState()const;
void setState(const std::string& state);
std::string getEmail()const;
void setEmail(const std::string& email);
std::string getSANs()const;
void setSANs(const std::string& sANs);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getOrganization()const;
void setOrganization(const std::string& organization);
std::string getOrganizationUnit()const;
void setOrganizationUnit(const std::string& organizationUnit);
private:
std::string country_;
std::string city_;
std::string commonName_;
std::string state_;
std::string email_;
std::string sANs_;
long ownerId_;
std::string organization_;
std::string organizationUnit_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT CreateDcdnCertificateSigningRequestResult : public ServiceResult
{
public:
CreateDcdnCertificateSigningRequestResult();
explicit CreateDcdnCertificateSigningRequestResult(const std::string &payload);
~CreateDcdnCertificateSigningRequestResult();
std::string getCsr()const;
std::string getPubMd5()const;
std::string getCommonName()const;
protected:
void parse(const std::string &payload);
private:
std::string csr_;
std::string pubMd5_;
std::string commonName_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnVerifyContentRequest : public RpcServiceRequest
{
public:
DescribeDcdnVerifyContentRequest();
~DescribeDcdnVerifyContentRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnVerifyContentResult : public ServiceResult
{
public:
DescribeDcdnVerifyContentResult();
explicit DescribeDcdnVerifyContentResult(const std::string &payload);
~DescribeDcdnVerifyContentResult();
std::string getContent()const;
protected:
void parse(const std::string &payload);
private:
std::string content_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTRESULT_H_

View 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_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATEREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT SetDcdnDomainCSRCertificateRequest : public RpcServiceRequest
{
public:
SetDcdnDomainCSRCertificateRequest();
~SetDcdnDomainCSRCertificateRequest();
std::string getServerCertificate()const;
void setServerCertificate(const std::string& serverCertificate);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string serverCertificate_;
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATERESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT SetDcdnDomainCSRCertificateResult : public ServiceResult
{
public:
SetDcdnDomainCSRCertificateResult();
explicit SetDcdnDomainCSRCertificateResult(const std::string &payload);
~SetDcdnDomainCSRCertificateResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATERESULT_H_

View 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_DCDN_MODEL_VERIFYDCDNDOMAINOWNERREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT VerifyDcdnDomainOwnerRequest : public RpcServiceRequest
{
public:
VerifyDcdnDomainOwnerRequest();
~VerifyDcdnDomainOwnerRequest();
std::string getVerifyType()const;
void setVerifyType(const std::string& verifyType);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string verifyType_;
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT VerifyDcdnDomainOwnerResult : public ServiceResult
{
public:
VerifyDcdnDomainOwnerResult();
explicit VerifyDcdnDomainOwnerResult(const std::string &payload);
~VerifyDcdnDomainOwnerResult();
std::string getContent()const;
protected:
void parse(const std::string &payload);
private:
std::string content_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERRESULT_H_

View File

@@ -375,6 +375,42 @@ DcdnClient::BatchStopDcdnDomainOutcomeCallable DcdnClient::batchStopDcdnDomainCa
return task->get_future();
}
DcdnClient::CreateDcdnCertificateSigningRequestOutcome DcdnClient::createDcdnCertificateSigningRequest(const CreateDcdnCertificateSigningRequestRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDcdnCertificateSigningRequestOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDcdnCertificateSigningRequestOutcome(CreateDcdnCertificateSigningRequestResult(outcome.result()));
else
return CreateDcdnCertificateSigningRequestOutcome(outcome.error());
}
void DcdnClient::createDcdnCertificateSigningRequestAsync(const CreateDcdnCertificateSigningRequestRequest& request, const CreateDcdnCertificateSigningRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDcdnCertificateSigningRequest(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::CreateDcdnCertificateSigningRequestOutcomeCallable DcdnClient::createDcdnCertificateSigningRequestCallable(const CreateDcdnCertificateSigningRequestRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDcdnCertificateSigningRequestOutcome()>>(
[this, request]()
{
return this->createDcdnCertificateSigningRequest(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DeleteDcdnDomainOutcome DcdnClient::deleteDcdnDomain(const DeleteDcdnDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2607,6 +2643,42 @@ DcdnClient::DescribeDcdnUserTagsOutcomeCallable DcdnClient::describeDcdnUserTags
return task->get_future();
}
DcdnClient::DescribeDcdnVerifyContentOutcome DcdnClient::describeDcdnVerifyContent(const DescribeDcdnVerifyContentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnVerifyContentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnVerifyContentOutcome(DescribeDcdnVerifyContentResult(outcome.result()));
else
return DescribeDcdnVerifyContentOutcome(outcome.error());
}
void DcdnClient::describeDcdnVerifyContentAsync(const DescribeDcdnVerifyContentRequest& request, const DescribeDcdnVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnVerifyContent(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnVerifyContentOutcomeCallable DcdnClient::describeDcdnVerifyContentCallable(const DescribeDcdnVerifyContentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnVerifyContentOutcome()>>(
[this, request]()
{
return this->describeDcdnVerifyContent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeUserDcdnIpaStatusOutcome DcdnClient::describeUserDcdnIpaStatus(const DescribeUserDcdnIpaStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2895,6 +2967,42 @@ DcdnClient::SetDcdnConfigOfVersionOutcomeCallable DcdnClient::setDcdnConfigOfVer
return task->get_future();
}
DcdnClient::SetDcdnDomainCSRCertificateOutcome DcdnClient::setDcdnDomainCSRCertificate(const SetDcdnDomainCSRCertificateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SetDcdnDomainCSRCertificateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SetDcdnDomainCSRCertificateOutcome(SetDcdnDomainCSRCertificateResult(outcome.result()));
else
return SetDcdnDomainCSRCertificateOutcome(outcome.error());
}
void DcdnClient::setDcdnDomainCSRCertificateAsync(const SetDcdnDomainCSRCertificateRequest& request, const SetDcdnDomainCSRCertificateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, setDcdnDomainCSRCertificate(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::SetDcdnDomainCSRCertificateOutcomeCallable DcdnClient::setDcdnDomainCSRCertificateCallable(const SetDcdnDomainCSRCertificateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SetDcdnDomainCSRCertificateOutcome()>>(
[this, request]()
{
return this->setDcdnDomainCSRCertificate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::SetDcdnDomainCertificateOutcome DcdnClient::setDcdnDomainCertificate(const SetDcdnDomainCertificateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3255,3 +3363,39 @@ DcdnClient::UpdateDcdnIpaDomainOutcomeCallable DcdnClient::updateDcdnIpaDomainCa
return task->get_future();
}
DcdnClient::VerifyDcdnDomainOwnerOutcome DcdnClient::verifyDcdnDomainOwner(const VerifyDcdnDomainOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VerifyDcdnDomainOwnerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VerifyDcdnDomainOwnerOutcome(VerifyDcdnDomainOwnerResult(outcome.result()));
else
return VerifyDcdnDomainOwnerOutcome(outcome.error());
}
void DcdnClient::verifyDcdnDomainOwnerAsync(const VerifyDcdnDomainOwnerRequest& request, const VerifyDcdnDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, verifyDcdnDomainOwner(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::VerifyDcdnDomainOwnerOutcomeCallable DcdnClient::verifyDcdnDomainOwnerCallable(const VerifyDcdnDomainOwnerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VerifyDcdnDomainOwnerOutcome()>>(
[this, request]()
{
return this->verifyDcdnDomainOwner(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View 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/dcdn/model/CreateDcdnCertificateSigningRequestRequest.h>
using AlibabaCloud::Dcdn::Model::CreateDcdnCertificateSigningRequestRequest;
CreateDcdnCertificateSigningRequestRequest::CreateDcdnCertificateSigningRequestRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "CreateDcdnCertificateSigningRequest")
{
setMethod(HttpRequest::Method::Post);
}
CreateDcdnCertificateSigningRequestRequest::~CreateDcdnCertificateSigningRequestRequest()
{}
std::string CreateDcdnCertificateSigningRequestRequest::getCountry()const
{
return country_;
}
void CreateDcdnCertificateSigningRequestRequest::setCountry(const std::string& country)
{
country_ = country;
setParameter("Country", country);
}
std::string CreateDcdnCertificateSigningRequestRequest::getCity()const
{
return city_;
}
void CreateDcdnCertificateSigningRequestRequest::setCity(const std::string& city)
{
city_ = city;
setParameter("City", city);
}
std::string CreateDcdnCertificateSigningRequestRequest::getCommonName()const
{
return commonName_;
}
void CreateDcdnCertificateSigningRequestRequest::setCommonName(const std::string& commonName)
{
commonName_ = commonName;
setParameter("CommonName", commonName);
}
std::string CreateDcdnCertificateSigningRequestRequest::getState()const
{
return state_;
}
void CreateDcdnCertificateSigningRequestRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
std::string CreateDcdnCertificateSigningRequestRequest::getEmail()const
{
return email_;
}
void CreateDcdnCertificateSigningRequestRequest::setEmail(const std::string& email)
{
email_ = email;
setParameter("Email", email);
}
std::string CreateDcdnCertificateSigningRequestRequest::getSANs()const
{
return sANs_;
}
void CreateDcdnCertificateSigningRequestRequest::setSANs(const std::string& sANs)
{
sANs_ = sANs;
setParameter("SANs", sANs);
}
long CreateDcdnCertificateSigningRequestRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDcdnCertificateSigningRequestRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDcdnCertificateSigningRequestRequest::getOrganization()const
{
return organization_;
}
void CreateDcdnCertificateSigningRequestRequest::setOrganization(const std::string& organization)
{
organization_ = organization;
setParameter("Organization", organization);
}
std::string CreateDcdnCertificateSigningRequestRequest::getOrganizationUnit()const
{
return organizationUnit_;
}
void CreateDcdnCertificateSigningRequestRequest::setOrganizationUnit(const std::string& organizationUnit)
{
organizationUnit_ = organizationUnit;
setParameter("OrganizationUnit", organizationUnit);
}

View 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/dcdn/model/CreateDcdnCertificateSigningRequestResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
CreateDcdnCertificateSigningRequestResult::CreateDcdnCertificateSigningRequestResult() :
ServiceResult()
{}
CreateDcdnCertificateSigningRequestResult::CreateDcdnCertificateSigningRequestResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDcdnCertificateSigningRequestResult::~CreateDcdnCertificateSigningRequestResult()
{}
void CreateDcdnCertificateSigningRequestResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CommonName"].isNull())
commonName_ = value["CommonName"].asString();
if(!value["Csr"].isNull())
csr_ = value["Csr"].asString();
if(!value["PubMd5"].isNull())
pubMd5_ = value["PubMd5"].asString();
}
std::string CreateDcdnCertificateSigningRequestResult::getCsr()const
{
return csr_;
}
std::string CreateDcdnCertificateSigningRequestResult::getPubMd5()const
{
return pubMd5_;
}
std::string CreateDcdnCertificateSigningRequestResult::getCommonName()const
{
return commonName_;
}

View 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/dcdn/model/DescribeDcdnVerifyContentRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnVerifyContentRequest;
DescribeDcdnVerifyContentRequest::DescribeDcdnVerifyContentRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnVerifyContent")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnVerifyContentRequest::~DescribeDcdnVerifyContentRequest()
{}
std::string DescribeDcdnVerifyContentRequest::getDomainName()const
{
return domainName_;
}
void DescribeDcdnVerifyContentRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeDcdnVerifyContentRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnVerifyContentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/dcdn/model/DescribeDcdnVerifyContentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnVerifyContentResult::DescribeDcdnVerifyContentResult() :
ServiceResult()
{}
DescribeDcdnVerifyContentResult::DescribeDcdnVerifyContentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnVerifyContentResult::~DescribeDcdnVerifyContentResult()
{}
void DescribeDcdnVerifyContentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string DescribeDcdnVerifyContentResult::getContent()const
{
return content_;
}

View 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/dcdn/model/SetDcdnDomainCSRCertificateRequest.h>
using AlibabaCloud::Dcdn::Model::SetDcdnDomainCSRCertificateRequest;
SetDcdnDomainCSRCertificateRequest::SetDcdnDomainCSRCertificateRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "SetDcdnDomainCSRCertificate")
{
setMethod(HttpRequest::Method::Post);
}
SetDcdnDomainCSRCertificateRequest::~SetDcdnDomainCSRCertificateRequest()
{}
std::string SetDcdnDomainCSRCertificateRequest::getServerCertificate()const
{
return serverCertificate_;
}
void SetDcdnDomainCSRCertificateRequest::setServerCertificate(const std::string& serverCertificate)
{
serverCertificate_ = serverCertificate;
setParameter("ServerCertificate", serverCertificate);
}
std::string SetDcdnDomainCSRCertificateRequest::getDomainName()const
{
return domainName_;
}
void SetDcdnDomainCSRCertificateRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long SetDcdnDomainCSRCertificateRequest::getOwnerId()const
{
return ownerId_;
}
void SetDcdnDomainCSRCertificateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
SetDcdnDomainCSRCertificateResult::SetDcdnDomainCSRCertificateResult() :
ServiceResult()
{}
SetDcdnDomainCSRCertificateResult::SetDcdnDomainCSRCertificateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetDcdnDomainCSRCertificateResult::~SetDcdnDomainCSRCertificateResult()
{}
void SetDcdnDomainCSRCertificateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/dcdn/model/VerifyDcdnDomainOwnerRequest.h>
using AlibabaCloud::Dcdn::Model::VerifyDcdnDomainOwnerRequest;
VerifyDcdnDomainOwnerRequest::VerifyDcdnDomainOwnerRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "VerifyDcdnDomainOwner")
{
setMethod(HttpRequest::Method::Post);
}
VerifyDcdnDomainOwnerRequest::~VerifyDcdnDomainOwnerRequest()
{}
std::string VerifyDcdnDomainOwnerRequest::getVerifyType()const
{
return verifyType_;
}
void VerifyDcdnDomainOwnerRequest::setVerifyType(const std::string& verifyType)
{
verifyType_ = verifyType;
setParameter("VerifyType", verifyType);
}
std::string VerifyDcdnDomainOwnerRequest::getDomainName()const
{
return domainName_;
}
void VerifyDcdnDomainOwnerRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long VerifyDcdnDomainOwnerRequest::getOwnerId()const
{
return ownerId_;
}
void VerifyDcdnDomainOwnerRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/dcdn/model/VerifyDcdnDomainOwnerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
VerifyDcdnDomainOwnerResult::VerifyDcdnDomainOwnerResult() :
ServiceResult()
{}
VerifyDcdnDomainOwnerResult::VerifyDcdnDomainOwnerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
VerifyDcdnDomainOwnerResult::~VerifyDcdnDomainOwnerResult()
{}
void VerifyDcdnDomainOwnerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string VerifyDcdnDomainOwnerResult::getContent()const
{
return content_;
}

86
emap/CMakeLists.txt Normal file
View 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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(emap_public_header
include/alibabacloud/emap/EmapClient.h
include/alibabacloud/emap/EmapExport.h )
set(emap_public_header_model
include/alibabacloud/emap/model/QueryMapInfoOpenRequest.h
include/alibabacloud/emap/model/QueryMapInfoOpenResult.h )
set(emap_src
src/EmapClient.cc
src/model/QueryMapInfoOpenRequest.cc
src/model/QueryMapInfoOpenResult.cc )
add_library(emap ${LIB_TYPE}
${emap_public_header}
${emap_public_header_model}
${emap_src})
set_target_properties(emap
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}emap
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(emap
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_EMAP_LIBRARY)
endif()
target_include_directories(emap
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(emap
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(emap
jsoncpp)
target_include_directories(emap
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(emap
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(emap
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(emap
PRIVATE /usr/include/jsoncpp)
target_link_libraries(emap
jsoncpp)
endif()
install(FILES ${emap_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/emap)
install(FILES ${emap_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/emap/model)
install(TARGETS emap
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View 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_EMAP_EMAPCLIENT_H_
#define ALIBABACLOUD_EMAP_EMAPCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "EmapExport.h"
#include "model/QueryMapInfoOpenRequest.h"
#include "model/QueryMapInfoOpenResult.h"
namespace AlibabaCloud
{
namespace Emap
{
class ALIBABACLOUD_EMAP_EXPORT EmapClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::QueryMapInfoOpenResult> QueryMapInfoOpenOutcome;
typedef std::future<QueryMapInfoOpenOutcome> QueryMapInfoOpenOutcomeCallable;
typedef std::function<void(const EmapClient*, const Model::QueryMapInfoOpenRequest&, const QueryMapInfoOpenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMapInfoOpenAsyncHandler;
EmapClient(const Credentials &credentials, const ClientConfiguration &configuration);
EmapClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
EmapClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~EmapClient();
QueryMapInfoOpenOutcome queryMapInfoOpen(const Model::QueryMapInfoOpenRequest &request)const;
void queryMapInfoOpenAsync(const Model::QueryMapInfoOpenRequest& request, const QueryMapInfoOpenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryMapInfoOpenOutcomeCallable queryMapInfoOpenCallable(const Model::QueryMapInfoOpenRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_EMAP_EMAPCLIENT_H_

View File

@@ -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_EMAP_EMAPEXPORT_H_
#define ALIBABACLOUD_EMAP_EMAPEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_EMAP_LIBRARY)
# define ALIBABACLOUD_EMAP_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_EMAP_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_EMAP_EXPORT
#endif
#endif // !ALIBABACLOUD_EMAP_EMAPEXPORT_H_

View File

@@ -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_EMAP_MODEL_QUERYMAPINFOOPENREQUEST_H_
#define ALIBABACLOUD_EMAP_MODEL_QUERYMAPINFOOPENREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/emap/EmapExport.h>
namespace AlibabaCloud
{
namespace Emap
{
namespace Model
{
class ALIBABACLOUD_EMAP_EXPORT QueryMapInfoOpenRequest : public RpcServiceRequest
{
public:
QueryMapInfoOpenRequest();
~QueryMapInfoOpenRequest();
long getStoreId()const;
void setStoreId(long storeId);
private:
long storeId_;
};
}
}
}
#endif // !ALIBABACLOUD_EMAP_MODEL_QUERYMAPINFOOPENREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_EMAP_MODEL_QUERYMAPINFOOPENRESULT_H_
#define ALIBABACLOUD_EMAP_MODEL_QUERYMAPINFOOPENRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emap/EmapExport.h>
namespace AlibabaCloud
{
namespace Emap
{
namespace Model
{
class ALIBABACLOUD_EMAP_EXPORT QueryMapInfoOpenResult : public ServiceResult
{
public:
QueryMapInfoOpenResult();
explicit QueryMapInfoOpenResult(const std::string &payload);
~QueryMapInfoOpenResult();
std::string getMessage()const;
std::string getRenderData()const;
std::string getDynamicCode()const;
std::string getErrorCode()const;
std::string getDynamicMessage()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string renderData_;
std::string dynamicCode_;
std::string errorCode_;
std::string dynamicMessage_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_EMAP_MODEL_QUERYMAPINFOOPENRESULT_H_

89
emap/src/EmapClient.cc Normal file
View File

@@ -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.
*/
#include <alibabacloud/emap/EmapClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Emap;
using namespace AlibabaCloud::Emap::Model;
namespace
{
const std::string SERVICE_NAME = "emap";
}
EmapClient::EmapClient(const Credentials &credentials, const ClientConfiguration &configuration) :
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, "");
}
EmapClient::EmapClient(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, "");
}
EmapClient::EmapClient(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, "");
}
EmapClient::~EmapClient()
{}
EmapClient::QueryMapInfoOpenOutcome EmapClient::queryMapInfoOpen(const QueryMapInfoOpenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryMapInfoOpenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryMapInfoOpenOutcome(QueryMapInfoOpenResult(outcome.result()));
else
return QueryMapInfoOpenOutcome(outcome.error());
}
void EmapClient::queryMapInfoOpenAsync(const QueryMapInfoOpenRequest& request, const QueryMapInfoOpenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryMapInfoOpen(request), context);
};
asyncExecute(new Runnable(fn));
}
EmapClient::QueryMapInfoOpenOutcomeCallable EmapClient::queryMapInfoOpenCallable(const QueryMapInfoOpenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryMapInfoOpenOutcome()>>(
[this, request]()
{
return this->queryMapInfoOpen(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View 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/emap/model/QueryMapInfoOpenRequest.h>
using AlibabaCloud::Emap::Model::QueryMapInfoOpenRequest;
QueryMapInfoOpenRequest::QueryMapInfoOpenRequest() :
RpcServiceRequest("emap", "2020-10-10", "QueryMapInfoOpen")
{
setMethod(HttpRequest::Method::Post);
}
QueryMapInfoOpenRequest::~QueryMapInfoOpenRequest()
{}
long QueryMapInfoOpenRequest::getStoreId()const
{
return storeId_;
}
void QueryMapInfoOpenRequest::setStoreId(long storeId)
{
storeId_ = storeId;
setBodyParameter("StoreId", std::to_string(storeId));
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/emap/model/QueryMapInfoOpenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Emap;
using namespace AlibabaCloud::Emap::Model;
QueryMapInfoOpenResult::QueryMapInfoOpenResult() :
ServiceResult()
{}
QueryMapInfoOpenResult::QueryMapInfoOpenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMapInfoOpenResult::~QueryMapInfoOpenResult()
{}
void QueryMapInfoOpenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["RenderData"].isNull())
renderData_ = value["RenderData"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string QueryMapInfoOpenResult::getMessage()const
{
return message_;
}
std::string QueryMapInfoOpenResult::getRenderData()const
{
return renderData_;
}
std::string QueryMapInfoOpenResult::getDynamicCode()const
{
return dynamicCode_;
}
std::string QueryMapInfoOpenResult::getErrorCode()const
{
return errorCode_;
}
std::string QueryMapInfoOpenResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string QueryMapInfoOpenResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryMapInfoOpenResult::getCode()const
{
return code_;
}
bool QueryMapInfoOpenResult::getSuccess()const
{
return success_;
}

View File

@@ -45,6 +45,8 @@ set(hbase_public_header_model
include/alibabacloud/hbase/model/DeleteInstanceResult.h
include/alibabacloud/hbase/model/DeleteMultiZoneClusterRequest.h
include/alibabacloud/hbase/model/DeleteMultiZoneClusterResult.h
include/alibabacloud/hbase/model/DeleteServerlessClusterRequest.h
include/alibabacloud/hbase/model/DeleteServerlessClusterResult.h
include/alibabacloud/hbase/model/DeleteUserHdfsInfoRequest.h
include/alibabacloud/hbase/model/DeleteUserHdfsInfoResult.h
include/alibabacloud/hbase/model/DescribeAvailableResourceRequest.h
@@ -174,6 +176,8 @@ set(hbase_src
src/model/DeleteInstanceResult.cc
src/model/DeleteMultiZoneClusterRequest.cc
src/model/DeleteMultiZoneClusterResult.cc
src/model/DeleteServerlessClusterRequest.cc
src/model/DeleteServerlessClusterResult.cc
src/model/DeleteUserHdfsInfoRequest.cc
src/model/DeleteUserHdfsInfoResult.cc
src/model/DescribeAvailableResourceRequest.cc

View File

@@ -46,6 +46,8 @@
#include "model/DeleteInstanceResult.h"
#include "model/DeleteMultiZoneClusterRequest.h"
#include "model/DeleteMultiZoneClusterResult.h"
#include "model/DeleteServerlessClusterRequest.h"
#include "model/DeleteServerlessClusterResult.h"
#include "model/DeleteUserHdfsInfoRequest.h"
#include "model/DeleteUserHdfsInfoResult.h"
#include "model/DescribeAvailableResourceRequest.h"
@@ -193,6 +195,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteMultiZoneClusterResult> DeleteMultiZoneClusterOutcome;
typedef std::future<DeleteMultiZoneClusterOutcome> DeleteMultiZoneClusterOutcomeCallable;
typedef std::function<void(const HBaseClient*, const Model::DeleteMultiZoneClusterRequest&, const DeleteMultiZoneClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMultiZoneClusterAsyncHandler;
typedef Outcome<Error, Model::DeleteServerlessClusterResult> DeleteServerlessClusterOutcome;
typedef std::future<DeleteServerlessClusterOutcome> DeleteServerlessClusterOutcomeCallable;
typedef std::function<void(const HBaseClient*, const Model::DeleteServerlessClusterRequest&, const DeleteServerlessClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteServerlessClusterAsyncHandler;
typedef Outcome<Error, Model::DeleteUserHdfsInfoResult> DeleteUserHdfsInfoOutcome;
typedef std::future<DeleteUserHdfsInfoOutcome> DeleteUserHdfsInfoOutcomeCallable;
typedef std::function<void(const HBaseClient*, const Model::DeleteUserHdfsInfoRequest&, const DeleteUserHdfsInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserHdfsInfoAsyncHandler;
@@ -387,6 +392,9 @@ namespace AlibabaCloud
DeleteMultiZoneClusterOutcome deleteMultiZoneCluster(const Model::DeleteMultiZoneClusterRequest &request)const;
void deleteMultiZoneClusterAsync(const Model::DeleteMultiZoneClusterRequest& request, const DeleteMultiZoneClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteMultiZoneClusterOutcomeCallable deleteMultiZoneClusterCallable(const Model::DeleteMultiZoneClusterRequest& request) const;
DeleteServerlessClusterOutcome deleteServerlessCluster(const Model::DeleteServerlessClusterRequest &request)const;
void deleteServerlessClusterAsync(const Model::DeleteServerlessClusterRequest& request, const DeleteServerlessClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteServerlessClusterOutcomeCallable deleteServerlessClusterCallable(const Model::DeleteServerlessClusterRequest& request) const;
DeleteUserHdfsInfoOutcome deleteUserHdfsInfo(const Model::DeleteUserHdfsInfoRequest &request)const;
void deleteUserHdfsInfoAsync(const Model::DeleteUserHdfsInfoRequest& request, const DeleteUserHdfsInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteUserHdfsInfoOutcomeCallable deleteUserHdfsInfoCallable(const Model::DeleteUserHdfsInfoRequest& request) const;

View File

@@ -39,12 +39,14 @@ namespace AlibabaCloud
~CreateServerlessClusterResult();
std::string getClusterId()const;
std::string getOrderId()const;
std::string getPassWord()const;
protected:
void parse(const std::string &payload);
private:
std::string clusterId_;
std::string orderId_;
std::string passWord_;
};
}

View 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_HBASE_MODEL_DELETESERVERLESSCLUSTERREQUEST_H_
#define ALIBABACLOUD_HBASE_MODEL_DELETESERVERLESSCLUSTERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/hbase/HBaseExport.h>
namespace AlibabaCloud
{
namespace HBase
{
namespace Model
{
class ALIBABACLOUD_HBASE_EXPORT DeleteServerlessClusterRequest : public RpcServiceRequest
{
public:
DeleteServerlessClusterRequest();
~DeleteServerlessClusterRequest();
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
private:
std::string clusterId_;
std::string regionId_;
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_HBASE_MODEL_DELETESERVERLESSCLUSTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_HBASE_MODEL_DELETESERVERLESSCLUSTERRESULT_H_
#define ALIBABACLOUD_HBASE_MODEL_DELETESERVERLESSCLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hbase/HBaseExport.h>
namespace AlibabaCloud
{
namespace HBase
{
namespace Model
{
class ALIBABACLOUD_HBASE_EXPORT DeleteServerlessClusterResult : public ServiceResult
{
public:
DeleteServerlessClusterResult();
explicit DeleteServerlessClusterResult(const std::string &payload);
~DeleteServerlessClusterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_HBASE_MODEL_DELETESERVERLESSCLUSTERRESULT_H_

View File

@@ -483,6 +483,42 @@ HBaseClient::DeleteMultiZoneClusterOutcomeCallable HBaseClient::deleteMultiZoneC
return task->get_future();
}
HBaseClient::DeleteServerlessClusterOutcome HBaseClient::deleteServerlessCluster(const DeleteServerlessClusterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteServerlessClusterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteServerlessClusterOutcome(DeleteServerlessClusterResult(outcome.result()));
else
return DeleteServerlessClusterOutcome(outcome.error());
}
void HBaseClient::deleteServerlessClusterAsync(const DeleteServerlessClusterRequest& request, const DeleteServerlessClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteServerlessCluster(request), context);
};
asyncExecute(new Runnable(fn));
}
HBaseClient::DeleteServerlessClusterOutcomeCallable HBaseClient::deleteServerlessClusterCallable(const DeleteServerlessClusterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteServerlessClusterOutcome()>>(
[this, request]()
{
return this->deleteServerlessCluster(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
HBaseClient::DeleteUserHdfsInfoOutcome HBaseClient::deleteUserHdfsInfo(const DeleteUserHdfsInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -43,6 +43,8 @@ void CreateServerlessClusterResult::parse(const std::string &payload)
clusterId_ = value["ClusterId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
if(!value["PassWord"].isNull())
passWord_ = value["PassWord"].asString();
}
@@ -56,3 +58,8 @@ std::string CreateServerlessClusterResult::getOrderId()const
return orderId_;
}
std::string CreateServerlessClusterResult::getPassWord()const
{
return passWord_;
}

View 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/hbase/model/DeleteServerlessClusterRequest.h>
using AlibabaCloud::HBase::Model::DeleteServerlessClusterRequest;
DeleteServerlessClusterRequest::DeleteServerlessClusterRequest() :
RpcServiceRequest("hbase", "2019-01-01", "DeleteServerlessCluster")
{
setMethod(HttpRequest::Method::Post);
}
DeleteServerlessClusterRequest::~DeleteServerlessClusterRequest()
{}
std::string DeleteServerlessClusterRequest::getClusterId()const
{
return clusterId_;
}
void DeleteServerlessClusterRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DeleteServerlessClusterRequest::getRegionId()const
{
return regionId_;
}
void DeleteServerlessClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DeleteServerlessClusterRequest::getZoneId()const
{
return zoneId_;
}
void DeleteServerlessClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/hbase/model/DeleteServerlessClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::HBase;
using namespace AlibabaCloud::HBase::Model;
DeleteServerlessClusterResult::DeleteServerlessClusterResult() :
ServiceResult()
{}
DeleteServerlessClusterResult::DeleteServerlessClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteServerlessClusterResult::~DeleteServerlessClusterResult()
{}
void DeleteServerlessClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -21,11 +21,15 @@ set(metering_public_header
include/alibabacloud/metering/MeteringExport.h )
set(metering_public_header_model
include/alibabacloud/metering/model/PostDataRequest.h
include/alibabacloud/metering/model/PostDataResult.h
include/alibabacloud/metering/model/SyncDataRequest.h
include/alibabacloud/metering/model/SyncDataResult.h )
set(metering_src
src/MeteringClient.cc
src/model/PostDataRequest.cc
src/model/PostDataResult.cc
src/model/SyncDataRequest.cc
src/model/SyncDataResult.cc )

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RoaServiceClient.h>
#include "MeteringExport.h"
#include "model/PostDataRequest.h"
#include "model/PostDataResult.h"
#include "model/SyncDataRequest.h"
#include "model/SyncDataResult.h"
@@ -33,6 +35,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_METERING_EXPORT MeteringClient : public RoaServiceClient
{
public:
typedef Outcome<Error, Model::PostDataResult> PostDataOutcome;
typedef std::future<PostDataOutcome> PostDataOutcomeCallable;
typedef std::function<void(const MeteringClient*, const Model::PostDataRequest&, const PostDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PostDataAsyncHandler;
typedef Outcome<Error, Model::SyncDataResult> SyncDataOutcome;
typedef std::future<SyncDataOutcome> SyncDataOutcomeCallable;
typedef std::function<void(const MeteringClient*, const Model::SyncDataRequest&, const SyncDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncDataAsyncHandler;
@@ -41,6 +46,9 @@ namespace AlibabaCloud
MeteringClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
MeteringClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~MeteringClient();
PostDataOutcome postData(const Model::PostDataRequest &request)const;
void postDataAsync(const Model::PostDataRequest& request, const PostDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PostDataOutcomeCallable postDataCallable(const Model::PostDataRequest& request) const;
SyncDataOutcome syncData(const Model::SyncDataRequest &request)const;
void syncDataAsync(const Model::SyncDataRequest& request, const SyncDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SyncDataOutcomeCallable syncDataCallable(const Model::SyncDataRequest& request) const;

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_METERING_MODEL_POSTDATAREQUEST_H_
#define ALIBABACLOUD_METERING_MODEL_POSTDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/metering/MeteringExport.h>
namespace AlibabaCloud
{
namespace Metering
{
namespace Model
{
class ALIBABACLOUD_METERING_EXPORT PostDataRequest : public RoaServiceRequest
{
public:
PostDataRequest();
~PostDataRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getData()const;
void setData(const std::string& data);
std::string getDataType()const;
void setDataType(const std::string& dataType);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getCommodityCode()const;
void setCommodityCode(const std::string& commodityCode);
std::string getRegion()const;
void setRegion(const std::string& region);
std::string getServiceId()const;
void setServiceId(const std::string& serviceId);
std::string getUserId()const;
void setUserId(const std::string& userId);
private:
std::string instanceId_;
std::string data_;
std::string dataType_;
std::string endTime_;
std::string startTime_;
std::string commodityCode_;
std::string region_;
std::string serviceId_;
std::string userId_;
};
}
}
}
#endif // !ALIBABACLOUD_METERING_MODEL_POSTDATAREQUEST_H_

View File

@@ -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_METERING_MODEL_POSTDATARESULT_H_
#define ALIBABACLOUD_METERING_MODEL_POSTDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/metering/MeteringExport.h>
namespace AlibabaCloud
{
namespace Metering
{
namespace Model
{
class ALIBABACLOUD_METERING_EXPORT PostDataResult : public ServiceResult
{
public:
PostDataResult();
explicit PostDataResult(const std::string &payload);
~PostDataResult();
bool getData()const;
std::string getErrMessage()const;
bool getSuccess()const;
int getErrCode()const;
protected:
void parse(const std::string &payload);
private:
bool data_;
std::string errMessage_;
bool success_;
int errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_METERING_MODEL_POSTDATARESULT_H_

View File

@@ -49,6 +49,8 @@ namespace AlibabaCloud
void setCommodityCode(const std::string& commodityCode);
std::string getRegion()const;
void setRegion(const std::string& region);
std::string getServiceId()const;
void setServiceId(const std::string& serviceId);
std::string getUserId()const;
void setUserId(const std::string& userId);
@@ -60,6 +62,7 @@ namespace AlibabaCloud
std::string startTime_;
std::string commodityCode_;
std::string region_;
std::string serviceId_;
std::string userId_;
};

View File

@@ -51,6 +51,42 @@ MeteringClient::MeteringClient(const std::string & accessKeyId, const std::strin
MeteringClient::~MeteringClient()
{}
MeteringClient::PostDataOutcome MeteringClient::postData(const PostDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PostDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PostDataOutcome(PostDataResult(outcome.result()));
else
return PostDataOutcome(outcome.error());
}
void MeteringClient::postDataAsync(const PostDataRequest& request, const PostDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, postData(request), context);
};
asyncExecute(new Runnable(fn));
}
MeteringClient::PostDataOutcomeCallable MeteringClient::postDataCallable(const PostDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PostDataOutcome()>>(
[this, request]()
{
return this->postData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
MeteringClient::SyncDataOutcome MeteringClient::syncData(const SyncDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,129 @@
/*
* 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/metering/model/PostDataRequest.h>
using AlibabaCloud::Metering::Model::PostDataRequest;
PostDataRequest::PostDataRequest() :
RoaServiceRequest("metering", "2020-09-21")
{
setResourcePath("/api/dataPost");
setMethod(HttpRequest::Method::Post);
}
PostDataRequest::~PostDataRequest()
{}
std::string PostDataRequest::getInstanceId()const
{
return instanceId_;
}
void PostDataRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setBodyParameter("InstanceId", instanceId);
}
std::string PostDataRequest::getData()const
{
return data_;
}
void PostDataRequest::setData(const std::string& data)
{
data_ = data;
setBodyParameter("Data", data);
}
std::string PostDataRequest::getDataType()const
{
return dataType_;
}
void PostDataRequest::setDataType(const std::string& dataType)
{
dataType_ = dataType;
setBodyParameter("DataType", dataType);
}
std::string PostDataRequest::getEndTime()const
{
return endTime_;
}
void PostDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setBodyParameter("EndTime", endTime);
}
std::string PostDataRequest::getStartTime()const
{
return startTime_;
}
void PostDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setBodyParameter("StartTime", startTime);
}
std::string PostDataRequest::getCommodityCode()const
{
return commodityCode_;
}
void PostDataRequest::setCommodityCode(const std::string& commodityCode)
{
commodityCode_ = commodityCode;
setBodyParameter("CommodityCode", commodityCode);
}
std::string PostDataRequest::getRegion()const
{
return region_;
}
void PostDataRequest::setRegion(const std::string& region)
{
region_ = region;
setBodyParameter("Region", region);
}
std::string PostDataRequest::getServiceId()const
{
return serviceId_;
}
void PostDataRequest::setServiceId(const std::string& serviceId)
{
serviceId_ = serviceId;
setBodyParameter("ServiceId", serviceId);
}
std::string PostDataRequest::getUserId()const
{
return userId_;
}
void PostDataRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/metering/model/PostDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Metering;
using namespace AlibabaCloud::Metering::Model;
PostDataResult::PostDataResult() :
ServiceResult()
{}
PostDataResult::PostDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PostDataResult::~PostDataResult()
{}
void PostDataResult::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["Data"].isNull())
data_ = value["Data"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = std::stoi(value["ErrCode"].asString());
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
}
bool PostDataResult::getData()const
{
return data_;
}
std::string PostDataResult::getErrMessage()const
{
return errMessage_;
}
bool PostDataResult::getSuccess()const
{
return success_;
}
int PostDataResult::getErrCode()const
{
return errCode_;
}

View File

@@ -105,6 +105,17 @@ void SyncDataRequest::setRegion(const std::string& region)
setParameter("Region", region);
}
std::string SyncDataRequest::getServiceId()const
{
return serviceId_;
}
void SyncDataRequest::setServiceId(const std::string& serviceId)
{
serviceId_ = serviceId;
setParameter("ServiceId", serviceId);
}
std::string SyncDataRequest::getUserId()const
{
return userId_;

View File

@@ -69,10 +69,12 @@ namespace AlibabaCloud
std::string androidXiaoMiNotifyBody;
std::string iOSSubtitle;
bool iOSRemind;
int androidNotificationNotifyId;
std::string targetValue;
std::string androidMusic;
std::string androidXiaoMiActivity;
std::string androidXiaoMiNotifyTitle;
std::string iOSNotificationCollapseId;
std::string pushType;
};

View File

@@ -89,6 +89,8 @@ namespace AlibabaCloud
void setIOSRemind(bool iOSRemind);
std::string getAndroidMusic()const;
void setAndroidMusic(const std::string& androidMusic);
std::string getIOSNotificationCollapseId()const;
void setIOSNotificationCollapseId(const std::string& iOSNotificationCollapseId);
std::string getPushType()const;
void setPushType(const std::string& pushType);
std::string getAndroidExtParameters()const;
@@ -123,6 +125,8 @@ namespace AlibabaCloud
void setAndroidActivity(const std::string& androidActivity);
std::string getSmsSignName()const;
void setSmsSignName(const std::string& smsSignName);
int getAndroidNotificationNotifyId()const;
void setAndroidNotificationNotifyId(int androidNotificationNotifyId);
long getAppKey()const;
void setAppKey(long appKey);
std::string getTargetValue()const;
@@ -160,6 +164,7 @@ namespace AlibabaCloud
std::string iOSSubtitle_;
bool iOSRemind_;
std::string androidMusic_;
std::string iOSNotificationCollapseId_;
std::string pushType_;
std::string androidExtParameters_;
int iOSBadge_;
@@ -177,6 +182,7 @@ namespace AlibabaCloud
bool androidRemind_;
std::string androidActivity_;
std::string smsSignName_;
int androidNotificationNotifyId_;
long appKey_;
std::string targetValue_;
std::string androidXiaoMiActivity_;

View File

@@ -85,10 +85,12 @@ void MassPushRequest::setPushTask(const std::vector<PushTask>& pushTask)
setParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyBody", pushTaskObj.androidXiaoMiNotifyBody);
setParameter(pushTaskObjStr + ".IOSSubtitle", pushTaskObj.iOSSubtitle);
setParameter(pushTaskObjStr + ".IOSRemind", pushTaskObj.iOSRemind ? "true" : "false");
setParameter(pushTaskObjStr + ".AndroidNotificationNotifyId", std::to_string(pushTaskObj.androidNotificationNotifyId));
setParameter(pushTaskObjStr + ".TargetValue", pushTaskObj.targetValue);
setParameter(pushTaskObjStr + ".AndroidMusic", pushTaskObj.androidMusic);
setParameter(pushTaskObjStr + ".AndroidXiaoMiActivity", pushTaskObj.androidXiaoMiActivity);
setParameter(pushTaskObjStr + ".AndroidXiaoMiNotifyTitle", pushTaskObj.androidXiaoMiNotifyTitle);
setParameter(pushTaskObjStr + ".IOSNotificationCollapseId", pushTaskObj.iOSNotificationCollapseId);
setParameter(pushTaskObjStr + ".PushType", pushTaskObj.pushType);
}
}

View File

@@ -324,6 +324,17 @@ void PushRequest::setAndroidMusic(const std::string& androidMusic)
setParameter("AndroidMusic", androidMusic);
}
std::string PushRequest::getIOSNotificationCollapseId()const
{
return iOSNotificationCollapseId_;
}
void PushRequest::setIOSNotificationCollapseId(const std::string& iOSNotificationCollapseId)
{
iOSNotificationCollapseId_ = iOSNotificationCollapseId;
setParameter("IOSNotificationCollapseId", iOSNotificationCollapseId);
}
std::string PushRequest::getPushType()const
{
return pushType_;
@@ -511,6 +522,17 @@ void PushRequest::setSmsSignName(const std::string& smsSignName)
setParameter("SmsSignName", smsSignName);
}
int PushRequest::getAndroidNotificationNotifyId()const
{
return androidNotificationNotifyId_;
}
void PushRequest::setAndroidNotificationNotifyId(int androidNotificationNotifyId)
{
androidNotificationNotifyId_ = androidNotificationNotifyId;
setParameter("AndroidNotificationNotifyId", std::to_string(androidNotificationNotifyId));
}
long PushRequest::getAppKey()const
{
return appKey_;