Supported API for DescribeInstanceDomains.

This commit is contained in:
sdk-team
2020-03-18 17:39:55 +08:00
parent fce43d94b7
commit f0971eaa34
9 changed files with 350 additions and 1 deletions

View File

@@ -128,6 +128,8 @@
#include "model/DescribeGtmRecoveryPlanAvailableConfigResult.h"
#include "model/DescribeGtmRecoveryPlansRequest.h"
#include "model/DescribeGtmRecoveryPlansResult.h"
#include "model/DescribeInstanceDomainsRequest.h"
#include "model/DescribeInstanceDomainsResult.h"
#include "model/DescribeRecordLogsRequest.h"
#include "model/DescribeRecordLogsResult.h"
#include "model/DescribeRecordStatisticsRequest.h"
@@ -360,6 +362,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeGtmRecoveryPlansResult> DescribeGtmRecoveryPlansOutcome;
typedef std::future<DescribeGtmRecoveryPlansOutcome> DescribeGtmRecoveryPlansOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeGtmRecoveryPlansRequest&, const DescribeGtmRecoveryPlansOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeGtmRecoveryPlansAsyncHandler;
typedef Outcome<Error, Model::DescribeInstanceDomainsResult> DescribeInstanceDomainsOutcome;
typedef std::future<DescribeInstanceDomainsOutcome> DescribeInstanceDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeInstanceDomainsRequest&, const DescribeInstanceDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceDomainsAsyncHandler;
typedef Outcome<Error, Model::DescribeRecordLogsResult> DescribeRecordLogsOutcome;
typedef std::future<DescribeRecordLogsOutcome> DescribeRecordLogsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeRecordLogsRequest&, const DescribeRecordLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordLogsAsyncHandler;
@@ -620,6 +625,9 @@ namespace AlibabaCloud
DescribeGtmRecoveryPlansOutcome describeGtmRecoveryPlans(const Model::DescribeGtmRecoveryPlansRequest &request)const;
void describeGtmRecoveryPlansAsync(const Model::DescribeGtmRecoveryPlansRequest& request, const DescribeGtmRecoveryPlansAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeGtmRecoveryPlansOutcomeCallable describeGtmRecoveryPlansCallable(const Model::DescribeGtmRecoveryPlansRequest& request) const;
DescribeInstanceDomainsOutcome describeInstanceDomains(const Model::DescribeInstanceDomainsRequest &request)const;
void describeInstanceDomainsAsync(const Model::DescribeInstanceDomainsRequest& request, const DescribeInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceDomainsOutcomeCallable describeInstanceDomainsCallable(const Model::DescribeInstanceDomainsRequest& request) const;
DescribeRecordLogsOutcome describeRecordLogs(const Model::DescribeRecordLogsRequest &request)const;
void describeRecordLogsAsync(const Model::DescribeRecordLogsRequest& request, const DescribeRecordLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRecordLogsOutcomeCallable describeRecordLogsCallable(const Model::DescribeRecordLogsRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_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 DescribeInstanceDomainsRequest : public RpcServiceRequest
{
public:
DescribeInstanceDomainsRequest();
~DescribeInstanceDomainsRequest();
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getLang()const;
void setLang(const std::string& lang);
private:
long pageNumber_;
std::string instanceId_;
std::string userClientIp_;
long pageSize_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSRESULT_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 DescribeInstanceDomainsResult : public ServiceResult
{
public:
struct InstanceDomain
{
std::string domainName;
std::string createTime;
long createTimestamp;
};
DescribeInstanceDomainsResult();
explicit DescribeInstanceDomainsResult(const std::string &payload);
~DescribeInstanceDomainsResult();
int getPageSize()const;
int getPageNumber()const;
std::vector<InstanceDomain> getInstanceDomains()const;
int getTotalPages()const;
int getTotalItems()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNumber_;
std::vector<InstanceDomain> instanceDomains_;
int totalPages_;
int totalItems_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBEINSTANCEDOMAINSRESULT_H_