Compare commits
39 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc8cf316cd | ||
|
|
1908e64fa6 | ||
|
|
8f6d6d4d1d | ||
|
|
e5ea19cdfb | ||
|
|
55c7cdde91 | ||
|
|
836913a2a9 | ||
|
|
b34cb31a9a | ||
|
|
8ef1e983c1 | ||
|
|
3845e06de3 | ||
|
|
a349057ec2 | ||
|
|
0cf373bc60 | ||
|
|
1309d87fdb | ||
|
|
a46f82a069 | ||
|
|
b7d2e0b4a6 | ||
|
|
6eacc742a1 | ||
|
|
3c4d33ab51 | ||
|
|
cf6cbae712 | ||
|
|
6dc38f165b | ||
|
|
6393d2204b | ||
|
|
f4138c76d6 | ||
|
|
d7a89ac3dc | ||
|
|
b98f01cab4 | ||
|
|
675ab8f60f | ||
|
|
9fd70bc2bf | ||
|
|
ee91c28732 | ||
|
|
ec9ecb41d2 | ||
|
|
272e447860 | ||
|
|
3af83f0124 | ||
|
|
2f31a44faf | ||
|
|
512b1bb5c5 | ||
|
|
564c05144a | ||
|
|
8aa1d22f90 | ||
|
|
14ebba9911 | ||
|
|
38438abdfb | ||
|
|
e72934f959 | ||
|
|
076ff65f85 | ||
|
|
1fb31c98d9 | ||
|
|
d704ed0f33 | ||
|
|
b0fe238f34 |
109
CHANGELOG
109
CHANGELOG
@@ -1,3 +1,112 @@
|
||||
2020-10-26 Version: patch
|
||||
- Update ScalingConfig parameters.
|
||||
|
||||
2020-10-23 Version: patch
|
||||
- Change Configuration.
|
||||
|
||||
2020-10-23 Version: patch
|
||||
- Update DetectLungNodule.
|
||||
|
||||
2020-10-23 Version: patch
|
||||
- Support feedback.
|
||||
|
||||
2020-10-22 Version: patch
|
||||
- Add Pipeline Member api.
|
||||
|
||||
2020-10-22 Version: patch
|
||||
- Update data API.
|
||||
|
||||
2020-10-22 Version: patch
|
||||
- Update cert API.
|
||||
|
||||
2020-10-22 Version: patch
|
||||
- Update data API.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- DescribeAvailableResource support AcceptLanguage.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Change Documentation configuration.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Cloud Storage Gateway openapi sdk is released.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Release latest features.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Change Documentation configuration.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Change Documentation configuration.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Update cert API.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Add PHP sdk.
|
||||
|
||||
2020-10-21 Version: patch
|
||||
- Update Scdn API.
|
||||
|
||||
2020-10-20 Version: patch
|
||||
- Support modifyInstnaceType.
|
||||
|
||||
2020-10-20 Version: patch
|
||||
- Add LivenessFaceVerify API.
|
||||
|
||||
2020-10-20 Version: patch
|
||||
- Update Configuration.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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();
|
||||
|
||||
84
alimt/src/model/CreateImageTranslateTaskRequest.cc
Normal file
84
alimt/src/model/CreateImageTranslateTaskRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/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);
|
||||
}
|
||||
|
||||
66
alimt/src/model/CreateImageTranslateTaskResult.cc
Normal file
66
alimt/src/model/CreateImageTranslateTaskResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/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_;
|
||||
}
|
||||
|
||||
40
alimt/src/model/GetImageTranslateTaskRequest.cc
Normal file
40
alimt/src/model/GetImageTranslateTaskRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/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);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetImageTranslateTaskResult.cc
Normal file
66
alimt/src/model/GetImageTranslateTaskResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/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_;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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();
|
||||
|
||||
40
cdn/src/model/DescribeUserCertificateExpireCountRequest.cc
Normal file
40
cdn/src/model/DescribeUserCertificateExpireCountRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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));
|
||||
}
|
||||
|
||||
58
cdn/src/model/DescribeUserCertificateExpireCountResult.cc
Normal file
58
cdn/src/model/DescribeUserCertificateExpireCountResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/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_;
|
||||
}
|
||||
|
||||
@@ -83,6 +83,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/InitSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
|
||||
@@ -162,6 +164,8 @@ set(cloudauth_src
|
||||
src/model/InitFaceVerifyResult.cc
|
||||
src/model/InitSmartVerifyRequest.cc
|
||||
src/model/InitSmartVerifyResult.cc
|
||||
src/model/LivenessFaceVerifyRequest.cc
|
||||
src/model/LivenessFaceVerifyResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
src/model/ModifyDeviceInfoResult.cc
|
||||
src/model/SubmitMaterialsRequest.cc
|
||||
|
||||
@@ -84,6 +84,8 @@
|
||||
#include "model/InitFaceVerifyResult.h"
|
||||
#include "model/InitSmartVerifyRequest.h"
|
||||
#include "model/InitSmartVerifyResult.h"
|
||||
#include "model/LivenessFaceVerifyRequest.h"
|
||||
#include "model/LivenessFaceVerifyResult.h"
|
||||
#include "model/ModifyDeviceInfoRequest.h"
|
||||
#include "model/ModifyDeviceInfoResult.h"
|
||||
#include "model/SubmitMaterialsRequest.h"
|
||||
@@ -200,6 +202,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
|
||||
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::LivenessFaceVerifyResult> LivenessFaceVerifyOutcome;
|
||||
typedef std::future<LivenessFaceVerifyOutcome> LivenessFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::LivenessFaceVerifyRequest&, const LivenessFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
|
||||
@@ -319,6 +324,9 @@ namespace AlibabaCloud
|
||||
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
|
||||
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
|
||||
LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const;
|
||||
void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
|
||||
|
||||
@@ -67,8 +67,12 @@ namespace AlibabaCloud
|
||||
void setSceneId(long sceneId);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getCallbackToken()const;
|
||||
void setCallbackToken(const std::string& callbackToken);
|
||||
std::string getReturnUrl()const;
|
||||
void setReturnUrl(const std::string& returnUrl);
|
||||
std::string getCallbackUrl()const;
|
||||
void setCallbackUrl(const std::string& callbackUrl);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
@@ -87,7 +91,9 @@ namespace AlibabaCloud
|
||||
std::string mobile_;
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
std::string callbackToken_;
|
||||
std::string returnUrl_;
|
||||
std::string callbackUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,14 +35,12 @@ namespace AlibabaCloud
|
||||
InitSmartVerifyRequest();
|
||||
~InitSmartVerifyRequest();
|
||||
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getFacePictureBase64()const;
|
||||
void setFacePictureBase64(const std::string& facePictureBase64);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
@@ -51,25 +49,48 @@ namespace AlibabaCloud
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertType()const;
|
||||
void setCertType(const std::string& certType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
std::string getOcr()const;
|
||||
void setOcr(const std::string& ocr);
|
||||
std::string getOssObjectName()const;
|
||||
void setOssObjectName(const std::string& ossObjectName);
|
||||
std::string getFacePictureUrl()const;
|
||||
void setFacePictureUrl(const std::string& facePictureUrl);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getCallbackToken()const;
|
||||
void setCallbackToken(const std::string& callbackToken);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getCallbackUrl()const;
|
||||
void setCallbackUrl(const std::string& callbackUrl);
|
||||
|
||||
private:
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string mobile_;
|
||||
std::string userId_;
|
||||
std::string certifyId_;
|
||||
std::string facePictureBase64_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
std::string metaInfo_;
|
||||
std::string ocr_;
|
||||
std::string ossObjectName_;
|
||||
std::string facePictureUrl_;
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string mobile_;
|
||||
long sceneId_;
|
||||
std::string callbackToken_;
|
||||
std::string ossBucketName_;
|
||||
std::string callbackUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessFaceVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
LivenessFaceVerifyRequest();
|
||||
~LivenessFaceVerifyRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getOssObjectName()const;
|
||||
void setOssObjectName(const std::string& ossObjectName);
|
||||
std::string getFaceContrastPicture()const;
|
||||
void setFaceContrastPicture(const std::string& faceContrastPicture);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getDeviceToken()const;
|
||||
void setDeviceToken(const std::string& deviceToken);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getFaceContrastPictureUrl()const;
|
||||
void setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getModel()const;
|
||||
void setModel(const std::string& model);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
std::string ossObjectName_;
|
||||
std::string faceContrastPicture_;
|
||||
std::string ip_;
|
||||
std::string mobile_;
|
||||
std::string deviceToken_;
|
||||
std::string userId_;
|
||||
std::string certifyId_;
|
||||
std::string outerOrderNo_;
|
||||
std::string faceContrastPictureUrl_;
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
std::string model_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessFaceVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
std::string materialInfo;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
LivenessFaceVerifyResult();
|
||||
explicit LivenessFaceVerifyResult(const std::string &payload);
|
||||
~LivenessFaceVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYRESULT_H_
|
||||
@@ -1167,6 +1167,42 @@ CloudauthClient::InitSmartVerifyOutcomeCallable CloudauthClient::initSmartVerify
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessFaceVerifyOutcome CloudauthClient::livenessFaceVerify(const LivenessFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return LivenessFaceVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return LivenessFaceVerifyOutcome(LivenessFaceVerifyResult(outcome.result()));
|
||||
else
|
||||
return LivenessFaceVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::livenessFaceVerifyAsync(const LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, livenessFaceVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessFaceVerifyOutcomeCallable CloudauthClient::livenessFaceVerifyCallable(const LivenessFaceVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<LivenessFaceVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->livenessFaceVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -203,6 +203,17 @@ void InitFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
setParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCallbackToken()const
|
||||
{
|
||||
return callbackToken_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCallbackToken(const std::string& callbackToken)
|
||||
{
|
||||
callbackToken_ = callbackToken;
|
||||
setParameter("CallbackToken", callbackToken);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getReturnUrl()const
|
||||
{
|
||||
return returnUrl_;
|
||||
@@ -214,3 +225,14 @@ void InitFaceVerifyRequest::setReturnUrl(const std::string& returnUrl)
|
||||
setParameter("ReturnUrl", returnUrl);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCallbackUrl()const
|
||||
{
|
||||
return callbackUrl_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setParameter("CallbackUrl", callbackUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,39 +27,6 @@ InitSmartVerifyRequest::InitSmartVerifyRequest() :
|
||||
InitSmartVerifyRequest::~InitSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string InitSmartVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
@@ -71,6 +38,28 @@ void InitSmartVerifyRequest::setUserId(const std::string& userId)
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getFacePictureBase64()const
|
||||
{
|
||||
return facePictureBase64_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setFacePictureBase64(const std::string& facePictureBase64)
|
||||
{
|
||||
facePictureBase64_ = facePictureBase64;
|
||||
setBodyParameter("FacePictureBase64", facePictureBase64);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
@@ -115,17 +104,6 @@ void InitSmartVerifyRequest::setCertType(const std::string& certType)
|
||||
setBodyParameter("CertType", certType);
|
||||
}
|
||||
|
||||
long InitSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMetaInfo()const
|
||||
{
|
||||
return metaInfo_;
|
||||
@@ -148,3 +126,102 @@ void InitSmartVerifyRequest::setOcr(const std::string& ocr)
|
||||
setBodyParameter("Ocr", ocr);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getFacePictureUrl()const
|
||||
{
|
||||
return facePictureUrl_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setFacePictureUrl(const std::string& facePictureUrl)
|
||||
{
|
||||
facePictureUrl_ = facePictureUrl;
|
||||
setBodyParameter("FacePictureUrl", facePictureUrl);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
long InitSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCallbackToken()const
|
||||
{
|
||||
return callbackToken_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCallbackToken(const std::string& callbackToken)
|
||||
{
|
||||
callbackToken_ = callbackToken;
|
||||
setBodyParameter("CallbackToken", callbackToken);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setBodyParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCallbackUrl()const
|
||||
{
|
||||
return callbackUrl_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setBodyParameter("CallbackUrl", callbackUrl);
|
||||
}
|
||||
|
||||
|
||||
172
cloudauth/src/model/LivenessFaceVerifyRequest.cc
Normal file
172
cloudauth/src/model/LivenessFaceVerifyRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::LivenessFaceVerifyRequest;
|
||||
|
||||
LivenessFaceVerifyRequest::LivenessFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "LivenessFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LivenessFaceVerifyRequest::~LivenessFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getFaceContrastPicture()const
|
||||
{
|
||||
return faceContrastPicture_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
|
||||
{
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setBodyParameter("FaceContrastPicture", faceContrastPicture);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getDeviceToken()const
|
||||
{
|
||||
return deviceToken_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setDeviceToken(const std::string& deviceToken)
|
||||
{
|
||||
deviceToken_ = deviceToken;
|
||||
setBodyParameter("DeviceToken", deviceToken);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getFaceContrastPictureUrl()const
|
||||
{
|
||||
return faceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl)
|
||||
{
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
|
||||
}
|
||||
|
||||
long LivenessFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setBodyParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getModel()const
|
||||
{
|
||||
return model_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setModel(const std::string& model)
|
||||
{
|
||||
model_ = model;
|
||||
setParameter("Model", model);
|
||||
}
|
||||
|
||||
70
cloudauth/src/model/LivenessFaceVerifyResult.cc
Normal file
70
cloudauth/src/model/LivenessFaceVerifyResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
LivenessFaceVerifyResult::LivenessFaceVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
LivenessFaceVerifyResult::LivenessFaceVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
LivenessFaceVerifyResult::~LivenessFaceVerifyResult()
|
||||
{}
|
||||
|
||||
void LivenessFaceVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
LivenessFaceVerifyResult::ResultObject LivenessFaceVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
@@ -111,6 +113,8 @@ set(dcdn_public_header_model
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnDomainStagingConfigRequest.h
|
||||
@@ -153,6 +157,8 @@ set(dcdn_public_header_model
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnTagResourcesResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserBillTypeRequest.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserBillTypeResult.h
|
||||
include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h
|
||||
@@ -163,6 +169,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 +187,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 +208,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 +232,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
|
||||
@@ -292,6 +306,8 @@ set(dcdn_src
|
||||
src/model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.cc
|
||||
src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc
|
||||
src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.cc
|
||||
src/model/DescribeDcdnDomainRealTimeTrafficDataRequest.cc
|
||||
src/model/DescribeDcdnDomainRealTimeTrafficDataResult.cc
|
||||
src/model/DescribeDcdnDomainRegionDataRequest.cc
|
||||
src/model/DescribeDcdnDomainRegionDataResult.cc
|
||||
src/model/DescribeDcdnDomainStagingConfigRequest.cc
|
||||
@@ -334,6 +350,8 @@ set(dcdn_src
|
||||
src/model/DescribeDcdnTagResourcesResult.cc
|
||||
src/model/DescribeDcdnTopDomainsByFlowRequest.cc
|
||||
src/model/DescribeDcdnTopDomainsByFlowResult.cc
|
||||
src/model/DescribeDcdnUserBillHistoryRequest.cc
|
||||
src/model/DescribeDcdnUserBillHistoryResult.cc
|
||||
src/model/DescribeDcdnUserBillTypeRequest.cc
|
||||
src/model/DescribeDcdnUserBillTypeResult.cc
|
||||
src/model/DescribeDcdnUserDomainsRequest.cc
|
||||
@@ -344,6 +362,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 +380,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 +401,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}
|
||||
|
||||
@@ -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"
|
||||
@@ -112,6 +114,8 @@
|
||||
#include "model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.h"
|
||||
#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h"
|
||||
#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h"
|
||||
#include "model/DescribeDcdnDomainRealTimeTrafficDataRequest.h"
|
||||
#include "model/DescribeDcdnDomainRealTimeTrafficDataResult.h"
|
||||
#include "model/DescribeDcdnDomainRegionDataRequest.h"
|
||||
#include "model/DescribeDcdnDomainRegionDataResult.h"
|
||||
#include "model/DescribeDcdnDomainStagingConfigRequest.h"
|
||||
@@ -154,6 +158,8 @@
|
||||
#include "model/DescribeDcdnTagResourcesResult.h"
|
||||
#include "model/DescribeDcdnTopDomainsByFlowRequest.h"
|
||||
#include "model/DescribeDcdnTopDomainsByFlowResult.h"
|
||||
#include "model/DescribeDcdnUserBillHistoryRequest.h"
|
||||
#include "model/DescribeDcdnUserBillHistoryResult.h"
|
||||
#include "model/DescribeDcdnUserBillTypeRequest.h"
|
||||
#include "model/DescribeDcdnUserBillTypeResult.h"
|
||||
#include "model/DescribeDcdnUserDomainsRequest.h"
|
||||
@@ -164,6 +170,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 +188,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 +210,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 +248,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;
|
||||
@@ -344,6 +359,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDcdnDomainRealTimeSrcTrafficDataResult> DescribeDcdnDomainRealTimeSrcTrafficDataOutcome;
|
||||
typedef std::future<DescribeDcdnDomainRealTimeSrcTrafficDataOutcome> DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest&, const DescribeDcdnDomainRealTimeSrcTrafficDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnDomainRealTimeTrafficDataResult> DescribeDcdnDomainRealTimeTrafficDataOutcome;
|
||||
typedef std::future<DescribeDcdnDomainRealTimeTrafficDataOutcome> DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRealTimeTrafficDataRequest&, const DescribeDcdnDomainRealTimeTrafficDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRealTimeTrafficDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnDomainRegionDataResult> DescribeDcdnDomainRegionDataOutcome;
|
||||
typedef std::future<DescribeDcdnDomainRegionDataOutcome> DescribeDcdnDomainRegionDataOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRegionDataRequest&, const DescribeDcdnDomainRegionDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRegionDataAsyncHandler;
|
||||
@@ -407,6 +425,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDcdnTopDomainsByFlowResult> DescribeDcdnTopDomainsByFlowOutcome;
|
||||
typedef std::future<DescribeDcdnTopDomainsByFlowOutcome> DescribeDcdnTopDomainsByFlowOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnTopDomainsByFlowRequest&, const DescribeDcdnTopDomainsByFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnTopDomainsByFlowAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnUserBillHistoryResult> DescribeDcdnUserBillHistoryOutcome;
|
||||
typedef std::future<DescribeDcdnUserBillHistoryOutcome> DescribeDcdnUserBillHistoryOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserBillHistoryRequest&, const DescribeDcdnUserBillHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserBillHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDcdnUserBillTypeResult> DescribeDcdnUserBillTypeOutcome;
|
||||
typedef std::future<DescribeDcdnUserBillTypeOutcome> DescribeDcdnUserBillTypeOutcomeCallable;
|
||||
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserBillTypeRequest&, const DescribeDcdnUserBillTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserBillTypeAsyncHandler;
|
||||
@@ -422,6 +443,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 +470,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 +503,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 +538,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;
|
||||
@@ -616,6 +649,9 @@ namespace AlibabaCloud
|
||||
DescribeDcdnDomainRealTimeSrcTrafficDataOutcome describeDcdnDomainRealTimeSrcTrafficData(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest &request)const;
|
||||
void describeDcdnDomainRealTimeSrcTrafficDataAsync(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable describeDcdnDomainRealTimeSrcTrafficDataCallable(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request) const;
|
||||
DescribeDcdnDomainRealTimeTrafficDataOutcome describeDcdnDomainRealTimeTrafficData(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest &request)const;
|
||||
void describeDcdnDomainRealTimeTrafficDataAsync(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest& request, const DescribeDcdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable describeDcdnDomainRealTimeTrafficDataCallable(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest& request) const;
|
||||
DescribeDcdnDomainRegionDataOutcome describeDcdnDomainRegionData(const Model::DescribeDcdnDomainRegionDataRequest &request)const;
|
||||
void describeDcdnDomainRegionDataAsync(const Model::DescribeDcdnDomainRegionDataRequest& request, const DescribeDcdnDomainRegionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnDomainRegionDataOutcomeCallable describeDcdnDomainRegionDataCallable(const Model::DescribeDcdnDomainRegionDataRequest& request) const;
|
||||
@@ -679,6 +715,9 @@ namespace AlibabaCloud
|
||||
DescribeDcdnTopDomainsByFlowOutcome describeDcdnTopDomainsByFlow(const Model::DescribeDcdnTopDomainsByFlowRequest &request)const;
|
||||
void describeDcdnTopDomainsByFlowAsync(const Model::DescribeDcdnTopDomainsByFlowRequest& request, const DescribeDcdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnTopDomainsByFlowOutcomeCallable describeDcdnTopDomainsByFlowCallable(const Model::DescribeDcdnTopDomainsByFlowRequest& request) const;
|
||||
DescribeDcdnUserBillHistoryOutcome describeDcdnUserBillHistory(const Model::DescribeDcdnUserBillHistoryRequest &request)const;
|
||||
void describeDcdnUserBillHistoryAsync(const Model::DescribeDcdnUserBillHistoryRequest& request, const DescribeDcdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnUserBillHistoryOutcomeCallable describeDcdnUserBillHistoryCallable(const Model::DescribeDcdnUserBillHistoryRequest& request) const;
|
||||
DescribeDcdnUserBillTypeOutcome describeDcdnUserBillType(const Model::DescribeDcdnUserBillTypeRequest &request)const;
|
||||
void describeDcdnUserBillTypeAsync(const Model::DescribeDcdnUserBillTypeRequest& request, const DescribeDcdnUserBillTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDcdnUserBillTypeOutcomeCallable describeDcdnUserBillTypeCallable(const Model::DescribeDcdnUserBillTypeRequest& request) const;
|
||||
@@ -694,6 +733,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 +760,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 +793,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_;
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_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 DescribeDcdnDomainRealTimeTrafficDataRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDcdnDomainRealTimeTrafficDataRequest();
|
||||
~DescribeDcdnDomainRealTimeTrafficDataRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string domainName_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_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 DescribeDcdnDomainRealTimeTrafficDataResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataModule
|
||||
{
|
||||
std::string value;
|
||||
std::string timeStamp;
|
||||
};
|
||||
|
||||
|
||||
DescribeDcdnDomainRealTimeTrafficDataResult();
|
||||
explicit DescribeDcdnDomainRealTimeTrafficDataResult(const std::string &payload);
|
||||
~DescribeDcdnDomainRealTimeTrafficDataResult();
|
||||
std::string getEndTime()const;
|
||||
std::vector<DataModule> getRealTimeTrafficDataPerInterval()const;
|
||||
std::string getDomainName()const;
|
||||
std::string getStartTime()const;
|
||||
std::string getDataInterval()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::vector<DataModule> realTimeTrafficDataPerInterval_;
|
||||
std::string domainName_;
|
||||
std::string startTime_;
|
||||
std::string dataInterval_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_H_
|
||||
@@ -41,8 +41,6 @@ namespace AlibabaCloud
|
||||
void setStartTime(const std::string& startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
int getPageSize()const;
|
||||
@@ -64,7 +62,6 @@ namespace AlibabaCloud
|
||||
std::string objectPath_;
|
||||
std::string startTime_;
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
std::string securityToken_;
|
||||
int pageSize_;
|
||||
std::string objectType_;
|
||||
|
||||
@@ -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_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_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 DescribeDcdnUserBillHistoryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDcdnUserBillHistoryRequest();
|
||||
~DescribeDcdnUserBillHistoryRequest();
|
||||
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_
|
||||
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_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 DescribeDcdnUserBillHistoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BillHistoryDataItem
|
||||
{
|
||||
struct BillingDataItem
|
||||
{
|
||||
std::string chargeType;
|
||||
float bandwidth;
|
||||
std::string cdnRegion;
|
||||
float count;
|
||||
float flow;
|
||||
};
|
||||
std::string billType;
|
||||
std::string billTime;
|
||||
std::vector<BillHistoryDataItem::BillingDataItem> billingData;
|
||||
std::string dimension;
|
||||
};
|
||||
|
||||
|
||||
DescribeDcdnUserBillHistoryResult();
|
||||
explicit DescribeDcdnUserBillHistoryResult(const std::string &payload);
|
||||
~DescribeDcdnUserBillHistoryResult();
|
||||
std::vector<BillHistoryDataItem> getBillHistoryData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<BillHistoryDataItem> billHistoryData_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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();
|
||||
@@ -1671,6 +1707,42 @@ DcdnClient::DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable DcdnClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainRealTimeTrafficDataOutcome DcdnClient::describeDcdnDomainRealTimeTrafficData(const DescribeDcdnDomainRealTimeTrafficDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDcdnDomainRealTimeTrafficDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDcdnDomainRealTimeTrafficDataOutcome(DescribeDcdnDomainRealTimeTrafficDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeDcdnDomainRealTimeTrafficDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeDcdnDomainRealTimeTrafficDataAsync(const DescribeDcdnDomainRealTimeTrafficDataRequest& request, const DescribeDcdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDcdnDomainRealTimeTrafficData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeTrafficDataCallable(const DescribeDcdnDomainRealTimeTrafficDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDcdnDomainRealTimeTrafficDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDcdnDomainRealTimeTrafficData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnDomainRegionDataOutcome DcdnClient::describeDcdnDomainRegionData(const DescribeDcdnDomainRegionDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2427,6 +2499,42 @@ DcdnClient::DescribeDcdnTopDomainsByFlowOutcomeCallable DcdnClient::describeDcdn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnUserBillHistoryOutcome DcdnClient::describeDcdnUserBillHistory(const DescribeDcdnUserBillHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDcdnUserBillHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDcdnUserBillHistoryOutcome(DescribeDcdnUserBillHistoryResult(outcome.result()));
|
||||
else
|
||||
return DescribeDcdnUserBillHistoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DcdnClient::describeDcdnUserBillHistoryAsync(const DescribeDcdnUserBillHistoryRequest& request, const DescribeDcdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDcdnUserBillHistory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnUserBillHistoryOutcomeCallable DcdnClient::describeDcdnUserBillHistoryCallable(const DescribeDcdnUserBillHistoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDcdnUserBillHistoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDcdnUserBillHistory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DcdnClient::DescribeDcdnUserBillTypeOutcome DcdnClient::describeDcdnUserBillType(const DescribeDcdnUserBillTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2607,6 +2715,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 +3039,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 +3435,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();
|
||||
}
|
||||
|
||||
|
||||
128
dcdn/src/model/CreateDcdnCertificateSigningRequestRequest.cc
Normal file
128
dcdn/src/model/CreateDcdnCertificateSigningRequestRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
65
dcdn/src/model/CreateDcdnCertificateSigningRequestResult.cc
Normal file
65
dcdn/src/model/CreateDcdnCertificateSigningRequestResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnDomainRealTimeTrafficDataRequest;
|
||||
|
||||
DescribeDcdnDomainRealTimeTrafficDataRequest::DescribeDcdnDomainRealTimeTrafficDataRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeTrafficData")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnDomainRealTimeTrafficDataRequest::~DescribeDcdnDomainRealTimeTrafficDataRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDcdnDomainRealTimeTrafficDataRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainRealTimeTrafficDataRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainRealTimeTrafficDataRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainRealTimeTrafficDataRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainRealTimeTrafficDataRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainRealTimeTrafficDataRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDcdnDomainRealTimeTrafficDataRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnDomainRealTimeTrafficDataRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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/DescribeDcdnDomainRealTimeTrafficDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnDomainRealTimeTrafficDataResult::DescribeDcdnDomainRealTimeTrafficDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnDomainRealTimeTrafficDataResult::DescribeDcdnDomainRealTimeTrafficDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnDomainRealTimeTrafficDataResult::~DescribeDcdnDomainRealTimeTrafficDataResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnDomainRealTimeTrafficDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRealTimeTrafficDataPerIntervalNode = value["RealTimeTrafficDataPerInterval"]["DataModule"];
|
||||
for (auto valueRealTimeTrafficDataPerIntervalDataModule : allRealTimeTrafficDataPerIntervalNode)
|
||||
{
|
||||
DataModule realTimeTrafficDataPerIntervalObject;
|
||||
if(!valueRealTimeTrafficDataPerIntervalDataModule["TimeStamp"].isNull())
|
||||
realTimeTrafficDataPerIntervalObject.timeStamp = valueRealTimeTrafficDataPerIntervalDataModule["TimeStamp"].asString();
|
||||
if(!valueRealTimeTrafficDataPerIntervalDataModule["Value"].isNull())
|
||||
realTimeTrafficDataPerIntervalObject.value = valueRealTimeTrafficDataPerIntervalDataModule["Value"].asString();
|
||||
realTimeTrafficDataPerInterval_.push_back(realTimeTrafficDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnDomainRealTimeTrafficDataResult::DataModule> DescribeDcdnDomainRealTimeTrafficDataResult::getRealTimeTrafficDataPerInterval()const
|
||||
{
|
||||
return realTimeTrafficDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDcdnDomainRealTimeTrafficDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
@@ -60,17 +60,6 @@ void DescribeDcdnRefreshTasksRequest::setPageNumber(int pageNumber)
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDcdnRefreshTasksRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnRefreshTasksRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnRefreshTasksRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
|
||||
62
dcdn/src/model/DescribeDcdnUserBillHistoryRequest.cc
Normal file
62
dcdn/src/model/DescribeDcdnUserBillHistoryRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Dcdn::Model::DescribeDcdnUserBillHistoryRequest;
|
||||
|
||||
DescribeDcdnUserBillHistoryRequest::DescribeDcdnUserBillHistoryRequest() :
|
||||
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnUserBillHistory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDcdnUserBillHistoryRequest::~DescribeDcdnUserBillHistoryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDcdnUserBillHistoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserBillHistoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDcdnUserBillHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserBillHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDcdnUserBillHistoryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDcdnUserBillHistoryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
77
dcdn/src/model/DescribeDcdnUserBillHistoryResult.cc
Normal file
77
dcdn/src/model/DescribeDcdnUserBillHistoryResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/DescribeDcdnUserBillHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dcdn;
|
||||
using namespace AlibabaCloud::Dcdn::Model;
|
||||
|
||||
DescribeDcdnUserBillHistoryResult::DescribeDcdnUserBillHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDcdnUserBillHistoryResult::DescribeDcdnUserBillHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDcdnUserBillHistoryResult::~DescribeDcdnUserBillHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeDcdnUserBillHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBillHistoryDataNode = value["BillHistoryData"]["BillHistoryDataItem"];
|
||||
for (auto valueBillHistoryDataBillHistoryDataItem : allBillHistoryDataNode)
|
||||
{
|
||||
BillHistoryDataItem billHistoryDataObject;
|
||||
if(!valueBillHistoryDataBillHistoryDataItem["Dimension"].isNull())
|
||||
billHistoryDataObject.dimension = valueBillHistoryDataBillHistoryDataItem["Dimension"].asString();
|
||||
if(!valueBillHistoryDataBillHistoryDataItem["BillType"].isNull())
|
||||
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
|
||||
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
|
||||
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
|
||||
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
|
||||
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
|
||||
{
|
||||
BillHistoryDataItem::BillingDataItem billingDataObject;
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
|
||||
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
|
||||
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
|
||||
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
|
||||
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
|
||||
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
|
||||
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
|
||||
billHistoryDataObject.billingData.push_back(billingDataObject);
|
||||
}
|
||||
billHistoryData_.push_back(billHistoryDataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDcdnUserBillHistoryResult::BillHistoryDataItem> DescribeDcdnUserBillHistoryResult::getBillHistoryData()const
|
||||
{
|
||||
return billHistoryData_;
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeDcdnVerifyContentRequest.cc
Normal file
51
dcdn/src/model/DescribeDcdnVerifyContentRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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));
|
||||
}
|
||||
|
||||
51
dcdn/src/model/DescribeDcdnVerifyContentResult.cc
Normal file
51
dcdn/src/model/DescribeDcdnVerifyContentResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
62
dcdn/src/model/SetDcdnDomainCSRCertificateRequest.cc
Normal file
62
dcdn/src/model/SetDcdnDomainCSRCertificateRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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));
|
||||
}
|
||||
|
||||
44
dcdn/src/model/SetDcdnDomainCSRCertificateResult.cc
Normal file
44
dcdn/src/model/SetDcdnDomainCSRCertificateResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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());
|
||||
|
||||
}
|
||||
|
||||
62
dcdn/src/model/VerifyDcdnDomainOwnerRequest.cc
Normal file
62
dcdn/src/model/VerifyDcdnDomainOwnerRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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));
|
||||
}
|
||||
|
||||
51
dcdn/src/model/VerifyDcdnDomainOwnerResult.cc
Normal file
51
dcdn/src/model/VerifyDcdnDomainOwnerResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
@@ -51,6 +51,8 @@ set(devops-rdc_public_header_model
|
||||
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectSprintResult.h
|
||||
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskRequest.h
|
||||
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskResult.h
|
||||
include/alibabacloud/devops-rdc/model/DeletePipelineMemberRequest.h
|
||||
include/alibabacloud/devops-rdc/model/DeletePipelineMemberResult.h
|
||||
include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h
|
||||
include/alibabacloud/devops-rdc/model/GetDevopsOrganizationMembersRequest.h
|
||||
@@ -79,6 +81,8 @@ set(devops-rdc_public_header_model
|
||||
include/alibabacloud/devops-rdc/model/GetUserByAliyunUidResult.h
|
||||
include/alibabacloud/devops-rdc/model/InsertDevopsUserRequest.h
|
||||
include/alibabacloud/devops-rdc/model/InsertDevopsUserResult.h
|
||||
include/alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h
|
||||
include/alibabacloud/devops-rdc/model/InsertPipelineMemberResult.h
|
||||
include/alibabacloud/devops-rdc/model/InsertProjectMembersRequest.h
|
||||
include/alibabacloud/devops-rdc/model/InsertProjectMembersResult.h
|
||||
include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h
|
||||
@@ -99,12 +103,16 @@ set(devops-rdc_public_header_model
|
||||
include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h
|
||||
include/alibabacloud/devops-rdc/model/ListUserOrganizationRequest.h
|
||||
include/alibabacloud/devops-rdc/model/ListUserOrganizationResult.h
|
||||
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerRequest.h
|
||||
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerResult.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectRequest.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectResult.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintRequest.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintResult.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskRequest.h
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskResult.h )
|
||||
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskResult.h
|
||||
include/alibabacloud/devops-rdc/model/UpdatePipelineMemberRequest.h
|
||||
include/alibabacloud/devops-rdc/model/UpdatePipelineMemberResult.h )
|
||||
|
||||
set(devops-rdc_src
|
||||
src/Devops-rdcClient.cc
|
||||
@@ -138,6 +146,8 @@ set(devops-rdc_src
|
||||
src/model/DeleteDevopsProjectSprintResult.cc
|
||||
src/model/DeleteDevopsProjectTaskRequest.cc
|
||||
src/model/DeleteDevopsProjectTaskResult.cc
|
||||
src/model/DeletePipelineMemberRequest.cc
|
||||
src/model/DeletePipelineMemberResult.cc
|
||||
src/model/ExecutePipelineRequest.cc
|
||||
src/model/ExecutePipelineResult.cc
|
||||
src/model/GetDevopsOrganizationMembersRequest.cc
|
||||
@@ -166,6 +176,8 @@ set(devops-rdc_src
|
||||
src/model/GetUserByAliyunUidResult.cc
|
||||
src/model/InsertDevopsUserRequest.cc
|
||||
src/model/InsertDevopsUserResult.cc
|
||||
src/model/InsertPipelineMemberRequest.cc
|
||||
src/model/InsertPipelineMemberResult.cc
|
||||
src/model/InsertProjectMembersRequest.cc
|
||||
src/model/InsertProjectMembersResult.cc
|
||||
src/model/ListCredentialsRequest.cc
|
||||
@@ -186,12 +198,16 @@ set(devops-rdc_src
|
||||
src/model/ListServiceConnectionsResult.cc
|
||||
src/model/ListUserOrganizationRequest.cc
|
||||
src/model/ListUserOrganizationResult.cc
|
||||
src/model/TransferPipelineOwnerRequest.cc
|
||||
src/model/TransferPipelineOwnerResult.cc
|
||||
src/model/UpdateDevopsProjectRequest.cc
|
||||
src/model/UpdateDevopsProjectResult.cc
|
||||
src/model/UpdateDevopsProjectSprintRequest.cc
|
||||
src/model/UpdateDevopsProjectSprintResult.cc
|
||||
src/model/UpdateDevopsProjectTaskRequest.cc
|
||||
src/model/UpdateDevopsProjectTaskResult.cc )
|
||||
src/model/UpdateDevopsProjectTaskResult.cc
|
||||
src/model/UpdatePipelineMemberRequest.cc
|
||||
src/model/UpdatePipelineMemberResult.cc )
|
||||
|
||||
add_library(devops-rdc ${LIB_TYPE}
|
||||
${devops-rdc_public_header}
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
#include "model/DeleteDevopsProjectSprintResult.h"
|
||||
#include "model/DeleteDevopsProjectTaskRequest.h"
|
||||
#include "model/DeleteDevopsProjectTaskResult.h"
|
||||
#include "model/DeletePipelineMemberRequest.h"
|
||||
#include "model/DeletePipelineMemberResult.h"
|
||||
#include "model/ExecutePipelineRequest.h"
|
||||
#include "model/ExecutePipelineResult.h"
|
||||
#include "model/GetDevopsOrganizationMembersRequest.h"
|
||||
@@ -80,6 +82,8 @@
|
||||
#include "model/GetUserByAliyunUidResult.h"
|
||||
#include "model/InsertDevopsUserRequest.h"
|
||||
#include "model/InsertDevopsUserResult.h"
|
||||
#include "model/InsertPipelineMemberRequest.h"
|
||||
#include "model/InsertPipelineMemberResult.h"
|
||||
#include "model/InsertProjectMembersRequest.h"
|
||||
#include "model/InsertProjectMembersResult.h"
|
||||
#include "model/ListCredentialsRequest.h"
|
||||
@@ -100,12 +104,16 @@
|
||||
#include "model/ListServiceConnectionsResult.h"
|
||||
#include "model/ListUserOrganizationRequest.h"
|
||||
#include "model/ListUserOrganizationResult.h"
|
||||
#include "model/TransferPipelineOwnerRequest.h"
|
||||
#include "model/TransferPipelineOwnerResult.h"
|
||||
#include "model/UpdateDevopsProjectRequest.h"
|
||||
#include "model/UpdateDevopsProjectResult.h"
|
||||
#include "model/UpdateDevopsProjectSprintRequest.h"
|
||||
#include "model/UpdateDevopsProjectSprintResult.h"
|
||||
#include "model/UpdateDevopsProjectTaskRequest.h"
|
||||
#include "model/UpdateDevopsProjectTaskResult.h"
|
||||
#include "model/UpdatePipelineMemberRequest.h"
|
||||
#include "model/UpdatePipelineMemberResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -160,6 +168,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteDevopsProjectTaskResult> DeleteDevopsProjectTaskOutcome;
|
||||
typedef std::future<DeleteDevopsProjectTaskOutcome> DeleteDevopsProjectTaskOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::DeleteDevopsProjectTaskRequest&, const DeleteDevopsProjectTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDevopsProjectTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePipelineMemberResult> DeletePipelineMemberOutcome;
|
||||
typedef std::future<DeletePipelineMemberOutcome> DeletePipelineMemberOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::DeletePipelineMemberRequest&, const DeletePipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePipelineMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExecutePipelineResult> ExecutePipelineOutcome;
|
||||
typedef std::future<ExecutePipelineOutcome> ExecutePipelineOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ExecutePipelineRequest&, const ExecutePipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecutePipelineAsyncHandler;
|
||||
@@ -202,6 +213,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::InsertDevopsUserResult> InsertDevopsUserOutcome;
|
||||
typedef std::future<InsertDevopsUserOutcome> InsertDevopsUserOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::InsertDevopsUserRequest&, const InsertDevopsUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertDevopsUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::InsertPipelineMemberResult> InsertPipelineMemberOutcome;
|
||||
typedef std::future<InsertPipelineMemberOutcome> InsertPipelineMemberOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::InsertPipelineMemberRequest&, const InsertPipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertPipelineMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::InsertProjectMembersResult> InsertProjectMembersOutcome;
|
||||
typedef std::future<InsertProjectMembersOutcome> InsertProjectMembersOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::InsertProjectMembersRequest&, const InsertProjectMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertProjectMembersAsyncHandler;
|
||||
@@ -232,6 +246,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListUserOrganizationResult> ListUserOrganizationOutcome;
|
||||
typedef std::future<ListUserOrganizationOutcome> ListUserOrganizationOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListUserOrganizationRequest&, const ListUserOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserOrganizationAsyncHandler;
|
||||
typedef Outcome<Error, Model::TransferPipelineOwnerResult> TransferPipelineOwnerOutcome;
|
||||
typedef std::future<TransferPipelineOwnerOutcome> TransferPipelineOwnerOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::TransferPipelineOwnerRequest&, const TransferPipelineOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferPipelineOwnerAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDevopsProjectResult> UpdateDevopsProjectOutcome;
|
||||
typedef std::future<UpdateDevopsProjectOutcome> UpdateDevopsProjectOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectRequest&, const UpdateDevopsProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectAsyncHandler;
|
||||
@@ -241,6 +258,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateDevopsProjectTaskResult> UpdateDevopsProjectTaskOutcome;
|
||||
typedef std::future<UpdateDevopsProjectTaskOutcome> UpdateDevopsProjectTaskOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectTaskRequest&, const UpdateDevopsProjectTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdatePipelineMemberResult> UpdatePipelineMemberOutcome;
|
||||
typedef std::future<UpdatePipelineMemberOutcome> UpdatePipelineMemberOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::UpdatePipelineMemberRequest&, const UpdatePipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePipelineMemberAsyncHandler;
|
||||
|
||||
Devops_rdcClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Devops_rdcClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -291,6 +311,9 @@ namespace AlibabaCloud
|
||||
DeleteDevopsProjectTaskOutcome deleteDevopsProjectTask(const Model::DeleteDevopsProjectTaskRequest &request)const;
|
||||
void deleteDevopsProjectTaskAsync(const Model::DeleteDevopsProjectTaskRequest& request, const DeleteDevopsProjectTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDevopsProjectTaskOutcomeCallable deleteDevopsProjectTaskCallable(const Model::DeleteDevopsProjectTaskRequest& request) const;
|
||||
DeletePipelineMemberOutcome deletePipelineMember(const Model::DeletePipelineMemberRequest &request)const;
|
||||
void deletePipelineMemberAsync(const Model::DeletePipelineMemberRequest& request, const DeletePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePipelineMemberOutcomeCallable deletePipelineMemberCallable(const Model::DeletePipelineMemberRequest& request) const;
|
||||
ExecutePipelineOutcome executePipeline(const Model::ExecutePipelineRequest &request)const;
|
||||
void executePipelineAsync(const Model::ExecutePipelineRequest& request, const ExecutePipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExecutePipelineOutcomeCallable executePipelineCallable(const Model::ExecutePipelineRequest& request) const;
|
||||
@@ -333,6 +356,9 @@ namespace AlibabaCloud
|
||||
InsertDevopsUserOutcome insertDevopsUser(const Model::InsertDevopsUserRequest &request)const;
|
||||
void insertDevopsUserAsync(const Model::InsertDevopsUserRequest& request, const InsertDevopsUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InsertDevopsUserOutcomeCallable insertDevopsUserCallable(const Model::InsertDevopsUserRequest& request) const;
|
||||
InsertPipelineMemberOutcome insertPipelineMember(const Model::InsertPipelineMemberRequest &request)const;
|
||||
void insertPipelineMemberAsync(const Model::InsertPipelineMemberRequest& request, const InsertPipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InsertPipelineMemberOutcomeCallable insertPipelineMemberCallable(const Model::InsertPipelineMemberRequest& request) const;
|
||||
InsertProjectMembersOutcome insertProjectMembers(const Model::InsertProjectMembersRequest &request)const;
|
||||
void insertProjectMembersAsync(const Model::InsertProjectMembersRequest& request, const InsertProjectMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InsertProjectMembersOutcomeCallable insertProjectMembersCallable(const Model::InsertProjectMembersRequest& request) const;
|
||||
@@ -363,6 +389,9 @@ namespace AlibabaCloud
|
||||
ListUserOrganizationOutcome listUserOrganization(const Model::ListUserOrganizationRequest &request)const;
|
||||
void listUserOrganizationAsync(const Model::ListUserOrganizationRequest& request, const ListUserOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUserOrganizationOutcomeCallable listUserOrganizationCallable(const Model::ListUserOrganizationRequest& request) const;
|
||||
TransferPipelineOwnerOutcome transferPipelineOwner(const Model::TransferPipelineOwnerRequest &request)const;
|
||||
void transferPipelineOwnerAsync(const Model::TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TransferPipelineOwnerOutcomeCallable transferPipelineOwnerCallable(const Model::TransferPipelineOwnerRequest& request) const;
|
||||
UpdateDevopsProjectOutcome updateDevopsProject(const Model::UpdateDevopsProjectRequest &request)const;
|
||||
void updateDevopsProjectAsync(const Model::UpdateDevopsProjectRequest& request, const UpdateDevopsProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDevopsProjectOutcomeCallable updateDevopsProjectCallable(const Model::UpdateDevopsProjectRequest& request) const;
|
||||
@@ -372,6 +401,9 @@ namespace AlibabaCloud
|
||||
UpdateDevopsProjectTaskOutcome updateDevopsProjectTask(const Model::UpdateDevopsProjectTaskRequest &request)const;
|
||||
void updateDevopsProjectTaskAsync(const Model::UpdateDevopsProjectTaskRequest& request, const UpdateDevopsProjectTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDevopsProjectTaskOutcomeCallable updateDevopsProjectTaskCallable(const Model::UpdateDevopsProjectTaskRequest& request) const;
|
||||
UpdatePipelineMemberOutcome updatePipelineMember(const Model::UpdatePipelineMemberRequest &request)const;
|
||||
void updatePipelineMemberAsync(const Model::UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdatePipelineMemberOutcomeCallable updatePipelineMemberCallable(const Model::UpdatePipelineMemberRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT DeletePipelineMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeletePipelineMemberRequest();
|
||||
~DeletePipelineMemberRequest();
|
||||
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
long getPipelineId()const;
|
||||
void setPipelineId(long pipelineId);
|
||||
|
||||
private:
|
||||
std::string userPk_;
|
||||
std::string userId_;
|
||||
std::string orgId_;
|
||||
long pipelineId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT DeletePipelineMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeletePipelineMemberResult();
|
||||
explicit DeletePipelineMemberResult(const std::string &payload);
|
||||
~DeletePipelineMemberResult();
|
||||
bool getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool object_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT InsertPipelineMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InsertPipelineMemberRequest();
|
||||
~InsertPipelineMemberRequest();
|
||||
|
||||
std::string getRoleName()const;
|
||||
void setRoleName(const std::string& roleName);
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
long getPipelineId()const;
|
||||
void setPipelineId(long pipelineId);
|
||||
|
||||
private:
|
||||
std::string roleName_;
|
||||
std::string userPk_;
|
||||
std::string userId_;
|
||||
std::string orgId_;
|
||||
long pipelineId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT InsertPipelineMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
InsertPipelineMemberResult();
|
||||
explicit InsertPipelineMemberResult(const std::string &payload);
|
||||
~InsertPipelineMemberResult();
|
||||
bool getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool object_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT TransferPipelineOwnerRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TransferPipelineOwnerRequest();
|
||||
~TransferPipelineOwnerRequest();
|
||||
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
long getPipelineId()const;
|
||||
void setPipelineId(long pipelineId);
|
||||
std::string getNewOwnerId()const;
|
||||
void setNewOwnerId(const std::string& newOwnerId);
|
||||
|
||||
private:
|
||||
std::string userPk_;
|
||||
std::string orgId_;
|
||||
long pipelineId_;
|
||||
std::string newOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT TransferPipelineOwnerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TransferPipelineOwnerResult();
|
||||
explicit TransferPipelineOwnerResult(const std::string &payload);
|
||||
~TransferPipelineOwnerResult();
|
||||
std::string getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string object_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT UpdatePipelineMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdatePipelineMemberRequest();
|
||||
~UpdatePipelineMemberRequest();
|
||||
|
||||
std::string getRoleName()const;
|
||||
void setRoleName(const std::string& roleName);
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
long getPipelineId()const;
|
||||
void setPipelineId(long pipelineId);
|
||||
|
||||
private:
|
||||
std::string roleName_;
|
||||
std::string userPk_;
|
||||
std::string userId_;
|
||||
std::string orgId_;
|
||||
long pipelineId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT UpdatePipelineMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdatePipelineMemberResult();
|
||||
explicit UpdatePipelineMemberResult(const std::string &payload);
|
||||
~UpdatePipelineMemberResult();
|
||||
bool getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool object_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERRESULT_H_
|
||||
@@ -591,6 +591,42 @@ Devops_rdcClient::DeleteDevopsProjectTaskOutcomeCallable Devops_rdcClient::delet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::DeletePipelineMemberOutcome Devops_rdcClient::deletePipelineMember(const DeletePipelineMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePipelineMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePipelineMemberOutcome(DeletePipelineMemberResult(outcome.result()));
|
||||
else
|
||||
return DeletePipelineMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::deletePipelineMemberAsync(const DeletePipelineMemberRequest& request, const DeletePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePipelineMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::DeletePipelineMemberOutcomeCallable Devops_rdcClient::deletePipelineMemberCallable(const DeletePipelineMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePipelineMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePipelineMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::ExecutePipelineOutcome Devops_rdcClient::executePipeline(const ExecutePipelineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1131,42 @@ Devops_rdcClient::InsertDevopsUserOutcomeCallable Devops_rdcClient::insertDevops
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::InsertPipelineMemberOutcome Devops_rdcClient::insertPipelineMember(const InsertPipelineMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InsertPipelineMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InsertPipelineMemberOutcome(InsertPipelineMemberResult(outcome.result()));
|
||||
else
|
||||
return InsertPipelineMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::insertPipelineMemberAsync(const InsertPipelineMemberRequest& request, const InsertPipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, insertPipelineMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::InsertPipelineMemberOutcomeCallable Devops_rdcClient::insertPipelineMemberCallable(const InsertPipelineMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InsertPipelineMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->insertPipelineMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::InsertProjectMembersOutcome Devops_rdcClient::insertProjectMembers(const InsertProjectMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1455,6 +1527,42 @@ Devops_rdcClient::ListUserOrganizationOutcomeCallable Devops_rdcClient::listUser
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::TransferPipelineOwnerOutcome Devops_rdcClient::transferPipelineOwner(const TransferPipelineOwnerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TransferPipelineOwnerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TransferPipelineOwnerOutcome(TransferPipelineOwnerResult(outcome.result()));
|
||||
else
|
||||
return TransferPipelineOwnerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::transferPipelineOwnerAsync(const TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, transferPipelineOwner(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::TransferPipelineOwnerOutcomeCallable Devops_rdcClient::transferPipelineOwnerCallable(const TransferPipelineOwnerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TransferPipelineOwnerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->transferPipelineOwner(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdateDevopsProjectOutcome Devops_rdcClient::updateDevopsProject(const UpdateDevopsProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,3 +1671,39 @@ Devops_rdcClient::UpdateDevopsProjectTaskOutcomeCallable Devops_rdcClient::updat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdatePipelineMemberOutcome Devops_rdcClient::updatePipelineMember(const UpdatePipelineMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdatePipelineMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdatePipelineMemberOutcome(UpdatePipelineMemberResult(outcome.result()));
|
||||
else
|
||||
return UpdatePipelineMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::updatePipelineMemberAsync(const UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updatePipelineMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdatePipelineMemberOutcomeCallable Devops_rdcClient::updatePipelineMemberCallable(const UpdatePipelineMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdatePipelineMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updatePipelineMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
73
devops-rdc/src/model/DeletePipelineMemberRequest.cc
Normal file
73
devops-rdc/src/model/DeletePipelineMemberRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeletePipelineMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeletePipelineMemberRequest;
|
||||
|
||||
DeletePipelineMemberRequest::DeletePipelineMemberRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeletePipelineMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePipelineMemberRequest::~DeletePipelineMemberRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long DeletePipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/DeletePipelineMemberResult.cc
Normal file
72
devops-rdc/src/model/DeletePipelineMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeletePipelineMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
DeletePipelineMemberResult::DeletePipelineMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePipelineMemberResult::DeletePipelineMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePipelineMemberResult::~DeletePipelineMemberResult()
|
||||
{}
|
||||
|
||||
void DeletePipelineMemberResult::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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeletePipelineMemberResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeletePipelineMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
devops-rdc/src/model/InsertPipelineMemberRequest.cc
Normal file
84
devops-rdc/src/model/InsertPipelineMemberRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::InsertPipelineMemberRequest;
|
||||
|
||||
InsertPipelineMemberRequest::InsertPipelineMemberRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "InsertPipelineMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InsertPipelineMemberRequest::~InsertPipelineMemberRequest()
|
||||
{}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setBodyParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long InsertPipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/InsertPipelineMemberResult.cc
Normal file
72
devops-rdc/src/model/InsertPipelineMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/InsertPipelineMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
InsertPipelineMemberResult::InsertPipelineMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InsertPipelineMemberResult::InsertPipelineMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InsertPipelineMemberResult::~InsertPipelineMemberResult()
|
||||
{}
|
||||
|
||||
void InsertPipelineMemberResult::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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool InsertPipelineMemberResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool InsertPipelineMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
devops-rdc/src/model/TransferPipelineOwnerRequest.cc
Normal file
73
devops-rdc/src/model/TransferPipelineOwnerRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/TransferPipelineOwnerRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::TransferPipelineOwnerRequest;
|
||||
|
||||
TransferPipelineOwnerRequest::TransferPipelineOwnerRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "TransferPipelineOwner")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TransferPipelineOwnerRequest::~TransferPipelineOwnerRequest()
|
||||
{}
|
||||
|
||||
std::string TransferPipelineOwnerRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long TransferPipelineOwnerRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerRequest::getNewOwnerId()const
|
||||
{
|
||||
return newOwnerId_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setNewOwnerId(const std::string& newOwnerId)
|
||||
{
|
||||
newOwnerId_ = newOwnerId;
|
||||
setBodyParameter("NewOwnerId", newOwnerId);
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/TransferPipelineOwnerResult.cc
Normal file
72
devops-rdc/src/model/TransferPipelineOwnerResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/TransferPipelineOwnerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
TransferPipelineOwnerResult::TransferPipelineOwnerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TransferPipelineOwnerResult::TransferPipelineOwnerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TransferPipelineOwnerResult::~TransferPipelineOwnerResult()
|
||||
{}
|
||||
|
||||
void TransferPipelineOwnerResult::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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool TransferPipelineOwnerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
devops-rdc/src/model/UpdatePipelineMemberRequest.cc
Normal file
84
devops-rdc/src/model/UpdatePipelineMemberRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/UpdatePipelineMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::UpdatePipelineMemberRequest;
|
||||
|
||||
UpdatePipelineMemberRequest::UpdatePipelineMemberRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdatePipelineMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePipelineMemberRequest::~UpdatePipelineMemberRequest()
|
||||
{}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setBodyParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long UpdatePipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/UpdatePipelineMemberResult.cc
Normal file
72
devops-rdc/src/model/UpdatePipelineMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/UpdatePipelineMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
UpdatePipelineMemberResult::UpdatePipelineMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePipelineMemberResult::UpdatePipelineMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePipelineMemberResult::~UpdatePipelineMemberResult()
|
||||
{}
|
||||
|
||||
void UpdatePipelineMemberResult::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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdatePipelineMemberResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdatePipelineMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
86
emap/CMakeLists.txt
Normal file
86
emap/CMakeLists.txt
Normal file
@@ -0,0 +1,86 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
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}
|
||||
)
|
||||
54
emap/include/alibabacloud/emap/EmapClient.h
Normal file
54
emap/include/alibabacloud/emap/EmapClient.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
32
emap/include/alibabacloud/emap/EmapExport.h
Normal file
32
emap/include/alibabacloud/emap/EmapExport.h
Normal 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_
|
||||
@@ -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_
|
||||
@@ -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
89
emap/src/EmapClient.cc
Normal 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();
|
||||
}
|
||||
|
||||
40
emap/src/model/QueryMapInfoOpenRequest.cc
Normal file
40
emap/src/model/QueryMapInfoOpenRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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));
|
||||
}
|
||||
|
||||
100
emap/src/model/QueryMapInfoOpenResult.cc
Normal file
100
emap/src/model/QueryMapInfoOpenResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
@@ -61,14 +61,10 @@ set(ess_public_header_model
|
||||
include/alibabacloud/ess/model/DeleteScalingRuleResult.h
|
||||
include/alibabacloud/ess/model/DeleteScheduledTaskRequest.h
|
||||
include/alibabacloud/ess/model/DeleteScheduledTaskResult.h
|
||||
include/alibabacloud/ess/model/DescribeAccountAttributesRequest.h
|
||||
include/alibabacloud/ess/model/DescribeAccountAttributesResult.h
|
||||
include/alibabacloud/ess/model/DescribeAlarmsRequest.h
|
||||
include/alibabacloud/ess/model/DescribeAlarmsResult.h
|
||||
include/alibabacloud/ess/model/DescribeAlertConfigRequest.h
|
||||
include/alibabacloud/ess/model/DescribeAlertConfigResult.h
|
||||
include/alibabacloud/ess/model/DescribeCapacityHistoryRequest.h
|
||||
include/alibabacloud/ess/model/DescribeCapacityHistoryResult.h
|
||||
include/alibabacloud/ess/model/DescribeLifecycleActionsRequest.h
|
||||
include/alibabacloud/ess/model/DescribeLifecycleActionsResult.h
|
||||
include/alibabacloud/ess/model/DescribeLifecycleHooksRequest.h
|
||||
include/alibabacloud/ess/model/DescribeLifecycleHooksResult.h
|
||||
include/alibabacloud/ess/model/DescribeLimitationRequest.h
|
||||
@@ -123,8 +119,6 @@ set(ess_public_header_model
|
||||
include/alibabacloud/ess/model/ListTagValuesResult.h
|
||||
include/alibabacloud/ess/model/ModifyAlarmRequest.h
|
||||
include/alibabacloud/ess/model/ModifyAlarmResult.h
|
||||
include/alibabacloud/ess/model/ModifyAlertConfigRequest.h
|
||||
include/alibabacloud/ess/model/ModifyAlertConfigResult.h
|
||||
include/alibabacloud/ess/model/ModifyLifecycleHookRequest.h
|
||||
include/alibabacloud/ess/model/ModifyLifecycleHookResult.h
|
||||
include/alibabacloud/ess/model/ModifyNotificationConfigurationRequest.h
|
||||
@@ -204,14 +198,10 @@ set(ess_src
|
||||
src/model/DeleteScalingRuleResult.cc
|
||||
src/model/DeleteScheduledTaskRequest.cc
|
||||
src/model/DeleteScheduledTaskResult.cc
|
||||
src/model/DescribeAccountAttributesRequest.cc
|
||||
src/model/DescribeAccountAttributesResult.cc
|
||||
src/model/DescribeAlarmsRequest.cc
|
||||
src/model/DescribeAlarmsResult.cc
|
||||
src/model/DescribeAlertConfigRequest.cc
|
||||
src/model/DescribeAlertConfigResult.cc
|
||||
src/model/DescribeCapacityHistoryRequest.cc
|
||||
src/model/DescribeCapacityHistoryResult.cc
|
||||
src/model/DescribeLifecycleActionsRequest.cc
|
||||
src/model/DescribeLifecycleActionsResult.cc
|
||||
src/model/DescribeLifecycleHooksRequest.cc
|
||||
src/model/DescribeLifecycleHooksResult.cc
|
||||
src/model/DescribeLimitationRequest.cc
|
||||
@@ -266,8 +256,6 @@ set(ess_src
|
||||
src/model/ListTagValuesResult.cc
|
||||
src/model/ModifyAlarmRequest.cc
|
||||
src/model/ModifyAlarmResult.cc
|
||||
src/model/ModifyAlertConfigRequest.cc
|
||||
src/model/ModifyAlertConfigResult.cc
|
||||
src/model/ModifyLifecycleHookRequest.cc
|
||||
src/model/ModifyLifecycleHookResult.cc
|
||||
src/model/ModifyNotificationConfigurationRequest.cc
|
||||
|
||||
@@ -62,14 +62,10 @@
|
||||
#include "model/DeleteScalingRuleResult.h"
|
||||
#include "model/DeleteScheduledTaskRequest.h"
|
||||
#include "model/DeleteScheduledTaskResult.h"
|
||||
#include "model/DescribeAccountAttributesRequest.h"
|
||||
#include "model/DescribeAccountAttributesResult.h"
|
||||
#include "model/DescribeAlarmsRequest.h"
|
||||
#include "model/DescribeAlarmsResult.h"
|
||||
#include "model/DescribeAlertConfigRequest.h"
|
||||
#include "model/DescribeAlertConfigResult.h"
|
||||
#include "model/DescribeCapacityHistoryRequest.h"
|
||||
#include "model/DescribeCapacityHistoryResult.h"
|
||||
#include "model/DescribeLifecycleActionsRequest.h"
|
||||
#include "model/DescribeLifecycleActionsResult.h"
|
||||
#include "model/DescribeLifecycleHooksRequest.h"
|
||||
#include "model/DescribeLifecycleHooksResult.h"
|
||||
#include "model/DescribeLimitationRequest.h"
|
||||
@@ -124,8 +120,6 @@
|
||||
#include "model/ListTagValuesResult.h"
|
||||
#include "model/ModifyAlarmRequest.h"
|
||||
#include "model/ModifyAlarmResult.h"
|
||||
#include "model/ModifyAlertConfigRequest.h"
|
||||
#include "model/ModifyAlertConfigResult.h"
|
||||
#include "model/ModifyLifecycleHookRequest.h"
|
||||
#include "model/ModifyLifecycleHookResult.h"
|
||||
#include "model/ModifyNotificationConfigurationRequest.h"
|
||||
@@ -231,18 +225,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteScheduledTaskResult> DeleteScheduledTaskOutcome;
|
||||
typedef std::future<DeleteScheduledTaskOutcome> DeleteScheduledTaskOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::DeleteScheduledTaskRequest&, const DeleteScheduledTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteScheduledTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAccountAttributesResult> DescribeAccountAttributesOutcome;
|
||||
typedef std::future<DescribeAccountAttributesOutcome> DescribeAccountAttributesOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::DescribeAccountAttributesRequest&, const DescribeAccountAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAccountAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAlarmsResult> DescribeAlarmsOutcome;
|
||||
typedef std::future<DescribeAlarmsOutcome> DescribeAlarmsOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::DescribeAlarmsRequest&, const DescribeAlarmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlarmsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAlertConfigResult> DescribeAlertConfigOutcome;
|
||||
typedef std::future<DescribeAlertConfigOutcome> DescribeAlertConfigOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::DescribeAlertConfigRequest&, const DescribeAlertConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCapacityHistoryResult> DescribeCapacityHistoryOutcome;
|
||||
typedef std::future<DescribeCapacityHistoryOutcome> DescribeCapacityHistoryOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::DescribeCapacityHistoryRequest&, const DescribeCapacityHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCapacityHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLifecycleActionsResult> DescribeLifecycleActionsOutcome;
|
||||
typedef std::future<DescribeLifecycleActionsOutcome> DescribeLifecycleActionsOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::DescribeLifecycleActionsRequest&, const DescribeLifecycleActionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLifecycleActionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLifecycleHooksResult> DescribeLifecycleHooksOutcome;
|
||||
typedef std::future<DescribeLifecycleHooksOutcome> DescribeLifecycleHooksOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::DescribeLifecycleHooksRequest&, const DescribeLifecycleHooksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLifecycleHooksAsyncHandler;
|
||||
@@ -324,9 +312,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyAlarmResult> ModifyAlarmOutcome;
|
||||
typedef std::future<ModifyAlarmOutcome> ModifyAlarmOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::ModifyAlarmRequest&, const ModifyAlarmOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAlarmAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAlertConfigResult> ModifyAlertConfigOutcome;
|
||||
typedef std::future<ModifyAlertConfigOutcome> ModifyAlertConfigOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::ModifyAlertConfigRequest&, const ModifyAlertConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAlertConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyLifecycleHookResult> ModifyLifecycleHookOutcome;
|
||||
typedef std::future<ModifyLifecycleHookOutcome> ModifyLifecycleHookOutcomeCallable;
|
||||
typedef std::function<void(const EssClient*, const Model::ModifyLifecycleHookRequest&, const ModifyLifecycleHookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyLifecycleHookAsyncHandler;
|
||||
@@ -446,18 +431,12 @@ namespace AlibabaCloud
|
||||
DeleteScheduledTaskOutcome deleteScheduledTask(const Model::DeleteScheduledTaskRequest &request)const;
|
||||
void deleteScheduledTaskAsync(const Model::DeleteScheduledTaskRequest& request, const DeleteScheduledTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteScheduledTaskOutcomeCallable deleteScheduledTaskCallable(const Model::DeleteScheduledTaskRequest& request) const;
|
||||
DescribeAccountAttributesOutcome describeAccountAttributes(const Model::DescribeAccountAttributesRequest &request)const;
|
||||
void describeAccountAttributesAsync(const Model::DescribeAccountAttributesRequest& request, const DescribeAccountAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAccountAttributesOutcomeCallable describeAccountAttributesCallable(const Model::DescribeAccountAttributesRequest& request) const;
|
||||
DescribeAlarmsOutcome describeAlarms(const Model::DescribeAlarmsRequest &request)const;
|
||||
void describeAlarmsAsync(const Model::DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlarmsOutcomeCallable describeAlarmsCallable(const Model::DescribeAlarmsRequest& request) const;
|
||||
DescribeAlertConfigOutcome describeAlertConfig(const Model::DescribeAlertConfigRequest &request)const;
|
||||
void describeAlertConfigAsync(const Model::DescribeAlertConfigRequest& request, const DescribeAlertConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlertConfigOutcomeCallable describeAlertConfigCallable(const Model::DescribeAlertConfigRequest& request) const;
|
||||
DescribeCapacityHistoryOutcome describeCapacityHistory(const Model::DescribeCapacityHistoryRequest &request)const;
|
||||
void describeCapacityHistoryAsync(const Model::DescribeCapacityHistoryRequest& request, const DescribeCapacityHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCapacityHistoryOutcomeCallable describeCapacityHistoryCallable(const Model::DescribeCapacityHistoryRequest& request) const;
|
||||
DescribeLifecycleActionsOutcome describeLifecycleActions(const Model::DescribeLifecycleActionsRequest &request)const;
|
||||
void describeLifecycleActionsAsync(const Model::DescribeLifecycleActionsRequest& request, const DescribeLifecycleActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLifecycleActionsOutcomeCallable describeLifecycleActionsCallable(const Model::DescribeLifecycleActionsRequest& request) const;
|
||||
DescribeLifecycleHooksOutcome describeLifecycleHooks(const Model::DescribeLifecycleHooksRequest &request)const;
|
||||
void describeLifecycleHooksAsync(const Model::DescribeLifecycleHooksRequest& request, const DescribeLifecycleHooksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLifecycleHooksOutcomeCallable describeLifecycleHooksCallable(const Model::DescribeLifecycleHooksRequest& request) const;
|
||||
@@ -539,9 +518,6 @@ namespace AlibabaCloud
|
||||
ModifyAlarmOutcome modifyAlarm(const Model::ModifyAlarmRequest &request)const;
|
||||
void modifyAlarmAsync(const Model::ModifyAlarmRequest& request, const ModifyAlarmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAlarmOutcomeCallable modifyAlarmCallable(const Model::ModifyAlarmRequest& request) const;
|
||||
ModifyAlertConfigOutcome modifyAlertConfig(const Model::ModifyAlertConfigRequest &request)const;
|
||||
void modifyAlertConfigAsync(const Model::ModifyAlertConfigRequest& request, const ModifyAlertConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAlertConfigOutcomeCallable modifyAlertConfigCallable(const Model::ModifyAlertConfigRequest& request) const;
|
||||
ModifyLifecycleHookOutcome modifyLifecycleHook(const Model::ModifyLifecycleHookRequest &request)const;
|
||||
void modifyLifecycleHookAsync(const Model::ModifyLifecycleHookRequest& request, const ModifyLifecycleHookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyLifecycleHookOutcomeCallable modifyLifecycleHookCallable(const Model::ModifyLifecycleHookRequest& request) const;
|
||||
|
||||
3
ess/include/alibabacloud/ess/model/AttachDBInstancesRequest.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/AttachDBInstancesRequest.h
Executable file → Normal file
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
AttachDBInstancesRequest();
|
||||
~AttachDBInstancesRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getScalingGroupId()const;
|
||||
void setScalingGroupId(const std::string& scalingGroupId);
|
||||
bool getForceAttach()const;
|
||||
@@ -49,6 +51,7 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string scalingGroupId_;
|
||||
bool forceAttach_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
0
ess/include/alibabacloud/ess/model/AttachDBInstancesResult.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/AttachDBInstancesResult.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/AttachInstancesRequest.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/AttachInstancesRequest.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/AttachInstancesResult.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/AttachInstancesResult.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/AttachLoadBalancersRequest.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/AttachLoadBalancersRequest.h
Executable file → Normal file
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
AttachLoadBalancersRequest();
|
||||
~AttachLoadBalancersRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getScalingGroupId()const;
|
||||
void setScalingGroupId(const std::string& scalingGroupId);
|
||||
bool getForceAttach()const;
|
||||
@@ -49,6 +51,7 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string scalingGroupId_;
|
||||
bool forceAttach_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
0
ess/include/alibabacloud/ess/model/AttachLoadBalancersResult.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/AttachLoadBalancersResult.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/AttachVServerGroupsRequest.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/AttachVServerGroupsRequest.h
Executable file → Normal file
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
AttachVServerGroupsRequest();
|
||||
~AttachVServerGroupsRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getScalingGroupId()const;
|
||||
void setScalingGroupId(const std::string& scalingGroupId);
|
||||
bool getForceAttach()const;
|
||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
||||
void setVServerGroup(const std::vector<VServerGroup>& vServerGroup);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string scalingGroupId_;
|
||||
bool forceAttach_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
0
ess/include/alibabacloud/ess/model/AttachVServerGroupsResult.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/AttachVServerGroupsResult.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/CompleteLifecycleActionRequest.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/CompleteLifecycleActionRequest.h
Executable file → Normal file
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getLifecycleActionToken()const;
|
||||
void setLifecycleActionToken(const std::string& lifecycleActionToken);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string lifecycleActionToken_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string lifecycleHookId_;
|
||||
|
||||
0
ess/include/alibabacloud/ess/model/CompleteLifecycleActionResult.h
Executable file → Normal file
0
ess/include/alibabacloud/ess/model/CompleteLifecycleActionResult.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/CreateAlarmRequest.h
Executable file → Normal file
3
ess/include/alibabacloud/ess/model/CreateAlarmRequest.h
Executable file → Normal file
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setThreshold(float threshold);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getEffective()const;
|
||||
void setEffective(const std::string& effective);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getEvaluationCount()const;
|
||||
@@ -83,6 +85,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> alarmAction_;
|
||||
float threshold_;
|
||||
std::string accessKeyId_;
|
||||
std::string effective_;
|
||||
std::string regionId_;
|
||||
int evaluationCount_;
|
||||
std::string metricName_;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user