Compare commits
1 Commits
1.36.250
...
improve-te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb8fdd0c2f |
12
CHANGELOG
12
CHANGELOG
@@ -1,15 +1,3 @@
|
||||
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.
|
||||
|
||||
2020-02-04 Version 1.36.248
|
||||
- Update default endpoints.
|
||||
|
||||
2020-01-20 Version 1.36.247
|
||||
- Release on full language support.
|
||||
|
||||
|
||||
@@ -41,10 +41,6 @@ Alibaba Cloud SDK for C++ 让您不用复杂编程即可访问云服务器、负
|
||||
* 例如:在基于 Redhat / Fedora 的系统上安装这些软件包
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
|
||||
|
||||
@@ -42,10 +42,6 @@ If you have any problem while using Alibaba Cloud SDK for C++, please submit an
|
||||
- Run the following commands on the `Redhat/Fedora` system
|
||||
|
||||
```bash
|
||||
# use yum
|
||||
yum install jsoncpp-devel openssl-devel uuid-devel libcurl-devel
|
||||
|
||||
# use dnf
|
||||
sudo dnf install libcurl-devel openssl-devel libuuid-devel libjsoncpp-devel
|
||||
```
|
||||
|
||||
|
||||
@@ -75,8 +75,6 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/DescribeDnsProductInstanceResult.h
|
||||
include/alibabacloud/alidns/model/DescribeDnsProductInstancesRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeDnsProductInstancesResult.h
|
||||
include/alibabacloud/alidns/model/DescribeDomainDnssecInfoRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeDomainDnssecInfoResult.h
|
||||
include/alibabacloud/alidns/model/DescribeDomainGroupsRequest.h
|
||||
include/alibabacloud/alidns/model/DescribeDomainGroupsResult.h
|
||||
include/alibabacloud/alidns/model/DescribeDomainInfoRequest.h
|
||||
@@ -157,8 +155,6 @@ set(alidns_public_header_model
|
||||
include/alibabacloud/alidns/model/RollbackGtmRecoveryPlanResult.h
|
||||
include/alibabacloud/alidns/model/SetDNSSLBStatusRequest.h
|
||||
include/alibabacloud/alidns/model/SetDNSSLBStatusResult.h
|
||||
include/alibabacloud/alidns/model/SetDomainDnssecStatusRequest.h
|
||||
include/alibabacloud/alidns/model/SetDomainDnssecStatusResult.h
|
||||
include/alibabacloud/alidns/model/SetDomainRecordStatusRequest.h
|
||||
include/alibabacloud/alidns/model/SetDomainRecordStatusResult.h
|
||||
include/alibabacloud/alidns/model/SetGtmAccessModeRequest.h
|
||||
@@ -248,8 +244,6 @@ set(alidns_src
|
||||
src/model/DescribeDnsProductInstanceResult.cc
|
||||
src/model/DescribeDnsProductInstancesRequest.cc
|
||||
src/model/DescribeDnsProductInstancesResult.cc
|
||||
src/model/DescribeDomainDnssecInfoRequest.cc
|
||||
src/model/DescribeDomainDnssecInfoResult.cc
|
||||
src/model/DescribeDomainGroupsRequest.cc
|
||||
src/model/DescribeDomainGroupsResult.cc
|
||||
src/model/DescribeDomainInfoRequest.cc
|
||||
@@ -330,8 +324,6 @@ set(alidns_src
|
||||
src/model/RollbackGtmRecoveryPlanResult.cc
|
||||
src/model/SetDNSSLBStatusRequest.cc
|
||||
src/model/SetDNSSLBStatusResult.cc
|
||||
src/model/SetDomainDnssecStatusRequest.cc
|
||||
src/model/SetDomainDnssecStatusResult.cc
|
||||
src/model/SetDomainRecordStatusRequest.cc
|
||||
src/model/SetDomainRecordStatusResult.cc
|
||||
src/model/SetGtmAccessModeRequest.cc
|
||||
|
||||
@@ -76,8 +76,6 @@
|
||||
#include "model/DescribeDnsProductInstanceResult.h"
|
||||
#include "model/DescribeDnsProductInstancesRequest.h"
|
||||
#include "model/DescribeDnsProductInstancesResult.h"
|
||||
#include "model/DescribeDomainDnssecInfoRequest.h"
|
||||
#include "model/DescribeDomainDnssecInfoResult.h"
|
||||
#include "model/DescribeDomainGroupsRequest.h"
|
||||
#include "model/DescribeDomainGroupsResult.h"
|
||||
#include "model/DescribeDomainInfoRequest.h"
|
||||
@@ -158,8 +156,6 @@
|
||||
#include "model/RollbackGtmRecoveryPlanResult.h"
|
||||
#include "model/SetDNSSLBStatusRequest.h"
|
||||
#include "model/SetDNSSLBStatusResult.h"
|
||||
#include "model/SetDomainDnssecStatusRequest.h"
|
||||
#include "model/SetDomainDnssecStatusResult.h"
|
||||
#include "model/SetDomainRecordStatusRequest.h"
|
||||
#include "model/SetDomainRecordStatusResult.h"
|
||||
#include "model/SetGtmAccessModeRequest.h"
|
||||
@@ -282,9 +278,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDnsProductInstancesResult> DescribeDnsProductInstancesOutcome;
|
||||
typedef std::future<DescribeDnsProductInstancesOutcome> DescribeDnsProductInstancesOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeDnsProductInstancesRequest&, const DescribeDnsProductInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDnsProductInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainDnssecInfoResult> DescribeDomainDnssecInfoOutcome;
|
||||
typedef std::future<DescribeDomainDnssecInfoOutcome> DescribeDomainDnssecInfoOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeDomainDnssecInfoRequest&, const DescribeDomainDnssecInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainDnssecInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainGroupsResult> DescribeDomainGroupsOutcome;
|
||||
typedef std::future<DescribeDomainGroupsOutcome> DescribeDomainGroupsOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::DescribeDomainGroupsRequest&, const DescribeDomainGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainGroupsAsyncHandler;
|
||||
@@ -405,9 +398,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SetDNSSLBStatusResult> SetDNSSLBStatusOutcome;
|
||||
typedef std::future<SetDNSSLBStatusOutcome> SetDNSSLBStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::SetDNSSLBStatusRequest&, const SetDNSSLBStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDNSSLBStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetDomainDnssecStatusResult> SetDomainDnssecStatusOutcome;
|
||||
typedef std::future<SetDomainDnssecStatusOutcome> SetDomainDnssecStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::SetDomainDnssecStatusRequest&, const SetDomainDnssecStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDomainDnssecStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetDomainRecordStatusResult> SetDomainRecordStatusOutcome;
|
||||
typedef std::future<SetDomainRecordStatusOutcome> SetDomainRecordStatusOutcomeCallable;
|
||||
typedef std::function<void(const AlidnsClient*, const Model::SetDomainRecordStatusRequest&, const SetDomainRecordStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDomainRecordStatusAsyncHandler;
|
||||
@@ -542,9 +532,6 @@ namespace AlibabaCloud
|
||||
DescribeDnsProductInstancesOutcome describeDnsProductInstances(const Model::DescribeDnsProductInstancesRequest &request)const;
|
||||
void describeDnsProductInstancesAsync(const Model::DescribeDnsProductInstancesRequest& request, const DescribeDnsProductInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDnsProductInstancesOutcomeCallable describeDnsProductInstancesCallable(const Model::DescribeDnsProductInstancesRequest& request) const;
|
||||
DescribeDomainDnssecInfoOutcome describeDomainDnssecInfo(const Model::DescribeDomainDnssecInfoRequest &request)const;
|
||||
void describeDomainDnssecInfoAsync(const Model::DescribeDomainDnssecInfoRequest& request, const DescribeDomainDnssecInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainDnssecInfoOutcomeCallable describeDomainDnssecInfoCallable(const Model::DescribeDomainDnssecInfoRequest& request) const;
|
||||
DescribeDomainGroupsOutcome describeDomainGroups(const Model::DescribeDomainGroupsRequest &request)const;
|
||||
void describeDomainGroupsAsync(const Model::DescribeDomainGroupsRequest& request, const DescribeDomainGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainGroupsOutcomeCallable describeDomainGroupsCallable(const Model::DescribeDomainGroupsRequest& request) const;
|
||||
@@ -665,9 +652,6 @@ namespace AlibabaCloud
|
||||
SetDNSSLBStatusOutcome setDNSSLBStatus(const Model::SetDNSSLBStatusRequest &request)const;
|
||||
void setDNSSLBStatusAsync(const Model::SetDNSSLBStatusRequest& request, const SetDNSSLBStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetDNSSLBStatusOutcomeCallable setDNSSLBStatusCallable(const Model::SetDNSSLBStatusRequest& request) const;
|
||||
SetDomainDnssecStatusOutcome setDomainDnssecStatus(const Model::SetDomainDnssecStatusRequest &request)const;
|
||||
void setDomainDnssecStatusAsync(const Model::SetDomainDnssecStatusRequest& request, const SetDomainDnssecStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetDomainDnssecStatusOutcomeCallable setDomainDnssecStatusCallable(const Model::SetDomainDnssecStatusRequest& request) const;
|
||||
SetDomainRecordStatusOutcome setDomainRecordStatus(const Model::SetDomainRecordStatusRequest &request)const;
|
||||
void setDomainRecordStatusAsync(const Model::SetDomainRecordStatusRequest& request, const SetDomainRecordStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetDomainRecordStatusOutcomeCallable setDomainRecordStatusCallable(const Model::SetDomainRecordStatusRequest& request) const;
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* 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_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainDnssecInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDomainDnssecInfoRequest();
|
||||
~DescribeDomainDnssecInfoRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
std::string userClientIp_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFOREQUEST_H_
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* 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_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFORESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainDnssecInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeDomainDnssecInfoResult();
|
||||
explicit DescribeDomainDnssecInfoResult(const std::string &payload);
|
||||
~DescribeDomainDnssecInfoResult();
|
||||
std::string getStatus()const;
|
||||
std::string getDomainName()const;
|
||||
std::string getDigest()const;
|
||||
std::string getPublicKey()const;
|
||||
std::string getDsRecord()const;
|
||||
std::string getDigestType()const;
|
||||
std::string getKeyTag()const;
|
||||
std::string getFlags()const;
|
||||
std::string getAlgorithm()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string domainName_;
|
||||
std::string digest_;
|
||||
std::string publicKey_;
|
||||
std::string dsRecord_;
|
||||
std::string digestType_;
|
||||
std::string keyTag_;
|
||||
std::string flags_;
|
||||
std::string algorithm_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEDOMAINDNSSECINFORESULT_H_
|
||||
@@ -35,8 +35,6 @@ namespace AlibabaCloud
|
||||
DescribeDomainsRequest();
|
||||
~DescribeDomainsRequest();
|
||||
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getResourceGroupId()const;
|
||||
@@ -55,15 +53,12 @@ namespace AlibabaCloud
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
std::string getEndDate()const;
|
||||
void setEndDate(const std::string& endDate);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getSearchMode()const;
|
||||
void setSearchMode(const std::string& searchMode);
|
||||
|
||||
private:
|
||||
std::string startDate_;
|
||||
long pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
long pageSize_;
|
||||
@@ -73,7 +68,6 @@ namespace AlibabaCloud
|
||||
bool starmark_;
|
||||
std::string groupId_;
|
||||
std::string orderBy_;
|
||||
std::string endDate_;
|
||||
std::string userClientIp_;
|
||||
std::string searchMode_;
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace AlibabaCloud
|
||||
bool aliDomain;
|
||||
std::string domainName;
|
||||
std::string instanceId;
|
||||
std::string createTime;
|
||||
std::string punyCode;
|
||||
std::vector<std::string> dnsServers;
|
||||
bool starmark;
|
||||
@@ -51,7 +50,6 @@ namespace AlibabaCloud
|
||||
std::string instanceEndTime;
|
||||
bool instanceExpired;
|
||||
long recordCount;
|
||||
long createTimestamp;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT SetDomainDnssecStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetDomainDnssecStatusRequest();
|
||||
~SetDomainDnssecStatusRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getUserClientIp()const;
|
||||
void setUserClientIp(const std::string& userClientIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
std::string userClientIp_;
|
||||
std::string lang_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSREQUEST_H_
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* 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_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT SetDomainDnssecStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetDomainDnssecStatusResult();
|
||||
explicit SetDomainDnssecStatusResult(const std::string &payload);
|
||||
~SetDomainDnssecStatusResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_SETDOMAINDNSSECSTATUSRESULT_H_
|
||||
@@ -1023,42 +1023,6 @@ AlidnsClient::DescribeDnsProductInstancesOutcomeCallable AlidnsClient::describeD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeDomainDnssecInfoOutcome AlidnsClient::describeDomainDnssecInfo(const DescribeDomainDnssecInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDomainDnssecInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDomainDnssecInfoOutcome(DescribeDomainDnssecInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeDomainDnssecInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::describeDomainDnssecInfoAsync(const DescribeDomainDnssecInfoRequest& request, const DescribeDomainDnssecInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDomainDnssecInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeDomainDnssecInfoOutcomeCallable AlidnsClient::describeDomainDnssecInfoCallable(const DescribeDomainDnssecInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDomainDnssecInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDomainDnssecInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::DescribeDomainGroupsOutcome AlidnsClient::describeDomainGroups(const DescribeDomainGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2499,42 +2463,6 @@ AlidnsClient::SetDNSSLBStatusOutcomeCallable AlidnsClient::setDNSSLBStatusCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::SetDomainDnssecStatusOutcome AlidnsClient::setDomainDnssecStatus(const SetDomainDnssecStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetDomainDnssecStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetDomainDnssecStatusOutcome(SetDomainDnssecStatusResult(outcome.result()));
|
||||
else
|
||||
return SetDomainDnssecStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlidnsClient::setDomainDnssecStatusAsync(const SetDomainDnssecStatusRequest& request, const SetDomainDnssecStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setDomainDnssecStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlidnsClient::SetDomainDnssecStatusOutcomeCallable AlidnsClient::setDomainDnssecStatusCallable(const SetDomainDnssecStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetDomainDnssecStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setDomainDnssecStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlidnsClient::SetDomainRecordStatusOutcome AlidnsClient::setDomainRecordStatus(const SetDomainRecordStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* 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/alidns/model/DescribeDomainDnssecInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribeDomainDnssecInfoRequest;
|
||||
|
||||
DescribeDomainDnssecInfoRequest::DescribeDomainDnssecInfoRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainDnssecInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainDnssecInfoRequest::~DescribeDomainDnssecInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainDnssecInfoRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainDnssecInfoRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainDnssecInfoRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDomainDnssecInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -1,107 +0,0 @@
|
||||
/*
|
||||
* 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/alidns/model/DescribeDomainDnssecInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribeDomainDnssecInfoResult::DescribeDomainDnssecInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainDnssecInfoResult::DescribeDomainDnssecInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainDnssecInfoResult::~DescribeDomainDnssecInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainDnssecInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["DsRecord"].isNull())
|
||||
dsRecord_ = value["DsRecord"].asString();
|
||||
if(!value["Digest"].isNull())
|
||||
digest_ = value["Digest"].asString();
|
||||
if(!value["DigestType"].isNull())
|
||||
digestType_ = value["DigestType"].asString();
|
||||
if(!value["Algorithm"].isNull())
|
||||
algorithm_ = value["Algorithm"].asString();
|
||||
if(!value["PublicKey"].isNull())
|
||||
publicKey_ = value["PublicKey"].asString();
|
||||
if(!value["KeyTag"].isNull())
|
||||
keyTag_ = value["KeyTag"].asString();
|
||||
if(!value["Flags"].isNull())
|
||||
flags_ = value["Flags"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDigest()const
|
||||
{
|
||||
return digest_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getPublicKey()const
|
||||
{
|
||||
return publicKey_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDsRecord()const
|
||||
{
|
||||
return dsRecord_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDigestType()const
|
||||
{
|
||||
return digestType_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getKeyTag()const
|
||||
{
|
||||
return keyTag_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getFlags()const
|
||||
{
|
||||
return flags_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getAlgorithm()const
|
||||
{
|
||||
return algorithm_;
|
||||
}
|
||||
|
||||
@@ -27,17 +27,6 @@ DescribeDomainsRequest::DescribeDomainsRequest() :
|
||||
DescribeDomainsRequest::~DescribeDomainsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainsRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long DescribeDomainsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -137,17 +126,6 @@ void DescribeDomainsRequest::setOrderBy(const std::string& orderBy)
|
||||
setCoreParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
std::string DescribeDomainsRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribeDomainsRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
|
||||
@@ -73,10 +73,6 @@ void DescribeDomainsResult::parse(const std::string &payload)
|
||||
domainsObject.instanceExpired = valueDomainsDomain["InstanceExpired"].asString() == "true";
|
||||
if(!valueDomainsDomain["Starmark"].isNull())
|
||||
domainsObject.starmark = valueDomainsDomain["Starmark"].asString() == "true";
|
||||
if(!valueDomainsDomain["CreateTime"].isNull())
|
||||
domainsObject.createTime = valueDomainsDomain["CreateTime"].asString();
|
||||
if(!valueDomainsDomain["CreateTimestamp"].isNull())
|
||||
domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString());
|
||||
auto allDnsServers = value["DnsServers"]["DnsServer"];
|
||||
for (auto value : allDnsServers)
|
||||
domainsObject.dnsServers.push_back(value.asString());
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/alidns/model/SetDomainDnssecStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::SetDomainDnssecStatusRequest;
|
||||
|
||||
SetDomainDnssecStatusRequest::SetDomainDnssecStatusRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "SetDomainDnssecStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetDomainDnssecStatusRequest::~SetDomainDnssecStatusRequest()
|
||||
{}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/alidns/model/SetDomainDnssecStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
SetDomainDnssecStatusResult::SetDomainDnssecStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetDomainDnssecStatusResult::SetDomainDnssecStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetDomainDnssecStatusResult::~SetDomainDnssecStatusResult()
|
||||
{}
|
||||
|
||||
void SetDomainDnssecStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -30,6 +30,11 @@ public:
|
||||
typedef std::string ParameterValueType;
|
||||
typedef std::map<ParameterNameType, ParameterValueType> ParameterCollection;
|
||||
|
||||
ServiceRequest(const std::string &product, const std::string &version);
|
||||
ServiceRequest(const ServiceRequest &other);
|
||||
ServiceRequest(ServiceRequest &&other);
|
||||
ServiceRequest &operator=(const ServiceRequest &other);
|
||||
ServiceRequest &operator=(ServiceRequest &&other);
|
||||
virtual ~ServiceRequest();
|
||||
|
||||
const char *content() const;
|
||||
@@ -54,12 +59,6 @@ public:
|
||||
void setBodyParameter(const ParameterNameType &name, const ParameterValueType &value);
|
||||
|
||||
protected:
|
||||
ServiceRequest(const std::string &product, const std::string &version);
|
||||
ServiceRequest(const ServiceRequest &other);
|
||||
ServiceRequest(ServiceRequest &&other);
|
||||
ServiceRequest &operator=(const ServiceRequest &other);
|
||||
ServiceRequest &operator=(ServiceRequest &&other);
|
||||
|
||||
void addParameter(const ParameterNameType &name,
|
||||
const ParameterValueType &value);
|
||||
ParameterValueType parameter(const ParameterNameType &name) const;
|
||||
|
||||
@@ -153,8 +153,6 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/ListVideosResult.h
|
||||
include/alibabacloud/imm/model/PutProjectRequest.h
|
||||
include/alibabacloud/imm/model/PutProjectResult.h
|
||||
include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h
|
||||
include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h
|
||||
include/alibabacloud/imm/model/SearchDocIndexRequest.h
|
||||
include/alibabacloud/imm/model/SearchDocIndexResult.h
|
||||
include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h
|
||||
@@ -302,8 +300,6 @@ set(imm_src
|
||||
src/model/ListVideosResult.cc
|
||||
src/model/PutProjectRequest.cc
|
||||
src/model/PutProjectResult.cc
|
||||
src/model/RefreshOfficePreviewTokenRequest.cc
|
||||
src/model/RefreshOfficePreviewTokenResult.cc
|
||||
src/model/SearchDocIndexRequest.cc
|
||||
src/model/SearchDocIndexResult.cc
|
||||
src/model/UpdateDocIndexMetaRequest.cc
|
||||
|
||||
@@ -154,8 +154,6 @@
|
||||
#include "model/ListVideosResult.h"
|
||||
#include "model/PutProjectRequest.h"
|
||||
#include "model/PutProjectResult.h"
|
||||
#include "model/RefreshOfficePreviewTokenRequest.h"
|
||||
#include "model/RefreshOfficePreviewTokenResult.h"
|
||||
#include "model/SearchDocIndexRequest.h"
|
||||
#include "model/SearchDocIndexResult.h"
|
||||
#include "model/UpdateDocIndexMetaRequest.h"
|
||||
@@ -375,9 +373,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PutProjectResult> PutProjectOutcome;
|
||||
typedef std::future<PutProjectOutcome> PutProjectOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::PutProjectRequest&, const PutProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::RefreshOfficePreviewTokenResult> RefreshOfficePreviewTokenOutcome;
|
||||
typedef std::future<RefreshOfficePreviewTokenOutcome> RefreshOfficePreviewTokenOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::RefreshOfficePreviewTokenRequest&, const RefreshOfficePreviewTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshOfficePreviewTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchDocIndexResult> SearchDocIndexOutcome;
|
||||
typedef std::future<SearchDocIndexOutcome> SearchDocIndexOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::SearchDocIndexRequest&, const SearchDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchDocIndexAsyncHandler;
|
||||
@@ -599,9 +594,6 @@ namespace AlibabaCloud
|
||||
PutProjectOutcome putProject(const Model::PutProjectRequest &request)const;
|
||||
void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const;
|
||||
RefreshOfficePreviewTokenOutcome refreshOfficePreviewToken(const Model::RefreshOfficePreviewTokenRequest &request)const;
|
||||
void refreshOfficePreviewTokenAsync(const Model::RefreshOfficePreviewTokenRequest& request, const RefreshOfficePreviewTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RefreshOfficePreviewTokenOutcomeCallable refreshOfficePreviewTokenCallable(const Model::RefreshOfficePreviewTokenRequest& request) const;
|
||||
SearchDocIndexOutcome searchDocIndex(const Model::SearchDocIndexRequest &request)const;
|
||||
void searchDocIndexAsync(const Model::SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchDocIndexOutcomeCallable searchDocIndexCallable(const Model::SearchDocIndexRequest& request) const;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getSrcType()const;
|
||||
void setSrcType(const std::string& srcType);
|
||||
int getExpires()const;
|
||||
void setExpires(int expires);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string srcType_;
|
||||
int expires_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
bool useHTTPS_;
|
||||
|
||||
@@ -38,19 +38,11 @@ namespace AlibabaCloud
|
||||
explicit GetOfficePreviewURLResult(const std::string &payload);
|
||||
~GetOfficePreviewURLResult();
|
||||
std::string getPreviewURL()const;
|
||||
std::string getRefreshToken()const;
|
||||
std::string getAccessToken()const;
|
||||
std::string getRefreshTokenExpiredTime()const;
|
||||
std::string getAccessTokenExpiredTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string previewURL_;
|
||||
std::string refreshToken_;
|
||||
std::string accessToken_;
|
||||
std::string refreshTokenExpiredTime_;
|
||||
std::string accessTokenExpiredTime_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT RefreshOfficePreviewTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RefreshOfficePreviewTokenRequest();
|
||||
~RefreshOfficePreviewTokenRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRefreshToken()const;
|
||||
void setRefreshToken(const std::string& refreshToken);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string refreshToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENREQUEST_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT RefreshOfficePreviewTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RefreshOfficePreviewTokenResult();
|
||||
explicit RefreshOfficePreviewTokenResult(const std::string &payload);
|
||||
~RefreshOfficePreviewTokenResult();
|
||||
std::string getRefreshToken()const;
|
||||
std::string getAccessToken()const;
|
||||
std::string getRefreshTokenExpiredTime()const;
|
||||
std::string getAccessTokenExpiredTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string refreshToken_;
|
||||
std::string accessToken_;
|
||||
std::string refreshTokenExpiredTime_;
|
||||
std::string accessTokenExpiredTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENRESULT_H_
|
||||
@@ -2427,42 +2427,6 @@ ImmClient::PutProjectOutcomeCallable ImmClient::putProjectCallable(const PutProj
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::RefreshOfficePreviewTokenOutcome ImmClient::refreshOfficePreviewToken(const RefreshOfficePreviewTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RefreshOfficePreviewTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RefreshOfficePreviewTokenOutcome(RefreshOfficePreviewTokenResult(outcome.result()));
|
||||
else
|
||||
return RefreshOfficePreviewTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::refreshOfficePreviewTokenAsync(const RefreshOfficePreviewTokenRequest& request, const RefreshOfficePreviewTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, refreshOfficePreviewToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::RefreshOfficePreviewTokenOutcomeCallable ImmClient::refreshOfficePreviewTokenCallable(const RefreshOfficePreviewTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RefreshOfficePreviewTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->refreshOfficePreviewToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::SearchDocIndexOutcome ImmClient::searchDocIndex(const SearchDocIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -38,6 +38,17 @@ void GetOfficePreviewURLRequest::setSrcType(const std::string& srcType)
|
||||
setCoreParameter("SrcType", srcType);
|
||||
}
|
||||
|
||||
int GetOfficePreviewURLRequest::getExpires()const
|
||||
{
|
||||
return expires_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setExpires(int expires)
|
||||
{
|
||||
expires_ = expires;
|
||||
setCoreParameter("Expires", std::to_string(expires));
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
|
||||
@@ -41,14 +41,6 @@ void GetOfficePreviewURLResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PreviewURL"].isNull())
|
||||
previewURL_ = value["PreviewURL"].asString();
|
||||
if(!value["AccessToken"].isNull())
|
||||
accessToken_ = value["AccessToken"].asString();
|
||||
if(!value["RefreshToken"].isNull())
|
||||
refreshToken_ = value["RefreshToken"].asString();
|
||||
if(!value["AccessTokenExpiredTime"].isNull())
|
||||
accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString();
|
||||
if(!value["RefreshTokenExpiredTime"].isNull())
|
||||
refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -57,23 +49,3 @@ std::string GetOfficePreviewURLResult::getPreviewURL()const
|
||||
return previewURL_;
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLResult::getRefreshToken()const
|
||||
{
|
||||
return refreshToken_;
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLResult::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLResult::getRefreshTokenExpiredTime()const
|
||||
{
|
||||
return refreshTokenExpiredTime_;
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLResult::getAccessTokenExpiredTime()const
|
||||
{
|
||||
return accessTokenExpiredTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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/imm/model/RefreshOfficePreviewTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::RefreshOfficePreviewTokenRequest;
|
||||
|
||||
RefreshOfficePreviewTokenRequest::RefreshOfficePreviewTokenRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "RefreshOfficePreviewToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RefreshOfficePreviewTokenRequest::~RefreshOfficePreviewTokenRequest()
|
||||
{}
|
||||
|
||||
std::string RefreshOfficePreviewTokenRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void RefreshOfficePreviewTokenRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string RefreshOfficePreviewTokenRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void RefreshOfficePreviewTokenRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setCoreParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
std::string RefreshOfficePreviewTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void RefreshOfficePreviewTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string RefreshOfficePreviewTokenRequest::getRefreshToken()const
|
||||
{
|
||||
return refreshToken_;
|
||||
}
|
||||
|
||||
void RefreshOfficePreviewTokenRequest::setRefreshToken(const std::string& refreshToken)
|
||||
{
|
||||
refreshToken_ = refreshToken;
|
||||
setCoreParameter("RefreshToken", refreshToken);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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/imm/model/RefreshOfficePreviewTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
RefreshOfficePreviewTokenResult::RefreshOfficePreviewTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RefreshOfficePreviewTokenResult::RefreshOfficePreviewTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RefreshOfficePreviewTokenResult::~RefreshOfficePreviewTokenResult()
|
||||
{}
|
||||
|
||||
void RefreshOfficePreviewTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AccessToken"].isNull())
|
||||
accessToken_ = value["AccessToken"].asString();
|
||||
if(!value["AccessTokenExpiredTime"].isNull())
|
||||
accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString();
|
||||
if(!value["RefreshToken"].isNull())
|
||||
refreshToken_ = value["RefreshToken"].asString();
|
||||
if(!value["RefreshTokenExpiredTime"].isNull())
|
||||
refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RefreshOfficePreviewTokenResult::getRefreshToken()const
|
||||
{
|
||||
return refreshToken_;
|
||||
}
|
||||
|
||||
std::string RefreshOfficePreviewTokenResult::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
std::string RefreshOfficePreviewTokenResult::getRefreshTokenExpiredTime()const
|
||||
{
|
||||
return refreshTokenExpiredTime_;
|
||||
}
|
||||
|
||||
std::string RefreshOfficePreviewTokenResult::getAccessTokenExpiredTime()const
|
||||
{
|
||||
return accessTokenExpiredTime_;
|
||||
}
|
||||
|
||||
@@ -55,8 +55,6 @@ 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
|
||||
@@ -98,8 +96,6 @@ 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,8 +56,6 @@
|
||||
#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"
|
||||
@@ -122,9 +120,6 @@ 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;
|
||||
@@ -187,9 +182,6 @@ 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,8 +35,6 @@ 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;
|
||||
@@ -45,7 +43,6 @@ namespace AlibabaCloud
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
long authorizedUserId_;
|
||||
std::string userClientIp_;
|
||||
std::string acceptLanguage_;
|
||||
std::string lang_;
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Vpc
|
||||
{
|
||||
std::string reionId;
|
||||
std::string vpcId;
|
||||
std::string regionName;
|
||||
std::string vpcName;
|
||||
|
||||
@@ -35,8 +35,6 @@ namespace AlibabaCloud
|
||||
DescribeZoneRecordsRequest();
|
||||
~DescribeZoneRecordsRequest();
|
||||
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
@@ -53,11 +51,8 @@ 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_;
|
||||
@@ -66,7 +61,6 @@ namespace AlibabaCloud
|
||||
std::string tag_;
|
||||
std::string lang_;
|
||||
std::string keyword_;
|
||||
std::string direction_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -42,7 +42,6 @@ namespace AlibabaCloud
|
||||
long recordId;
|
||||
std::string regionId;
|
||||
int ttl;
|
||||
std::string remark;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -43,18 +43,14 @@ namespace AlibabaCloud
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
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 getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getKeyword()const;
|
||||
void setKeyword(const std::string& keyword);
|
||||
std::string getQueryRegionId()const;
|
||||
void setQueryRegionId(const std::string& queryRegionId);
|
||||
|
||||
@@ -63,12 +59,10 @@ namespace AlibabaCloud
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
std::string keyword_;
|
||||
std::string direction_;
|
||||
std::string orderBy_;
|
||||
std::string userClientIp_;
|
||||
std::string searchMode_;
|
||||
std::string lang_;
|
||||
std::string keyword_;
|
||||
std::string queryRegionId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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,42 +663,6 @@ 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,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::AddZoneRecordRequest;
|
||||
|
||||
AddZoneRecordRequest::AddZoneRecordRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "AddZoneRecord")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
AddZoneRecordRequest::~AddZoneRecordRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::AddZoneRequest;
|
||||
|
||||
AddZoneRequest::AddZoneRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "AddZone")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
AddZoneRequest::~AddZoneRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::BindZoneVpcRequest;
|
||||
|
||||
BindZoneVpcRequest::BindZoneVpcRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "BindZoneVpc")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
BindZoneVpcRequest::~BindZoneVpcRequest()
|
||||
{}
|
||||
@@ -68,11 +66,12 @@ std::vector<BindZoneVpcRequest::Vpcs> BindZoneVpcRequest::getVpcs()const
|
||||
void BindZoneVpcRequest::setVpcs(const std::vector<Vpcs>& vpcs)
|
||||
{
|
||||
vpcs_ = vpcs;
|
||||
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);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::CheckZoneNameRequest;
|
||||
|
||||
CheckZoneNameRequest::CheckZoneNameRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "CheckZoneName")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
CheckZoneNameRequest::~CheckZoneNameRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DeleteZoneRecordRequest;
|
||||
|
||||
DeleteZoneRecordRequest::DeleteZoneRecordRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DeleteZoneRecord")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DeleteZoneRecordRequest::~DeleteZoneRecordRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DeleteZoneRequest;
|
||||
|
||||
DeleteZoneRequest::DeleteZoneRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DeleteZone")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DeleteZoneRequest::~DeleteZoneRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DescribeChangeLogsRequest;
|
||||
|
||||
DescribeChangeLogsRequest::DescribeChangeLogsRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeChangeLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DescribeChangeLogsRequest::~DescribeChangeLogsRequest()
|
||||
{}
|
||||
|
||||
@@ -20,24 +20,11 @@ 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,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DescribeRequestGraphRequest;
|
||||
|
||||
DescribeRequestGraphRequest::DescribeRequestGraphRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeRequestGraph")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DescribeRequestGraphRequest::~DescribeRequestGraphRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DescribeStatisticSummaryRequest;
|
||||
|
||||
DescribeStatisticSummaryRequest::DescribeStatisticSummaryRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeStatisticSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DescribeStatisticSummaryRequest::~DescribeStatisticSummaryRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DescribeUserServiceStatusRequest;
|
||||
|
||||
DescribeUserServiceStatusRequest::DescribeUserServiceStatusRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeUserServiceStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DescribeUserServiceStatusRequest::~DescribeUserServiceStatusRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DescribeZoneInfoRequest;
|
||||
|
||||
DescribeZoneInfoRequest::DescribeZoneInfoRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DescribeZoneInfoRequest::~DescribeZoneInfoRequest()
|
||||
{}
|
||||
|
||||
@@ -43,6 +43,8 @@ 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,24 +20,11 @@ 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_;
|
||||
@@ -126,14 +113,3 @@ 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,8 +59,6 @@ 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,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DescribeZoneVpcTreeRequest;
|
||||
|
||||
DescribeZoneVpcTreeRequest::DescribeZoneVpcTreeRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZoneVpcTree")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DescribeZoneVpcTreeRequest::~DescribeZoneVpcTreeRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::DescribeZonesRequest;
|
||||
|
||||
DescribeZonesRequest::DescribeZonesRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "DescribeZones")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
DescribeZonesRequest::~DescribeZonesRequest()
|
||||
{}
|
||||
@@ -71,50 +69,6 @@ void DescribeZonesRequest::setPageSize(int pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = 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_;
|
||||
@@ -137,6 +91,28 @@ void DescribeZonesRequest::setSearchMode(const std::string& searchMode)
|
||||
setCoreParameter("SearchMode", searchMode);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void DescribeZonesRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setCoreParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string DescribeZonesRequest::getQueryRegionId()const
|
||||
{
|
||||
return queryRegionId_;
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::SetProxyPatternRequest;
|
||||
|
||||
SetProxyPatternRequest::SetProxyPatternRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "SetProxyPattern")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
SetProxyPatternRequest::~SetProxyPatternRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::SetZoneRecordStatusRequest;
|
||||
|
||||
SetZoneRecordStatusRequest::SetZoneRecordStatusRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "SetZoneRecordStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
SetZoneRecordStatusRequest::~SetZoneRecordStatusRequest()
|
||||
{}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* 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,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::UpdateZoneRecordRequest;
|
||||
|
||||
UpdateZoneRecordRequest::UpdateZoneRecordRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "UpdateZoneRecord")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
UpdateZoneRecordRequest::~UpdateZoneRecordRequest()
|
||||
{}
|
||||
|
||||
@@ -20,9 +20,7 @@ using AlibabaCloud::Pvtz::Model::UpdateZoneRemarkRequest;
|
||||
|
||||
UpdateZoneRemarkRequest::UpdateZoneRemarkRequest() :
|
||||
RpcServiceRequest("pvtz", "2018-01-01", "UpdateZoneRemark")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
{}
|
||||
|
||||
UpdateZoneRemarkRequest::~UpdateZoneRemarkRequest()
|
||||
{}
|
||||
|
||||
@@ -17,10 +17,12 @@ namespace {
|
||||
{}
|
||||
explicit TestServiceRequest(const ServiceRequest &other):
|
||||
ServiceRequest(other)
|
||||
{}
|
||||
{
|
||||
}
|
||||
explicit TestServiceRequest(ServiceRequest &&other):
|
||||
ServiceRequest(other)
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
using ServiceRequest::addParameter;
|
||||
using ServiceRequest::coreParameter;
|
||||
@@ -103,4 +105,21 @@ namespace {
|
||||
EXPECT_TRUE(sr1.connectTimeout() == 1234);
|
||||
EXPECT_TRUE(sr1.readTimeout() == 22233);
|
||||
}
|
||||
|
||||
TEST(ServiceRequest, other){
|
||||
ServiceRequest one("one", "1.0");
|
||||
EXPECT_EQ("one", one.product());
|
||||
|
||||
ServiceRequest two("two", "1.0");
|
||||
EXPECT_EQ("two", two.product());
|
||||
|
||||
ServiceRequest three = one;
|
||||
EXPECT_EQ("one", three.product());
|
||||
|
||||
ServiceRequest four(two);
|
||||
EXPECT_EQ("two" , four.product());
|
||||
|
||||
ServiceRequest &&five(move(two));
|
||||
EXPECT_EQ("two" , five.product());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,8 +93,6 @@ TEST(LocationClient, credentials_another)
|
||||
{
|
||||
Credentials credentials(key, secret);
|
||||
ClientConfiguration configuration("cn-hangzhou");
|
||||
configuration.setConnectTimeout(300000);
|
||||
configuration.setReadTimeout(300000);
|
||||
|
||||
Model::DescribeEndpointsRequest req;
|
||||
req.setId("cn-hangzhou");
|
||||
@@ -104,8 +102,8 @@ TEST(LocationClient, credentials_another)
|
||||
LocationClient client(std::make_shared<SimpleCredentialsProvider>(credentials), configuration);
|
||||
|
||||
LocationClient::DescribeEndpointsOutcome out = client.describeEndpoints(req);
|
||||
EXPECT_EQ(out.error().errorCode(), "");
|
||||
EXPECT_EQ(out.result().endpoints().size(), 1);
|
||||
EXPECT_TRUE(out.error().errorCode() == "");
|
||||
EXPECT_TRUE(out.result().endpoints().size() == 1);
|
||||
Model::DescribeEndpointsResult::Endpoint ep = out.result().endpoints()[0];
|
||||
EXPECT_TRUE(ep.endpoint == "ecs-cn-hangzhou.aliyuncs.com");
|
||||
EXPECT_TRUE(ep.id == "cn-hangzhou");
|
||||
@@ -130,12 +128,14 @@ TEST(LocationClient, callable)
|
||||
{
|
||||
InitializeSdk();
|
||||
ClientConfiguration configuration("cn-hangzhou");
|
||||
configuration.setConnectTimeout(300000);
|
||||
configuration.setReadTimeout(300000);
|
||||
configuration.setConnectTimeout(100000);
|
||||
configuration.setReadTimeout(100000);
|
||||
Model::DescribeEndpointsRequest req;
|
||||
req.setMethod(HttpRequest::Method::Get);
|
||||
req.setId("cn-hangzhou");
|
||||
req.setServiceCode("ecs");
|
||||
req.setType("openAPI");
|
||||
req.setBodyParameter("foo", "var");
|
||||
|
||||
LocationClient client(key, secret, configuration);
|
||||
LocationClient::DescribeEndpointsOutcomeCallable cb = client.describeEndpointsCallable(req);
|
||||
|
||||
Reference in New Issue
Block a user