SwitchLSQLV3MySQLService

This commit is contained in:
sdk-team
2023-11-29 06:36:24 +00:00
parent 55bf08e936
commit 78f4dae59d
8 changed files with 304 additions and 1 deletions

View File

@@ -48,6 +48,8 @@
#include "model/ReleaseLindormInstanceResult.h"
#include "model/RenewLindormInstanceRequest.h"
#include "model/RenewLindormInstanceResult.h"
#include "model/SwitchLSQLV3MySQLServiceRequest.h"
#include "model/SwitchLSQLV3MySQLServiceResult.h"
#include "model/TagResourcesRequest.h"
#include "model/TagResourcesResult.h"
#include "model/UntagResourcesRequest.h"
@@ -104,6 +106,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::RenewLindormInstanceResult> RenewLindormInstanceOutcome;
typedef std::future<RenewLindormInstanceOutcome> RenewLindormInstanceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::RenewLindormInstanceRequest&, const RenewLindormInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewLindormInstanceAsyncHandler;
typedef Outcome<Error, Model::SwitchLSQLV3MySQLServiceResult> SwitchLSQLV3MySQLServiceOutcome;
typedef std::future<SwitchLSQLV3MySQLServiceOutcome> SwitchLSQLV3MySQLServiceOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::SwitchLSQLV3MySQLServiceRequest&, const SwitchLSQLV3MySQLServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SwitchLSQLV3MySQLServiceAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const HitsdbClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
@@ -160,6 +165,9 @@ namespace AlibabaCloud
RenewLindormInstanceOutcome renewLindormInstance(const Model::RenewLindormInstanceRequest &request)const;
void renewLindormInstanceAsync(const Model::RenewLindormInstanceRequest& request, const RenewLindormInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenewLindormInstanceOutcomeCallable renewLindormInstanceCallable(const Model::RenewLindormInstanceRequest& request) const;
SwitchLSQLV3MySQLServiceOutcome switchLSQLV3MySQLService(const Model::SwitchLSQLV3MySQLServiceRequest &request)const;
void switchLSQLV3MySQLServiceAsync(const Model::SwitchLSQLV3MySQLServiceRequest& request, const SwitchLSQLV3MySQLServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SwitchLSQLV3MySQLServiceOutcomeCallable switchLSQLV3MySQLServiceCallable(const Model::SwitchLSQLV3MySQLServiceRequest& request) const;
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;

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_HITSDB_MODEL_SWITCHLSQLV3MYSQLSERVICEREQUEST_H_
#define ALIBABACLOUD_HITSDB_MODEL_SWITCHLSQLV3MYSQLSERVICEREQUEST_H_
#include <alibabacloud/hitsdb/HitsdbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Hitsdb {
namespace Model {
class ALIBABACLOUD_HITSDB_EXPORT SwitchLSQLV3MySQLServiceRequest : public RpcServiceRequest {
public:
SwitchLSQLV3MySQLServiceRequest();
~SwitchLSQLV3MySQLServiceRequest();
int getActionType() const;
void setActionType(int actionType);
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getSecurityToken() const;
void setSecurityToken(const std::string &securityToken);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
int actionType_;
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
} // namespace Model
} // namespace Hitsdb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_HITSDB_MODEL_SWITCHLSQLV3MYSQLSERVICEREQUEST_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_HITSDB_MODEL_SWITCHLSQLV3MYSQLSERVICERESULT_H_
#define ALIBABACLOUD_HITSDB_MODEL_SWITCHLSQLV3MYSQLSERVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/hitsdb/HitsdbExport.h>
namespace AlibabaCloud
{
namespace Hitsdb
{
namespace Model
{
class ALIBABACLOUD_HITSDB_EXPORT SwitchLSQLV3MySQLServiceResult : public ServiceResult
{
public:
SwitchLSQLV3MySQLServiceResult();
explicit SwitchLSQLV3MySQLServiceResult(const std::string &payload);
~SwitchLSQLV3MySQLServiceResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_HITSDB_MODEL_SWITCHLSQLV3MYSQLSERVICERESULT_H_