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

@@ -1 +1 @@
1.36.1839
1.36.1840

View File

@@ -43,6 +43,10 @@ set(dypnsapi_public_header_model
include/alibabacloud/dypnsapi/model/GetPhoneWithTokenResult.h
include/alibabacloud/dypnsapi/model/GetSmsAuthTokensRequest.h
include/alibabacloud/dypnsapi/model/GetSmsAuthTokensResult.h
include/alibabacloud/dypnsapi/model/JyCreateVerifySchemeRequest.h
include/alibabacloud/dypnsapi/model/JyCreateVerifySchemeResult.h
include/alibabacloud/dypnsapi/model/JyQueryAppInfoBySceneCodeRequest.h
include/alibabacloud/dypnsapi/model/JyQueryAppInfoBySceneCodeResult.h
include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicRequest.h
include/alibabacloud/dypnsapi/model/QueryGateVerifyBillingPublicResult.h
include/alibabacloud/dypnsapi/model/QueryGateVerifyStatisticPublicRequest.h
@@ -84,6 +88,10 @@ set(dypnsapi_src
src/model/GetPhoneWithTokenResult.cc
src/model/GetSmsAuthTokensRequest.cc
src/model/GetSmsAuthTokensResult.cc
src/model/JyCreateVerifySchemeRequest.cc
src/model/JyCreateVerifySchemeResult.cc
src/model/JyQueryAppInfoBySceneCodeRequest.cc
src/model/JyQueryAppInfoBySceneCodeResult.cc
src/model/QueryGateVerifyBillingPublicRequest.cc
src/model/QueryGateVerifyBillingPublicResult.cc
src/model/QueryGateVerifyStatisticPublicRequest.cc

View File

@@ -44,6 +44,10 @@
#include "model/GetPhoneWithTokenResult.h"
#include "model/GetSmsAuthTokensRequest.h"
#include "model/GetSmsAuthTokensResult.h"
#include "model/JyCreateVerifySchemeRequest.h"
#include "model/JyCreateVerifySchemeResult.h"
#include "model/JyQueryAppInfoBySceneCodeRequest.h"
#include "model/JyQueryAppInfoBySceneCodeResult.h"
#include "model/QueryGateVerifyBillingPublicRequest.h"
#include "model/QueryGateVerifyBillingPublicResult.h"
#include "model/QueryGateVerifyStatisticPublicRequest.h"
@@ -102,6 +106,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetSmsAuthTokensResult> GetSmsAuthTokensOutcome;
typedef std::future<GetSmsAuthTokensOutcome> GetSmsAuthTokensOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::GetSmsAuthTokensRequest&, const GetSmsAuthTokensOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSmsAuthTokensAsyncHandler;
typedef Outcome<Error, Model::JyCreateVerifySchemeResult> JyCreateVerifySchemeOutcome;
typedef std::future<JyCreateVerifySchemeOutcome> JyCreateVerifySchemeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::JyCreateVerifySchemeRequest&, const JyCreateVerifySchemeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> JyCreateVerifySchemeAsyncHandler;
typedef Outcome<Error, Model::JyQueryAppInfoBySceneCodeResult> JyQueryAppInfoBySceneCodeOutcome;
typedef std::future<JyQueryAppInfoBySceneCodeOutcome> JyQueryAppInfoBySceneCodeOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::JyQueryAppInfoBySceneCodeRequest&, const JyQueryAppInfoBySceneCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> JyQueryAppInfoBySceneCodeAsyncHandler;
typedef Outcome<Error, Model::QueryGateVerifyBillingPublicResult> QueryGateVerifyBillingPublicOutcome;
typedef std::future<QueryGateVerifyBillingPublicOutcome> QueryGateVerifyBillingPublicOutcomeCallable;
typedef std::function<void(const DypnsapiClient*, const Model::QueryGateVerifyBillingPublicRequest&, const QueryGateVerifyBillingPublicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGateVerifyBillingPublicAsyncHandler;
@@ -164,6 +174,12 @@ namespace AlibabaCloud
GetSmsAuthTokensOutcome getSmsAuthTokens(const Model::GetSmsAuthTokensRequest &request)const;
void getSmsAuthTokensAsync(const Model::GetSmsAuthTokensRequest& request, const GetSmsAuthTokensAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSmsAuthTokensOutcomeCallable getSmsAuthTokensCallable(const Model::GetSmsAuthTokensRequest& request) const;
JyCreateVerifySchemeOutcome jyCreateVerifyScheme(const Model::JyCreateVerifySchemeRequest &request)const;
void jyCreateVerifySchemeAsync(const Model::JyCreateVerifySchemeRequest& request, const JyCreateVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
JyCreateVerifySchemeOutcomeCallable jyCreateVerifySchemeCallable(const Model::JyCreateVerifySchemeRequest& request) const;
JyQueryAppInfoBySceneCodeOutcome jyQueryAppInfoBySceneCode(const Model::JyQueryAppInfoBySceneCodeRequest &request)const;
void jyQueryAppInfoBySceneCodeAsync(const Model::JyQueryAppInfoBySceneCodeRequest& request, const JyQueryAppInfoBySceneCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
JyQueryAppInfoBySceneCodeOutcomeCallable jyQueryAppInfoBySceneCodeCallable(const Model::JyQueryAppInfoBySceneCodeRequest& request) const;
QueryGateVerifyBillingPublicOutcome queryGateVerifyBillingPublic(const Model::QueryGateVerifyBillingPublicRequest &request)const;
void queryGateVerifyBillingPublicAsync(const Model::QueryGateVerifyBillingPublicRequest& request, const QueryGateVerifyBillingPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryGateVerifyBillingPublicOutcomeCallable queryGateVerifyBillingPublicCallable(const Model::QueryGateVerifyBillingPublicRequest& request) const;

View File

@@ -32,24 +32,27 @@ public:
~GetAuthTokenRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOrigin() const;
void setOrigin(const std::string &origin);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getSceneCode() const;
void setSceneCode(const std::string &sceneCode);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getUrl() const;
void setUrl(const std::string &url);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string origin_;
std::string accessKeyId_;
std::string sceneCode_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string url_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Dypnsapi

View File

@@ -0,0 +1,78 @@
/*
* 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_DYPNSAPI_MODEL_JYCREATEVERIFYSCHEMEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_JYCREATEVERIFYSCHEMEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dypnsapi {
namespace Model {
class ALIBABACLOUD_DYPNSAPI_EXPORT JyCreateVerifySchemeRequest : public RpcServiceRequest {
public:
JyCreateVerifySchemeRequest();
~JyCreateVerifySchemeRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getBundleId() const;
void setBundleId(const std::string &bundleId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getAppName() const;
void setAppName(const std::string &appName);
std::string getPackSign() const;
void setPackSign(const std::string &packSign);
std::string getPackName() const;
void setPackName(const std::string &packName);
long getCuApiCode() const;
void setCuApiCode(long cuApiCode);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getCtApiCode() const;
void setCtApiCode(long ctApiCode);
std::string getOsType() const;
void setOsType(const std::string &osType);
long getOwnerId() const;
void setOwnerId(long ownerId);
long getCmApiCode() const;
void setCmApiCode(long cmApiCode);
std::string getSchemeName() const;
void setSchemeName(const std::string &schemeName);
private:
long resourceOwnerId_;
std::string bundleId_;
std::string accessKeyId_;
std::string appName_;
std::string packSign_;
std::string packName_;
long cuApiCode_;
std::string resourceOwnerAccount_;
long ctApiCode_;
std::string osType_;
long ownerId_;
long cmApiCode_;
std::string schemeName_;
};
} // namespace Model
} // namespace Dypnsapi
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_JYCREATEVERIFYSCHEMEREQUEST_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_DYPNSAPI_MODEL_JYCREATEVERIFYSCHEMERESULT_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_JYCREATEVERIFYSCHEMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
namespace AlibabaCloud
{
namespace Dypnsapi
{
namespace Model
{
class ALIBABACLOUD_DYPNSAPI_EXPORT JyCreateVerifySchemeResult : public ServiceResult
{
public:
struct GateVerifySchemeData
{
std::string schemeCode;
};
JyCreateVerifySchemeResult();
explicit JyCreateVerifySchemeResult(const std::string &payload);
~JyCreateVerifySchemeResult();
std::string getMessage()const;
GateVerifySchemeData getGateVerifySchemeData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
GateVerifySchemeData gateVerifySchemeData_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_JYCREATEVERIFYSCHEMERESULT_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_DYPNSAPI_MODEL_JYQUERYAPPINFOBYSCENECODEREQUEST_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_JYQUERYAPPINFOBYSCENECODEREQUEST_H_
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dypnsapi {
namespace Model {
class ALIBABACLOUD_DYPNSAPI_EXPORT JyQueryAppInfoBySceneCodeRequest : public RpcServiceRequest {
public:
JyQueryAppInfoBySceneCodeRequest();
~JyQueryAppInfoBySceneCodeRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getSceneCode() const;
void setSceneCode(const std::string &sceneCode);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string sceneCode_;
std::string resourceOwnerAccount_;
long ownerId_;
};
} // namespace Model
} // namespace Dypnsapi
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_JYQUERYAPPINFOBYSCENECODEREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_DYPNSAPI_MODEL_JYQUERYAPPINFOBYSCENECODERESULT_H_
#define ALIBABACLOUD_DYPNSAPI_MODEL_JYQUERYAPPINFOBYSCENECODERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dypnsapi/DypnsapiExport.h>
namespace AlibabaCloud
{
namespace Dypnsapi
{
namespace Model
{
class ALIBABACLOUD_DYPNSAPI_EXPORT JyQueryAppInfoBySceneCodeResult : public ServiceResult
{
public:
struct Data
{
std::string ctAppKey;
std::string cmAppKey;
std::string ctAppId;
std::string cmAppId;
};
JyQueryAppInfoBySceneCodeResult();
explicit JyQueryAppInfoBySceneCodeResult(const std::string &payload);
~JyQueryAppInfoBySceneCodeResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYPNSAPI_MODEL_JYQUERYAPPINFOBYSCENECODERESULT_H_

View File

@@ -447,6 +447,78 @@ DypnsapiClient::GetSmsAuthTokensOutcomeCallable DypnsapiClient::getSmsAuthTokens
return task->get_future();
}
DypnsapiClient::JyCreateVerifySchemeOutcome DypnsapiClient::jyCreateVerifyScheme(const JyCreateVerifySchemeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return JyCreateVerifySchemeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return JyCreateVerifySchemeOutcome(JyCreateVerifySchemeResult(outcome.result()));
else
return JyCreateVerifySchemeOutcome(outcome.error());
}
void DypnsapiClient::jyCreateVerifySchemeAsync(const JyCreateVerifySchemeRequest& request, const JyCreateVerifySchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, jyCreateVerifyScheme(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::JyCreateVerifySchemeOutcomeCallable DypnsapiClient::jyCreateVerifySchemeCallable(const JyCreateVerifySchemeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<JyCreateVerifySchemeOutcome()>>(
[this, request]()
{
return this->jyCreateVerifyScheme(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::JyQueryAppInfoBySceneCodeOutcome DypnsapiClient::jyQueryAppInfoBySceneCode(const JyQueryAppInfoBySceneCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return JyQueryAppInfoBySceneCodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return JyQueryAppInfoBySceneCodeOutcome(JyQueryAppInfoBySceneCodeResult(outcome.result()));
else
return JyQueryAppInfoBySceneCodeOutcome(outcome.error());
}
void DypnsapiClient::jyQueryAppInfoBySceneCodeAsync(const JyQueryAppInfoBySceneCodeRequest& request, const JyQueryAppInfoBySceneCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, jyQueryAppInfoBySceneCode(request), context);
};
asyncExecute(new Runnable(fn));
}
DypnsapiClient::JyQueryAppInfoBySceneCodeOutcomeCallable DypnsapiClient::jyQueryAppInfoBySceneCodeCallable(const JyQueryAppInfoBySceneCodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<JyQueryAppInfoBySceneCodeOutcome()>>(
[this, request]()
{
return this->jyQueryAppInfoBySceneCode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DypnsapiClient::QueryGateVerifyBillingPublicOutcome DypnsapiClient::queryGateVerifyBillingPublic(const QueryGateVerifyBillingPublicRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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_;
}