Generated 2019-09-01 for OceanBasePro.
This commit is contained in:
@@ -51,6 +51,78 @@ OceanBaseProClient::OceanBaseProClient(const std::string & accessKeyId, const st
|
||||
OceanBaseProClient::~OceanBaseProClient()
|
||||
{}
|
||||
|
||||
OceanBaseProClient::CancelProjectModifyRecordOutcome OceanBaseProClient::cancelProjectModifyRecord(const CancelProjectModifyRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelProjectModifyRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelProjectModifyRecordOutcome(CancelProjectModifyRecordResult(outcome.result()));
|
||||
else
|
||||
return CancelProjectModifyRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::cancelProjectModifyRecordAsync(const CancelProjectModifyRecordRequest& request, const CancelProjectModifyRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelProjectModifyRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::CancelProjectModifyRecordOutcomeCallable OceanBaseProClient::cancelProjectModifyRecordCallable(const CancelProjectModifyRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelProjectModifyRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelProjectModifyRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateBackupSetDownloadLinkOutcome OceanBaseProClient::createBackupSetDownloadLink(const CreateBackupSetDownloadLinkRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBackupSetDownloadLinkOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBackupSetDownloadLinkOutcome(CreateBackupSetDownloadLinkResult(outcome.result()));
|
||||
else
|
||||
return CreateBackupSetDownloadLinkOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::createBackupSetDownloadLinkAsync(const CreateBackupSetDownloadLinkRequest& request, const CreateBackupSetDownloadLinkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBackupSetDownloadLink(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateBackupSetDownloadLinkOutcomeCallable OceanBaseProClient::createBackupSetDownloadLinkCallable(const CreateBackupSetDownloadLinkRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBackupSetDownloadLinkOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBackupSetDownloadLink(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateDatabaseOutcome OceanBaseProClient::createDatabase(const CreateDatabaseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,42 +339,6 @@ OceanBaseProClient::CreateOmsMysqlDataSourceOutcomeCallable OceanBaseProClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateOmsOpenAPIProjectOutcome OceanBaseProClient::createOmsOpenAPIProject(const CreateOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateOmsOpenAPIProjectOutcome(CreateOmsOpenAPIProjectResult(outcome.result()));
|
||||
else
|
||||
return CreateOmsOpenAPIProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::createOmsOpenAPIProjectAsync(const CreateOmsOpenAPIProjectRequest& request, const CreateOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createOmsOpenAPIProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::createOmsOpenAPIProjectCallable(const CreateOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateOmsOpenAPIProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createOmsOpenAPIProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateProjectOutcome OceanBaseProClient::createProject(const CreateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +375,78 @@ OceanBaseProClient::CreateProjectOutcomeCallable OceanBaseProClient::createProje
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateProjectModifyRecordsOutcome OceanBaseProClient::createProjectModifyRecords(const CreateProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateProjectModifyRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateProjectModifyRecordsOutcome(CreateProjectModifyRecordsResult(outcome.result()));
|
||||
else
|
||||
return CreateProjectModifyRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::createProjectModifyRecordsAsync(const CreateProjectModifyRecordsRequest& request, const CreateProjectModifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createProjectModifyRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateProjectModifyRecordsOutcomeCallable OceanBaseProClient::createProjectModifyRecordsCallable(const CreateProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateProjectModifyRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createProjectModifyRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateRdsPostgreSQLDataSourceOutcome OceanBaseProClient::createRdsPostgreSQLDataSource(const CreateRdsPostgreSQLDataSourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRdsPostgreSQLDataSourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRdsPostgreSQLDataSourceOutcome(CreateRdsPostgreSQLDataSourceResult(outcome.result()));
|
||||
else
|
||||
return CreateRdsPostgreSQLDataSourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::createRdsPostgreSQLDataSourceAsync(const CreateRdsPostgreSQLDataSourceRequest& request, const CreateRdsPostgreSQLDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRdsPostgreSQLDataSource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateRdsPostgreSQLDataSourceOutcomeCallable OceanBaseProClient::createRdsPostgreSQLDataSourceCallable(const CreateRdsPostgreSQLDataSourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRdsPostgreSQLDataSourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRdsPostgreSQLDataSource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::CreateSecurityIpGroupOutcome OceanBaseProClient::createSecurityIpGroup(const CreateSecurityIpGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +627,42 @@ OceanBaseProClient::CreateTenantUserOutcomeCallable OceanBaseProClient::createTe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DeleteDataSourceOutcome OceanBaseProClient::deleteDataSource(const DeleteDataSourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDataSourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDataSourceOutcome(DeleteDataSourceResult(outcome.result()));
|
||||
else
|
||||
return DeleteDataSourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::deleteDataSourceAsync(const DeleteDataSourceRequest& request, const DeleteDataSourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDataSource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::DeleteDataSourceOutcomeCallable OceanBaseProClient::deleteDataSourceCallable(const DeleteDataSourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDataSourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDataSource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DeleteDatabasesOutcome OceanBaseProClient::deleteDatabases(const DeleteDatabasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,42 +735,6 @@ OceanBaseProClient::DeleteInstancesOutcomeCallable OceanBaseProClient::deleteIns
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DeleteOmsOpenAPIProjectOutcome OceanBaseProClient::deleteOmsOpenAPIProject(const DeleteOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteOmsOpenAPIProjectOutcome(DeleteOmsOpenAPIProjectResult(outcome.result()));
|
||||
else
|
||||
return DeleteOmsOpenAPIProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::deleteOmsOpenAPIProjectAsync(const DeleteOmsOpenAPIProjectRequest& request, const DeleteOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteOmsOpenAPIProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::DeleteOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::deleteOmsOpenAPIProjectCallable(const DeleteOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteOmsOpenAPIProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteOmsOpenAPIProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DeleteProjectOutcome OceanBaseProClient::deleteProject(const DeleteProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1095,42 @@ OceanBaseProClient::DescribeAvailableZoneOutcomeCallable OceanBaseProClient::des
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeBackupSetDownloadLinkOutcome OceanBaseProClient::describeBackupSetDownloadLink(const DescribeBackupSetDownloadLinkRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupSetDownloadLinkOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupSetDownloadLinkOutcome(DescribeBackupSetDownloadLinkResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupSetDownloadLinkOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::describeBackupSetDownloadLinkAsync(const DescribeBackupSetDownloadLinkRequest& request, const DescribeBackupSetDownloadLinkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupSetDownloadLink(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeBackupSetDownloadLinkOutcomeCallable OceanBaseProClient::describeBackupSetDownloadLinkCallable(const DescribeBackupSetDownloadLinkRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupSetDownloadLinkOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupSetDownloadLink(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeCharsetOutcome OceanBaseProClient::describeCharset(const DescribeCharsetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1167,42 @@ OceanBaseProClient::DescribeCharsetOutcomeCallable OceanBaseProClient::describeC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeDataBackupSetOutcome OceanBaseProClient::describeDataBackupSet(const DescribeDataBackupSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDataBackupSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDataBackupSetOutcome(DescribeDataBackupSetResult(outcome.result()));
|
||||
else
|
||||
return DescribeDataBackupSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::describeDataBackupSetAsync(const DescribeDataBackupSetRequest& request, const DescribeDataBackupSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDataBackupSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeDataBackupSetOutcomeCallable OceanBaseProClient::describeDataBackupSetCallable(const DescribeDataBackupSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDataBackupSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDataBackupSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeDatabasesOutcome OceanBaseProClient::describeDatabases(const DescribeDatabasesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,78 +1815,6 @@ OceanBaseProClient::DescribeOasTopSQLListOutcomeCallable OceanBaseProClient::des
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeOmsOpenAPIProjectOutcome OceanBaseProClient::describeOmsOpenAPIProject(const DescribeOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeOmsOpenAPIProjectOutcome(DescribeOmsOpenAPIProjectResult(outcome.result()));
|
||||
else
|
||||
return DescribeOmsOpenAPIProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::describeOmsOpenAPIProjectAsync(const DescribeOmsOpenAPIProjectRequest& request, const DescribeOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeOmsOpenAPIProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::describeOmsOpenAPIProjectCallable(const DescribeOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeOmsOpenAPIProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeOmsOpenAPIProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeOmsOpenAPIProjectStepsOutcome OceanBaseProClient::describeOmsOpenAPIProjectSteps(const DescribeOmsOpenAPIProjectStepsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeOmsOpenAPIProjectStepsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeOmsOpenAPIProjectStepsOutcome(DescribeOmsOpenAPIProjectStepsResult(outcome.result()));
|
||||
else
|
||||
return DescribeOmsOpenAPIProjectStepsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::describeOmsOpenAPIProjectStepsAsync(const DescribeOmsOpenAPIProjectStepsRequest& request, const DescribeOmsOpenAPIProjectStepsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeOmsOpenAPIProjectSteps(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeOmsOpenAPIProjectStepsOutcomeCallable OceanBaseProClient::describeOmsOpenAPIProjectStepsCallable(const DescribeOmsOpenAPIProjectStepsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeOmsOpenAPIProjectStepsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeOmsOpenAPIProjectSteps(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeOutlineBindingOutcome OceanBaseProClient::describeOutlineBinding(const DescribeOutlineBindingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2175,6 +2283,42 @@ OceanBaseProClient::DescribeSQLSamplesOutcomeCallable OceanBaseProClient::descri
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeSampleSqlRawTextsOutcome OceanBaseProClient::describeSampleSqlRawTexts(const DescribeSampleSqlRawTextsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSampleSqlRawTextsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSampleSqlRawTextsOutcome(DescribeSampleSqlRawTextsResult(outcome.result()));
|
||||
else
|
||||
return DescribeSampleSqlRawTextsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::describeSampleSqlRawTextsAsync(const DescribeSampleSqlRawTextsRequest& request, const DescribeSampleSqlRawTextsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSampleSqlRawTexts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeSampleSqlRawTextsOutcomeCallable OceanBaseProClient::describeSampleSqlRawTextsCallable(const DescribeSampleSqlRawTextsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSampleSqlRawTextsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSampleSqlRawTexts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::DescribeSecurityIpGroupsOutcome OceanBaseProClient::describeSecurityIpGroups(const DescribeSecurityIpGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2931,6 +3075,42 @@ OceanBaseProClient::ListProjectFullVerifyResultOutcomeCallable OceanBaseProClien
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::ListProjectModifyRecordsOutcome OceanBaseProClient::listProjectModifyRecords(const ListProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProjectModifyRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProjectModifyRecordsOutcome(ListProjectModifyRecordsResult(outcome.result()));
|
||||
else
|
||||
return ListProjectModifyRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::listProjectModifyRecordsAsync(const ListProjectModifyRecordsRequest& request, const ListProjectModifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProjectModifyRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::ListProjectModifyRecordsOutcomeCallable OceanBaseProClient::listProjectModifyRecordsCallable(const ListProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProjectModifyRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProjectModifyRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::ListProjectsOutcome OceanBaseProClient::listProjects(const ListProjectsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3651,42 +3831,6 @@ OceanBaseProClient::ModifyTenantUserStatusOutcomeCallable OceanBaseProClient::mo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::ReleaseOmsOpenAPIProjectOutcome OceanBaseProClient::releaseOmsOpenAPIProject(const ReleaseOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReleaseOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReleaseOmsOpenAPIProjectOutcome(ReleaseOmsOpenAPIProjectResult(outcome.result()));
|
||||
else
|
||||
return ReleaseOmsOpenAPIProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::releaseOmsOpenAPIProjectAsync(const ReleaseOmsOpenAPIProjectRequest& request, const ReleaseOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, releaseOmsOpenAPIProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::ReleaseOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::releaseOmsOpenAPIProjectCallable(const ReleaseOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReleaseOmsOpenAPIProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->releaseOmsOpenAPIProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::ReleaseProjectOutcome OceanBaseProClient::releaseProject(const ReleaseProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3723,72 +3867,36 @@ OceanBaseProClient::ReleaseProjectOutcomeCallable OceanBaseProClient::releasePro
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::ResetOmsOpenAPIProjectOutcome OceanBaseProClient::resetOmsOpenAPIProject(const ResetOmsOpenAPIProjectRequest &request) const
|
||||
OceanBaseProClient::ReleaseWorkerInstanceOutcome OceanBaseProClient::releaseWorkerInstance(const ReleaseWorkerInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ResetOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
return ReleaseWorkerInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ResetOmsOpenAPIProjectOutcome(ResetOmsOpenAPIProjectResult(outcome.result()));
|
||||
return ReleaseWorkerInstanceOutcome(ReleaseWorkerInstanceResult(outcome.result()));
|
||||
else
|
||||
return ResetOmsOpenAPIProjectOutcome(outcome.error());
|
||||
return ReleaseWorkerInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::resetOmsOpenAPIProjectAsync(const ResetOmsOpenAPIProjectRequest& request, const ResetOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void OceanBaseProClient::releaseWorkerInstanceAsync(const ReleaseWorkerInstanceRequest& request, const ReleaseWorkerInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, resetOmsOpenAPIProject(request), context);
|
||||
handler(this, request, releaseWorkerInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::ResetOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::resetOmsOpenAPIProjectCallable(const ResetOmsOpenAPIProjectRequest &request) const
|
||||
OceanBaseProClient::ReleaseWorkerInstanceOutcomeCallable OceanBaseProClient::releaseWorkerInstanceCallable(const ReleaseWorkerInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ResetOmsOpenAPIProjectOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<ReleaseWorkerInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->resetOmsOpenAPIProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::ResumeOmsOpenAPIProjectOutcome OceanBaseProClient::resumeOmsOpenAPIProject(const ResumeOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ResumeOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ResumeOmsOpenAPIProjectOutcome(ResumeOmsOpenAPIProjectResult(outcome.result()));
|
||||
else
|
||||
return ResumeOmsOpenAPIProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::resumeOmsOpenAPIProjectAsync(const ResumeOmsOpenAPIProjectRequest& request, const ResumeOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, resumeOmsOpenAPIProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::ResumeOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::resumeOmsOpenAPIProjectCallable(const ResumeOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ResumeOmsOpenAPIProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->resumeOmsOpenAPIProject(request);
|
||||
return this->releaseWorkerInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -3831,108 +3939,36 @@ OceanBaseProClient::ResumeProjectOutcomeCallable OceanBaseProClient::resumeProje
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::SearchOmsOpenAPIMonitorMetricOutcome OceanBaseProClient::searchOmsOpenAPIMonitorMetric(const SearchOmsOpenAPIMonitorMetricRequest &request) const
|
||||
OceanBaseProClient::RetryProjectModifyRecordsOutcome OceanBaseProClient::retryProjectModifyRecords(const RetryProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchOmsOpenAPIMonitorMetricOutcome(endpointOutcome.error());
|
||||
return RetryProjectModifyRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchOmsOpenAPIMonitorMetricOutcome(SearchOmsOpenAPIMonitorMetricResult(outcome.result()));
|
||||
return RetryProjectModifyRecordsOutcome(RetryProjectModifyRecordsResult(outcome.result()));
|
||||
else
|
||||
return SearchOmsOpenAPIMonitorMetricOutcome(outcome.error());
|
||||
return RetryProjectModifyRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::searchOmsOpenAPIMonitorMetricAsync(const SearchOmsOpenAPIMonitorMetricRequest& request, const SearchOmsOpenAPIMonitorMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void OceanBaseProClient::retryProjectModifyRecordsAsync(const RetryProjectModifyRecordsRequest& request, const RetryProjectModifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchOmsOpenAPIMonitorMetric(request), context);
|
||||
handler(this, request, retryProjectModifyRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::SearchOmsOpenAPIMonitorMetricOutcomeCallable OceanBaseProClient::searchOmsOpenAPIMonitorMetricCallable(const SearchOmsOpenAPIMonitorMetricRequest &request) const
|
||||
OceanBaseProClient::RetryProjectModifyRecordsOutcomeCallable OceanBaseProClient::retryProjectModifyRecordsCallable(const RetryProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchOmsOpenAPIMonitorMetricOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<RetryProjectModifyRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchOmsOpenAPIMonitorMetric(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::SearchOmsOpenAPIProjectsOutcome OceanBaseProClient::searchOmsOpenAPIProjects(const SearchOmsOpenAPIProjectsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchOmsOpenAPIProjectsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchOmsOpenAPIProjectsOutcome(SearchOmsOpenAPIProjectsResult(outcome.result()));
|
||||
else
|
||||
return SearchOmsOpenAPIProjectsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::searchOmsOpenAPIProjectsAsync(const SearchOmsOpenAPIProjectsRequest& request, const SearchOmsOpenAPIProjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchOmsOpenAPIProjects(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::SearchOmsOpenAPIProjectsOutcomeCallable OceanBaseProClient::searchOmsOpenAPIProjectsCallable(const SearchOmsOpenAPIProjectsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchOmsOpenAPIProjectsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchOmsOpenAPIProjects(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::StartOmsOpenAPIProjectOutcome OceanBaseProClient::startOmsOpenAPIProject(const StartOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartOmsOpenAPIProjectOutcome(StartOmsOpenAPIProjectResult(outcome.result()));
|
||||
else
|
||||
return StartOmsOpenAPIProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::startOmsOpenAPIProjectAsync(const StartOmsOpenAPIProjectRequest& request, const StartOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startOmsOpenAPIProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::StartOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::startOmsOpenAPIProjectCallable(const StartOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartOmsOpenAPIProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startOmsOpenAPIProject(request);
|
||||
return this->retryProjectModifyRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -4011,42 +4047,6 @@ OceanBaseProClient::StartProjectsByLabelOutcomeCallable OceanBaseProClient::star
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::StopOmsOpenAPIProjectOutcome OceanBaseProClient::stopOmsOpenAPIProject(const StopOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopOmsOpenAPIProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopOmsOpenAPIProjectOutcome(StopOmsOpenAPIProjectResult(outcome.result()));
|
||||
else
|
||||
return StopOmsOpenAPIProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::stopOmsOpenAPIProjectAsync(const StopOmsOpenAPIProjectRequest& request, const StopOmsOpenAPIProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopOmsOpenAPIProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::StopOmsOpenAPIProjectOutcomeCallable OceanBaseProClient::stopOmsOpenAPIProjectCallable(const StopOmsOpenAPIProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopOmsOpenAPIProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopOmsOpenAPIProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::StopProjectOutcome OceanBaseProClient::stopProject(const StopProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4083,6 +4083,42 @@ OceanBaseProClient::StopProjectOutcomeCallable OceanBaseProClient::stopProjectCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::StopProjectModifyRecordsOutcome OceanBaseProClient::stopProjectModifyRecords(const StopProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopProjectModifyRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopProjectModifyRecordsOutcome(StopProjectModifyRecordsResult(outcome.result()));
|
||||
else
|
||||
return StopProjectModifyRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OceanBaseProClient::stopProjectModifyRecordsAsync(const StopProjectModifyRecordsRequest& request, const StopProjectModifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopProjectModifyRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OceanBaseProClient::StopProjectModifyRecordsOutcomeCallable OceanBaseProClient::stopProjectModifyRecordsCallable(const StopProjectModifyRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopProjectModifyRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopProjectModifyRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OceanBaseProClient::StopProjectsByLabelOutcome OceanBaseProClient::stopProjectsByLabel(const StopProjectsByLabelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
36
oceanbasepro/src/model/CancelProjectModifyRecordRequest.cc
Normal file
36
oceanbasepro/src/model/CancelProjectModifyRecordRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/CancelProjectModifyRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::CancelProjectModifyRecordRequest;
|
||||
|
||||
CancelProjectModifyRecordRequest::CancelProjectModifyRecordRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "CancelProjectModifyRecord") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelProjectModifyRecordRequest::~CancelProjectModifyRecordRequest() {}
|
||||
|
||||
std::string CancelProjectModifyRecordRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CancelProjectModifyRecordRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/CancelProjectModifyRecordResult.cc
Normal file
44
oceanbasepro/src/model/CancelProjectModifyRecordResult.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/oceanbasepro/model/CancelProjectModifyRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
CancelProjectModifyRecordResult::CancelProjectModifyRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelProjectModifyRecordResult::CancelProjectModifyRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelProjectModifyRecordResult::~CancelProjectModifyRecordResult()
|
||||
{}
|
||||
|
||||
void CancelProjectModifyRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
oceanbasepro/src/model/CreateBackupSetDownloadLinkRequest.cc
Normal file
45
oceanbasepro/src/model/CreateBackupSetDownloadLinkRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/CreateBackupSetDownloadLinkRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::CreateBackupSetDownloadLinkRequest;
|
||||
|
||||
CreateBackupSetDownloadLinkRequest::CreateBackupSetDownloadLinkRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "CreateBackupSetDownloadLink") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBackupSetDownloadLinkRequest::~CreateBackupSetDownloadLinkRequest() {}
|
||||
|
||||
std::string CreateBackupSetDownloadLinkRequest::getBackupSetId() const {
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void CreateBackupSetDownloadLinkRequest::setBackupSetId(const std::string &backupSetId) {
|
||||
backupSetId_ = backupSetId;
|
||||
setBodyParameter(std::string("BackupSetId"), backupSetId);
|
||||
}
|
||||
|
||||
std::string CreateBackupSetDownloadLinkRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateBackupSetDownloadLinkRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/CreateBackupSetDownloadLinkResult.cc
Normal file
51
oceanbasepro/src/model/CreateBackupSetDownloadLinkResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/CreateBackupSetDownloadLinkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
CreateBackupSetDownloadLinkResult::CreateBackupSetDownloadLinkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupSetDownloadLinkResult::CreateBackupSetDownloadLinkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupSetDownloadLinkResult::~CreateBackupSetDownloadLinkResult()
|
||||
{}
|
||||
|
||||
void CreateBackupSetDownloadLinkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DownloadTaskId"].isNull())
|
||||
downloadTaskId_ = std::stol(value["DownloadTaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateBackupSetDownloadLinkResult::getDownloadTaskId()const
|
||||
{
|
||||
return downloadTaskId_;
|
||||
}
|
||||
|
||||
@@ -1,178 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/CreateOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::CreateOmsOpenAPIProjectRequest;
|
||||
|
||||
CreateOmsOpenAPIProjectRequest::CreateOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "CreateOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOmsOpenAPIProjectRequest::~CreateOmsOpenAPIProjectRequest() {}
|
||||
|
||||
CreateOmsOpenAPIProjectRequest::DestConfig CreateOmsOpenAPIProjectRequest::getDestConfig() const {
|
||||
return destConfig_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setDestConfig(const CreateOmsOpenAPIProjectRequest::DestConfig &destConfig) {
|
||||
destConfig_ = destConfig;
|
||||
setBodyParameter(std::string("DestConfig") + ".SendMsgTimeout", std::to_string(destConfig.sendMsgTimeout));
|
||||
setBodyParameter(std::string("DestConfig") + ".SequenceStartTimestamp", std::to_string(destConfig.sequenceStartTimestamp));
|
||||
setBodyParameter(std::string("DestConfig") + ".Partition", std::to_string(destConfig.partition));
|
||||
setBodyParameter(std::string("DestConfig") + ".SerializerType", destConfig.serializerType);
|
||||
setBodyParameter(std::string("DestConfig") + ".EndpointType", destConfig.endpointType);
|
||||
setBodyParameter(std::string("DestConfig") + ".EndpointId", destConfig.endpointId);
|
||||
setBodyParameter(std::string("DestConfig") + ".SequenceEnable", destConfig.sequenceEnable ? "true" : "false");
|
||||
setBodyParameter(std::string("DestConfig") + ".PartitionMode", destConfig.partitionMode);
|
||||
setBodyParameter(std::string("DestConfig") + ".EnableMsgTrace", destConfig.enableMsgTrace ? "true" : "false");
|
||||
setBodyParameter(std::string("DestConfig") + ".TopicType", destConfig.topicType);
|
||||
setBodyParameter(std::string("DestConfig") + ".MsgTags", destConfig.msgTags);
|
||||
setBodyParameter(std::string("DestConfig") + ".ProducerGroup", destConfig.producerGroup);
|
||||
}
|
||||
|
||||
int CreateOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int CreateOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
CreateOmsOpenAPIProjectRequest::TransferMapping CreateOmsOpenAPIProjectRequest::getTransferMapping() const {
|
||||
return transferMapping_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setTransferMapping(const CreateOmsOpenAPIProjectRequest::TransferMapping &transferMapping) {
|
||||
transferMapping_ = transferMapping;
|
||||
setBodyParameter(std::string("TransferMapping") + ".Mode", transferMapping.mode);
|
||||
for(int dep1 = 0; dep1 != transferMapping.databases.size(); dep1++) {
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".MappedName", transferMapping.databases[dep1].mappedName);
|
||||
for(int dep2 = 0; dep2 != transferMapping.databases[dep1].tables.size(); dep2++) {
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".MappedName", transferMapping.databases[dep1].tables[dep2].mappedName);
|
||||
for(int dep3 = 0; dep3 != transferMapping.databases[dep1].tables[dep2].filterColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".FilterColumns." + std::to_string(dep3 + 1), transferMapping.databases[dep1].tables[dep2].filterColumns[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != transferMapping.databases[dep1].tables[dep2].adbTableSchema.primaryKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PrimaryKeys." + std::to_string(dep3 + 1), transferMapping.databases[dep1].tables[dep2].adbTableSchema.primaryKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionStatement", transferMapping.databases[dep1].tables[dep2].adbTableSchema.partitionStatement);
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionLifeCycle", std::to_string(transferMapping.databases[dep1].tables[dep2].adbTableSchema.partitionLifeCycle));
|
||||
for(int dep3 = 0; dep3 != transferMapping.databases[dep1].tables[dep2].adbTableSchema.distributedKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.DistributedKeys." + std::to_string(dep3 + 1), transferMapping.databases[dep1].tables[dep2].adbTableSchema.distributedKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".TableId", transferMapping.databases[dep1].tables[dep2].tableId);
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".WhereClause", transferMapping.databases[dep1].tables[dep2].whereClause);
|
||||
for(int dep3 = 0; dep3 != transferMapping.databases[dep1].tables[dep2].shardColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".ShardColumns." + std::to_string(dep3 + 1), transferMapping.databases[dep1].tables[dep2].shardColumns[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".TableName", transferMapping.databases[dep1].tables[dep2].tableName);
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".Type", transferMapping.databases[dep1].tables[dep2].type);
|
||||
}
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".DatabaseName", transferMapping.databases[dep1].databaseName);
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".TenantName", transferMapping.databases[dep1].tenantName);
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".DatabaseId", transferMapping.databases[dep1].databaseId);
|
||||
setBodyParameter(std::string("TransferMapping") + ".Databases." + std::to_string(dep1 + 1) + ".Type", transferMapping.databases[dep1].type);
|
||||
}
|
||||
}
|
||||
|
||||
CreateOmsOpenAPIProjectRequest::TransferStepConfig CreateOmsOpenAPIProjectRequest::getTransferStepConfig() const {
|
||||
return transferStepConfig_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setTransferStepConfig(const CreateOmsOpenAPIProjectRequest::TransferStepConfig &transferStepConfig) {
|
||||
transferStepConfig_ = transferStepConfig;
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".IncrSyncStepTransferConfig.StoreTransactionEnabled", transferStepConfig.incrSyncStepTransferConfig.storeTransactionEnabled ? "true" : "false");
|
||||
for(int dep1 = 0; dep1 != transferStepConfig.incrSyncStepTransferConfig.recordTypeList.size(); dep1++) {
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".IncrSyncStepTransferConfig.RecordTypeList." + std::to_string(dep1 + 1), transferStepConfig.incrSyncStepTransferConfig.recordTypeList[dep1]);
|
||||
}
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".IncrSyncStepTransferConfig.TransferStepType", transferStepConfig.incrSyncStepTransferConfig.transferStepType);
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".IncrSyncStepTransferConfig.StoreLogKeptHour", std::to_string(transferStepConfig.incrSyncStepTransferConfig.storeLogKeptHour));
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".IncrSyncStepTransferConfig.StartTimestamp", std::to_string(transferStepConfig.incrSyncStepTransferConfig.startTimestamp));
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".EnableFullSync", transferStepConfig.enableFullSync ? "true" : "false");
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".EnableIncrSync", transferStepConfig.enableIncrSync ? "true" : "false");
|
||||
setBodyParameter(std::string("TransferStepConfig") + ".EnableStructSync", transferStepConfig.enableStructSync ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectRequest::getProjectName() const {
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setProjectName(const std::string &projectName) {
|
||||
projectName_ = projectName;
|
||||
setBodyParameter(std::string("ProjectName"), projectName);
|
||||
}
|
||||
|
||||
CreateOmsOpenAPIProjectRequest::SourceConfig CreateOmsOpenAPIProjectRequest::getSourceConfig() const {
|
||||
return sourceConfig_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setSourceConfig(const CreateOmsOpenAPIProjectRequest::SourceConfig &sourceConfig) {
|
||||
sourceConfig_ = sourceConfig;
|
||||
setBodyParameter(std::string("SourceConfig") + ".SendMsgTimeout", std::to_string(sourceConfig.sendMsgTimeout));
|
||||
setBodyParameter(std::string("SourceConfig") + ".SequenceStartTimestamp", std::to_string(sourceConfig.sequenceStartTimestamp));
|
||||
setBodyParameter(std::string("SourceConfig") + ".Partition", std::to_string(sourceConfig.partition));
|
||||
setBodyParameter(std::string("SourceConfig") + ".SerializerType", sourceConfig.serializerType);
|
||||
setBodyParameter(std::string("SourceConfig") + ".EndpointType", sourceConfig.endpointType);
|
||||
setBodyParameter(std::string("SourceConfig") + ".EndpointId", sourceConfig.endpointId);
|
||||
setBodyParameter(std::string("SourceConfig") + ".SequenceEnable", sourceConfig.sequenceEnable ? "true" : "false");
|
||||
setBodyParameter(std::string("SourceConfig") + ".PartitionMode", sourceConfig.partitionMode);
|
||||
setBodyParameter(std::string("SourceConfig") + ".EnableMsgTrace", sourceConfig.enableMsgTrace ? "true" : "false");
|
||||
setBodyParameter(std::string("SourceConfig") + ".TopicType", sourceConfig.topicType);
|
||||
setBodyParameter(std::string("SourceConfig") + ".MsgTags", sourceConfig.msgTags);
|
||||
setBodyParameter(std::string("SourceConfig") + ".ProducerGroup", sourceConfig.producerGroup);
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectRequest::getBusinessName() const {
|
||||
return businessName_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setBusinessName(const std::string &businessName) {
|
||||
businessName_ = businessName;
|
||||
setBodyParameter(std::string("BusinessName"), businessName);
|
||||
}
|
||||
|
||||
std::vector<CreateOmsOpenAPIProjectRequest::std::string> CreateOmsOpenAPIProjectRequest::getLabelIds() const {
|
||||
return labelIds_;
|
||||
}
|
||||
|
||||
void CreateOmsOpenAPIProjectRequest::setLabelIds(const std::vector<CreateOmsOpenAPIProjectRequest::std::string> &labelIds) {
|
||||
labelIds_ = labelIds;
|
||||
for(int dep1 = 0; dep1 != labelIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("LabelIds") + "." + std::to_string(dep1 + 1), labelIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/CreateOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
CreateOmsOpenAPIProjectResult::CreateOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOmsOpenAPIProjectResult::CreateOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOmsOpenAPIProjectResult::~CreateOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void CreateOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateOmsOpenAPIProjectResult::ErrorDetail CreateOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long CreateOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int CreateOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string CreateOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool CreateOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
129
oceanbasepro/src/model/CreateProjectModifyRecordsRequest.cc
Normal file
129
oceanbasepro/src/model/CreateProjectModifyRecordsRequest.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/CreateProjectModifyRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::CreateProjectModifyRecordsRequest;
|
||||
|
||||
CreateProjectModifyRecordsRequest::CreateProjectModifyRecordsRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "CreateProjectModifyRecords") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProjectModifyRecordsRequest::~CreateProjectModifyRecordsRequest() {}
|
||||
|
||||
std::vector<CreateProjectModifyRecordsRequest::Databases> CreateProjectModifyRecordsRequest::getDatabases() const {
|
||||
return databases_;
|
||||
}
|
||||
|
||||
void CreateProjectModifyRecordsRequest::setDatabases(const std::vector<CreateProjectModifyRecordsRequest::Databases> &databases) {
|
||||
databases_ = databases;
|
||||
for(int dep1 = 0; dep1 != databases.size(); dep1++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".MappedName", databases[dep1].mappedName);
|
||||
for(int dep2 = 0; dep2 != databases[dep1].specificViews.size(); dep2++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".MappedName", databases[dep1].specificViews[dep2].mappedName);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificViews[dep2].filterColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".FilterColumns." + std::to_string(dep3 + 1), databases[dep1].specificViews[dep2].filterColumns[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificViews[dep2].adbTableSchema.primaryKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".AdbTableSchema.PrimaryKeys." + std::to_string(dep3 + 1), databases[dep1].specificViews[dep2].adbTableSchema.primaryKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionStatement", databases[dep1].specificViews[dep2].adbTableSchema.partitionStatement);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionLifeCycle", databases[dep1].specificViews[dep2].adbTableSchema.partitionLifeCycle);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificViews[dep2].adbTableSchema.distributedKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".AdbTableSchema.DistributedKeys." + std::to_string(dep3 + 1), databases[dep1].specificViews[dep2].adbTableSchema.distributedKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".Name", databases[dep1].specificViews[dep2].name);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".WhereClause", databases[dep1].specificViews[dep2].whereClause);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".Id", databases[dep1].specificViews[dep2].id);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificViews[dep2].shardColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificViews." + std::to_string(dep2 + 1) + ".ShardColumns." + std::to_string(dep3 + 1), databases[dep1].specificViews[dep2].shardColumns[dep3]);
|
||||
}
|
||||
}
|
||||
for(int dep2 = 0; dep2 != databases[dep1].tables.size(); dep2++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".MappedName", databases[dep1].tables[dep2].mappedName);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].tables[dep2].filterColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".FilterColumns." + std::to_string(dep3 + 1), databases[dep1].tables[dep2].filterColumns[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != databases[dep1].tables[dep2].adbTableSchema.primaryKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PrimaryKeys." + std::to_string(dep3 + 1), databases[dep1].tables[dep2].adbTableSchema.primaryKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionStatement", databases[dep1].tables[dep2].adbTableSchema.partitionStatement);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionLifeCycle", databases[dep1].tables[dep2].adbTableSchema.partitionLifeCycle);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].tables[dep2].adbTableSchema.distributedKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".AdbTableSchema.DistributedKeys." + std::to_string(dep3 + 1), databases[dep1].tables[dep2].adbTableSchema.distributedKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".Name", databases[dep1].tables[dep2].name);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".WhereClause", databases[dep1].tables[dep2].whereClause);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".Id", databases[dep1].tables[dep2].id);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].tables[dep2].shardColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Tables." + std::to_string(dep2 + 1) + ".ShardColumns." + std::to_string(dep3 + 1), databases[dep1].tables[dep2].shardColumns[dep3]);
|
||||
}
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Name", databases[dep1].name);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Id", databases[dep1].id);
|
||||
for(int dep2 = 0; dep2 != databases[dep1].specificTables.size(); dep2++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".MappedName", databases[dep1].specificTables[dep2].mappedName);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificTables[dep2].filterColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".FilterColumns." + std::to_string(dep3 + 1), databases[dep1].specificTables[dep2].filterColumns[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificTables[dep2].adbTableSchema.primaryKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PrimaryKeys." + std::to_string(dep3 + 1), databases[dep1].specificTables[dep2].adbTableSchema.primaryKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionStatement", databases[dep1].specificTables[dep2].adbTableSchema.partitionStatement);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionLifeCycle", databases[dep1].specificTables[dep2].adbTableSchema.partitionLifeCycle);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificTables[dep2].adbTableSchema.distributedKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".AdbTableSchema.DistributedKeys." + std::to_string(dep3 + 1), databases[dep1].specificTables[dep2].adbTableSchema.distributedKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".Name", databases[dep1].specificTables[dep2].name);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".WhereClause", databases[dep1].specificTables[dep2].whereClause);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".Id", databases[dep1].specificTables[dep2].id);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].specificTables[dep2].shardColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".SpecificTables." + std::to_string(dep2 + 1) + ".ShardColumns." + std::to_string(dep3 + 1), databases[dep1].specificTables[dep2].shardColumns[dep3]);
|
||||
}
|
||||
}
|
||||
for(int dep2 = 0; dep2 != databases[dep1].views.size(); dep2++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".MappedName", databases[dep1].views[dep2].mappedName);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].views[dep2].filterColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".FilterColumns." + std::to_string(dep3 + 1), databases[dep1].views[dep2].filterColumns[dep3]);
|
||||
}
|
||||
for(int dep3 = 0; dep3 != databases[dep1].views[dep2].adbTableSchema.primaryKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".AdbTableSchema.PrimaryKeys." + std::to_string(dep3 + 1), databases[dep1].views[dep2].adbTableSchema.primaryKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionStatement", databases[dep1].views[dep2].adbTableSchema.partitionStatement);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".AdbTableSchema.PartitionLifeCycle", databases[dep1].views[dep2].adbTableSchema.partitionLifeCycle);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].views[dep2].adbTableSchema.distributedKeys.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".AdbTableSchema.DistributedKeys." + std::to_string(dep3 + 1), databases[dep1].views[dep2].adbTableSchema.distributedKeys[dep3]);
|
||||
}
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".Name", databases[dep1].views[dep2].name);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".WhereClause", databases[dep1].views[dep2].whereClause);
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".Id", databases[dep1].views[dep2].id);
|
||||
for(int dep3 = 0; dep3 != databases[dep1].views[dep2].shardColumns.size(); dep3++) {
|
||||
setBodyParameter(std::string("Databases") + "." + std::to_string(dep1 + 1) + ".Views." + std::to_string(dep2 + 1) + ".ShardColumns." + std::to_string(dep3 + 1), databases[dep1].views[dep2].shardColumns[dep3]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateProjectModifyRecordsRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateProjectModifyRecordsRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/CreateProjectModifyRecordsResult.cc
Normal file
44
oceanbasepro/src/model/CreateProjectModifyRecordsResult.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/oceanbasepro/model/CreateProjectModifyRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
CreateProjectModifyRecordsResult::CreateProjectModifyRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProjectModifyRecordsResult::CreateProjectModifyRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProjectModifyRecordsResult::~CreateProjectModifyRecordsResult()
|
||||
{}
|
||||
|
||||
void CreateProjectModifyRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -289,23 +289,38 @@ void CreateProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
CreateProjectRequest::CommonTransferConfig CreateProjectRequest::getCommonTransferConfig() const {
|
||||
return commonTransferConfig_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCommonTransferConfig(const CreateProjectRequest::CommonTransferConfig &commonTransferConfig) {
|
||||
commonTransferConfig_ = commonTransferConfig;
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".RocketMqSendMsgTimeout", std::to_string(commonTransferConfig.rocketMqSendMsgTimeout));
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".MqPartition", std::to_string(commonTransferConfig.mqPartition));
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".TableCategory", commonTransferConfig.tableCategory);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".SyncSchemaColumnName", commonTransferConfig.syncSchemaColumnName);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".ActiveActive", commonTransferConfig.activeActive ? "true" : "false");
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".RocketMqEnableMsgTrace", commonTransferConfig.rocketMqEnableMsgTrace ? "true" : "false");
|
||||
for(int dep1 = 0; dep1 != commonTransferConfig.customColumns.size(); dep1++) {
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".CustomColumns." + std::to_string(dep1 + 1) + ".Expression", commonTransferConfig.customColumns[dep1].expression);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".CustomColumns." + std::to_string(dep1 + 1) + ".ColumnName", commonTransferConfig.customColumns[dep1].columnName);
|
||||
}
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".RocketMqProducerGroup", commonTransferConfig.rocketMqProducerGroup);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".MqPartitionMode", commonTransferConfig.mqPartitionMode);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".RocketMqSendMsgTimeout", std::to_string(commonTransferConfig.rocketMqSendMsgTimeout));
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".TableCategory", commonTransferConfig.tableCategory);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".DatahubTopicType", commonTransferConfig.datahubTopicType);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".RocketMqMsgTags", commonTransferConfig.rocketMqMsgTags);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".RocketMqEnableMsgTrace", commonTransferConfig.rocketMqEnableMsgTrace ? "true" : "false");
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".DataWorksBusinessName", commonTransferConfig.dataWorksBusinessName);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".RocketMqProducerGroup", commonTransferConfig.rocketMqProducerGroup);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".SyncSchema", commonTransferConfig.syncSchema ? "true" : "false");
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".MqSerializerType", commonTransferConfig.mqSerializerType);
|
||||
setBodyParameter(std::string("CommonTransferConfig") + ".MqPartitionMode", commonTransferConfig.mqPartitionMode);
|
||||
}
|
||||
|
||||
CreateProjectRequest::StructTransferConfig CreateProjectRequest::getStructTransferConfig() const {
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/CreateRdsPostgreSQLDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::CreateRdsPostgreSQLDataSourceRequest;
|
||||
|
||||
CreateRdsPostgreSQLDataSourceRequest::CreateRdsPostgreSQLDataSourceRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "CreateRdsPostgreSQLDataSource") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRdsPostgreSQLDataSourceRequest::~CreateRdsPostgreSQLDataSourceRequest() {}
|
||||
|
||||
std::string CreateRdsPostgreSQLDataSourceRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateRdsPostgreSQLDataSourceRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateRdsPostgreSQLDataSourceRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateRdsPostgreSQLDataSourceRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setBodyParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
std::string CreateRdsPostgreSQLDataSourceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateRdsPostgreSQLDataSourceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string CreateRdsPostgreSQLDataSourceRequest::getDatabaseName() const {
|
||||
return databaseName_;
|
||||
}
|
||||
|
||||
void CreateRdsPostgreSQLDataSourceRequest::setDatabaseName(const std::string &databaseName) {
|
||||
databaseName_ = databaseName;
|
||||
setBodyParameter(std::string("DatabaseName"), databaseName);
|
||||
}
|
||||
|
||||
std::string CreateRdsPostgreSQLDataSourceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateRdsPostgreSQLDataSourceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateRdsPostgreSQLDataSourceRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void CreateRdsPostgreSQLDataSourceRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setBodyParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
@@ -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/oceanbasepro/model/CreateRdsPostgreSQLDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
CreateRdsPostgreSQLDataSourceResult::CreateRdsPostgreSQLDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRdsPostgreSQLDataSourceResult::CreateRdsPostgreSQLDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRdsPostgreSQLDataSourceResult::~CreateRdsPostgreSQLDataSourceResult()
|
||||
{}
|
||||
|
||||
void CreateRdsPostgreSQLDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
oceanbasepro/src/model/DeleteDataSourceRequest.cc
Normal file
36
oceanbasepro/src/model/DeleteDataSourceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/DeleteDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::DeleteDataSourceRequest;
|
||||
|
||||
DeleteDataSourceRequest::DeleteDataSourceRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "DeleteDataSource") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataSourceRequest::~DeleteDataSourceRequest() {}
|
||||
|
||||
std::string DeleteDataSourceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteDataSourceRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/DeleteDataSourceResult.cc
Normal file
44
oceanbasepro/src/model/DeleteDataSourceResult.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/oceanbasepro/model/DeleteDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
DeleteDataSourceResult::DeleteDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataSourceResult::DeleteDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataSourceResult::~DeleteDataSourceResult()
|
||||
{}
|
||||
|
||||
void DeleteDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DeleteOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::DeleteOmsOpenAPIProjectRequest;
|
||||
|
||||
DeleteOmsOpenAPIProjectRequest::DeleteOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "DeleteOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteOmsOpenAPIProjectRequest::~DeleteOmsOpenAPIProjectRequest() {}
|
||||
|
||||
int DeleteOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DeleteOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DeleteOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DeleteOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DeleteOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void DeleteOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string DeleteOmsOpenAPIProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteOmsOpenAPIProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DeleteOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
DeleteOmsOpenAPIProjectResult::DeleteOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteOmsOpenAPIProjectResult::DeleteOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteOmsOpenAPIProjectResult::~DeleteOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void DeleteOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DeleteOmsOpenAPIProjectResult::ErrorDetail DeleteOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long DeleteOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DeleteOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DeleteOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
bool DeleteOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string DeleteOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DeleteOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool DeleteOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,10 @@ void DescribeAvailableCpuResourceResult::parse(const std::string &payload)
|
||||
dataObject.minCpu = std::stol(valueDataDataItem["MinCpu"].asString());
|
||||
if(!valueDataDataItem["MaxCpu"].isNull())
|
||||
dataObject.maxCpu = std::stol(valueDataDataItem["MaxCpu"].asString());
|
||||
if(!valueDataDataItem["ReviewCode"].isNull())
|
||||
dataObject.reviewCode = valueDataDataItem["ReviewCode"].asString();
|
||||
if(!valueDataDataItem["Comment"].isNull())
|
||||
dataObject.comment = valueDataDataItem["Comment"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/DescribeBackupSetDownloadLinkRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::DescribeBackupSetDownloadLinkRequest;
|
||||
|
||||
DescribeBackupSetDownloadLinkRequest::DescribeBackupSetDownloadLinkRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeBackupSetDownloadLink") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupSetDownloadLinkRequest::~DescribeBackupSetDownloadLinkRequest() {}
|
||||
|
||||
std::string DescribeBackupSetDownloadLinkRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadLinkRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetDownloadLinkRequest::getDownloadTaskId() const {
|
||||
return downloadTaskId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetDownloadLinkRequest::setDownloadTaskId(const std::string &downloadTaskId) {
|
||||
downloadTaskId_ = downloadTaskId;
|
||||
setBodyParameter(std::string("DownloadTaskId"), downloadTaskId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DescribeBackupSetDownloadLinkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
DescribeBackupSetDownloadLinkResult::DescribeBackupSetDownloadLinkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupSetDownloadLinkResult::DescribeBackupSetDownloadLinkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupSetDownloadLinkResult::~DescribeBackupSetDownloadLinkResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupSetDownloadLinkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["DownloadTaskId"].isNull())
|
||||
data_.downloadTaskId = std::stol(dataNode["DownloadTaskId"].asString());
|
||||
if(!dataNode["DownloadTaskStatus"].isNull())
|
||||
data_.downloadTaskStatus = dataNode["DownloadTaskStatus"].asString();
|
||||
if(!dataNode["DownloadTaskCreateTime"].isNull())
|
||||
data_.downloadTaskCreateTime = dataNode["DownloadTaskCreateTime"].asString();
|
||||
if(!dataNode["BackupRestorableTime"].isNull())
|
||||
data_.backupRestorableTime = dataNode["BackupRestorableTime"].asString();
|
||||
if(!dataNode["BackupSetId"].isNull())
|
||||
data_.backupSetId = dataNode["BackupSetId"].asString();
|
||||
if(!dataNode["InternalUrl"].isNull())
|
||||
data_.internalUrl = dataNode["InternalUrl"].asString();
|
||||
if(!dataNode["UrlExpiredTime"].isNull())
|
||||
data_.urlExpiredTime = dataNode["UrlExpiredTime"].asString();
|
||||
if(!dataNode["UrlAliveTime"].isNull())
|
||||
data_.urlAliveTime = std::stol(dataNode["UrlAliveTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeBackupSetDownloadLinkResult::Data DescribeBackupSetDownloadLinkResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
90
oceanbasepro/src/model/DescribeDataBackupSetRequest.cc
Normal file
90
oceanbasepro/src/model/DescribeDataBackupSetRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/DescribeDataBackupSetRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::DescribeDataBackupSetRequest;
|
||||
|
||||
DescribeDataBackupSetRequest::DescribeDataBackupSetRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeDataBackupSet") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataBackupSetRequest::~DescribeDataBackupSetRequest() {}
|
||||
|
||||
std::string DescribeDataBackupSetRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDataBackupSetRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
int DescribeDataBackupSetRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDataBackupSetRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeDataBackupSetRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDataBackupSetRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataBackupSetRequest::getBackupObjectType() const {
|
||||
return backupObjectType_;
|
||||
}
|
||||
|
||||
void DescribeDataBackupSetRequest::setBackupObjectType(const std::string &backupObjectType) {
|
||||
backupObjectType_ = backupObjectType;
|
||||
setBodyParameter(std::string("BackupObjectType"), backupObjectType);
|
||||
}
|
||||
|
||||
std::string DescribeDataBackupSetRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDataBackupSetRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeDataBackupSetRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeDataBackupSetRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDataBackupSetRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeDataBackupSetRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
139
oceanbasepro/src/model/DescribeDataBackupSetResult.cc
Normal file
139
oceanbasepro/src/model/DescribeDataBackupSetResult.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/oceanbasepro/model/DescribeDataBackupSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
DescribeDataBackupSetResult::DescribeDataBackupSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataBackupSetResult::DescribeDataBackupSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataBackupSetResult::~DescribeDataBackupSetResult()
|
||||
{}
|
||||
|
||||
void DescribeDataBackupSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["EndTime"].isNull())
|
||||
dataObject.endTime = valueDataDataItem["EndTime"].asString();
|
||||
if(!valueDataDataItem["Status"].isNull())
|
||||
dataObject.status = valueDataDataItem["Status"].asString();
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
if(!valueDataDataItem["StartTime"].isNull())
|
||||
dataObject.startTime = valueDataDataItem["StartTime"].asString();
|
||||
if(!valueDataDataItem["DataSize"].isNull())
|
||||
dataObject.dataSize = std::stoi(valueDataDataItem["DataSize"].asString());
|
||||
if(!valueDataDataItem["Policy"].isNull())
|
||||
dataObject.policy = valueDataDataItem["Policy"].asString();
|
||||
if(!valueDataDataItem["SetId"].isNull())
|
||||
dataObject.setId = std::stoi(valueDataDataItem["SetId"].asString());
|
||||
if(!valueDataDataItem["Method"].isNull())
|
||||
dataObject.method = valueDataDataItem["Method"].asString();
|
||||
if(!valueDataDataItem["Checkpoint"].isNull())
|
||||
dataObject.checkpoint = valueDataDataItem["Checkpoint"].asString();
|
||||
if(!valueDataDataItem["DataVersion"].isNull())
|
||||
dataObject.dataVersion = std::stoi(valueDataDataItem["DataVersion"].asString());
|
||||
if(!valueDataDataItem["BackupObjectType"].isNull())
|
||||
dataObject.backupObjectType = valueDataDataItem["BackupObjectType"].asString();
|
||||
if(!valueDataDataItem["DownloadTaskStatus"].isNull())
|
||||
dataObject.downloadTaskStatus = valueDataDataItem["DownloadTaskStatus"].asString();
|
||||
if(!valueDataDataItem["DownloadTaskId"].isNull())
|
||||
dataObject.downloadTaskId = std::stol(valueDataDataItem["DownloadTaskId"].asString());
|
||||
if(!valueDataDataItem["Validity"].isNull())
|
||||
dataObject.validity = valueDataDataItem["Validity"].asString();
|
||||
if(!valueDataDataItem["Progress"].isNull())
|
||||
dataObject.progress = valueDataDataItem["Progress"].asString();
|
||||
if(!valueDataDataItem["StorageClass"].isNull())
|
||||
dataObject.storageClass = valueDataDataItem["StorageClass"].asString();
|
||||
auto allBackupObjectsNode = valueDataDataItem["BackupObjects"]["BackupObjectsItem"];
|
||||
for (auto valueDataDataItemBackupObjectsBackupObjectsItem : allBackupObjectsNode)
|
||||
{
|
||||
DataItem::BackupObjectsItem backupObjectsObject;
|
||||
if(!valueDataDataItemBackupObjectsBackupObjectsItem["ClusterName"].isNull())
|
||||
backupObjectsObject.clusterName = valueDataDataItemBackupObjectsBackupObjectsItem["ClusterName"].asString();
|
||||
if(!valueDataDataItemBackupObjectsBackupObjectsItem["TenantName"].isNull())
|
||||
backupObjectsObject.tenantName = valueDataDataItemBackupObjectsBackupObjectsItem["TenantName"].asString();
|
||||
auto allDatabaseTablesListNode = valueDataDataItemBackupObjectsBackupObjectsItem["DatabaseTablesList"]["DatabaseTablesListItem"];
|
||||
for (auto valueDataDataItemBackupObjectsBackupObjectsItemDatabaseTablesListDatabaseTablesListItem : allDatabaseTablesListNode)
|
||||
{
|
||||
DataItem::BackupObjectsItem::DatabaseTablesListItem databaseTablesListObject;
|
||||
if(!valueDataDataItemBackupObjectsBackupObjectsItemDatabaseTablesListDatabaseTablesListItem["Database"].isNull())
|
||||
databaseTablesListObject.database = valueDataDataItemBackupObjectsBackupObjectsItemDatabaseTablesListDatabaseTablesListItem["Database"].asString();
|
||||
auto allTables = value["Tables"]["Tables"];
|
||||
for (auto value : allTables)
|
||||
databaseTablesListObject.tables.push_back(value.asString());
|
||||
backupObjectsObject.databaseTablesList.push_back(databaseTablesListObject);
|
||||
}
|
||||
dataObject.backupObjects.push_back(backupObjectsObject);
|
||||
}
|
||||
auto allBackupResultsNode = valueDataDataItem["BackupResults"]["BackupResultsItem"];
|
||||
for (auto valueDataDataItemBackupResultsBackupResultsItem : allBackupResultsNode)
|
||||
{
|
||||
DataItem::BackupResultsItem backupResultsObject;
|
||||
if(!valueDataDataItemBackupResultsBackupResultsItem["ClusterName"].isNull())
|
||||
backupResultsObject.clusterName = valueDataDataItemBackupResultsBackupResultsItem["ClusterName"].asString();
|
||||
if(!valueDataDataItemBackupResultsBackupResultsItem["TenantName"].isNull())
|
||||
backupResultsObject.tenantName = valueDataDataItemBackupResultsBackupResultsItem["TenantName"].asString();
|
||||
auto allTableBackupResultsNode = valueDataDataItemBackupResultsBackupResultsItem["TableBackupResults"]["TableBackupResultsItem"];
|
||||
for (auto valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem : allTableBackupResultsNode)
|
||||
{
|
||||
DataItem::BackupResultsItem::TableBackupResultsItem tableBackupResultsObject;
|
||||
if(!valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Database"].isNull())
|
||||
tableBackupResultsObject.database = valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Database"].asString();
|
||||
if(!valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Table"].isNull())
|
||||
tableBackupResultsObject.table = valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Table"].asString();
|
||||
if(!valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Status"].isNull())
|
||||
tableBackupResultsObject.status = valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Status"].asString();
|
||||
if(!valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Message"].isNull())
|
||||
tableBackupResultsObject.message = valueDataDataItemBackupResultsBackupResultsItemTableBackupResultsTableBackupResultsItem["Message"].asString();
|
||||
backupResultsObject.tableBackupResults.push_back(tableBackupResultsObject);
|
||||
}
|
||||
dataObject.backupResults.push_back(backupResultsObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataBackupSetResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataBackupSetResult::DataItem> DescribeDataBackupSetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -102,6 +102,16 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
instance_.proxyClusterId = instanceNode["ProxyClusterId"].asString();
|
||||
if(!instanceNode["CpuArchitecture"].isNull())
|
||||
instance_.cpuArchitecture = instanceNode["CpuArchitecture"].asString();
|
||||
if(!instanceNode["UnitSpec"].isNull())
|
||||
instance_.unitSpec = instanceNode["UnitSpec"].asString();
|
||||
if(!instanceNode["SharedUnitNumLimit"].isNull())
|
||||
instance_.sharedUnitNumLimit = std::stoi(instanceNode["SharedUnitNumLimit"].asString());
|
||||
if(!instanceNode["ExclusiveUnitNumLimit"].isNull())
|
||||
instance_.exclusiveUnitNumLimit = std::stoi(instanceNode["ExclusiveUnitNumLimit"].asString());
|
||||
if(!instanceNode["EnableReadOnlyReplica"].isNull())
|
||||
instance_.enableReadOnlyReplica = instanceNode["EnableReadOnlyReplica"].asString() == "true";
|
||||
if(!instanceNode["EnableReadOnlyReplicaManagement"].isNull())
|
||||
instance_.enableReadOnlyReplicaManagement = instanceNode["EnableReadOnlyReplicaManagement"].asString() == "true";
|
||||
auto resourceNode = instanceNode["Resource"];
|
||||
if(!resourceNode["UnitCount"].isNull())
|
||||
instance_.resource.unitCount = std::stol(resourceNode["UnitCount"].asString());
|
||||
@@ -182,6 +192,10 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
instance_.dataDiskAutoScaleConfig.scaleStepInNormal = std::stol(dataDiskAutoScaleConfigNode["ScaleStepInNormal"].asString());
|
||||
if(!dataDiskAutoScaleConfigNode["ScaleStepInMerge"].isNull())
|
||||
instance_.dataDiskAutoScaleConfig.scaleStepInMerge = std::stol(dataDiskAutoScaleConfigNode["ScaleStepInMerge"].asString());
|
||||
if(!dataDiskAutoScaleConfigNode["UpperScaleStrategy"].isNull())
|
||||
instance_.dataDiskAutoScaleConfig.upperScaleStrategy = dataDiskAutoScaleConfigNode["UpperScaleStrategy"].asString();
|
||||
if(!dataDiskAutoScaleConfigNode["UpperScaleStep"].isNull())
|
||||
instance_.dataDiskAutoScaleConfig.upperScaleStep = dataDiskAutoScaleConfigNode["UpperScaleStep"].asString();
|
||||
auto readOnlyResourceNode = instanceNode["ReadOnlyResource"];
|
||||
if(!readOnlyResourceNode["UnitCount"].isNull())
|
||||
instance_.readOnlyResource.unitCount = std::stol(readOnlyResourceNode["UnitCount"].asString());
|
||||
|
||||
@@ -95,6 +95,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.instanceRole = valueInstancesData["InstanceRole"].asString();
|
||||
if(!valueInstancesData["InTempCapacityStatus"].isNull())
|
||||
instancesObject.inTempCapacityStatus = valueInstancesData["InTempCapacityStatus"].asString() == "true";
|
||||
if(!valueInstancesData["EnableReadOnlyReplicaManagement"].isNull())
|
||||
instancesObject.enableReadOnlyReplicaManagement = valueInstancesData["EnableReadOnlyReplicaManagement"].asString() == "true";
|
||||
auto resourceNode = value["Resource"];
|
||||
if(!resourceNode["UnitCount"].isNull())
|
||||
instancesObject.resource.unitCount = std::stol(resourceNode["UnitCount"].asString());
|
||||
@@ -147,6 +149,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.dataDiskAutoScaleConfig.scaleStepInNormal = std::stol(dataDiskAutoScaleConfigNode["ScaleStepInNormal"].asString());
|
||||
if(!dataDiskAutoScaleConfigNode["ScaleStepInMerge"].isNull())
|
||||
instancesObject.dataDiskAutoScaleConfig.scaleStepInMerge = std::stol(dataDiskAutoScaleConfigNode["ScaleStepInMerge"].asString());
|
||||
if(!dataDiskAutoScaleConfigNode["UpperScaleStrategy"].isNull())
|
||||
instancesObject.dataDiskAutoScaleConfig.upperScaleStrategy = dataDiskAutoScaleConfigNode["UpperScaleStrategy"].asString();
|
||||
auto allAvailableZones = value["AvailableZones"]["AvailableZones"];
|
||||
for (auto value : allAvailableZones)
|
||||
instancesObject.availableZones.push_back(value.asString());
|
||||
|
||||
@@ -77,6 +77,12 @@ void DescribeOasAnomalySQLListResult::parse(const std::string &payload)
|
||||
dataObject.avgDbTime = valueDataDataItem["AvgDbTime"].asString();
|
||||
if(!valueDataDataItem["SumDbTime"].isNull())
|
||||
dataObject.sumDbTime = valueDataDataItem["SumDbTime"].asString();
|
||||
if(!valueDataDataItem["AvgRetryCount"].isNull())
|
||||
dataObject.avgRetryCount = std::stof(valueDataDataItem["AvgRetryCount"].asString());
|
||||
if(!valueDataDataItem["SumRetryCount"].isNull())
|
||||
dataObject.sumRetryCount = std::stof(valueDataDataItem["SumRetryCount"].asString());
|
||||
if(!valueDataDataItem["AvgLogicalReads"].isNull())
|
||||
dataObject.avgLogicalReads = std::stof(valueDataDataItem["AvgLogicalReads"].asString());
|
||||
auto allSqlListNode = valueDataDataItem["SqlList"]["SqlListItem"];
|
||||
for (auto valueDataDataItemSqlListSqlListItem : allSqlListNode)
|
||||
{
|
||||
@@ -113,6 +119,12 @@ void DescribeOasAnomalySQLListResult::parse(const std::string &payload)
|
||||
sqlListObject.avgDbTime = valueDataDataItemSqlListSqlListItem["AvgDbTime"].asString();
|
||||
if(!valueDataDataItemSqlListSqlListItem["SumDbTime"].isNull())
|
||||
sqlListObject.sumDbTime = valueDataDataItemSqlListSqlListItem["SumDbTime"].asString();
|
||||
if(!valueDataDataItemSqlListSqlListItem["AvgRetryCount"].isNull())
|
||||
sqlListObject.avgRetryCount = std::stof(valueDataDataItemSqlListSqlListItem["AvgRetryCount"].asString());
|
||||
if(!valueDataDataItemSqlListSqlListItem["SumRetryCount"].isNull())
|
||||
sqlListObject.sumRetryCount = std::stof(valueDataDataItemSqlListSqlListItem["SumRetryCount"].asString());
|
||||
if(!valueDataDataItemSqlListSqlListItem["AvgLogicalReads"].isNull())
|
||||
sqlListObject.avgLogicalReads = std::stof(valueDataDataItemSqlListSqlListItem["AvgLogicalReads"].asString());
|
||||
auto allDiagTypes1 = value["DiagTypes"]["DiagTypes"];
|
||||
for (auto value : allDiagTypes1)
|
||||
sqlListObject.diagTypes1.push_back(value.asString());
|
||||
|
||||
@@ -177,6 +177,10 @@ void DescribeOasSQLHistoryListResult::parse(const std::string &payload)
|
||||
dataObject.sumLogicalReads = valueDataDataItem["SumLogicalReads"].asString();
|
||||
if(!valueDataDataItem["ExecPs"].isNull())
|
||||
dataObject.execPs = valueDataDataItem["ExecPs"].asString();
|
||||
if(!valueDataDataItem["AvgDbTime"].isNull())
|
||||
dataObject.avgDbTime = valueDataDataItem["AvgDbTime"].asString();
|
||||
if(!valueDataDataItem["SumDbTime"].isNull())
|
||||
dataObject.sumDbTime = valueDataDataItem["SumDbTime"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DescribeOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::DescribeOmsOpenAPIProjectRequest;
|
||||
|
||||
DescribeOmsOpenAPIProjectRequest::DescribeOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOmsOpenAPIProjectRequest::~DescribeOmsOpenAPIProjectRequest() {}
|
||||
|
||||
int DescribeOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,362 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DescribeOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
DescribeOmsOpenAPIProjectResult::DescribeOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOmsOpenAPIProjectResult::DescribeOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOmsOpenAPIProjectResult::~DescribeOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void DescribeOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ProjectId"].isNull())
|
||||
data_.projectId = dataNode["ProjectId"].asString();
|
||||
if(!dataNode["ProjectName"].isNull())
|
||||
data_.projectName = dataNode["ProjectName"].asString();
|
||||
if(!dataNode["ProjectOwner"].isNull())
|
||||
data_.projectOwner = dataNode["ProjectOwner"].asString();
|
||||
if(!dataNode["BusinessName"].isNull())
|
||||
data_.businessName = dataNode["BusinessName"].asString();
|
||||
auto allLabelsNode = dataNode["Labels"]["Label"];
|
||||
for (auto dataNodeLabelsLabel : allLabelsNode)
|
||||
{
|
||||
Data::Label labelObject;
|
||||
if(!dataNodeLabelsLabel["Id"].isNull())
|
||||
labelObject.id = dataNodeLabelsLabel["Id"].asString();
|
||||
if(!dataNodeLabelsLabel["Name"].isNull())
|
||||
labelObject.name = dataNodeLabelsLabel["Name"].asString();
|
||||
if(!dataNodeLabelsLabel["Creator"].isNull())
|
||||
labelObject.creator = dataNodeLabelsLabel["Creator"].asString();
|
||||
if(!dataNodeLabelsLabel["Count"].isNull())
|
||||
labelObject.count = std::stoi(dataNodeLabelsLabel["Count"].asString());
|
||||
data_.labels.push_back(labelObject);
|
||||
}
|
||||
auto allStepsNode = dataNode["Steps"]["Step"];
|
||||
for (auto dataNodeStepsStep : allStepsNode)
|
||||
{
|
||||
Data::Step stepObject;
|
||||
if(!dataNodeStepsStep["StepOrder"].isNull())
|
||||
stepObject.stepOrder = std::stoi(dataNodeStepsStep["StepOrder"].asString());
|
||||
if(!dataNodeStepsStep["StepName"].isNull())
|
||||
stepObject.stepName = dataNodeStepsStep["StepName"].asString();
|
||||
if(!dataNodeStepsStep["StepDescription"].isNull())
|
||||
stepObject.stepDescription = dataNodeStepsStep["StepDescription"].asString();
|
||||
if(!dataNodeStepsStep["StepStatus"].isNull())
|
||||
stepObject.stepStatus = dataNodeStepsStep["StepStatus"].asString();
|
||||
if(!dataNodeStepsStep["StepProgress"].isNull())
|
||||
stepObject.stepProgress = std::stoi(dataNodeStepsStep["StepProgress"].asString());
|
||||
if(!dataNodeStepsStep["StartTime"].isNull())
|
||||
stepObject.startTime = dataNodeStepsStep["StartTime"].asString();
|
||||
if(!dataNodeStepsStep["EstimatedRemainingSeconds"].isNull())
|
||||
stepObject.estimatedRemainingSeconds = std::stol(dataNodeStepsStep["EstimatedRemainingSeconds"].asString());
|
||||
if(!dataNodeStepsStep["FinishTime"].isNull())
|
||||
stepObject.finishTime = dataNodeStepsStep["FinishTime"].asString();
|
||||
if(!dataNodeStepsStep["Interactive"].isNull())
|
||||
stepObject.interactive = dataNodeStepsStep["Interactive"].asString() == "true";
|
||||
auto stepInfoNode = value["StepInfo"];
|
||||
if(!stepInfoNode["JobId"].isNull())
|
||||
stepObject.stepInfo.jobId = stepInfoNode["JobId"].asString();
|
||||
if(!stepInfoNode["IncrTimestampCheckpoint"].isNull())
|
||||
stepObject.stepInfo.incrTimestampCheckpoint = std::stol(stepInfoNode["IncrTimestampCheckpoint"].asString());
|
||||
if(!stepInfoNode["Checkpoint"].isNull())
|
||||
stepObject.stepInfo.checkpoint = stepInfoNode["Checkpoint"].asString();
|
||||
if(!stepInfoNode["Gmt"].isNull())
|
||||
stepObject.stepInfo.gmt = std::stol(stepInfoNode["Gmt"].asString());
|
||||
if(!stepInfoNode["Validated"].isNull())
|
||||
stepObject.stepInfo.validated = stepInfoNode["Validated"].asString() == "true";
|
||||
if(!stepInfoNode["Skipped"].isNull())
|
||||
stepObject.stepInfo.skipped = stepInfoNode["Skipped"].asString() == "true";
|
||||
if(!stepInfoNode["Inconsistencies"].isNull())
|
||||
stepObject.stepInfo.inconsistencies = std::stol(stepInfoNode["Inconsistencies"].asString());
|
||||
if(!stepInfoNode["DeployId"].isNull())
|
||||
stepObject.stepInfo.deployId = stepInfoNode["DeployId"].asString();
|
||||
if(!stepInfoNode["ProcessedRecords"].isNull())
|
||||
stepObject.stepInfo.processedRecords = std::stol(stepInfoNode["ProcessedRecords"].asString());
|
||||
if(!stepInfoNode["Capacity"].isNull())
|
||||
stepObject.stepInfo.capacity = std::stol(stepInfoNode["Capacity"].asString());
|
||||
if(!stepInfoNode["SrcRps"].isNull())
|
||||
stepObject.stepInfo.srcRps = std::stol(stepInfoNode["SrcRps"].asString());
|
||||
if(!stepInfoNode["SrcRt"].isNull())
|
||||
stepObject.stepInfo.srcRt = std::stol(stepInfoNode["SrcRt"].asString());
|
||||
if(!stepInfoNode["SrcIops"].isNull())
|
||||
stepObject.stepInfo.srcIops = std::stol(stepInfoNode["SrcIops"].asString());
|
||||
if(!stepInfoNode["DstRps"].isNull())
|
||||
stepObject.stepInfo.dstRps = std::stol(stepInfoNode["DstRps"].asString());
|
||||
if(!stepInfoNode["DstRt"].isNull())
|
||||
stepObject.stepInfo.dstRt = std::stol(stepInfoNode["DstRt"].asString());
|
||||
if(!stepInfoNode["DstIops"].isNull())
|
||||
stepObject.stepInfo.dstIops = std::stol(stepInfoNode["DstIops"].asString());
|
||||
if(!stepInfoNode["SrcRpsRef"].isNull())
|
||||
stepObject.stepInfo.srcRpsRef = std::stol(stepInfoNode["SrcRpsRef"].asString());
|
||||
if(!stepInfoNode["SrcRtRef"].isNull())
|
||||
stepObject.stepInfo.srcRtRef = std::stol(stepInfoNode["SrcRtRef"].asString());
|
||||
if(!stepInfoNode["DstRpsRef"].isNull())
|
||||
stepObject.stepInfo.dstRpsRef = std::stol(stepInfoNode["DstRpsRef"].asString());
|
||||
if(!stepInfoNode["DstRtRef"].isNull())
|
||||
stepObject.stepInfo.dstRtRef = std::stol(stepInfoNode["DstRtRef"].asString());
|
||||
if(!stepInfoNode["SrcIopsRef"].isNull())
|
||||
stepObject.stepInfo.srcIopsRef = std::stol(stepInfoNode["SrcIopsRef"].asString());
|
||||
auto connectorFullProgressOverviewNode = stepInfoNode["ConnectorFullProgressOverview"];
|
||||
if(!connectorFullProgressOverviewNode["EstimatedTotalCount"].isNull())
|
||||
stepObject.stepInfo.connectorFullProgressOverview.estimatedTotalCount = std::stol(connectorFullProgressOverviewNode["EstimatedTotalCount"].asString());
|
||||
if(!connectorFullProgressOverviewNode["FinishedCount"].isNull())
|
||||
stepObject.stepInfo.connectorFullProgressOverview.finishedCount = std::stol(connectorFullProgressOverviewNode["FinishedCount"].asString());
|
||||
if(!connectorFullProgressOverviewNode["Progress"].isNull())
|
||||
stepObject.stepInfo.connectorFullProgressOverview.progress = std::stoi(connectorFullProgressOverviewNode["Progress"].asString());
|
||||
if(!connectorFullProgressOverviewNode["EstimatedRemainingTimeOfSec"].isNull())
|
||||
stepObject.stepInfo.connectorFullProgressOverview.estimatedRemainingTimeOfSec = std::stol(connectorFullProgressOverviewNode["EstimatedRemainingTimeOfSec"].asString());
|
||||
auto extraInfoNode = value["ExtraInfo"];
|
||||
if(!extraInfoNode["ErrorCode"].isNull())
|
||||
stepObject.extraInfo.errorCode = extraInfoNode["ErrorCode"].asString();
|
||||
if(!extraInfoNode["ErrorMsg"].isNull())
|
||||
stepObject.extraInfo.errorMsg = extraInfoNode["ErrorMsg"].asString();
|
||||
if(!extraInfoNode["ErrorParam"].isNull())
|
||||
stepObject.extraInfo.errorParam = extraInfoNode["ErrorParam"].asString();
|
||||
if(!extraInfoNode["FailedTime"].isNull())
|
||||
stepObject.extraInfo.failedTime = extraInfoNode["FailedTime"].asString();
|
||||
auto allErrorDetailsNode = extraInfoNode["ErrorDetails"]["ErrorDetail"];
|
||||
for (auto extraInfoNodeErrorDetailsErrorDetail : allErrorDetailsNode)
|
||||
{
|
||||
Data::Step::ExtraInfo::ErrorDetail1 errorDetail1Object;
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Code"].isNull())
|
||||
errorDetail1Object.code = extraInfoNodeErrorDetailsErrorDetail["Code"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Level"].isNull())
|
||||
errorDetail1Object.level = extraInfoNodeErrorDetailsErrorDetail["Level"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Message"].isNull())
|
||||
errorDetail1Object.message = extraInfoNodeErrorDetailsErrorDetail["Message"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Proposal"].isNull())
|
||||
errorDetail1Object.proposal = extraInfoNodeErrorDetailsErrorDetail["Proposal"].asString();
|
||||
stepObject.extraInfo.errorDetails.push_back(errorDetail1Object);
|
||||
}
|
||||
data_.steps.push_back(stepObject);
|
||||
}
|
||||
auto sourceConfigNode = dataNode["SourceConfig"];
|
||||
if(!sourceConfigNode["EndpointType"].isNull())
|
||||
data_.sourceConfig.endpointType = sourceConfigNode["EndpointType"].asString();
|
||||
if(!sourceConfigNode["EndpointId"].isNull())
|
||||
data_.sourceConfig.endpointId = sourceConfigNode["EndpointId"].asString();
|
||||
if(!sourceConfigNode["PartitionMode"].isNull())
|
||||
data_.sourceConfig.partitionMode = sourceConfigNode["PartitionMode"].asString();
|
||||
if(!sourceConfigNode["Partition"].isNull())
|
||||
data_.sourceConfig.partition = std::stoi(sourceConfigNode["Partition"].asString());
|
||||
if(!sourceConfigNode["SerializerType"].isNull())
|
||||
data_.sourceConfig.serializerType = sourceConfigNode["SerializerType"].asString();
|
||||
if(!sourceConfigNode["TopicType"].isNull())
|
||||
data_.sourceConfig.topicType = sourceConfigNode["TopicType"].asString();
|
||||
if(!sourceConfigNode["SequenceEnable"].isNull())
|
||||
data_.sourceConfig.sequenceEnable = sourceConfigNode["SequenceEnable"].asString() == "true";
|
||||
if(!sourceConfigNode["SequenceStartTimestamp"].isNull())
|
||||
data_.sourceConfig.sequenceStartTimestamp = std::stol(sourceConfigNode["SequenceStartTimestamp"].asString());
|
||||
if(!sourceConfigNode["ProducerGroup"].isNull())
|
||||
data_.sourceConfig.producerGroup = sourceConfigNode["ProducerGroup"].asString();
|
||||
if(!sourceConfigNode["MsgTags"].isNull())
|
||||
data_.sourceConfig.msgTags = sourceConfigNode["MsgTags"].asString();
|
||||
if(!sourceConfigNode["EnableMsgTrace"].isNull())
|
||||
data_.sourceConfig.enableMsgTrace = sourceConfigNode["EnableMsgTrace"].asString() == "true";
|
||||
if(!sourceConfigNode["SendMsgTimeout"].isNull())
|
||||
data_.sourceConfig.sendMsgTimeout = std::stol(sourceConfigNode["SendMsgTimeout"].asString());
|
||||
auto destConfigNode = dataNode["DestConfig"];
|
||||
if(!destConfigNode["EndpointType"].isNull())
|
||||
data_.destConfig.endpointType = destConfigNode["EndpointType"].asString();
|
||||
if(!destConfigNode["EndpointId"].isNull())
|
||||
data_.destConfig.endpointId = destConfigNode["EndpointId"].asString();
|
||||
if(!destConfigNode["PartitionMode"].isNull())
|
||||
data_.destConfig.partitionMode = destConfigNode["PartitionMode"].asString();
|
||||
if(!destConfigNode["Partition"].isNull())
|
||||
data_.destConfig.partition = std::stoi(destConfigNode["Partition"].asString());
|
||||
if(!destConfigNode["SerializerType"].isNull())
|
||||
data_.destConfig.serializerType = destConfigNode["SerializerType"].asString();
|
||||
if(!destConfigNode["TopicType"].isNull())
|
||||
data_.destConfig.topicType = destConfigNode["TopicType"].asString();
|
||||
if(!destConfigNode["SequenceEnable"].isNull())
|
||||
data_.destConfig.sequenceEnable = destConfigNode["SequenceEnable"].asString() == "true";
|
||||
if(!destConfigNode["SequenceStartTimestamp"].isNull())
|
||||
data_.destConfig.sequenceStartTimestamp = std::stol(destConfigNode["SequenceStartTimestamp"].asString());
|
||||
if(!destConfigNode["ProducerGroup"].isNull())
|
||||
data_.destConfig.producerGroup = destConfigNode["ProducerGroup"].asString();
|
||||
if(!destConfigNode["MsgTags"].isNull())
|
||||
data_.destConfig.msgTags = destConfigNode["MsgTags"].asString();
|
||||
if(!destConfigNode["EnableMsgTrace"].isNull())
|
||||
data_.destConfig.enableMsgTrace = destConfigNode["EnableMsgTrace"].asString() == "true";
|
||||
if(!destConfigNode["SendMsgTimeout"].isNull())
|
||||
data_.destConfig.sendMsgTimeout = std::stol(destConfigNode["SendMsgTimeout"].asString());
|
||||
auto transferMappingNode = dataNode["TransferMapping"];
|
||||
if(!transferMappingNode["Mode"].isNull())
|
||||
data_.transferMapping.mode = transferMappingNode["Mode"].asString();
|
||||
auto allDatabasesNode = transferMappingNode["Databases"]["Database"];
|
||||
for (auto transferMappingNodeDatabasesDatabase : allDatabasesNode)
|
||||
{
|
||||
Data::TransferMapping::Database databaseObject;
|
||||
if(!transferMappingNodeDatabasesDatabase["TenantName"].isNull())
|
||||
databaseObject.tenantName = transferMappingNodeDatabasesDatabase["TenantName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["MappedName"].isNull())
|
||||
databaseObject.mappedName = transferMappingNodeDatabasesDatabase["MappedName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["DatabaseId"].isNull())
|
||||
databaseObject.databaseId = transferMappingNodeDatabasesDatabase["DatabaseId"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["DatabaseName"].isNull())
|
||||
databaseObject.databaseName = transferMappingNodeDatabasesDatabase["DatabaseName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["Type"].isNull())
|
||||
databaseObject.type = transferMappingNodeDatabasesDatabase["Type"].asString();
|
||||
auto allTablesNode = transferMappingNodeDatabasesDatabase["Tables"]["Table"];
|
||||
for (auto transferMappingNodeDatabasesDatabaseTablesTable : allTablesNode)
|
||||
{
|
||||
Data::TransferMapping::Database::Table tablesObject;
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["MappedName"].isNull())
|
||||
tablesObject.mappedName = transferMappingNodeDatabasesDatabaseTablesTable["MappedName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["TableId"].isNull())
|
||||
tablesObject.tableId = transferMappingNodeDatabasesDatabaseTablesTable["TableId"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["TableName"].isNull())
|
||||
tablesObject.tableName = transferMappingNodeDatabasesDatabaseTablesTable["TableName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["WhereClause"].isNull())
|
||||
tablesObject.whereClause = transferMappingNodeDatabasesDatabaseTablesTable["WhereClause"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["Type"].isNull())
|
||||
tablesObject.type = transferMappingNodeDatabasesDatabaseTablesTable["Type"].asString();
|
||||
auto adbTableSchemaNode = value["AdbTableSchema"];
|
||||
if(!adbTableSchemaNode["PartitionStatement"].isNull())
|
||||
tablesObject.adbTableSchema.partitionStatement = adbTableSchemaNode["PartitionStatement"].asString();
|
||||
if(!adbTableSchemaNode["PartitionLifeCycle"].isNull())
|
||||
tablesObject.adbTableSchema.partitionLifeCycle = std::stoi(adbTableSchemaNode["PartitionLifeCycle"].asString());
|
||||
auto allPrimaryKeys = adbTableSchemaNode["PrimaryKeys"]["PrimaryKey"];
|
||||
for (auto value : allPrimaryKeys)
|
||||
tablesObject.adbTableSchema.primaryKeys.push_back(value.asString());
|
||||
auto allDistributedKeys = adbTableSchemaNode["DistributedKeys"]["DistributedKey"];
|
||||
for (auto value : allDistributedKeys)
|
||||
tablesObject.adbTableSchema.distributedKeys.push_back(value.asString());
|
||||
auto allFilterColumns = value["FilterColumns"]["FilterColumn"];
|
||||
for (auto value : allFilterColumns)
|
||||
tablesObject.filterColumns.push_back(value.asString());
|
||||
auto allShardColumns = value["ShardColumns"]["ShardColumn"];
|
||||
for (auto value : allShardColumns)
|
||||
tablesObject.shardColumns.push_back(value.asString());
|
||||
databaseObject.tables.push_back(tablesObject);
|
||||
}
|
||||
data_.transferMapping.databases.push_back(databaseObject);
|
||||
}
|
||||
auto transferStepConfigNode = dataNode["TransferStepConfig"];
|
||||
if(!transferStepConfigNode["EnableStructSync"].isNull())
|
||||
data_.transferStepConfig.enableStructSync = transferStepConfigNode["EnableStructSync"].asString() == "true";
|
||||
if(!transferStepConfigNode["EnableFullSync"].isNull())
|
||||
data_.transferStepConfig.enableFullSync = transferStepConfigNode["EnableFullSync"].asString() == "true";
|
||||
if(!transferStepConfigNode["EnableIncrSync"].isNull())
|
||||
data_.transferStepConfig.enableIncrSync = transferStepConfigNode["EnableIncrSync"].asString() == "true";
|
||||
auto incrSyncStepTransferConfigNode = transferStepConfigNode["IncrSyncStepTransferConfig"];
|
||||
if(!incrSyncStepTransferConfigNode["StartTimestamp"].isNull())
|
||||
data_.transferStepConfig.incrSyncStepTransferConfig.startTimestamp = std::stol(incrSyncStepTransferConfigNode["StartTimestamp"].asString());
|
||||
if(!incrSyncStepTransferConfigNode["StoreLogKeptHour"].isNull())
|
||||
data_.transferStepConfig.incrSyncStepTransferConfig.storeLogKeptHour = std::stol(incrSyncStepTransferConfigNode["StoreLogKeptHour"].asString());
|
||||
if(!incrSyncStepTransferConfigNode["StoreTransactionEnabled"].isNull())
|
||||
data_.transferStepConfig.incrSyncStepTransferConfig.storeTransactionEnabled = incrSyncStepTransferConfigNode["StoreTransactionEnabled"].asString() == "true";
|
||||
if(!incrSyncStepTransferConfigNode["TransferStepType"].isNull())
|
||||
data_.transferStepConfig.incrSyncStepTransferConfig.transferStepType = incrSyncStepTransferConfigNode["TransferStepType"].asString();
|
||||
auto allRecordTypeList = incrSyncStepTransferConfigNode["RecordTypeList"]["RecordTypeList"];
|
||||
for (auto value : allRecordTypeList)
|
||||
data_.transferStepConfig.incrSyncStepTransferConfig.recordTypeList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeOmsOpenAPIProjectResult::ErrorDetail DescribeOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long DescribeOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
DescribeOmsOpenAPIProjectResult::Data DescribeOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool DescribeOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DescribeOmsOpenAPIProjectStepsRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::DescribeOmsOpenAPIProjectStepsRequest;
|
||||
|
||||
DescribeOmsOpenAPIProjectStepsRequest::DescribeOmsOpenAPIProjectStepsRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeOmsOpenAPIProjectSteps") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOmsOpenAPIProjectStepsRequest::~DescribeOmsOpenAPIProjectStepsRequest() {}
|
||||
|
||||
int DescribeOmsOpenAPIProjectStepsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectStepsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeOmsOpenAPIProjectStepsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectStepsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectStepsRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectStepsRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectStepsRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribeOmsOpenAPIProjectStepsRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,218 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DescribeOmsOpenAPIProjectStepsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
DescribeOmsOpenAPIProjectStepsResult::DescribeOmsOpenAPIProjectStepsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOmsOpenAPIProjectStepsResult::DescribeOmsOpenAPIProjectStepsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOmsOpenAPIProjectStepsResult::~DescribeOmsOpenAPIProjectStepsResult()
|
||||
{}
|
||||
|
||||
void DescribeOmsOpenAPIProjectStepsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["StepOrder"].isNull())
|
||||
dataObject.stepOrder = std::stoi(valueDataDataItem["StepOrder"].asString());
|
||||
if(!valueDataDataItem["StepName"].isNull())
|
||||
dataObject.stepName = valueDataDataItem["StepName"].asString();
|
||||
if(!valueDataDataItem["StepDescription"].isNull())
|
||||
dataObject.stepDescription = valueDataDataItem["StepDescription"].asString();
|
||||
if(!valueDataDataItem["StepStatus"].isNull())
|
||||
dataObject.stepStatus = valueDataDataItem["StepStatus"].asString();
|
||||
if(!valueDataDataItem["StepProgress"].isNull())
|
||||
dataObject.stepProgress = std::stoi(valueDataDataItem["StepProgress"].asString());
|
||||
if(!valueDataDataItem["StartTime"].isNull())
|
||||
dataObject.startTime = valueDataDataItem["StartTime"].asString();
|
||||
if(!valueDataDataItem["EstimatedRemainingSeconds"].isNull())
|
||||
dataObject.estimatedRemainingSeconds = std::stol(valueDataDataItem["EstimatedRemainingSeconds"].asString());
|
||||
if(!valueDataDataItem["FinishTime"].isNull())
|
||||
dataObject.finishTime = valueDataDataItem["FinishTime"].asString();
|
||||
if(!valueDataDataItem["Interactive"].isNull())
|
||||
dataObject.interactive = valueDataDataItem["Interactive"].asString() == "true";
|
||||
auto stepInfoNode = value["StepInfo"];
|
||||
if(!stepInfoNode["JobId"].isNull())
|
||||
dataObject.stepInfo.jobId = stepInfoNode["JobId"].asString();
|
||||
if(!stepInfoNode["IncrTimestampCheckpoint"].isNull())
|
||||
dataObject.stepInfo.incrTimestampCheckpoint = std::stol(stepInfoNode["IncrTimestampCheckpoint"].asString());
|
||||
if(!stepInfoNode["Checkpoint"].isNull())
|
||||
dataObject.stepInfo.checkpoint = stepInfoNode["Checkpoint"].asString();
|
||||
if(!stepInfoNode["Gmt"].isNull())
|
||||
dataObject.stepInfo.gmt = std::stol(stepInfoNode["Gmt"].asString());
|
||||
if(!stepInfoNode["Validated"].isNull())
|
||||
dataObject.stepInfo.validated = stepInfoNode["Validated"].asString() == "true";
|
||||
if(!stepInfoNode["Skipped"].isNull())
|
||||
dataObject.stepInfo.skipped = stepInfoNode["Skipped"].asString() == "true";
|
||||
if(!stepInfoNode["Inconsistencies"].isNull())
|
||||
dataObject.stepInfo.inconsistencies = std::stol(stepInfoNode["Inconsistencies"].asString());
|
||||
if(!stepInfoNode["DeployId"].isNull())
|
||||
dataObject.stepInfo.deployId = stepInfoNode["DeployId"].asString();
|
||||
if(!stepInfoNode["ProcessedRecords"].isNull())
|
||||
dataObject.stepInfo.processedRecords = std::stol(stepInfoNode["ProcessedRecords"].asString());
|
||||
if(!stepInfoNode["Capacity"].isNull())
|
||||
dataObject.stepInfo.capacity = std::stol(stepInfoNode["Capacity"].asString());
|
||||
if(!stepInfoNode["SrcRps"].isNull())
|
||||
dataObject.stepInfo.srcRps = std::stol(stepInfoNode["SrcRps"].asString());
|
||||
if(!stepInfoNode["SrcRt"].isNull())
|
||||
dataObject.stepInfo.srcRt = std::stol(stepInfoNode["SrcRt"].asString());
|
||||
if(!stepInfoNode["SrcIops"].isNull())
|
||||
dataObject.stepInfo.srcIops = std::stol(stepInfoNode["SrcIops"].asString());
|
||||
if(!stepInfoNode["DstRps"].isNull())
|
||||
dataObject.stepInfo.dstRps = std::stol(stepInfoNode["DstRps"].asString());
|
||||
if(!stepInfoNode["DstRt"].isNull())
|
||||
dataObject.stepInfo.dstRt = std::stol(stepInfoNode["DstRt"].asString());
|
||||
if(!stepInfoNode["DstIops"].isNull())
|
||||
dataObject.stepInfo.dstIops = std::stol(stepInfoNode["DstIops"].asString());
|
||||
if(!stepInfoNode["SrcRpsRef"].isNull())
|
||||
dataObject.stepInfo.srcRpsRef = std::stol(stepInfoNode["SrcRpsRef"].asString());
|
||||
if(!stepInfoNode["SrcRtRef"].isNull())
|
||||
dataObject.stepInfo.srcRtRef = std::stol(stepInfoNode["SrcRtRef"].asString());
|
||||
if(!stepInfoNode["DstRpsRef"].isNull())
|
||||
dataObject.stepInfo.dstRpsRef = std::stol(stepInfoNode["DstRpsRef"].asString());
|
||||
if(!stepInfoNode["DstRtRef"].isNull())
|
||||
dataObject.stepInfo.dstRtRef = std::stol(stepInfoNode["DstRtRef"].asString());
|
||||
if(!stepInfoNode["SrcIopsRef"].isNull())
|
||||
dataObject.stepInfo.srcIopsRef = std::stol(stepInfoNode["SrcIopsRef"].asString());
|
||||
auto connectorFullProgressOverviewNode = stepInfoNode["ConnectorFullProgressOverview"];
|
||||
if(!connectorFullProgressOverviewNode["EstimatedTotalCount"].isNull())
|
||||
dataObject.stepInfo.connectorFullProgressOverview.estimatedTotalCount = std::stol(connectorFullProgressOverviewNode["EstimatedTotalCount"].asString());
|
||||
if(!connectorFullProgressOverviewNode["FinishedCount"].isNull())
|
||||
dataObject.stepInfo.connectorFullProgressOverview.finishedCount = std::stol(connectorFullProgressOverviewNode["FinishedCount"].asString());
|
||||
if(!connectorFullProgressOverviewNode["Progress"].isNull())
|
||||
dataObject.stepInfo.connectorFullProgressOverview.progress = std::stoi(connectorFullProgressOverviewNode["Progress"].asString());
|
||||
if(!connectorFullProgressOverviewNode["EstimatedRemainingTimeOfSec"].isNull())
|
||||
dataObject.stepInfo.connectorFullProgressOverview.estimatedRemainingTimeOfSec = std::stol(connectorFullProgressOverviewNode["EstimatedRemainingTimeOfSec"].asString());
|
||||
auto extraInfoNode = value["ExtraInfo"];
|
||||
if(!extraInfoNode["ErrorCode"].isNull())
|
||||
dataObject.extraInfo.errorCode = extraInfoNode["ErrorCode"].asString();
|
||||
if(!extraInfoNode["ErrorMsg"].isNull())
|
||||
dataObject.extraInfo.errorMsg = extraInfoNode["ErrorMsg"].asString();
|
||||
if(!extraInfoNode["ErrorParam"].isNull())
|
||||
dataObject.extraInfo.errorParam = extraInfoNode["ErrorParam"].asString();
|
||||
if(!extraInfoNode["FailedTime"].isNull())
|
||||
dataObject.extraInfo.failedTime = extraInfoNode["FailedTime"].asString();
|
||||
auto allErrorDetailsNode = extraInfoNode["ErrorDetails"]["ErrorDetail"];
|
||||
for (auto extraInfoNodeErrorDetailsErrorDetail : allErrorDetailsNode)
|
||||
{
|
||||
DataItem::ExtraInfo::ErrorDetail errorDetailObject;
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Code"].isNull())
|
||||
errorDetailObject.code = extraInfoNodeErrorDetailsErrorDetail["Code"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Level"].isNull())
|
||||
errorDetailObject.level = extraInfoNodeErrorDetailsErrorDetail["Level"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Message"].isNull())
|
||||
errorDetailObject.message = extraInfoNodeErrorDetailsErrorDetail["Message"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Proposal"].isNull())
|
||||
errorDetailObject.proposal = extraInfoNodeErrorDetailsErrorDetail["Proposal"].asString();
|
||||
dataObject.extraInfo.errorDetails.push_back(errorDetailObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto errorDetail1Node = value["ErrorDetail"];
|
||||
if(!errorDetail1Node["Code"].isNull())
|
||||
errorDetail1_.code = errorDetail1Node["Code"].asString();
|
||||
if(!errorDetail1Node["Level"].isNull())
|
||||
errorDetail1_.level = errorDetail1Node["Level"].asString();
|
||||
if(!errorDetail1Node["Message"].isNull())
|
||||
errorDetail1_.message = errorDetail1Node["Message"].asString();
|
||||
if(!errorDetail1Node["Proposal"].isNull())
|
||||
errorDetail1_.proposal = errorDetail1Node["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeOmsOpenAPIProjectStepsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectStepsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeOmsOpenAPIProjectStepsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeOmsOpenAPIProjectStepsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
DescribeOmsOpenAPIProjectStepsResult::ErrorDetail1 DescribeOmsOpenAPIProjectStepsResult::getErrorDetail1()const
|
||||
{
|
||||
return errorDetail1_;
|
||||
}
|
||||
|
||||
std::vector<DescribeOmsOpenAPIProjectStepsResult::DataItem> DescribeOmsOpenAPIProjectStepsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectStepsResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectStepsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DescribeOmsOpenAPIProjectStepsResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool DescribeOmsOpenAPIProjectStepsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
99
oceanbasepro/src/model/DescribeSampleSqlRawTextsRequest.cc
Normal file
99
oceanbasepro/src/model/DescribeSampleSqlRawTextsRequest.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/oceanbasepro/model/DescribeSampleSqlRawTextsRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::DescribeSampleSqlRawTextsRequest;
|
||||
|
||||
DescribeSampleSqlRawTextsRequest::DescribeSampleSqlRawTextsRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeSampleSqlRawTexts") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSampleSqlRawTextsRequest::~DescribeSampleSqlRawTextsRequest() {}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getTraceId() const {
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setTraceId(const std::string &traceId) {
|
||||
traceId_ = traceId;
|
||||
setBodyParameter(std::string("TraceId"), traceId);
|
||||
}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getTenantId() const {
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setTenantId(const std::string &tenantId) {
|
||||
tenantId_ = tenantId;
|
||||
setBodyParameter(std::string("TenantId"), tenantId);
|
||||
}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getLimit() const {
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setLimit(const std::string &limit) {
|
||||
limit_ = limit;
|
||||
setBodyParameter(std::string("Limit"), limit);
|
||||
}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getSqlId() const {
|
||||
return sqlId_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setSqlId(const std::string &sqlId) {
|
||||
sqlId_ = sqlId;
|
||||
setBodyParameter(std::string("SqlId"), sqlId);
|
||||
}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setBodyParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSampleSqlRawTextsRequest::getDbName() const {
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DescribeSampleSqlRawTextsRequest::setDbName(const std::string &dbName) {
|
||||
dbName_ = dbName;
|
||||
setBodyParameter(std::string("DbName"), dbName);
|
||||
}
|
||||
|
||||
53
oceanbasepro/src/model/DescribeSampleSqlRawTextsResult.cc
Normal file
53
oceanbasepro/src/model/DescribeSampleSqlRawTextsResult.cc
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DescribeSampleSqlRawTextsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
DescribeSampleSqlRawTextsResult::DescribeSampleSqlRawTextsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSampleSqlRawTextsResult::DescribeSampleSqlRawTextsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSampleSqlRawTextsResult::~DescribeSampleSqlRawTextsResult()
|
||||
{}
|
||||
|
||||
void DescribeSampleSqlRawTextsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allSqlText = dataNode["SqlText"]["SqlText"];
|
||||
for (auto value : allSqlText)
|
||||
data_.sqlText.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeSampleSqlRawTextsResult::Data DescribeSampleSqlRawTextsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,8 @@ void DescribeTenantResult::parse(const std::string &payload)
|
||||
tenant_.timeZone = tenantNode["TimeZone"].asString();
|
||||
if(!tenantNode["DataMergeTime"].isNull())
|
||||
tenant_.dataMergeTime = tenantNode["DataMergeTime"].asString();
|
||||
if(!tenantNode["EnableReadOnlyReplica"].isNull())
|
||||
tenant_.enableReadOnlyReplica = tenantNode["EnableReadOnlyReplica"].asString() == "true";
|
||||
auto allTenantConnectionsNode = tenantNode["TenantConnections"]["TenantConnectionsItem"];
|
||||
for (auto tenantNodeTenantConnectionsTenantConnectionsItem : allTenantConnectionsNode)
|
||||
{
|
||||
|
||||
@@ -79,6 +79,8 @@ void DescribeTenantsResult::parse(const std::string &payload)
|
||||
tenantsObject.charset = valueTenantsData["Charset"].asString();
|
||||
if(!valueTenantsData["Collation"].isNull())
|
||||
tenantsObject.collation = valueTenantsData["Collation"].asString();
|
||||
if(!valueTenantsData["EnableReadOnlyReplica"].isNull())
|
||||
tenantsObject.enableReadOnlyReplica = valueTenantsData["EnableReadOnlyReplica"].asString() == "true";
|
||||
tenants_.push_back(tenantsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
36
oceanbasepro/src/model/ListProjectModifyRecordsRequest.cc
Normal file
36
oceanbasepro/src/model/ListProjectModifyRecordsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/ListProjectModifyRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::ListProjectModifyRecordsRequest;
|
||||
|
||||
ListProjectModifyRecordsRequest::ListProjectModifyRecordsRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "ListProjectModifyRecords") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListProjectModifyRecordsRequest::~ListProjectModifyRecordsRequest() {}
|
||||
|
||||
std::string ListProjectModifyRecordsRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ListProjectModifyRecordsRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/ListProjectModifyRecordsResult.cc
Normal file
44
oceanbasepro/src/model/ListProjectModifyRecordsResult.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/oceanbasepro/model/ListProjectModifyRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
ListProjectModifyRecordsResult::ListProjectModifyRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProjectModifyRecordsResult::ListProjectModifyRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProjectModifyRecordsResult::~ListProjectModifyRecordsResult()
|
||||
{}
|
||||
|
||||
void ListProjectModifyRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -110,6 +110,15 @@ void ListProjectsRequest::setSortField(const std::string &sortField) {
|
||||
setBodyParameter(std::string("SortField"), sortField);
|
||||
}
|
||||
|
||||
bool ListProjectsRequest::getNeedRelatedInfo() const {
|
||||
return needRelatedInfo_;
|
||||
}
|
||||
|
||||
void ListProjectsRequest::setNeedRelatedInfo(bool needRelatedInfo) {
|
||||
needRelatedInfo_ = needRelatedInfo;
|
||||
setBodyParameter(std::string("NeedRelatedInfo"), needRelatedInfo ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<ListProjectsRequest::std::string> ListProjectsRequest::getLabelIds() const {
|
||||
return labelIds_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,15 @@ void ModifyTenantPrimaryZoneRequest::setPrimaryZone(const std::string &primaryZo
|
||||
setBodyParameter(std::string("PrimaryZone"), primaryZone);
|
||||
}
|
||||
|
||||
std::string ModifyTenantPrimaryZoneRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void ModifyTenantPrimaryZoneRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setBodyParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string ModifyTenantPrimaryZoneRequest::getUserDirectVSwitchId() const {
|
||||
return userDirectVSwitchId_;
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ReleaseOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::ReleaseOmsOpenAPIProjectRequest;
|
||||
|
||||
ReleaseOmsOpenAPIProjectRequest::ReleaseOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "ReleaseOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseOmsOpenAPIProjectRequest::~ReleaseOmsOpenAPIProjectRequest() {}
|
||||
|
||||
int ReleaseOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ReleaseOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ReleaseOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ReleaseOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ReleaseOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void ReleaseOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string ReleaseOmsOpenAPIProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ReleaseOmsOpenAPIProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ReleaseOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
ReleaseOmsOpenAPIProjectResult::ReleaseOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleaseOmsOpenAPIProjectResult::ReleaseOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleaseOmsOpenAPIProjectResult::~ReleaseOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void ReleaseOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ReleaseOmsOpenAPIProjectResult::ErrorDetail ReleaseOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long ReleaseOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ReleaseOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ReleaseOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ReleaseOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
bool ReleaseOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ReleaseOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string ReleaseOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ReleaseOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool ReleaseOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
oceanbasepro/src/model/ReleaseWorkerInstanceRequest.cc
Normal file
36
oceanbasepro/src/model/ReleaseWorkerInstanceRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/ReleaseWorkerInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::ReleaseWorkerInstanceRequest;
|
||||
|
||||
ReleaseWorkerInstanceRequest::ReleaseWorkerInstanceRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "ReleaseWorkerInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseWorkerInstanceRequest::~ReleaseWorkerInstanceRequest() {}
|
||||
|
||||
std::string ReleaseWorkerInstanceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ReleaseWorkerInstanceRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/ReleaseWorkerInstanceResult.cc
Normal file
44
oceanbasepro/src/model/ReleaseWorkerInstanceResult.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/oceanbasepro/model/ReleaseWorkerInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
ReleaseWorkerInstanceResult::ReleaseWorkerInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleaseWorkerInstanceResult::ReleaseWorkerInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleaseWorkerInstanceResult::~ReleaseWorkerInstanceResult()
|
||||
{}
|
||||
|
||||
void ReleaseWorkerInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ResetOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::ResetOmsOpenAPIProjectRequest;
|
||||
|
||||
ResetOmsOpenAPIProjectRequest::ResetOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "ResetOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResetOmsOpenAPIProjectRequest::~ResetOmsOpenAPIProjectRequest() {}
|
||||
|
||||
int ResetOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ResetOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ResetOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ResetOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ResetOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void ResetOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string ResetOmsOpenAPIProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ResetOmsOpenAPIProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ResetOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
ResetOmsOpenAPIProjectResult::ResetOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResetOmsOpenAPIProjectResult::ResetOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResetOmsOpenAPIProjectResult::~ResetOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void ResetOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ResetOmsOpenAPIProjectResult::ErrorDetail ResetOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long ResetOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ResetOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ResetOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ResetOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
bool ResetOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ResetOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string ResetOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ResetOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool ResetOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ResumeOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::ResumeOmsOpenAPIProjectRequest;
|
||||
|
||||
ResumeOmsOpenAPIProjectRequest::ResumeOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "ResumeOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResumeOmsOpenAPIProjectRequest::~ResumeOmsOpenAPIProjectRequest() {}
|
||||
|
||||
int ResumeOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ResumeOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ResumeOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ResumeOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ResumeOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void ResumeOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string ResumeOmsOpenAPIProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ResumeOmsOpenAPIProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ResumeOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
ResumeOmsOpenAPIProjectResult::ResumeOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResumeOmsOpenAPIProjectResult::ResumeOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResumeOmsOpenAPIProjectResult::~ResumeOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void ResumeOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ResumeOmsOpenAPIProjectResult::ErrorDetail ResumeOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long ResumeOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ResumeOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ResumeOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ResumeOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
bool ResumeOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ResumeOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string ResumeOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string ResumeOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool ResumeOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
oceanbasepro/src/model/RetryProjectModifyRecordsRequest.cc
Normal file
36
oceanbasepro/src/model/RetryProjectModifyRecordsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/RetryProjectModifyRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::RetryProjectModifyRecordsRequest;
|
||||
|
||||
RetryProjectModifyRecordsRequest::RetryProjectModifyRecordsRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "RetryProjectModifyRecords") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RetryProjectModifyRecordsRequest::~RetryProjectModifyRecordsRequest() {}
|
||||
|
||||
std::string RetryProjectModifyRecordsRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void RetryProjectModifyRecordsRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/RetryProjectModifyRecordsResult.cc
Normal file
44
oceanbasepro/src/model/RetryProjectModifyRecordsResult.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/oceanbasepro/model/RetryProjectModifyRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
RetryProjectModifyRecordsResult::RetryProjectModifyRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RetryProjectModifyRecordsResult::RetryProjectModifyRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RetryProjectModifyRecordsResult::~RetryProjectModifyRecordsResult()
|
||||
{}
|
||||
|
||||
void RetryProjectModifyRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/SearchOmsOpenAPIMonitorMetricRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::SearchOmsOpenAPIMonitorMetricRequest;
|
||||
|
||||
SearchOmsOpenAPIMonitorMetricRequest::SearchOmsOpenAPIMonitorMetricRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "SearchOmsOpenAPIMonitorMetric") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchOmsOpenAPIMonitorMetricRequest::~SearchOmsOpenAPIMonitorMetricRequest() {}
|
||||
|
||||
long SearchOmsOpenAPIMonitorMetricRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
long SearchOmsOpenAPIMonitorMetricRequest::getBeginTime() const {
|
||||
return beginTime_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setBeginTime(long beginTime) {
|
||||
beginTime_ = beginTime;
|
||||
setBodyParameter(std::string("BeginTime"), std::to_string(beginTime));
|
||||
}
|
||||
|
||||
long SearchOmsOpenAPIMonitorMetricRequest::getMaxPointNum() const {
|
||||
return maxPointNum_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setMaxPointNum(long maxPointNum) {
|
||||
maxPointNum_ = maxPointNum;
|
||||
setBodyParameter(std::string("MaxPointNum"), std::to_string(maxPointNum));
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIMonitorMetricRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIMonitorMetricRequest::getMetric() const {
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setMetric(const std::string &metric) {
|
||||
metric_ = metric;
|
||||
setBodyParameter(std::string("Metric"), metric);
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIMonitorMetricRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIMonitorMetricRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIMonitorMetricRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/SearchOmsOpenAPIMonitorMetricResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
SearchOmsOpenAPIMonitorMetricResult::SearchOmsOpenAPIMonitorMetricResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchOmsOpenAPIMonitorMetricResult::SearchOmsOpenAPIMonitorMetricResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchOmsOpenAPIMonitorMetricResult::~SearchOmsOpenAPIMonitorMetricResult()
|
||||
{}
|
||||
|
||||
void SearchOmsOpenAPIMonitorMetricResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Metric"].isNull())
|
||||
dataObject.metric = valueDataDataItem["Metric"].asString();
|
||||
if(!valueDataDataItem["Tags"].isNull())
|
||||
dataObject.tags = valueDataDataItem["Tags"].asString();
|
||||
auto allDataPointsNode = valueDataDataItem["DataPoints"]["DataPoint"];
|
||||
for (auto valueDataDataItemDataPointsDataPoint : allDataPointsNode)
|
||||
{
|
||||
DataItem::DataPoint dataPointsObject;
|
||||
if(!valueDataDataItemDataPointsDataPoint["Timestamp"].isNull())
|
||||
dataPointsObject.timestamp = std::stol(valueDataDataItemDataPointsDataPoint["Timestamp"].asString());
|
||||
if(!valueDataDataItemDataPointsDataPoint["Value"].isNull())
|
||||
dataPointsObject.value = valueDataDataItemDataPointsDataPoint["Value"].asString();
|
||||
dataObject.dataPoints.push_back(dataPointsObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
|
||||
}
|
||||
|
||||
SearchOmsOpenAPIMonitorMetricResult::ErrorDetail SearchOmsOpenAPIMonitorMetricResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long SearchOmsOpenAPIMonitorMetricResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIMonitorMetricResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIMonitorMetricResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIMonitorMetricResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<SearchOmsOpenAPIMonitorMetricResult::DataItem> SearchOmsOpenAPIMonitorMetricResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIMonitorMetricResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIMonitorMetricResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIMonitorMetricResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool SearchOmsOpenAPIMonitorMetricResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,107 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/SearchOmsOpenAPIProjectsRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::SearchOmsOpenAPIProjectsRequest;
|
||||
|
||||
SearchOmsOpenAPIProjectsRequest::SearchOmsOpenAPIProjectsRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "SearchOmsOpenAPIProjects") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchOmsOpenAPIProjectsRequest::~SearchOmsOpenAPIProjectsRequest() {}
|
||||
|
||||
std::vector<SearchOmsOpenAPIProjectsRequest::std::string> SearchOmsOpenAPIProjectsRequest::getDestDbTypes() const {
|
||||
return destDbTypes_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setDestDbTypes(const std::vector<SearchOmsOpenAPIProjectsRequest::std::string> &destDbTypes) {
|
||||
destDbTypes_ = destDbTypes;
|
||||
for(int dep1 = 0; dep1 != destDbTypes.size(); dep1++) {
|
||||
setBodyParameter(std::string("DestDbTypes") + "." + std::to_string(dep1 + 1), destDbTypes[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<SearchOmsOpenAPIProjectsRequest::std::string> SearchOmsOpenAPIProjectsRequest::getStatusList() const {
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setStatusList(const std::vector<SearchOmsOpenAPIProjectsRequest::std::string> &statusList) {
|
||||
statusList_ = statusList;
|
||||
for(int dep1 = 0; dep1 != statusList.size(); dep1++) {
|
||||
setBodyParameter(std::string("StatusList") + "." + std::to_string(dep1 + 1), statusList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIProjectsRequest::getSearchKey() const {
|
||||
return searchKey_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setSearchKey(const std::string &searchKey) {
|
||||
searchKey_ = searchKey;
|
||||
setBodyParameter(std::string("SearchKey"), searchKey);
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIProjectsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::vector<SearchOmsOpenAPIProjectsRequest::std::string> SearchOmsOpenAPIProjectsRequest::getSourceDbTypes() const {
|
||||
return sourceDbTypes_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setSourceDbTypes(const std::vector<SearchOmsOpenAPIProjectsRequest::std::string> &sourceDbTypes) {
|
||||
sourceDbTypes_ = sourceDbTypes;
|
||||
for(int dep1 = 0; dep1 != sourceDbTypes.size(); dep1++) {
|
||||
setBodyParameter(std::string("SourceDbTypes") + "." + std::to_string(dep1 + 1), sourceDbTypes[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIProjectsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIProjectsRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::vector<SearchOmsOpenAPIProjectsRequest::std::string> SearchOmsOpenAPIProjectsRequest::getLabelIds() const {
|
||||
return labelIds_;
|
||||
}
|
||||
|
||||
void SearchOmsOpenAPIProjectsRequest::setLabelIds(const std::vector<SearchOmsOpenAPIProjectsRequest::std::string> &labelIds) {
|
||||
labelIds_ = labelIds;
|
||||
for(int dep1 = 0; dep1 != labelIds.size(); dep1++) {
|
||||
setBodyParameter(std::string("LabelIds") + "." + std::to_string(dep1 + 1), labelIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,367 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/SearchOmsOpenAPIProjectsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
SearchOmsOpenAPIProjectsResult::SearchOmsOpenAPIProjectsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchOmsOpenAPIProjectsResult::SearchOmsOpenAPIProjectsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchOmsOpenAPIProjectsResult::~SearchOmsOpenAPIProjectsResult()
|
||||
{}
|
||||
|
||||
void SearchOmsOpenAPIProjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["ProjectId"].isNull())
|
||||
dataObject.projectId = valueDataDataItem["ProjectId"].asString();
|
||||
if(!valueDataDataItem["ProjectName"].isNull())
|
||||
dataObject.projectName = valueDataDataItem["ProjectName"].asString();
|
||||
if(!valueDataDataItem["ProjectOwner"].isNull())
|
||||
dataObject.projectOwner = valueDataDataItem["ProjectOwner"].asString();
|
||||
if(!valueDataDataItem["BusinessName"].isNull())
|
||||
dataObject.businessName = valueDataDataItem["BusinessName"].asString();
|
||||
auto allLabelsNode = valueDataDataItem["Labels"]["Label"];
|
||||
for (auto valueDataDataItemLabelsLabel : allLabelsNode)
|
||||
{
|
||||
DataItem::Label labelsObject;
|
||||
if(!valueDataDataItemLabelsLabel["Id"].isNull())
|
||||
labelsObject.id = valueDataDataItemLabelsLabel["Id"].asString();
|
||||
if(!valueDataDataItemLabelsLabel["Name"].isNull())
|
||||
labelsObject.name = valueDataDataItemLabelsLabel["Name"].asString();
|
||||
if(!valueDataDataItemLabelsLabel["Creator"].isNull())
|
||||
labelsObject.creator = valueDataDataItemLabelsLabel["Creator"].asString();
|
||||
if(!valueDataDataItemLabelsLabel["Count"].isNull())
|
||||
labelsObject.count = std::stoi(valueDataDataItemLabelsLabel["Count"].asString());
|
||||
dataObject.labels.push_back(labelsObject);
|
||||
}
|
||||
auto allStepsNode = valueDataDataItem["Steps"]["Step"];
|
||||
for (auto valueDataDataItemStepsStep : allStepsNode)
|
||||
{
|
||||
DataItem::Step stepsObject;
|
||||
if(!valueDataDataItemStepsStep["StepOrder"].isNull())
|
||||
stepsObject.stepOrder = std::stoi(valueDataDataItemStepsStep["StepOrder"].asString());
|
||||
if(!valueDataDataItemStepsStep["StepName"].isNull())
|
||||
stepsObject.stepName = valueDataDataItemStepsStep["StepName"].asString();
|
||||
if(!valueDataDataItemStepsStep["StepDescription"].isNull())
|
||||
stepsObject.stepDescription = valueDataDataItemStepsStep["StepDescription"].asString();
|
||||
if(!valueDataDataItemStepsStep["StepStatus"].isNull())
|
||||
stepsObject.stepStatus = valueDataDataItemStepsStep["StepStatus"].asString();
|
||||
if(!valueDataDataItemStepsStep["StepProgress"].isNull())
|
||||
stepsObject.stepProgress = std::stoi(valueDataDataItemStepsStep["StepProgress"].asString());
|
||||
if(!valueDataDataItemStepsStep["StartTime"].isNull())
|
||||
stepsObject.startTime = valueDataDataItemStepsStep["StartTime"].asString();
|
||||
if(!valueDataDataItemStepsStep["EstimatedRemainingSeconds"].isNull())
|
||||
stepsObject.estimatedRemainingSeconds = std::stol(valueDataDataItemStepsStep["EstimatedRemainingSeconds"].asString());
|
||||
if(!valueDataDataItemStepsStep["FinishTime"].isNull())
|
||||
stepsObject.finishTime = valueDataDataItemStepsStep["FinishTime"].asString();
|
||||
if(!valueDataDataItemStepsStep["Interactive"].isNull())
|
||||
stepsObject.interactive = valueDataDataItemStepsStep["Interactive"].asString() == "true";
|
||||
auto stepInfoNode = value["StepInfo"];
|
||||
if(!stepInfoNode["JobId"].isNull())
|
||||
stepsObject.stepInfo.jobId = stepInfoNode["JobId"].asString();
|
||||
if(!stepInfoNode["IncrTimestampCheckpoint"].isNull())
|
||||
stepsObject.stepInfo.incrTimestampCheckpoint = std::stol(stepInfoNode["IncrTimestampCheckpoint"].asString());
|
||||
if(!stepInfoNode["Checkpoint"].isNull())
|
||||
stepsObject.stepInfo.checkpoint = stepInfoNode["Checkpoint"].asString();
|
||||
if(!stepInfoNode["Gmt"].isNull())
|
||||
stepsObject.stepInfo.gmt = std::stol(stepInfoNode["Gmt"].asString());
|
||||
if(!stepInfoNode["Validated"].isNull())
|
||||
stepsObject.stepInfo.validated = stepInfoNode["Validated"].asString() == "true";
|
||||
if(!stepInfoNode["Skipped"].isNull())
|
||||
stepsObject.stepInfo.skipped = stepInfoNode["Skipped"].asString() == "true";
|
||||
if(!stepInfoNode["Inconsistencies"].isNull())
|
||||
stepsObject.stepInfo.inconsistencies = std::stol(stepInfoNode["Inconsistencies"].asString());
|
||||
if(!stepInfoNode["DeployId"].isNull())
|
||||
stepsObject.stepInfo.deployId = stepInfoNode["DeployId"].asString();
|
||||
if(!stepInfoNode["ProcessedRecords"].isNull())
|
||||
stepsObject.stepInfo.processedRecords = std::stol(stepInfoNode["ProcessedRecords"].asString());
|
||||
if(!stepInfoNode["Capacity"].isNull())
|
||||
stepsObject.stepInfo.capacity = std::stol(stepInfoNode["Capacity"].asString());
|
||||
if(!stepInfoNode["SrcRps"].isNull())
|
||||
stepsObject.stepInfo.srcRps = std::stol(stepInfoNode["SrcRps"].asString());
|
||||
if(!stepInfoNode["SrcRt"].isNull())
|
||||
stepsObject.stepInfo.srcRt = std::stol(stepInfoNode["SrcRt"].asString());
|
||||
if(!stepInfoNode["SrcIops"].isNull())
|
||||
stepsObject.stepInfo.srcIops = std::stol(stepInfoNode["SrcIops"].asString());
|
||||
if(!stepInfoNode["DstRps"].isNull())
|
||||
stepsObject.stepInfo.dstRps = std::stol(stepInfoNode["DstRps"].asString());
|
||||
if(!stepInfoNode["DstRt"].isNull())
|
||||
stepsObject.stepInfo.dstRt = std::stol(stepInfoNode["DstRt"].asString());
|
||||
if(!stepInfoNode["DstIops"].isNull())
|
||||
stepsObject.stepInfo.dstIops = std::stol(stepInfoNode["DstIops"].asString());
|
||||
if(!stepInfoNode["SrcRpsRef"].isNull())
|
||||
stepsObject.stepInfo.srcRpsRef = std::stol(stepInfoNode["SrcRpsRef"].asString());
|
||||
if(!stepInfoNode["SrcRtRef"].isNull())
|
||||
stepsObject.stepInfo.srcRtRef = std::stol(stepInfoNode["SrcRtRef"].asString());
|
||||
if(!stepInfoNode["DstRpsRef"].isNull())
|
||||
stepsObject.stepInfo.dstRpsRef = std::stol(stepInfoNode["DstRpsRef"].asString());
|
||||
if(!stepInfoNode["DstRtRef"].isNull())
|
||||
stepsObject.stepInfo.dstRtRef = std::stol(stepInfoNode["DstRtRef"].asString());
|
||||
if(!stepInfoNode["SrcIopsRef"].isNull())
|
||||
stepsObject.stepInfo.srcIopsRef = std::stol(stepInfoNode["SrcIopsRef"].asString());
|
||||
auto connectorFullProgressOverviewNode = stepInfoNode["ConnectorFullProgressOverview"];
|
||||
if(!connectorFullProgressOverviewNode["EstimatedTotalCount"].isNull())
|
||||
stepsObject.stepInfo.connectorFullProgressOverview.estimatedTotalCount = std::stol(connectorFullProgressOverviewNode["EstimatedTotalCount"].asString());
|
||||
if(!connectorFullProgressOverviewNode["FinishedCount"].isNull())
|
||||
stepsObject.stepInfo.connectorFullProgressOverview.finishedCount = std::stol(connectorFullProgressOverviewNode["FinishedCount"].asString());
|
||||
if(!connectorFullProgressOverviewNode["Progress"].isNull())
|
||||
stepsObject.stepInfo.connectorFullProgressOverview.progress = std::stoi(connectorFullProgressOverviewNode["Progress"].asString());
|
||||
if(!connectorFullProgressOverviewNode["EstimatedRemainingTimeOfSec"].isNull())
|
||||
stepsObject.stepInfo.connectorFullProgressOverview.estimatedRemainingTimeOfSec = std::stol(connectorFullProgressOverviewNode["EstimatedRemainingTimeOfSec"].asString());
|
||||
auto extraInfoNode = value["ExtraInfo"];
|
||||
if(!extraInfoNode["ErrorCode"].isNull())
|
||||
stepsObject.extraInfo.errorCode = extraInfoNode["ErrorCode"].asString();
|
||||
if(!extraInfoNode["ErrorMsg"].isNull())
|
||||
stepsObject.extraInfo.errorMsg = extraInfoNode["ErrorMsg"].asString();
|
||||
if(!extraInfoNode["ErrorParam"].isNull())
|
||||
stepsObject.extraInfo.errorParam = extraInfoNode["ErrorParam"].asString();
|
||||
if(!extraInfoNode["FailedTime"].isNull())
|
||||
stepsObject.extraInfo.failedTime = extraInfoNode["FailedTime"].asString();
|
||||
auto allErrorDetailsNode = extraInfoNode["ErrorDetails"]["ErrorDetail"];
|
||||
for (auto extraInfoNodeErrorDetailsErrorDetail : allErrorDetailsNode)
|
||||
{
|
||||
DataItem::Step::ExtraInfo::ErrorDetail errorDetailObject;
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Code"].isNull())
|
||||
errorDetailObject.code = extraInfoNodeErrorDetailsErrorDetail["Code"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Level"].isNull())
|
||||
errorDetailObject.level = extraInfoNodeErrorDetailsErrorDetail["Level"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Message"].isNull())
|
||||
errorDetailObject.message = extraInfoNodeErrorDetailsErrorDetail["Message"].asString();
|
||||
if(!extraInfoNodeErrorDetailsErrorDetail["Proposal"].isNull())
|
||||
errorDetailObject.proposal = extraInfoNodeErrorDetailsErrorDetail["Proposal"].asString();
|
||||
stepsObject.extraInfo.errorDetails.push_back(errorDetailObject);
|
||||
}
|
||||
dataObject.steps.push_back(stepsObject);
|
||||
}
|
||||
auto sourceConfigNode = value["SourceConfig"];
|
||||
if(!sourceConfigNode["EndpointType"].isNull())
|
||||
dataObject.sourceConfig.endpointType = sourceConfigNode["EndpointType"].asString();
|
||||
if(!sourceConfigNode["EndpointId"].isNull())
|
||||
dataObject.sourceConfig.endpointId = sourceConfigNode["EndpointId"].asString();
|
||||
if(!sourceConfigNode["PartitionMode"].isNull())
|
||||
dataObject.sourceConfig.partitionMode = sourceConfigNode["PartitionMode"].asString();
|
||||
if(!sourceConfigNode["Partition"].isNull())
|
||||
dataObject.sourceConfig.partition = std::stoi(sourceConfigNode["Partition"].asString());
|
||||
if(!sourceConfigNode["SerializerType"].isNull())
|
||||
dataObject.sourceConfig.serializerType = sourceConfigNode["SerializerType"].asString();
|
||||
if(!sourceConfigNode["TopicType"].isNull())
|
||||
dataObject.sourceConfig.topicType = sourceConfigNode["TopicType"].asString();
|
||||
if(!sourceConfigNode["SequenceEnable"].isNull())
|
||||
dataObject.sourceConfig.sequenceEnable = sourceConfigNode["SequenceEnable"].asString() == "true";
|
||||
if(!sourceConfigNode["SequenceStartTimestamp"].isNull())
|
||||
dataObject.sourceConfig.sequenceStartTimestamp = std::stol(sourceConfigNode["SequenceStartTimestamp"].asString());
|
||||
if(!sourceConfigNode["ProducerGroup"].isNull())
|
||||
dataObject.sourceConfig.producerGroup = sourceConfigNode["ProducerGroup"].asString();
|
||||
if(!sourceConfigNode["MsgTags"].isNull())
|
||||
dataObject.sourceConfig.msgTags = sourceConfigNode["MsgTags"].asString();
|
||||
if(!sourceConfigNode["EnableMsgTrace"].isNull())
|
||||
dataObject.sourceConfig.enableMsgTrace = sourceConfigNode["EnableMsgTrace"].asString() == "true";
|
||||
if(!sourceConfigNode["SendMsgTimeout"].isNull())
|
||||
dataObject.sourceConfig.sendMsgTimeout = std::stol(sourceConfigNode["SendMsgTimeout"].asString());
|
||||
auto destConfigNode = value["DestConfig"];
|
||||
if(!destConfigNode["EndpointType"].isNull())
|
||||
dataObject.destConfig.endpointType = destConfigNode["EndpointType"].asString();
|
||||
if(!destConfigNode["EndpointId"].isNull())
|
||||
dataObject.destConfig.endpointId = destConfigNode["EndpointId"].asString();
|
||||
if(!destConfigNode["PartitionMode"].isNull())
|
||||
dataObject.destConfig.partitionMode = destConfigNode["PartitionMode"].asString();
|
||||
if(!destConfigNode["Partition"].isNull())
|
||||
dataObject.destConfig.partition = std::stoi(destConfigNode["Partition"].asString());
|
||||
if(!destConfigNode["SerializerType"].isNull())
|
||||
dataObject.destConfig.serializerType = destConfigNode["SerializerType"].asString();
|
||||
if(!destConfigNode["TopicType"].isNull())
|
||||
dataObject.destConfig.topicType = destConfigNode["TopicType"].asString();
|
||||
if(!destConfigNode["SequenceEnable"].isNull())
|
||||
dataObject.destConfig.sequenceEnable = destConfigNode["SequenceEnable"].asString() == "true";
|
||||
if(!destConfigNode["SequenceStartTimestamp"].isNull())
|
||||
dataObject.destConfig.sequenceStartTimestamp = std::stol(destConfigNode["SequenceStartTimestamp"].asString());
|
||||
if(!destConfigNode["ProducerGroup"].isNull())
|
||||
dataObject.destConfig.producerGroup = destConfigNode["ProducerGroup"].asString();
|
||||
if(!destConfigNode["MsgTags"].isNull())
|
||||
dataObject.destConfig.msgTags = destConfigNode["MsgTags"].asString();
|
||||
if(!destConfigNode["EnableMsgTrace"].isNull())
|
||||
dataObject.destConfig.enableMsgTrace = destConfigNode["EnableMsgTrace"].asString() == "true";
|
||||
if(!destConfigNode["SendMsgTimeout"].isNull())
|
||||
dataObject.destConfig.sendMsgTimeout = std::stol(destConfigNode["SendMsgTimeout"].asString());
|
||||
auto transferMappingNode = value["TransferMapping"];
|
||||
if(!transferMappingNode["Mode"].isNull())
|
||||
dataObject.transferMapping.mode = transferMappingNode["Mode"].asString();
|
||||
auto allDatabasesNode = transferMappingNode["Databases"]["Database"];
|
||||
for (auto transferMappingNodeDatabasesDatabase : allDatabasesNode)
|
||||
{
|
||||
DataItem::TransferMapping::Database databaseObject;
|
||||
if(!transferMappingNodeDatabasesDatabase["TenantName"].isNull())
|
||||
databaseObject.tenantName = transferMappingNodeDatabasesDatabase["TenantName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["MappedName"].isNull())
|
||||
databaseObject.mappedName = transferMappingNodeDatabasesDatabase["MappedName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["DatabaseId"].isNull())
|
||||
databaseObject.databaseId = transferMappingNodeDatabasesDatabase["DatabaseId"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["DatabaseName"].isNull())
|
||||
databaseObject.databaseName = transferMappingNodeDatabasesDatabase["DatabaseName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabase["Type"].isNull())
|
||||
databaseObject.type = transferMappingNodeDatabasesDatabase["Type"].asString();
|
||||
auto allTablesNode = transferMappingNodeDatabasesDatabase["Tables"]["Table"];
|
||||
for (auto transferMappingNodeDatabasesDatabaseTablesTable : allTablesNode)
|
||||
{
|
||||
DataItem::TransferMapping::Database::Table tablesObject;
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["MappedName"].isNull())
|
||||
tablesObject.mappedName = transferMappingNodeDatabasesDatabaseTablesTable["MappedName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["TableId"].isNull())
|
||||
tablesObject.tableId = transferMappingNodeDatabasesDatabaseTablesTable["TableId"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["TableName"].isNull())
|
||||
tablesObject.tableName = transferMappingNodeDatabasesDatabaseTablesTable["TableName"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["WhereClause"].isNull())
|
||||
tablesObject.whereClause = transferMappingNodeDatabasesDatabaseTablesTable["WhereClause"].asString();
|
||||
if(!transferMappingNodeDatabasesDatabaseTablesTable["Type"].isNull())
|
||||
tablesObject.type = transferMappingNodeDatabasesDatabaseTablesTable["Type"].asString();
|
||||
auto adbTableSchemaNode = value["AdbTableSchema"];
|
||||
if(!adbTableSchemaNode["PartitionStatement"].isNull())
|
||||
tablesObject.adbTableSchema.partitionStatement = adbTableSchemaNode["PartitionStatement"].asString();
|
||||
if(!adbTableSchemaNode["PartitionLifeCycle"].isNull())
|
||||
tablesObject.adbTableSchema.partitionLifeCycle = std::stoi(adbTableSchemaNode["PartitionLifeCycle"].asString());
|
||||
auto allPrimaryKeys = adbTableSchemaNode["PrimaryKeys"]["PrimaryKey"];
|
||||
for (auto value : allPrimaryKeys)
|
||||
tablesObject.adbTableSchema.primaryKeys.push_back(value.asString());
|
||||
auto allDistributedKeys = adbTableSchemaNode["DistributedKeys"]["DistributedKey"];
|
||||
for (auto value : allDistributedKeys)
|
||||
tablesObject.adbTableSchema.distributedKeys.push_back(value.asString());
|
||||
auto allFilterColumns = value["FilterColumns"]["FilterColumn"];
|
||||
for (auto value : allFilterColumns)
|
||||
tablesObject.filterColumns.push_back(value.asString());
|
||||
auto allShardColumns = value["ShardColumns"]["ShardColumn"];
|
||||
for (auto value : allShardColumns)
|
||||
tablesObject.shardColumns.push_back(value.asString());
|
||||
databaseObject.tables.push_back(tablesObject);
|
||||
}
|
||||
dataObject.transferMapping.databases.push_back(databaseObject);
|
||||
}
|
||||
auto transferStepConfigNode = value["TransferStepConfig"];
|
||||
if(!transferStepConfigNode["EnableStructSync"].isNull())
|
||||
dataObject.transferStepConfig.enableStructSync = transferStepConfigNode["EnableStructSync"].asString() == "true";
|
||||
if(!transferStepConfigNode["EnableFullSync"].isNull())
|
||||
dataObject.transferStepConfig.enableFullSync = transferStepConfigNode["EnableFullSync"].asString() == "true";
|
||||
if(!transferStepConfigNode["EnableIncrSync"].isNull())
|
||||
dataObject.transferStepConfig.enableIncrSync = transferStepConfigNode["EnableIncrSync"].asString() == "true";
|
||||
auto incrSyncStepTransferConfigNode = transferStepConfigNode["IncrSyncStepTransferConfig"];
|
||||
if(!incrSyncStepTransferConfigNode["StartTimestamp"].isNull())
|
||||
dataObject.transferStepConfig.incrSyncStepTransferConfig.startTimestamp = std::stol(incrSyncStepTransferConfigNode["StartTimestamp"].asString());
|
||||
if(!incrSyncStepTransferConfigNode["StoreLogKeptHour"].isNull())
|
||||
dataObject.transferStepConfig.incrSyncStepTransferConfig.storeLogKeptHour = std::stol(incrSyncStepTransferConfigNode["StoreLogKeptHour"].asString());
|
||||
if(!incrSyncStepTransferConfigNode["StoreTransactionEnabled"].isNull())
|
||||
dataObject.transferStepConfig.incrSyncStepTransferConfig.storeTransactionEnabled = incrSyncStepTransferConfigNode["StoreTransactionEnabled"].asString() == "true";
|
||||
if(!incrSyncStepTransferConfigNode["TransferStepType"].isNull())
|
||||
dataObject.transferStepConfig.incrSyncStepTransferConfig.transferStepType = incrSyncStepTransferConfigNode["TransferStepType"].asString();
|
||||
auto allRecordTypeList = incrSyncStepTransferConfigNode["RecordTypeList"]["RecordTypeList"];
|
||||
for (auto value : allRecordTypeList)
|
||||
dataObject.transferStepConfig.incrSyncStepTransferConfig.recordTypeList.push_back(value.asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto errorDetail1Node = value["ErrorDetail"];
|
||||
if(!errorDetail1Node["Code"].isNull())
|
||||
errorDetail1_.code = errorDetail1Node["Code"].asString();
|
||||
if(!errorDetail1Node["Level"].isNull())
|
||||
errorDetail1_.level = errorDetail1Node["Level"].asString();
|
||||
if(!errorDetail1Node["Message"].isNull())
|
||||
errorDetail1_.message = errorDetail1Node["Message"].asString();
|
||||
if(!errorDetail1Node["Proposal"].isNull())
|
||||
errorDetail1_.proposal = errorDetail1Node["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
|
||||
}
|
||||
|
||||
long SearchOmsOpenAPIProjectsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIProjectsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIProjectsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int SearchOmsOpenAPIProjectsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
SearchOmsOpenAPIProjectsResult::ErrorDetail1 SearchOmsOpenAPIProjectsResult::getErrorDetail1()const
|
||||
{
|
||||
return errorDetail1_;
|
||||
}
|
||||
|
||||
std::vector<SearchOmsOpenAPIProjectsResult::DataItem> SearchOmsOpenAPIProjectsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIProjectsResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIProjectsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string SearchOmsOpenAPIProjectsResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool SearchOmsOpenAPIProjectsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/StartOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::StartOmsOpenAPIProjectRequest;
|
||||
|
||||
StartOmsOpenAPIProjectRequest::StartOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "StartOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartOmsOpenAPIProjectRequest::~StartOmsOpenAPIProjectRequest() {}
|
||||
|
||||
int StartOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void StartOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int StartOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void StartOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string StartOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void StartOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string StartOmsOpenAPIProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void StartOmsOpenAPIProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/StartOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
StartOmsOpenAPIProjectResult::StartOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartOmsOpenAPIProjectResult::StartOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartOmsOpenAPIProjectResult::~StartOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void StartOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
StartOmsOpenAPIProjectResult::ErrorDetail StartOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long StartOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string StartOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int StartOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int StartOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
bool StartOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StartOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string StartOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string StartOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool StartOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/StopOmsOpenAPIProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::StopOmsOpenAPIProjectRequest;
|
||||
|
||||
StopOmsOpenAPIProjectRequest::StopOmsOpenAPIProjectRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "StopOmsOpenAPIProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopOmsOpenAPIProjectRequest::~StopOmsOpenAPIProjectRequest() {}
|
||||
|
||||
int StopOmsOpenAPIProjectRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void StopOmsOpenAPIProjectRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int StopOmsOpenAPIProjectRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void StopOmsOpenAPIProjectRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string StopOmsOpenAPIProjectRequest::getWorkerGradeId() const {
|
||||
return workerGradeId_;
|
||||
}
|
||||
|
||||
void StopOmsOpenAPIProjectRequest::setWorkerGradeId(const std::string &workerGradeId) {
|
||||
workerGradeId_ = workerGradeId;
|
||||
setBodyParameter(std::string("WorkerGradeId"), workerGradeId);
|
||||
}
|
||||
|
||||
std::string StopOmsOpenAPIProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void StopOmsOpenAPIProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/StopOmsOpenAPIProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
StopOmsOpenAPIProjectResult::StopOmsOpenAPIProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopOmsOpenAPIProjectResult::StopOmsOpenAPIProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopOmsOpenAPIProjectResult::~StopOmsOpenAPIProjectResult()
|
||||
{}
|
||||
|
||||
void StopOmsOpenAPIProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto errorDetailNode = value["ErrorDetail"];
|
||||
if(!errorDetailNode["Code"].isNull())
|
||||
errorDetail_.code = errorDetailNode["Code"].asString();
|
||||
if(!errorDetailNode["Level"].isNull())
|
||||
errorDetail_.level = errorDetailNode["Level"].asString();
|
||||
if(!errorDetailNode["Message"].isNull())
|
||||
errorDetail_.message = errorDetailNode["Message"].asString();
|
||||
if(!errorDetailNode["Proposal"].isNull())
|
||||
errorDetail_.proposal = errorDetailNode["Proposal"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["Cost"].isNull())
|
||||
cost_ = value["Cost"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
StopOmsOpenAPIProjectResult::ErrorDetail StopOmsOpenAPIProjectResult::getErrorDetail()const
|
||||
{
|
||||
return errorDetail_;
|
||||
}
|
||||
|
||||
long StopOmsOpenAPIProjectResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string StopOmsOpenAPIProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int StopOmsOpenAPIProjectResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int StopOmsOpenAPIProjectResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
bool StopOmsOpenAPIProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string StopOmsOpenAPIProjectResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
std::string StopOmsOpenAPIProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string StopOmsOpenAPIProjectResult::getCost()const
|
||||
{
|
||||
return cost_;
|
||||
}
|
||||
|
||||
bool StopOmsOpenAPIProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
oceanbasepro/src/model/StopProjectModifyRecordsRequest.cc
Normal file
36
oceanbasepro/src/model/StopProjectModifyRecordsRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/oceanbasepro/model/StopProjectModifyRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::OceanBasePro::Model::StopProjectModifyRecordsRequest;
|
||||
|
||||
StopProjectModifyRecordsRequest::StopProjectModifyRecordsRequest()
|
||||
: RpcServiceRequest("oceanbasepro", "2019-09-01", "StopProjectModifyRecords") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopProjectModifyRecordsRequest::~StopProjectModifyRecordsRequest() {}
|
||||
|
||||
std::string StopProjectModifyRecordsRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void StopProjectModifyRecordsRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setBodyParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/StopProjectModifyRecordsResult.cc
Normal file
44
oceanbasepro/src/model/StopProjectModifyRecordsResult.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/oceanbasepro/model/StopProjectModifyRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OceanBasePro;
|
||||
using namespace AlibabaCloud::OceanBasePro::Model;
|
||||
|
||||
StopProjectModifyRecordsResult::StopProjectModifyRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopProjectModifyRecordsResult::StopProjectModifyRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopProjectModifyRecordsResult::~StopProjectModifyRecordsResult()
|
||||
{}
|
||||
|
||||
void StopProjectModifyRecordsResult::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