Fix bug for DescribeZoneInfo, delete return result of reionId.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2020-02-07 Version 1.36.250
|
||||
- Fix bug for DescribeZoneInfo, delete return result of reionId.
|
||||
- Fix bug for DeleteZone, parameter zoneId change to compulsory.
|
||||
- Fix bug for SetProxyPattern, parameter zoneId change to compulsory.
|
||||
|
||||
2020-02-05 Version 1.36.249
|
||||
- Supported GetOfficePreviewURL.
|
||||
- Supported RefreshOfficePreviewToken.
|
||||
|
||||
@@ -55,6 +55,8 @@ set(pvtz_public_header_model
|
||||
include/alibabacloud/pvtz/model/SetProxyPatternResult.h
|
||||
include/alibabacloud/pvtz/model/SetZoneRecordStatusRequest.h
|
||||
include/alibabacloud/pvtz/model/SetZoneRecordStatusResult.h
|
||||
include/alibabacloud/pvtz/model/UpdateRecordRemarkRequest.h
|
||||
include/alibabacloud/pvtz/model/UpdateRecordRemarkResult.h
|
||||
include/alibabacloud/pvtz/model/UpdateZoneRecordRequest.h
|
||||
include/alibabacloud/pvtz/model/UpdateZoneRecordResult.h
|
||||
include/alibabacloud/pvtz/model/UpdateZoneRemarkRequest.h
|
||||
@@ -96,6 +98,8 @@ set(pvtz_src
|
||||
src/model/SetProxyPatternResult.cc
|
||||
src/model/SetZoneRecordStatusRequest.cc
|
||||
src/model/SetZoneRecordStatusResult.cc
|
||||
src/model/UpdateRecordRemarkRequest.cc
|
||||
src/model/UpdateRecordRemarkResult.cc
|
||||
src/model/UpdateZoneRecordRequest.cc
|
||||
src/model/UpdateZoneRecordResult.cc
|
||||
src/model/UpdateZoneRemarkRequest.cc
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
#include "model/SetProxyPatternResult.h"
|
||||
#include "model/SetZoneRecordStatusRequest.h"
|
||||
#include "model/SetZoneRecordStatusResult.h"
|
||||
#include "model/UpdateRecordRemarkRequest.h"
|
||||
#include "model/UpdateRecordRemarkResult.h"
|
||||
#include "model/UpdateZoneRecordRequest.h"
|
||||
#include "model/UpdateZoneRecordResult.h"
|
||||
#include "model/UpdateZoneRemarkRequest.h"
|
||||
@@ -120,6 +122,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetZoneRecordStatusResult> SetZoneRecordStatusOutcome;
|
||||
typedef std::future<SetZoneRecordStatusOutcome> SetZoneRecordStatusOutcomeCallable;
|
||||
typedef std::function<void(const PvtzClient*, const Model::SetZoneRecordStatusRequest&, const SetZoneRecordStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetZoneRecordStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRecordRemarkResult> UpdateRecordRemarkOutcome;
|
||||
typedef std::future<UpdateRecordRemarkOutcome> UpdateRecordRemarkOutcomeCallable;
|
||||
typedef std::function<void(const PvtzClient*, const Model::UpdateRecordRemarkRequest&, const UpdateRecordRemarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRecordRemarkAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateZoneRecordResult> UpdateZoneRecordOutcome;
|
||||
typedef std::future<UpdateZoneRecordOutcome> UpdateZoneRecordOutcomeCallable;
|
||||
typedef std::function<void(const PvtzClient*, const Model::UpdateZoneRecordRequest&, const UpdateZoneRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateZoneRecordAsyncHandler;
|
||||
@@ -182,6 +187,9 @@ namespace AlibabaCloud
|
||||
SetZoneRecordStatusOutcome setZoneRecordStatus(const Model::SetZoneRecordStatusRequest &request)const;
|
||||
void setZoneRecordStatusAsync(const Model::SetZoneRecordStatusRequest& request, const SetZoneRecordStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetZoneRecordStatusOutcomeCallable setZoneRecordStatusCallable(const Model::SetZoneRecordStatusRequest& request) const;
|
||||
UpdateRecordRemarkOutcome updateRecordRemark(const Model::UpdateRecordRemarkRequest &request)const;
|
||||
void updateRecordRemarkAsync(const Model::UpdateRecordRemarkRequest& request, const UpdateRecordRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRecordRemarkOutcomeCallable updateRecordRemarkCallable(const Model::UpdateRecordRemarkRequest& request) const;
|
||||
UpdateZoneRecordOutcome updateZoneRecord(const Model::UpdateZoneRecordRequest &request)const;
|
||||
void updateZoneRecordAsync(const Model::UpdateZoneRecordRequest& request, const UpdateZoneRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateZoneRecordOutcomeCallable updateZoneRecordCallable(const Model::UpdateZoneRecordRequest& request) const;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
|
||||
long getAuthorizedUserId()const;
|
||||
void setAuthorizedUserId(long authorizedUserId);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getAcceptLanguage()const;
|
||||
@@ -43,6 +45,7 @@ namespace AlibabaCloud
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
long authorizedUserId_;
|
||||
std::string userClientIp_;
|
||||
std::string acceptLanguage_;
|
||||
std::string lang_;
|
||||
|
||||
@@ -34,7 +34,6 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Vpc
|
||||
{
|
||||
std::string reionId;
|
||||
std::string vpcId;
|
||||
std::string regionName;
|
||||
std::string vpcName;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
DescribeZoneRecordsRequest();
|
||||
~DescribeZoneRecordsRequest();
|
||||
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
@@ -51,8 +53,11 @@ namespace AlibabaCloud
|
||||
void setLang(const std::string& lang);
|
||||
std::string getKeyword()const;
|
||||
void setKeyword(const std::string& keyword);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
|
||||
private:
|
||||
std::string orderBy_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string userClientIp_;
|
||||
@@ -61,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::string tag_;
|
||||
std::string lang_;
|
||||
std::string keyword_;
|
||||
std::string direction_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
long recordId;
|
||||
std::string regionId;
|
||||
int ttl;
|
||||
std::string remark;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -43,14 +43,18 @@ namespace AlibabaCloud
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getSearchMode()const;
|
||||
void setSearchMode(const std::string& searchMode);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getKeyword()const;
|
||||
void setKeyword(const std::string& keyword);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getSearchMode()const;
|
||||
void setSearchMode(const std::string& searchMode);
|
||||
std::string getQueryRegionId()const;
|
||||
void setQueryRegionId(const std::string& queryRegionId);
|
||||
|
||||
@@ -59,10 +63,12 @@ namespace AlibabaCloud
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
int pageSize_;
|
||||
std::string userClientIp_;
|
||||
std::string searchMode_;
|
||||
std::string lang_;
|
||||
std::string keyword_;
|
||||
std::string direction_;
|
||||
std::string orderBy_;
|
||||
std::string userClientIp_;
|
||||
std::string searchMode_;
|
||||
std::string queryRegionId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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_PVTZ_MODEL_UPDATERECORDREMARKREQUEST_H_
|
||||
#define ALIBABACLOUD_PVTZ_MODEL_UPDATERECORDREMARKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/pvtz/PvtzExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Pvtz
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PVTZ_EXPORT UpdateRecordRemarkRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateRecordRemarkRequest();
|
||||
~UpdateRecordRemarkRequest();
|
||||
|
||||
std::string getRemark()const;
|
||||
void setRemark(const std::string& remark);
|
||||
long getRecordId()const;
|
||||
void setRecordId(long recordId);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string remark_;
|
||||
long recordId_;
|
||||
std::string userClientIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PVTZ_MODEL_UPDATERECORDREMARKREQUEST_H_
|
||||
@@ -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_PVTZ_MODEL_UPDATERECORDREMARKRESULT_H_
|
||||
#define ALIBABACLOUD_PVTZ_MODEL_UPDATERECORDREMARKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/pvtz/PvtzExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Pvtz
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PVTZ_EXPORT UpdateRecordRemarkResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateRecordRemarkResult();
|
||||
explicit UpdateRecordRemarkResult(const std::string &payload);
|
||||
~UpdateRecordRemarkResult();
|
||||
long getRecordId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long recordId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PVTZ_MODEL_UPDATERECORDREMARKRESULT_H_
|
||||
@@ -663,6 +663,42 @@ PvtzClient::SetZoneRecordStatusOutcomeCallable PvtzClient::setZoneRecordStatusCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PvtzClient::UpdateRecordRemarkOutcome PvtzClient::updateRecordRemark(const UpdateRecordRemarkRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateRecordRemarkOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateRecordRemarkOutcome(UpdateRecordRemarkResult(outcome.result()));
|
||||
else
|
||||
return UpdateRecordRemarkOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PvtzClient::updateRecordRemarkAsync(const UpdateRecordRemarkRequest& request, const UpdateRecordRemarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateRecordRemark(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PvtzClient::UpdateRecordRemarkOutcomeCallable PvtzClient::updateRecordRemarkCallable(const UpdateRecordRemarkRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateRecordRemarkOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateRecordRemark(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PvtzClient::UpdateZoneRecordOutcome PvtzClient::updateZoneRecord(const UpdateZoneRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::AddZoneRecordRequest;
|
||||
|
||||
AddZoneRecordRequest::AddZoneRecordRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "AddZoneRecord")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddZoneRecordRequest::~AddZoneRecordRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::AddZoneRequest;
|
||||
|
||||
AddZoneRequest::AddZoneRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "AddZone")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddZoneRequest::~AddZoneRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::BindZoneVpcRequest;
|
||||
|
||||
BindZoneVpcRequest::BindZoneVpcRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "BindZoneVpc")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindZoneVpcRequest::~BindZoneVpcRequest()
|
||||
{}
|
||||
@@ -66,12 +68,11 @@ std::vector<BindZoneVpcRequest::Vpcs> BindZoneVpcRequest::getVpcs()const
|
||||
void BindZoneVpcRequest::setVpcs(const std::vector<Vpcs>& vpcs)
|
||||
{
|
||||
vpcs_ = vpcs;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= vpcs.size(); i++) {
|
||||
auto obj = vpcs.at(i);
|
||||
std::string str ="Vpcs."+ std::to_string(i);
|
||||
setCoreParameter(str + ".RegionId", obj.regionId);
|
||||
setCoreParameter(str + ".VpcId", obj.vpcId);
|
||||
for(int dep1 = 0; dep1!= vpcs.size(); dep1++) {
|
||||
auto vpcsObj = vpcs.at(dep1);
|
||||
std::string vpcsObjStr = "Vpcs." + std::to_string(dep1);
|
||||
setCoreParameter(vpcsObjStr + ".RegionId", vpcsObj.regionId);
|
||||
setCoreParameter(vpcsObjStr + ".VpcId", vpcsObj.vpcId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::CheckZoneNameRequest;
|
||||
|
||||
CheckZoneNameRequest::CheckZoneNameRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "CheckZoneName")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckZoneNameRequest::~CheckZoneNameRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DeleteZoneRecordRequest;
|
||||
|
||||
DeleteZoneRecordRequest::DeleteZoneRecordRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DeleteZoneRecord")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteZoneRecordRequest::~DeleteZoneRecordRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DeleteZoneRequest;
|
||||
|
||||
DeleteZoneRequest::DeleteZoneRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DeleteZone")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteZoneRequest::~DeleteZoneRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DescribeChangeLogsRequest;
|
||||
|
||||
DescribeChangeLogsRequest::DescribeChangeLogsRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeChangeLogs")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeChangeLogsRequest::~DescribeChangeLogsRequest()
|
||||
{}
|
||||
|
||||
@@ -20,11 +20,24 @@ using AlibabaCloud::Pvtz::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeRegions")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
long DescribeRegionsRequest::getAuthorizedUserId()const
|
||||
{
|
||||
return authorizedUserId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAuthorizedUserId(long authorizedUserId)
|
||||
{
|
||||
authorizedUserId_ = authorizedUserId;
|
||||
setCoreParameter("AuthorizedUserId", std::to_string(authorizedUserId));
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DescribeRequestGraphRequest;
|
||||
|
||||
DescribeRequestGraphRequest::DescribeRequestGraphRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeRequestGraph")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRequestGraphRequest::~DescribeRequestGraphRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DescribeStatisticSummaryRequest;
|
||||
|
||||
DescribeStatisticSummaryRequest::DescribeStatisticSummaryRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeStatisticSummary")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeStatisticSummaryRequest::~DescribeStatisticSummaryRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DescribeUserServiceStatusRequest;
|
||||
|
||||
DescribeUserServiceStatusRequest::DescribeUserServiceStatusRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeUserServiceStatus")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeUserServiceStatusRequest::~DescribeUserServiceStatusRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DescribeZoneInfoRequest;
|
||||
|
||||
DescribeZoneInfoRequest::DescribeZoneInfoRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneInfo")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeZoneInfoRequest::~DescribeZoneInfoRequest()
|
||||
{}
|
||||
|
||||
@@ -43,8 +43,6 @@ void DescribeZoneInfoResult::parse(const std::string &payload)
|
||||
for (auto valueBindVpcsVpc : allBindVpcsNode)
|
||||
{
|
||||
Vpc bindVpcsObject;
|
||||
if(!valueBindVpcsVpc["ReionId"].isNull())
|
||||
bindVpcsObject.reionId = valueBindVpcsVpc["ReionId"].asString();
|
||||
if(!valueBindVpcsVpc["VpcId"].isNull())
|
||||
bindVpcsObject.vpcId = valueBindVpcsVpc["VpcId"].asString();
|
||||
if(!valueBindVpcsVpc["VpcName"].isNull())
|
||||
|
||||
@@ -20,11 +20,24 @@ using AlibabaCloud::Pvtz::Model::DescribeZoneRecordsRequest;
|
||||
|
||||
DescribeZoneRecordsRequest::DescribeZoneRecordsRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneRecords")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeZoneRecordsRequest::~DescribeZoneRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeZoneRecordsRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeZoneRecordsRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setCoreParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
int DescribeZoneRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -113,3 +126,14 @@ void DescribeZoneRecordsRequest::setKeyword(const std::string& keyword)
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string DescribeZoneRecordsRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void DescribeZoneRecordsRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setCoreParameter("Direction", direction);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ void DescribeZoneRecordsResult::parse(const std::string &payload)
|
||||
recordsObject.status = valueRecordsRecord["Status"].asString();
|
||||
if(!valueRecordsRecord["RegionId"].isNull())
|
||||
recordsObject.regionId = valueRecordsRecord["RegionId"].asString();
|
||||
if(!valueRecordsRecord["Remark"].isNull())
|
||||
recordsObject.remark = valueRecordsRecord["Remark"].asString();
|
||||
records_.push_back(recordsObject);
|
||||
}
|
||||
if(!value["TotalItems"].isNull())
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DescribeZoneVpcTreeRequest;
|
||||
|
||||
DescribeZoneVpcTreeRequest::DescribeZoneVpcTreeRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneVpcTree")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeZoneVpcTreeRequest::~DescribeZoneVpcTreeRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::DescribeZonesRequest;
|
||||
|
||||
DescribeZonesRequest::DescribeZonesRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZones")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeZonesRequest::~DescribeZonesRequest()
|
||||
{}
|
||||
@@ -69,28 +71,6 @@ void DescribeZonesRequest::setPageSize(int pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getSearchMode()const
|
||||
{
|
||||
return searchMode_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setSearchMode(const std::string& searchMode)
|
||||
{
|
||||
searchMode_ = searchMode;
|
||||
setCoreParameter("SearchMode", searchMode);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
@@ -113,6 +93,50 @@ void DescribeZonesRequest::setKeyword(const std::string& keyword)
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setCoreParameter("Direction", direction);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setCoreParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getSearchMode()const
|
||||
{
|
||||
return searchMode_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setSearchMode(const std::string& searchMode)
|
||||
{
|
||||
searchMode_ = searchMode;
|
||||
setCoreParameter("SearchMode", searchMode);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getQueryRegionId()const
|
||||
{
|
||||
return queryRegionId_;
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::SetProxyPatternRequest;
|
||||
|
||||
SetProxyPatternRequest::SetProxyPatternRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "SetProxyPattern")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetProxyPatternRequest::~SetProxyPatternRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::SetZoneRecordStatusRequest;
|
||||
|
||||
SetZoneRecordStatusRequest::SetZoneRecordStatusRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "SetZoneRecordStatus")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetZoneRecordStatusRequest::~SetZoneRecordStatusRequest()
|
||||
{}
|
||||
|
||||
73
pvtz/src/model/UpdateRecordRemarkRequest.cc
Normal file
73
pvtz/src/model/UpdateRecordRemarkRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/pvtz/model/UpdateRecordRemarkRequest.h>
|
||||
|
||||
using AlibabaCloud::Pvtz::Model::UpdateRecordRemarkRequest;
|
||||
|
||||
UpdateRecordRemarkRequest::UpdateRecordRemarkRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "UpdateRecordRemark")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateRecordRemarkRequest::~UpdateRecordRemarkRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateRecordRemarkRequest::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void UpdateRecordRemarkRequest::setRemark(const std::string& remark)
|
||||
{
|
||||
remark_ = remark;
|
||||
setCoreParameter("Remark", remark);
|
||||
}
|
||||
|
||||
long UpdateRecordRemarkRequest::getRecordId()const
|
||||
{
|
||||
return recordId_;
|
||||
}
|
||||
|
||||
void UpdateRecordRemarkRequest::setRecordId(long recordId)
|
||||
{
|
||||
recordId_ = recordId;
|
||||
setCoreParameter("RecordId", std::to_string(recordId));
|
||||
}
|
||||
|
||||
std::string UpdateRecordRemarkRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void UpdateRecordRemarkRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string UpdateRecordRemarkRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void UpdateRecordRemarkRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
51
pvtz/src/model/UpdateRecordRemarkResult.cc
Normal file
51
pvtz/src/model/UpdateRecordRemarkResult.cc
Normal 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/pvtz/model/UpdateRecordRemarkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Pvtz;
|
||||
using namespace AlibabaCloud::Pvtz::Model;
|
||||
|
||||
UpdateRecordRemarkResult::UpdateRecordRemarkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateRecordRemarkResult::UpdateRecordRemarkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateRecordRemarkResult::~UpdateRecordRemarkResult()
|
||||
{}
|
||||
|
||||
void UpdateRecordRemarkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RecordId"].isNull())
|
||||
recordId_ = std::stol(value["RecordId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long UpdateRecordRemarkResult::getRecordId()const
|
||||
{
|
||||
return recordId_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::UpdateZoneRecordRequest;
|
||||
|
||||
UpdateZoneRecordRequest::UpdateZoneRecordRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "UpdateZoneRecord")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateZoneRecordRequest::~UpdateZoneRecordRequest()
|
||||
{}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::Pvtz::Model::UpdateZoneRemarkRequest;
|
||||
|
||||
UpdateZoneRemarkRequest::UpdateZoneRemarkRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "UpdateZoneRemark")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateZoneRemarkRequest::~UpdateZoneRemarkRequest()
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user