Create a new sdk.

This commit is contained in:
sdk-team
2021-01-11 08:55:44 +00:00
parent 4f16d1bd02
commit e699b34aee
37 changed files with 2588 additions and 0 deletions

View File

@@ -0,0 +1,110 @@
/*
* 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_EAIS_EAISCLIENT_H_
#define ALIBABACLOUD_EAIS_EAISCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "EaisExport.h"
#include "model/AttachEaiRequest.h"
#include "model/AttachEaiResult.h"
#include "model/CreateEaiRequest.h"
#include "model/CreateEaiResult.h"
#include "model/CreateEaiAllRequest.h"
#include "model/CreateEaiAllResult.h"
#include "model/DeleteEaiRequest.h"
#include "model/DeleteEaiResult.h"
#include "model/DeleteEaiAllRequest.h"
#include "model/DeleteEaiAllResult.h"
#include "model/DescribeEaisRequest.h"
#include "model/DescribeEaisResult.h"
#include "model/DescribeRegionsRequest.h"
#include "model/DescribeRegionsResult.h"
#include "model/DetachEaiRequest.h"
#include "model/DetachEaiResult.h"
namespace AlibabaCloud
{
namespace Eais
{
class ALIBABACLOUD_EAIS_EXPORT EaisClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AttachEaiResult> AttachEaiOutcome;
typedef std::future<AttachEaiOutcome> AttachEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::AttachEaiRequest&, const AttachEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachEaiAsyncHandler;
typedef Outcome<Error, Model::CreateEaiResult> CreateEaiOutcome;
typedef std::future<CreateEaiOutcome> CreateEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiRequest&, const CreateEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAsyncHandler;
typedef Outcome<Error, Model::CreateEaiAllResult> CreateEaiAllOutcome;
typedef std::future<CreateEaiAllOutcome> CreateEaiAllOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiAllRequest&, const CreateEaiAllOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAllAsyncHandler;
typedef Outcome<Error, Model::DeleteEaiResult> DeleteEaiOutcome;
typedef std::future<DeleteEaiOutcome> DeleteEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::DeleteEaiRequest&, const DeleteEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEaiAsyncHandler;
typedef Outcome<Error, Model::DeleteEaiAllResult> DeleteEaiAllOutcome;
typedef std::future<DeleteEaiAllOutcome> DeleteEaiAllOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::DeleteEaiAllRequest&, const DeleteEaiAllOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEaiAllAsyncHandler;
typedef Outcome<Error, Model::DescribeEaisResult> DescribeEaisOutcome;
typedef std::future<DescribeEaisOutcome> DescribeEaisOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::DescribeEaisRequest&, const DescribeEaisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEaisAsyncHandler;
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
typedef Outcome<Error, Model::DetachEaiResult> DetachEaiOutcome;
typedef std::future<DetachEaiOutcome> DetachEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::DetachEaiRequest&, const DetachEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachEaiAsyncHandler;
EaisClient(const Credentials &credentials, const ClientConfiguration &configuration);
EaisClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
EaisClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~EaisClient();
AttachEaiOutcome attachEai(const Model::AttachEaiRequest &request)const;
void attachEaiAsync(const Model::AttachEaiRequest& request, const AttachEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AttachEaiOutcomeCallable attachEaiCallable(const Model::AttachEaiRequest& request) const;
CreateEaiOutcome createEai(const Model::CreateEaiRequest &request)const;
void createEaiAsync(const Model::CreateEaiRequest& request, const CreateEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiOutcomeCallable createEaiCallable(const Model::CreateEaiRequest& request) const;
CreateEaiAllOutcome createEaiAll(const Model::CreateEaiAllRequest &request)const;
void createEaiAllAsync(const Model::CreateEaiAllRequest& request, const CreateEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiAllOutcomeCallable createEaiAllCallable(const Model::CreateEaiAllRequest& request) const;
DeleteEaiOutcome deleteEai(const Model::DeleteEaiRequest &request)const;
void deleteEaiAsync(const Model::DeleteEaiRequest& request, const DeleteEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteEaiOutcomeCallable deleteEaiCallable(const Model::DeleteEaiRequest& request) const;
DeleteEaiAllOutcome deleteEaiAll(const Model::DeleteEaiAllRequest &request)const;
void deleteEaiAllAsync(const Model::DeleteEaiAllRequest& request, const DeleteEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteEaiAllOutcomeCallable deleteEaiAllCallable(const Model::DeleteEaiAllRequest& request) const;
DescribeEaisOutcome describeEais(const Model::DescribeEaisRequest &request)const;
void describeEaisAsync(const Model::DescribeEaisRequest& request, const DescribeEaisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeEaisOutcomeCallable describeEaisCallable(const Model::DescribeEaisRequest& request) const;
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
DetachEaiOutcome detachEai(const Model::DetachEaiRequest &request)const;
void detachEaiAsync(const Model::DetachEaiRequest& request, const DetachEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachEaiOutcomeCallable detachEaiCallable(const Model::DetachEaiRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_EAIS_EAISCLIENT_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_EAIS_EAISEXPORT_H_
#define ALIBABACLOUD_EAIS_EAISEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_EAIS_LIBRARY)
# define ALIBABACLOUD_EAIS_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_EAIS_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_EAIS_EXPORT
#endif
#endif // !ALIBABACLOUD_EAIS_EAISEXPORT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_EAIS_MODEL_ATTACHEAIREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_ATTACHEAIREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT AttachEaiRequest : public RpcServiceRequest
{
public:
AttachEaiRequest();
~AttachEaiRequest();
std::string getClientInstanceId()const;
void setClientInstanceId(const std::string& clientInstanceId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getElasticAcceleratedInstanceId()const;
void setElasticAcceleratedInstanceId(const std::string& elasticAcceleratedInstanceId);
private:
std::string clientInstanceId_;
std::string regionId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_ATTACHEAIREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_ATTACHEAIRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_ATTACHEAIRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT AttachEaiResult : public ServiceResult
{
public:
AttachEaiResult();
explicit AttachEaiResult(const std::string &payload);
~AttachEaiResult();
std::string getClientInstanceId()const;
std::string getElasticAcceleratedInstanceId()const;
protected:
void parse(const std::string &payload);
private:
std::string clientInstanceId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_ATTACHEAIRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiAllRequest : public RpcServiceRequest
{
public:
CreateEaiAllRequest();
~CreateEaiAllRequest();
std::string getClientImageId()const;
void setClientImageId(const std::string& clientImageId);
std::string getClientSystemDiskCategory()const;
void setClientSystemDiskCategory(const std::string& clientSystemDiskCategory);
int getClientInternetMaxBandwidthOut()const;
void setClientInternetMaxBandwidthOut(int clientInternetMaxBandwidthOut);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getClientInstanceName()const;
void setClientInstanceName(const std::string& clientInstanceName);
int getClientInternetMaxBandwidthIn()const;
void setClientInternetMaxBandwidthIn(int clientInternetMaxBandwidthIn);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getClientSystemDiskSize()const;
void setClientSystemDiskSize(int clientSystemDiskSize);
std::string getClientVSwitchId()const;
void setClientVSwitchId(const std::string& clientVSwitchId);
std::string getClientPassword()const;
void setClientPassword(const std::string& clientPassword);
std::string getClientInstanceType()const;
void setClientInstanceType(const std::string& clientInstanceType);
std::string getClientSecurityGroupId()const;
void setClientSecurityGroupId(const std::string& clientSecurityGroupId);
std::string getEaiInstanceType()const;
void setEaiInstanceType(const std::string& eaiInstanceType);
std::string getClientZoneId()const;
void setClientZoneId(const std::string& clientZoneId);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
private:
std::string clientImageId_;
std::string clientSystemDiskCategory_;
int clientInternetMaxBandwidthOut_;
std::string clientToken_;
std::string clientInstanceName_;
int clientInternetMaxBandwidthIn_;
std::string regionId_;
int clientSystemDiskSize_;
std::string clientVSwitchId_;
std::string clientPassword_;
std::string clientInstanceType_;
std::string clientSecurityGroupId_;
std::string eaiInstanceType_;
std::string clientZoneId_;
std::string instanceName_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiAllResult : public ServiceResult
{
public:
CreateEaiAllResult();
explicit CreateEaiAllResult(const std::string &payload);
~CreateEaiAllResult();
std::string getClientInstanceId()const;
std::string getElasticAcceleratedInstanceId()const;
protected:
void parse(const std::string &payload);
private:
std::string clientInstanceId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_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_EAIS_MODEL_CREATEEAIREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiRequest : public RpcServiceRequest
{
public:
CreateEaiRequest();
~CreateEaiRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
private:
std::string clientToken_;
std::string instanceName_;
std::string regionId_;
std::string instanceType_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiResult : public ServiceResult
{
public:
CreateEaiResult();
explicit CreateEaiResult(const std::string &payload);
~CreateEaiResult();
std::string getElasticAcceleratedInstanceId()const;
protected:
void parse(const std::string &payload);
private:
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_EAIS_MODEL_DELETEEAIALLREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_DELETEEAIALLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DeleteEaiAllRequest : public RpcServiceRequest
{
public:
DeleteEaiAllRequest();
~DeleteEaiAllRequest();
std::string getClientInstanceId()const;
void setClientInstanceId(const std::string& clientInstanceId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getElasticAcceleratedInstanceId()const;
void setElasticAcceleratedInstanceId(const std::string& elasticAcceleratedInstanceId);
private:
std::string clientInstanceId_;
std::string regionId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DELETEEAIALLREQUEST_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_EAIS_MODEL_DELETEEAIALLRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_DELETEEAIALLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DeleteEaiAllResult : public ServiceResult
{
public:
DeleteEaiAllResult();
explicit DeleteEaiAllResult(const std::string &payload);
~DeleteEaiAllResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DELETEEAIALLRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_EAIS_MODEL_DELETEEAIREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_DELETEEAIREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DeleteEaiRequest : public RpcServiceRequest
{
public:
DeleteEaiRequest();
~DeleteEaiRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getElasticAcceleratedInstanceId()const;
void setElasticAcceleratedInstanceId(const std::string& elasticAcceleratedInstanceId);
bool getForce()const;
void setForce(bool force);
private:
std::string regionId_;
std::string elasticAcceleratedInstanceId_;
bool force_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DELETEEAIREQUEST_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_EAIS_MODEL_DELETEEAIRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_DELETEEAIRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DeleteEaiResult : public ServiceResult
{
public:
DeleteEaiResult();
explicit DeleteEaiResult(const std::string &payload);
~DeleteEaiResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DELETEEAIRESULT_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_EAIS_MODEL_DESCRIBEEAISREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_DESCRIBEEAISREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DescribeEaisRequest : public RpcServiceRequest
{
public:
DescribeEaisRequest();
~DescribeEaisRequest();
std::string getElasticAcceleratedInstanceIds()const;
void setElasticAcceleratedInstanceIds(const std::string& elasticAcceleratedInstanceIds);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string elasticAcceleratedInstanceIds_;
std::string instanceName_;
std::string regionId_;
std::string instanceType_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DESCRIBEEAISREQUEST_H_

View File

@@ -0,0 +1,77 @@
/*
* 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_EAIS_MODEL_DESCRIBEEAISRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_DESCRIBEEAISRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DescribeEaisResult : public ServiceResult
{
public:
struct Instance
{
struct Tag
{
std::string tagKey;
std::string tagValue;
};
std::string instanceName;
std::string status;
std::string clientInstanceType;
std::string description;
std::string clientInstanceName;
std::string zoneId;
std::string creationTime;
std::string clientInstanceId;
std::string regionId;
std::string instanceType;
std::vector<Instance::Tag> tags;
std::string elasticAcceleratedInstanceId;
};
DescribeEaisResult();
explicit DescribeEaisResult(const std::string &payload);
~DescribeEaisResult();
std::vector<Instance> getInstances()const;
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Instance> instances_;
int totalCount_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DESCRIBEEAISRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_DESCRIBEREGIONSREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_DESCRIBEREGIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DescribeRegionsRequest : public RpcServiceRequest
{
public:
DescribeRegionsRequest();
~DescribeRegionsRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DESCRIBEREGIONSREQUEST_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_EAIS_MODEL_DESCRIBEREGIONSRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_DESCRIBEREGIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DescribeRegionsResult : public ServiceResult
{
public:
struct Region
{
std::string regionId;
std::string regionEndpoint;
std::string localName;
};
DescribeRegionsResult();
explicit DescribeRegionsResult(const std::string &payload);
~DescribeRegionsResult();
std::vector<Region> getRegions()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Region> regions_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DESCRIBEREGIONSRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_DETACHEAIREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_DETACHEAIREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DetachEaiRequest : public RpcServiceRequest
{
public:
DetachEaiRequest();
~DetachEaiRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getElasticAcceleratedInstanceId()const;
void setElasticAcceleratedInstanceId(const std::string& elasticAcceleratedInstanceId);
private:
std::string regionId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DETACHEAIREQUEST_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_EAIS_MODEL_DETACHEAIRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_DETACHEAIRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT DetachEaiResult : public ServiceResult
{
public:
DetachEaiResult();
explicit DetachEaiResult(const std::string &payload);
~DetachEaiResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_DETACHEAIRESULT_H_