Publish sdk.

This commit is contained in:
sdk-team
2024-01-04 02:43:32 +00:00
parent 0d265770f7
commit ee2f3a43cf
14 changed files with 740 additions and 25 deletions

View File

@@ -34,15 +34,6 @@ void GetAuthTokenRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string GetAuthTokenRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void GetAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string GetAuthTokenRequest::getOrigin() const {
return origin_;
}
@@ -52,6 +43,33 @@ void GetAuthTokenRequest::setOrigin(const std::string &origin) {
setParameter(std::string("Origin"), origin);
}
std::string GetAuthTokenRequest::getAccessKeyId() const {
return accessKeyId_;
}
void GetAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string GetAuthTokenRequest::getSceneCode() const {
return sceneCode_;
}
void GetAuthTokenRequest::setSceneCode(const std::string &sceneCode) {
sceneCode_ = sceneCode;
setParameter(std::string("SceneCode"), sceneCode);
}
std::string GetAuthTokenRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void GetAuthTokenRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long GetAuthTokenRequest::getOwnerId() const {
return ownerId_;
}
@@ -70,12 +88,3 @@ void GetAuthTokenRequest::setUrl(const std::string &url) {
setParameter(std::string("Url"), url);
}
std::string GetAuthTokenRequest::getAccessKeyId() const {
return accessKeyId_;
}
void GetAuthTokenRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}

View File

@@ -0,0 +1,144 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/dypnsapi/model/JyCreateVerifySchemeRequest.h>
using AlibabaCloud::Dypnsapi::Model::JyCreateVerifySchemeRequest;
JyCreateVerifySchemeRequest::JyCreateVerifySchemeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "JyCreateVerifyScheme") {
setMethod(HttpRequest::Method::Post);
}
JyCreateVerifySchemeRequest::~JyCreateVerifySchemeRequest() {}
long JyCreateVerifySchemeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void JyCreateVerifySchemeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string JyCreateVerifySchemeRequest::getBundleId() const {
return bundleId_;
}
void JyCreateVerifySchemeRequest::setBundleId(const std::string &bundleId) {
bundleId_ = bundleId;
setParameter(std::string("BundleId"), bundleId);
}
std::string JyCreateVerifySchemeRequest::getAccessKeyId() const {
return accessKeyId_;
}
void JyCreateVerifySchemeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string JyCreateVerifySchemeRequest::getAppName() const {
return appName_;
}
void JyCreateVerifySchemeRequest::setAppName(const std::string &appName) {
appName_ = appName;
setParameter(std::string("AppName"), appName);
}
std::string JyCreateVerifySchemeRequest::getPackSign() const {
return packSign_;
}
void JyCreateVerifySchemeRequest::setPackSign(const std::string &packSign) {
packSign_ = packSign;
setParameter(std::string("PackSign"), packSign);
}
std::string JyCreateVerifySchemeRequest::getPackName() const {
return packName_;
}
void JyCreateVerifySchemeRequest::setPackName(const std::string &packName) {
packName_ = packName;
setParameter(std::string("PackName"), packName);
}
long JyCreateVerifySchemeRequest::getCuApiCode() const {
return cuApiCode_;
}
void JyCreateVerifySchemeRequest::setCuApiCode(long cuApiCode) {
cuApiCode_ = cuApiCode;
setParameter(std::string("CuApiCode"), std::to_string(cuApiCode));
}
std::string JyCreateVerifySchemeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void JyCreateVerifySchemeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long JyCreateVerifySchemeRequest::getCtApiCode() const {
return ctApiCode_;
}
void JyCreateVerifySchemeRequest::setCtApiCode(long ctApiCode) {
ctApiCode_ = ctApiCode;
setParameter(std::string("CtApiCode"), std::to_string(ctApiCode));
}
std::string JyCreateVerifySchemeRequest::getOsType() const {
return osType_;
}
void JyCreateVerifySchemeRequest::setOsType(const std::string &osType) {
osType_ = osType;
setParameter(std::string("OsType"), osType);
}
long JyCreateVerifySchemeRequest::getOwnerId() const {
return ownerId_;
}
void JyCreateVerifySchemeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
long JyCreateVerifySchemeRequest::getCmApiCode() const {
return cmApiCode_;
}
void JyCreateVerifySchemeRequest::setCmApiCode(long cmApiCode) {
cmApiCode_ = cmApiCode;
setParameter(std::string("CmApiCode"), std::to_string(cmApiCode));
}
std::string JyCreateVerifySchemeRequest::getSchemeName() const {
return schemeName_;
}
void JyCreateVerifySchemeRequest::setSchemeName(const std::string &schemeName) {
schemeName_ = schemeName;
setParameter(std::string("SchemeName"), schemeName);
}

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/dypnsapi/model/JyCreateVerifySchemeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dypnsapi;
using namespace AlibabaCloud::Dypnsapi::Model;
JyCreateVerifySchemeResult::JyCreateVerifySchemeResult() :
ServiceResult()
{}
JyCreateVerifySchemeResult::JyCreateVerifySchemeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
JyCreateVerifySchemeResult::~JyCreateVerifySchemeResult()
{}
void JyCreateVerifySchemeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto gateVerifySchemeDataNode = value["GateVerifySchemeData"];
if(!gateVerifySchemeDataNode["SchemeCode"].isNull())
gateVerifySchemeData_.schemeCode = gateVerifySchemeDataNode["SchemeCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string JyCreateVerifySchemeResult::getMessage()const
{
return message_;
}
JyCreateVerifySchemeResult::GateVerifySchemeData JyCreateVerifySchemeResult::getGateVerifySchemeData()const
{
return gateVerifySchemeData_;
}
std::string JyCreateVerifySchemeResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dypnsapi/model/JyQueryAppInfoBySceneCodeRequest.h>
using AlibabaCloud::Dypnsapi::Model::JyQueryAppInfoBySceneCodeRequest;
JyQueryAppInfoBySceneCodeRequest::JyQueryAppInfoBySceneCodeRequest()
: RpcServiceRequest("dypnsapi", "2017-05-25", "JyQueryAppInfoBySceneCode") {
setMethod(HttpRequest::Method::Post);
}
JyQueryAppInfoBySceneCodeRequest::~JyQueryAppInfoBySceneCodeRequest() {}
long JyQueryAppInfoBySceneCodeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void JyQueryAppInfoBySceneCodeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string JyQueryAppInfoBySceneCodeRequest::getAccessKeyId() const {
return accessKeyId_;
}
void JyQueryAppInfoBySceneCodeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string JyQueryAppInfoBySceneCodeRequest::getSceneCode() const {
return sceneCode_;
}
void JyQueryAppInfoBySceneCodeRequest::setSceneCode(const std::string &sceneCode) {
sceneCode_ = sceneCode;
setParameter(std::string("SceneCode"), sceneCode);
}
std::string JyQueryAppInfoBySceneCodeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void JyQueryAppInfoBySceneCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long JyQueryAppInfoBySceneCodeRequest::getOwnerId() const {
return ownerId_;
}
void JyQueryAppInfoBySceneCodeRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

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