Compare commits

..

12 Commits

Author SHA1 Message Date
sdk-team
2123976cc2 Generated 2018-12-12 for vs. 2020-09-22 01:54:19 +00:00
sdk-team
7097cf0d88 Generated 2016-11-01 for live. 2020-09-22 01:53:20 +00:00
sdk-team
dd1d0e5359 Interface add column wordCount. 2020-09-21 08:33:16 +00:00
sdk-team
3823d5045a Add search object. 2020-09-21 01:38:33 +00:00
sdk-team
80e095a3fc Add describe devices to return device status. 2020-09-20 13:02:30 +00:00
sdk-team
c12d0267d7 Add describe devices to return device status. 2020-09-20 12:12:16 +00:00
sdk-team
d69766bdfd Support query user tenant list and current active tenant. 2020-09-19 07:29:55 +00:00
sdk-team
7ac1c23a9f Update DetectLungNodule, DetectSpineMRI, DetectKneeXRay, DetectCovid19Cad. 2020-09-18 08:48:48 +00:00
sdk-team
088c3010cd Add Api DetectIPCPedestrianOptimized. 2020-09-17 16:57:51 +00:00
sdk-team
5c7994cbcb Add Api DetectIPCPedestrianOptimized. 2020-09-17 16:37:37 +00:00
sdk-team
3fc73ce0c4 GetTitleIntelligence add interface. 2020-09-17 11:57:26 +00:00
sdk-team
aa99d784f0 Fix endpoint. 2020-09-17 09:44:49 +00:00
617 changed files with 46590 additions and 129 deletions

View File

@@ -1,3 +1,40 @@
2020-09-22 Version: patch
- Generated 2018-12-12 for `vs`.
2020-09-22 Version: patch
- Generated 2016-11-01 for `live`.
2020-09-21 Version: patch
- Interface add column wordCount.
2020-09-21 Version: patch
- Add search object.
2020-09-20 Version: patch
- Add describe devices to return device status.
2020-09-20 Version: patch
- Add describe devices to return device status.
2020-09-19 Version: patch
- Support query user tenant list and current active tenant.
- Support query table meta information via table GUID.
2020-09-18 Version: patch
- Update DetectLungNodule, DetectSpineMRI, DetectKneeXRay, DetectCovid19Cad.
2020-09-17 Version: patch
- Add Api DetectIPCPedestrianOptimized.
2020-09-17 Version: patch
- Add Api DetectIPCPedestrianOptimized.
2020-09-17 Version: patch
- GetTitleIntelligence add interface.
2020-09-17 Version: patch
- Fix endpoint.
2020-09-16 Version: patch
- Add Content.

View File

