Released dysms OpenAPI.

This commit is contained in:
sdk-team
2019-11-14 22:43:29 +08:00
parent 4819dbb983
commit dae639ec05
28 changed files with 1107 additions and 779 deletions

View File

@@ -36,6 +36,8 @@
#include "model/ModifySmsTemplateResult.h"
#include "model/QuerySendDetailsRequest.h"
#include "model/QuerySendDetailsResult.h"
#include "model/QuerySmsProdStatusRequest.h"
#include "model/QuerySmsProdStatusResult.h"
#include "model/QuerySmsSignRequest.h"
#include "model/QuerySmsSignResult.h"
#include "model/QuerySmsTemplateRequest.h"
@@ -74,6 +76,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QuerySendDetailsResult> QuerySendDetailsOutcome;
typedef std::future<QuerySendDetailsOutcome> QuerySendDetailsOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySendDetailsRequest&, const QuerySendDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySendDetailsAsyncHandler;
typedef Outcome<Error, Model::QuerySmsProdStatusResult> QuerySmsProdStatusOutcome;
typedef std::future<QuerySmsProdStatusOutcome> QuerySmsProdStatusOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsProdStatusRequest&, const QuerySmsProdStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsProdStatusAsyncHandler;
typedef Outcome<Error, Model::QuerySmsSignResult> QuerySmsSignOutcome;
typedef std::future<QuerySmsSignOutcome> QuerySmsSignOutcomeCallable;
typedef std::function<void(const DysmsapiClient*, const Model::QuerySmsSignRequest&, const QuerySmsSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySmsSignAsyncHandler;
@@ -112,6 +117,9 @@ namespace AlibabaCloud
QuerySendDetailsOutcome querySendDetails(const Model::QuerySendDetailsRequest &request)const;
void querySendDetailsAsync(const Model::QuerySendDetailsRequest& request, const QuerySendDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySendDetailsOutcomeCallable querySendDetailsCallable(const Model::QuerySendDetailsRequest& request) const;
QuerySmsProdStatusOutcome querySmsProdStatus(const Model::QuerySmsProdStatusRequest &request)const;
void querySmsProdStatusAsync(const Model::QuerySmsProdStatusRequest& request, const QuerySmsProdStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySmsProdStatusOutcomeCallable querySmsProdStatusCallable(const Model::QuerySmsProdStatusRequest& request) const;
QuerySmsSignOutcome querySmsSign(const Model::QuerySmsSignRequest &request)const;
void querySmsSignAsync(const Model::QuerySmsSignRequest& request, const QuerySmsSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySmsSignOutcomeCallable querySmsSignCallable(const Model::QuerySmsSignRequest& request) const;

View File

@@ -30,42 +30,42 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_DYSMSAPI_EXPORT AddSmsSignRequest : public RpcServiceRequest
{
struct SignFileList
{
std::string fileContents;
std::string fileSuffix;
};
struct SignFileList
{
std::string fileContents;
std::string fileSuffix;
};
public:
AddSmsSignRequest();
~AddSmsSignRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
std::vector<SignFileList> getSignFileList()const;
void setSignFileList(const std::vector<SignFileList>& signFileList);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
int getSignSource()const;
void setSignSource(int signSource);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
std::vector<SignFileList> getSignFileList()const;
void setSignFileList(const std::vector<SignFileList>& signFileList);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
int getSignSource()const;
void setSignSource(int signSource);
private:
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
std::string signName_;
std::vector<SignFileList> signFileList_;
std::string resourceOwnerAccount_;
long ownerId_;
int signSource_;
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
std::string signName_;
std::vector<SignFileList> signFileList_;
std::string resourceOwnerAccount_;
long ownerId_;
int signSource_;
};
}

View File

@@ -35,32 +35,32 @@ namespace AlibabaCloud
AddSmsTemplateRequest();
~AddSmsTemplateRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getTemplateType()const;
void setTemplateType(int templateType);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTemplateContent()const;
void setTemplateContent(const std::string& templateContent);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getTemplateType()const;
void setTemplateType(int templateType);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTemplateContent()const;
void setTemplateContent(const std::string& templateContent);
private:
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
int templateType_;
std::string templateName_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string templateContent_;
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
int templateType_;
std::string templateName_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string templateContent_;
};
}

View File

@@ -35,23 +35,23 @@ namespace AlibabaCloud
DeleteSmsSignRequest();
~DeleteSmsSignRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string signName_;
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string signName_;
};
}

