Supportd DescribeTableStatisticsRequest.
This commit is contained in:
@@ -87,6 +87,42 @@ AdbClient::AllocateClusterPublicConnectionOutcomeCallable AdbClient::allocateClu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::BindDBResourcePoolWithUserOutcome AdbClient::bindDBResourcePoolWithUser(const BindDBResourcePoolWithUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindDBResourcePoolWithUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindDBResourcePoolWithUserOutcome(BindDBResourcePoolWithUserResult(outcome.result()));
|
||||
else
|
||||
return BindDBResourcePoolWithUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::bindDBResourcePoolWithUserAsync(const BindDBResourcePoolWithUserRequest& request, const BindDBResourcePoolWithUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindDBResourcePoolWithUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::BindDBResourcePoolWithUserOutcomeCallable AdbClient::bindDBResourcePoolWithUserCallable(const BindDBResourcePoolWithUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindDBResourcePoolWithUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindDBResourcePoolWithUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::CreateAccountOutcome AdbClient::createAccount(const CreateAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -159,6 +195,78 @@ AdbClient::CreateDBClusterOutcomeCallable AdbClient::createDBClusterCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::CreateDBResourcePoolOutcome AdbClient::createDBResourcePool(const CreateDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDBResourcePoolOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDBResourcePoolOutcome(CreateDBResourcePoolResult(outcome.result()));
|
||||
else
|
||||
return CreateDBResourcePoolOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::createDBResourcePoolAsync(const CreateDBResourcePoolRequest& request, const CreateDBResourcePoolAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDBResourcePool(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::CreateDBResourcePoolOutcomeCallable AdbClient::createDBResourcePoolCallable(const CreateDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDBResourcePoolOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDBResourcePool(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::CreateElasticPlanOutcome AdbClient::createElasticPlan(const CreateElasticPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateElasticPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateElasticPlanOutcome(CreateElasticPlanResult(outcome.result()));
|
||||
else
|
||||
return CreateElasticPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::createElasticPlanAsync(const CreateElasticPlanRequest& request, const CreateElasticPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createElasticPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::CreateElasticPlanOutcomeCallable AdbClient::createElasticPlanCallable(const CreateElasticPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateElasticPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createElasticPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DeleteAccountOutcome AdbClient::deleteAccount(const DeleteAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +339,78 @@ AdbClient::DeleteDBClusterOutcomeCallable AdbClient::deleteDBClusterCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DeleteDBResourcePoolOutcome AdbClient::deleteDBResourcePool(const DeleteDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDBResourcePoolOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDBResourcePoolOutcome(DeleteDBResourcePoolResult(outcome.result()));
|
||||
else
|
||||
return DeleteDBResourcePoolOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::deleteDBResourcePoolAsync(const DeleteDBResourcePoolRequest& request, const DeleteDBResourcePoolAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDBResourcePool(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DeleteDBResourcePoolOutcomeCallable AdbClient::deleteDBResourcePoolCallable(const DeleteDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDBResourcePoolOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDBResourcePool(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DeleteElasticPlanOutcome AdbClient::deleteElasticPlan(const DeleteElasticPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteElasticPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteElasticPlanOutcome(DeleteElasticPlanResult(outcome.result()));
|
||||
else
|
||||
return DeleteElasticPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::deleteElasticPlanAsync(const DeleteElasticPlanRequest& request, const DeleteElasticPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteElasticPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DeleteElasticPlanOutcomeCallable AdbClient::deleteElasticPlanCallable(const DeleteElasticPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteElasticPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteElasticPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAccountsOutcome AdbClient::describeAccounts(const DescribeAccountsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +447,42 @@ AdbClient::DescribeAccountsOutcomeCallable AdbClient::describeAccountsCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAllAccountsOutcome AdbClient::describeAllAccounts(const DescribeAllAccountsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAllAccountsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAllAccountsOutcome(DescribeAllAccountsResult(outcome.result()));
|
||||
else
|
||||
return DescribeAllAccountsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeAllAccountsAsync(const DescribeAllAccountsRequest& request, const DescribeAllAccountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAllAccounts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeAllAccountsOutcomeCallable AdbClient::describeAllAccountsCallable(const DescribeAllAccountsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAllAccountsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAllAccounts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeAllDataSourceOutcome AdbClient::describeAllDataSource(const DescribeAllDataSourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +771,42 @@ AdbClient::DescribeColumnsOutcomeCallable AdbClient::describeColumnsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeConnectionCountRecordsOutcome AdbClient::describeConnectionCountRecords(const DescribeConnectionCountRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeConnectionCountRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeConnectionCountRecordsOutcome(DescribeConnectionCountRecordsResult(outcome.result()));
|
||||
else
|
||||
return DescribeConnectionCountRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeConnectionCountRecordsAsync(const DescribeConnectionCountRecordsRequest& request, const DescribeConnectionCountRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeConnectionCountRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeConnectionCountRecordsOutcomeCallable AdbClient::describeConnectionCountRecordsCallable(const DescribeConnectionCountRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeConnectionCountRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeConnectionCountRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeDBClusterAccessWhiteListOutcome AdbClient::describeDBClusterAccessWhiteList(const DescribeDBClusterAccessWhiteListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +951,42 @@ AdbClient::DescribeDBClusterPerformanceOutcomeCallable AdbClient::describeDBClus
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeDBClusterResourcePoolPerformanceOutcome AdbClient::describeDBClusterResourcePoolPerformance(const DescribeDBClusterResourcePoolPerformanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBClusterResourcePoolPerformanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBClusterResourcePoolPerformanceOutcome(DescribeDBClusterResourcePoolPerformanceResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBClusterResourcePoolPerformanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeDBClusterResourcePoolPerformanceAsync(const DescribeDBClusterResourcePoolPerformanceRequest& request, const DescribeDBClusterResourcePoolPerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBClusterResourcePoolPerformance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeDBClusterResourcePoolPerformanceOutcomeCallable AdbClient::describeDBClusterResourcePoolPerformanceCallable(const DescribeDBClusterResourcePoolPerformanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBClusterResourcePoolPerformanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBClusterResourcePoolPerformance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeDBClustersOutcome AdbClient::describeDBClusters(const DescribeDBClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,6 +1023,114 @@ AdbClient::DescribeDBClustersOutcomeCallable AdbClient::describeDBClustersCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeDBResourcePoolOutcome AdbClient::describeDBResourcePool(const DescribeDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBResourcePoolOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBResourcePoolOutcome(DescribeDBResourcePoolResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBResourcePoolOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeDBResourcePoolAsync(const DescribeDBResourcePoolRequest& request, const DescribeDBResourcePoolAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBResourcePool(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeDBResourcePoolOutcomeCallable AdbClient::describeDBResourcePoolCallable(const DescribeDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBResourcePoolOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBResourcePool(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeElasticDailyPlanOutcome AdbClient::describeElasticDailyPlan(const DescribeElasticDailyPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeElasticDailyPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeElasticDailyPlanOutcome(DescribeElasticDailyPlanResult(outcome.result()));
|
||||
else
|
||||
return DescribeElasticDailyPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeElasticDailyPlanAsync(const DescribeElasticDailyPlanRequest& request, const DescribeElasticDailyPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeElasticDailyPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeElasticDailyPlanOutcomeCallable AdbClient::describeElasticDailyPlanCallable(const DescribeElasticDailyPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeElasticDailyPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeElasticDailyPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeElasticPlanOutcome AdbClient::describeElasticPlan(const DescribeElasticPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeElasticPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeElasticPlanOutcome(DescribeElasticPlanResult(outcome.result()));
|
||||
else
|
||||
return DescribeElasticPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeElasticPlanAsync(const DescribeElasticPlanRequest& request, const DescribeElasticPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeElasticPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeElasticPlanOutcomeCallable AdbClient::describeElasticPlanCallable(const DescribeElasticPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeElasticPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeElasticPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeInclinedTablesOutcome AdbClient::describeInclinedTables(const DescribeInclinedTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +1167,42 @@ AdbClient::DescribeInclinedTablesOutcomeCallable AdbClient::describeInclinedTabl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeLoadTasksRecordsOutcome AdbClient::describeLoadTasksRecords(const DescribeLoadTasksRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadTasksRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLoadTasksRecordsOutcome(DescribeLoadTasksRecordsResult(outcome.result()));
|
||||
else
|
||||
return DescribeLoadTasksRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeLoadTasksRecordsAsync(const DescribeLoadTasksRecordsRequest& request, const DescribeLoadTasksRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLoadTasksRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeLoadTasksRecordsOutcomeCallable AdbClient::describeLoadTasksRecordsCallable(const DescribeLoadTasksRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLoadTasksRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLoadTasksRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeOperatorPermissionOutcome AdbClient::describeOperatorPermission(const DescribeOperatorPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +1311,78 @@ AdbClient::DescribeRegionsOutcomeCallable AdbClient::describeRegionsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPlanOutcome AdbClient::describeSQLPlan(const DescribeSQLPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLPlanOutcome(DescribeSQLPlanResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeSQLPlanAsync(const DescribeSQLPlanRequest& request, const DescribeSQLPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPlanOutcomeCallable AdbClient::describeSQLPlanCallable(const DescribeSQLPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPlanTaskOutcome AdbClient::describeSQLPlanTask(const DescribeSQLPlanTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLPlanTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLPlanTaskOutcome(DescribeSQLPlanTaskResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLPlanTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeSQLPlanTaskAsync(const DescribeSQLPlanTaskRequest& request, const DescribeSQLPlanTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLPlanTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeSQLPlanTaskOutcomeCallable AdbClient::describeSQLPlanTaskCallable(const DescribeSQLPlanTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLPlanTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLPlanTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeSchemasOutcome AdbClient::describeSchemas(const DescribeSchemasRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1563,42 @@ AdbClient::DescribeTablePartitionDiagnoseOutcomeCallable AdbClient::describeTabl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeTableStatisticsOutcome AdbClient::describeTableStatistics(const DescribeTableStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTableStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTableStatisticsOutcome(DescribeTableStatisticsResult(outcome.result()));
|
||||
else
|
||||
return DescribeTableStatisticsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::describeTableStatisticsAsync(const DescribeTableStatisticsRequest& request, const DescribeTableStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTableStatistics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::DescribeTableStatisticsOutcomeCallable AdbClient::describeTableStatisticsCallable(const DescribeTableStatisticsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTableStatisticsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTableStatistics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::DescribeTablesOutcome AdbClient::describeTables(const DescribeTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,6 +2103,114 @@ AdbClient::ModifyDBClusterMaintainTimeOutcomeCallable AdbClient::modifyDBCluster
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyDBClusterResourceGroupOutcome AdbClient::modifyDBClusterResourceGroup(const ModifyDBClusterResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBClusterResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBClusterResourceGroupOutcome(ModifyDBClusterResourceGroupResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBClusterResourceGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::modifyDBClusterResourceGroupAsync(const ModifyDBClusterResourceGroupRequest& request, const ModifyDBClusterResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBClusterResourceGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::ModifyDBClusterResourceGroupOutcomeCallable AdbClient::modifyDBClusterResourceGroupCallable(const ModifyDBClusterResourceGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBClusterResourceGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBClusterResourceGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyDBResourcePoolOutcome AdbClient::modifyDBResourcePool(const ModifyDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBResourcePoolOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBResourcePoolOutcome(ModifyDBResourcePoolResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBResourcePoolOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::modifyDBResourcePoolAsync(const ModifyDBResourcePoolRequest& request, const ModifyDBResourcePoolAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBResourcePool(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::ModifyDBResourcePoolOutcomeCallable AdbClient::modifyDBResourcePoolCallable(const ModifyDBResourcePoolRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBResourcePoolOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBResourcePool(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyElasticPlanOutcome AdbClient::modifyElasticPlan(const ModifyElasticPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyElasticPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyElasticPlanOutcome(ModifyElasticPlanResult(outcome.result()));
|
||||
else
|
||||
return ModifyElasticPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::modifyElasticPlanAsync(const ModifyElasticPlanRequest& request, const ModifyElasticPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyElasticPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::ModifyElasticPlanOutcomeCallable AdbClient::modifyElasticPlanCallable(const ModifyElasticPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyElasticPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyElasticPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::ModifyLogBackupPolicyOutcome AdbClient::modifyLogBackupPolicy(const ModifyLogBackupPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1743,6 +2391,42 @@ AdbClient::TagResourcesOutcomeCallable AdbClient::tagResourcesCallable(const Tag
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::UnbindDBResourcePoolWithUserOutcome AdbClient::unbindDBResourcePoolWithUser(const UnbindDBResourcePoolWithUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnbindDBResourcePoolWithUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnbindDBResourcePoolWithUserOutcome(UnbindDBResourcePoolWithUserResult(outcome.result()));
|
||||
else
|
||||
return UnbindDBResourcePoolWithUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AdbClient::unbindDBResourcePoolWithUserAsync(const UnbindDBResourcePoolWithUserRequest& request, const UnbindDBResourcePoolWithUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unbindDBResourcePoolWithUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AdbClient::UnbindDBResourcePoolWithUserOutcomeCallable AdbClient::unbindDBResourcePoolWithUserCallable(const UnbindDBResourcePoolWithUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnbindDBResourcePoolWithUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unbindDBResourcePoolWithUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AdbClient::UntagResourcesOutcome AdbClient::untagResources(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
117
adb/src/model/BindDBResourcePoolWithUserRequest.cc
Normal file
117
adb/src/model/BindDBResourcePoolWithUserRequest.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/adb/model/BindDBResourcePoolWithUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::BindDBResourcePoolWithUserRequest;
|
||||
|
||||
BindDBResourcePoolWithUserRequest::BindDBResourcePoolWithUserRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "BindDBResourcePoolWithUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindDBResourcePoolWithUserRequest::~BindDBResourcePoolWithUserRequest()
|
||||
{}
|
||||
|
||||
std::string BindDBResourcePoolWithUserRequest::getPoolName()const
|
||||
{
|
||||
return poolName_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setPoolName(const std::string& poolName)
|
||||
{
|
||||
poolName_ = poolName;
|
||||
setParameter("PoolName", poolName);
|
||||
}
|
||||
|
||||
long BindDBResourcePoolWithUserRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BindDBResourcePoolWithUserRequest::getPoolUser()const
|
||||
{
|
||||
return poolUser_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setPoolUser(const std::string& poolUser)
|
||||
{
|
||||
poolUser_ = poolUser;
|
||||
setParameter("PoolUser", poolUser);
|
||||
}
|
||||
|
||||
std::string BindDBResourcePoolWithUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string BindDBResourcePoolWithUserRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BindDBResourcePoolWithUserRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string BindDBResourcePoolWithUserRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long BindDBResourcePoolWithUserRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindDBResourcePoolWithUserRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
adb/src/model/BindDBResourcePoolWithUserResult.cc
Normal file
44
adb/src/model/BindDBResourcePoolWithUserResult.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/adb/model/BindDBResourcePoolWithUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
BindDBResourcePoolWithUserResult::BindDBResourcePoolWithUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindDBResourcePoolWithUserResult::BindDBResourcePoolWithUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindDBResourcePoolWithUserResult::~BindDBResourcePoolWithUserResult()
|
||||
{}
|
||||
|
||||
void BindDBResourcePoolWithUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -49,17 +49,6 @@ void CreateDBClusterRequest::setDBClusterDescription(const std::string& dBCluste
|
||||
setParameter("DBClusterDescription", dBClusterDescription);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getStorageType()const
|
||||
{
|
||||
return storageType_;
|
||||
@@ -71,17 +60,6 @@ void CreateDBClusterRequest::setStorageType(const std::string& storageType)
|
||||
setParameter("StorageType", storageType);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
@@ -104,6 +82,116 @@ void CreateDBClusterRequest::setResourceGroupId(const std::string& resourceGroup
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setPeriod(const std::string& period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", period);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getBackupSetID()const
|
||||
{
|
||||
return backupSetID_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setBackupSetID(const std::string& backupSetID)
|
||||
{
|
||||
backupSetID_ = backupSetID;
|
||||
setParameter("BackupSetID", backupSetID);
|
||||
}
|
||||
|
||||
long CreateDBClusterRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getDBNodeGroupCount()const
|
||||
{
|
||||
return dBNodeGroupCount_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setDBNodeGroupCount(const std::string& dBNodeGroupCount)
|
||||
{
|
||||
dBNodeGroupCount_ = dBNodeGroupCount;
|
||||
setParameter("DBNodeGroupCount", dBNodeGroupCount);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getComputeResource()const
|
||||
{
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setComputeResource(const std::string& computeResource)
|
||||
{
|
||||
computeResource_ = computeResource;
|
||||
setParameter("ComputeResource", computeResource);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getSourceDBInstanceName()const
|
||||
{
|
||||
return sourceDBInstanceName_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setSourceDBInstanceName(const std::string& sourceDBInstanceName)
|
||||
{
|
||||
sourceDBInstanceName_ = sourceDBInstanceName;
|
||||
setParameter("SourceDBInstanceName", sourceDBInstanceName);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getStorageResource()const
|
||||
{
|
||||
return storageResource_;
|
||||
@@ -148,15 +236,15 @@ void CreateDBClusterRequest::setDBClusterNetworkType(const std::string& dBCluste
|
||||
setParameter("DBClusterNetworkType", dBClusterNetworkType);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPeriod()const
|
||||
std::string CreateDBClusterRequest::getRestoreTime()const
|
||||
{
|
||||
return period_;
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setPeriod(const std::string& period)
|
||||
void CreateDBClusterRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", period);
|
||||
restoreTime_ = restoreTime;
|
||||
setParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getResourceOwnerAccount()const
|
||||
@@ -203,28 +291,6 @@ void CreateDBClusterRequest::setDBClusterClass(const std::string& dBClusterClass
|
||||
setParameter("DBClusterClass", dBClusterClass);
|
||||
}
|
||||
|
||||
long CreateDBClusterRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getDBNodeGroupCount()const
|
||||
{
|
||||
return dBNodeGroupCount_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setDBNodeGroupCount(const std::string& dBNodeGroupCount)
|
||||
{
|
||||
dBNodeGroupCount_ = dBNodeGroupCount;
|
||||
setParameter("DBNodeGroupCount", dBNodeGroupCount);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getUsedTime()const
|
||||
{
|
||||
return usedTime_;
|
||||
@@ -236,15 +302,15 @@ void CreateDBClusterRequest::setUsedTime(const std::string& usedTime)
|
||||
setParameter("UsedTime", usedTime);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getVSwitchId()const
|
||||
std::string CreateDBClusterRequest::getRestoreType()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
return restoreType_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
void CreateDBClusterRequest::setRestoreType(const std::string& restoreType)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
restoreType_ = restoreType;
|
||||
setParameter("RestoreType", restoreType);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getDBNodeStorage()const
|
||||
@@ -280,28 +346,6 @@ void CreateDBClusterRequest::setVPCId(const std::string& vPCId)
|
||||
setParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getComputeResource()const
|
||||
{
|
||||
return computeResource_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setComputeResource(const std::string& computeResource)
|
||||
{
|
||||
computeResource_ = computeResource;
|
||||
setParameter("ComputeResource", computeResource);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
|
||||
128
adb/src/model/CreateDBResourcePoolRequest.cc
Normal file
128
adb/src/model/CreateDBResourcePoolRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/adb/model/CreateDBResourcePoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::CreateDBResourcePoolRequest;
|
||||
|
||||
CreateDBResourcePoolRequest::CreateDBResourcePoolRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "CreateDBResourcePool")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDBResourcePoolRequest::~CreateDBResourcePoolRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDBResourcePoolRequest::getPoolName()const
|
||||
{
|
||||
return poolName_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setPoolName(const std::string& poolName)
|
||||
{
|
||||
poolName_ = poolName;
|
||||
setParameter("PoolName", poolName);
|
||||
}
|
||||
|
||||
long CreateDBResourcePoolRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateDBResourcePoolRequest::getNodeNum()const
|
||||
{
|
||||
return nodeNum_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setNodeNum(int nodeNum)
|
||||
{
|
||||
nodeNum_ = nodeNum;
|
||||
setParameter("NodeNum", std::to_string(nodeNum));
|
||||
}
|
||||
|
||||
std::string CreateDBResourcePoolRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDBResourcePoolRequest::getQueryType()const
|
||||
{
|
||||
return queryType_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setQueryType(const std::string& queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setParameter("QueryType", queryType);
|
||||
}
|
||||
|
||||
std::string CreateDBResourcePoolRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateDBResourcePoolRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string CreateDBResourcePoolRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateDBResourcePoolRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDBResourcePoolRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
adb/src/model/CreateDBResourcePoolResult.cc
Normal file
44
adb/src/model/CreateDBResourcePoolResult.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/adb/model/CreateDBResourcePoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
CreateDBResourcePoolResult::CreateDBResourcePoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDBResourcePoolResult::CreateDBResourcePoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDBResourcePoolResult::~CreateDBResourcePoolResult()
|
||||
{}
|
||||
|
||||
void CreateDBResourcePoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
194
adb/src/model/CreateElasticPlanRequest.cc
Normal file
194
adb/src/model/CreateElasticPlanRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/adb/model/CreateElasticPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::CreateElasticPlanRequest;
|
||||
|
||||
CreateElasticPlanRequest::CreateElasticPlanRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "CreateElasticPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateElasticPlanRequest::~CreateElasticPlanRequest()
|
||||
{}
|
||||
|
||||
long CreateElasticPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getElasticPlanTimeStart()const
|
||||
{
|
||||
return elasticPlanTimeStart_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanTimeStart(const std::string& elasticPlanTimeStart)
|
||||
{
|
||||
elasticPlanTimeStart_ = elasticPlanTimeStart;
|
||||
setParameter("ElasticPlanTimeStart", elasticPlanTimeStart);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getElasticPlanEndDay()const
|
||||
{
|
||||
return elasticPlanEndDay_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanEndDay(const std::string& elasticPlanEndDay)
|
||||
{
|
||||
elasticPlanEndDay_ = elasticPlanEndDay;
|
||||
setParameter("ElasticPlanEndDay", elasticPlanEndDay);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getElasticPlanWeeklyRepeat()const
|
||||
{
|
||||
return elasticPlanWeeklyRepeat_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string& elasticPlanWeeklyRepeat)
|
||||
{
|
||||
elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat;
|
||||
setParameter("ElasticPlanWeeklyRepeat", elasticPlanWeeklyRepeat);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool CreateElasticPlanRequest::getElasticPlanEnable()const
|
||||
{
|
||||
return elasticPlanEnable_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable)
|
||||
{
|
||||
elasticPlanEnable_ = elasticPlanEnable;
|
||||
setParameter("ElasticPlanEnable", elasticPlanEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getElasticPlanTimeEnd()const
|
||||
{
|
||||
return elasticPlanTimeEnd_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanTimeEnd(const std::string& elasticPlanTimeEnd)
|
||||
{
|
||||
elasticPlanTimeEnd_ = elasticPlanTimeEnd;
|
||||
setParameter("ElasticPlanTimeEnd", elasticPlanTimeEnd);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getElasticPlanStartDay()const
|
||||
{
|
||||
return elasticPlanStartDay_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanStartDay(const std::string& elasticPlanStartDay)
|
||||
{
|
||||
elasticPlanStartDay_ = elasticPlanStartDay;
|
||||
setParameter("ElasticPlanStartDay", elasticPlanStartDay);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CreateElasticPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getElasticPlanName()const
|
||||
{
|
||||
return elasticPlanName_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName)
|
||||
{
|
||||
elasticPlanName_ = elasticPlanName;
|
||||
setParameter("ElasticPlanName", elasticPlanName);
|
||||
}
|
||||
|
||||
std::string CreateElasticPlanRequest::getResourcePoolName()const
|
||||
{
|
||||
return resourcePoolName_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setResourcePoolName(const std::string& resourcePoolName)
|
||||
{
|
||||
resourcePoolName_ = resourcePoolName;
|
||||
setParameter("ResourcePoolName", resourcePoolName);
|
||||
}
|
||||
|
||||
int CreateElasticPlanRequest::getElasticPlanNodeNum()const
|
||||
{
|
||||
return elasticPlanNodeNum_;
|
||||
}
|
||||
|
||||
void CreateElasticPlanRequest::setElasticPlanNodeNum(int elasticPlanNodeNum)
|
||||
{
|
||||
elasticPlanNodeNum_ = elasticPlanNodeNum;
|
||||
setParameter("ElasticPlanNodeNum", std::to_string(elasticPlanNodeNum));
|
||||
}
|
||||
|
||||
44
adb/src/model/CreateElasticPlanResult.cc
Normal file
44
adb/src/model/CreateElasticPlanResult.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/adb/model/CreateElasticPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
CreateElasticPlanResult::CreateElasticPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateElasticPlanResult::CreateElasticPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateElasticPlanResult::~CreateElasticPlanResult()
|
||||
{}
|
||||
|
||||
void CreateElasticPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -39,6 +39,20 @@ void DeleteDBClusterResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stoi(value["TaskId"].asString());
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DeleteDBClusterResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string DeleteDBClusterResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
|
||||
106
adb/src/model/DeleteDBResourcePoolRequest.cc
Normal file
106
adb/src/model/DeleteDBResourcePoolRequest.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/adb/model/DeleteDBResourcePoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DeleteDBResourcePoolRequest;
|
||||
|
||||
DeleteDBResourcePoolRequest::DeleteDBResourcePoolRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DeleteDBResourcePool")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDBResourcePoolRequest::~DeleteDBResourcePoolRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDBResourcePoolRequest::getPoolName()const
|
||||
{
|
||||
return poolName_;
|
||||
}
|
||||
|
||||
void DeleteDBResourcePoolRequest::setPoolName(const std::string& poolName)
|
||||
{
|
||||
poolName_ = poolName;
|
||||
setParameter("PoolName", poolName);
|
||||
}
|
||||
|
||||
long DeleteDBResourcePoolRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteDBResourcePoolRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDBResourcePoolRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteDBResourcePoolRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DeleteDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DeleteDBResourcePoolRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteDBResourcePoolRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteDBResourcePoolRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
adb/src/model/DeleteDBResourcePoolResult.cc
Normal file
44
adb/src/model/DeleteDBResourcePoolResult.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/adb/model/DeleteDBResourcePoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DeleteDBResourcePoolResult::DeleteDBResourcePoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDBResourcePoolResult::DeleteDBResourcePoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDBResourcePoolResult::~DeleteDBResourcePoolResult()
|
||||
{}
|
||||
|
||||
void DeleteDBResourcePoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
106
adb/src/model/DeleteElasticPlanRequest.cc
Normal file
106
adb/src/model/DeleteElasticPlanRequest.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/adb/model/DeleteElasticPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DeleteElasticPlanRequest;
|
||||
|
||||
DeleteElasticPlanRequest::DeleteElasticPlanRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DeleteElasticPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteElasticPlanRequest::~DeleteElasticPlanRequest()
|
||||
{}
|
||||
|
||||
long DeleteElasticPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteElasticPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteElasticPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteElasticPlanRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteElasticPlanRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DeleteElasticPlanRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DeleteElasticPlanRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteElasticPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteElasticPlanRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteElasticPlanRequest::getElasticPlanName()const
|
||||
{
|
||||
return elasticPlanName_;
|
||||
}
|
||||
|
||||
void DeleteElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName)
|
||||
{
|
||||
elasticPlanName_ = elasticPlanName;
|
||||
setParameter("ElasticPlanName", elasticPlanName);
|
||||
}
|
||||
|
||||
44
adb/src/model/DeleteElasticPlanResult.cc
Normal file
44
adb/src/model/DeleteElasticPlanResult.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/adb/model/DeleteElasticPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DeleteElasticPlanResult::DeleteElasticPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteElasticPlanResult::DeleteElasticPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteElasticPlanResult::~DeleteElasticPlanResult()
|
||||
{}
|
||||
|
||||
void DeleteElasticPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
adb/src/model/DescribeAllAccountsRequest.cc
Normal file
95
adb/src/model/DescribeAllAccountsRequest.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/adb/model/DescribeAllAccountsRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeAllAccountsRequest;
|
||||
|
||||
DescribeAllAccountsRequest::DescribeAllAccountsRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeAllAccounts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAllAccountsRequest::~DescribeAllAccountsRequest()
|
||||
{}
|
||||
|
||||
long DescribeAllAccountsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAllAccountsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAllAccountsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAllAccountsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAllAccountsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAllAccountsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAllAccountsRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeAllAccountsRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeAllAccountsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAllAccountsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAllAccountsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAllAccountsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
57
adb/src/model/DescribeAllAccountsResult.cc
Normal file
57
adb/src/model/DescribeAllAccountsResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeAllAccountsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeAllAccountsResult::DescribeAllAccountsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAllAccountsResult::DescribeAllAccountsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAllAccountsResult::~DescribeAllAccountsResult()
|
||||
{}
|
||||
|
||||
void DescribeAllAccountsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccountListNode = value["AccountList"]["AccountInfo"];
|
||||
for (auto valueAccountListAccountInfo : allAccountListNode)
|
||||
{
|
||||
AccountInfo accountListObject;
|
||||
if(!valueAccountListAccountInfo["User"].isNull())
|
||||
accountListObject.user = valueAccountListAccountInfo["User"].asString();
|
||||
accountList_.push_back(accountListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAllAccountsResult::AccountInfo> DescribeAllAccountsResult::getAccountList()const
|
||||
{
|
||||
return accountList_;
|
||||
}
|
||||
|
||||
@@ -45,24 +45,31 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
AvailableZone availableZoneListObject;
|
||||
if(!valueAvailableZoneListAvailableZone["ZoneId"].isNull())
|
||||
availableZoneListObject.zoneId = valueAvailableZoneListAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedModeNode = allAvailableZoneListNode["SupportedMode"]["SupportedModeItem"];
|
||||
for (auto allAvailableZoneListNodeSupportedModeSupportedModeItem : allSupportedModeNode)
|
||||
auto allSupportedModeNode = valueAvailableZoneListAvailableZone["SupportedMode"]["SupportedModeItem"];
|
||||
for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem : allSupportedModeNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem supportedModeObject;
|
||||
if(!allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].isNull())
|
||||
supportedModeObject.mode = allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].asString();
|
||||
auto allSupportedSerialListNode = allSupportedModeNode["SupportedSerialList"]["SupportedSerialListItem"];
|
||||
for (auto allSupportedModeNodeSupportedSerialListSupportedSerialListItem : allSupportedSerialListNode)
|
||||
if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem["Mode"].isNull())
|
||||
supportedModeObject.mode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem["Mode"].asString();
|
||||
auto allSupportedSerialListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem["SupportedSerialList"]["SupportedSerialListItem"];
|
||||
for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem : allSupportedSerialListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem supportedSerialListObject;
|
||||
if(!allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].isNull())
|
||||
supportedSerialListObject.serial = allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].asString();
|
||||
auto allSupportedFlexibleResourceNode = allSupportedSerialListNode["SupportedFlexibleResource"]["SupportedFlexibleResourceItem"];
|
||||
for (auto allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem : allSupportedFlexibleResourceNode)
|
||||
if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["Serial"].isNull())
|
||||
supportedSerialListObject.serial = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["Serial"].asString();
|
||||
auto allSupportedFlexibleResourceNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["SupportedFlexibleResource"]["SupportedFlexibleResourceItem"];
|
||||
for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedFlexibleResourceSupportedFlexibleResourceItem : allSupportedFlexibleResourceNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedFlexibleResourceItem supportedFlexibleResourceObject;
|
||||
if(!allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].isNull())
|
||||
supportedFlexibleResourceObject.storageType = allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].asString();
|
||||
if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].isNull())
|
||||
supportedFlexibleResourceObject.storageType = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].asString();
|
||||
auto supportedElasticIOResourceNode = value["SupportedElasticIOResource"];
|
||||
if(!supportedElasticIOResourceNode["MinCount"].isNull())
|
||||
supportedFlexibleResourceObject.supportedElasticIOResource.minCount = supportedElasticIOResourceNode["MinCount"].asString();
|
||||
if(!supportedElasticIOResourceNode["MaxCount"].isNull())
|
||||
supportedFlexibleResourceObject.supportedElasticIOResource.maxCount = supportedElasticIOResourceNode["MaxCount"].asString();
|
||||
if(!supportedElasticIOResourceNode["Step"].isNull())
|
||||
supportedFlexibleResourceObject.supportedElasticIOResource.step = supportedElasticIOResourceNode["Step"].asString();
|
||||
auto allSupportedStorageResource = value["SupportedStorageResource"]["SupportedStorageResource"];
|
||||
for (auto value : allSupportedStorageResource)
|
||||
supportedFlexibleResourceObject.supportedStorageResource.push_back(value.asString());
|
||||
@@ -71,16 +78,16 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
supportedFlexibleResourceObject.supportedComputeResource.push_back(value.asString());
|
||||
supportedSerialListObject.supportedFlexibleResource.push_back(supportedFlexibleResourceObject);
|
||||
}
|
||||
auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
||||
for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode)
|
||||
auto allSupportedInstanceClassListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["SupportedInstanceClassList"]["SupportedInstanceClass"];
|
||||
for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass supportedInstanceClassListObject;
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull())
|
||||
supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString();
|
||||
if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull())
|
||||
supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString();
|
||||
auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode)
|
||||
if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull())
|
||||
supportedInstanceClassListObject.instanceClass = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString();
|
||||
if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull())
|
||||
supportedInstanceClassListObject.tips = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["Tips"].asString();
|
||||
auto allSupportedNodeCountListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["SupportedNodeCountList"]["SupportedNodeCount"];
|
||||
for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClassSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject;
|
||||
auto nodeCountNode = value["NodeCount"];
|
||||
@@ -95,8 +102,8 @@ void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
supportedNodeCountListObject.storageSize.push_back(value.asString());
|
||||
supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject);
|
||||
}
|
||||
auto allSupportedExecutorListNode = allSupportedInstanceClassListNode["SupportedExecutorList"]["SupportedExecutor"];
|
||||
for (auto allSupportedInstanceClassListNodeSupportedExecutorListSupportedExecutor : allSupportedExecutorListNode)
|
||||
auto allSupportedExecutorListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["SupportedExecutorList"]["SupportedExecutor"];
|
||||
for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClassSupportedExecutorListSupportedExecutor : allSupportedExecutorListNode)
|
||||
{
|
||||
AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedExecutor supportedExecutorListObject;
|
||||
auto nodeCount1Node = value["NodeCount"];
|
||||
|
||||
95
adb/src/model/DescribeConnectionCountRecordsRequest.cc
Normal file
95
adb/src/model/DescribeConnectionCountRecordsRequest.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/adb/model/DescribeConnectionCountRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeConnectionCountRecordsRequest;
|
||||
|
||||
DescribeConnectionCountRecordsRequest::DescribeConnectionCountRecordsRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeConnectionCountRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeConnectionCountRecordsRequest::~DescribeConnectionCountRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeConnectionCountRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeConnectionCountRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeConnectionCountRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeConnectionCountRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeConnectionCountRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeConnectionCountRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeConnectionCountRecordsRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeConnectionCountRecordsRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeConnectionCountRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeConnectionCountRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeConnectionCountRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeConnectionCountRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
88
adb/src/model/DescribeConnectionCountRecordsResult.cc
Normal file
88
adb/src/model/DescribeConnectionCountRecordsResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeConnectionCountRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeConnectionCountRecordsResult::DescribeConnectionCountRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConnectionCountRecordsResult::DescribeConnectionCountRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConnectionCountRecordsResult::~DescribeConnectionCountRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeConnectionCountRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserRecordsNode = value["UserRecords"]["Users"];
|
||||
for (auto valueUserRecordsUsers : allUserRecordsNode)
|
||||
{
|
||||
Users userRecordsObject;
|
||||
if(!valueUserRecordsUsers["User"].isNull())
|
||||
userRecordsObject.user = valueUserRecordsUsers["User"].asString();
|
||||
if(!valueUserRecordsUsers["Count"].isNull())
|
||||
userRecordsObject.count = std::stol(valueUserRecordsUsers["Count"].asString());
|
||||
userRecords_.push_back(userRecordsObject);
|
||||
}
|
||||
auto allAccessIpRecordsNode = value["AccessIpRecords"]["AccessIps"];
|
||||
for (auto valueAccessIpRecordsAccessIps : allAccessIpRecordsNode)
|
||||
{
|
||||
AccessIps accessIpRecordsObject;
|
||||
if(!valueAccessIpRecordsAccessIps["AccessIp"].isNull())
|
||||
accessIpRecordsObject.accessIp = valueAccessIpRecordsAccessIps["AccessIp"].asString();
|
||||
if(!valueAccessIpRecordsAccessIps["Count"].isNull())
|
||||
accessIpRecordsObject.count = std::stol(valueAccessIpRecordsAccessIps["Count"].asString());
|
||||
accessIpRecords_.push_back(accessIpRecordsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeConnectionCountRecordsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeConnectionCountRecordsResult::Users> DescribeConnectionCountRecordsResult::getUserRecords()const
|
||||
{
|
||||
return userRecords_;
|
||||
}
|
||||
|
||||
std::string DescribeConnectionCountRecordsResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeConnectionCountRecordsResult::AccessIps> DescribeConnectionCountRecordsResult::getAccessIpRecords()const
|
||||
{
|
||||
return accessIpRecords_;
|
||||
}
|
||||
|
||||
@@ -111,14 +111,24 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
|
||||
itemsObject.mode = valueItemsDBCluster["Mode"].asString();
|
||||
if(!valueItemsDBCluster["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||
if(!valueItemsDBCluster["ElasticIOResource"].isNull())
|
||||
itemsObject.elasticIOResource = std::stoi(valueItemsDBCluster["ElasticIOResource"].asString());
|
||||
if(!valueItemsDBCluster["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = valueItemsDBCluster["EngineVersion"].asString();
|
||||
if(!valueItemsDBCluster["UserENIStatus"].isNull())
|
||||
itemsObject.userENIStatus = valueItemsDBCluster["UserENIStatus"].asString() == "true";
|
||||
if(!valueItemsDBCluster["EnableSpark"].isNull())
|
||||
itemsObject.enableSpark = valueItemsDBCluster["EnableSpark"].asString() == "true";
|
||||
if(!valueItemsDBCluster["EnableAirflow"].isNull())
|
||||
itemsObject.enableAirflow = valueItemsDBCluster["EnableAirflow"].asString() == "true";
|
||||
auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"];
|
||||
for (auto valueItemsDBClusterTagsTag : allTagsNode)
|
||||
{
|
||||
DBCluster::Tag tagsObject;
|
||||
if(!allItemsNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allItemsNodeTagsTag["Key"].asString();
|
||||
if(!allItemsNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allItemsNodeTagsTag["Value"].asString();
|
||||
if(!valueItemsDBClusterTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueItemsDBClusterTagsTag["Key"].asString();
|
||||
if(!valueItemsDBClusterTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueItemsDBClusterTagsTag["Value"].asString();
|
||||
itemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
|
||||
@@ -47,12 +47,12 @@ void DescribeDBClusterPerformanceResult::parse(const std::string &payload)
|
||||
performancesObject.key = valuePerformancesPerformanceItem["Key"].asString();
|
||||
if(!valuePerformancesPerformanceItem["Unit"].isNull())
|
||||
performancesObject.unit = valuePerformancesPerformanceItem["Unit"].asString();
|
||||
auto allSeriesNode = allPerformancesNode["Series"]["SeriesItem"];
|
||||
for (auto allPerformancesNodeSeriesSeriesItem : allSeriesNode)
|
||||
auto allSeriesNode = valuePerformancesPerformanceItem["Series"]["SeriesItem"];
|
||||
for (auto valuePerformancesPerformanceItemSeriesSeriesItem : allSeriesNode)
|
||||
{
|
||||
PerformanceItem::SeriesItem seriesObject;
|
||||
if(!allPerformancesNodeSeriesSeriesItem["Name"].isNull())
|
||||
seriesObject.name = allPerformancesNodeSeriesSeriesItem["Name"].asString();
|
||||
if(!valuePerformancesPerformanceItemSeriesSeriesItem["Name"].isNull())
|
||||
seriesObject.name = valuePerformancesPerformanceItemSeriesSeriesItem["Name"].asString();
|
||||
auto allValues = value["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
seriesObject.values.push_back(value.asString());
|
||||
|
||||
139
adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc
Normal file
139
adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeDBClusterResourcePoolPerformanceRequest;
|
||||
|
||||
DescribeDBClusterResourcePoolPerformanceRequest::DescribeDBClusterResourcePoolPerformanceRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterResourcePoolPerformance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterResourcePoolPerformanceRequest::~DescribeDBClusterResourcePoolPerformanceRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourcePools()const
|
||||
{
|
||||
return resourcePools_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setResourcePools(const std::string& resourcePools)
|
||||
{
|
||||
resourcePools_ = resourcePools;
|
||||
setParameter("ResourcePools", resourcePools);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDBClusterResourcePoolPerformanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeDBClusterResourcePoolPerformanceResult::DescribeDBClusterResourcePoolPerformanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterResourcePoolPerformanceResult::DescribeDBClusterResourcePoolPerformanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterResourcePoolPerformanceResult::~DescribeDBClusterResourcePoolPerformanceResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterResourcePoolPerformanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPerformancesNode = value["Performances"]["PerformanceItem"];
|
||||
for (auto valuePerformancesPerformanceItem : allPerformancesNode)
|
||||
{
|
||||
PerformanceItem performancesObject;
|
||||
if(!valuePerformancesPerformanceItem["Key"].isNull())
|
||||
performancesObject.key = valuePerformancesPerformanceItem["Key"].asString();
|
||||
if(!valuePerformancesPerformanceItem["Unit"].isNull())
|
||||
performancesObject.unit = valuePerformancesPerformanceItem["Unit"].asString();
|
||||
auto allResourcePoolPerformancesNode = valuePerformancesPerformanceItem["ResourcePoolPerformances"]["ResourcePoolPerformancesItem"];
|
||||
for (auto valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem : allResourcePoolPerformancesNode)
|
||||
{
|
||||
PerformanceItem::ResourcePoolPerformancesItem resourcePoolPerformancesObject;
|
||||
if(!valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem["ResourcePoolName"].isNull())
|
||||
resourcePoolPerformancesObject.resourcePoolName = valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem["ResourcePoolName"].asString();
|
||||
auto allResourcePoolSeriesNode = valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem["ResourcePoolSeries"]["ResourcePoolSeriesItem"];
|
||||
for (auto valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItemResourcePoolSeriesResourcePoolSeriesItem : allResourcePoolSeriesNode)
|
||||
{
|
||||
PerformanceItem::ResourcePoolPerformancesItem::ResourcePoolSeriesItem resourcePoolSeriesObject;
|
||||
if(!valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItemResourcePoolSeriesResourcePoolSeriesItem["Name"].isNull())
|
||||
resourcePoolSeriesObject.name = valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItemResourcePoolSeriesResourcePoolSeriesItem["Name"].asString();
|
||||
auto allValues = value["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
resourcePoolSeriesObject.values.push_back(value.asString());
|
||||
resourcePoolPerformancesObject.resourcePoolSeries.push_back(resourcePoolSeriesObject);
|
||||
}
|
||||
performancesObject.resourcePoolPerformances.push_back(resourcePoolPerformancesObject);
|
||||
}
|
||||
performances_.push_back(performancesObject);
|
||||
}
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterResourcePoolPerformanceResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterResourcePoolPerformanceResult::PerformanceItem> DescribeDBClusterResourcePoolPerformanceResult::getPerformances()const
|
||||
{
|
||||
return performances_;
|
||||
}
|
||||
|
||||
@@ -109,14 +109,16 @@ void DescribeDBClustersResult::parse(const std::string &payload)
|
||||
itemsObject.mode = valueItemsDBCluster["Mode"].asString();
|
||||
if(!valueItemsDBCluster["ResourceGroupId"].isNull())
|
||||
itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString();
|
||||
auto allTagsNode = allItemsNode["Tags"]["Tag"];
|
||||
for (auto allItemsNodeTagsTag : allTagsNode)
|
||||
if(!valueItemsDBCluster["ElasticIOResource"].isNull())
|
||||
itemsObject.elasticIOResource = std::stoi(valueItemsDBCluster["ElasticIOResource"].asString());
|
||||
auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"];
|
||||
for (auto valueItemsDBClusterTagsTag : allTagsNode)
|
||||
{
|
||||
DBCluster::Tag tagsObject;
|
||||
if(!allItemsNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allItemsNodeTagsTag["Key"].asString();
|
||||
if(!allItemsNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allItemsNodeTagsTag["Value"].asString();
|
||||
if(!valueItemsDBClusterTagsTag["Key"].isNull())
|
||||
tagsObject.key = valueItemsDBClusterTagsTag["Key"].asString();
|
||||
if(!valueItemsDBClusterTagsTag["Value"].isNull())
|
||||
tagsObject.value = valueItemsDBClusterTagsTag["Value"].asString();
|
||||
itemsObject.tags.push_back(tagsObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
|
||||
106
adb/src/model/DescribeDBResourcePoolRequest.cc
Normal file
106
adb/src/model/DescribeDBResourcePoolRequest.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/adb/model/DescribeDBResourcePoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeDBResourcePoolRequest;
|
||||
|
||||
DescribeDBResourcePoolRequest::DescribeDBResourcePoolRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeDBResourcePool")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBResourcePoolRequest::~DescribeDBResourcePoolRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDBResourcePoolRequest::getPoolName()const
|
||||
{
|
||||
return poolName_;
|
||||
}
|
||||
|
||||
void DescribeDBResourcePoolRequest::setPoolName(const std::string& poolName)
|
||||
{
|
||||
poolName_ = poolName;
|
||||
setParameter("PoolName", poolName);
|
||||
}
|
||||
|
||||
long DescribeDBResourcePoolRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBResourcePoolRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBResourcePoolRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBResourcePoolRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBResourcePoolRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBResourcePoolRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBResourcePoolRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
67
adb/src/model/DescribeDBResourcePoolResult.cc
Normal file
67
adb/src/model/DescribeDBResourcePoolResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeDBResourcePoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeDBResourcePoolResult::DescribeDBResourcePoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBResourcePoolResult::DescribeDBResourcePoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBResourcePoolResult::~DescribeDBResourcePoolResult()
|
||||
{}
|
||||
|
||||
void DescribeDBResourcePoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPoolsInfoNode = value["PoolsInfo"]["PoolInfo"];
|
||||
for (auto valuePoolsInfoPoolInfo : allPoolsInfoNode)
|
||||
{
|
||||
PoolInfo poolsInfoObject;
|
||||
if(!valuePoolsInfoPoolInfo["PoolName"].isNull())
|
||||
poolsInfoObject.poolName = valuePoolsInfoPoolInfo["PoolName"].asString();
|
||||
if(!valuePoolsInfoPoolInfo["QueryType"].isNull())
|
||||
poolsInfoObject.queryType = valuePoolsInfoPoolInfo["QueryType"].asString();
|
||||
if(!valuePoolsInfoPoolInfo["NodeNum"].isNull())
|
||||
poolsInfoObject.nodeNum = std::stoi(valuePoolsInfoPoolInfo["NodeNum"].asString());
|
||||
if(!valuePoolsInfoPoolInfo["PoolUsers"].isNull())
|
||||
poolsInfoObject.poolUsers = valuePoolsInfoPoolInfo["PoolUsers"].asString();
|
||||
if(!valuePoolsInfoPoolInfo["CreateTime"].isNull())
|
||||
poolsInfoObject.createTime = valuePoolsInfoPoolInfo["CreateTime"].asString();
|
||||
if(!valuePoolsInfoPoolInfo["UpdateTime"].isNull())
|
||||
poolsInfoObject.updateTime = valuePoolsInfoPoolInfo["UpdateTime"].asString();
|
||||
poolsInfo_.push_back(poolsInfoObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBResourcePoolResult::PoolInfo> DescribeDBResourcePoolResult::getPoolsInfo()const
|
||||
{
|
||||
return poolsInfo_;
|
||||
}
|
||||
|
||||
139
adb/src/model/DescribeElasticDailyPlanRequest.cc
Normal file
139
adb/src/model/DescribeElasticDailyPlanRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeElasticDailyPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeElasticDailyPlanRequest;
|
||||
|
||||
DescribeElasticDailyPlanRequest::DescribeElasticDailyPlanRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeElasticDailyPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeElasticDailyPlanRequest::~DescribeElasticDailyPlanRequest()
|
||||
{}
|
||||
|
||||
long DescribeElasticDailyPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanStatusList()const
|
||||
{
|
||||
return elasticDailyPlanStatusList_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setElasticDailyPlanStatusList(const std::string& elasticDailyPlanStatusList)
|
||||
{
|
||||
elasticDailyPlanStatusList_ = elasticDailyPlanStatusList;
|
||||
setParameter("ElasticDailyPlanStatusList", elasticDailyPlanStatusList);
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanDay()const
|
||||
{
|
||||
return elasticDailyPlanDay_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setElasticDailyPlanDay(const std::string& elasticDailyPlanDay)
|
||||
{
|
||||
elasticDailyPlanDay_ = elasticDailyPlanDay;
|
||||
setParameter("ElasticDailyPlanDay", elasticDailyPlanDay);
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeElasticDailyPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getElasticPlanName()const
|
||||
{
|
||||
return elasticPlanName_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setElasticPlanName(const std::string& elasticPlanName)
|
||||
{
|
||||
elasticPlanName_ = elasticPlanName;
|
||||
setParameter("ElasticPlanName", elasticPlanName);
|
||||
}
|
||||
|
||||
std::string DescribeElasticDailyPlanRequest::getResourcePoolName()const
|
||||
{
|
||||
return resourcePoolName_;
|
||||
}
|
||||
|
||||
void DescribeElasticDailyPlanRequest::setResourcePoolName(const std::string& resourcePoolName)
|
||||
{
|
||||
resourcePoolName_ = resourcePoolName;
|
||||
setParameter("ResourcePoolName", resourcePoolName);
|
||||
}
|
||||
|
||||
73
adb/src/model/DescribeElasticDailyPlanResult.cc
Normal file
73
adb/src/model/DescribeElasticDailyPlanResult.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/adb/model/DescribeElasticDailyPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeElasticDailyPlanResult::DescribeElasticDailyPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeElasticDailyPlanResult::DescribeElasticDailyPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeElasticDailyPlanResult::~DescribeElasticDailyPlanResult()
|
||||
{}
|
||||
|
||||
void DescribeElasticDailyPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allElasticDailyPlanListNode = value["ElasticDailyPlanList"]["ElasticDailyPlanInfo"];
|
||||
for (auto valueElasticDailyPlanListElasticDailyPlanInfo : allElasticDailyPlanListNode)
|
||||
{
|
||||
ElasticDailyPlanInfo elasticDailyPlanListObject;
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanName"].isNull())
|
||||
elasticDailyPlanListObject.planName = valueElasticDailyPlanListElasticDailyPlanInfo["PlanName"].asString();
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["ResourcePoolName"].isNull())
|
||||
elasticDailyPlanListObject.resourcePoolName = valueElasticDailyPlanListElasticDailyPlanInfo["ResourcePoolName"].asString();
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["ElasticNodeNum"].isNull())
|
||||
elasticDailyPlanListObject.elasticNodeNum = std::stoi(valueElasticDailyPlanListElasticDailyPlanInfo["ElasticNodeNum"].asString());
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanStartTs"].isNull())
|
||||
elasticDailyPlanListObject.planStartTs = valueElasticDailyPlanListElasticDailyPlanInfo["PlanStartTs"].asString();
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanEndTs"].isNull())
|
||||
elasticDailyPlanListObject.planEndTs = valueElasticDailyPlanListElasticDailyPlanInfo["PlanEndTs"].asString();
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["StartTs"].isNull())
|
||||
elasticDailyPlanListObject.startTs = valueElasticDailyPlanListElasticDailyPlanInfo["StartTs"].asString();
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["EndTs"].isNull())
|
||||
elasticDailyPlanListObject.endTs = valueElasticDailyPlanListElasticDailyPlanInfo["EndTs"].asString();
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["Day"].isNull())
|
||||
elasticDailyPlanListObject.day = valueElasticDailyPlanListElasticDailyPlanInfo["Day"].asString();
|
||||
if(!valueElasticDailyPlanListElasticDailyPlanInfo["Status"].isNull())
|
||||
elasticDailyPlanListObject.status = std::stoi(valueElasticDailyPlanListElasticDailyPlanInfo["Status"].asString());
|
||||
elasticDailyPlanList_.push_back(elasticDailyPlanListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeElasticDailyPlanResult::ElasticDailyPlanInfo> DescribeElasticDailyPlanResult::getElasticDailyPlanList()const
|
||||
{
|
||||
return elasticDailyPlanList_;
|
||||
}
|
||||
|
||||
128
adb/src/model/DescribeElasticPlanRequest.cc
Normal file
128
adb/src/model/DescribeElasticPlanRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeElasticPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeElasticPlanRequest;
|
||||
|
||||
DescribeElasticPlanRequest::DescribeElasticPlanRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeElasticPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeElasticPlanRequest::~DescribeElasticPlanRequest()
|
||||
{}
|
||||
|
||||
long DescribeElasticPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeElasticPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeElasticPlanRequest::getElasticPlanEnable()const
|
||||
{
|
||||
return elasticPlanEnable_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable)
|
||||
{
|
||||
elasticPlanEnable_ = elasticPlanEnable;
|
||||
setParameter("ElasticPlanEnable", elasticPlanEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeElasticPlanRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeElasticPlanRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeElasticPlanRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeElasticPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeElasticPlanRequest::getElasticPlanName()const
|
||||
{
|
||||
return elasticPlanName_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName)
|
||||
{
|
||||
elasticPlanName_ = elasticPlanName;
|
||||
setParameter("ElasticPlanName", elasticPlanName);
|
||||
}
|
||||
|
||||
std::string DescribeElasticPlanRequest::getResourcePoolName()const
|
||||
{
|
||||
return resourcePoolName_;
|
||||
}
|
||||
|
||||
void DescribeElasticPlanRequest::setResourcePoolName(const std::string& resourcePoolName)
|
||||
{
|
||||
resourcePoolName_ = resourcePoolName;
|
||||
setParameter("ResourcePoolName", resourcePoolName);
|
||||
}
|
||||
|
||||
73
adb/src/model/DescribeElasticPlanResult.cc
Normal file
73
adb/src/model/DescribeElasticPlanResult.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/adb/model/DescribeElasticPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeElasticPlanResult::DescribeElasticPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeElasticPlanResult::DescribeElasticPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeElasticPlanResult::~DescribeElasticPlanResult()
|
||||
{}
|
||||
|
||||
void DescribeElasticPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allElasticPlanListNode = value["ElasticPlanList"]["ElasticPlanInfo"];
|
||||
for (auto valueElasticPlanListElasticPlanInfo : allElasticPlanListNode)
|
||||
{
|
||||
ElasticPlanInfo elasticPlanListObject;
|
||||
if(!valueElasticPlanListElasticPlanInfo["PlanName"].isNull())
|
||||
elasticPlanListObject.planName = valueElasticPlanListElasticPlanInfo["PlanName"].asString();
|
||||
if(!valueElasticPlanListElasticPlanInfo["ResourcePoolName"].isNull())
|
||||
elasticPlanListObject.resourcePoolName = valueElasticPlanListElasticPlanInfo["ResourcePoolName"].asString();
|
||||
if(!valueElasticPlanListElasticPlanInfo["ElasticNodeNum"].isNull())
|
||||
elasticPlanListObject.elasticNodeNum = std::stoi(valueElasticPlanListElasticPlanInfo["ElasticNodeNum"].asString());
|
||||
if(!valueElasticPlanListElasticPlanInfo["StartTime"].isNull())
|
||||
elasticPlanListObject.startTime = valueElasticPlanListElasticPlanInfo["StartTime"].asString();
|
||||
if(!valueElasticPlanListElasticPlanInfo["EndTime"].isNull())
|
||||
elasticPlanListObject.endTime = valueElasticPlanListElasticPlanInfo["EndTime"].asString();
|
||||
if(!valueElasticPlanListElasticPlanInfo["WeeklyRepeat"].isNull())
|
||||
elasticPlanListObject.weeklyRepeat = valueElasticPlanListElasticPlanInfo["WeeklyRepeat"].asString();
|
||||
if(!valueElasticPlanListElasticPlanInfo["StartDay"].isNull())
|
||||
elasticPlanListObject.startDay = valueElasticPlanListElasticPlanInfo["StartDay"].asString();
|
||||
if(!valueElasticPlanListElasticPlanInfo["EndDay"].isNull())
|
||||
elasticPlanListObject.endDay = valueElasticPlanListElasticPlanInfo["EndDay"].asString();
|
||||
if(!valueElasticPlanListElasticPlanInfo["Enable"].isNull())
|
||||
elasticPlanListObject.enable = valueElasticPlanListElasticPlanInfo["Enable"].asString() == "true";
|
||||
elasticPlanList_.push_back(elasticPlanListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeElasticPlanResult::ElasticPlanInfo> DescribeElasticPlanResult::getElasticPlanList()const
|
||||
{
|
||||
return elasticPlanList_;
|
||||
}
|
||||
|
||||
183
adb/src/model/DescribeLoadTasksRecordsRequest.cc
Normal file
183
adb/src/model/DescribeLoadTasksRecordsRequest.cc
Normal file
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeLoadTasksRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeLoadTasksRecordsRequest;
|
||||
|
||||
DescribeLoadTasksRecordsRequest::DescribeLoadTasksRecordsRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeLoadTasksRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLoadTasksRecordsRequest::~DescribeLoadTasksRecordsRequest()
|
||||
{}
|
||||
|
||||
long DescribeLoadTasksRecordsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getRange()const
|
||||
{
|
||||
return range_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setRange(const std::string& range)
|
||||
{
|
||||
range_ = range;
|
||||
setParameter("Range", range);
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeLoadTasksRecordsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int DescribeLoadTasksRecordsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeLoadTasksRecordsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribeLoadTasksRecordsRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
99
adb/src/model/DescribeLoadTasksRecordsResult.cc
Normal file
99
adb/src/model/DescribeLoadTasksRecordsResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeLoadTasksRecordsResult::DescribeLoadTasksRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLoadTasksRecordsResult::DescribeLoadTasksRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLoadTasksRecordsResult::~DescribeLoadTasksRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeLoadTasksRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLoadTasksRecordsNode = value["LoadTasksRecords"]["LoadTaskRecord"];
|
||||
for (auto valueLoadTasksRecordsLoadTaskRecord : allLoadTasksRecordsNode)
|
||||
{
|
||||
LoadTaskRecord loadTasksRecordsObject;
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["ProcessRows"].isNull())
|
||||
loadTasksRecordsObject.processRows = std::stol(valueLoadTasksRecordsLoadTaskRecord["ProcessRows"].asString());
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["State"].isNull())
|
||||
loadTasksRecordsObject.state = valueLoadTasksRecordsLoadTaskRecord["State"].asString();
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["CreateTime"].isNull())
|
||||
loadTasksRecordsObject.createTime = valueLoadTasksRecordsLoadTaskRecord["CreateTime"].asString();
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["JobName"].isNull())
|
||||
loadTasksRecordsObject.jobName = valueLoadTasksRecordsLoadTaskRecord["JobName"].asString();
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["UpdateTime"].isNull())
|
||||
loadTasksRecordsObject.updateTime = valueLoadTasksRecordsLoadTaskRecord["UpdateTime"].asString();
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["DBName"].isNull())
|
||||
loadTasksRecordsObject.dBName = valueLoadTasksRecordsLoadTaskRecord["DBName"].asString();
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["ProcessID"].isNull())
|
||||
loadTasksRecordsObject.processID = valueLoadTasksRecordsLoadTaskRecord["ProcessID"].asString();
|
||||
if(!valueLoadTasksRecordsLoadTaskRecord["Sql"].isNull())
|
||||
loadTasksRecordsObject.sql = valueLoadTasksRecordsLoadTaskRecord["Sql"].asString();
|
||||
loadTasksRecords_.push_back(loadTasksRecordsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLoadTasksRecordsResult::LoadTaskRecord> DescribeLoadTasksRecordsResult::getLoadTasksRecords()const
|
||||
{
|
||||
return loadTasksRecords_;
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeLoadTasksRecordsResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
@@ -49,16 +49,16 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
|
||||
for (auto allRegionsNodeZonesZone : allZonesNode)
|
||||
auto allZonesNode = valueRegionsRegion["Zones"]["Zone"];
|
||||
for (auto valueRegionsRegionZonesZone : allZonesNode)
|
||||
{
|
||||
Region::Zone zonesObject;
|
||||
if(!allRegionsNodeZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = allRegionsNodeZonesZone["ZoneId"].asString();
|
||||
if(!allRegionsNodeZonesZone["VpcEnabled"].isNull())
|
||||
zonesObject.vpcEnabled = allRegionsNodeZonesZone["VpcEnabled"].asString() == "true";
|
||||
if(!allRegionsNodeZonesZone["LocalName"].isNull())
|
||||
zonesObject.localName = allRegionsNodeZonesZone["LocalName"].asString();
|
||||
if(!valueRegionsRegionZonesZone["ZoneId"].isNull())
|
||||
zonesObject.zoneId = valueRegionsRegionZonesZone["ZoneId"].asString();
|
||||
if(!valueRegionsRegionZonesZone["VpcEnabled"].isNull())
|
||||
zonesObject.vpcEnabled = valueRegionsRegionZonesZone["VpcEnabled"].asString() == "true";
|
||||
if(!valueRegionsRegionZonesZone["LocalName"].isNull())
|
||||
zonesObject.localName = valueRegionsRegionZonesZone["LocalName"].asString();
|
||||
regionsObject.zones.push_back(zonesObject);
|
||||
}
|
||||
regions_.push_back(regionsObject);
|
||||
|
||||
106
adb/src/model/DescribeSQLPlanRequest.cc
Normal file
106
adb/src/model/DescribeSQLPlanRequest.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/adb/model/DescribeSQLPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeSQLPlanRequest;
|
||||
|
||||
DescribeSQLPlanRequest::DescribeSQLPlanRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLPlanRequest::~DescribeSQLPlanRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanRequest::getProcessId()const
|
||||
{
|
||||
return processId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanRequest::setProcessId(const std::string& processId)
|
||||
{
|
||||
processId_ = processId;
|
||||
setParameter("ProcessId", processId);
|
||||
}
|
||||
|
||||
130
adb/src/model/DescribeSQLPlanResult.cc
Normal file
130
adb/src/model/DescribeSQLPlanResult.cc
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeSQLPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeSQLPlanResult::DescribeSQLPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLPlanResult::DescribeSQLPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLPlanResult::~DescribeSQLPlanResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStageListNode = value["StageList"]["SqlPlanStage"];
|
||||
for (auto valueStageListSqlPlanStage : allStageListNode)
|
||||
{
|
||||
SqlPlanStage stageListObject;
|
||||
if(!valueStageListSqlPlanStage["StageId"].isNull())
|
||||
stageListObject.stageId = std::stoi(valueStageListSqlPlanStage["StageId"].asString());
|
||||
if(!valueStageListSqlPlanStage["State"].isNull())
|
||||
stageListObject.state = valueStageListSqlPlanStage["State"].asString();
|
||||
if(!valueStageListSqlPlanStage["OperatorCost"].isNull())
|
||||
stageListObject.operatorCost = std::stol(valueStageListSqlPlanStage["OperatorCost"].asString());
|
||||
if(!valueStageListSqlPlanStage["PeakMemory"].isNull())
|
||||
stageListObject.peakMemory = std::stol(valueStageListSqlPlanStage["PeakMemory"].asString());
|
||||
if(!valueStageListSqlPlanStage["CPUTimeMin"].isNull())
|
||||
stageListObject.cPUTimeMin = std::stol(valueStageListSqlPlanStage["CPUTimeMin"].asString());
|
||||
if(!valueStageListSqlPlanStage["CPUTimeMax"].isNull())
|
||||
stageListObject.cPUTimeMax = std::stol(valueStageListSqlPlanStage["CPUTimeMax"].asString());
|
||||
if(!valueStageListSqlPlanStage["CPUTimeAvg"].isNull())
|
||||
stageListObject.cPUTimeAvg = std::stol(valueStageListSqlPlanStage["CPUTimeAvg"].asString());
|
||||
if(!valueStageListSqlPlanStage["InputSizeMin"].isNull())
|
||||
stageListObject.inputSizeMin = std::stol(valueStageListSqlPlanStage["InputSizeMin"].asString());
|
||||
if(!valueStageListSqlPlanStage["InputSizeMax"].isNull())
|
||||
stageListObject.inputSizeMax = std::stol(valueStageListSqlPlanStage["InputSizeMax"].asString());
|
||||
if(!valueStageListSqlPlanStage["InputSizeAvg"].isNull())
|
||||
stageListObject.inputSizeAvg = std::stol(valueStageListSqlPlanStage["InputSizeAvg"].asString());
|
||||
if(!valueStageListSqlPlanStage["ScanSizeMin"].isNull())
|
||||
stageListObject.scanSizeMin = std::stol(valueStageListSqlPlanStage["ScanSizeMin"].asString());
|
||||
if(!valueStageListSqlPlanStage["ScanSizeMax"].isNull())
|
||||
stageListObject.scanSizeMax = std::stol(valueStageListSqlPlanStage["ScanSizeMax"].asString());
|
||||
if(!valueStageListSqlPlanStage["ScanSizeAvg"].isNull())
|
||||
stageListObject.scanSizeAvg = std::stol(valueStageListSqlPlanStage["ScanSizeAvg"].asString());
|
||||
if(!valueStageListSqlPlanStage["ScanTimeMin"].isNull())
|
||||
stageListObject.scanTimeMin = std::stol(valueStageListSqlPlanStage["ScanTimeMin"].asString());
|
||||
if(!valueStageListSqlPlanStage["ScanTimeMax"].isNull())
|
||||
stageListObject.scanTimeMax = std::stol(valueStageListSqlPlanStage["ScanTimeMax"].asString());
|
||||
if(!valueStageListSqlPlanStage["ScanTimeAvg"].isNull())
|
||||
stageListObject.scanTimeAvg = std::stol(valueStageListSqlPlanStage["ScanTimeAvg"].asString());
|
||||
stageList_.push_back(stageListObject);
|
||||
}
|
||||
auto detailNode = value["Detail"];
|
||||
if(!detailNode["SQL"].isNull())
|
||||
detail_.sQL = detailNode["SQL"].asString();
|
||||
if(!detailNode["State"].isNull())
|
||||
detail_.state = detailNode["State"].asString();
|
||||
if(!detailNode["User"].isNull())
|
||||
detail_.user = detailNode["User"].asString();
|
||||
if(!detailNode["ClientIP"].isNull())
|
||||
detail_.clientIP = detailNode["ClientIP"].asString();
|
||||
if(!detailNode["Database"].isNull())
|
||||
detail_.database = detailNode["Database"].asString();
|
||||
if(!detailNode["TotalStage"].isNull())
|
||||
detail_.totalStage = std::stol(detailNode["TotalStage"].asString());
|
||||
if(!detailNode["TotalTask"].isNull())
|
||||
detail_.totalTask = std::stol(detailNode["TotalTask"].asString());
|
||||
if(!detailNode["OutputRows"].isNull())
|
||||
detail_.outputRows = std::stol(detailNode["OutputRows"].asString());
|
||||
if(!detailNode["OutputSize"].isNull())
|
||||
detail_.outputSize = std::stol(detailNode["OutputSize"].asString());
|
||||
if(!detailNode["StartTime"].isNull())
|
||||
detail_.startTime = detailNode["StartTime"].asString();
|
||||
if(!detailNode["TotalTime"].isNull())
|
||||
detail_.totalTime = std::stol(detailNode["TotalTime"].asString());
|
||||
if(!detailNode["QueuedTime"].isNull())
|
||||
detail_.queuedTime = std::stol(detailNode["QueuedTime"].asString());
|
||||
if(!detailNode["PlanningTime"].isNull())
|
||||
detail_.planningTime = std::stol(detailNode["PlanningTime"].asString());
|
||||
if(!detailNode["CPUTime"].isNull())
|
||||
detail_.cPUTime = std::stol(detailNode["CPUTime"].asString());
|
||||
if(!detailNode["PeakMemory"].isNull())
|
||||
detail_.peakMemory = std::stol(detailNode["PeakMemory"].asString());
|
||||
if(!value["OriginInfo"].isNull())
|
||||
originInfo_ = value["OriginInfo"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSQLPlanResult::SqlPlanStage> DescribeSQLPlanResult::getStageList()const
|
||||
{
|
||||
return stageList_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanResult::getOriginInfo()const
|
||||
{
|
||||
return originInfo_;
|
||||
}
|
||||
|
||||
DescribeSQLPlanResult::Detail DescribeSQLPlanResult::getDetail()const
|
||||
{
|
||||
return detail_;
|
||||
}
|
||||
|
||||
117
adb/src/model/DescribeSQLPlanTaskRequest.cc
Normal file
117
adb/src/model/DescribeSQLPlanTaskRequest.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/adb/model/DescribeSQLPlanTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeSQLPlanTaskRequest;
|
||||
|
||||
DescribeSQLPlanTaskRequest::DescribeSQLPlanTaskRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlanTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLPlanTaskRequest::~DescribeSQLPlanTaskRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLPlanTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanTaskRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanTaskRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLPlanTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanTaskRequest::getProcessId()const
|
||||
{
|
||||
return processId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setProcessId(const std::string& processId)
|
||||
{
|
||||
processId_ = processId;
|
||||
setParameter("ProcessId", processId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLPlanTaskRequest::getStageId()const
|
||||
{
|
||||
return stageId_;
|
||||
}
|
||||
|
||||
void DescribeSQLPlanTaskRequest::setStageId(const std::string& stageId)
|
||||
{
|
||||
stageId_ = stageId;
|
||||
setParameter("StageId", stageId);
|
||||
}
|
||||
|
||||
79
adb/src/model/DescribeSQLPlanTaskResult.cc
Normal file
79
adb/src/model/DescribeSQLPlanTaskResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeSQLPlanTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeSQLPlanTaskResult::DescribeSQLPlanTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLPlanTaskResult::DescribeSQLPlanTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLPlanTaskResult::~DescribeSQLPlanTaskResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLPlanTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTaskListNode = value["TaskList"]["SqlPlanTask"];
|
||||
for (auto valueTaskListSqlPlanTask : allTaskListNode)
|
||||
{
|
||||
SqlPlanTask taskListObject;
|
||||
if(!valueTaskListSqlPlanTask["TaskId"].isNull())
|
||||
taskListObject.taskId = std::stoi(valueTaskListSqlPlanTask["TaskId"].asString());
|
||||
if(!valueTaskListSqlPlanTask["State"].isNull())
|
||||
taskListObject.state = valueTaskListSqlPlanTask["State"].asString();
|
||||
if(!valueTaskListSqlPlanTask["ElapsedTime"].isNull())
|
||||
taskListObject.elapsedTime = std::stol(valueTaskListSqlPlanTask["ElapsedTime"].asString());
|
||||
if(!valueTaskListSqlPlanTask["PeakMemory"].isNull())
|
||||
taskListObject.peakMemory = std::stol(valueTaskListSqlPlanTask["PeakMemory"].asString());
|
||||
if(!valueTaskListSqlPlanTask["OperatorCost"].isNull())
|
||||
taskListObject.operatorCost = std::stol(valueTaskListSqlPlanTask["OperatorCost"].asString());
|
||||
if(!valueTaskListSqlPlanTask["InputRows"].isNull())
|
||||
taskListObject.inputRows = std::stol(valueTaskListSqlPlanTask["InputRows"].asString());
|
||||
if(!valueTaskListSqlPlanTask["InputSize"].isNull())
|
||||
taskListObject.inputSize = std::stol(valueTaskListSqlPlanTask["InputSize"].asString());
|
||||
if(!valueTaskListSqlPlanTask["OutputRows"].isNull())
|
||||
taskListObject.outputRows = std::stol(valueTaskListSqlPlanTask["OutputRows"].asString());
|
||||
if(!valueTaskListSqlPlanTask["OutputSize"].isNull())
|
||||
taskListObject.outputSize = std::stol(valueTaskListSqlPlanTask["OutputSize"].asString());
|
||||
if(!valueTaskListSqlPlanTask["ScanRows"].isNull())
|
||||
taskListObject.scanRows = std::stol(valueTaskListSqlPlanTask["ScanRows"].asString());
|
||||
if(!valueTaskListSqlPlanTask["ScanSize"].isNull())
|
||||
taskListObject.scanSize = std::stol(valueTaskListSqlPlanTask["ScanSize"].asString());
|
||||
if(!valueTaskListSqlPlanTask["ScanCost"].isNull())
|
||||
taskListObject.scanCost = std::stol(valueTaskListSqlPlanTask["ScanCost"].asString());
|
||||
taskList_.push_back(taskListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeSQLPlanTaskResult::SqlPlanTask> DescribeSQLPlanTaskResult::getTaskList()const
|
||||
{
|
||||
return taskList_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getRange()const
|
||||
{
|
||||
return range_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setRange(const std::string& range)
|
||||
{
|
||||
range_ = range;
|
||||
setParameter("Range", range);
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
@@ -82,6 +93,28 @@ void DescribeSlowLogRecordsRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -148,3 +181,14 @@ void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName)
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
std::string DescribeSlowLogRecordsRequest::getProcessID()const
|
||||
{
|
||||
return processID_;
|
||||
}
|
||||
|
||||
void DescribeSlowLogRecordsRequest::setProcessID(const std::string& processID)
|
||||
{
|
||||
processID_ = processID;
|
||||
setParameter("ProcessID", processID);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,40 +43,50 @@ void DescribeSlowLogRecordsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsSlowLogRecord : allItemsNode)
|
||||
{
|
||||
SlowLogRecord itemsObject;
|
||||
if(!valueItemsSlowLogRecord["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = valueItemsSlowLogRecord["HostAddress"].asString();
|
||||
if(!valueItemsSlowLogRecord["DBName"].isNull())
|
||||
itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString();
|
||||
if(!valueItemsSlowLogRecord["SQLText"].isNull())
|
||||
itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString();
|
||||
if(!valueItemsSlowLogRecord["QueryTime"].isNull())
|
||||
itemsObject.queryTime = std::stol(valueItemsSlowLogRecord["QueryTime"].asString());
|
||||
if(!valueItemsSlowLogRecord["ReturnRowCounts"].isNull())
|
||||
itemsObject.returnRowCounts = std::stol(valueItemsSlowLogRecord["ReturnRowCounts"].asString());
|
||||
if(!valueItemsSlowLogRecord["OutputSize"].isNull())
|
||||
itemsObject.outputSize = valueItemsSlowLogRecord["OutputSize"].asString();
|
||||
if(!valueItemsSlowLogRecord["UserName"].isNull())
|
||||
itemsObject.userName = valueItemsSlowLogRecord["UserName"].asString();
|
||||
if(!valueItemsSlowLogRecord["PeakMemoryUsage"].isNull())
|
||||
itemsObject.peakMemoryUsage = valueItemsSlowLogRecord["PeakMemoryUsage"].asString();
|
||||
if(!valueItemsSlowLogRecord["ExecutionStartTime"].isNull())
|
||||
itemsObject.executionStartTime = valueItemsSlowLogRecord["ExecutionStartTime"].asString();
|
||||
if(!valueItemsSlowLogRecord["ParseRowCounts"].isNull())
|
||||
itemsObject.parseRowCounts = std::stol(valueItemsSlowLogRecord["ParseRowCounts"].asString());
|
||||
if(!valueItemsSlowLogRecord["ProcessID"].isNull())
|
||||
itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString();
|
||||
if(!valueItemsSlowLogRecord["UserName"].isNull())
|
||||
itemsObject.userName = valueItemsSlowLogRecord["UserName"].asString();
|
||||
if(!valueItemsSlowLogRecord["ScanSize"].isNull())
|
||||
itemsObject.scanSize = valueItemsSlowLogRecord["ScanSize"].asString();
|
||||
if(!valueItemsSlowLogRecord["PeakMemoryUsage"].isNull())
|
||||
itemsObject.peakMemoryUsage = valueItemsSlowLogRecord["PeakMemoryUsage"].asString();
|
||||
if(!valueItemsSlowLogRecord["QueueTime"].isNull())
|
||||
itemsObject.queueTime = std::stol(valueItemsSlowLogRecord["QueueTime"].asString());
|
||||
if(!valueItemsSlowLogRecord["QueryTime"].isNull())
|
||||
itemsObject.queryTime = std::stol(valueItemsSlowLogRecord["QueryTime"].asString());
|
||||
if(!valueItemsSlowLogRecord["ScanTime"].isNull())
|
||||
itemsObject.scanTime = std::stol(valueItemsSlowLogRecord["ScanTime"].asString());
|
||||
if(!valueItemsSlowLogRecord["HostAddress"].isNull())
|
||||
itemsObject.hostAddress = valueItemsSlowLogRecord["HostAddress"].asString();
|
||||
if(!valueItemsSlowLogRecord["SQLText"].isNull())
|
||||
itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString();
|
||||
if(!valueItemsSlowLogRecord["WallTime"].isNull())
|
||||
itemsObject.wallTime = std::stol(valueItemsSlowLogRecord["WallTime"].asString());
|
||||
if(!valueItemsSlowLogRecord["ScanRows"].isNull())
|
||||
itemsObject.scanRows = std::stol(valueItemsSlowLogRecord["ScanRows"].asString());
|
||||
if(!valueItemsSlowLogRecord["State"].isNull())
|
||||
itemsObject.state = valueItemsSlowLogRecord["State"].asString();
|
||||
if(!valueItemsSlowLogRecord["ReturnRowCounts"].isNull())
|
||||
itemsObject.returnRowCounts = std::stol(valueItemsSlowLogRecord["ReturnRowCounts"].asString());
|
||||
if(!valueItemsSlowLogRecord["PlanningTime"].isNull())
|
||||
itemsObject.planningTime = std::stol(valueItemsSlowLogRecord["PlanningTime"].asString());
|
||||
if(!valueItemsSlowLogRecord["DBName"].isNull())
|
||||
itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString();
|
||||
if(!valueItemsSlowLogRecord["QueueTime"].isNull())
|
||||
itemsObject.queueTime = std::stol(valueItemsSlowLogRecord["QueueTime"].asString());
|
||||
if(!valueItemsSlowLogRecord["ProcessID"].isNull())
|
||||
itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString();
|
||||
if(!valueItemsSlowLogRecord["ScanSize"].isNull())
|
||||
itemsObject.scanSize = valueItemsSlowLogRecord["ScanSize"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
|
||||
@@ -47,14 +47,14 @@ void DescribeSlowLogTrendResult::parse(const std::string &payload)
|
||||
itemsObject.key = valueItemsSlowLogTrendItem["Key"].asString();
|
||||
if(!valueItemsSlowLogTrendItem["Unit"].isNull())
|
||||
itemsObject.unit = valueItemsSlowLogTrendItem["Unit"].asString();
|
||||
auto allSeriesNode = allItemsNode["Series"]["SeriesItem"];
|
||||
for (auto allItemsNodeSeriesSeriesItem : allSeriesNode)
|
||||
auto allSeriesNode = valueItemsSlowLogTrendItem["Series"]["SeriesItem"];
|
||||
for (auto valueItemsSlowLogTrendItemSeriesSeriesItem : allSeriesNode)
|
||||
{
|
||||
SlowLogTrendItem::SeriesItem seriesObject;
|
||||
if(!allItemsNodeSeriesSeriesItem["Name"].isNull())
|
||||
seriesObject.name = allItemsNodeSeriesSeriesItem["Name"].asString();
|
||||
if(!allItemsNodeSeriesSeriesItem["Values"].isNull())
|
||||
seriesObject.values = allItemsNodeSeriesSeriesItem["Values"].asString();
|
||||
if(!valueItemsSlowLogTrendItemSeriesSeriesItem["Name"].isNull())
|
||||
seriesObject.name = valueItemsSlowLogTrendItemSeriesSeriesItem["Name"].asString();
|
||||
if(!valueItemsSlowLogTrendItemSeriesSeriesItem["Values"].isNull())
|
||||
seriesObject.values = valueItemsSlowLogTrendItemSeriesSeriesItem["Values"].asString();
|
||||
itemsObject.series.push_back(seriesObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
|
||||
@@ -43,28 +43,28 @@ void DescribeTablePartitionDiagnoseResult::parse(const std::string &payload)
|
||||
for (auto valueItemsTablePartitionDiagnose : allItemsNode)
|
||||
{
|
||||
TablePartitionDiagnose itemsObject;
|
||||
if(!valueItemsTablePartitionDiagnose["SchemaName"].isNull())
|
||||
itemsObject.schemaName = valueItemsTablePartitionDiagnose["SchemaName"].asString();
|
||||
if(!valueItemsTablePartitionDiagnose["TableName"].isNull())
|
||||
itemsObject.tableName = valueItemsTablePartitionDiagnose["TableName"].asString();
|
||||
if(!valueItemsTablePartitionDiagnose["PartitionNumber"].isNull())
|
||||
itemsObject.partitionNumber = std::stoi(valueItemsTablePartitionDiagnose["PartitionNumber"].asString());
|
||||
if(!valueItemsTablePartitionDiagnose["PartitionDetail"].isNull())
|
||||
itemsObject.partitionDetail = valueItemsTablePartitionDiagnose["PartitionDetail"].asString();
|
||||
if(!valueItemsTablePartitionDiagnose["SchemaName"].isNull())
|
||||
itemsObject.schemaName = valueItemsTablePartitionDiagnose["SchemaName"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = std::stoi(value["DBClusterId"].asString());
|
||||
if(!value["SuggestMinRecordsPerPartition"].isNull())
|
||||
suggestMinRecordsPerPartition_ = std::stol(value["SuggestMinRecordsPerPartition"].asString());
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["SuggestMaxRecordsPerPartition"].isNull())
|
||||
suggestMaxRecordsPerPartition_ = std::stol(value["SuggestMaxRecordsPerPartition"].asString());
|
||||
if(!value["SuggestMinRecordsPerPartition"].isNull())
|
||||
suggestMinRecordsPerPartition_ = std::stol(value["SuggestMinRecordsPerPartition"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ int DescribeTablePartitionDiagnoseResult::getPageNumber()const
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeTablePartitionDiagnoseResult::getDBClusterId()const
|
||||
std::string DescribeTablePartitionDiagnoseResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
128
adb/src/model/DescribeTableStatisticsRequest.cc
Normal file
128
adb/src/model/DescribeTableStatisticsRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/adb/model/DescribeTableStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::DescribeTableStatisticsRequest;
|
||||
|
||||
DescribeTableStatisticsRequest::DescribeTableStatisticsRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "DescribeTableStatistics")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTableStatisticsRequest::~DescribeTableStatisticsRequest()
|
||||
{}
|
||||
|
||||
long DescribeTableStatisticsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeTableStatisticsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int DescribeTableStatisticsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeTableStatisticsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTableStatisticsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
99
adb/src/model/DescribeTableStatisticsResult.cc
Normal file
99
adb/src/model/DescribeTableStatisticsResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/adb/model/DescribeTableStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
DescribeTableStatisticsResult::DescribeTableStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTableStatisticsResult::DescribeTableStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTableStatisticsResult::~DescribeTableStatisticsResult()
|
||||
{}
|
||||
|
||||
void DescribeTableStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["TableStatisticRecords"];
|
||||
for (auto valueItemsTableStatisticRecords : allItemsNode)
|
||||
{
|
||||
TableStatisticRecords itemsObject;
|
||||
if(!valueItemsTableStatisticRecords["TableName"].isNull())
|
||||
itemsObject.tableName = valueItemsTableStatisticRecords["TableName"].asString();
|
||||
if(!valueItemsTableStatisticRecords["ColdDataSize"].isNull())
|
||||
itemsObject.coldDataSize = std::stol(valueItemsTableStatisticRecords["ColdDataSize"].asString());
|
||||
if(!valueItemsTableStatisticRecords["DataSize"].isNull())
|
||||
itemsObject.dataSize = std::stol(valueItemsTableStatisticRecords["DataSize"].asString());
|
||||
if(!valueItemsTableStatisticRecords["PrimaryKeyIndexSize"].isNull())
|
||||
itemsObject.primaryKeyIndexSize = std::stol(valueItemsTableStatisticRecords["PrimaryKeyIndexSize"].asString());
|
||||
if(!valueItemsTableStatisticRecords["IndexSize"].isNull())
|
||||
itemsObject.indexSize = std::stol(valueItemsTableStatisticRecords["IndexSize"].asString());
|
||||
if(!valueItemsTableStatisticRecords["RowCount"].isNull())
|
||||
itemsObject.rowCount = std::stol(valueItemsTableStatisticRecords["RowCount"].asString());
|
||||
if(!valueItemsTableStatisticRecords["PartitionCount"].isNull())
|
||||
itemsObject.partitionCount = std::stol(valueItemsTableStatisticRecords["PartitionCount"].asString());
|
||||
if(!valueItemsTableStatisticRecords["SchemaName"].isNull())
|
||||
itemsObject.schemaName = valueItemsTableStatisticRecords["SchemaName"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeTableStatisticsResult::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTableStatisticsResult::TableStatisticRecords> DescribeTableStatisticsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void ModifyBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getEnableBackupLog()const
|
||||
{
|
||||
return enableBackupLog_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyRequest::setEnableBackupLog(const std::string& enableBackupLog)
|
||||
{
|
||||
enableBackupLog_ = enableBackupLog;
|
||||
setParameter("EnableBackupLog", enableBackupLog);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getPreferredBackupPeriod()const
|
||||
{
|
||||
return preferredBackupPeriod_;
|
||||
@@ -126,3 +137,14 @@ void ModifyBackupPolicyRequest::setBackupRetentionPeriod(const std::string& back
|
||||
setParameter("BackupRetentionPeriod", backupRetentionPeriod);
|
||||
}
|
||||
|
||||
int ModifyBackupPolicyRequest::getLogBackupRetentionPeriod()const
|
||||
{
|
||||
return logBackupRetentionPeriod_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyRequest::setLogBackupRetentionPeriod(int logBackupRetentionPeriod)
|
||||
{
|
||||
logBackupRetentionPeriod_ = logBackupRetentionPeriod;
|
||||
setParameter("LogBackupRetentionPeriod", std::to_string(logBackupRetentionPeriod));
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,17 @@ void ModifyDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getStorageResource()const
|
||||
{
|
||||
return storageResource_;
|
||||
@@ -82,6 +93,17 @@ void ModifyDBClusterRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getDBClusterCategory()const
|
||||
{
|
||||
return dBClusterCategory_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setDBClusterCategory(const std::string& dBClusterCategory)
|
||||
{
|
||||
dBClusterCategory_ = dBClusterCategory;
|
||||
setParameter("DBClusterCategory", dBClusterCategory);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -181,3 +203,14 @@ void ModifyDBClusterRequest::setComputeResource(const std::string& computeResour
|
||||
setParameter("ComputeResource", computeResource);
|
||||
}
|
||||
|
||||
int ModifyDBClusterRequest::getElasticIOResource()const
|
||||
{
|
||||
return elasticIOResource_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterRequest::setElasticIOResource(int elasticIOResource)
|
||||
{
|
||||
elasticIOResource_ = elasticIOResource;
|
||||
setParameter("ElasticIOResource", std::to_string(elasticIOResource));
|
||||
}
|
||||
|
||||
|
||||
106
adb/src/model/ModifyDBClusterResourceGroupRequest.cc
Normal file
106
adb/src/model/ModifyDBClusterResourceGroupRequest.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/adb/model/ModifyDBClusterResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::ModifyDBClusterResourceGroupRequest;
|
||||
|
||||
ModifyDBClusterResourceGroupRequest::ModifyDBClusterResourceGroupRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterResourceGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBClusterResourceGroupRequest::~ModifyDBClusterResourceGroupRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBClusterResourceGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterResourceGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterResourceGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterResourceGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterResourceGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterResourceGroupRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterResourceGroupRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterResourceGroupRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBClusterResourceGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterResourceGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterResourceGroupRequest::getNewResourceGroupId()const
|
||||
{
|
||||
return newResourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId)
|
||||
{
|
||||
newResourceGroupId_ = newResourceGroupId;
|
||||
setParameter("NewResourceGroupId", newResourceGroupId);
|
||||
}
|
||||
|
||||
44
adb/src/model/ModifyDBClusterResourceGroupResult.cc
Normal file
44
adb/src/model/ModifyDBClusterResourceGroupResult.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/adb/model/ModifyDBClusterResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
ModifyDBClusterResourceGroupResult::ModifyDBClusterResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBClusterResourceGroupResult::ModifyDBClusterResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBClusterResourceGroupResult::~ModifyDBClusterResourceGroupResult()
|
||||
{}
|
||||
|
||||
void ModifyDBClusterResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
128
adb/src/model/ModifyDBResourcePoolRequest.cc
Normal file
128
adb/src/model/ModifyDBResourcePoolRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/adb/model/ModifyDBResourcePoolRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::ModifyDBResourcePoolRequest;
|
||||
|
||||
ModifyDBResourcePoolRequest::ModifyDBResourcePoolRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "ModifyDBResourcePool")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBResourcePoolRequest::~ModifyDBResourcePoolRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDBResourcePoolRequest::getPoolName()const
|
||||
{
|
||||
return poolName_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setPoolName(const std::string& poolName)
|
||||
{
|
||||
poolName_ = poolName;
|
||||
setParameter("PoolName", poolName);
|
||||
}
|
||||
|
||||
long ModifyDBResourcePoolRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ModifyDBResourcePoolRequest::getNodeNum()const
|
||||
{
|
||||
return nodeNum_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setNodeNum(int nodeNum)
|
||||
{
|
||||
nodeNum_ = nodeNum;
|
||||
setParameter("NodeNum", std::to_string(nodeNum));
|
||||
}
|
||||
|
||||
std::string ModifyDBResourcePoolRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBResourcePoolRequest::getQueryType()const
|
||||
{
|
||||
return queryType_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setQueryType(const std::string& queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setParameter("QueryType", queryType);
|
||||
}
|
||||
|
||||
std::string ModifyDBResourcePoolRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBResourcePoolRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBResourcePoolRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBResourcePoolRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBResourcePoolRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
adb/src/model/ModifyDBResourcePoolResult.cc
Normal file
44
adb/src/model/ModifyDBResourcePoolResult.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/adb/model/ModifyDBResourcePoolResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
ModifyDBResourcePoolResult::ModifyDBResourcePoolResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBResourcePoolResult::ModifyDBResourcePoolResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBResourcePoolResult::~ModifyDBResourcePoolResult()
|
||||
{}
|
||||
|
||||
void ModifyDBResourcePoolResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
194
adb/src/model/ModifyElasticPlanRequest.cc
Normal file
194
adb/src/model/ModifyElasticPlanRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/adb/model/ModifyElasticPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::ModifyElasticPlanRequest;
|
||||
|
||||
ModifyElasticPlanRequest::ModifyElasticPlanRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "ModifyElasticPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyElasticPlanRequest::~ModifyElasticPlanRequest()
|
||||
{}
|
||||
|
||||
long ModifyElasticPlanRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getElasticPlanTimeStart()const
|
||||
{
|
||||
return elasticPlanTimeStart_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanTimeStart(const std::string& elasticPlanTimeStart)
|
||||
{
|
||||
elasticPlanTimeStart_ = elasticPlanTimeStart;
|
||||
setParameter("ElasticPlanTimeStart", elasticPlanTimeStart);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getElasticPlanEndDay()const
|
||||
{
|
||||
return elasticPlanEndDay_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanEndDay(const std::string& elasticPlanEndDay)
|
||||
{
|
||||
elasticPlanEndDay_ = elasticPlanEndDay;
|
||||
setParameter("ElasticPlanEndDay", elasticPlanEndDay);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getElasticPlanWeeklyRepeat()const
|
||||
{
|
||||
return elasticPlanWeeklyRepeat_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string& elasticPlanWeeklyRepeat)
|
||||
{
|
||||
elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat;
|
||||
setParameter("ElasticPlanWeeklyRepeat", elasticPlanWeeklyRepeat);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool ModifyElasticPlanRequest::getElasticPlanEnable()const
|
||||
{
|
||||
return elasticPlanEnable_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable)
|
||||
{
|
||||
elasticPlanEnable_ = elasticPlanEnable;
|
||||
setParameter("ElasticPlanEnable", elasticPlanEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getElasticPlanTimeEnd()const
|
||||
{
|
||||
return elasticPlanTimeEnd_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanTimeEnd(const std::string& elasticPlanTimeEnd)
|
||||
{
|
||||
elasticPlanTimeEnd_ = elasticPlanTimeEnd;
|
||||
setParameter("ElasticPlanTimeEnd", elasticPlanTimeEnd);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getElasticPlanStartDay()const
|
||||
{
|
||||
return elasticPlanStartDay_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanStartDay(const std::string& elasticPlanStartDay)
|
||||
{
|
||||
elasticPlanStartDay_ = elasticPlanStartDay;
|
||||
setParameter("ElasticPlanStartDay", elasticPlanStartDay);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyElasticPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getElasticPlanName()const
|
||||
{
|
||||
return elasticPlanName_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName)
|
||||
{
|
||||
elasticPlanName_ = elasticPlanName;
|
||||
setParameter("ElasticPlanName", elasticPlanName);
|
||||
}
|
||||
|
||||
std::string ModifyElasticPlanRequest::getResourcePoolName()const
|
||||
{
|
||||
return resourcePoolName_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setResourcePoolName(const std::string& resourcePoolName)
|
||||
{
|
||||
resourcePoolName_ = resourcePoolName;
|
||||
setParameter("ResourcePoolName", resourcePoolName);
|
||||
}
|
||||
|
||||
int ModifyElasticPlanRequest::getElasticPlanNodeNum()const
|
||||
{
|
||||
return elasticPlanNodeNum_;
|
||||
}
|
||||
|
||||
void ModifyElasticPlanRequest::setElasticPlanNodeNum(int elasticPlanNodeNum)
|
||||
{
|
||||
elasticPlanNodeNum_ = elasticPlanNodeNum;
|
||||
setParameter("ElasticPlanNodeNum", std::to_string(elasticPlanNodeNum));
|
||||
}
|
||||
|
||||
44
adb/src/model/ModifyElasticPlanResult.cc
Normal file
44
adb/src/model/ModifyElasticPlanResult.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/adb/model/ModifyElasticPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
ModifyElasticPlanResult::ModifyElasticPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyElasticPlanResult::ModifyElasticPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyElasticPlanResult::~ModifyElasticPlanResult()
|
||||
{}
|
||||
|
||||
void ModifyElasticPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
117
adb/src/model/UnbindDBResourcePoolWithUserRequest.cc
Normal file
117
adb/src/model/UnbindDBResourcePoolWithUserRequest.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/adb/model/UnbindDBResourcePoolWithUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Adb::Model::UnbindDBResourcePoolWithUserRequest;
|
||||
|
||||
UnbindDBResourcePoolWithUserRequest::UnbindDBResourcePoolWithUserRequest() :
|
||||
RpcServiceRequest("adb", "2019-03-15", "UnbindDBResourcePoolWithUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnbindDBResourcePoolWithUserRequest::~UnbindDBResourcePoolWithUserRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindDBResourcePoolWithUserRequest::getPoolName()const
|
||||
{
|
||||
return poolName_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setPoolName(const std::string& poolName)
|
||||
{
|
||||
poolName_ = poolName;
|
||||
setParameter("PoolName", poolName);
|
||||
}
|
||||
|
||||
long UnbindDBResourcePoolWithUserRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnbindDBResourcePoolWithUserRequest::getPoolUser()const
|
||||
{
|
||||
return poolUser_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setPoolUser(const std::string& poolUser)
|
||||
{
|
||||
poolUser_ = poolUser;
|
||||
setParameter("PoolUser", poolUser);
|
||||
}
|
||||
|
||||
std::string UnbindDBResourcePoolWithUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UnbindDBResourcePoolWithUserRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnbindDBResourcePoolWithUserRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string UnbindDBResourcePoolWithUserRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UnbindDBResourcePoolWithUserRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnbindDBResourcePoolWithUserRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
adb/src/model/UnbindDBResourcePoolWithUserResult.cc
Normal file
44
adb/src/model/UnbindDBResourcePoolWithUserResult.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/adb/model/UnbindDBResourcePoolWithUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Adb;
|
||||
using namespace AlibabaCloud::Adb::Model;
|
||||
|
||||
UnbindDBResourcePoolWithUserResult::UnbindDBResourcePoolWithUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindDBResourcePoolWithUserResult::UnbindDBResourcePoolWithUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindDBResourcePoolWithUserResult::~UnbindDBResourcePoolWithUserResult()
|
||||
{}
|
||||
|
||||
void UnbindDBResourcePoolWithUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user