@@ -35,6 +35,8 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
include/alibabacloud/alimt/model/TranslateRequest.h
include/alibabacloud/alimt/model/TranslateResult.h
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
@@ -60,6 +62,8 @@ set(alimt_src
src/model/GetTitleDiagnoseResult.cc
src/model/GetTitleGenerateRequest.cc
src/model/GetTitleGenerateResult.cc
src/model/GetTitleIntelligenceRequest.cc
src/model/GetTitleIntelligenceResult.cc
src/model/TranslateRequest.cc
src/model/TranslateResult.cc
src/model/TranslateCertificateRequest.cc

View File

@@ -36,6 +36,8 @@
#include "model/GetTitleDiagnoseResult.h"
#include "model/GetTitleGenerateRequest.h"
#include "model/GetTitleGenerateResult.h"
#include "model/GetTitleIntelligenceRequest.h"
#include "model/GetTitleIntelligenceResult.h"
#include "model/TranslateRequest.h"
#include "model/TranslateResult.h"
#include "model/TranslateCertificateRequest.h"
@@ -74,6 +76,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTitleGenerateResult> GetTitleGenerateOutcome;
typedef std::future<GetTitleGenerateOutcome> GetTitleGenerateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleGenerateRequest&, const GetTitleGenerateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleGenerateAsyncHandler;
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
@@ -112,6 +117,9 @@ namespace AlibabaCloud
GetTitleGenerateOutcome getTitleGenerate(const Model::GetTitleGenerateRequest &request)const;
void getTitleGenerateAsync(const Model::GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleGenerateOutcomeCallable getTitleGenerateCallable(const Model::GetTitleGenerateRequest& request) const;
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
TranslateOutcome translate(const Model::TranslateRequest &request)const;
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_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 GetTitleIntelligenceRequest : public RpcServiceRequest
{
public:
GetTitleIntelligenceRequest();
~GetTitleIntelligenceRequest();
long getCatLevelThreeId()const;
void setCatLevelThreeId(long catLevelThreeId);
long getCatLevelTwoId()const;
void setCatLevelTwoId(long catLevelTwoId);
std::string getKeywords()const;
void setKeywords(const std::string& keywords);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
long catLevelThreeId_;
long catLevelTwoId_;
std::string keywords_;
std::string platform_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_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 GetTitleIntelligenceResult : public ServiceResult
{
public:
struct Data
{
std::string titles;
};
GetTitleIntelligenceResult();
explicit GetTitleIntelligenceResult(const std::string &payload);
~GetTitleIntelligenceResult();
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_GETTITLEINTELLIGENCERESULT_H_

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
public:
struct Data
{
std::string wordCount;
std::string translated;
};

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
public:
struct Data
{
std::string wordCount;
std::string translated;
};

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
public:
struct Data
{
std::string wordCount;
std::string translated;
};

View File

@@ -303,6 +303,42 @@ AlimtClient::GetTitleGenerateOutcomeCallable AlimtClient::getTitleGenerateCallab
return task->get_future();
}
AlimtClient::GetTitleIntelligenceOutcome AlimtClient::getTitleIntelligence(const GetTitleIntelligenceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTitleIntelligenceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTitleIntelligenceOutcome(GetTitleIntelligenceResult(outcome.result()));
else
return GetTitleIntelligenceOutcome(outcome.error());
}
void AlimtClient::getTitleIntelligenceAsync(const GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTitleIntelligence(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligenceCallable(const GetTitleIntelligenceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTitleIntelligenceOutcome()>>(
[this, request]()
{
return this->getTitleIntelligence(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alimt/model/GetTitleIntelligenceRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
{}
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
{
return catLevelThreeId_;
}
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
{
catLevelThreeId_ = catLevelThreeId;
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
}
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
{
return catLevelTwoId_;
}
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
{
catLevelTwoId_ = catLevelTwoId;
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
}
std::string GetTitleIntelligenceRequest::getKeywords()const
{
return keywords_;
}
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
{
keywords_ = keywords;
setBodyParameter("Keywords", keywords);
}
std::string GetTitleIntelligenceRequest::getPlatform()const
{
return platform_;
}
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
}
std::string GetTitleIntelligenceRequest::getExtra()const
{
return extra_;
}
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
}

View File

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

View File

@@ -42,6 +42,8 @@ void TranslateECommerceResult::parse(const std::string &payload)
auto dataNode = value["Data"];
if(!dataNode["Translated"].isNull())
data_.translated = dataNode["Translated"].asString();
if(!dataNode["WordCount"].isNull())
data_.wordCount = dataNode["WordCount"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -42,6 +42,8 @@ void TranslateGeneralResult::parse(const std::string &payload)
auto dataNode = value["Data"];
if(!dataNode["Translated"].isNull())
data_.translated = dataNode["Translated"].asString();
if(!dataNode["WordCount"].isNull())
data_.wordCount = dataNode["WordCount"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -42,6 +42,8 @@ void TranslateResult::parse(const std::string &payload)
auto dataNode = value["Data"];
if(!dataNode["Translated"].isNull())
data_.translated = dataNode["Translated"].asString();
if(!dataNode["WordCount"].isNull())
data_.wordCount = dataNode["WordCount"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())

View File

@@ -61,12 +61,20 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/GetInstanceResult.h
include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h
include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h
include/alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h
include/alibabacloud/dms-enterprise/model/GetMetaTableColumnResult.h
include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h
include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoResult.h
include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h
include/alibabacloud/dms-enterprise/model/GetOpLogResult.h
include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h
include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h
include/alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h
include/alibabacloud/dms-enterprise/model/GetTableDBTopologyResult.h
include/alibabacloud/dms-enterprise/model/GetUserRequest.h
include/alibabacloud/dms-enterprise/model/GetUserResult.h
include/alibabacloud/dms-enterprise/model/GetUserActiveTenantRequest.h
include/alibabacloud/dms-enterprise/model/GetUserActiveTenantResult.h
include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h
include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h
include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h
@@ -93,6 +101,8 @@ set(dms-enterprise_public_header_model
include/alibabacloud/dms-enterprise/model/ListTablesResult.h
include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h
include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h
include/alibabacloud/dms-enterprise/model/ListUserTenantsRequest.h
include/alibabacloud/dms-enterprise/model/ListUserTenantsResult.h
include/alibabacloud/dms-enterprise/model/ListUsersRequest.h
include/alibabacloud/dms-enterprise/model/ListUsersResult.h
include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h
@@ -164,12 +174,20 @@ set(dms-enterprise_src
src/model/GetInstanceResult.cc
src/model/GetLogicDatabaseRequest.cc
src/model/GetLogicDatabaseResult.cc
src/model/GetMetaTableColumnRequest.cc
src/model/GetMetaTableColumnResult.cc
src/model/GetMetaTableDetailInfoRequest.cc
src/model/GetMetaTableDetailInfoResult.cc
src/model/GetOpLogRequest.cc
src/model/GetOpLogResult.cc
src/model/GetOrderBaseInfoRequest.cc
src/model/GetOrderBaseInfoResult.cc
src/model/GetTableDBTopologyRequest.cc
src/model/GetTableDBTopologyResult.cc
src/model/GetUserRequest.cc
src/model/GetUserResult.cc
src/model/GetUserActiveTenantRequest.cc
src/model/GetUserActiveTenantResult.cc
src/model/GrantUserPermissionRequest.cc
src/model/GrantUserPermissionResult.cc
src/model/ListColumnsRequest.cc
@@ -196,6 +214,8 @@ set(dms-enterprise_src
src/model/ListTablesResult.cc
src/model/ListUserPermissionsRequest.cc
src/model/ListUserPermissionsResult.cc
src/model/ListUserTenantsRequest.cc
src/model/ListUserTenantsResult.cc
src/model/ListUsersRequest.cc
src/model/ListUsersResult.cc
src/model/ListWorkFlowNodesRequest.cc

View File

@@ -62,12 +62,20 @@
#include "model/GetInstanceResult.h"
#include "model/GetLogicDatabaseRequest.h"
#include "model/GetLogicDatabaseResult.h"
#include "model/GetMetaTableColumnRequest.h"
#include "model/GetMetaTableColumnResult.h"
#include "model/GetMetaTableDetailInfoRequest.h"
#include "model/GetMetaTableDetailInfoResult.h"
#include "model/GetOpLogRequest.h"
#include "model/GetOpLogResult.h"
#include "model/GetOrderBaseInfoRequest.h"
#include "model/GetOrderBaseInfoResult.h"
#include "model/GetTableDBTopologyRequest.h"
#include "model/GetTableDBTopologyResult.h"
#include "model/GetUserRequest.h"
#include "model/GetUserResult.h"
#include "model/GetUserActiveTenantRequest.h"
#include "model/GetUserActiveTenantResult.h"
#include "model/GrantUserPermissionRequest.h"
#include "model/GrantUserPermissionResult.h"
#include "model/ListColumnsRequest.h"
@@ -94,6 +102,8 @@
#include "model/ListTablesResult.h"
#include "model/ListUserPermissionsRequest.h"
#include "model/ListUserPermissionsResult.h"
#include "model/ListUserTenantsRequest.h"
#include "model/ListUserTenantsResult.h"
#include "model/ListUsersRequest.h"
#include "model/ListUsersResult.h"
#include "model/ListWorkFlowNodesRequest.h"
@@ -191,15 +201,27 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetLogicDatabaseResult> GetLogicDatabaseOutcome;
typedef std::future<GetLogicDatabaseOutcome> GetLogicDatabaseOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetLogicDatabaseRequest&, const GetLogicDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLogicDatabaseAsyncHandler;
typedef Outcome<Error, Model::GetMetaTableColumnResult> GetMetaTableColumnOutcome;
typedef std::future<GetMetaTableColumnOutcome> GetMetaTableColumnOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetMetaTableColumnRequest&, const GetMetaTableColumnOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMetaTableColumnAsyncHandler;
typedef Outcome<Error, Model::GetMetaTableDetailInfoResult> GetMetaTableDetailInfoOutcome;
typedef std::future<GetMetaTableDetailInfoOutcome> GetMetaTableDetailInfoOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetMetaTableDetailInfoRequest&, const GetMetaTableDetailInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMetaTableDetailInfoAsyncHandler;
typedef Outcome<Error, Model::GetOpLogResult> GetOpLogOutcome;
typedef std::future<GetOpLogOutcome> GetOpLogOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetOpLogRequest&, const GetOpLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOpLogAsyncHandler;
typedef Outcome<Error, Model::GetOrderBaseInfoResult> GetOrderBaseInfoOutcome;
typedef std::future<GetOrderBaseInfoOutcome> GetOrderBaseInfoOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetOrderBaseInfoRequest&, const GetOrderBaseInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOrderBaseInfoAsyncHandler;
typedef Outcome<Error, Model::GetTableDBTopologyResult> GetTableDBTopologyOutcome;
typedef std::future<GetTableDBTopologyOutcome> GetTableDBTopologyOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetTableDBTopologyRequest&, const GetTableDBTopologyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTableDBTopologyAsyncHandler;
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
typedef Outcome<Error, Model::GetUserActiveTenantResult> GetUserActiveTenantOutcome;
typedef std::future<GetUserActiveTenantOutcome> GetUserActiveTenantOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetUserActiveTenantRequest&, const GetUserActiveTenantOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserActiveTenantAsyncHandler;
typedef Outcome<Error, Model::GrantUserPermissionResult> GrantUserPermissionOutcome;
typedef std::future<GrantUserPermissionOutcome> GrantUserPermissionOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::GrantUserPermissionRequest&, const GrantUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantUserPermissionAsyncHandler;
@@ -239,6 +261,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListUserPermissionsResult> ListUserPermissionsOutcome;
typedef std::future<ListUserPermissionsOutcome> ListUserPermissionsOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUserPermissionsRequest&, const ListUserPermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserPermissionsAsyncHandler;
typedef Outcome<Error, Model::ListUserTenantsResult> ListUserTenantsOutcome;
typedef std::future<ListUserTenantsOutcome> ListUserTenantsOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUserTenantsRequest&, const ListUserTenantsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserTenantsAsyncHandler;
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
@@ -346,15 +371,27 @@ namespace AlibabaCloud
GetLogicDatabaseOutcome getLogicDatabase(const Model::GetLogicDatabaseRequest &request)const;
void getLogicDatabaseAsync(const Model::GetLogicDatabaseRequest& request, const GetLogicDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLogicDatabaseOutcomeCallable getLogicDatabaseCallable(const Model::GetLogicDatabaseRequest& request) const;
GetMetaTableColumnOutcome getMetaTableColumn(const Model::GetMetaTableColumnRequest &request)const;
void getMetaTableColumnAsync(const Model::GetMetaTableColumnRequest& request, const GetMetaTableColumnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMetaTableColumnOutcomeCallable getMetaTableColumnCallable(const Model::GetMetaTableColumnRequest& request) const;
GetMetaTableDetailInfoOutcome getMetaTableDetailInfo(const Model::GetMetaTableDetailInfoRequest &request)const;
void getMetaTableDetailInfoAsync(const Model::GetMetaTableDetailInfoRequest& request, const GetMetaTableDetailInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMetaTableDetailInfoOutcomeCallable getMetaTableDetailInfoCallable(const Model::GetMetaTableDetailInfoRequest& request) const;
GetOpLogOutcome getOpLog(const Model::GetOpLogRequest &request)const;
void getOpLogAsync(const Model::GetOpLogRequest& request, const GetOpLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOpLogOutcomeCallable getOpLogCallable(const Model::GetOpLogRequest& request) const;
GetOrderBaseInfoOutcome getOrderBaseInfo(const Model::GetOrderBaseInfoRequest &request)const;
void getOrderBaseInfoAsync(const Model::GetOrderBaseInfoRequest& request, const GetOrderBaseInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOrderBaseInfoOutcomeCallable getOrderBaseInfoCallable(const Model::GetOrderBaseInfoRequest& request) const;
GetTableDBTopologyOutcome getTableDBTopology(const Model::GetTableDBTopologyRequest &request)const;
void getTableDBTopologyAsync(const Model::GetTableDBTopologyRequest& request, const GetTableDBTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTableDBTopologyOutcomeCallable getTableDBTopologyCallable(const Model::GetTableDBTopologyRequest& request) const;
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
GetUserActiveTenantOutcome getUserActiveTenant(const Model::GetUserActiveTenantRequest &request)const;
void getUserActiveTenantAsync(const Model::GetUserActiveTenantRequest& request, const GetUserActiveTenantAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetUserActiveTenantOutcomeCallable getUserActiveTenantCallable(const Model::GetUserActiveTenantRequest& request) const;
GrantUserPermissionOutcome grantUserPermission(const Model::GrantUserPermissionRequest &request)const;
void grantUserPermissionAsync(const Model::GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GrantUserPermissionOutcomeCallable grantUserPermissionCallable(const Model::GrantUserPermissionRequest& request) const;
@@ -394,6 +431,9 @@ namespace AlibabaCloud
ListUserPermissionsOutcome listUserPermissions(const Model::ListUserPermissionsRequest &request)const;
void listUserPermissionsAsync(const Model::ListUserPermissionsRequest& request, const ListUserPermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserPermissionsOutcomeCallable listUserPermissionsCallable(const Model::ListUserPermissionsRequest& request) const;
ListUserTenantsOutcome listUserTenants(const Model::ListUserTenantsRequest &request)const;
void listUserTenantsAsync(const Model::ListUserTenantsRequest& request, const ListUserTenantsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserTenantsOutcomeCallable listUserTenantsCallable(const Model::ListUserTenantsRequest& request) const;
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableColumnRequest : public RpcServiceRequest
{
public:
GetMetaTableColumnRequest();
~GetMetaTableColumnRequest();
std::string getTableGuid()const;
void setTableGuid(const std::string& tableGuid);
long getTid()const;
void setTid(long tid);
private:
std::string tableGuid_;
long tid_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableColumnResult : public ServiceResult
{
public:
struct Column
{
std::string columnId;
std::string columnName;
std::string columnType;
std::string description;
int position;
bool autoIncrement;
std::string securityLevel;
int dataLength;
int dataScale;
std::string primaryKey;
int dataPrecision;
bool nullable;
};
GetMetaTableColumnResult();
explicit GetMetaTableColumnResult(const std::string &payload);
~GetMetaTableColumnResult();
std::vector<Column> getColumnList()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Column> columnList_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableDetailInfoRequest : public RpcServiceRequest
{
public:
GetMetaTableDetailInfoRequest();
~GetMetaTableDetailInfoRequest();
std::string getTableGuid()const;
void setTableGuid(const std::string& tableGuid);
long getTid()const;
void setTid(long tid);
private:
std::string tableGuid_;
long tid_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFORESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableDetailInfoResult : public ServiceResult
{
public:
struct DetailInfo
{
struct Column
{
std::string columnId;
std::string columnName;
std::string description;
std::string columnType;
std::string position;
bool autoIncrement;
int dataLength;
int dataScale;
int dataPrecision;
bool nullable;
};
struct Index
{
std::string indexName;
std::string indexId;
std::vector<std::string> indexColumns;
bool unique;
std::string indexType;
};
std::vector<Column> columnList;
std::vector<Index> indexList;
};
GetMetaTableDetailInfoResult();
explicit GetMetaTableDetailInfoResult(const std::string &payload);
~GetMetaTableDetailInfoResult();
DetailInfo getDetailInfo()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
DetailInfo detailInfo_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFORESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableDBTopologyRequest : public RpcServiceRequest
{
public:
GetTableDBTopologyRequest();
~GetTableDBTopologyRequest();
std::string getTableGuid()const;
void setTableGuid(const std::string& tableGuid);
long getTid()const;
void setTid(long tid);
private:
std::string tableGuid_;
long tid_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableDBTopologyResult : public ServiceResult
{
public:
struct DBTopology
{
struct DataSource
{
struct Database
{
struct Table
{
std::string tableId;
std::string tableName;
std::string tableType;
};
std::string dbId;
std::string dbName;
std::vector<Database::Table> tableList;
std::string envType;
std::string dbType;
};
std::vector<DataSource::Database> databaseList;
int port;
std::string host;
std::string dbType;
std::string sid;
};
std::string tableName;
std::string tableGuid;
std::vector<DataSource> dataSourceList;
};
GetTableDBTopologyResult();
explicit GetTableDBTopologyResult(const std::string &payload);
~GetTableDBTopologyResult();
DBTopology getDBTopology()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
DBTopology dBTopology_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserActiveTenantRequest : public RpcServiceRequest
{
public:
GetUserActiveTenantRequest();
~GetUserActiveTenantRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserActiveTenantResult : public ServiceResult
{
public:
struct Tenant
{
std::string status;
std::string tenantName;
long tid;
};
GetUserActiveTenantResult();
explicit GetUserActiveTenantResult(const std::string &payload);
~GetUserActiveTenantResult();
Tenant getTenant()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
Tenant tenant_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTRESULT_H_

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getSearchName()const;
void setSearchName(const std::string& searchName);
bool getReturnGuid()const;
void setReturnGuid(bool returnGuid);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getDatabaseId()const;
@@ -48,6 +50,7 @@ namespace AlibabaCloud
private:
std::string searchName_;
bool returnGuid_;
int pageSize_;
std::string databaseId_;
long tid_;

View File

@@ -36,11 +36,13 @@ namespace AlibabaCloud
{
std::string tableId;
std::string tableName;
std::string tableGuid;
std::string tableExpr;
std::string tableCount;
std::string databaseId;
std::vector<std::string> ownerNameList;
bool logic;
std::string schemaName;
std::vector<std::string> ownerIdList;
};

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getSearchName()const;
void setSearchName(const std::string& searchName);
bool getReturnGuid()const;
void setReturnGuid(bool returnGuid);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getDatabaseId()const;
@@ -48,6 +50,7 @@ namespace AlibabaCloud
private:
std::string searchName_;
bool returnGuid_;
int pageSize_;
std::string databaseId_;
long tid_;

View File

@@ -35,13 +35,15 @@ namespace AlibabaCloud
struct Table
{
std::string tableId;
std::string tableName;
std::string tableType;
std::string tableSchemaName;
std::string description;
std::string databaseId;
std::string encoding;
std::vector<std::string> ownerNameList;
long numRows;
std::string tableName;
std::string tableGuid;
std::string tableSchemaName;
std::vector<std::string> ownerNameList;
long storeCapacity;
std::string engine;
std::vector<std::string> ownerIdList;

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserTenantsRequest : public RpcServiceRequest
{
public:
ListUserTenantsRequest();
~ListUserTenantsRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSRESULT_H_
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
namespace AlibabaCloud
{
namespace Dms_enterprise
{
namespace Model
{
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserTenantsResult : public ServiceResult
{
public:
struct Tenant
{
std::string status;
std::string tenantName;
long tid;
};
ListUserTenantsResult();
explicit ListUserTenantsResult(const std::string &payload);
~ListUserTenantsResult();
std::vector<Tenant> getTenantList()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Tenant> tenantList_;
std::string errorCode_;
std::string errorMessage_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSRESULT_H_

View File

@@ -75,6 +75,8 @@ namespace AlibabaCloud
void setVpcId(const std::string& vpcId);
long getDbaUid()const;
void setDbaUid(long dbaUid);
bool getSkipTest()const;
void setSkipTest(bool skipTest);
std::string getSafeRule()const;
void setSafeRule(const std::string& safeRule);
@@ -99,6 +101,7 @@ namespace AlibabaCloud
int port_;
std::string vpcId_;
long dbaUid_;
bool skipTest_;
std::string safeRule_;
};

View File

@@ -35,12 +35,8 @@ namespace AlibabaCloud
SearchTableRequest();
~SearchTableRequest();
std::string getSearchTarget()const;
void setSearchTarget(const std::string& searchTarget);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getEnvType()const;
void setEnvType(const std::string& envType);
bool getReturnGuid()const;
void setReturnGuid(bool returnGuid);
std::string getSearchKey()const;
void setSearchKey(const std::string& searchKey);
std::string getSearchRange()const;
@@ -49,15 +45,25 @@ namespace AlibabaCloud
void setTid(long tid);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getSearchTarget()const;
void setSearchTarget(const std::string& searchTarget);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getEnvType()const;
void setEnvType(const std::string& envType);
std::string getDbType()const;
void setDbType(const std::string& dbType);
private:
std::string searchTarget_;
int pageSize_;
std::string envType_;
bool returnGuid_;
std::string searchKey_;
std::string searchRange_;
long tid_;
int pageNumber_;
std::string searchTarget_;
int pageSize_;
std::string envType_;
std::string dbType_;
};
}

View File

@@ -35,15 +35,19 @@ namespace AlibabaCloud
struct SearchTable
{
std::string tableId;
std::string tableName;
std::string tableSchemaName;
std::string description;
std::string databaseId;
std::string encoding;
std::string dBSearchName;
std::string envType;
std::string dbType;
std::string tableName;
std::string tableGuid;
std::string tableSchemaName;
std::string dbName;
std::vector<std::string> ownerNameList;
bool logic;
std::string dBSearchName;
std::string engine;
std::string envType;
std::vector<std::string> ownerIdList;
};

View File

@@ -77,6 +77,8 @@ namespace AlibabaCloud
void setPort(int port);
std::string getVpcId()const;
void setVpcId(const std::string& vpcId);
bool getSkipTest()const;
void setSkipTest(bool skipTest);
private:
std::string safeRuleId_;
@@ -100,6 +102,7 @@ namespace AlibabaCloud
std::string instanceId_;
int port_;
std::string vpcId_;
bool skipTest_;
};
}

View File

@@ -771,6 +771,78 @@ Dms_enterpriseClient::GetLogicDatabaseOutcomeCallable Dms_enterpriseClient::getL
return task->get_future();
}
Dms_enterpriseClient::GetMetaTableColumnOutcome Dms_enterpriseClient::getMetaTableColumn(const GetMetaTableColumnRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMetaTableColumnOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMetaTableColumnOutcome(GetMetaTableColumnResult(outcome.result()));
else
return GetMetaTableColumnOutcome(outcome.error());
}
void Dms_enterpriseClient::getMetaTableColumnAsync(const GetMetaTableColumnRequest& request, const GetMetaTableColumnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMetaTableColumn(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::GetMetaTableColumnOutcomeCallable Dms_enterpriseClient::getMetaTableColumnCallable(const GetMetaTableColumnRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMetaTableColumnOutcome()>>(
[this, request]()
{
return this->getMetaTableColumn(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::GetMetaTableDetailInfoOutcome Dms_enterpriseClient::getMetaTableDetailInfo(const GetMetaTableDetailInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMetaTableDetailInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMetaTableDetailInfoOutcome(GetMetaTableDetailInfoResult(outcome.result()));
else
return GetMetaTableDetailInfoOutcome(outcome.error());
}
void Dms_enterpriseClient::getMetaTableDetailInfoAsync(const GetMetaTableDetailInfoRequest& request, const GetMetaTableDetailInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMetaTableDetailInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::GetMetaTableDetailInfoOutcomeCallable Dms_enterpriseClient::getMetaTableDetailInfoCallable(const GetMetaTableDetailInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMetaTableDetailInfoOutcome()>>(
[this, request]()
{
return this->getMetaTableDetailInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::GetOpLogOutcome Dms_enterpriseClient::getOpLog(const GetOpLogRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -843,6 +915,42 @@ Dms_enterpriseClient::GetOrderBaseInfoOutcomeCallable Dms_enterpriseClient::getO
return task->get_future();
}
Dms_enterpriseClient::GetTableDBTopologyOutcome Dms_enterpriseClient::getTableDBTopology(const GetTableDBTopologyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTableDBTopologyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTableDBTopologyOutcome(GetTableDBTopologyResult(outcome.result()));
else
return GetTableDBTopologyOutcome(outcome.error());
}
void Dms_enterpriseClient::getTableDBTopologyAsync(const GetTableDBTopologyRequest& request, const GetTableDBTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTableDBTopology(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::GetTableDBTopologyOutcomeCallable Dms_enterpriseClient::getTableDBTopologyCallable(const GetTableDBTopologyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTableDBTopologyOutcome()>>(
[this, request]()
{
return this->getTableDBTopology(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::GetUserOutcome Dms_enterpriseClient::getUser(const GetUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +987,42 @@ Dms_enterpriseClient::GetUserOutcomeCallable Dms_enterpriseClient::getUserCallab
return task->get_future();
}
Dms_enterpriseClient::GetUserActiveTenantOutcome Dms_enterpriseClient::getUserActiveTenant(const GetUserActiveTenantRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetUserActiveTenantOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetUserActiveTenantOutcome(GetUserActiveTenantResult(outcome.result()));
else
return GetUserActiveTenantOutcome(outcome.error());
}
void Dms_enterpriseClient::getUserActiveTenantAsync(const GetUserActiveTenantRequest& request, const GetUserActiveTenantAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getUserActiveTenant(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::GetUserActiveTenantOutcomeCallable Dms_enterpriseClient::getUserActiveTenantCallable(const GetUserActiveTenantRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetUserActiveTenantOutcome()>>(
[this, request]()
{
return this->getUserActiveTenant(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::GrantUserPermissionOutcome Dms_enterpriseClient::grantUserPermission(const GrantUserPermissionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1347,6 +1491,42 @@ Dms_enterpriseClient::ListUserPermissionsOutcomeCallable Dms_enterpriseClient::l
return task->get_future();
}
Dms_enterpriseClient::ListUserTenantsOutcome Dms_enterpriseClient::listUserTenants(const ListUserTenantsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListUserTenantsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListUserTenantsOutcome(ListUserTenantsResult(outcome.result()));
else
return ListUserTenantsOutcome(outcome.error());
}
void Dms_enterpriseClient::listUserTenantsAsync(const ListUserTenantsRequest& request, const ListUserTenantsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listUserTenants(request), context);
};
asyncExecute(new Runnable(fn));
}
Dms_enterpriseClient::ListUserTenantsOutcomeCallable Dms_enterpriseClient::listUserTenantsCallable(const ListUserTenantsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListUserTenantsOutcome()>>(
[this, request]()
{
return this->listUserTenants(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Dms_enterpriseClient::ListUsersOutcome Dms_enterpriseClient::listUsers(const ListUsersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableColumnRequest;
GetMetaTableColumnRequest::GetMetaTableColumnRequest() :
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableColumn")
{
setMethod(HttpRequest::Method::Post);
}
GetMetaTableColumnRequest::~GetMetaTableColumnRequest()
{}
std::string GetMetaTableColumnRequest::getTableGuid()const
{
return tableGuid_;
}
void GetMetaTableColumnRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}
long GetMetaTableColumnRequest::getTid()const
{
return tid_;
}
void GetMetaTableColumnRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,100 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/GetMetaTableColumnResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetMetaTableColumnResult::GetMetaTableColumnResult() :
ServiceResult()
{}
GetMetaTableColumnResult::GetMetaTableColumnResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaTableColumnResult::~GetMetaTableColumnResult()
{}
void GetMetaTableColumnResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allColumnListNode = value["ColumnList"]["Column"];
for (auto valueColumnListColumn : allColumnListNode)
{
Column columnListObject;
if(!valueColumnListColumn["ColumnId"].isNull())
columnListObject.columnId = valueColumnListColumn["ColumnId"].asString();
if(!valueColumnListColumn["ColumnName"].isNull())
columnListObject.columnName = valueColumnListColumn["ColumnName"].asString();
if(!valueColumnListColumn["ColumnType"].isNull())
columnListObject.columnType = valueColumnListColumn["ColumnType"].asString();
if(!valueColumnListColumn["DataLength"].isNull())
columnListObject.dataLength = std::stoi(valueColumnListColumn["DataLength"].asString());
if(!valueColumnListColumn["Description"].isNull())
columnListObject.description = valueColumnListColumn["Description"].asString();
if(!valueColumnListColumn["Position"].isNull())
columnListObject.position = std::stoi(valueColumnListColumn["Position"].asString());
if(!valueColumnListColumn["AutoIncrement"].isNull())
columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true";
if(!valueColumnListColumn["Nullable"].isNull())
columnListObject.nullable = valueColumnListColumn["Nullable"].asString() == "true";
if(!valueColumnListColumn["SecurityLevel"].isNull())
columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString();
if(!valueColumnListColumn["PrimaryKey"].isNull())
columnListObject.primaryKey = valueColumnListColumn["PrimaryKey"].asString();
if(!valueColumnListColumn["DataScale"].isNull())
columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString());
if(!valueColumnListColumn["DataPrecision"].isNull())
columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString());
columnList_.push_back(columnListObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::vector<GetMetaTableColumnResult::Column> GetMetaTableColumnResult::getColumnList()const
{
return columnList_;
}
std::string GetMetaTableColumnResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaTableColumnResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaTableColumnResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableDetailInfoRequest;
GetMetaTableDetailInfoRequest::GetMetaTableDetailInfoRequest() :
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableDetailInfo")
{
setMethod(HttpRequest::Method::Post);
}
GetMetaTableDetailInfoRequest::~GetMetaTableDetailInfoRequest()
{}
std::string GetMetaTableDetailInfoRequest::getTableGuid()const
{
return tableGuid_;
}
void GetMetaTableDetailInfoRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}
long GetMetaTableDetailInfoRequest::getTid()const
{
return tid_;
}
void GetMetaTableDetailInfoRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,114 @@
/*
* 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/dms-enterprise/model/GetMetaTableDetailInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetMetaTableDetailInfoResult::GetMetaTableDetailInfoResult() :
ServiceResult()
{}
GetMetaTableDetailInfoResult::GetMetaTableDetailInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMetaTableDetailInfoResult::~GetMetaTableDetailInfoResult()
{}
void GetMetaTableDetailInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto detailInfoNode = value["DetailInfo"];
auto allColumnListNode = detailInfoNode["ColumnList"]["Column"];
for (auto detailInfoNodeColumnListColumn : allColumnListNode)
{
DetailInfo::Column columnObject;
if(!detailInfoNodeColumnListColumn["Description"].isNull())
columnObject.description = detailInfoNodeColumnListColumn["Description"].asString();
if(!detailInfoNodeColumnListColumn["ColumnType"].isNull())
columnObject.columnType = detailInfoNodeColumnListColumn["ColumnType"].asString();
if(!detailInfoNodeColumnListColumn["Position"].isNull())
columnObject.position = detailInfoNodeColumnListColumn["Position"].asString();
if(!detailInfoNodeColumnListColumn["DataLength"].isNull())
columnObject.dataLength = std::stoi(detailInfoNodeColumnListColumn["DataLength"].asString());
if(!detailInfoNodeColumnListColumn["Nullable"].isNull())
columnObject.nullable = detailInfoNodeColumnListColumn["Nullable"].asString() == "true";
if(!detailInfoNodeColumnListColumn["ColumnName"].isNull())
columnObject.columnName = detailInfoNodeColumnListColumn["ColumnName"].asString();
if(!detailInfoNodeColumnListColumn["AutoIncrement"].isNull())
columnObject.autoIncrement = detailInfoNodeColumnListColumn["AutoIncrement"].asString() == "true";
if(!detailInfoNodeColumnListColumn["DataPrecision"].isNull())
columnObject.dataPrecision = std::stoi(detailInfoNodeColumnListColumn["DataPrecision"].asString());
if(!detailInfoNodeColumnListColumn["DataScale"].isNull())
columnObject.dataScale = std::stoi(detailInfoNodeColumnListColumn["DataScale"].asString());
if(!detailInfoNodeColumnListColumn["ColumnId"].isNull())
columnObject.columnId = detailInfoNodeColumnListColumn["ColumnId"].asString();
detailInfo_.columnList.push_back(columnObject);
}
auto allIndexListNode = detailInfoNode["IndexList"]["Index"];
for (auto detailInfoNodeIndexListIndex : allIndexListNode)
{
DetailInfo::Index indexObject;
if(!detailInfoNodeIndexListIndex["IndexName"].isNull())
indexObject.indexName = detailInfoNodeIndexListIndex["IndexName"].asString();
if(!detailInfoNodeIndexListIndex["IndexType"].isNull())
indexObject.indexType = detailInfoNodeIndexListIndex["IndexType"].asString();
if(!detailInfoNodeIndexListIndex["Unique"].isNull())
indexObject.unique = detailInfoNodeIndexListIndex["Unique"].asString() == "true";
if(!detailInfoNodeIndexListIndex["IndexId"].isNull())
indexObject.indexId = detailInfoNodeIndexListIndex["IndexId"].asString();
auto allIndexColumns = value["IndexColumns"]["ColumnNames"];
for (auto value : allIndexColumns)
indexObject.indexColumns.push_back(value.asString());
detailInfo_.indexList.push_back(indexObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
GetMetaTableDetailInfoResult::DetailInfo GetMetaTableDetailInfoResult::getDetailInfo()const
{
return detailInfo_;
}
std::string GetMetaTableDetailInfoResult::getErrorCode()const
{
return errorCode_;
}
std::string GetMetaTableDetailInfoResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetMetaTableDetailInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetTableDBTopologyRequest;
GetTableDBTopologyRequest::GetTableDBTopologyRequest() :
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableDBTopology")
{
setMethod(HttpRequest::Method::Post);
}
GetTableDBTopologyRequest::~GetTableDBTopologyRequest()
{}
std::string GetTableDBTopologyRequest::getTableGuid()const
{
return tableGuid_;
}
void GetTableDBTopologyRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}
long GetTableDBTopologyRequest::getTid()const
{
return tid_;
}
void GetTableDBTopologyRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,115 @@
/*
* 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/dms-enterprise/model/GetTableDBTopologyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetTableDBTopologyResult::GetTableDBTopologyResult() :
ServiceResult()
{}
GetTableDBTopologyResult::GetTableDBTopologyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTableDBTopologyResult::~GetTableDBTopologyResult()
{}
void GetTableDBTopologyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dBTopologyNode = value["DBTopology"];
if(!dBTopologyNode["TableName"].isNull())
dBTopology_.tableName = dBTopologyNode["TableName"].asString();
if(!dBTopologyNode["TableGuid"].isNull())
dBTopology_.tableGuid = dBTopologyNode["TableGuid"].asString();
auto allDataSourceListNode = dBTopologyNode["DataSourceList"]["DataSource"];
for (auto dBTopologyNodeDataSourceListDataSource : allDataSourceListNode)
{
DBTopology::DataSource dataSourceObject;
if(!dBTopologyNodeDataSourceListDataSource["Host"].isNull())
dataSourceObject.host = dBTopologyNodeDataSourceListDataSource["Host"].asString();
if(!dBTopologyNodeDataSourceListDataSource["Port"].isNull())
dataSourceObject.port = std::stoi(dBTopologyNodeDataSourceListDataSource["Port"].asString());
if(!dBTopologyNodeDataSourceListDataSource["DbType"].isNull())
dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString();
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
auto allDatabaseListNode = allDataSourceListNode["DatabaseList"]["Database"];
for (auto allDataSourceListNodeDatabaseListDatabase : allDatabaseListNode)
{
DBTopology::DataSource::Database databaseListObject;
if(!allDataSourceListNodeDatabaseListDatabase["DbName"].isNull())
databaseListObject.dbName = allDataSourceListNodeDatabaseListDatabase["DbName"].asString();
if(!allDataSourceListNodeDatabaseListDatabase["DbId"].isNull())
databaseListObject.dbId = allDataSourceListNodeDatabaseListDatabase["DbId"].asString();
if(!allDataSourceListNodeDatabaseListDatabase["EnvType"].isNull())
databaseListObject.envType = allDataSourceListNodeDatabaseListDatabase["EnvType"].asString();
if(!allDataSourceListNodeDatabaseListDatabase["DbType"].isNull())
databaseListObject.dbType = allDataSourceListNodeDatabaseListDatabase["DbType"].asString();
auto allTableListNode = allDatabaseListNode["TableList"]["Table"];
for (auto allDatabaseListNodeTableListTable : allTableListNode)
{
DBTopology::DataSource::Database::Table tableListObject;
if(!allDatabaseListNodeTableListTable["TableName"].isNull())
tableListObject.tableName = allDatabaseListNodeTableListTable["TableName"].asString();
if(!allDatabaseListNodeTableListTable["TableId"].isNull())
tableListObject.tableId = allDatabaseListNodeTableListTable["TableId"].asString();
if(!allDatabaseListNodeTableListTable["TableType"].isNull())
tableListObject.tableType = allDatabaseListNodeTableListTable["TableType"].asString();
databaseListObject.tableList.push_back(tableListObject);
}
dataSourceObject.databaseList.push_back(databaseListObject);
}
dBTopology_.dataSourceList.push_back(dataSourceObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
GetTableDBTopologyResult::DBTopology GetTableDBTopologyResult::getDBTopology()const
{
return dBTopology_;
}
std::string GetTableDBTopologyResult::getErrorCode()const
{
return errorCode_;
}
std::string GetTableDBTopologyResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetTableDBTopologyResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,29 @@
/*
* 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/dms-enterprise/model/GetUserActiveTenantRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetUserActiveTenantRequest;
GetUserActiveTenantRequest::GetUserActiveTenantRequest() :
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserActiveTenant")
{
setMethod(HttpRequest::Method::Post);
}
GetUserActiveTenantRequest::~GetUserActiveTenantRequest()
{}

View 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/dms-enterprise/model/GetUserActiveTenantResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetUserActiveTenantResult::GetUserActiveTenantResult() :
ServiceResult()
{}
GetUserActiveTenantResult::GetUserActiveTenantResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserActiveTenantResult::~GetUserActiveTenantResult()
{}
void GetUserActiveTenantResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto tenantNode = value["Tenant"];
if(!tenantNode["Tid"].isNull())
tenant_.tid = std::stol(tenantNode["Tid"].asString());
if(!tenantNode["TenantName"].isNull())
tenant_.tenantName = tenantNode["TenantName"].asString();
if(!tenantNode["Status"].isNull())
tenant_.status = tenantNode["Status"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
GetUserActiveTenantResult::Tenant GetUserActiveTenantResult::getTenant()const
{
return tenant_;
}
std::string GetUserActiveTenantResult::getErrorCode()const
{
return errorCode_;
}
std::string GetUserActiveTenantResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetUserActiveTenantResult::getSuccess()const
{
return success_;
}

View File

@@ -38,6 +38,17 @@ void ListLogicTablesRequest::setSearchName(const std::string& searchName)
setParameter("SearchName", searchName);
}
bool ListLogicTablesRequest::getReturnGuid()const
{
return returnGuid_;
}
void ListLogicTablesRequest::setReturnGuid(bool returnGuid)
{
returnGuid_ = returnGuid;
setParameter("ReturnGuid", returnGuid ? "true" : "false");
}
int ListLogicTablesRequest::getPageSize()const
{
return pageSize_;

View File

@@ -55,6 +55,10 @@ void ListLogicTablesResult::parse(const std::string &payload)
logicTableListObject.tableExpr = valueLogicTableListLogicTable["TableExpr"].asString();
if(!valueLogicTableListLogicTable["TableCount"].isNull())
logicTableListObject.tableCount = valueLogicTableListLogicTable["TableCount"].asString();
if(!valueLogicTableListLogicTable["TableGuid"].isNull())
logicTableListObject.tableGuid = valueLogicTableListLogicTable["TableGuid"].asString();
if(!valueLogicTableListLogicTable["SchemaName"].isNull())
logicTableListObject.schemaName = valueLogicTableListLogicTable["SchemaName"].asString();
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
for (auto value : allOwnerIdList)
logicTableListObject.ownerIdList.push_back(value.asString());

View File

@@ -38,6 +38,17 @@ void ListTablesRequest::setSearchName(const std::string& searchName)
setParameter("SearchName", searchName);
}
bool ListTablesRequest::getReturnGuid()const
{
return returnGuid_;
}
void ListTablesRequest::setReturnGuid(bool returnGuid)
{
returnGuid_ = returnGuid;
setParameter("ReturnGuid", returnGuid ? "true" : "false");
}
int ListTablesRequest::getPageSize()const
{
return pageSize_;

View File

@@ -61,6 +61,10 @@ void ListTablesResult::parse(const std::string &payload)
tableListObject.numRows = std::stol(valueTableListTable["NumRows"].asString());
if(!valueTableListTable["StoreCapacity"].isNull())
tableListObject.storeCapacity = std::stol(valueTableListTable["StoreCapacity"].asString());
if(!valueTableListTable["TableGuid"].isNull())
tableListObject.tableGuid = valueTableListTable["TableGuid"].asString();
if(!valueTableListTable["Description"].isNull())
tableListObject.description = valueTableListTable["Description"].asString();
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
for (auto value : allOwnerIdList)
tableListObject.ownerIdList.push_back(value.asString());

View File

@@ -0,0 +1,29 @@
/*
* 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/dms-enterprise/model/ListUserTenantsRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListUserTenantsRequest;
ListUserTenantsRequest::ListUserTenantsRequest() :
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserTenants")
{
setMethod(HttpRequest::Method::Post);
}
ListUserTenantsRequest::~ListUserTenantsRequest()
{}

View File

@@ -0,0 +1,82 @@
/*
* 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/dms-enterprise/model/ListUserTenantsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListUserTenantsResult::ListUserTenantsResult() :
ServiceResult()
{}
ListUserTenantsResult::ListUserTenantsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListUserTenantsResult::~ListUserTenantsResult()
{}
void ListUserTenantsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTenantListNode = value["TenantList"]["Tenant"];
for (auto valueTenantListTenant : allTenantListNode)
{
Tenant tenantListObject;
if(!valueTenantListTenant["Tid"].isNull())
tenantListObject.tid = std::stol(valueTenantListTenant["Tid"].asString());
if(!valueTenantListTenant["TenantName"].isNull())
tenantListObject.tenantName = valueTenantListTenant["TenantName"].asString();
if(!valueTenantListTenant["Status"].isNull())
tenantListObject.status = valueTenantListTenant["Status"].asString();
tenantList_.push_back(tenantListObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
}
std::vector<ListUserTenantsResult::Tenant> ListUserTenantsResult::getTenantList()const
{
return tenantList_;
}
std::string ListUserTenantsResult::getErrorCode()const
{
return errorCode_;
}
std::string ListUserTenantsResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListUserTenantsResult::getSuccess()const
{
return success_;
}

View File

@@ -247,6 +247,17 @@ void RegisterInstanceRequest::setDbaUid(long dbaUid)
setParameter("DbaUid", std::to_string(dbaUid));
}
bool RegisterInstanceRequest::getSkipTest()const
{
return skipTest_;
}
void RegisterInstanceRequest::setSkipTest(bool skipTest)
{
skipTest_ = skipTest;
setParameter("SkipTest", skipTest ? "true" : "false");
}
std::string RegisterInstanceRequest::getSafeRule()const
{
return safeRule_;

View File

@@ -27,37 +27,15 @@ SearchTableRequest::SearchTableRequest() :
SearchTableRequest::~SearchTableRequest()
{}
std::string SearchTableRequest::getSearchTarget()const
bool SearchTableRequest::getReturnGuid()const
{
return searchTarget_;
return returnGuid_;
}
void SearchTableRequest::setSearchTarget(const std::string& searchTarget)
void SearchTableRequest::setReturnGuid(bool returnGuid)
{
searchTarget_ = searchTarget;
setParameter("SearchTarget", searchTarget);
}
int SearchTableRequest::getPageSize()const
{
return pageSize_;
}
void SearchTableRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string SearchTableRequest::getEnvType()const
{
return envType_;
}
void SearchTableRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setParameter("EnvType", envType);
returnGuid_ = returnGuid;
setParameter("ReturnGuid", returnGuid ? "true" : "false");
}
std::string SearchTableRequest::getSearchKey()const
@@ -104,3 +82,47 @@ void SearchTableRequest::setPageNumber(int pageNumber)
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string SearchTableRequest::getSearchTarget()const
{
return searchTarget_;
}
void SearchTableRequest::setSearchTarget(const std::string& searchTarget)
{
searchTarget_ = searchTarget;
setParameter("SearchTarget", searchTarget);
}
int SearchTableRequest::getPageSize()const
{
return pageSize_;
}
void SearchTableRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string SearchTableRequest::getEnvType()const
{
return envType_;
}
void SearchTableRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setParameter("EnvType", envType);
}
std::string SearchTableRequest::getDbType()const
{
return dbType_;
}
void SearchTableRequest::setDbType(const std::string& dbType)
{
dbType_ = dbType;
setParameter("DbType", dbType);
}

View File

@@ -61,6 +61,14 @@ void SearchTableResult::parse(const std::string &payload)
searchTableListObject.envType = valueSearchTableListSearchTable["EnvType"].asString();
if(!valueSearchTableListSearchTable["DBSearchName"].isNull())
searchTableListObject.dBSearchName = valueSearchTableListSearchTable["DBSearchName"].asString();
if(!valueSearchTableListSearchTable["DbType"].isNull())
searchTableListObject.dbType = valueSearchTableListSearchTable["DbType"].asString();
if(!valueSearchTableListSearchTable["Description"].isNull())
searchTableListObject.description = valueSearchTableListSearchTable["Description"].asString();
if(!valueSearchTableListSearchTable["DbName"].isNull())
searchTableListObject.dbName = valueSearchTableListSearchTable["DbName"].asString();
if(!valueSearchTableListSearchTable["TableGuid"].isNull())
searchTableListObject.tableGuid = valueSearchTableListSearchTable["TableGuid"].asString();
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
for (auto value : allOwnerIdList)
searchTableListObject.ownerIdList.push_back(value.asString());

View File

@@ -258,3 +258,14 @@ void UpdateInstanceRequest::setVpcId(const std::string& vpcId)
setParameter("VpcId", vpcId);
}
bool UpdateInstanceRequest::getSkipTest()const
{
return skipTest_;
}
void UpdateInstanceRequest::setSkipTest(bool skipTest)
{
skipTest_ = skipTest;
setParameter("SkipTest", skipTest ? "true" : "false");
}

View File

@@ -49,6 +49,8 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/DetectFaceResult.h
include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h
include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h
include/alibabacloud/facebody/model/DetectLivingFaceRequest.h
include/alibabacloud/facebody/model/DetectLivingFaceResult.h
include/alibabacloud/facebody/model/DetectMaskRequest.h
@@ -126,6 +128,8 @@ set(facebody_src
src/model/DetectFaceResult.cc
src/model/DetectIPCPedestrianRequest.cc
src/model/DetectIPCPedestrianResult.cc
src/model/DetectIPCPedestrianOptimizedRequest.cc
src/model/DetectIPCPedestrianOptimizedResult.cc
src/model/DetectLivingFaceRequest.cc
src/model/DetectLivingFaceResult.cc
src/model/DetectMaskRequest.cc

View File

@@ -50,6 +50,8 @@
#include "model/DetectFaceResult.h"
#include "model/DetectIPCPedestrianRequest.h"
#include "model/DetectIPCPedestrianResult.h"
#include "model/DetectIPCPedestrianOptimizedRequest.h"
#include "model/DetectIPCPedestrianOptimizedResult.h"
#include "model/DetectLivingFaceRequest.h"
#include "model/DetectLivingFaceResult.h"
#include "model/DetectMaskRequest.h"
@@ -147,6 +149,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DetectIPCPedestrianResult> DetectIPCPedestrianOutcome;
typedef std::future<DetectIPCPedestrianOutcome> DetectIPCPedestrianOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianRequest&, const DetectIPCPedestrianOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianAsyncHandler;
typedef Outcome<Error, Model::DetectIPCPedestrianOptimizedResult> DetectIPCPedestrianOptimizedOutcome;
typedef std::future<DetectIPCPedestrianOptimizedOutcome> DetectIPCPedestrianOptimizedOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianOptimizedRequest&, const DetectIPCPedestrianOptimizedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianOptimizedAsyncHandler;
typedef Outcome<Error, Model::DetectLivingFaceResult> DetectLivingFaceOutcome;
typedef std::future<DetectLivingFaceOutcome> DetectLivingFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::DetectLivingFaceRequest&, const DetectLivingFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectLivingFaceAsyncHandler;
@@ -263,6 +268,9 @@ namespace AlibabaCloud
DetectIPCPedestrianOutcome detectIPCPedestrian(const Model::DetectIPCPedestrianRequest &request)const;
void detectIPCPedestrianAsync(const Model::DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const;
DetectIPCPedestrianOptimizedOutcome detectIPCPedestrianOptimized(const Model::DetectIPCPedestrianOptimizedRequest &request)const;
void detectIPCPedestrianOptimizedAsync(const Model::DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectIPCPedestrianOptimizedOutcomeCallable detectIPCPedestrianOptimizedCallable(const Model::DetectIPCPedestrianOptimizedRequest& request) const;
DetectLivingFaceOutcome detectLivingFace(const Model::DetectLivingFaceRequest &request)const;
void detectLivingFaceAsync(const Model::DetectLivingFaceRequest& request, const DetectLivingFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectLivingFaceOutcomeCallable detectLivingFaceCallable(const Model::DetectLivingFaceRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedRequest : public RoaServiceRequest
{
public:
DetectIPCPedestrianOptimizedRequest();
~DetectIPCPedestrianOptimizedRequest();
std::string getImageData()const;
void setImageData(const std::string& imageData);
long getWidth()const;
void setWidth(long width);
long getHeight()const;
void setHeight(long height);
private:
std::string imageData_;
long width_;
long height_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedResult : public ServiceResult
{
public:
struct Data
{
struct ImageInfoListItem
{
struct Element
{
float score;
std::vector<std::string> boxes;
};
std::vector<ImageInfoListItem::Element> elements;
};
std::vector<ImageInfoListItem> imageInfoList;
};
DetectIPCPedestrianOptimizedResult();
explicit DetectIPCPedestrianOptimizedResult(const std::string &payload);
~DetectIPCPedestrianOptimizedResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_

View File

@@ -31,21 +31,21 @@ FacebodyClient::FacebodyClient(const Credentials &credentials, const ClientConfi
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, "facebody");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
FacebodyClient::FacebodyClient(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, "facebody");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
FacebodyClient::FacebodyClient(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, "facebody");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
FacebodyClient::~FacebodyClient()
@@ -555,6 +555,42 @@ FacebodyClient::DetectIPCPedestrianOutcomeCallable FacebodyClient::detectIPCPede
return task->get_future();
}
FacebodyClient::DetectIPCPedestrianOptimizedOutcome FacebodyClient::detectIPCPedestrianOptimized(const DetectIPCPedestrianOptimizedRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetectIPCPedestrianOptimizedOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetectIPCPedestrianOptimizedOutcome(DetectIPCPedestrianOptimizedResult(outcome.result()));
else
return DetectIPCPedestrianOptimizedOutcome(outcome.error());
}
void FacebodyClient::detectIPCPedestrianOptimizedAsync(const DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detectIPCPedestrianOptimized(request), context);
};
asyncExecute(new Runnable(fn));
}
FacebodyClient::DetectIPCPedestrianOptimizedOutcomeCallable FacebodyClient::detectIPCPedestrianOptimizedCallable(const DetectIPCPedestrianOptimizedRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetectIPCPedestrianOptimizedOutcome()>>(
[this, request]()
{
return this->detectIPCPedestrianOptimized(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
FacebodyClient::DetectLivingFaceOutcome FacebodyClient::detectLivingFace(const DetectLivingFaceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h>
using AlibabaCloud::Facebody::Model::DetectIPCPedestrianOptimizedRequest;
DetectIPCPedestrianOptimizedRequest::DetectIPCPedestrianOptimizedRequest() :
RoaServiceRequest("facebody", "2020-09-10")
{
setResourcePath("/viapi/k8s/facebody/detect-ipc-pedestrian-optimized");
setMethod(HttpRequest::Method::Post);
}
DetectIPCPedestrianOptimizedRequest::~DetectIPCPedestrianOptimizedRequest()
{}
std::string DetectIPCPedestrianOptimizedRequest::getImageData()const
{
return imageData_;
}
void DetectIPCPedestrianOptimizedRequest::setImageData(const std::string& imageData)
{
imageData_ = imageData;
setBodyParameter("ImageData", imageData);
}
long DetectIPCPedestrianOptimizedRequest::getWidth()const
{
return width_;
}
void DetectIPCPedestrianOptimizedRequest::setWidth(long width)
{
width_ = width;
setBodyParameter("Width", std::to_string(width));
}
long DetectIPCPedestrianOptimizedRequest::getHeight()const
{
return height_;
}
void DetectIPCPedestrianOptimizedRequest::setHeight(long height)
{
height_ = height;
setBodyParameter("Height", std::to_string(height));
}

View File

@@ -0,0 +1,67 @@
/*
* 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/facebody/model/DetectIPCPedestrianOptimizedResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Facebody;
using namespace AlibabaCloud::Facebody::Model;
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult() :
ServiceResult()
{}
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectIPCPedestrianOptimizedResult::~DetectIPCPedestrianOptimizedResult()
{}
void DetectIPCPedestrianOptimizedResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allImageInfoListNode = dataNode["ImageInfoList"]["imageInfoListItem"];
for (auto dataNodeImageInfoListimageInfoListItem : allImageInfoListNode)
{
Data::ImageInfoListItem imageInfoListItemObject;
auto allElementsNode = allImageInfoListNode["Elements"]["Element"];
for (auto allImageInfoListNodeElementsElement : allElementsNode)
{
Data::ImageInfoListItem::Element elementsObject;
if(!allImageInfoListNodeElementsElement["Score"].isNull())
elementsObject.score = std::stof(allImageInfoListNodeElementsElement["Score"].asString());
auto allBoxes = value["Boxes"]["Box"];
for (auto value : allBoxes)
elementsObject.boxes.push_back(value.asString());
imageInfoListItemObject.elements.push_back(elementsObject);
}
data_.imageInfoList.push_back(imageInfoListItemObject);
}
}
DetectIPCPedestrianOptimizedResult::Data DetectIPCPedestrianOptimizedResult::getData()const
{
return data_;
}

View File

@@ -40,14 +40,23 @@ namespace AlibabaCloud
DetectCovid19CadRequest();
~DetectCovid19CadRequest();
std::string getDataFormat()const;
void setDataFormat(const std::string& dataFormat);
std::vector<URLList> getURLList()const;
void setURLList(const std::vector<URLList>& uRLList);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
bool getAsync()const;
void setAsync(bool async);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
private:
std::string dataFormat_;
std::vector<URLList> uRLList_;
std::string orgId_;
bool async_;
std::string orgName_;
};
}

View File

@@ -39,10 +39,16 @@ namespace AlibabaCloud
void setDataFormat(const std::string& dataFormat);
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
private:
std::string dataFormat_;
std::string url_;
std::string orgId_;
std::string orgName_;
};
}

View File

@@ -40,14 +40,23 @@ namespace AlibabaCloud
DetectLungNoduleRequest();
~DetectLungNoduleRequest();
std::string getDataFormat()const;
void setDataFormat(const std::string& dataFormat);
std::vector<URLList> getURLList()const;
void setURLList(const std::vector<URLList>& uRLList);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
bool getAsync()const;
void setAsync(bool async);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
private:
std::string dataFormat_;
std::vector<URLList> uRLList_;
std::string orgId_;
bool async_;
std::string orgName_;
};
}

View File

@@ -38,7 +38,10 @@ namespace AlibabaCloud
{
struct Element
{
float imageZ;
float imageY;
std::string lobe;
float imageX;
std::string category;
float confidence;
std::string lung;
@@ -47,6 +50,8 @@ namespace AlibabaCloud
float z;
float diameter;
};
std::vector<std::string> origin;
std::vector<std::string> spacing;
std::vector<Serie::Element> elements;
std::string seriesInstanceUid;
};

View File

@@ -40,11 +40,20 @@ namespace AlibabaCloud
DetectSpineMRIRequest();
~DetectSpineMRIRequest();
std::string getDataFormat()const;
void setDataFormat(const std::string& dataFormat);
std::vector<URLList> getURLList()const;
void setURLList(const std::vector<URLList>& uRLList);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
private:
std::string dataFormat_;
std::vector<URLList> uRLList_;
std::string orgId_;
std::string orgName_;
};
}

View File

@@ -27,6 +27,17 @@ DetectCovid19CadRequest::DetectCovid19CadRequest() :
DetectCovid19CadRequest::~DetectCovid19CadRequest()
{}
std::string DetectCovid19CadRequest::getDataFormat()const
{
return dataFormat_;
}
void DetectCovid19CadRequest::setDataFormat(const std::string& dataFormat)
{
dataFormat_ = dataFormat;
setBodyParameter("DataFormat", dataFormat);
}
std::vector<DetectCovid19CadRequest::URLList> DetectCovid19CadRequest::getURLList()const
{
return uRLList_;
@@ -42,6 +53,17 @@ void DetectCovid19CadRequest::setURLList(const std::vector<URLList>& uRLList)
}
}
std::string DetectCovid19CadRequest::getOrgId()const
{
return orgId_;
}
void DetectCovid19CadRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
bool DetectCovid19CadRequest::getAsync()const
{
return async_;
@@ -53,3 +75,14 @@ void DetectCovid19CadRequest::setAsync(bool async)
setBodyParameter("Async", async ? "true" : "false");
}
std::string DetectCovid19CadRequest::getOrgName()const
{
return orgName_;
}
void DetectCovid19CadRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}

View File

@@ -49,3 +49,25 @@ void DetectKneeXRayRequest::setUrl(const std::string& url)
setBodyParameter("Url", url);
}
std::string DetectKneeXRayRequest::getOrgId()const
{
return orgId_;
}
void DetectKneeXRayRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string DetectKneeXRayRequest::getOrgName()const
{
return orgName_;
}
void DetectKneeXRayRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}

View File

@@ -27,6 +27,17 @@ DetectLungNoduleRequest::DetectLungNoduleRequest() :
DetectLungNoduleRequest::~DetectLungNoduleRequest()
{}
std::string DetectLungNoduleRequest::getDataFormat()const
{
return dataFormat_;
}
void DetectLungNoduleRequest::setDataFormat(const std::string& dataFormat)
{
dataFormat_ = dataFormat;
setBodyParameter("DataFormat", dataFormat);
}
std::vector<DetectLungNoduleRequest::URLList> DetectLungNoduleRequest::getURLList()const
{
return uRLList_;
@@ -42,6 +53,17 @@ void DetectLungNoduleRequest::setURLList(const std::vector<URLList>& uRLList)
}
}
std::string DetectLungNoduleRequest::getOrgId()const
{
return orgId_;
}
void DetectLungNoduleRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
bool DetectLungNoduleRequest::getAsync()const
{
return async_;
@@ -53,3 +75,14 @@ void DetectLungNoduleRequest::setAsync(bool async)
setBodyParameter("Async", async ? "true" : "false");
}
std::string DetectLungNoduleRequest::getOrgName()const
{
return orgName_;
}
void DetectLungNoduleRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}

View File

@@ -66,8 +66,20 @@ void DetectLungNoduleResult::parse(const std::string &payload)
elementsObject.z = std::stof(allSeriesNodeElementsElement["Z"].asString());
if(!allSeriesNodeElementsElement["Y"].isNull())
elementsObject.y = std::stof(allSeriesNodeElementsElement["Y"].asString());
if(!allSeriesNodeElementsElement["ImageX"].isNull())
elementsObject.imageX = std::stof(allSeriesNodeElementsElement["ImageX"].asString());
if(!allSeriesNodeElementsElement["ImageY"].isNull())
elementsObject.imageY = std::stof(allSeriesNodeElementsElement["ImageY"].asString());
if(!allSeriesNodeElementsElement["ImageZ"].isNull())
elementsObject.imageZ = std::stof(allSeriesNodeElementsElement["ImageZ"].asString());
serieObject.elements.push_back(elementsObject);
}
auto allOrigin = value["Origin"]["Origin"];
for (auto value : allOrigin)
serieObject.origin.push_back(value.asString());
auto allSpacing = value["Spacing"]["Spacing"];
for (auto value : allSpacing)
serieObject.spacing.push_back(value.asString());
data_.series.push_back(serieObject);
}

View File

@@ -27,6 +27,17 @@ DetectSpineMRIRequest::DetectSpineMRIRequest() :
DetectSpineMRIRequest::~DetectSpineMRIRequest()
{}
std::string DetectSpineMRIRequest::getDataFormat()const
{
return dataFormat_;
}
void DetectSpineMRIRequest::setDataFormat(const std::string& dataFormat)
{
dataFormat_ = dataFormat;
setBodyParameter("DataFormat", dataFormat);
}
std::vector<DetectSpineMRIRequest::URLList> DetectSpineMRIRequest::getURLList()const
{
return uRLList_;
@@ -42,3 +53,25 @@ void DetectSpineMRIRequest::setURLList(const std::vector<URLList>& uRLList)
}
}
std::string DetectSpineMRIRequest::getOrgId()const
{
return orgId_;
}
void DetectSpineMRIRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string DetectSpineMRIRequest::getOrgName()const
{
return orgName_;
}
void DetectSpineMRIRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}

View File

@@ -51,6 +51,8 @@ set(live_public_header_model
include/alibabacloud/live/model/AddLiveDomainResult.h
include/alibabacloud/live/model/AddLiveDomainMappingRequest.h
include/alibabacloud/live/model/AddLiveDomainMappingResult.h
include/alibabacloud/live/model/AddLiveDomainPlayMappingRequest.h
include/alibabacloud/live/model/AddLiveDomainPlayMappingResult.h
include/alibabacloud/live/model/AddLivePullStreamInfoConfigRequest.h
include/alibabacloud/live/model/AddLivePullStreamInfoConfigResult.h
include/alibabacloud/live/model/AddLiveRecordNotifyConfigRequest.h
@@ -93,6 +95,8 @@ set(live_public_header_model
include/alibabacloud/live/model/CreateLiveRealTimeLogDeliveryResult.h
include/alibabacloud/live/model/CreateLiveStreamRecordIndexFilesRequest.h
include/alibabacloud/live/model/CreateLiveStreamRecordIndexFilesResult.h
include/alibabacloud/live/model/CreateMixStreamRequest.h
include/alibabacloud/live/model/CreateMixStreamResult.h
include/alibabacloud/live/model/CreateRoomRequest.h
include/alibabacloud/live/model/CreateRoomResult.h
include/alibabacloud/live/model/DeleteBoardRequest.h
@@ -147,6 +151,8 @@ set(live_public_header_model
include/alibabacloud/live/model/DeleteLiveStreamTranscodeResult.h
include/alibabacloud/live/model/DeleteLiveStreamsNotifyUrlConfigRequest.h
include/alibabacloud/live/model/DeleteLiveStreamsNotifyUrlConfigResult.h
include/alibabacloud/live/model/DeleteMixStreamRequest.h
include/alibabacloud/live/model/DeleteMixStreamResult.h
include/alibabacloud/live/model/DeleteRoomRequest.h
include/alibabacloud/live/model/DeleteRoomResult.h
include/alibabacloud/live/model/DescribeBoardEventsRequest.h
@@ -239,6 +245,8 @@ set(live_public_header_model
include/alibabacloud/live/model/DescribeLiveDomainTranscodeDataResult.h
include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigRequest.h
include/alibabacloud/live/model/DescribeLiveLazyPullStreamConfigResult.h
include/alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h
include/alibabacloud/live/model/DescribeLivePullStreamConfigResult.h
include/alibabacloud/live/model/DescribeLiveRealtimeDeliveryAccRequest.h
include/alibabacloud/live/model/DescribeLiveRealtimeDeliveryAccResult.h
include/alibabacloud/live/model/DescribeLiveRealtimeLogAuthorizedRequest.h
@@ -297,6 +305,8 @@ set(live_public_header_model
include/alibabacloud/live/model/DescribeLiveUserDomainsResult.h
include/alibabacloud/live/model/DescribeLiveUserTagsRequest.h
include/alibabacloud/live/model/DescribeLiveUserTagsResult.h
include/alibabacloud/live/model/DescribeMixStreamListRequest.h
include/alibabacloud/live/model/DescribeMixStreamListResult.h
include/alibabacloud/live/model/DescribeRecordRequest.h
include/alibabacloud/live/model/DescribeRecordResult.h
include/alibabacloud/live/model/DescribeRecordsRequest.h
@@ -399,6 +409,8 @@ set(live_public_header_model
include/alibabacloud/live/model/StopLiveIndexResult.h
include/alibabacloud/live/model/TagLiveResourcesRequest.h
include/alibabacloud/live/model/TagLiveResourcesResult.h
include/alibabacloud/live/model/TriggerRecordRequest.h
include/alibabacloud/live/model/TriggerRecordResult.h
include/alibabacloud/live/model/UnTagLiveResourcesRequest.h
include/alibabacloud/live/model/UnTagLiveResourcesResult.h
include/alibabacloud/live/model/UpdateBoardRequest.h
@@ -422,7 +434,9 @@ set(live_public_header_model
include/alibabacloud/live/model/UpdateLiveSnapshotDetectPornConfigRequest.h
include/alibabacloud/live/model/UpdateLiveSnapshotDetectPornConfigResult.h
include/alibabacloud/live/model/UpdateLiveTopLevelDomainRequest.h
include/alibabacloud/live/model/UpdateLiveTopLevelDomainResult.h )
include/alibabacloud/live/model/UpdateLiveTopLevelDomainResult.h
include/alibabacloud/live/model/UpdateMixStreamRequest.h
include/alibabacloud/live/model/UpdateMixStreamResult.h )
set(live_src
src/LiveClient.cc
@@ -456,6 +470,8 @@ set(live_src
src/model/AddLiveDomainResult.cc
src/model/AddLiveDomainMappingRequest.cc
src/model/AddLiveDomainMappingResult.cc
src/model/AddLiveDomainPlayMappingRequest.cc
src/model/AddLiveDomainPlayMappingResult.cc
src/model/AddLivePullStreamInfoConfigRequest.cc
src/model/AddLivePullStreamInfoConfigResult.cc
src/model/AddLiveRecordNotifyConfigRequest.cc
@@ -498,6 +514,8 @@ set(live_src
src/model/CreateLiveRealTimeLogDeliveryResult.cc
src/model/CreateLiveStreamRecordIndexFilesRequest.cc
src/model/CreateLiveStreamRecordIndexFilesResult.cc
src/model/CreateMixStreamRequest.cc
src/model/CreateMixStreamResult.cc
src/model/CreateRoomRequest.cc
src/model/CreateRoomResult.cc
src/model/DeleteBoardRequest.cc
@@ -552,6 +570,8 @@ set(live_src
src/model/DeleteLiveStreamTranscodeResult.cc
src/model/DeleteLiveStreamsNotifyUrlConfigRequest.cc
src/model/DeleteLiveStreamsNotifyUrlConfigResult.cc
src/model/DeleteMixStreamRequest.cc
src/model/DeleteMixStreamResult.cc
src/model/DeleteRoomRequest.cc
src/model/DeleteRoomResult.cc
src/model/DescribeBoardEventsRequest.cc
@@ -644,6 +664,8 @@ set(live_src
src/model/DescribeLiveDomainTranscodeDataResult.cc
src/model/DescribeLiveLazyPullStreamConfigRequest.cc
src/model/DescribeLiveLazyPullStreamConfigResult.cc
src/model/DescribeLivePullStreamConfigRequest.cc
src/model/DescribeLivePullStreamConfigResult.cc
src/model/DescribeLiveRealtimeDeliveryAccRequest.cc
src/model/DescribeLiveRealtimeDeliveryAccResult.cc
src/model/DescribeLiveRealtimeLogAuthorizedRequest.cc
@@ -702,6 +724,8 @@ set(live_src
src/model/DescribeLiveUserDomainsResult.cc
src/model/DescribeLiveUserTagsRequest.cc
src/model/DescribeLiveUserTagsResult.cc
src/model/DescribeMixStreamListRequest.cc
src/model/DescribeMixStreamListResult.cc
src/model/DescribeRecordRequest.cc
src/model/DescribeRecordResult.cc
src/model/DescribeRecordsRequest.cc
@@ -804,6 +828,8 @@ set(live_src
src/model/StopLiveIndexResult.cc
src/model/TagLiveResourcesRequest.cc
src/model/TagLiveResourcesResult.cc
src/model/TriggerRecordRequest.cc
src/model/TriggerRecordResult.cc
src/model/UnTagLiveResourcesRequest.cc
src/model/UnTagLiveResourcesResult.cc
src/model/UpdateBoardRequest.cc
@@ -827,7 +853,9 @@ set(live_src
src/model/UpdateLiveSnapshotDetectPornConfigRequest.cc
src/model/UpdateLiveSnapshotDetectPornConfigResult.cc
src/model/UpdateLiveTopLevelDomainRequest.cc
src/model/UpdateLiveTopLevelDomainResult.cc )
src/model/UpdateLiveTopLevelDomainResult.cc
src/model/UpdateMixStreamRequest.cc
src/model/UpdateMixStreamResult.cc )
add_library(live ${LIB_TYPE}
${live_public_header}

View File

@@ -52,6 +52,8 @@
#include "model/AddLiveDomainResult.h"
#include "model/AddLiveDomainMappingRequest.h"
#include "model/AddLiveDomainMappingResult.h"
#include "model/AddLiveDomainPlayMappingRequest.h"
#include "model/AddLiveDomainPlayMappingResult.h"
#include "model/AddLivePullStreamInfoConfigRequest.h"
#include "model/AddLivePullStreamInfoConfigResult.h"
#include "model/AddLiveRecordNotifyConfigRequest.h"
@@ -94,6 +96,8 @@
#include "model/CreateLiveRealTimeLogDeliveryResult.h"
#include "model/CreateLiveStreamRecordIndexFilesRequest.h"
#include "model/CreateLiveStreamRecordIndexFilesResult.h"
#include "model/CreateMixStreamRequest.h"
#include "model/CreateMixStreamResult.h"
#include "model/CreateRoomRequest.h"
#include "model/CreateRoomResult.h"
#include "model/DeleteBoardRequest.h"
@@ -148,6 +152,8 @@
#include "model/DeleteLiveStreamTranscodeResult.h"
#include "model/DeleteLiveStreamsNotifyUrlConfigRequest.h"
#include "model/DeleteLiveStreamsNotifyUrlConfigResult.h"
#include "model/DeleteMixStreamRequest.h"
#include "model/DeleteMixStreamResult.h"
#include "model/DeleteRoomRequest.h"
#include "model/DeleteRoomResult.h"
#include "model/DescribeBoardEventsRequest.h"
@@ -240,6 +246,8 @@
#include "model/DescribeLiveDomainTranscodeDataResult.h"
#include "model/DescribeLiveLazyPullStreamConfigRequest.h"
#include "model/DescribeLiveLazyPullStreamConfigResult.h"
#include "model/DescribeLivePullStreamConfigRequest.h"
#include "model/DescribeLivePullStreamConfigResult.h"
#include "model/DescribeLiveRealtimeDeliveryAccRequest.h"
#include "model/DescribeLiveRealtimeDeliveryAccResult.h"
#include "model/DescribeLiveRealtimeLogAuthorizedRequest.h"
@@ -298,6 +306,8 @@
#include "model/DescribeLiveUserDomainsResult.h"
#include "model/DescribeLiveUserTagsRequest.h"
#include "model/DescribeLiveUserTagsResult.h"
#include "model/DescribeMixStreamListRequest.h"
#include "model/DescribeMixStreamListResult.h"
#include "model/DescribeRecordRequest.h"
#include "model/DescribeRecordResult.h"
#include "model/DescribeRecordsRequest.h"
@@ -400,6 +410,8 @@
#include "model/StopLiveIndexResult.h"
#include "model/TagLiveResourcesRequest.h"
#include "model/TagLiveResourcesResult.h"
#include "model/TriggerRecordRequest.h"
#include "model/TriggerRecordResult.h"
#include "model/UnTagLiveResourcesRequest.h"
#include "model/UnTagLiveResourcesResult.h"
#include "model/UpdateBoardRequest.h"
@@ -424,6 +436,8 @@
#include "model/UpdateLiveSnapshotDetectPornConfigResult.h"
#include "model/UpdateLiveTopLevelDomainRequest.h"
#include "model/UpdateLiveTopLevelDomainResult.h"
#include "model/UpdateMixStreamRequest.h"
#include "model/UpdateMixStreamResult.h"
namespace AlibabaCloud
@@ -478,6 +492,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddLiveDomainMappingResult> AddLiveDomainMappingOutcome;
typedef std::future<AddLiveDomainMappingOutcome> AddLiveDomainMappingOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddLiveDomainMappingRequest&, const AddLiveDomainMappingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLiveDomainMappingAsyncHandler;
typedef Outcome<Error, Model::AddLiveDomainPlayMappingResult> AddLiveDomainPlayMappingOutcome;
typedef std::future<AddLiveDomainPlayMappingOutcome> AddLiveDomainPlayMappingOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddLiveDomainPlayMappingRequest&, const AddLiveDomainPlayMappingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLiveDomainPlayMappingAsyncHandler;
typedef Outcome<Error, Model::AddLivePullStreamInfoConfigResult> AddLivePullStreamInfoConfigOutcome;
typedef std::future<AddLivePullStreamInfoConfigOutcome> AddLivePullStreamInfoConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddLivePullStreamInfoConfigRequest&, const AddLivePullStreamInfoConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLivePullStreamInfoConfigAsyncHandler;
@@ -541,6 +558,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateLiveStreamRecordIndexFilesResult> CreateLiveStreamRecordIndexFilesOutcome;
typedef std::future<CreateLiveStreamRecordIndexFilesOutcome> CreateLiveStreamRecordIndexFilesOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::CreateLiveStreamRecordIndexFilesRequest&, const CreateLiveStreamRecordIndexFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLiveStreamRecordIndexFilesAsyncHandler;
typedef Outcome<Error, Model::CreateMixStreamResult> CreateMixStreamOutcome;
typedef std::future<CreateMixStreamOutcome> CreateMixStreamOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::CreateMixStreamRequest&, const CreateMixStreamOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMixStreamAsyncHandler;
typedef Outcome<Error, Model::CreateRoomResult> CreateRoomOutcome;
typedef std::future<CreateRoomOutcome> CreateRoomOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::CreateRoomRequest&, const CreateRoomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRoomAsyncHandler;
@@ -622,6 +642,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteLiveStreamsNotifyUrlConfigResult> DeleteLiveStreamsNotifyUrlConfigOutcome;
typedef std::future<DeleteLiveStreamsNotifyUrlConfigOutcome> DeleteLiveStreamsNotifyUrlConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DeleteLiveStreamsNotifyUrlConfigRequest&, const DeleteLiveStreamsNotifyUrlConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLiveStreamsNotifyUrlConfigAsyncHandler;
typedef Outcome<Error, Model::DeleteMixStreamResult> DeleteMixStreamOutcome;
typedef std::future<DeleteMixStreamOutcome> DeleteMixStreamOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DeleteMixStreamRequest&, const DeleteMixStreamOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMixStreamAsyncHandler;
typedef Outcome<Error, Model::DeleteRoomResult> DeleteRoomOutcome;
typedef std::future<DeleteRoomOutcome> DeleteRoomOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DeleteRoomRequest&, const DeleteRoomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRoomAsyncHandler;
@@ -760,6 +783,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLiveLazyPullStreamConfigResult> DescribeLiveLazyPullStreamConfigOutcome;
typedef std::future<DescribeLiveLazyPullStreamConfigOutcome> DescribeLiveLazyPullStreamConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveLazyPullStreamConfigRequest&, const DescribeLiveLazyPullStreamConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveLazyPullStreamConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeLivePullStreamConfigResult> DescribeLivePullStreamConfigOutcome;
typedef std::future<DescribeLivePullStreamConfigOutcome> DescribeLivePullStreamConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLivePullStreamConfigRequest&, const DescribeLivePullStreamConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLivePullStreamConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveRealtimeDeliveryAccResult> DescribeLiveRealtimeDeliveryAccOutcome;
typedef std::future<DescribeLiveRealtimeDeliveryAccOutcome> DescribeLiveRealtimeDeliveryAccOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveRealtimeDeliveryAccRequest&, const DescribeLiveRealtimeDeliveryAccOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveRealtimeDeliveryAccAsyncHandler;
@@ -847,6 +873,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLiveUserTagsResult> DescribeLiveUserTagsOutcome;
typedef std::future<DescribeLiveUserTagsOutcome> DescribeLiveUserTagsOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveUserTagsRequest&, const DescribeLiveUserTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveUserTagsAsyncHandler;
typedef Outcome<Error, Model::DescribeMixStreamListResult> DescribeMixStreamListOutcome;
typedef std::future<DescribeMixStreamListOutcome> DescribeMixStreamListOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeMixStreamListRequest&, const DescribeMixStreamListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMixStreamListAsyncHandler;
typedef Outcome<Error, Model::DescribeRecordResult> DescribeRecordOutcome;
typedef std::future<DescribeRecordOutcome> DescribeRecordOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeRecordRequest&, const DescribeRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordAsyncHandler;
@@ -1000,6 +1029,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TagLiveResourcesResult> TagLiveResourcesOutcome;
typedef std::future<TagLiveResourcesOutcome> TagLiveResourcesOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::TagLiveResourcesRequest&, const TagLiveResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagLiveResourcesAsyncHandler;
typedef Outcome<Error, Model::TriggerRecordResult> TriggerRecordOutcome;
typedef std::future<TriggerRecordOutcome> TriggerRecordOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::TriggerRecordRequest&, const TriggerRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TriggerRecordAsyncHandler;
typedef Outcome<Error, Model::UnTagLiveResourcesResult> UnTagLiveResourcesOutcome;
typedef std::future<UnTagLiveResourcesOutcome> UnTagLiveResourcesOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UnTagLiveResourcesRequest&, const UnTagLiveResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnTagLiveResourcesAsyncHandler;
@@ -1036,6 +1068,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateLiveTopLevelDomainResult> UpdateLiveTopLevelDomainOutcome;
typedef std::future<UpdateLiveTopLevelDomainOutcome> UpdateLiveTopLevelDomainOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveTopLevelDomainRequest&, const UpdateLiveTopLevelDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveTopLevelDomainAsyncHandler;
typedef Outcome<Error, Model::UpdateMixStreamResult> UpdateMixStreamOutcome;
typedef std::future<UpdateMixStreamOutcome> UpdateMixStreamOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateMixStreamRequest&, const UpdateMixStreamOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMixStreamAsyncHandler;
LiveClient(const Credentials &credentials, const ClientConfiguration &configuration);
LiveClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -1086,6 +1121,9 @@ namespace AlibabaCloud
AddLiveDomainMappingOutcome addLiveDomainMapping(const Model::AddLiveDomainMappingRequest &request)const;
void addLiveDomainMappingAsync(const Model::AddLiveDomainMappingRequest& request, const AddLiveDomainMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddLiveDomainMappingOutcomeCallable addLiveDomainMappingCallable(const Model::AddLiveDomainMappingRequest& request) const;
AddLiveDomainPlayMappingOutcome addLiveDomainPlayMapping(const Model::AddLiveDomainPlayMappingRequest &request)const;
void addLiveDomainPlayMappingAsync(const Model::AddLiveDomainPlayMappingRequest& request, const AddLiveDomainPlayMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddLiveDomainPlayMappingOutcomeCallable addLiveDomainPlayMappingCallable(const Model::AddLiveDomainPlayMappingRequest& request) const;
AddLivePullStreamInfoConfigOutcome addLivePullStreamInfoConfig(const Model::AddLivePullStreamInfoConfigRequest &request)const;
void addLivePullStreamInfoConfigAsync(const Model::AddLivePullStreamInfoConfigRequest& request, const AddLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddLivePullStreamInfoConfigOutcomeCallable addLivePullStreamInfoConfigCallable(const Model::AddLivePullStreamInfoConfigRequest& request) const;
@@ -1149,6 +1187,9 @@ namespace AlibabaCloud
CreateLiveStreamRecordIndexFilesOutcome createLiveStreamRecordIndexFiles(const Model::CreateLiveStreamRecordIndexFilesRequest &request)const;
void createLiveStreamRecordIndexFilesAsync(const Model::CreateLiveStreamRecordIndexFilesRequest& request, const CreateLiveStreamRecordIndexFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateLiveStreamRecordIndexFilesOutcomeCallable createLiveStreamRecordIndexFilesCallable(const Model::CreateLiveStreamRecordIndexFilesRequest& request) const;
CreateMixStreamOutcome createMixStream(const Model::CreateMixStreamRequest &request)const;
void createMixStreamAsync(const Model::CreateMixStreamRequest& request, const CreateMixStreamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMixStreamOutcomeCallable createMixStreamCallable(const Model::CreateMixStreamRequest& request) const;
CreateRoomOutcome createRoom(const Model::CreateRoomRequest &request)const;
void createRoomAsync(const Model::CreateRoomRequest& request, const CreateRoomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRoomOutcomeCallable createRoomCallable(const Model::CreateRoomRequest& request) const;
@@ -1230,6 +1271,9 @@ namespace AlibabaCloud
DeleteLiveStreamsNotifyUrlConfigOutcome deleteLiveStreamsNotifyUrlConfig(const Model::DeleteLiveStreamsNotifyUrlConfigRequest &request)const;
void deleteLiveStreamsNotifyUrlConfigAsync(const Model::DeleteLiveStreamsNotifyUrlConfigRequest& request, const DeleteLiveStreamsNotifyUrlConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLiveStreamsNotifyUrlConfigOutcomeCallable deleteLiveStreamsNotifyUrlConfigCallable(const Model::DeleteLiveStreamsNotifyUrlConfigRequest& request) const;
DeleteMixStreamOutcome deleteMixStream(const Model::DeleteMixStreamRequest &request)const;
void deleteMixStreamAsync(const Model::DeleteMixStreamRequest& request, const DeleteMixStreamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteMixStreamOutcomeCallable deleteMixStreamCallable(const Model::DeleteMixStreamRequest& request) const;
DeleteRoomOutcome deleteRoom(const Model::DeleteRoomRequest &request)const;
void deleteRoomAsync(const Model::DeleteRoomRequest& request, const DeleteRoomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteRoomOutcomeCallable deleteRoomCallable(const Model::DeleteRoomRequest& request) const;
@@ -1368,6 +1412,9 @@ namespace AlibabaCloud
DescribeLiveLazyPullStreamConfigOutcome describeLiveLazyPullStreamConfig(const Model::DescribeLiveLazyPullStreamConfigRequest &request)const;
void describeLiveLazyPullStreamConfigAsync(const Model::DescribeLiveLazyPullStreamConfigRequest& request, const DescribeLiveLazyPullStreamConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveLazyPullStreamConfigOutcomeCallable describeLiveLazyPullStreamConfigCallable(const Model::DescribeLiveLazyPullStreamConfigRequest& request) const;
DescribeLivePullStreamConfigOutcome describeLivePullStreamConfig(const Model::DescribeLivePullStreamConfigRequest &request)const;
void describeLivePullStreamConfigAsync(const Model::DescribeLivePullStreamConfigRequest& request, const DescribeLivePullStreamConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLivePullStreamConfigOutcomeCallable describeLivePullStreamConfigCallable(const Model::DescribeLivePullStreamConfigRequest& request) const;
DescribeLiveRealtimeDeliveryAccOutcome describeLiveRealtimeDeliveryAcc(const Model::DescribeLiveRealtimeDeliveryAccRequest &request)const;
void describeLiveRealtimeDeliveryAccAsync(const Model::DescribeLiveRealtimeDeliveryAccRequest& request, const DescribeLiveRealtimeDeliveryAccAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveRealtimeDeliveryAccOutcomeCallable describeLiveRealtimeDeliveryAccCallable(const Model::DescribeLiveRealtimeDeliveryAccRequest& request) const;
@@ -1455,6 +1502,9 @@ namespace AlibabaCloud
DescribeLiveUserTagsOutcome describeLiveUserTags(const Model::DescribeLiveUserTagsRequest &request)const;
void describeLiveUserTagsAsync(const Model::DescribeLiveUserTagsRequest& request, const DescribeLiveUserTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveUserTagsOutcomeCallable describeLiveUserTagsCallable(const Model::DescribeLiveUserTagsRequest& request) const;
DescribeMixStreamListOutcome describeMixStreamList(const Model::DescribeMixStreamListRequest &request)const;
void describeMixStreamListAsync(const Model::DescribeMixStreamListRequest& request, const DescribeMixStreamListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeMixStreamListOutcomeCallable describeMixStreamListCallable(const Model::DescribeMixStreamListRequest& request) const;
DescribeRecordOutcome describeRecord(const Model::DescribeRecordRequest &request)const;
void describeRecordAsync(const Model::DescribeRecordRequest& request, const DescribeRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRecordOutcomeCallable describeRecordCallable(const Model::DescribeRecordRequest& request) const;
@@ -1608,6 +1658,9 @@ namespace AlibabaCloud
TagLiveResourcesOutcome tagLiveResources(const Model::TagLiveResourcesRequest &request)const;
void tagLiveResourcesAsync(const Model::TagLiveResourcesRequest& request, const TagLiveResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagLiveResourcesOutcomeCallable tagLiveResourcesCallable(const Model::TagLiveResourcesRequest& request) const;
TriggerRecordOutcome triggerRecord(const Model::TriggerRecordRequest &request)const;
void triggerRecordAsync(const Model::TriggerRecordRequest& request, const TriggerRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TriggerRecordOutcomeCallable triggerRecordCallable(const Model::TriggerRecordRequest& request) const;
UnTagLiveResourcesOutcome unTagLiveResources(const Model::UnTagLiveResourcesRequest &request)const;
void unTagLiveResourcesAsync(const Model::UnTagLiveResourcesRequest& request, const UnTagLiveResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnTagLiveResourcesOutcomeCallable unTagLiveResourcesCallable(const Model::UnTagLiveResourcesRequest& request) const;
@@ -1644,6 +1697,9 @@ namespace AlibabaCloud
UpdateLiveTopLevelDomainOutcome updateLiveTopLevelDomain(const Model::UpdateLiveTopLevelDomainRequest &request)const;
void updateLiveTopLevelDomainAsync(const Model::UpdateLiveTopLevelDomainRequest& request, const UpdateLiveTopLevelDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveTopLevelDomainOutcomeCallable updateLiveTopLevelDomainCallable(const Model::UpdateLiveTopLevelDomainRequest& request) const;
UpdateMixStreamOutcome updateMixStream(const Model::UpdateMixStreamRequest &request)const;
void updateMixStreamAsync(const Model::UpdateMixStreamRequest& request, const UpdateMixStreamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateMixStreamOutcomeCallable updateMixStreamCallable(const Model::UpdateMixStreamRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string get_Template()const;
void set_Template(const std::string& _template);
std::string getLazy()const;
void setLazy(const std::string& lazy);
std::string getGop()const;
void setGop(const std::string& gop);
std::string getAudioCodec()const;
@@ -70,6 +72,7 @@ namespace AlibabaCloud
private:
std::string _template_;
std::string lazy_;
std::string gop_;
std::string audioCodec_;
std::string templateType_;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_ADDLIVEDOMAINPLAYMAPPINGREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_ADDLIVEDOMAINPLAYMAPPINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT AddLiveDomainPlayMappingRequest : public RpcServiceRequest
{
public:
AddLiveDomainPlayMappingRequest();
~AddLiveDomainPlayMappingRequest();
std::string getPlayDomain()const;
void setPlayDomain(const std::string& playDomain);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getPullDomain()const;
void setPullDomain(const std::string& pullDomain);
private:
std::string playDomain_;
long ownerId_;
std::string pullDomain_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_ADDLIVEDOMAINPLAYMAPPINGREQUEST_H_

View File

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

View File

@@ -37,21 +37,33 @@ namespace AlibabaCloud
std::string get_Template()const;
void set_Template(const std::string& _template);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getLazy()const;
void setLazy(const std::string& lazy);
std::string getMix()const;
void setMix(const std::string& mix);
std::string getApp()const;
void setApp(const std::string& app);
std::string getWatermark()const;
void setWatermark(const std::string& watermark);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getDomain()const;
void setDomain(const std::string& domain);
std::string getWaterPattern()const;
void setWaterPattern(const std::string& waterPattern);
std::string getOnlyAudio()const;
void setOnlyAudio(const std::string& onlyAudio);
private:
std::string _template_;
std::string securityToken_;
std::string lazy_;
std::string mix_;
std::string app_;
std::string watermark_;
long ownerId_;
std::string domain_;
std::string waterPattern_;
std::string onlyAudio_;
};
}

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void set_Template(const std::string& _template);
bool getDeleteBframes()const;
void setDeleteBframes(bool deleteBframes);
std::string getLazy()const;
void setLazy(const std::string& lazy);
std::string getGop()const;
void setGop(const std::string& gop);
bool getOpus()const;
@@ -75,6 +77,7 @@ namespace AlibabaCloud
private:
std::string _template_;
bool deleteBframes_;
std::string lazy_;
std::string gop_;
bool opus_;
std::string audioCodec_;

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_CREATEMIXSTREAMREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_CREATEMIXSTREAMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT CreateMixStreamRequest : public RpcServiceRequest
{
public:
CreateMixStreamRequest();
~CreateMixStreamRequest();
std::string getOutputConfig()const;
void setOutputConfig(const std::string& outputConfig);
std::string getLayoutId()const;
void setLayoutId(const std::string& layoutId);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getInputStreamList()const;
void setInputStreamList(const std::string& inputStreamList);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getCallbackConfig()const;
void setCallbackConfig(const std::string& callbackConfig);
private:
std::string outputConfig_;
std::string layoutId_;
std::string domainName_;
std::string inputStreamList_;
long ownerId_;
std::string callbackConfig_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_CREATEMIXSTREAMREQUEST_H_

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_DELETEMIXSTREAMREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DELETEMIXSTREAMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DeleteMixStreamRequest : public RpcServiceRequest
{
public:
DeleteMixStreamRequest();
~DeleteMixStreamRequest();
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
std::string getMixStreamId()const;
void setMixStreamId(const std::string& mixStreamId);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string appName_;
std::string streamName_;
std::string mixStreamId_;
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DELETEMIXSTREAMREQUEST_H_

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DescribeLivePullStreamConfigRequest : public RpcServiceRequest
{
public:
DescribeLivePullStreamConfigRequest();
~DescribeLivePullStreamConfigRequest();
std::string getLiveapiRequestFrom()const;
void setLiveapiRequestFrom(const std::string& liveapiRequestFrom);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string liveapiRequestFrom_;
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEPULLSTREAMCONFIGREQUEST_H_

View File

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

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBEMIXSTREAMLISTREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEMIXSTREAMLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DescribeMixStreamListRequest : public RpcServiceRequest
{
public:
DescribeMixStreamListRequest();
~DescribeMixStreamListRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getAppName()const;
void setAppName(const std::string& appName);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
std::string getMixStreamId()const;
void setMixStreamId(const std::string& mixStreamId);
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);
int getPageNo()const;
void setPageNo(int pageNo);
private:
std::string startTime_;
std::string appName_;
int pageSize_;
std::string streamName_;
std::string mixStreamId_;
std::string domainName_;
std::string endTime_;
long ownerId_;
int pageNo_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEMIXSTREAMLISTREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_DESCRIBEMIXSTREAMLISTRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBEMIXSTREAMLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DescribeMixStreamListResult : public ServiceResult
{
public:
struct MixStreamInfo
{
std::string gmtCreate;
std::string streamName;
std::string domainName;
std::string layoutId;
std::string gmtModified;
std::string mixStreamTemplate;
std::string mixstreamId;
int inputStreamNumber;
std::string appName;
};
DescribeMixStreamListResult();
explicit DescribeMixStreamListResult(const std::string &payload);
~DescribeMixStreamListResult();
int getTotal()const;
std::vector<MixStreamInfo> getMixStreamList()const;
protected:
void parse(const std::string &payload);
private:
int total_;
std::vector<MixStreamInfo> mixStreamList_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBEMIXSTREAMLISTRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_TRIGGERRECORDREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_TRIGGERRECORDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT TriggerRecordRequest : public RpcServiceRequest
{
public:
TriggerRecordRequest();
~TriggerRecordRequest();
int getSource()const;
void setSource(int source);
std::string getUserData()const;
void setUserData(const std::string& userData);
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
std::string getAvMode()const;
void setAvMode(const std::string& avMode);
std::string getStorePath()const;
void setStorePath(const std::string& storePath);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getForceTranscode()const;
void setForceTranscode(const std::string& forceTranscode);
bool getNeedRecord()const;
void setNeedRecord(bool needRecord);
private:
int source_;
std::string userData_;
std::string appName_;
std::string streamName_;
std::string avMode_;
std::string storePath_;
std::string domainName_;
long ownerId_;
std::string forceTranscode_;
bool needRecord_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_TRIGGERRECORDREQUEST_H_

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LIVE_MODEL_UPDATEMIXSTREAMREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATEMIXSTREAMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT UpdateMixStreamRequest : public RpcServiceRequest
{
public:
UpdateMixStreamRequest();
~UpdateMixStreamRequest();
std::string getLayoutId()const;
void setLayoutId(const std::string& layoutId);
std::string getMixStreamId()const;
void setMixStreamId(const std::string& mixStreamId);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getInputStreamList()const;
void setInputStreamList(const std::string& inputStreamList);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string layoutId_;
std::string mixStreamId_;
std::string domainName_;
std::string inputStreamList_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATEMIXSTREAMREQUEST_H_

View File

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

View File

@@ -31,21 +31,21 @@ LiveClient::LiveClient(const Credentials &credentials, const ClientConfiguration
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "live");
}
LiveClient::LiveClient(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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "live");
}
LiveClient::LiveClient(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, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "live");
}
LiveClient::~LiveClient()
@@ -591,6 +591,42 @@ LiveClient::AddLiveDomainMappingOutcomeCallable LiveClient::addLiveDomainMapping
return task->get_future();
}
LiveClient::AddLiveDomainPlayMappingOutcome LiveClient::addLiveDomainPlayMapping(const AddLiveDomainPlayMappingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddLiveDomainPlayMappingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddLiveDomainPlayMappingOutcome(AddLiveDomainPlayMappingResult(outcome.result()));
else
return AddLiveDomainPlayMappingOutcome(outcome.error());
}
void LiveClient::addLiveDomainPlayMappingAsync(const AddLiveDomainPlayMappingRequest& request, const AddLiveDomainPlayMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addLiveDomainPlayMapping(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::AddLiveDomainPlayMappingOutcomeCallable LiveClient::addLiveDomainPlayMappingCallable(const AddLiveDomainPlayMappingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddLiveDomainPlayMappingOutcome()>>(
[this, request]()
{
return this->addLiveDomainPlayMapping(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::AddLivePullStreamInfoConfigOutcome LiveClient::addLivePullStreamInfoConfig(const AddLivePullStreamInfoConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1347,6 +1383,42 @@ LiveClient::CreateLiveStreamRecordIndexFilesOutcomeCallable LiveClient::createLi
return task->get_future();
}
LiveClient::CreateMixStreamOutcome LiveClient::createMixStream(const CreateMixStreamRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateMixStreamOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateMixStreamOutcome(CreateMixStreamResult(outcome.result()));
else
return CreateMixStreamOutcome(outcome.error());
}
void LiveClient::createMixStreamAsync(const CreateMixStreamRequest& request, const CreateMixStreamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createMixStream(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::CreateMixStreamOutcomeCallable LiveClient::createMixStreamCallable(const CreateMixStreamRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateMixStreamOutcome()>>(
[this, request]()
{
return this->createMixStream(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::CreateRoomOutcome LiveClient::createRoom(const CreateRoomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2319,6 +2391,42 @@ LiveClient::DeleteLiveStreamsNotifyUrlConfigOutcomeCallable LiveClient::deleteLi
return task->get_future();
}
LiveClient::DeleteMixStreamOutcome LiveClient::deleteMixStream(const DeleteMixStreamRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteMixStreamOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteMixStreamOutcome(DeleteMixStreamResult(outcome.result()));
else
return DeleteMixStreamOutcome(outcome.error());
}
void LiveClient::deleteMixStreamAsync(const DeleteMixStreamRequest& request, const DeleteMixStreamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteMixStream(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeleteMixStreamOutcomeCallable LiveClient::deleteMixStreamCallable(const DeleteMixStreamRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteMixStreamOutcome()>>(
[this, request]()
{
return this->deleteMixStream(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DeleteRoomOutcome LiveClient::deleteRoom(const DeleteRoomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3975,6 +4083,42 @@ LiveClient::DescribeLiveLazyPullStreamConfigOutcomeCallable LiveClient::describe
return task->get_future();
}
LiveClient::DescribeLivePullStreamConfigOutcome LiveClient::describeLivePullStreamConfig(const DescribeLivePullStreamConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLivePullStreamConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLivePullStreamConfigOutcome(DescribeLivePullStreamConfigResult(outcome.result()));
else
return DescribeLivePullStreamConfigOutcome(outcome.error());
}
void LiveClient::describeLivePullStreamConfigAsync(const DescribeLivePullStreamConfigRequest& request, const DescribeLivePullStreamConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLivePullStreamConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLivePullStreamConfigOutcomeCallable LiveClient::describeLivePullStreamConfigCallable(const DescribeLivePullStreamConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLivePullStreamConfigOutcome()>>(
[this, request]()
{
return this->describeLivePullStreamConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveRealtimeDeliveryAccOutcome LiveClient::describeLiveRealtimeDeliveryAcc(const DescribeLiveRealtimeDeliveryAccRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5019,6 +5163,42 @@ LiveClient::DescribeLiveUserTagsOutcomeCallable LiveClient::describeLiveUserTags
return task->get_future();
}
LiveClient::DescribeMixStreamListOutcome LiveClient::describeMixStreamList(const DescribeMixStreamListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeMixStreamListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeMixStreamListOutcome(DescribeMixStreamListResult(outcome.result()));
else
return DescribeMixStreamListOutcome(outcome.error());
}
void LiveClient::describeMixStreamListAsync(const DescribeMixStreamListRequest& request, const DescribeMixStreamListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeMixStreamList(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeMixStreamListOutcomeCallable LiveClient::describeMixStreamListCallable(const DescribeMixStreamListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeMixStreamListOutcome()>>(
[this, request]()
{
return this->describeMixStreamList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeRecordOutcome LiveClient::describeRecord(const DescribeRecordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6855,6 +7035,42 @@ LiveClient::TagLiveResourcesOutcomeCallable LiveClient::tagLiveResourcesCallable
return task->get_future();
}
LiveClient::TriggerRecordOutcome LiveClient::triggerRecord(const TriggerRecordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TriggerRecordOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TriggerRecordOutcome(TriggerRecordResult(outcome.result()));
else
return TriggerRecordOutcome(outcome.error());
}
void LiveClient::triggerRecordAsync(const TriggerRecordRequest& request, const TriggerRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, triggerRecord(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::TriggerRecordOutcomeCallable LiveClient::triggerRecordCallable(const TriggerRecordRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TriggerRecordOutcome()>>(
[this, request]()
{
return this->triggerRecord(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UnTagLiveResourcesOutcome LiveClient::unTagLiveResources(const UnTagLiveResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7287,3 +7503,39 @@ LiveClient::UpdateLiveTopLevelDomainOutcomeCallable LiveClient::updateLiveTopLev
return task->get_future();
}
LiveClient::UpdateMixStreamOutcome LiveClient::updateMixStream(const UpdateMixStreamRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateMixStreamOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateMixStreamOutcome(UpdateMixStreamResult(outcome.result()));
else
return UpdateMixStreamOutcome(outcome.error());
}
void LiveClient::updateMixStreamAsync(const UpdateMixStreamRequest& request, const UpdateMixStreamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateMixStream(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateMixStreamOutcomeCallable LiveClient::updateMixStreamCallable(const UpdateMixStreamRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateMixStreamOutcome()>>(
[this, request]()
{
return this->updateMixStream(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -38,6 +38,17 @@ void AddCustomLiveStreamTranscodeRequest::set_Template(const std::string& _templ
setParameter("_Template", _template);
}
std::string AddCustomLiveStreamTranscodeRequest::getLazy()const
{
return lazy_;
}
void AddCustomLiveStreamTranscodeRequest::setLazy(const std::string& lazy)
{
lazy_ = lazy;
setParameter("Lazy", lazy);
}
std::string AddCustomLiveStreamTranscodeRequest::getGop()const
{
return gop_;

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/AddLiveDomainPlayMappingRequest.h>
using AlibabaCloud::Live::Model::AddLiveDomainPlayMappingRequest;
AddLiveDomainPlayMappingRequest::AddLiveDomainPlayMappingRequest() :
RpcServiceRequest("live", "2016-11-01", "AddLiveDomainPlayMapping")
{
setMethod(HttpRequest::Method::Post);
}
AddLiveDomainPlayMappingRequest::~AddLiveDomainPlayMappingRequest()
{}
std::string AddLiveDomainPlayMappingRequest::getPlayDomain()const
{
return playDomain_;
}
void AddLiveDomainPlayMappingRequest::setPlayDomain(const std::string& playDomain)
{
playDomain_ = playDomain;
setParameter("PlayDomain", playDomain);
}
long AddLiveDomainPlayMappingRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveDomainPlayMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveDomainPlayMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void AddLiveDomainPlayMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}

View File

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

View File

@@ -38,15 +38,26 @@ void AddLiveStreamTranscodeRequest::set_Template(const std::string& _template)
setParameter("_Template", _template);
}
std::string AddLiveStreamTranscodeRequest::getSecurityToken()const
std::string AddLiveStreamTranscodeRequest::getLazy()const
{
return securityToken_;
return lazy_;
}
void AddLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
void AddLiveStreamTranscodeRequest::setLazy(const std::string& lazy)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
lazy_ = lazy;
setParameter("Lazy", lazy);
}
std::string AddLiveStreamTranscodeRequest::getMix()const
{
return mix_;
}
void AddLiveStreamTranscodeRequest::setMix(const std::string& mix)
{
mix_ = mix;
setParameter("Mix", mix);
}
std::string AddLiveStreamTranscodeRequest::getApp()const
@@ -60,6 +71,17 @@ void AddLiveStreamTranscodeRequest::setApp(const std::string& app)
setParameter("App", app);
}
std::string AddLiveStreamTranscodeRequest::getWatermark()const
{
return watermark_;
}
void AddLiveStreamTranscodeRequest::setWatermark(const std::string& watermark)
{
watermark_ = watermark;
setParameter("Watermark", watermark);
}
long AddLiveStreamTranscodeRequest::getOwnerId()const
{
return ownerId_;
@@ -82,3 +104,25 @@ void AddLiveStreamTranscodeRequest::setDomain(const std::string& domain)
setParameter("Domain", domain);
}
std::string AddLiveStreamTranscodeRequest::getWaterPattern()const
{
return waterPattern_;
}
void AddLiveStreamTranscodeRequest::setWaterPattern(const std::string& waterPattern)
{
waterPattern_ = waterPattern;
setParameter("WaterPattern", waterPattern);
}
std::string AddLiveStreamTranscodeRequest::getOnlyAudio()const
{
return onlyAudio_;
}
void AddLiveStreamTranscodeRequest::setOnlyAudio(const std::string& onlyAudio)
{
onlyAudio_ = onlyAudio;
setParameter("OnlyAudio", onlyAudio);
}

View File

@@ -49,6 +49,17 @@ void AddRtsLiveStreamTranscodeRequest::setDeleteBframes(bool deleteBframes)
setParameter("DeleteBframes", deleteBframes ? "true" : "false");
}
std::string AddRtsLiveStreamTranscodeRequest::getLazy()const
{
return lazy_;
}
void AddRtsLiveStreamTranscodeRequest::setLazy(const std::string& lazy)
{
lazy_ = lazy;
setParameter("Lazy", lazy);
}
std::string AddRtsLiveStreamTranscodeRequest::getGop()const
{
return gop_;

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/CreateMixStreamRequest.h>
using AlibabaCloud::Live::Model::CreateMixStreamRequest;
CreateMixStreamRequest::CreateMixStreamRequest() :
RpcServiceRequest("live", "2016-11-01", "CreateMixStream")
{
setMethod(HttpRequest::Method::Post);
}
CreateMixStreamRequest::~CreateMixStreamRequest()
{}
std::string CreateMixStreamRequest::getOutputConfig()const
{
return outputConfig_;
}
void CreateMixStreamRequest::setOutputConfig(const std::string& outputConfig)
{
outputConfig_ = outputConfig;
setParameter("OutputConfig", outputConfig);
}
std::string CreateMixStreamRequest::getLayoutId()const
{
return layoutId_;
}
void CreateMixStreamRequest::setLayoutId(const std::string& layoutId)
{
layoutId_ = layoutId;
setParameter("LayoutId", layoutId);
}
std::string CreateMixStreamRequest::getDomainName()const
{
return domainName_;
}
void CreateMixStreamRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string CreateMixStreamRequest::getInputStreamList()const
{
return inputStreamList_;
}
void CreateMixStreamRequest::setInputStreamList(const std::string& inputStreamList)
{
inputStreamList_ = inputStreamList;
setParameter("InputStreamList", inputStreamList);
}
long CreateMixStreamRequest::getOwnerId()const
{
return ownerId_;
}
void CreateMixStreamRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateMixStreamRequest::getCallbackConfig()const
{
return callbackConfig_;
}
void CreateMixStreamRequest::setCallbackConfig(const std::string& callbackConfig)
{
callbackConfig_ = callbackConfig;
setParameter("CallbackConfig", callbackConfig);
}

View File

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

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DeleteMixStreamRequest.h>
using AlibabaCloud::Live::Model::DeleteMixStreamRequest;
DeleteMixStreamRequest::DeleteMixStreamRequest() :
RpcServiceRequest("live", "2016-11-01", "DeleteMixStream")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMixStreamRequest::~DeleteMixStreamRequest()
{}
std::string DeleteMixStreamRequest::getAppName()const
{
return appName_;
}
void DeleteMixStreamRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DeleteMixStreamRequest::getStreamName()const
{
return streamName_;
}
void DeleteMixStreamRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string DeleteMixStreamRequest::getMixStreamId()const
{
return mixStreamId_;
}
void DeleteMixStreamRequest::setMixStreamId(const std::string& mixStreamId)
{
mixStreamId_ = mixStreamId;
setParameter("MixStreamId", mixStreamId);
}
std::string DeleteMixStreamRequest::getDomainName()const
{
return domainName_;
}
void DeleteMixStreamRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteMixStreamRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMixStreamRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLivePullStreamConfigRequest.h>
using AlibabaCloud::Live::Model::DescribeLivePullStreamConfigRequest;
DescribeLivePullStreamConfigRequest::DescribeLivePullStreamConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLivePullStreamConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLivePullStreamConfigRequest::~DescribeLivePullStreamConfigRequest()
{}
std::string DescribeLivePullStreamConfigRequest::getLiveapiRequestFrom()const
{
return liveapiRequestFrom_;
}
void DescribeLivePullStreamConfigRequest::setLiveapiRequestFrom(const std::string& liveapiRequestFrom)
{
liveapiRequestFrom_ = liveapiRequestFrom;
setParameter("LiveapiRequestFrom", liveapiRequestFrom);
}
std::string DescribeLivePullStreamConfigRequest::getDomainName()const
{
return domainName_;
}
void DescribeLivePullStreamConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeLivePullStreamConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLivePullStreamConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

Some files were not shown because too many files have changed in this diff Show More