Automatically generate sdk tasks.

This commit is contained in:
sdk-team
2023-08-03 15:00:31 +00:00
parent 4b160fe6b9
commit c994b2d439
45 changed files with 3375 additions and 1 deletions

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_RDS_DATACLIENT_H_
#define ALIBABACLOUD_RDS_DATA_RDS_DATACLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "Rds_dataExport.h"
#include "model/BatchExecuteStatementRequest.h"
#include "model/BatchExecuteStatementResult.h"
#include "model/BeginTransactionRequest.h"
#include "model/BeginTransactionResult.h"
#include "model/CommitTransactionRequest.h"
#include "model/CommitTransactionResult.h"
#include "model/DeleteRequest.h"
#include "model/DeleteResult.h"
#include "model/ExecuteStatementRequest.h"
#include "model/ExecuteStatementResult.h"
#include "model/InsertRequest.h"
#include "model/InsertResult.h"
#include "model/InsertListRequest.h"
#include "model/InsertListResult.h"
#include "model/RollbackTransactionRequest.h"
#include "model/RollbackTransactionResult.h"
#include "model/SelectRequest.h"
#include "model/SelectResult.h"
#include "model/UpdateRequest.h"
#include "model/UpdateResult.h"
namespace AlibabaCloud
{
namespace Rds_data
{
class ALIBABACLOUD_RDS_DATA_EXPORT Rds_dataClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::BatchExecuteStatementResult> BatchExecuteStatementOutcome;
typedef std::future<BatchExecuteStatementOutcome> BatchExecuteStatementOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::BatchExecuteStatementRequest&, const BatchExecuteStatementOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchExecuteStatementAsyncHandler;
typedef Outcome<Error, Model::BeginTransactionResult> BeginTransactionOutcome;
typedef std::future<BeginTransactionOutcome> BeginTransactionOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::BeginTransactionRequest&, const BeginTransactionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BeginTransactionAsyncHandler;
typedef Outcome<Error, Model::CommitTransactionResult> CommitTransactionOutcome;
typedef std::future<CommitTransactionOutcome> CommitTransactionOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::CommitTransactionRequest&, const CommitTransactionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CommitTransactionAsyncHandler;
typedef Outcome<Error, Model::DeleteResult> DeleteOutcome;
typedef std::future<DeleteOutcome> DeleteOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::DeleteRequest&, const DeleteOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAsyncHandler;
typedef Outcome<Error, Model::ExecuteStatementResult> ExecuteStatementOutcome;
typedef std::future<ExecuteStatementOutcome> ExecuteStatementOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::ExecuteStatementRequest&, const ExecuteStatementOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteStatementAsyncHandler;
typedef Outcome<Error, Model::InsertResult> InsertOutcome;
typedef std::future<InsertOutcome> InsertOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::InsertRequest&, const InsertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertAsyncHandler;
typedef Outcome<Error, Model::InsertListResult> InsertListOutcome;
typedef std::future<InsertListOutcome> InsertListOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::InsertListRequest&, const InsertListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertListAsyncHandler;
typedef Outcome<Error, Model::RollbackTransactionResult> RollbackTransactionOutcome;
typedef std::future<RollbackTransactionOutcome> RollbackTransactionOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::RollbackTransactionRequest&, const RollbackTransactionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RollbackTransactionAsyncHandler;
typedef Outcome<Error, Model::SelectResult> SelectOutcome;
typedef std::future<SelectOutcome> SelectOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::SelectRequest&, const SelectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SelectAsyncHandler;
typedef Outcome<Error, Model::UpdateResult> UpdateOutcome;
typedef std::future<UpdateOutcome> UpdateOutcomeCallable;
typedef std::function<void(const Rds_dataClient*, const Model::UpdateRequest&, const UpdateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAsyncHandler;
Rds_dataClient(const Credentials &credentials, const ClientConfiguration &configuration);
Rds_dataClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
Rds_dataClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~Rds_dataClient();
BatchExecuteStatementOutcome batchExecuteStatement(const Model::BatchExecuteStatementRequest &request)const;
void batchExecuteStatementAsync(const Model::BatchExecuteStatementRequest& request, const BatchExecuteStatementAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchExecuteStatementOutcomeCallable batchExecuteStatementCallable(const Model::BatchExecuteStatementRequest& request) const;
BeginTransactionOutcome beginTransaction(const Model::BeginTransactionRequest &request)const;
void beginTransactionAsync(const Model::BeginTransactionRequest& request, const BeginTransactionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BeginTransactionOutcomeCallable beginTransactionCallable(const Model::BeginTransactionRequest& request) const;
CommitTransactionOutcome commitTransaction(const Model::CommitTransactionRequest &request)const;
void commitTransactionAsync(const Model::CommitTransactionRequest& request, const CommitTransactionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CommitTransactionOutcomeCallable commitTransactionCallable(const Model::CommitTransactionRequest& request) const;
DeleteOutcome delete(const Model::DeleteRequest &request)const;
void deleteAsync(const Model::DeleteRequest& request, const DeleteAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteOutcomeCallable deleteCallable(const Model::DeleteRequest& request) const;
ExecuteStatementOutcome executeStatement(const Model::ExecuteStatementRequest &request)const;
void executeStatementAsync(const Model::ExecuteStatementRequest& request, const ExecuteStatementAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecuteStatementOutcomeCallable executeStatementCallable(const Model::ExecuteStatementRequest& request) const;
InsertOutcome insert(const Model::InsertRequest &request)const;
void insertAsync(const Model::InsertRequest& request, const InsertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertOutcomeCallable insertCallable(const Model::InsertRequest& request) const;
InsertListOutcome insertList(const Model::InsertListRequest &request)const;
void insertListAsync(const Model::InsertListRequest& request, const InsertListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertListOutcomeCallable insertListCallable(const Model::InsertListRequest& request) const;
RollbackTransactionOutcome rollbackTransaction(const Model::RollbackTransactionRequest &request)const;
void rollbackTransactionAsync(const Model::RollbackTransactionRequest& request, const RollbackTransactionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RollbackTransactionOutcomeCallable rollbackTransactionCallable(const Model::RollbackTransactionRequest& request) const;
SelectOutcome select(const Model::SelectRequest &request)const;
void selectAsync(const Model::SelectRequest& request, const SelectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SelectOutcomeCallable selectCallable(const Model::SelectRequest& request) const;
UpdateOutcome update(const Model::UpdateRequest &request)const;
void updateAsync(const Model::UpdateRequest& request, const UpdateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateOutcomeCallable updateCallable(const Model::UpdateRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_RDS_DATA_RDS_DATACLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_RDS_DATAEXPORT_H_
#define ALIBABACLOUD_RDS_DATA_RDS_DATAEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_RDS_DATA_LIBRARY)
# define ALIBABACLOUD_RDS_DATA_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_RDS_DATA_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_RDS_DATA_EXPORT
#endif
#endif // !ALIBABACLOUD_RDS_DATA_RDS_DATAEXPORT_H_

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT BatchExecuteStatementRequest : public RpcServiceRequest {
public:
struct ParameterSetsItem {
std::string name;
std::string typeHint;
struct Value {
std::string arrayValue;
std::string blobValue;
bool booleanValue;
bool isNull;
long longValue;
std::string stringValue;
};
Value value;
};
BatchExecuteStatementRequest();
~BatchExecuteStatementRequest();
std::vector<std::vector<ParameterSetsItem>> getParameterSets() const;
void setParameterSets(const std::vector<std::vector<ParameterSetsItem>> &parameterSets);
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getSql() const;
void setSql(const std::string &sql);
std::string getDatabase() const;
void setDatabase(const std::string &database);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::vector<std::vector<ParameterSetsItem>> parameterSets_;
std::string transactionId_;
std::string sql_;
std::string database_;
std::string resourceArn_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT BatchExecuteStatementResult : public ServiceResult
{
public:
BatchExecuteStatementResult();
explicit BatchExecuteStatementResult(const std::string &payload);
~BatchExecuteStatementResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_BATCHEXECUTESTATEMENTRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_BEGINTRANSACTIONREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_BEGINTRANSACTIONREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT BeginTransactionRequest : public RpcServiceRequest {
public:
BeginTransactionRequest();
~BeginTransactionRequest();
std::string getDatabase() const;
void setDatabase(const std::string &database);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::string database_;
std::string resourceArn_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_BEGINTRANSACTIONREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_BEGINTRANSACTIONRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_BEGINTRANSACTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT BeginTransactionResult : public ServiceResult
{
public:
struct Data
{
std::string transactionId;
};
BeginTransactionResult();
explicit BeginTransactionResult(const std::string &payload);
~BeginTransactionResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_BEGINTRANSACTIONRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_COMMITTRANSACTIONREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_COMMITTRANSACTIONREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT CommitTransactionRequest : public RpcServiceRequest {
public:
CommitTransactionRequest();
~CommitTransactionRequest();
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::string transactionId_;
std::string resourceArn_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_COMMITTRANSACTIONREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_COMMITTRANSACTIONRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_COMMITTRANSACTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT CommitTransactionResult : public ServiceResult
{
public:
struct Data
{
std::string transactionStatus;
};
CommitTransactionResult();
explicit CommitTransactionResult(const std::string &payload);
~CommitTransactionResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_COMMITTRANSACTIONRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_DELETEREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_DELETEREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT DeleteRequest : public RpcServiceRequest {
public:
DeleteRequest();
~DeleteRequest();
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getFilter() const;
void setFilter(const std::string &filter);
std::string getDatabase() const;
void setDatabase(const std::string &database);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getTable() const;
void setTable(const std::string &table);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::string transactionId_;
std::string filter_;
std::string database_;
std::string resourceArn_;
std::string table_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_DELETEREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_DELETERESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_DELETERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT DeleteResult : public ServiceResult
{
public:
struct Data
{
long numberOfRecordsUpdated;
};
DeleteResult();
explicit DeleteResult(const std::string &payload);
~DeleteResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_DELETERESULT_H_

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_EXECUTESTATEMENTREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_EXECUTESTATEMENTREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT ExecuteStatementRequest : public RpcServiceRequest {
public:
struct ResultSetOptions {
std::string decimalReturnType;
std::string longReturnType;
};
struct Parameters {
std::string name;
std::string typeHint;
struct Value {
std::string arrayValue;
std::string blobValue;
bool booleanValue;
bool isNull;
long longValue;
std::string stringValue;
};
Value value;
};
ExecuteStatementRequest();
~ExecuteStatementRequest();
bool getIncludeResultMetadata() const;
void setIncludeResultMetadata(bool includeResultMetadata);
std::string getFormatRecordsAs() const;
void setFormatRecordsAs(const std::string &formatRecordsAs);
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getSql() const;
void setSql(const std::string &sql);
ResultSetOptions getResultSetOptions() const;
void setResultSetOptions(const ResultSetOptions &resultSetOptions);
std::string getDatabase() const;
void setDatabase(const std::string &database);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::vector<Parameters> getParameters() const;
void setParameters(const std::vector<Parameters> &parameters);
bool getContinueAfterTimeout() const;
void setContinueAfterTimeout(bool continueAfterTimeout);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
bool includeResultMetadata_;
std::string formatRecordsAs_;
std::string transactionId_;
std::string sql_;
ResultSetOptions resultSetOptions_;
std::string database_;
std::string resourceArn_;
std::vector<Parameters> parameters_;
bool continueAfterTimeout_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_EXECUTESTATEMENTREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_EXECUTESTATEMENTRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_EXECUTESTATEMENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT ExecuteStatementResult : public ServiceResult
{
public:
ExecuteStatementResult();
explicit ExecuteStatementResult(const std::string &payload);
~ExecuteStatementResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_EXECUTESTATEMENTRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_INSERTLISTREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_INSERTLISTREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT InsertListRequest : public RpcServiceRequest {
public:
InsertListRequest();
~InsertListRequest();
std::vector<std::map<std::string, ObjectOfAny>> getRecords() const;
void setRecords(const std::vector<std::map<std::string, ObjectOfAny>> &records);
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getDatabase() const;
void setDatabase(const std::string &database);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getTable() const;
void setTable(const std::string &table);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::vector<std::map<std::string, ObjectOfAny>> records_;
std::string transactionId_;
std::string database_;
std::string resourceArn_;
std::string table_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_INSERTLISTREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_INSERTLISTRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_INSERTLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT InsertListResult : public ServiceResult
{
public:
struct Data
{
long numberOfRecordsUpdated;
std::vector<std::string> autoIncrementKeys;
};
InsertListResult();
explicit InsertListResult(const std::string &payload);
~InsertListResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_INSERTLISTRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_INSERTREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_INSERTREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT InsertRequest : public RpcServiceRequest {
public:
InsertRequest();
~InsertRequest();
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getDatabase() const;
void setDatabase(const std::string &database);
std::map<std::string, ObjectOfAny> getRecord() const;
void setRecord(const std::map<std::string, ObjectOfAny> &record);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getTable() const;
void setTable(const std::string &table);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::string transactionId_;
std::string database_;
std::map<std::string, ObjectOfAny> record_;
std::string resourceArn_;
std::string table_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_INSERTREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_INSERTRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_INSERTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT InsertResult : public ServiceResult
{
public:
struct Data
{
long numberOfRecordsUpdated;
long autoIncrementKey;
};
InsertResult();
explicit InsertResult(const std::string &payload);
~InsertResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_INSERTRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_ROLLBACKTRANSACTIONREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_ROLLBACKTRANSACTIONREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT RollbackTransactionRequest : public RpcServiceRequest {
public:
RollbackTransactionRequest();
~RollbackTransactionRequest();
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::string transactionId_;
std::string resourceArn_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_ROLLBACKTRANSACTIONREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_ROLLBACKTRANSACTIONRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_ROLLBACKTRANSACTIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT RollbackTransactionResult : public ServiceResult
{
public:
struct Data
{
std::string transactionStatus;
};
RollbackTransactionResult();
explicit RollbackTransactionResult(const std::string &payload);
~RollbackTransactionResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_ROLLBACKTRANSACTIONRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_SELECTREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_SELECTREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT SelectRequest : public RpcServiceRequest {
public:
SelectRequest();
~SelectRequest();
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
long getPageNumber() const;
void setPageNumber(long pageNumber);
std::string getFilter() const;
void setFilter(const std::string &filter);
std::string getDatabase() const;
void setDatabase(const std::string &database);
long getPageSize() const;
void setPageSize(long pageSize);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getTable() const;
void setTable(const std::string &table);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::string transactionId_;
long pageNumber_;
std::string filter_;
std::string database_;
long pageSize_;
std::string resourceArn_;
std::string table_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_SELECTREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_SELECTRESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_SELECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT SelectResult : public ServiceResult
{
public:
struct Data
{
std::vector<std::string> records;
};
SelectResult();
explicit SelectResult(const std::string &payload);
~SelectResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_SELECTRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_UPDATEREQUEST_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_UPDATEREQUEST_H_
#include <alibabacloud/rds-data/Rds_dataExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Rds_data {
namespace Model {
class ALIBABACLOUD_RDS_DATA_EXPORT UpdateRequest : public RpcServiceRequest {
public:
UpdateRequest();
~UpdateRequest();
std::string getTransactionId() const;
void setTransactionId(const std::string &transactionId);
std::string getFilter() const;
void setFilter(const std::string &filter);
std::string getDatabase() const;
void setDatabase(const std::string &database);
std::map<std::string, ObjectOfAny> getRecord() const;
void setRecord(const std::map<std::string, ObjectOfAny> &record);
std::string getResourceArn() const;
void setResourceArn(const std::string &resourceArn);
std::string getTable() const;
void setTable(const std::string &table);
std::string getSecretArn() const;
void setSecretArn(const std::string &secretArn);
private:
std::string transactionId_;
std::string filter_;
std::string database_;
std::map<std::string, ObjectOfAny> record_;
std::string resourceArn_;
std::string table_;
std::string secretArn_;
};
} // namespace Model
} // namespace Rds_data
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_UPDATEREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_DATA_MODEL_UPDATERESULT_H_
#define ALIBABACLOUD_RDS_DATA_MODEL_UPDATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/rds-data/Rds_dataExport.h>
namespace AlibabaCloud
{
namespace Rds_data
{
namespace Model
{
class ALIBABACLOUD_RDS_DATA_EXPORT UpdateResult : public ServiceResult
{
public:
struct Data
{
long numberOfRecordsUpdated;
};
UpdateResult();
explicit UpdateResult(const std::string &payload);
~UpdateResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_DATA_MODEL_UPDATERESULT_H_