Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09607080ce | ||
|
|
b353656f13 | ||
|
|
fe25215982 | ||
|
|
08a90e1cca | ||
|
|
b14fa4b715 | ||
|
|
4c2ebf13d5 | ||
|
|
b4e95dcd5a | ||
|
|
38dab66f9d | ||
|
|
b452038de4 | ||
|
|
f23788b801 |
16
CHANGELOG
16
CHANGELOG
@@ -1,3 +1,19 @@
|
||||
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.
|
||||
|
||||
2020-01-17 Version 1.36.246
|
||||
- Supported Add the history event signature function.
|
||||
|
||||
2020-01-16 Version 1.36.245
|
||||
- Fix the result value of DeleteSiteMonitors.
|
||||
|
||||
2020-01-16 Version 1.36.244
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Update DescribeAvailableResource.
|
||||
|
||||
@@ -41,6 +41,10 @@ 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,6 +42,10 @@ 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,6 +75,8 @@ 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
|
||||
@@ -155,6 +157,8 @@ 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
|
||||
@@ -244,6 +248,8 @@ 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
|
||||
@@ -324,6 +330,8 @@ 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,6 +76,8 @@
|
||||
#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"
|
||||
@@ -156,6 +158,8 @@
|
||||
#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"
|
||||
@@ -278,6 +282,9 @@ 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;
|
||||
@@ -398,6 +405,9 @@ 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;
|
||||
@@ -532,6 +542,9 @@ 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;
|
||||
@@ -652,6 +665,9 @@ 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;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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,6 +35,8 @@ 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;
|
||||
@@ -53,12 +55,15 @@ 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_;
|
||||
@@ -68,6 +73,7 @@ namespace AlibabaCloud
|
||||
bool starmark_;
|
||||
std::string groupId_;
|
||||
std::string orderBy_;
|
||||
std::string endDate_;
|
||||
std::string userClientIp_;
|
||||
std::string searchMode_;
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
bool aliDomain;
|
||||
std::string domainName;
|
||||
std::string instanceId;
|
||||
std::string createTime;
|
||||
std::string punyCode;
|
||||
std::vector<std::string> dnsServers;
|
||||
bool starmark;
|
||||
@@ -50,6 +51,7 @@ namespace AlibabaCloud
|
||||
std::string instanceEndTime;
|
||||
bool instanceExpired;
|
||||
long recordCount;
|
||||
long createTimestamp;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_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_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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,6 +1023,42 @@ 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();
|
||||
@@ -2463,6 +2499,42 @@ 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();
|
||||
|
||||
62
alidns/src/model/DescribeDomainDnssecInfoRequest.cc
Normal file
62
alidns/src/model/DescribeDomainDnssecInfoRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
107
alidns/src/model/DescribeDomainDnssecInfoResult.cc
Normal file
107
alidns/src/model/DescribeDomainDnssecInfoResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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,6 +27,17 @@ 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_;
|
||||
@@ -126,6 +137,17 @@ 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,6 +73,10 @@ 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());
|
||||
|
||||
73
alidns/src/model/SetDomainDnssecStatusRequest.cc
Normal file
73
alidns/src/model/SetDomainDnssecStatusRequest.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/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);
|
||||
}
|
||||
|
||||
44
alidns/src/model/SetDomainDnssecStatusResult.cc
Normal file
44
alidns/src/model/SetDomainDnssecStatusResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -32,13 +32,17 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CMS_EXPORT DeleteSiteMonitorsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int count;
|
||||
};
|
||||
|
||||
|
||||
DeleteSiteMonitorsResult();
|
||||
explicit DeleteSiteMonitorsResult(const std::string &payload);
|
||||
~DeleteSiteMonitorsResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
@@ -46,7 +50,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
|
||||
@@ -44,16 +44,18 @@ namespace AlibabaCloud
|
||||
std::string key;
|
||||
};
|
||||
std::string groupName;
|
||||
long dynamicTagGroupId;
|
||||
std::vector<Resource::ContactGroup> contactGroups;
|
||||
std::string dynamicTagRuleId;
|
||||
long gmtModified;
|
||||
std::string groupFounderTagValue;
|
||||
long groupId;
|
||||
std::string serviceId;
|
||||
std::string type;
|
||||
long gmtCreate;
|
||||
std::string bindUrl;
|
||||
long gmtModified;
|
||||
std::string groupFounderTagKey;
|
||||
std::vector<std::string> templateIds;
|
||||
std::vector<Resource::Tag> tags;
|
||||
long groupId;
|
||||
std::string serviceId;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -39,14 +39,15 @@ void DeleteSiteMonitorsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["count"].isNull())
|
||||
data_.count = std::stoi(dataNode["count"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -55,7 +56,7 @@ std::string DeleteSiteMonitorsResult::getMessage()const
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteSiteMonitorsResult::getData()const
|
||||
DeleteSiteMonitorsResult::Data DeleteSiteMonitorsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -57,8 +57,12 @@ void DescribeMonitorGroupsResult::parse(const std::string &payload)
|
||||
resourcesObject.gmtCreate = std::stol(valueResourcesResource["GmtCreate"].asString());
|
||||
if(!valueResourcesResource["BindUrl"].isNull())
|
||||
resourcesObject.bindUrl = valueResourcesResource["BindUrl"].asString();
|
||||
if(!valueResourcesResource["DynamicTagGroupId"].isNull())
|
||||
resourcesObject.dynamicTagGroupId = std::stol(valueResourcesResource["DynamicTagGroupId"].asString());
|
||||
if(!valueResourcesResource["DynamicTagRuleId"].isNull())
|
||||
resourcesObject.dynamicTagRuleId = valueResourcesResource["DynamicTagRuleId"].asString();
|
||||
if(!valueResourcesResource["GroupFounderTagKey"].isNull())
|
||||
resourcesObject.groupFounderTagKey = valueResourcesResource["GroupFounderTagKey"].asString();
|
||||
if(!valueResourcesResource["GroupFounderTagValue"].isNull())
|
||||
resourcesObject.groupFounderTagValue = valueResourcesResource["GroupFounderTagValue"].asString();
|
||||
auto allContactGroupsNode = allResourcesNode["ContactGroups"]["ContactGroup"];
|
||||
for (auto allResourcesNodeContactGroupsContactGroup : allContactGroupsNode)
|
||||
{
|
||||
|
||||
@@ -36,6 +36,7 @@ public:
|
||||
size_t contentSize() const;
|
||||
bool hasContent() const;
|
||||
ParameterCollection parameters() const;
|
||||
ParameterCollection bodyParameters() const;
|
||||
std::string product() const;
|
||||
std::string resourcePath() const;
|
||||
std::string version() const;
|
||||
@@ -50,6 +51,7 @@ public:
|
||||
ParameterValueType getHeader(const ParameterNameType &name);
|
||||
void removeHeader(const ParameterNameType &name);
|
||||
ParameterCollection headers() const;
|
||||
void setBodyParameter(const ParameterNameType &name, const ParameterValueType &value);
|
||||
|
||||
protected:
|
||||
ServiceRequest(const std::string &product, const std::string &version);
|
||||
@@ -81,6 +83,7 @@ private:
|
||||
char *content_;
|
||||
size_t contentSize_;
|
||||
ParameterCollection params_;
|
||||
ParameterCollection body_params_;
|
||||
ParameterCollection headers_;
|
||||
std::string product_;
|
||||
std::string resourcePath_;
|
||||
|
||||
@@ -63,28 +63,33 @@ HttpRequest RpcServiceClient::buildHttpRequest(const std::string & endpoint,
|
||||
const Credentials credentials = credentialsProvider_->getCredentials();
|
||||
|
||||
Url url;
|
||||
if (msg.scheme().empty()) {
|
||||
if (msg.scheme().empty())
|
||||
{
|
||||
url.setScheme("https");
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
url.setScheme(msg.scheme());
|
||||
}
|
||||
url.setHost(endpoint);
|
||||
url.setPath(msg.resourcePath());
|
||||
|
||||
std::map<std::string, std::string> signParams;
|
||||
|
||||
auto params = msg.parameters();
|
||||
std::map <std::string, std::string> queryParams;
|
||||
for (const auto &p : params) {
|
||||
for (const auto &p : params)
|
||||
{
|
||||
if (!p.second.empty())
|
||||
queryParams[p.first] = p.second;
|
||||
signParams[p.first] = p.second;
|
||||
}
|
||||
|
||||
queryParams["AccessKeyId"] = credentials.accessKeyId();
|
||||
queryParams["Format"] = "JSON";
|
||||
queryParams["RegionId"] = configuration().regionId();
|
||||
queryParams["SecurityToken"] = credentials.sessionToken();
|
||||
queryParams["SignatureMethod"] = signer_->name();
|
||||
queryParams["SignatureNonce"] = GenerateUuid();
|
||||
queryParams["SignatureVersion"] = signer_->version();
|
||||
signParams["AccessKeyId"] = credentials.accessKeyId();
|
||||
signParams["Format"] = "JSON";
|
||||
signParams["RegionId"] = configuration().regionId();
|
||||
signParams["SecurityToken"] = credentials.sessionToken();
|
||||
signParams["SignatureMethod"] = signer_->name();
|
||||
signParams["SignatureNonce"] = GenerateUuid();
|
||||
signParams["SignatureVersion"] = signer_->version();
|
||||
std::time_t t = std::time(nullptr);
|
||||
std::stringstream ss;
|
||||
#if defined(__GNUG__) && __GNUC__ < 5
|
||||
@@ -94,28 +99,42 @@ HttpRequest RpcServiceClient::buildHttpRequest(const std::string & endpoint,
|
||||
#else
|
||||
ss << std::put_time(std::gmtime(&t), "%FT%TZ");
|
||||
#endif
|
||||
queryParams["Timestamp"] = ss.str();
|
||||
queryParams["Version"] = msg.version();
|
||||
signParams["Timestamp"] = ss.str();
|
||||
signParams["Version"] = msg.version();
|
||||
|
||||
std::map<std::string, std::string> query;
|
||||
for (const auto &p : signParams)
|
||||
{
|
||||
query[p.first] = p.second;
|
||||
}
|
||||
|
||||
auto body_params = msg.bodyParameters();
|
||||
for (const auto &p : body_params)
|
||||
{
|
||||
signParams[p.first] = p.second;
|
||||
}
|
||||
|
||||
std::stringstream plaintext;
|
||||
plaintext << HttpMethodToString(method)
|
||||
<< "&"
|
||||
<< UrlEncode(url.path())
|
||||
<< "&"
|
||||
<< UrlEncode(canonicalizedQuery(queryParams));
|
||||
|
||||
queryParams["Signature"] = signer_->generate(plaintext.str(),
|
||||
credentials.accessKeySecret() + "&");
|
||||
<< "&"
|
||||
<< UrlEncode(url.path())
|
||||
<< "&"
|
||||
<< UrlEncode(canonicalizedQuery(signParams));
|
||||
query["Signature"] = signer_->generate(plaintext.str(),
|
||||
credentials.accessKeySecret() + "&");
|
||||
|
||||
std::stringstream queryString;
|
||||
for (const auto &p : queryParams)
|
||||
for (const auto &p : query)
|
||||
queryString << "&" << p.first << "=" << UrlEncode(p.second);
|
||||
url.setQuery(queryString.str().substr(1));
|
||||
|
||||
HttpRequest request(url);
|
||||
if (msg.connectTimeout() != kInvalidTimeout) {
|
||||
if (msg.connectTimeout() != kInvalidTimeout)
|
||||
{
|
||||
request.setConnectTimeout(msg.connectTimeout());
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
request.setConnectTimeout(configuration().connectTimeout());
|
||||
}
|
||||
|
||||
@@ -127,16 +146,26 @@ HttpRequest RpcServiceClient::buildHttpRequest(const std::string & endpoint,
|
||||
}
|
||||
}
|
||||
|
||||
if (msg.readTimeout() != kInvalidTimeout) {
|
||||
if (msg.readTimeout() != kInvalidTimeout)
|
||||
{
|
||||
request.setReadTimeout(msg.readTimeout());
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
request.setReadTimeout(configuration().readTimeout());
|
||||
}
|
||||
|
||||
request.setMethod(method);
|
||||
request.setHeader("Host", url.host());
|
||||
request.setHeader("x-sdk-client",
|
||||
std::string("CPP/").append(ALIBABACLOUD_VERSION_STR));
|
||||
std::string("CPP/").append(ALIBABACLOUD_VERSION_STR));
|
||||
std::stringstream tmp;
|
||||
for (const auto &p : body_params)
|
||||
tmp << "&" << p.first << "=" << UrlEncode(p.second);
|
||||
if(tmp.str().length() > 0){
|
||||
std::string body = tmp.str().substr(1);
|
||||
request.setBody(body.c_str(), body.length());
|
||||
}
|
||||
return request;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,12 @@ ServiceRequest::ParameterCollection ServiceRequest::parameters() const
|
||||
return params_;
|
||||
}
|
||||
|
||||
|
||||
ServiceRequest::ParameterCollection ServiceRequest::bodyParameters() const
|
||||
{
|
||||
return body_params_;
|
||||
}
|
||||
|
||||
void ServiceRequest::removeParameter(const ParameterNameType &name)
|
||||
{
|
||||
params_.erase(name);
|
||||
@@ -153,6 +159,11 @@ void ServiceRequest::setCoreParameter(const ParameterNameType &name, const Param
|
||||
setParameter(name, value);
|
||||
}
|
||||
|
||||
void ServiceRequest::setBodyParameter(const ParameterNameType &name, const ParameterValueType &value)
|
||||
{
|
||||
body_params_[name] = value;
|
||||
}
|
||||
|
||||
void ServiceRequest::setParameters(const ParameterCollection ¶ms)
|
||||
{
|
||||
params_ = params;
|
||||
@@ -162,7 +173,7 @@ void ServiceRequest::setJsonParameters(const ParameterNameType &name, const Para
|
||||
{
|
||||
params_ = params;
|
||||
params_ = params;
|
||||
setCoreParameter(name, AlibabaCloud::MapToJson(params));
|
||||
setParameter(name, AlibabaCloud::MapToJson(params));
|
||||
}
|
||||
|
||||
std::string ServiceRequest::version() const
|
||||
|
||||
@@ -235,11 +235,13 @@ std::string AlibabaCloud::GetEnv(const std::string env)
|
||||
std::string AlibabaCloud::MapToJson(const std::map<std::string, std::string> &maps)
|
||||
{
|
||||
Json::Value jsonObject;
|
||||
Json::FastWriter writer;
|
||||
for (std::map<std::string, std::string>::const_iterator iter = maps.begin(); iter != maps.end(); ++iter)
|
||||
{
|
||||
jsonObject[iter->first] = iter->second;
|
||||
}
|
||||
return jsonObject.toStyledString();
|
||||
std::string unformat_str = writer.write(jsonObject);
|
||||
return unformat_str.substr(0, unformat_str.length() - 1);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> AlibabaCloud::JsonToMap(const std::string &json)
|
||||
|
||||
86
hiknoengine/CMakeLists.txt
Normal file
86
hiknoengine/CMakeLists.txt
Normal file
@@ -0,0 +1,86 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(hiknoengine_public_header
|
||||
include/alibabacloud/hiknoengine/HiknoengineClient.h
|
||||
include/alibabacloud/hiknoengine/HiknoengineExport.h )
|
||||
|
||||
set(hiknoengine_public_header_model
|
||||
include/alibabacloud/hiknoengine/model/TranslateTextRequest.h
|
||||
include/alibabacloud/hiknoengine/model/TranslateTextResult.h )
|
||||
|
||||
set(hiknoengine_src
|
||||
src/HiknoengineClient.cc
|
||||
src/model/TranslateTextRequest.cc
|
||||
src/model/TranslateTextResult.cc )
|
||||
|
||||
add_library(hiknoengine ${LIB_TYPE}
|
||||
${hiknoengine_public_header}
|
||||
${hiknoengine_public_header_model}
|
||||
${hiknoengine_src})
|
||||
|
||||
set_target_properties(hiknoengine
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}hiknoengine
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(hiknoengine
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_HIKNOENGINE_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(hiknoengine
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(hiknoengine
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(hiknoengine
|
||||
jsoncpp)
|
||||
target_include_directories(hiknoengine
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(hiknoengine
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(hiknoengine
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(hiknoengine
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(hiknoengine
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${hiknoengine_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/hiknoengine)
|
||||
install(FILES ${hiknoengine_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/hiknoengine/model)
|
||||
install(TARGETS hiknoengine
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HIKNOENGINE_HIKNOENGINECLIENT_H_
|
||||
#define ALIBABACLOUD_HIKNOENGINE_HIKNOENGINECLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "HiknoengineExport.h"
|
||||
#include "model/TranslateTextRequest.h"
|
||||
#include "model/TranslateTextResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hiknoengine
|
||||
{
|
||||
class ALIBABACLOUD_HIKNOENGINE_EXPORT HiknoengineClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::TranslateTextResult> TranslateTextOutcome;
|
||||
typedef std::future<TranslateTextOutcome> TranslateTextOutcomeCallable;
|
||||
typedef std::function<void(const HiknoengineClient*, const Model::TranslateTextRequest&, const TranslateTextOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateTextAsyncHandler;
|
||||
|
||||
HiknoengineClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
HiknoengineClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
HiknoengineClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~HiknoengineClient();
|
||||
TranslateTextOutcome translateText(const Model::TranslateTextRequest &request)const;
|
||||
void translateTextAsync(const Model::TranslateTextRequest& request, const TranslateTextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateTextOutcomeCallable translateTextCallable(const Model::TranslateTextRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_HIKNOENGINE_HIKNOENGINECLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_HIKNOENGINE_HIKNOENGINEEXPORT_H_
|
||||
#define ALIBABACLOUD_HIKNOENGINE_HIKNOENGINEEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_HIKNOENGINE_LIBRARY)
|
||||
# define ALIBABACLOUD_HIKNOENGINE_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_HIKNOENGINE_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_HIKNOENGINE_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_HIKNOENGINE_HIKNOENGINEEXPORT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HIKNOENGINE_MODEL_TRANSLATETEXTREQUEST_H_
|
||||
#define ALIBABACLOUD_HIKNOENGINE_MODEL_TRANSLATETEXTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hiknoengine/HiknoengineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hiknoengine
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HIKNOENGINE_EXPORT TranslateTextRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
TranslateTextRequest();
|
||||
~TranslateTextRequest();
|
||||
|
||||
std::string getFromLang()const;
|
||||
void setFromLang(const std::string& fromLang);
|
||||
std::string getToLang()const;
|
||||
void setToLang(const std::string& toLang);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
|
||||
private:
|
||||
std::string fromLang_;
|
||||
std::string toLang_;
|
||||
std::string text_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HIKNOENGINE_MODEL_TRANSLATETEXTREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HIKNOENGINE_MODEL_TRANSLATETEXTRESULT_H_
|
||||
#define ALIBABACLOUD_HIKNOENGINE_MODEL_TRANSLATETEXTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hiknoengine/HiknoengineExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hiknoengine
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HIKNOENGINE_EXPORT TranslateTextResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string text;
|
||||
};
|
||||
|
||||
|
||||
TranslateTextResult();
|
||||
explicit TranslateTextResult(const std::string &payload);
|
||||
~TranslateTextResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HIKNOENGINE_MODEL_TRANSLATETEXTRESULT_H_
|
||||
89
hiknoengine/src/HiknoengineClient.cc
Normal file
89
hiknoengine/src/HiknoengineClient.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/hiknoengine/HiknoengineClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Hiknoengine;
|
||||
using namespace AlibabaCloud::Hiknoengine::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "hiknoengine";
|
||||
}
|
||||
|
||||
HiknoengineClient::HiknoengineClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "hiknoengine");
|
||||
}
|
||||
|
||||
HiknoengineClient::HiknoengineClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "hiknoengine");
|
||||
}
|
||||
|
||||
HiknoengineClient::HiknoengineClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "hiknoengine");
|
||||
}
|
||||
|
||||
HiknoengineClient::~HiknoengineClient()
|
||||
{}
|
||||
|
||||
HiknoengineClient::TranslateTextOutcome HiknoengineClient::translateText(const TranslateTextRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TranslateTextOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TranslateTextOutcome(TranslateTextResult(outcome.result()));
|
||||
else
|
||||
return TranslateTextOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HiknoengineClient::translateTextAsync(const TranslateTextRequest& request, const TranslateTextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, translateText(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HiknoengineClient::TranslateTextOutcomeCallable HiknoengineClient::translateTextCallable(const TranslateTextRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TranslateTextOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->translateText(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
62
hiknoengine/src/model/TranslateTextRequest.cc
Normal file
62
hiknoengine/src/model/TranslateTextRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hiknoengine/model/TranslateTextRequest.h>
|
||||
|
||||
using AlibabaCloud::Hiknoengine::Model::TranslateTextRequest;
|
||||
|
||||
TranslateTextRequest::TranslateTextRequest() :
|
||||
RpcServiceRequest("hiknoengine", "2019-06-25", "TranslateText")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TranslateTextRequest::~TranslateTextRequest()
|
||||
{}
|
||||
|
||||
std::string TranslateTextRequest::getFromLang()const
|
||||
{
|
||||
return fromLang_;
|
||||
}
|
||||
|
||||
void TranslateTextRequest::setFromLang(const std::string& fromLang)
|
||||
{
|
||||
fromLang_ = fromLang;
|
||||
setCoreParameter("FromLang", fromLang);
|
||||
}
|
||||
|
||||
std::string TranslateTextRequest::getToLang()const
|
||||
{
|
||||
return toLang_;
|
||||
}
|
||||
|
||||
void TranslateTextRequest::setToLang(const std::string& toLang)
|
||||
{
|
||||
toLang_ = toLang;
|
||||
setCoreParameter("ToLang", toLang);
|
||||
}
|
||||
|
||||
std::string TranslateTextRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void TranslateTextRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setCoreParameter("Text", text);
|
||||
}
|
||||
|
||||
66
hiknoengine/src/model/TranslateTextResult.cc
Normal file
66
hiknoengine/src/model/TranslateTextResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hiknoengine/model/TranslateTextResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Hiknoengine;
|
||||
using namespace AlibabaCloud::Hiknoengine::Model;
|
||||
|
||||
TranslateTextResult::TranslateTextResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TranslateTextResult::TranslateTextResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TranslateTextResult::~TranslateTextResult()
|
||||
{}
|
||||
|
||||
void TranslateTextResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Text"].isNull())
|
||||
data_.text = dataNode["Text"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TranslateTextResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TranslateTextResult::Data TranslateTextResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string TranslateTextResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -153,6 +153,8 @@ 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
|
||||
@@ -300,6 +302,8 @@ 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,6 +154,8 @@
|
||||
#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"
|
||||
@@ -373,6 +375,9 @@ 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;
|
||||
@@ -594,6 +599,9 @@ 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,8 +37,6 @@ 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;
|
||||
@@ -50,7 +48,6 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string srcType_;
|
||||
int expires_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
bool useHTTPS_;
|
||||
|
||||
@@ -38,11 +38,19 @@ 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_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_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_
|
||||
@@ -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_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,6 +2427,42 @@ 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,17 +38,6 @@ 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,6 +41,14 @@ 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();
|
||||
|
||||
}
|
||||
|
||||
@@ -49,3 +57,23 @@ 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_;
|
||||
}
|
||||
|
||||
|
||||
73
imm/src/model/RefreshOfficePreviewTokenRequest.cc
Normal file
73
imm/src/model/RefreshOfficePreviewTokenRequest.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/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);
|
||||
}
|
||||
|
||||
72
imm/src/model/RefreshOfficePreviewTokenResult.cc
Normal file
72
imm/src/model/RefreshOfficePreviewTokenResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
@@ -163,6 +163,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeDBInstancesByPerformanceResult.h
|
||||
include/alibabacloud/rds/model/DescribeDBInstancesForCloneRequest.h
|
||||
include/alibabacloud/rds/model/DescribeDBInstancesForCloneResult.h
|
||||
include/alibabacloud/rds/model/DescribeDBInstancesOverviewRequest.h
|
||||
include/alibabacloud/rds/model/DescribeDBInstancesOverviewResult.h
|
||||
include/alibabacloud/rds/model/DescribeDBProxyRequest.h
|
||||
include/alibabacloud/rds/model/DescribeDBProxyResult.h
|
||||
include/alibabacloud/rds/model/DescribeDBProxyEndpointRequest.h
|
||||
@@ -203,6 +205,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeMigrateTasksForSQLServerResult.h
|
||||
include/alibabacloud/rds/model/DescribeModifyParameterLogRequest.h
|
||||
include/alibabacloud/rds/model/DescribeModifyParameterLogResult.h
|
||||
include/alibabacloud/rds/model/DescribeNextEventForSignRequest.h
|
||||
include/alibabacloud/rds/model/DescribeNextEventForSignResult.h
|
||||
include/alibabacloud/rds/model/DescribeOssDownloadsRequest.h
|
||||
include/alibabacloud/rds/model/DescribeOssDownloadsResult.h
|
||||
include/alibabacloud/rds/model/DescribeOssDownloadsForSQLServerRequest.h
|
||||
@@ -225,6 +229,10 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeRenewalPriceResult.h
|
||||
include/alibabacloud/rds/model/DescribeResourceUsageRequest.h
|
||||
include/alibabacloud/rds/model/DescribeResourceUsageResult.h
|
||||
include/alibabacloud/rds/model/DescribeSQLCollectorPolicyRequest.h
|
||||
include/alibabacloud/rds/model/DescribeSQLCollectorPolicyResult.h
|
||||
include/alibabacloud/rds/model/DescribeSQLCollectorRetentionRequest.h
|
||||
include/alibabacloud/rds/model/DescribeSQLCollectorRetentionResult.h
|
||||
include/alibabacloud/rds/model/DescribeSQLLogFilesRequest.h
|
||||
include/alibabacloud/rds/model/DescribeSQLLogFilesResult.h
|
||||
include/alibabacloud/rds/model/DescribeSQLLogRecordsRequest.h
|
||||
@@ -237,6 +245,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeSQLReportsResult.h
|
||||
include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationRequest.h
|
||||
include/alibabacloud/rds/model/DescribeSecurityGroupConfigurationResult.h
|
||||
include/alibabacloud/rds/model/DescribeSignedEventActionsRequest.h
|
||||
include/alibabacloud/rds/model/DescribeSignedEventActionsResult.h
|
||||
include/alibabacloud/rds/model/DescribeSlowLogRecordsRequest.h
|
||||
include/alibabacloud/rds/model/DescribeSlowLogRecordsResult.h
|
||||
include/alibabacloud/rds/model/DescribeSlowLogsRequest.h
|
||||
@@ -269,6 +279,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/ModifyAccountDescriptionResult.h
|
||||
include/alibabacloud/rds/model/ModifyActionEventPolicyRequest.h
|
||||
include/alibabacloud/rds/model/ModifyActionEventPolicyResult.h
|
||||
include/alibabacloud/rds/model/ModifyActionEventVerifyPolicyRequest.h
|
||||
include/alibabacloud/rds/model/ModifyActionEventVerifyPolicyResult.h
|
||||
include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h
|
||||
include/alibabacloud/rds/model/ModifyBackupPolicyResult.h
|
||||
include/alibabacloud/rds/model/ModifyCollationTimeZoneRequest.h
|
||||
@@ -335,6 +347,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/ModifyResourceGroupResult.h
|
||||
include/alibabacloud/rds/model/ModifySQLCollectorPolicyRequest.h
|
||||
include/alibabacloud/rds/model/ModifySQLCollectorPolicyResult.h
|
||||
include/alibabacloud/rds/model/ModifySQLCollectorRetentionRequest.h
|
||||
include/alibabacloud/rds/model/ModifySQLCollectorRetentionResult.h
|
||||
include/alibabacloud/rds/model/ModifySecurityGroupConfigurationRequest.h
|
||||
include/alibabacloud/rds/model/ModifySecurityGroupConfigurationResult.h
|
||||
include/alibabacloud/rds/model/ModifySecurityIpsRequest.h
|
||||
@@ -375,6 +389,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/RevokeAccountPrivilegeResult.h
|
||||
include/alibabacloud/rds/model/RevokeOperatorPermissionRequest.h
|
||||
include/alibabacloud/rds/model/RevokeOperatorPermissionResult.h
|
||||
include/alibabacloud/rds/model/SignEventActionRequest.h
|
||||
include/alibabacloud/rds/model/SignEventActionResult.h
|
||||
include/alibabacloud/rds/model/SwitchDBInstanceHARequest.h
|
||||
include/alibabacloud/rds/model/SwitchDBInstanceHAResult.h
|
||||
include/alibabacloud/rds/model/SwitchDBInstanceNetTypeRequest.h
|
||||
@@ -536,6 +552,8 @@ set(rds_src
|
||||
src/model/DescribeDBInstancesByPerformanceResult.cc
|
||||
src/model/DescribeDBInstancesForCloneRequest.cc
|
||||
src/model/DescribeDBInstancesForCloneResult.cc
|
||||
src/model/DescribeDBInstancesOverviewRequest.cc
|
||||
src/model/DescribeDBInstancesOverviewResult.cc
|
||||
src/model/DescribeDBProxyRequest.cc
|
||||
src/model/DescribeDBProxyResult.cc
|
||||
src/model/DescribeDBProxyEndpointRequest.cc
|
||||
@@ -576,6 +594,8 @@ set(rds_src
|
||||
src/model/DescribeMigrateTasksForSQLServerResult.cc
|
||||
src/model/DescribeModifyParameterLogRequest.cc
|
||||
src/model/DescribeModifyParameterLogResult.cc
|
||||
src/model/DescribeNextEventForSignRequest.cc
|
||||
src/model/DescribeNextEventForSignResult.cc
|
||||
src/model/DescribeOssDownloadsRequest.cc
|
||||
src/model/DescribeOssDownloadsResult.cc
|
||||
src/model/DescribeOssDownloadsForSQLServerRequest.cc
|
||||
@@ -598,6 +618,10 @@ set(rds_src
|
||||
src/model/DescribeRenewalPriceResult.cc
|
||||
src/model/DescribeResourceUsageRequest.cc
|
||||
src/model/DescribeResourceUsageResult.cc
|
||||
src/model/DescribeSQLCollectorPolicyRequest.cc
|
||||
src/model/DescribeSQLCollectorPolicyResult.cc
|
||||
src/model/DescribeSQLCollectorRetentionRequest.cc
|
||||
src/model/DescribeSQLCollectorRetentionResult.cc
|
||||
src/model/DescribeSQLLogFilesRequest.cc
|
||||
src/model/DescribeSQLLogFilesResult.cc
|
||||
src/model/DescribeSQLLogRecordsRequest.cc
|
||||
@@ -610,6 +634,8 @@ set(rds_src
|
||||
src/model/DescribeSQLReportsResult.cc
|
||||
src/model/DescribeSecurityGroupConfigurationRequest.cc
|
||||
src/model/DescribeSecurityGroupConfigurationResult.cc
|
||||
src/model/DescribeSignedEventActionsRequest.cc
|
||||
src/model/DescribeSignedEventActionsResult.cc
|
||||
src/model/DescribeSlowLogRecordsRequest.cc
|
||||
src/model/DescribeSlowLogRecordsResult.cc
|
||||
src/model/DescribeSlowLogsRequest.cc
|
||||
@@ -642,6 +668,8 @@ set(rds_src
|
||||
src/model/ModifyAccountDescriptionResult.cc
|
||||
src/model/ModifyActionEventPolicyRequest.cc
|
||||
src/model/ModifyActionEventPolicyResult.cc
|
||||
src/model/ModifyActionEventVerifyPolicyRequest.cc
|
||||
src/model/ModifyActionEventVerifyPolicyResult.cc
|
||||
src/model/ModifyBackupPolicyRequest.cc
|
||||
src/model/ModifyBackupPolicyResult.cc
|
||||
src/model/ModifyCollationTimeZoneRequest.cc
|
||||
@@ -708,6 +736,8 @@ set(rds_src
|
||||
src/model/ModifyResourceGroupResult.cc
|
||||
src/model/ModifySQLCollectorPolicyRequest.cc
|
||||
src/model/ModifySQLCollectorPolicyResult.cc
|
||||
src/model/ModifySQLCollectorRetentionRequest.cc
|
||||
src/model/ModifySQLCollectorRetentionResult.cc
|
||||
src/model/ModifySecurityGroupConfigurationRequest.cc
|
||||
src/model/ModifySecurityGroupConfigurationResult.cc
|
||||
src/model/ModifySecurityIpsRequest.cc
|
||||
@@ -748,6 +778,8 @@ set(rds_src
|
||||
src/model/RevokeAccountPrivilegeResult.cc
|
||||
src/model/RevokeOperatorPermissionRequest.cc
|
||||
src/model/RevokeOperatorPermissionResult.cc
|
||||
src/model/SignEventActionRequest.cc
|
||||
src/model/SignEventActionResult.cc
|
||||
src/model/SwitchDBInstanceHARequest.cc
|
||||
src/model/SwitchDBInstanceHAResult.cc
|
||||
src/model/SwitchDBInstanceNetTypeRequest.cc
|
||||
|
||||
@@ -164,6 +164,8 @@
|
||||
#include "model/DescribeDBInstancesByPerformanceResult.h"
|
||||
#include "model/DescribeDBInstancesForCloneRequest.h"
|
||||
#include "model/DescribeDBInstancesForCloneResult.h"
|
||||
#include "model/DescribeDBInstancesOverviewRequest.h"
|
||||
#include "model/DescribeDBInstancesOverviewResult.h"
|
||||
#include "model/DescribeDBProxyRequest.h"
|
||||
#include "model/DescribeDBProxyResult.h"
|
||||
#include "model/DescribeDBProxyEndpointRequest.h"
|
||||
@@ -204,6 +206,8 @@
|
||||
#include "model/DescribeMigrateTasksForSQLServerResult.h"
|
||||
#include "model/DescribeModifyParameterLogRequest.h"
|
||||
#include "model/DescribeModifyParameterLogResult.h"
|
||||
#include "model/DescribeNextEventForSignRequest.h"
|
||||
#include "model/DescribeNextEventForSignResult.h"
|
||||
#include "model/DescribeOssDownloadsRequest.h"
|
||||
#include "model/DescribeOssDownloadsResult.h"
|
||||
#include "model/DescribeOssDownloadsForSQLServerRequest.h"
|
||||
@@ -226,6 +230,10 @@
|
||||
#include "model/DescribeRenewalPriceResult.h"
|
||||
#include "model/DescribeResourceUsageRequest.h"
|
||||
#include "model/DescribeResourceUsageResult.h"
|
||||
#include "model/DescribeSQLCollectorPolicyRequest.h"
|
||||
#include "model/DescribeSQLCollectorPolicyResult.h"
|
||||
#include "model/DescribeSQLCollectorRetentionRequest.h"
|
||||
#include "model/DescribeSQLCollectorRetentionResult.h"
|
||||
#include "model/DescribeSQLLogFilesRequest.h"
|
||||
#include "model/DescribeSQLLogFilesResult.h"
|
||||
#include "model/DescribeSQLLogRecordsRequest.h"
|
||||
@@ -238,6 +246,8 @@
|
||||
#include "model/DescribeSQLReportsResult.h"
|
||||
#include "model/DescribeSecurityGroupConfigurationRequest.h"
|
||||
#include "model/DescribeSecurityGroupConfigurationResult.h"
|
||||
#include "model/DescribeSignedEventActionsRequest.h"
|
||||
#include "model/DescribeSignedEventActionsResult.h"
|
||||
#include "model/DescribeSlowLogRecordsRequest.h"
|
||||
#include "model/DescribeSlowLogRecordsResult.h"
|
||||
#include "model/DescribeSlowLogsRequest.h"
|
||||
@@ -270,6 +280,8 @@
|
||||
#include "model/ModifyAccountDescriptionResult.h"
|
||||
#include "model/ModifyActionEventPolicyRequest.h"
|
||||
#include "model/ModifyActionEventPolicyResult.h"
|
||||
#include "model/ModifyActionEventVerifyPolicyRequest.h"
|
||||
#include "model/ModifyActionEventVerifyPolicyResult.h"
|
||||
#include "model/ModifyBackupPolicyRequest.h"
|
||||
#include "model/ModifyBackupPolicyResult.h"
|
||||
#include "model/ModifyCollationTimeZoneRequest.h"
|
||||
@@ -336,6 +348,8 @@
|
||||
#include "model/ModifyResourceGroupResult.h"
|
||||
#include "model/ModifySQLCollectorPolicyRequest.h"
|
||||
#include "model/ModifySQLCollectorPolicyResult.h"
|
||||
#include "model/ModifySQLCollectorRetentionRequest.h"
|
||||
#include "model/ModifySQLCollectorRetentionResult.h"
|
||||
#include "model/ModifySecurityGroupConfigurationRequest.h"
|
||||
#include "model/ModifySecurityGroupConfigurationResult.h"
|
||||
#include "model/ModifySecurityIpsRequest.h"
|
||||
@@ -376,6 +390,8 @@
|
||||
#include "model/RevokeAccountPrivilegeResult.h"
|
||||
#include "model/RevokeOperatorPermissionRequest.h"
|
||||
#include "model/RevokeOperatorPermissionResult.h"
|
||||
#include "model/SignEventActionRequest.h"
|
||||
#include "model/SignEventActionResult.h"
|
||||
#include "model/SwitchDBInstanceHARequest.h"
|
||||
#include "model/SwitchDBInstanceHAResult.h"
|
||||
#include "model/SwitchDBInstanceNetTypeRequest.h"
|
||||
@@ -614,6 +630,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDBInstancesForCloneResult> DescribeDBInstancesForCloneOutcome;
|
||||
typedef std::future<DescribeDBInstancesForCloneOutcome> DescribeDBInstancesForCloneOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeDBInstancesForCloneRequest&, const DescribeDBInstancesForCloneOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBInstancesForCloneAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBInstancesOverviewResult> DescribeDBInstancesOverviewOutcome;
|
||||
typedef std::future<DescribeDBInstancesOverviewOutcome> DescribeDBInstancesOverviewOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeDBInstancesOverviewRequest&, const DescribeDBInstancesOverviewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBInstancesOverviewAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBProxyResult> DescribeDBProxyOutcome;
|
||||
typedef std::future<DescribeDBProxyOutcome> DescribeDBProxyOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeDBProxyRequest&, const DescribeDBProxyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBProxyAsyncHandler;
|
||||
@@ -674,6 +693,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeModifyParameterLogResult> DescribeModifyParameterLogOutcome;
|
||||
typedef std::future<DescribeModifyParameterLogOutcome> DescribeModifyParameterLogOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeModifyParameterLogRequest&, const DescribeModifyParameterLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeModifyParameterLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeNextEventForSignResult> DescribeNextEventForSignOutcome;
|
||||
typedef std::future<DescribeNextEventForSignOutcome> DescribeNextEventForSignOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeNextEventForSignRequest&, const DescribeNextEventForSignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNextEventForSignAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeOssDownloadsResult> DescribeOssDownloadsOutcome;
|
||||
typedef std::future<DescribeOssDownloadsOutcome> DescribeOssDownloadsOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeOssDownloadsRequest&, const DescribeOssDownloadsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOssDownloadsAsyncHandler;
|
||||
@@ -707,6 +729,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeResourceUsageResult> DescribeResourceUsageOutcome;
|
||||
typedef std::future<DescribeResourceUsageOutcome> DescribeResourceUsageOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeResourceUsageRequest&, const DescribeResourceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeResourceUsageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLCollectorPolicyResult> DescribeSQLCollectorPolicyOutcome;
|
||||
typedef std::future<DescribeSQLCollectorPolicyOutcome> DescribeSQLCollectorPolicyOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeSQLCollectorPolicyRequest&, const DescribeSQLCollectorPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLCollectorPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLCollectorRetentionResult> DescribeSQLCollectorRetentionOutcome;
|
||||
typedef std::future<DescribeSQLCollectorRetentionOutcome> DescribeSQLCollectorRetentionOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeSQLCollectorRetentionRequest&, const DescribeSQLCollectorRetentionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLCollectorRetentionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLLogFilesResult> DescribeSQLLogFilesOutcome;
|
||||
typedef std::future<DescribeSQLLogFilesOutcome> DescribeSQLLogFilesOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeSQLLogFilesRequest&, const DescribeSQLLogFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLLogFilesAsyncHandler;
|
||||
@@ -725,6 +753,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSecurityGroupConfigurationResult> DescribeSecurityGroupConfigurationOutcome;
|
||||
typedef std::future<DescribeSecurityGroupConfigurationOutcome> DescribeSecurityGroupConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeSecurityGroupConfigurationRequest&, const DescribeSecurityGroupConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSecurityGroupConfigurationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSignedEventActionsResult> DescribeSignedEventActionsOutcome;
|
||||
typedef std::future<DescribeSignedEventActionsOutcome> DescribeSignedEventActionsOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeSignedEventActionsRequest&, const DescribeSignedEventActionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSignedEventActionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSlowLogRecordsResult> DescribeSlowLogRecordsOutcome;
|
||||
typedef std::future<DescribeSlowLogRecordsOutcome> DescribeSlowLogRecordsOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeSlowLogRecordsRequest&, const DescribeSlowLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogRecordsAsyncHandler;
|
||||
@@ -773,6 +804,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyActionEventPolicyResult> ModifyActionEventPolicyOutcome;
|
||||
typedef std::future<ModifyActionEventPolicyOutcome> ModifyActionEventPolicyOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyActionEventPolicyRequest&, const ModifyActionEventPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyActionEventPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyActionEventVerifyPolicyResult> ModifyActionEventVerifyPolicyOutcome;
|
||||
typedef std::future<ModifyActionEventVerifyPolicyOutcome> ModifyActionEventVerifyPolicyOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyActionEventVerifyPolicyRequest&, const ModifyActionEventVerifyPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyActionEventVerifyPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyBackupPolicyResult> ModifyBackupPolicyOutcome;
|
||||
typedef std::future<ModifyBackupPolicyOutcome> ModifyBackupPolicyOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyBackupPolicyRequest&, const ModifyBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupPolicyAsyncHandler;
|
||||
@@ -872,6 +906,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifySQLCollectorPolicyResult> ModifySQLCollectorPolicyOutcome;
|
||||
typedef std::future<ModifySQLCollectorPolicyOutcome> ModifySQLCollectorPolicyOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifySQLCollectorPolicyRequest&, const ModifySQLCollectorPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySQLCollectorPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySQLCollectorRetentionResult> ModifySQLCollectorRetentionOutcome;
|
||||
typedef std::future<ModifySQLCollectorRetentionOutcome> ModifySQLCollectorRetentionOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifySQLCollectorRetentionRequest&, const ModifySQLCollectorRetentionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySQLCollectorRetentionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifySecurityGroupConfigurationResult> ModifySecurityGroupConfigurationOutcome;
|
||||
typedef std::future<ModifySecurityGroupConfigurationOutcome> ModifySecurityGroupConfigurationOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifySecurityGroupConfigurationRequest&, const ModifySecurityGroupConfigurationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySecurityGroupConfigurationAsyncHandler;
|
||||
@@ -932,6 +969,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RevokeOperatorPermissionResult> RevokeOperatorPermissionOutcome;
|
||||
typedef std::future<RevokeOperatorPermissionOutcome> RevokeOperatorPermissionOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::RevokeOperatorPermissionRequest&, const RevokeOperatorPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeOperatorPermissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::SignEventActionResult> SignEventActionOutcome;
|
||||
typedef std::future<SignEventActionOutcome> SignEventActionOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::SignEventActionRequest&, const SignEventActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SignEventActionAsyncHandler;
|
||||
typedef Outcome<Error, Model::SwitchDBInstanceHAResult> SwitchDBInstanceHAOutcome;
|
||||
typedef std::future<SwitchDBInstanceHAOutcome> SwitchDBInstanceHAOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::SwitchDBInstanceHARequest&, const SwitchDBInstanceHAOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SwitchDBInstanceHAAsyncHandler;
|
||||
@@ -1174,6 +1214,9 @@ namespace AlibabaCloud
|
||||
DescribeDBInstancesForCloneOutcome describeDBInstancesForClone(const Model::DescribeDBInstancesForCloneRequest &request)const;
|
||||
void describeDBInstancesForCloneAsync(const Model::DescribeDBInstancesForCloneRequest& request, const DescribeDBInstancesForCloneAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBInstancesForCloneOutcomeCallable describeDBInstancesForCloneCallable(const Model::DescribeDBInstancesForCloneRequest& request) const;
|
||||
DescribeDBInstancesOverviewOutcome describeDBInstancesOverview(const Model::DescribeDBInstancesOverviewRequest &request)const;
|
||||
void describeDBInstancesOverviewAsync(const Model::DescribeDBInstancesOverviewRequest& request, const DescribeDBInstancesOverviewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBInstancesOverviewOutcomeCallable describeDBInstancesOverviewCallable(const Model::DescribeDBInstancesOverviewRequest& request) const;
|
||||
DescribeDBProxyOutcome describeDBProxy(const Model::DescribeDBProxyRequest &request)const;
|
||||
void describeDBProxyAsync(const Model::DescribeDBProxyRequest& request, const DescribeDBProxyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBProxyOutcomeCallable describeDBProxyCallable(const Model::DescribeDBProxyRequest& request) const;
|
||||
@@ -1234,6 +1277,9 @@ namespace AlibabaCloud
|
||||
DescribeModifyParameterLogOutcome describeModifyParameterLog(const Model::DescribeModifyParameterLogRequest &request)const;
|
||||
void describeModifyParameterLogAsync(const Model::DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeModifyParameterLogOutcomeCallable describeModifyParameterLogCallable(const Model::DescribeModifyParameterLogRequest& request) const;
|
||||
DescribeNextEventForSignOutcome describeNextEventForSign(const Model::DescribeNextEventForSignRequest &request)const;
|
||||
void describeNextEventForSignAsync(const Model::DescribeNextEventForSignRequest& request, const DescribeNextEventForSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNextEventForSignOutcomeCallable describeNextEventForSignCallable(const Model::DescribeNextEventForSignRequest& request) const;
|
||||
DescribeOssDownloadsOutcome describeOssDownloads(const Model::DescribeOssDownloadsRequest &request)const;
|
||||
void describeOssDownloadsAsync(const Model::DescribeOssDownloadsRequest& request, const DescribeOssDownloadsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeOssDownloadsOutcomeCallable describeOssDownloadsCallable(const Model::DescribeOssDownloadsRequest& request) const;
|
||||
@@ -1267,6 +1313,12 @@ namespace AlibabaCloud
|
||||
DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const;
|
||||
void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeResourceUsageOutcomeCallable describeResourceUsageCallable(const Model::DescribeResourceUsageRequest& request) const;
|
||||
DescribeSQLCollectorPolicyOutcome describeSQLCollectorPolicy(const Model::DescribeSQLCollectorPolicyRequest &request)const;
|
||||
void describeSQLCollectorPolicyAsync(const Model::DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLCollectorPolicyOutcomeCallable describeSQLCollectorPolicyCallable(const Model::DescribeSQLCollectorPolicyRequest& request) const;
|
||||
DescribeSQLCollectorRetentionOutcome describeSQLCollectorRetention(const Model::DescribeSQLCollectorRetentionRequest &request)const;
|
||||
void describeSQLCollectorRetentionAsync(const Model::DescribeSQLCollectorRetentionRequest& request, const DescribeSQLCollectorRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLCollectorRetentionOutcomeCallable describeSQLCollectorRetentionCallable(const Model::DescribeSQLCollectorRetentionRequest& request) const;
|
||||
DescribeSQLLogFilesOutcome describeSQLLogFiles(const Model::DescribeSQLLogFilesRequest &request)const;
|
||||
void describeSQLLogFilesAsync(const Model::DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLLogFilesOutcomeCallable describeSQLLogFilesCallable(const Model::DescribeSQLLogFilesRequest& request) const;
|
||||
@@ -1285,6 +1337,9 @@ namespace AlibabaCloud
|
||||
DescribeSecurityGroupConfigurationOutcome describeSecurityGroupConfiguration(const Model::DescribeSecurityGroupConfigurationRequest &request)const;
|
||||
void describeSecurityGroupConfigurationAsync(const Model::DescribeSecurityGroupConfigurationRequest& request, const DescribeSecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSecurityGroupConfigurationOutcomeCallable describeSecurityGroupConfigurationCallable(const Model::DescribeSecurityGroupConfigurationRequest& request) const;
|
||||
DescribeSignedEventActionsOutcome describeSignedEventActions(const Model::DescribeSignedEventActionsRequest &request)const;
|
||||
void describeSignedEventActionsAsync(const Model::DescribeSignedEventActionsRequest& request, const DescribeSignedEventActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSignedEventActionsOutcomeCallable describeSignedEventActionsCallable(const Model::DescribeSignedEventActionsRequest& request) const;
|
||||
DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const;
|
||||
void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const;
|
||||
@@ -1333,6 +1388,9 @@ namespace AlibabaCloud
|
||||
ModifyActionEventPolicyOutcome modifyActionEventPolicy(const Model::ModifyActionEventPolicyRequest &request)const;
|
||||
void modifyActionEventPolicyAsync(const Model::ModifyActionEventPolicyRequest& request, const ModifyActionEventPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyActionEventPolicyOutcomeCallable modifyActionEventPolicyCallable(const Model::ModifyActionEventPolicyRequest& request) const;
|
||||
ModifyActionEventVerifyPolicyOutcome modifyActionEventVerifyPolicy(const Model::ModifyActionEventVerifyPolicyRequest &request)const;
|
||||
void modifyActionEventVerifyPolicyAsync(const Model::ModifyActionEventVerifyPolicyRequest& request, const ModifyActionEventVerifyPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyActionEventVerifyPolicyOutcomeCallable modifyActionEventVerifyPolicyCallable(const Model::ModifyActionEventVerifyPolicyRequest& request) const;
|
||||
ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const;
|
||||
void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const;
|
||||
@@ -1432,6 +1490,9 @@ namespace AlibabaCloud
|
||||
ModifySQLCollectorPolicyOutcome modifySQLCollectorPolicy(const Model::ModifySQLCollectorPolicyRequest &request)const;
|
||||
void modifySQLCollectorPolicyAsync(const Model::ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySQLCollectorPolicyOutcomeCallable modifySQLCollectorPolicyCallable(const Model::ModifySQLCollectorPolicyRequest& request) const;
|
||||
ModifySQLCollectorRetentionOutcome modifySQLCollectorRetention(const Model::ModifySQLCollectorRetentionRequest &request)const;
|
||||
void modifySQLCollectorRetentionAsync(const Model::ModifySQLCollectorRetentionRequest& request, const ModifySQLCollectorRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySQLCollectorRetentionOutcomeCallable modifySQLCollectorRetentionCallable(const Model::ModifySQLCollectorRetentionRequest& request) const;
|
||||
ModifySecurityGroupConfigurationOutcome modifySecurityGroupConfiguration(const Model::ModifySecurityGroupConfigurationRequest &request)const;
|
||||
void modifySecurityGroupConfigurationAsync(const Model::ModifySecurityGroupConfigurationRequest& request, const ModifySecurityGroupConfigurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySecurityGroupConfigurationOutcomeCallable modifySecurityGroupConfigurationCallable(const Model::ModifySecurityGroupConfigurationRequest& request) const;
|
||||
@@ -1492,6 +1553,9 @@ namespace AlibabaCloud
|
||||
RevokeOperatorPermissionOutcome revokeOperatorPermission(const Model::RevokeOperatorPermissionRequest &request)const;
|
||||
void revokeOperatorPermissionAsync(const Model::RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeOperatorPermissionOutcomeCallable revokeOperatorPermissionCallable(const Model::RevokeOperatorPermissionRequest& request) const;
|
||||
SignEventActionOutcome signEventAction(const Model::SignEventActionRequest &request)const;
|
||||
void signEventActionAsync(const Model::SignEventActionRequest& request, const SignEventActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SignEventActionOutcomeCallable signEventActionCallable(const Model::SignEventActionRequest& request) const;
|
||||
SwitchDBInstanceHAOutcome switchDBInstanceHA(const Model::SwitchDBInstanceHARequest &request)const;
|
||||
void switchDBInstanceHAAsync(const Model::SwitchDBInstanceHARequest& request, const SwitchDBInstanceHAAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SwitchDBInstanceHAOutcomeCallable switchDBInstanceHACallable(const Model::SwitchDBInstanceHARequest& request) const;
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
bool getUseNullWhenMissingPoint()const;
|
||||
void setUseNullWhenMissingPoint(bool useNullWhenMissingPoint);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -64,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
bool useNullWhenMissingPoint_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ namespace AlibabaCloud
|
||||
void setEngine(const std::string& engine);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getCurrentInstanceId()const;
|
||||
void setCurrentInstanceId(const std::string& currentInstanceId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDBInstanceStatus()const;
|
||||
@@ -98,6 +100,7 @@ namespace AlibabaCloud
|
||||
std::string expired_;
|
||||
std::string engine_;
|
||||
std::string regionId_;
|
||||
std::string currentInstanceId_;
|
||||
int pageSize_;
|
||||
std::string dBInstanceStatus_;
|
||||
std::string dBInstanceId_;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesOverviewRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDBInstancesOverviewRequest();
|
||||
~DescribeDBInstancesOverviewRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getExpired()const;
|
||||
void setExpired(const std::string& expired);
|
||||
std::string getEngine()const;
|
||||
void setEngine(const std::string& engine);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getProxyId()const;
|
||||
void setProxyId(const std::string& proxyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string expired_;
|
||||
std::string engine_;
|
||||
std::string regionId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string proxyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string zoneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeDBInstancesOverviewResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RegionModel
|
||||
{
|
||||
struct TypeModel
|
||||
{
|
||||
struct InstanceModel
|
||||
{
|
||||
std::string createdTime;
|
||||
std::string zoneId;
|
||||
std::string dBInstanceStatus;
|
||||
std::string dBInstanceId;
|
||||
std::string region;
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string expireTime;
|
||||
std::string engine;
|
||||
};
|
||||
std::vector<TypeModel::InstanceModel> instanceModels;
|
||||
int count;
|
||||
std::string instanceDateType;
|
||||
};
|
||||
int totalCount;
|
||||
std::string region;
|
||||
std::vector<RegionModel::TypeModel> typeModels;
|
||||
std::string engineCount;
|
||||
};
|
||||
|
||||
|
||||
DescribeDBInstancesOverviewResult();
|
||||
explicit DescribeDBInstancesOverviewResult(const std::string &payload);
|
||||
~DescribeDBInstancesOverviewResult();
|
||||
std::vector<RegionModel> getRegions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RegionModel> regions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEDBINSTANCESOVERVIEWRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBENEXTEVENTFORSIGNREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBENEXTEVENTFORSIGNREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeNextEventForSignRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeNextEventForSignRequest();
|
||||
~DescribeNextEventForSignRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBENEXTEVENTFORSIGNREQUEST_H_
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_DESCRIBENEXTEVENTFORSIGNRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBENEXTEVENTFORSIGNRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeNextEventForSignResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct EventItemsItem
|
||||
{
|
||||
int eventId;
|
||||
std::string eventContent;
|
||||
};
|
||||
|
||||
|
||||
DescribeNextEventForSignResult();
|
||||
explicit DescribeNextEventForSignResult(const std::string &payload);
|
||||
~DescribeNextEventForSignResult();
|
||||
std::vector<EventItemsItem> getEventItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<EventItemsItem> eventItems_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBENEXTEVENTFORSIGNRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeSQLCollectorPolicyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeSQLCollectorPolicyRequest();
|
||||
~DescribeSQLCollectorPolicyRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string clientToken_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string dBInstanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeSQLCollectorPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeSQLCollectorPolicyResult();
|
||||
explicit DescribeSQLCollectorPolicyResult(const std::string &payload);
|
||||
~DescribeSQLCollectorPolicyResult();
|
||||
int getStoragePeriod()const;
|
||||
std::string getSQLCollectorStatus()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int storagePeriod_;
|
||||
std::string sQLCollectorStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORRETENTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORRETENTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeSQLCollectorRetentionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeSQLCollectorRetentionRequest();
|
||||
~DescribeSQLCollectorRetentionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORRETENTIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_DESCRIBESQLCOLLECTORRETENTIONRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORRETENTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeSQLCollectorRetentionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeSQLCollectorRetentionResult();
|
||||
explicit DescribeSQLCollectorRetentionResult(const std::string &payload);
|
||||
~DescribeSQLCollectorRetentionResult();
|
||||
std::string getConfigValue()const;
|
||||
int getDBInstanceID()const;
|
||||
std::string getDBInstanceName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string configValue_;
|
||||
int dBInstanceID_;
|
||||
std::string dBInstanceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESQLCOLLECTORRETENTIONRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESIGNEDEVENTACTIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBESIGNEDEVENTACTIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeSignedEventActionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeSignedEventActionsRequest();
|
||||
~DescribeSignedEventActionsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getBeginEventId()const;
|
||||
void setBeginEventId(int beginEventId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int beginEventId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESIGNEDEVENTACTIONSREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBESIGNEDEVENTACTIONSRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBESIGNEDEVENTACTIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeSignedEventActionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct EventItemsItem
|
||||
{
|
||||
int eventId;
|
||||
std::string eventContent;
|
||||
std::string eventSig;
|
||||
std::string eventRcpt;
|
||||
};
|
||||
|
||||
|
||||
DescribeSignedEventActionsResult();
|
||||
explicit DescribeSignedEventActionsResult(const std::string &payload);
|
||||
~DescribeSignedEventActionsResult();
|
||||
std::vector<EventItemsItem> getEventItems()const;
|
||||
int getPageRecordCount()const;
|
||||
bool getToEnd()const;
|
||||
bool getFromBegin()const;
|
||||
int getNextPageEventId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<EventItemsItem> eventItems_;
|
||||
int pageRecordCount_;
|
||||
bool toEnd_;
|
||||
bool fromBegin_;
|
||||
int nextPageEventId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBESIGNEDEVENTACTIONSRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACTIONEVENTVERIFYPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYACTIONEVENTVERIFYPOLICYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifyActionEventVerifyPolicyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyActionEventVerifyPolicyRequest();
|
||||
~ModifyActionEventVerifyPolicyRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getUserPublicKey()const;
|
||||
void setUserPublicKey(const std::string& userPublicKey);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string userPublicKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYACTIONEVENTVERIFYPOLICYREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYACTIONEVENTVERIFYPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYACTIONEVENTVERIFYPOLICYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifyActionEventVerifyPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyActionEventVerifyPolicyResult();
|
||||
explicit ModifyActionEventVerifyPolicyResult(const std::string &payload);
|
||||
~ModifyActionEventVerifyPolicyResult();
|
||||
std::string getRegionId()const;
|
||||
std::string getServerPublicKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string serverPublicKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYACTIONEVENTVERIFYPOLICYRESULT_H_
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getDBInstanceStorageType()const;
|
||||
void setDBInstanceStorageType(const std::string& dBInstanceStorageType);
|
||||
std::string getSourceBiz()const;
|
||||
void setSourceBiz(const std::string& sourceBiz);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -73,6 +75,7 @@ namespace AlibabaCloud
|
||||
std::string effectiveTime_;
|
||||
std::string dBInstanceId_;
|
||||
std::string dBInstanceStorageType_;
|
||||
std::string sourceBiz_;
|
||||
std::string direction_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_MODIFYSQLCOLLECTORRETENTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORRETENTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorRetentionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifySQLCollectorRetentionRequest();
|
||||
~ModifySQLCollectorRetentionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getConfigValue()const;
|
||||
void setConfigValue(const std::string& configValue);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string configValue_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORRETENTIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_RDS_MODEL_MODIFYSQLCOLLECTORRETENTIONRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORRETENTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifySQLCollectorRetentionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifySQLCollectorRetentionResult();
|
||||
explicit ModifySQLCollectorRetentionResult(const std::string &payload);
|
||||
~ModifySQLCollectorRetentionResult();
|
||||
int getTaskId()const;
|
||||
int getDBInstanceID()const;
|
||||
std::string getDBInstanceName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int taskId_;
|
||||
int dBInstanceID_;
|
||||
std::string dBInstanceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYSQLCOLLECTORRETENTIONRESULT_H_
|
||||
66
rds/include/alibabacloud/rds/model/SignEventActionRequest.h
Normal file
66
rds/include/alibabacloud/rds/model/SignEventActionRequest.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_SIGNEVENTACTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_SIGNEVENTACTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT SignEventActionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SignEventActionRequest();
|
||||
~SignEventActionRequest();
|
||||
|
||||
int getEventId()const;
|
||||
void setEventId(int eventId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getEventSig()const;
|
||||
void setEventSig(const std::string& eventSig);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
int eventId_;
|
||||
long resourceOwnerId_;
|
||||
std::string eventSig_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_SIGNEVENTACTIONREQUEST_H_
|
||||
53
rds/include/alibabacloud/rds/model/SignEventActionResult.h
Normal file
53
rds/include/alibabacloud/rds/model/SignEventActionResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_SIGNEVENTACTIONRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_SIGNEVENTACTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT SignEventActionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SignEventActionResult();
|
||||
explicit SignEventActionResult(const std::string &payload);
|
||||
~SignEventActionResult();
|
||||
std::string getEventId()const;
|
||||
std::string getEventRcpt()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string eventId_;
|
||||
std::string eventRcpt_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_SIGNEVENTACTIONRESULT_H_
|
||||
@@ -2607,6 +2607,42 @@ RdsClient::DescribeDBInstancesForCloneOutcomeCallable RdsClient::describeDBInsta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBInstancesOverviewOutcome RdsClient::describeDBInstancesOverview(const DescribeDBInstancesOverviewRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBInstancesOverviewOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBInstancesOverviewOutcome(DescribeDBInstancesOverviewResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBInstancesOverviewOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBInstancesOverviewAsync(const DescribeDBInstancesOverviewRequest& request, const DescribeDBInstancesOverviewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBInstancesOverview(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBInstancesOverviewOutcomeCallable RdsClient::describeDBInstancesOverviewCallable(const DescribeDBInstancesOverviewRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBInstancesOverviewOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBInstancesOverview(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyOutcome RdsClient::describeDBProxy(const DescribeDBProxyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3327,6 +3363,42 @@ RdsClient::DescribeModifyParameterLogOutcomeCallable RdsClient::describeModifyPa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeNextEventForSignOutcome RdsClient::describeNextEventForSign(const DescribeNextEventForSignRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeNextEventForSignOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeNextEventForSignOutcome(DescribeNextEventForSignResult(outcome.result()));
|
||||
else
|
||||
return DescribeNextEventForSignOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeNextEventForSignAsync(const DescribeNextEventForSignRequest& request, const DescribeNextEventForSignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeNextEventForSign(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeNextEventForSignOutcomeCallable RdsClient::describeNextEventForSignCallable(const DescribeNextEventForSignRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeNextEventForSignOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeNextEventForSign(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeOssDownloadsOutcome RdsClient::describeOssDownloads(const DescribeOssDownloadsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3723,6 +3795,78 @@ RdsClient::DescribeResourceUsageOutcomeCallable RdsClient::describeResourceUsage
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorPolicyOutcome RdsClient::describeSQLCollectorPolicy(const DescribeSQLCollectorPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLCollectorPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLCollectorPolicyOutcome(DescribeSQLCollectorPolicyResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLCollectorPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeSQLCollectorPolicyAsync(const DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLCollectorPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorPolicyOutcomeCallable RdsClient::describeSQLCollectorPolicyCallable(const DescribeSQLCollectorPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLCollectorPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLCollectorPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorRetentionOutcome RdsClient::describeSQLCollectorRetention(const DescribeSQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLCollectorRetentionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLCollectorRetentionOutcome(DescribeSQLCollectorRetentionResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLCollectorRetentionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeSQLCollectorRetentionAsync(const DescribeSQLCollectorRetentionRequest& request, const DescribeSQLCollectorRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLCollectorRetention(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLCollectorRetentionOutcomeCallable RdsClient::describeSQLCollectorRetentionCallable(const DescribeSQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLCollectorRetentionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLCollectorRetention(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSQLLogFilesOutcome RdsClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3939,6 +4083,42 @@ RdsClient::DescribeSecurityGroupConfigurationOutcomeCallable RdsClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSignedEventActionsOutcome RdsClient::describeSignedEventActions(const DescribeSignedEventActionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSignedEventActionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSignedEventActionsOutcome(DescribeSignedEventActionsResult(outcome.result()));
|
||||
else
|
||||
return DescribeSignedEventActionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeSignedEventActionsAsync(const DescribeSignedEventActionsRequest& request, const DescribeSignedEventActionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSignedEventActions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeSignedEventActionsOutcomeCallable RdsClient::describeSignedEventActionsCallable(const DescribeSignedEventActionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSignedEventActionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSignedEventActions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeSlowLogRecordsOutcome RdsClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4515,6 +4695,42 @@ RdsClient::ModifyActionEventPolicyOutcomeCallable RdsClient::modifyActionEventPo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyActionEventVerifyPolicyOutcome RdsClient::modifyActionEventVerifyPolicy(const ModifyActionEventVerifyPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyActionEventVerifyPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyActionEventVerifyPolicyOutcome(ModifyActionEventVerifyPolicyResult(outcome.result()));
|
||||
else
|
||||
return ModifyActionEventVerifyPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyActionEventVerifyPolicyAsync(const ModifyActionEventVerifyPolicyRequest& request, const ModifyActionEventVerifyPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyActionEventVerifyPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyActionEventVerifyPolicyOutcomeCallable RdsClient::modifyActionEventVerifyPolicyCallable(const ModifyActionEventVerifyPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyActionEventVerifyPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyActionEventVerifyPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyBackupPolicyOutcome RdsClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5703,6 +5919,42 @@ RdsClient::ModifySQLCollectorPolicyOutcomeCallable RdsClient::modifySQLCollector
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifySQLCollectorRetentionOutcome RdsClient::modifySQLCollectorRetention(const ModifySQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifySQLCollectorRetentionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifySQLCollectorRetentionOutcome(ModifySQLCollectorRetentionResult(outcome.result()));
|
||||
else
|
||||
return ModifySQLCollectorRetentionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifySQLCollectorRetentionAsync(const ModifySQLCollectorRetentionRequest& request, const ModifySQLCollectorRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifySQLCollectorRetention(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifySQLCollectorRetentionOutcomeCallable RdsClient::modifySQLCollectorRetentionCallable(const ModifySQLCollectorRetentionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifySQLCollectorRetentionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifySQLCollectorRetention(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifySecurityGroupConfigurationOutcome RdsClient::modifySecurityGroupConfiguration(const ModifySecurityGroupConfigurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6423,6 +6675,42 @@ RdsClient::RevokeOperatorPermissionOutcomeCallable RdsClient::revokeOperatorPerm
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::SignEventActionOutcome RdsClient::signEventAction(const SignEventActionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SignEventActionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SignEventActionOutcome(SignEventActionResult(outcome.result()));
|
||||
else
|
||||
return SignEventActionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::signEventActionAsync(const SignEventActionRequest& request, const SignEventActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, signEventAction(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::SignEventActionOutcomeCallable RdsClient::signEventActionCallable(const SignEventActionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SignEventActionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->signEventAction(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::SwitchDBInstanceHAOutcome RdsClient::switchDBInstanceHA(const SwitchDBInstanceHARequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -126,3 +126,14 @@ void DescribeDBInstancePerformanceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool DescribeDBInstancePerformanceRequest::getUseNullWhenMissingPoint()const
|
||||
{
|
||||
return useNullWhenMissingPoint_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancePerformanceRequest::setUseNullWhenMissingPoint(bool useNullWhenMissingPoint)
|
||||
{
|
||||
useNullWhenMissingPoint_ = useNullWhenMissingPoint;
|
||||
setCoreParameter("UseNullWhenMissingPoint", useNullWhenMissingPoint ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -148,6 +148,17 @@ void DescribeDBInstancesForCloneRequest::setRegionId(const std::string& regionId
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesForCloneRequest::getCurrentInstanceId()const
|
||||
{
|
||||
return currentInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesForCloneRequest::setCurrentInstanceId(const std::string& currentInstanceId)
|
||||
{
|
||||
currentInstanceId_ = currentInstanceId;
|
||||
setCoreParameter("CurrentInstanceId", currentInstanceId);
|
||||
}
|
||||
|
||||
int DescribeDBInstancesForCloneRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
150
rds/src/model/DescribeDBInstancesOverviewRequest.cc
Normal file
150
rds/src/model/DescribeDBInstancesOverviewRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeDBInstancesOverviewRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBInstancesOverviewRequest;
|
||||
|
||||
DescribeDBInstancesOverviewRequest::DescribeDBInstancesOverviewRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBInstancesOverview")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBInstancesOverviewRequest::~DescribeDBInstancesOverviewRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInstancesOverviewRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getExpired()const
|
||||
{
|
||||
return expired_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setExpired(const std::string& expired)
|
||||
{
|
||||
expired_ = expired;
|
||||
setCoreParameter("Expired", expired);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getProxyId()const
|
||||
{
|
||||
return proxyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setProxyId(const std::string& proxyId)
|
||||
{
|
||||
proxyId_ = proxyId;
|
||||
setCoreParameter("ProxyId", proxyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBInstancesOverviewRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInstancesOverviewRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeDBInstancesOverviewRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setCoreParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
95
rds/src/model/DescribeDBInstancesOverviewResult.cc
Normal file
95
rds/src/model/DescribeDBInstancesOverviewResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeDBInstancesOverviewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBInstancesOverviewResult::DescribeDBInstancesOverviewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInstancesOverviewResult::DescribeDBInstancesOverviewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInstancesOverviewResult::~DescribeDBInstancesOverviewResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInstancesOverviewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["RegionModel"];
|
||||
for (auto valueRegionsRegionModel : allRegionsNode)
|
||||
{
|
||||
RegionModel regionsObject;
|
||||
if(!valueRegionsRegionModel["Region"].isNull())
|
||||
regionsObject.region = valueRegionsRegionModel["Region"].asString();
|
||||
if(!valueRegionsRegionModel["EngineCount"].isNull())
|
||||
regionsObject.engineCount = valueRegionsRegionModel["EngineCount"].asString();
|
||||
if(!valueRegionsRegionModel["TotalCount"].isNull())
|
||||
regionsObject.totalCount = std::stoi(valueRegionsRegionModel["TotalCount"].asString());
|
||||
auto allTypeModelsNode = allRegionsNode["TypeModels"]["TypeModel"];
|
||||
for (auto allRegionsNodeTypeModelsTypeModel : allTypeModelsNode)
|
||||
{
|
||||
RegionModel::TypeModel typeModelsObject;
|
||||
if(!allRegionsNodeTypeModelsTypeModel["InstanceDateType"].isNull())
|
||||
typeModelsObject.instanceDateType = allRegionsNodeTypeModelsTypeModel["InstanceDateType"].asString();
|
||||
if(!allRegionsNodeTypeModelsTypeModel["Count"].isNull())
|
||||
typeModelsObject.count = std::stoi(allRegionsNodeTypeModelsTypeModel["Count"].asString());
|
||||
auto allInstanceModelsNode = allTypeModelsNode["InstanceModels"]["InstanceModel"];
|
||||
for (auto allTypeModelsNodeInstanceModelsInstanceModel : allInstanceModelsNode)
|
||||
{
|
||||
RegionModel::TypeModel::InstanceModel instanceModelsObject;
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceId"].isNull())
|
||||
instanceModelsObject.dBInstanceId = allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceId"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["Region"].isNull())
|
||||
instanceModelsObject.region = allTypeModelsNodeInstanceModelsInstanceModel["Region"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["ZoneId"].isNull())
|
||||
instanceModelsObject.zoneId = allTypeModelsNodeInstanceModelsInstanceModel["ZoneId"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["Engine"].isNull())
|
||||
instanceModelsObject.engine = allTypeModelsNodeInstanceModelsInstanceModel["Engine"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["PayType"].isNull())
|
||||
instanceModelsObject.payType = allTypeModelsNodeInstanceModelsInstanceModel["PayType"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["CreatedTime"].isNull())
|
||||
instanceModelsObject.createdTime = allTypeModelsNodeInstanceModelsInstanceModel["CreatedTime"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["ExpireTime"].isNull())
|
||||
instanceModelsObject.expireTime = allTypeModelsNodeInstanceModelsInstanceModel["ExpireTime"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["LockMode"].isNull())
|
||||
instanceModelsObject.lockMode = allTypeModelsNodeInstanceModelsInstanceModel["LockMode"].asString();
|
||||
if(!allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceStatus"].isNull())
|
||||
instanceModelsObject.dBInstanceStatus = allTypeModelsNodeInstanceModelsInstanceModel["DBInstanceStatus"].asString();
|
||||
typeModelsObject.instanceModels.push_back(instanceModelsObject);
|
||||
}
|
||||
regionsObject.typeModels.push_back(typeModelsObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInstancesOverviewResult::RegionModel> DescribeDBInstancesOverviewResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
84
rds/src/model/DescribeNextEventForSignRequest.cc
Normal file
84
rds/src/model/DescribeNextEventForSignRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeNextEventForSignRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeNextEventForSignRequest;
|
||||
|
||||
DescribeNextEventForSignRequest::DescribeNextEventForSignRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeNextEventForSign")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeNextEventForSignRequest::~DescribeNextEventForSignRequest()
|
||||
{}
|
||||
|
||||
long DescribeNextEventForSignRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeNextEventForSignRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeNextEventForSignRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeNextEventForSignRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeNextEventForSignRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeNextEventForSignRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
rds/src/model/DescribeNextEventForSignResult.cc
Normal file
59
rds/src/model/DescribeNextEventForSignResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeNextEventForSignResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeNextEventForSignResult::DescribeNextEventForSignResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNextEventForSignResult::DescribeNextEventForSignResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNextEventForSignResult::~DescribeNextEventForSignResult()
|
||||
{}
|
||||
|
||||
void DescribeNextEventForSignResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventItemsNode = value["EventItems"]["EventItemsItem"];
|
||||
for (auto valueEventItemsEventItemsItem : allEventItemsNode)
|
||||
{
|
||||
EventItemsItem eventItemsObject;
|
||||
if(!valueEventItemsEventItemsItem["EventId"].isNull())
|
||||
eventItemsObject.eventId = std::stoi(valueEventItemsEventItemsItem["EventId"].asString());
|
||||
if(!valueEventItemsEventItemsItem["EventContent"].isNull())
|
||||
eventItemsObject.eventContent = valueEventItemsEventItemsItem["EventContent"].asString();
|
||||
eventItems_.push_back(eventItemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeNextEventForSignResult::EventItemsItem> DescribeNextEventForSignResult::getEventItems()const
|
||||
{
|
||||
return eventItems_;
|
||||
}
|
||||
|
||||
106
rds/src/model/DescribeSQLCollectorPolicyRequest.cc
Normal file
106
rds/src/model/DescribeSQLCollectorPolicyRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSQLCollectorPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeSQLCollectorPolicyRequest;
|
||||
|
||||
DescribeSQLCollectorPolicyRequest::DescribeSQLCollectorPolicyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeSQLCollectorPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorPolicyRequest::~DescribeSQLCollectorPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLCollectorPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLCollectorPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
58
rds/src/model/DescribeSQLCollectorPolicyResult.cc
Normal file
58
rds/src/model/DescribeSQLCollectorPolicyResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSQLCollectorPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorPolicyResult::~DescribeSQLCollectorPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLCollectorPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SQLCollectorStatus"].isNull())
|
||||
sQLCollectorStatus_ = value["SQLCollectorStatus"].asString();
|
||||
if(!value["StoragePeriod"].isNull())
|
||||
storagePeriod_ = std::stoi(value["StoragePeriod"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeSQLCollectorPolicyResult::getStoragePeriod()const
|
||||
{
|
||||
return storagePeriod_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorPolicyResult::getSQLCollectorStatus()const
|
||||
{
|
||||
return sQLCollectorStatus_;
|
||||
}
|
||||
|
||||
106
rds/src/model/DescribeSQLCollectorRetentionRequest.cc
Normal file
106
rds/src/model/DescribeSQLCollectorRetentionRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSQLCollectorRetentionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeSQLCollectorRetentionRequest;
|
||||
|
||||
DescribeSQLCollectorRetentionRequest::DescribeSQLCollectorRetentionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeSQLCollectorRetention")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorRetentionRequest::~DescribeSQLCollectorRetentionRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLCollectorRetentionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLCollectorRetentionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLCollectorRetentionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
rds/src/model/DescribeSQLCollectorRetentionResult.cc
Normal file
65
rds/src/model/DescribeSQLCollectorRetentionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSQLCollectorRetentionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeSQLCollectorRetentionResult::DescribeSQLCollectorRetentionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLCollectorRetentionResult::DescribeSQLCollectorRetentionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLCollectorRetentionResult::~DescribeSQLCollectorRetentionResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLCollectorRetentionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["ConfigValue"].isNull())
|
||||
configValue_ = value["ConfigValue"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionResult::getConfigValue()const
|
||||
{
|
||||
return configValue_;
|
||||
}
|
||||
|
||||
int DescribeSQLCollectorRetentionResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLCollectorRetentionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
106
rds/src/model/DescribeSignedEventActionsRequest.cc
Normal file
106
rds/src/model/DescribeSignedEventActionsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSignedEventActionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeSignedEventActionsRequest;
|
||||
|
||||
DescribeSignedEventActionsRequest::DescribeSignedEventActionsRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeSignedEventActions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSignedEventActionsRequest::~DescribeSignedEventActionsRequest()
|
||||
{}
|
||||
|
||||
long DescribeSignedEventActionsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsRequest::getBeginEventId()const
|
||||
{
|
||||
return beginEventId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setBeginEventId(int beginEventId)
|
||||
{
|
||||
beginEventId_ = beginEventId;
|
||||
setCoreParameter("BeginEventId", std::to_string(beginEventId));
|
||||
}
|
||||
|
||||
std::string DescribeSignedEventActionsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeSignedEventActionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeSignedEventActionsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSignedEventActionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeSignedEventActionsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
91
rds/src/model/DescribeSignedEventActionsResult.cc
Normal file
91
rds/src/model/DescribeSignedEventActionsResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/rds/model/DescribeSignedEventActionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeSignedEventActionsResult::DescribeSignedEventActionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSignedEventActionsResult::DescribeSignedEventActionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSignedEventActionsResult::~DescribeSignedEventActionsResult()
|
||||
{}
|
||||
|
||||
void DescribeSignedEventActionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventItemsNode = value["EventItems"]["EventItemsItem"];
|
||||
for (auto valueEventItemsEventItemsItem : allEventItemsNode)
|
||||
{
|
||||
EventItemsItem eventItemsObject;
|
||||
if(!valueEventItemsEventItemsItem["EventId"].isNull())
|
||||
eventItemsObject.eventId = std::stoi(valueEventItemsEventItemsItem["EventId"].asString());
|
||||
if(!valueEventItemsEventItemsItem["EventContent"].isNull())
|
||||
eventItemsObject.eventContent = valueEventItemsEventItemsItem["EventContent"].asString();
|
||||
if(!valueEventItemsEventItemsItem["EventSig"].isNull())
|
||||
eventItemsObject.eventSig = valueEventItemsEventItemsItem["EventSig"].asString();
|
||||
if(!valueEventItemsEventItemsItem["EventRcpt"].isNull())
|
||||
eventItemsObject.eventRcpt = valueEventItemsEventItemsItem["EventRcpt"].asString();
|
||||
eventItems_.push_back(eventItemsObject);
|
||||
}
|
||||
if(!value["NextPageEventId"].isNull())
|
||||
nextPageEventId_ = std::stoi(value["NextPageEventId"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["FromBegin"].isNull())
|
||||
fromBegin_ = value["FromBegin"].asString() == "true";
|
||||
if(!value["ToEnd"].isNull())
|
||||
toEnd_ = value["ToEnd"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSignedEventActionsResult::EventItemsItem> DescribeSignedEventActionsResult::getEventItems()const
|
||||
{
|
||||
return eventItems_;
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
bool DescribeSignedEventActionsResult::getToEnd()const
|
||||
{
|
||||
return toEnd_;
|
||||
}
|
||||
|
||||
bool DescribeSignedEventActionsResult::getFromBegin()const
|
||||
{
|
||||
return fromBegin_;
|
||||
}
|
||||
|
||||
int DescribeSignedEventActionsResult::getNextPageEventId()const
|
||||
{
|
||||
return nextPageEventId_;
|
||||
}
|
||||
|
||||
95
rds/src/model/ModifyActionEventVerifyPolicyRequest.cc
Normal file
95
rds/src/model/ModifyActionEventVerifyPolicyRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/rds/model/ModifyActionEventVerifyPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyActionEventVerifyPolicyRequest;
|
||||
|
||||
ModifyActionEventVerifyPolicyRequest::ModifyActionEventVerifyPolicyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyActionEventVerifyPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyActionEventVerifyPolicyRequest::~ModifyActionEventVerifyPolicyRequest()
|
||||
{}
|
||||
|
||||
long ModifyActionEventVerifyPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyActionEventVerifyPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyRequest::getUserPublicKey()const
|
||||
{
|
||||
return userPublicKey_;
|
||||
}
|
||||
|
||||
void ModifyActionEventVerifyPolicyRequest::setUserPublicKey(const std::string& userPublicKey)
|
||||
{
|
||||
userPublicKey_ = userPublicKey;
|
||||
setCoreParameter("UserPublicKey", userPublicKey);
|
||||
}
|
||||
|
||||
58
rds/src/model/ModifyActionEventVerifyPolicyResult.cc
Normal file
58
rds/src/model/ModifyActionEventVerifyPolicyResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/rds/model/ModifyActionEventVerifyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyActionEventVerifyPolicyResult::ModifyActionEventVerifyPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyActionEventVerifyPolicyResult::ModifyActionEventVerifyPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyActionEventVerifyPolicyResult::~ModifyActionEventVerifyPolicyResult()
|
||||
{}
|
||||
|
||||
void ModifyActionEventVerifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ServerPublicKey"].isNull())
|
||||
serverPublicKey_ = value["ServerPublicKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ModifyActionEventVerifyPolicyResult::getServerPublicKey()const
|
||||
{
|
||||
return serverPublicKey_;
|
||||
}
|
||||
|
||||
@@ -115,6 +115,17 @@ void ModifyDBInstanceSpecRequest::setDBInstanceStorageType(const std::string& dB
|
||||
setCoreParameter("DBInstanceStorageType", dBInstanceStorageType);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceSpecRequest::getSourceBiz()const
|
||||
{
|
||||
return sourceBiz_;
|
||||
}
|
||||
|
||||
void ModifyDBInstanceSpecRequest::setSourceBiz(const std::string& sourceBiz)
|
||||
{
|
||||
sourceBiz_ = sourceBiz;
|
||||
setCoreParameter("SourceBiz", sourceBiz);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstanceSpecRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
|
||||
117
rds/src/model/ModifySQLCollectorRetentionRequest.cc
Normal file
117
rds/src/model/ModifySQLCollectorRetentionRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/rds/model/ModifySQLCollectorRetentionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifySQLCollectorRetentionRequest;
|
||||
|
||||
ModifySQLCollectorRetentionRequest::ModifySQLCollectorRetentionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifySQLCollectorRetention")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifySQLCollectorRetentionRequest::~ModifySQLCollectorRetentionRequest()
|
||||
{}
|
||||
|
||||
long ModifySQLCollectorRetentionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionRequest::getConfigValue()const
|
||||
{
|
||||
return configValue_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setConfigValue(const std::string& configValue)
|
||||
{
|
||||
configValue_ = configValue;
|
||||
setCoreParameter("ConfigValue", configValue);
|
||||
}
|
||||
|
||||
long ModifySQLCollectorRetentionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifySQLCollectorRetentionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
rds/src/model/ModifySQLCollectorRetentionResult.cc
Normal file
65
rds/src/model/ModifySQLCollectorRetentionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/rds/model/ModifySQLCollectorRetentionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifySQLCollectorRetentionResult::ModifySQLCollectorRetentionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifySQLCollectorRetentionResult::ModifySQLCollectorRetentionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifySQLCollectorRetentionResult::~ModifySQLCollectorRetentionResult()
|
||||
{}
|
||||
|
||||
void ModifySQLCollectorRetentionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stoi(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ModifySQLCollectorRetentionResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
int ModifySQLCollectorRetentionResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string ModifySQLCollectorRetentionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
106
rds/src/model/SignEventActionRequest.cc
Normal file
106
rds/src/model/SignEventActionRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/rds/model/SignEventActionRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::SignEventActionRequest;
|
||||
|
||||
SignEventActionRequest::SignEventActionRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "SignEventAction")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SignEventActionRequest::~SignEventActionRequest()
|
||||
{}
|
||||
|
||||
int SignEventActionRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setEventId(int eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setCoreParameter("EventId", std::to_string(eventId));
|
||||
}
|
||||
|
||||
long SignEventActionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getEventSig()const
|
||||
{
|
||||
return eventSig_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setEventSig(const std::string& eventSig)
|
||||
{
|
||||
eventSig_ = eventSig;
|
||||
setCoreParameter("EventSig", eventSig);
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long SignEventActionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SignEventActionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SignEventActionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
58
rds/src/model/SignEventActionResult.cc
Normal file
58
rds/src/model/SignEventActionResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/rds/model/SignEventActionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
SignEventActionResult::SignEventActionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SignEventActionResult::SignEventActionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SignEventActionResult::~SignEventActionResult()
|
||||
{}
|
||||
|
||||
void SignEventActionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
if(!value["EventRcpt"].isNull())
|
||||
eventRcpt_ = value["EventRcpt"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SignEventActionResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
std::string SignEventActionResult::getEventRcpt()const
|
||||
{
|
||||
return eventRcpt_;
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace {
|
||||
EXPECT_TRUE(nbr == 0);
|
||||
client->asyncExecute(rf);
|
||||
usleep(10000);
|
||||
EXPECT_TRUE(nbr == 1);
|
||||
EXPECT_EQ(nbr, 1);
|
||||
ShutdownSdk();
|
||||
}
|
||||
|
||||
|
||||
@@ -95,5 +95,4 @@ TEST(RoaServiceClient, basic) {
|
||||
req.setParameter("Content-Type", "test-content-type");
|
||||
http_req = client.buildHttpRequest("cn-shanghai", req, HttpRequest::Method::Get);
|
||||
EXPECT_TRUE(http_req.url().toString() == "http://cn-shanghai/?Accept=tets-accept&Content-Type=test-content-type&a=b");
|
||||
|
||||
}
|
||||
|
||||
@@ -23,16 +23,17 @@ namespace {
|
||||
{}
|
||||
|
||||
using ServiceRequest::addParameter;
|
||||
using ServiceRequest::removeParameter;
|
||||
using ServiceRequest::coreParameter;
|
||||
using ServiceRequest::parameter;
|
||||
using ServiceRequest::removeParameter;
|
||||
using ServiceRequest::setBodyParameter;
|
||||
using ServiceRequest::setContent;
|
||||
using ServiceRequest::setCoreParameter;
|
||||
using ServiceRequest::setParameter;
|
||||
using ServiceRequest::setParameters;
|
||||
using ServiceRequest::setResourcePath;
|
||||
using ServiceRequest::setProduct;
|
||||
using ServiceRequest::setResourcePath;
|
||||
using ServiceRequest::setVersion;
|
||||
using ServiceRequest::setCoreParameter;
|
||||
using ServiceRequest::coreParameter;
|
||||
};
|
||||
|
||||
TEST(ServiceRequest, basic) {
|
||||
@@ -63,6 +64,8 @@ namespace {
|
||||
EXPECT_TRUE(sr1.parameter("ka") == "va");
|
||||
EXPECT_TRUE(sr1.coreParameter("ka") == "va");
|
||||
|
||||
sr1.setBodyParameter("name", "value");
|
||||
|
||||
sr1.setContent("123456", 6);
|
||||
EXPECT_TRUE(sr1.contentSize() == 6);
|
||||
EXPECT_TRUE(sr1.hasContent() == true);
|
||||
@@ -90,6 +93,9 @@ namespace {
|
||||
EXPECT_TRUE(pc.at("km") == "vm");
|
||||
EXPECT_TRUE(pc.at("kn") == "vn");
|
||||
|
||||
ServiceRequest::ParameterCollection bp = sr1.bodyParameters();
|
||||
EXPECT_EQ(bp.at("name"), "value");
|
||||
|
||||
EXPECT_TRUE(sr1.connectTimeout() == kInvalidTimeout);
|
||||
EXPECT_TRUE(sr1.readTimeout() == kInvalidTimeout);
|
||||
sr1.setConnectTimeout(1234);
|
||||
|
||||
@@ -61,6 +61,23 @@ namespace {
|
||||
EXPECT_TRUE(decoded == url);
|
||||
}
|
||||
|
||||
TEST(UtilsTest, MapToJson){
|
||||
std::map<std::string, std::string> maps;
|
||||
maps.insert(std::make_pair("foo", "bar"));
|
||||
std::string jsonStr = MapToJson(maps);
|
||||
EXPECT_EQ(jsonStr, "{\"foo\":\"bar\"}");
|
||||
}
|
||||
|
||||
TEST(UtilsTest, JsonToMap){
|
||||
std::map<std::string, std::string> targetMaps;
|
||||
targetMaps.insert(std::make_pair("foo", "bar"));
|
||||
targetMaps.insert(std::make_pair("int", "1"));
|
||||
targetMaps.insert(std::make_pair("array","foo,bar"));
|
||||
std::string jsonStr = "{\"foo\":\"bar\",\"int\":1,\"array\":[\"foo\",\"bar\"]}";
|
||||
std::map<std::string, std::string> maps = JsonToMap(jsonStr);
|
||||
EXPECT_EQ(targetMaps, maps);
|
||||
}
|
||||
|
||||
TEST(Utils, GetEnv) {
|
||||
const std::string var1 = GetEnv("PATH");
|
||||
EXPECT_FALSE(var1.empty());
|
||||
|
||||
@@ -128,8 +128,8 @@ TEST(LocationClient, callable)
|
||||
{
|
||||
InitializeSdk();
|
||||
ClientConfiguration configuration("cn-hangzhou");
|
||||
configuration.setConnectTimeout(100000);
|
||||
configuration.setReadTimeout(100000);
|
||||
configuration.setConnectTimeout(300000);
|
||||
configuration.setReadTimeout(300000);
|
||||
Model::DescribeEndpointsRequest req;
|
||||
req.setId("cn-hangzhou");
|
||||
req.setServiceCode("ecs");
|
||||
|
||||
Reference in New Issue
Block a user