Delete numberType.

This commit is contained in:
sdk-team
2023-01-09 09:41:32 +00:00
parent 831ddef131
commit dc54a90aee
19 changed files with 404 additions and 3 deletions

View File

@@ -1 +1 @@
1.36.1416
1.36.1417

View File

@@ -43,6 +43,8 @@ set(dytnsapi_public_header_model
include/alibabacloud/dytnsapi/model/PhoneNumberEncryptResult.h
include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountRequest.h
include/alibabacloud/dytnsapi/model/PhoneNumberStatusForAccountResult.h
include/alibabacloud/dytnsapi/model/PhoneNumberStatusForPublicRequest.h
include/alibabacloud/dytnsapi/model/PhoneNumberStatusForPublicResult.h
include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealRequest.h
include/alibabacloud/dytnsapi/model/PhoneNumberStatusForRealResult.h
include/alibabacloud/dytnsapi/model/PhoneNumberStatusForSmsRequest.h
@@ -80,6 +82,8 @@ set(dytnsapi_src
src/model/PhoneNumberEncryptResult.cc
src/model/PhoneNumberStatusForAccountRequest.cc
src/model/PhoneNumberStatusForAccountResult.cc
src/model/PhoneNumberStatusForPublicRequest.cc
src/model/PhoneNumberStatusForPublicResult.cc
src/model/PhoneNumberStatusForRealRequest.cc
src/model/PhoneNumberStatusForRealResult.cc
src/model/PhoneNumberStatusForSmsRequest.cc

View File

@@ -44,6 +44,8 @@
#include "model/PhoneNumberEncryptResult.h"
#include "model/PhoneNumberStatusForAccountRequest.h"
#include "model/PhoneNumberStatusForAccountResult.h"
#include "model/PhoneNumberStatusForPublicRequest.h"
#include "model/PhoneNumberStatusForPublicResult.h"
#include "model/PhoneNumberStatusForRealRequest.h"
#include "model/PhoneNumberStatusForRealResult.h"
#include "model/PhoneNumberStatusForSmsRequest.h"
@@ -98,6 +100,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::PhoneNumberStatusForAccountResult> PhoneNumberStatusForAccountOutcome;
typedef std::future<PhoneNumberStatusForAccountOutcome> PhoneNumberStatusForAccountOutcomeCallable;
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForAccountRequest&, const PhoneNumberStatusForAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForAccountAsyncHandler;
typedef Outcome<Error, Model::PhoneNumberStatusForPublicResult> PhoneNumberStatusForPublicOutcome;
typedef std::future<PhoneNumberStatusForPublicOutcome> PhoneNumberStatusForPublicOutcomeCallable;
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForPublicRequest&, const PhoneNumberStatusForPublicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForPublicAsyncHandler;
typedef Outcome<Error, Model::PhoneNumberStatusForRealResult> PhoneNumberStatusForRealOutcome;
typedef std::future<PhoneNumberStatusForRealOutcome> PhoneNumberStatusForRealOutcomeCallable;
typedef std::function<void(const DytnsapiClient*, const Model::PhoneNumberStatusForRealRequest&, const PhoneNumberStatusForRealOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PhoneNumberStatusForRealAsyncHandler;
@@ -154,6 +159,9 @@ namespace AlibabaCloud
PhoneNumberStatusForAccountOutcome phoneNumberStatusForAccount(const Model::PhoneNumberStatusForAccountRequest &request)const;
void phoneNumberStatusForAccountAsync(const Model::PhoneNumberStatusForAccountRequest& request, const PhoneNumberStatusForAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PhoneNumberStatusForAccountOutcomeCallable phoneNumberStatusForAccountCallable(const Model::PhoneNumberStatusForAccountRequest& request) const;
PhoneNumberStatusForPublicOutcome phoneNumberStatusForPublic(const Model::PhoneNumberStatusForPublicRequest &request)const;
void phoneNumberStatusForPublicAsync(const Model::PhoneNumberStatusForPublicRequest& request, const PhoneNumberStatusForPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PhoneNumberStatusForPublicOutcomeCallable phoneNumberStatusForPublicCallable(const Model::PhoneNumberStatusForPublicRequest& request) const;
PhoneNumberStatusForRealOutcome phoneNumberStatusForReal(const Model::PhoneNumberStatusForRealRequest &request)const;
void phoneNumberStatusForRealAsync(const Model::PhoneNumberStatusForRealRequest& request, const PhoneNumberStatusForRealAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PhoneNumberStatusForRealOutcomeCallable phoneNumberStatusForRealCallable(const Model::PhoneNumberStatusForRealRequest& request) const;

View File

@@ -34,10 +34,14 @@ public:
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getRouteName() const;
void setRouteName(const std::string &routeName);
std::string getMask() const;
void setMask(const std::string &mask);
std::string getOfferType() const;
void setOfferType(const std::string &offerType);
int getResultCount() const;
void setResultCount(int resultCount);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
@@ -52,8 +56,10 @@ public:
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string routeName_;
std::string mask_;
std::string offerType_;
int resultCount_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string authCode_;

View File

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

View File

@@ -36,6 +36,8 @@ public:
void setStartTime(const std::string &startTime);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getRouteName() const;
void setRouteName(const std::string &routeName);
std::string getMask() const;
void setMask(const std::string &mask);
std::string getOfferType() const;
@@ -57,6 +59,7 @@ private:
long resourceOwnerId_;
std::string startTime_;
std::string accessKeyId_;
std::string routeName_;
std::string mask_;
std::string offerType_;
int resultCount_;

View File

@@ -36,6 +36,8 @@ public:
void setAccessKeyId(const std::string &accessKeyId);
std::string getMask() const;
void setMask(const std::string &mask);
std::string getOfferType() const;
void setOfferType(const std::string &offerType);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
@@ -49,6 +51,7 @@ private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string mask_;
std::string offerType_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string authCode_;

View File

@@ -34,6 +34,8 @@ public:
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getRouteName() const;
void setRouteName(const std::string &routeName);
std::string getMask() const;
void setMask(const std::string &mask);
std::string getResourceOwnerAccount() const;
@@ -48,6 +50,7 @@ public:
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string routeName_;
std::string mask_;
std::string resourceOwnerAccount_;
long ownerId_;

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_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORPUBLICREQUEST_H_
#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORPUBLICREQUEST_H_
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Dytnsapi {
namespace Model {
class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForPublicRequest : public RpcServiceRequest {
public:
PhoneNumberStatusForPublicRequest();
~PhoneNumberStatusForPublicRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getRouteName() const;
void setRouteName(const std::string &routeName);
std::string getMask() const;
void setMask(const std::string &mask);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getAuthCode() const;
void setAuthCode(const std::string &authCode);
std::string getInputNumber() const;
void setInputNumber(const std::string &inputNumber);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string routeName_;
std::string mask_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string authCode_;
std::string inputNumber_;
};
} // namespace Model
} // namespace Dytnsapi
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORPUBLICREQUEST_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_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORPUBLICRESULT_H_
#define ALIBABACLOUD_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORPUBLICRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dytnsapi/DytnsapiExport.h>
namespace AlibabaCloud
{
namespace Dytnsapi
{
namespace Model
{
class ALIBABACLOUD_DYTNSAPI_EXPORT PhoneNumberStatusForPublicResult : public ServiceResult
{
public:
struct Data
{
std::string status;
std::string carrier;
};
PhoneNumberStatusForPublicResult();
explicit PhoneNumberStatusForPublicResult(const std::string &payload);
~PhoneNumberStatusForPublicResult();
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_DYTNSAPI_MODEL_PHONENUMBERSTATUSFORPUBLICRESULT_H_

View File

@@ -447,6 +447,42 @@ DytnsapiClient::PhoneNumberStatusForAccountOutcomeCallable DytnsapiClient::phone
return task->get_future();
}
DytnsapiClient::PhoneNumberStatusForPublicOutcome DytnsapiClient::phoneNumberStatusForPublic(const PhoneNumberStatusForPublicRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PhoneNumberStatusForPublicOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PhoneNumberStatusForPublicOutcome(PhoneNumberStatusForPublicResult(outcome.result()));
else
return PhoneNumberStatusForPublicOutcome(outcome.error());
}
void DytnsapiClient::phoneNumberStatusForPublicAsync(const PhoneNumberStatusForPublicRequest& request, const PhoneNumberStatusForPublicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, phoneNumberStatusForPublic(request), context);
};
asyncExecute(new Runnable(fn));
}
DytnsapiClient::PhoneNumberStatusForPublicOutcomeCallable DytnsapiClient::phoneNumberStatusForPublicCallable(const PhoneNumberStatusForPublicRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PhoneNumberStatusForPublicOutcome()>>(
[this, request]()
{
return this->phoneNumberStatusForPublic(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DytnsapiClient::PhoneNumberStatusForRealOutcome DytnsapiClient::phoneNumberStatusForReal(const PhoneNumberStatusForRealRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -43,6 +43,15 @@ void DescribePhoneNumberOnlineTimeRequest::setAccessKeyId(const std::string &acc
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribePhoneNumberOnlineTimeRequest::getRouteName() const {
return routeName_;
}
void DescribePhoneNumberOnlineTimeRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string DescribePhoneNumberOnlineTimeRequest::getMask() const {
return mask_;
}
@@ -61,6 +70,15 @@ void DescribePhoneNumberOnlineTimeRequest::setOfferType(const std::string &offer
setParameter(std::string("OfferType"), offerType);
}
int DescribePhoneNumberOnlineTimeRequest::getResultCount() const {
return resultCount_;
}
void DescribePhoneNumberOnlineTimeRequest::setResultCount(int resultCount) {
resultCount_ = resultCount;
setParameter(std::string("ResultCount"), std::to_string(resultCount));
}
std::string DescribePhoneNumberOnlineTimeRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}

View File

@@ -42,6 +42,8 @@ void DescribePhoneNumberOnlineTimeResult::parse(const std::string &payload)
auto dataNode = value["Data"];
if(!dataNode["VerifyResult"].isNull())
data_.verifyResult = dataNode["VerifyResult"].asString();
if(!dataNode["CarrierCode"].isNull())
data_.carrierCode = dataNode["CarrierCode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())

View File

@@ -52,6 +52,15 @@ void DescribePhoneTwiceTelVerifyRequest::setAccessKeyId(const std::string &acces
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribePhoneTwiceTelVerifyRequest::getRouteName() const {
return routeName_;
}
void DescribePhoneTwiceTelVerifyRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string DescribePhoneTwiceTelVerifyRequest::getMask() const {
return mask_;
}

View File

@@ -52,6 +52,15 @@ void InvalidPhoneNumberFilterRequest::setMask(const std::string &mask) {
setParameter(std::string("Mask"), mask);
}
std::string InvalidPhoneNumberFilterRequest::getOfferType() const {
return offerType_;
}
void InvalidPhoneNumberFilterRequest::setOfferType(const std::string &offerType) {
offerType_ = offerType;
setParameter(std::string("OfferType"), offerType);
}
std::string InvalidPhoneNumberFilterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}

View File

@@ -43,6 +43,15 @@ void PhoneNumberEncryptRequest::setAccessKeyId(const std::string &accessKeyId) {
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string PhoneNumberEncryptRequest::getRouteName() const {
return routeName_;
}
void PhoneNumberEncryptRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string PhoneNumberEncryptRequest::getMask() const {
return mask_;
}

View File

@@ -51,10 +51,10 @@ void PhoneNumberEncryptResult::parse(const std::string &payload)
dataObject.expireTime = valueDataDataItem["ExpireTime"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}

View File

@@ -0,0 +1,99 @@
/*
* 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/dytnsapi/model/PhoneNumberStatusForPublicRequest.h>
using AlibabaCloud::Dytnsapi::Model::PhoneNumberStatusForPublicRequest;
PhoneNumberStatusForPublicRequest::PhoneNumberStatusForPublicRequest()
: RpcServiceRequest("dytnsapi", "2020-02-17", "PhoneNumberStatusForPublic") {
setMethod(HttpRequest::Method::Post);
}
PhoneNumberStatusForPublicRequest::~PhoneNumberStatusForPublicRequest() {}
long PhoneNumberStatusForPublicRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void PhoneNumberStatusForPublicRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string PhoneNumberStatusForPublicRequest::getAccessKeyId() const {
return accessKeyId_;
}
void PhoneNumberStatusForPublicRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string PhoneNumberStatusForPublicRequest::getRouteName() const {
return routeName_;
}
void PhoneNumberStatusForPublicRequest::setRouteName(const std::string &routeName) {
routeName_ = routeName;
setParameter(std::string("RouteName"), routeName);
}
std::string PhoneNumberStatusForPublicRequest::getMask() const {
return mask_;
}
void PhoneNumberStatusForPublicRequest::setMask(const std::string &mask) {
mask_ = mask;
setParameter(std::string("Mask"), mask);
}
std::string PhoneNumberStatusForPublicRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void PhoneNumberStatusForPublicRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long PhoneNumberStatusForPublicRequest::getOwnerId() const {
return ownerId_;
}
void PhoneNumberStatusForPublicRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string PhoneNumberStatusForPublicRequest::getAuthCode() const {
return authCode_;
}
void PhoneNumberStatusForPublicRequest::setAuthCode(const std::string &authCode) {
authCode_ = authCode;
setParameter(std::string("AuthCode"), authCode);
}
std::string PhoneNumberStatusForPublicRequest::getInputNumber() const {
return inputNumber_;
}
void PhoneNumberStatusForPublicRequest::setInputNumber(const std::string &inputNumber) {
inputNumber_ = inputNumber;
setParameter(std::string("InputNumber"), inputNumber);
}

View File

@@ -0,0 +1,68 @@
/*
* 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/dytnsapi/model/PhoneNumberStatusForPublicResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dytnsapi;
using namespace AlibabaCloud::Dytnsapi::Model;
PhoneNumberStatusForPublicResult::PhoneNumberStatusForPublicResult() :
ServiceResult()
{}
PhoneNumberStatusForPublicResult::PhoneNumberStatusForPublicResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PhoneNumberStatusForPublicResult::~PhoneNumberStatusForPublicResult()
{}
void PhoneNumberStatusForPublicResult::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["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["Carrier"].isNull())
data_.carrier = dataNode["Carrier"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string PhoneNumberStatusForPublicResult::getMessage()const
{
return message_;
}
PhoneNumberStatusForPublicResult::Data PhoneNumberStatusForPublicResult::getData()const
{
return data_;
}
std::string PhoneNumberStatusForPublicResult::getCode()const
{
return code_;
}