View File

@@ -35,23 +35,23 @@ namespace AlibabaCloud
DeleteSmsTemplateRequest();
~DeleteSmsTemplateRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string templateCode_;
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string templateCode_;
};
}

View File

@@ -30,42 +30,42 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_DYSMSAPI_EXPORT ModifySmsSignRequest : public RpcServiceRequest
{
struct SignFileList
{
std::string fileContents;
std::string fileSuffix;
};
struct SignFileList
{
std::string fileContents;
std::string fileSuffix;
};
public:
ModifySmsSignRequest();
~ModifySmsSignRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
std::vector<SignFileList> getSignFileList()const;
void setSignFileList(const std::vector<SignFileList>& signFileList);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
int getSignSource()const;
void setSignSource(int signSource);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
std::vector<SignFileList> getSignFileList()const;
void setSignFileList(const std::vector<SignFileList>& signFileList);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
int getSignSource()const;
void setSignSource(int signSource);
private:
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
std::string signName_;
std::vector<SignFileList> signFileList_;
std::string resourceOwnerAccount_;
long ownerId_;
int signSource_;
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
std::string signName_;
std::vector<SignFileList> signFileList_;
std::string resourceOwnerAccount_;
long ownerId_;
int signSource_;
};
}

View File

@@ -35,35 +35,35 @@ namespace AlibabaCloud
ModifySmsTemplateRequest();
~ModifySmsTemplateRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getTemplateType()const;
void setTemplateType(int templateType);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTemplateContent()const;
void setTemplateContent(const std::string& templateContent);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getTemplateType()const;
void setTemplateType(int templateType);
std::string getTemplateName()const;
void setTemplateName(const std::string& templateName);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTemplateContent()const;
void setTemplateContent(const std::string& templateContent);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
private:
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
int templateType_;
std::string templateName_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string templateContent_;
std::string templateCode_;
long resourceOwnerId_;
std::string remark_;
std::string accessKeyId_;
int templateType_;
std::string templateName_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string templateContent_;
std::string templateCode_;
};
}

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_DYSMSAPI_MODEL_QUERYSMSPRODSTATUSREQUEST_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSPRODSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsProdStatusRequest : public RpcServiceRequest
{
public:
QuerySmsProdStatusRequest();
~QuerySmsProdStatusRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
long getAliyUid()const;
void setAliyUid(long aliyUid);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
long aliyUid_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSPRODSTATUSREQUEST_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_DYSMSAPI_MODEL_QUERYSMSPRODSTATUSRESULT_H_
#define ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSPRODSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dysmsapi/DysmsapiExport.h>
namespace AlibabaCloud
{
namespace Dysmsapi
{
namespace Model
{
class ALIBABACLOUD_DYSMSAPI_EXPORT QuerySmsProdStatusResult : public ServiceResult
{
public:
QuerySmsProdStatusResult();
explicit QuerySmsProdStatusResult(const std::string &payload);
~QuerySmsProdStatusResult();
std::string getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_DYSMSAPI_MODEL_QUERYSMSPRODSTATUSRESULT_H_

View File

@@ -35,23 +35,23 @@ namespace AlibabaCloud
QuerySmsSignRequest();
~QuerySmsSignRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSignName()const;
void setSignName(const std::string& signName);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string signName_;
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string signName_;
};
}

View File

@@ -35,23 +35,23 @@ namespace AlibabaCloud
QuerySmsTemplateRequest();
~QuerySmsTemplateRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string templateCode_;
long resourceOwnerId_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string accessKeyId_;
std::string templateCode_;
};
}