diff --git a/VERSION b/VERSION index afa85c7a5..626a3f7cd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1649 \ No newline at end of file +1.36.1650 \ No newline at end of file diff --git a/eais/CMakeLists.txt b/eais/CMakeLists.txt index 74208cbd7..7fba23c1b 100644 --- a/eais/CMakeLists.txt +++ b/eais/CMakeLists.txt @@ -23,6 +23,8 @@ set(eais_public_header set(eais_public_header_model include/alibabacloud/eais/model/AttachEaiRequest.h include/alibabacloud/eais/model/AttachEaiResult.h + include/alibabacloud/eais/model/AttachEaisEiRequest.h + include/alibabacloud/eais/model/AttachEaisEiResult.h include/alibabacloud/eais/model/ChangeResourceGroupRequest.h include/alibabacloud/eais/model/ChangeResourceGroupResult.h include/alibabacloud/eais/model/CreateEaiRequest.h @@ -35,23 +37,35 @@ set(eais_public_header_model include/alibabacloud/eais/model/CreateEaiEcsResult.h include/alibabacloud/eais/model/CreateEaiJupyterRequest.h include/alibabacloud/eais/model/CreateEaiJupyterResult.h + include/alibabacloud/eais/model/CreateEaisEiRequest.h + include/alibabacloud/eais/model/CreateEaisEiResult.h include/alibabacloud/eais/model/DeleteEaiRequest.h include/alibabacloud/eais/model/DeleteEaiResult.h include/alibabacloud/eais/model/DeleteEaiAllRequest.h include/alibabacloud/eais/model/DeleteEaiAllResult.h + include/alibabacloud/eais/model/DeleteEaisEiRequest.h + include/alibabacloud/eais/model/DeleteEaisEiResult.h include/alibabacloud/eais/model/DescribeEaisRequest.h include/alibabacloud/eais/model/DescribeEaisResult.h include/alibabacloud/eais/model/DescribeRegionsRequest.h include/alibabacloud/eais/model/DescribeRegionsResult.h include/alibabacloud/eais/model/DetachEaiRequest.h include/alibabacloud/eais/model/DetachEaiResult.h + include/alibabacloud/eais/model/DetachEaisEiRequest.h + include/alibabacloud/eais/model/DetachEaisEiResult.h include/alibabacloud/eais/model/GetInstanceMetricsRequest.h - include/alibabacloud/eais/model/GetInstanceMetricsResult.h ) + include/alibabacloud/eais/model/GetInstanceMetricsResult.h + include/alibabacloud/eais/model/StartEaisEiRequest.h + include/alibabacloud/eais/model/StartEaisEiResult.h + include/alibabacloud/eais/model/StopEaisEiRequest.h + include/alibabacloud/eais/model/StopEaisEiResult.h ) set(eais_src src/EaisClient.cc src/model/AttachEaiRequest.cc src/model/AttachEaiResult.cc + src/model/AttachEaisEiRequest.cc + src/model/AttachEaisEiResult.cc src/model/ChangeResourceGroupRequest.cc src/model/ChangeResourceGroupResult.cc src/model/CreateEaiRequest.cc @@ -64,18 +78,28 @@ set(eais_src src/model/CreateEaiEcsResult.cc src/model/CreateEaiJupyterRequest.cc src/model/CreateEaiJupyterResult.cc + src/model/CreateEaisEiRequest.cc + src/model/CreateEaisEiResult.cc src/model/DeleteEaiRequest.cc src/model/DeleteEaiResult.cc src/model/DeleteEaiAllRequest.cc src/model/DeleteEaiAllResult.cc + src/model/DeleteEaisEiRequest.cc + src/model/DeleteEaisEiResult.cc src/model/DescribeEaisRequest.cc src/model/DescribeEaisResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc src/model/DetachEaiRequest.cc src/model/DetachEaiResult.cc + src/model/DetachEaisEiRequest.cc + src/model/DetachEaisEiResult.cc src/model/GetInstanceMetricsRequest.cc - src/model/GetInstanceMetricsResult.cc ) + src/model/GetInstanceMetricsResult.cc + src/model/StartEaisEiRequest.cc + src/model/StartEaisEiResult.cc + src/model/StopEaisEiRequest.cc + src/model/StopEaisEiResult.cc ) add_library(eais ${LIB_TYPE} ${eais_public_header} diff --git a/eais/include/alibabacloud/eais/EaisClient.h b/eais/include/alibabacloud/eais/EaisClient.h index 43a070bf5..112c0dca1 100644 --- a/eais/include/alibabacloud/eais/EaisClient.h +++ b/eais/include/alibabacloud/eais/EaisClient.h @@ -24,6 +24,8 @@ #include "EaisExport.h" #include "model/AttachEaiRequest.h" #include "model/AttachEaiResult.h" +#include "model/AttachEaisEiRequest.h" +#include "model/AttachEaisEiResult.h" #include "model/ChangeResourceGroupRequest.h" #include "model/ChangeResourceGroupResult.h" #include "model/CreateEaiRequest.h" @@ -36,18 +38,28 @@ #include "model/CreateEaiEcsResult.h" #include "model/CreateEaiJupyterRequest.h" #include "model/CreateEaiJupyterResult.h" +#include "model/CreateEaisEiRequest.h" +#include "model/CreateEaisEiResult.h" #include "model/DeleteEaiRequest.h" #include "model/DeleteEaiResult.h" #include "model/DeleteEaiAllRequest.h" #include "model/DeleteEaiAllResult.h" +#include "model/DeleteEaisEiRequest.h" +#include "model/DeleteEaisEiResult.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" +#include "model/DetachEaisEiRequest.h" +#include "model/DetachEaisEiResult.h" #include "model/GetInstanceMetricsRequest.h" #include "model/GetInstanceMetricsResult.h" +#include "model/StartEaisEiRequest.h" +#include "model/StartEaisEiResult.h" +#include "model/StopEaisEiRequest.h" +#include "model/StopEaisEiResult.h" namespace AlibabaCloud @@ -60,6 +72,9 @@ namespace AlibabaCloud typedef Outcome AttachEaiOutcome; typedef std::future AttachEaiOutcomeCallable; typedef std::function&)> AttachEaiAsyncHandler; + typedef Outcome AttachEaisEiOutcome; + typedef std::future AttachEaisEiOutcomeCallable; + typedef std::function&)> AttachEaisEiAsyncHandler; typedef Outcome ChangeResourceGroupOutcome; typedef std::future ChangeResourceGroupOutcomeCallable; typedef std::function&)> ChangeResourceGroupAsyncHandler; @@ -78,12 +93,18 @@ namespace AlibabaCloud typedef Outcome CreateEaiJupyterOutcome; typedef std::future CreateEaiJupyterOutcomeCallable; typedef std::function&)> CreateEaiJupyterAsyncHandler; + typedef Outcome CreateEaisEiOutcome; + typedef std::future CreateEaisEiOutcomeCallable; + typedef std::function&)> CreateEaisEiAsyncHandler; typedef Outcome DeleteEaiOutcome; typedef std::future DeleteEaiOutcomeCallable; typedef std::function&)> DeleteEaiAsyncHandler; typedef Outcome DeleteEaiAllOutcome; typedef std::future DeleteEaiAllOutcomeCallable; typedef std::function&)> DeleteEaiAllAsyncHandler; + typedef Outcome DeleteEaisEiOutcome; + typedef std::future DeleteEaisEiOutcomeCallable; + typedef std::function&)> DeleteEaisEiAsyncHandler; typedef Outcome DescribeEaisOutcome; typedef std::future DescribeEaisOutcomeCallable; typedef std::function&)> DescribeEaisAsyncHandler; @@ -93,9 +114,18 @@ namespace AlibabaCloud typedef Outcome DetachEaiOutcome; typedef std::future DetachEaiOutcomeCallable; typedef std::function&)> DetachEaiAsyncHandler; + typedef Outcome DetachEaisEiOutcome; + typedef std::future DetachEaisEiOutcomeCallable; + typedef std::function&)> DetachEaisEiAsyncHandler; typedef Outcome GetInstanceMetricsOutcome; typedef std::future GetInstanceMetricsOutcomeCallable; typedef std::function&)> GetInstanceMetricsAsyncHandler; + typedef Outcome StartEaisEiOutcome; + typedef std::future StartEaisEiOutcomeCallable; + typedef std::function&)> StartEaisEiAsyncHandler; + typedef Outcome StopEaisEiOutcome; + typedef std::future StopEaisEiOutcomeCallable; + typedef std::function&)> StopEaisEiAsyncHandler; EaisClient(const Credentials &credentials, const ClientConfiguration &configuration); EaisClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -104,6 +134,9 @@ namespace AlibabaCloud AttachEaiOutcome attachEai(const Model::AttachEaiRequest &request)const; void attachEaiAsync(const Model::AttachEaiRequest& request, const AttachEaiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachEaiOutcomeCallable attachEaiCallable(const Model::AttachEaiRequest& request) const; + AttachEaisEiOutcome attachEaisEi(const Model::AttachEaisEiRequest &request)const; + void attachEaisEiAsync(const Model::AttachEaisEiRequest& request, const AttachEaisEiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachEaisEiOutcomeCallable attachEaisEiCallable(const Model::AttachEaisEiRequest& request) const; ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const; void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const; @@ -122,12 +155,18 @@ namespace AlibabaCloud CreateEaiJupyterOutcome createEaiJupyter(const Model::CreateEaiJupyterRequest &request)const; void createEaiJupyterAsync(const Model::CreateEaiJupyterRequest& request, const CreateEaiJupyterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateEaiJupyterOutcomeCallable createEaiJupyterCallable(const Model::CreateEaiJupyterRequest& request) const; + CreateEaisEiOutcome createEaisEi(const Model::CreateEaisEiRequest &request)const; + void createEaisEiAsync(const Model::CreateEaisEiRequest& request, const CreateEaisEiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEaisEiOutcomeCallable createEaisEiCallable(const Model::CreateEaisEiRequest& request) const; DeleteEaiOutcome deleteEai(const Model::DeleteEaiRequest &request)const; void deleteEaiAsync(const Model::DeleteEaiRequest& request, const DeleteEaiAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; DeleteEaiAllOutcomeCallable deleteEaiAllCallable(const Model::DeleteEaiAllRequest& request) const; + DeleteEaisEiOutcome deleteEaisEi(const Model::DeleteEaisEiRequest &request)const; + void deleteEaisEiAsync(const Model::DeleteEaisEiRequest& request, const DeleteEaisEiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEaisEiOutcomeCallable deleteEaisEiCallable(const Model::DeleteEaisEiRequest& request) const; DescribeEaisOutcome describeEais(const Model::DescribeEaisRequest &request)const; void describeEaisAsync(const Model::DescribeEaisRequest& request, const DescribeEaisAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEaisOutcomeCallable describeEaisCallable(const Model::DescribeEaisRequest& request) const; @@ -137,9 +176,18 @@ namespace AlibabaCloud DetachEaiOutcome detachEai(const Model::DetachEaiRequest &request)const; void detachEaiAsync(const Model::DetachEaiRequest& request, const DetachEaiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachEaiOutcomeCallable detachEaiCallable(const Model::DetachEaiRequest& request) const; + DetachEaisEiOutcome detachEaisEi(const Model::DetachEaisEiRequest &request)const; + void detachEaisEiAsync(const Model::DetachEaisEiRequest& request, const DetachEaisEiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachEaisEiOutcomeCallable detachEaisEiCallable(const Model::DetachEaisEiRequest& request) const; GetInstanceMetricsOutcome getInstanceMetrics(const Model::GetInstanceMetricsRequest &request)const; void getInstanceMetricsAsync(const Model::GetInstanceMetricsRequest& request, const GetInstanceMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetInstanceMetricsOutcomeCallable getInstanceMetricsCallable(const Model::GetInstanceMetricsRequest& request) const; + StartEaisEiOutcome startEaisEi(const Model::StartEaisEiRequest &request)const; + void startEaisEiAsync(const Model::StartEaisEiRequest& request, const StartEaisEiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartEaisEiOutcomeCallable startEaisEiCallable(const Model::StartEaisEiRequest& request) const; + StopEaisEiOutcome stopEaisEi(const Model::StopEaisEiRequest &request)const; + void stopEaisEiAsync(const Model::StopEaisEiRequest& request, const StopEaisEiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopEaisEiOutcomeCallable stopEaisEiCallable(const Model::StopEaisEiRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/eais/include/alibabacloud/eais/model/AttachEaisEiRequest.h b/eais/include/alibabacloud/eais/model/AttachEaisEiRequest.h new file mode 100644 index 000000000..8da8a44bb --- /dev/null +++ b/eais/include/alibabacloud/eais/model/AttachEaisEiRequest.h @@ -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_ATTACHEAISEIREQUEST_H_ +#define ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eais { +namespace Model { +class ALIBABACLOUD_EAIS_EXPORT AttachEaisEiRequest : public RpcServiceRequest { +public: + AttachEaisEiRequest(); + ~AttachEaisEiRequest(); + std::string getEiInstanceType() const; + void setEiInstanceType(const std::string &eiInstanceType); + std::string getClientInstanceId() const; + void setClientInstanceId(const std::string &clientInstanceId); + std::string getEiInstanceId() const; + void setEiInstanceId(const std::string &eiInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string eiInstanceType_; + std::string clientInstanceId_; + std::string eiInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Eais +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIREQUEST_H_ diff --git a/eais/include/alibabacloud/eais/model/AttachEaisEiResult.h b/eais/include/alibabacloud/eais/model/AttachEaisEiResult.h new file mode 100644 index 000000000..ed611beaf --- /dev/null +++ b/eais/include/alibabacloud/eais/model/AttachEaisEiResult.h @@ -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_ATTACHEAISEIRESULT_H_ +#define ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eais + { + namespace Model + { + class ALIBABACLOUD_EAIS_EXPORT AttachEaisEiResult : public ServiceResult + { + public: + + + AttachEaisEiResult(); + explicit AttachEaisEiResult(const std::string &payload); + ~AttachEaisEiResult(); + std::string getEiInstanceId()const; + std::string getClientInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eiInstanceId_; + std::string clientInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAIS_MODEL_ATTACHEAISEIRESULT_H_ \ No newline at end of file diff --git a/eais/include/alibabacloud/eais/model/CreateEaiJupyterRequest.h b/eais/include/alibabacloud/eais/model/CreateEaiJupyterRequest.h index 6bd405cc7..484462174 100644 --- a/eais/include/alibabacloud/eais/model/CreateEaiJupyterRequest.h +++ b/eais/include/alibabacloud/eais/model/CreateEaiJupyterRequest.h @@ -48,6 +48,8 @@ public: void setRegionId(const std::string ®ionId); std::vector getEnvironmentVar() const; void setEnvironmentVar(const std::vector &environmentVar); + std::string getEaisName() const; + void setEaisName(const std::string &eaisName); private: std::string clientToken_; @@ -57,6 +59,7 @@ private: std::string resourceGroupId_; std::string regionId_; std::vector environmentVar_; + std::string eaisName_; }; } // namespace Model } // namespace Eais diff --git a/eais/include/alibabacloud/eais/model/CreateEaiRequest.h b/eais/include/alibabacloud/eais/model/CreateEaiRequest.h index 98227053b..f41d56bb4 100644 --- a/eais/include/alibabacloud/eais/model/CreateEaiRequest.h +++ b/eais/include/alibabacloud/eais/model/CreateEaiRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_EAIS_EXPORT CreateEaiRequest : public RpcServiceRequest { public: CreateEaiRequest(); ~CreateEaiRequest(); + std::string getImage() const; + void setImage(const std::string &image); std::string getClientToken() const; void setClientToken(const std::string &clientToken); std::string getSecurityGroupId() const; @@ -46,6 +48,7 @@ public: void setInstanceType(const std::string &instanceType); private: + std::string image_; std::string clientToken_; std::string securityGroupId_; std::string vSwitchId_; diff --git a/eais/include/alibabacloud/eais/model/CreateEaisEiRequest.h b/eais/include/alibabacloud/eais/model/CreateEaisEiRequest.h new file mode 100644 index 000000000..d6e5e7204 --- /dev/null +++ b/eais/include/alibabacloud/eais/model/CreateEaisEiRequest.h @@ -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_CREATEEAISEIREQUEST_H_ +#define ALIBABACLOUD_EAIS_MODEL_CREATEEAISEIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eais { +namespace Model { +class ALIBABACLOUD_EAIS_EXPORT CreateEaisEiRequest : public RpcServiceRequest { +public: + CreateEaisEiRequest(); + ~CreateEaisEiRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + +private: + std::string clientToken_; + std::string securityGroupId_; + std::string vSwitchId_; + std::string resourceGroupId_; + std::string instanceName_; + std::string regionId_; + std::string instanceType_; +}; +} // namespace Model +} // namespace Eais +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAISEIREQUEST_H_ diff --git a/eais/include/alibabacloud/eais/model/CreateEaisEiResult.h b/eais/include/alibabacloud/eais/model/CreateEaisEiResult.h new file mode 100644 index 000000000..1aa7f3ab2 --- /dev/null +++ b/eais/include/alibabacloud/eais/model/CreateEaisEiResult.h @@ -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_CREATEEAISEIRESULT_H_ +#define ALIBABACLOUD_EAIS_MODEL_CREATEEAISEIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eais + { + namespace Model + { + class ALIBABACLOUD_EAIS_EXPORT CreateEaisEiResult : public ServiceResult + { + public: + + + CreateEaisEiResult(); + explicit CreateEaisEiResult(const std::string &payload); + ~CreateEaisEiResult(); + std::string getEiInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eiInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAISEIRESULT_H_ \ No newline at end of file diff --git a/eais/include/alibabacloud/eais/model/DeleteEaisEiRequest.h b/eais/include/alibabacloud/eais/model/DeleteEaisEiRequest.h new file mode 100644 index 000000000..77185da80 --- /dev/null +++ b/eais/include/alibabacloud/eais/model/DeleteEaisEiRequest.h @@ -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_EAIS_MODEL_DELETEEAISEIREQUEST_H_ +#define ALIBABACLOUD_EAIS_MODEL_DELETEEAISEIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eais { +namespace Model { +class ALIBABACLOUD_EAIS_EXPORT DeleteEaisEiRequest : public RpcServiceRequest { +public: + DeleteEaisEiRequest(); + ~DeleteEaisEiRequest(); + std::string getEiInstanceId() const; + void setEiInstanceId(const std::string &eiInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getForce() const; + void setForce(bool force); + +private: + std::string eiInstanceId_; + std::string regionId_; + bool force_; +}; +} // namespace Model +} // namespace Eais +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAIS_MODEL_DELETEEAISEIREQUEST_H_ diff --git a/eais/include/alibabacloud/eais/model/DeleteEaisEiResult.h b/eais/include/alibabacloud/eais/model/DeleteEaisEiResult.h new file mode 100644 index 000000000..c8979bdd0 --- /dev/null +++ b/eais/include/alibabacloud/eais/model/DeleteEaisEiResult.h @@ -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_DELETEEAISEIRESULT_H_ +#define ALIBABACLOUD_EAIS_MODEL_DELETEEAISEIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eais + { + namespace Model + { + class ALIBABACLOUD_EAIS_EXPORT DeleteEaisEiResult : public ServiceResult + { + public: + + + DeleteEaisEiResult(); + explicit DeleteEaisEiResult(const std::string &payload); + ~DeleteEaisEiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAIS_MODEL_DELETEEAISEIRESULT_H_ \ No newline at end of file diff --git a/eais/include/alibabacloud/eais/model/DetachEaisEiRequest.h b/eais/include/alibabacloud/eais/model/DetachEaisEiRequest.h new file mode 100644 index 000000000..11b88f1aa --- /dev/null +++ b/eais/include/alibabacloud/eais/model/DetachEaisEiRequest.h @@ -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_DETACHEAISEIREQUEST_H_ +#define ALIBABACLOUD_EAIS_MODEL_DETACHEAISEIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eais { +namespace Model { +class ALIBABACLOUD_EAIS_EXPORT DetachEaisEiRequest : public RpcServiceRequest { +public: + DetachEaisEiRequest(); + ~DetachEaisEiRequest(); + std::string getEiInstanceId() const; + void setEiInstanceId(const std::string &eiInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string eiInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Eais +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAIS_MODEL_DETACHEAISEIREQUEST_H_ diff --git a/eais/include/alibabacloud/eais/model/DetachEaisEiResult.h b/eais/include/alibabacloud/eais/model/DetachEaisEiResult.h new file mode 100644 index 000000000..a4e731b92 --- /dev/null +++ b/eais/include/alibabacloud/eais/model/DetachEaisEiResult.h @@ -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_DETACHEAISEIRESULT_H_ +#define ALIBABACLOUD_EAIS_MODEL_DETACHEAISEIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eais + { + namespace Model + { + class ALIBABACLOUD_EAIS_EXPORT DetachEaisEiResult : public ServiceResult + { + public: + + + DetachEaisEiResult(); + explicit DetachEaisEiResult(const std::string &payload); + ~DetachEaisEiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAIS_MODEL_DETACHEAISEIRESULT_H_ \ No newline at end of file diff --git a/eais/include/alibabacloud/eais/model/GetInstanceMetricsRequest.h b/eais/include/alibabacloud/eais/model/GetInstanceMetricsRequest.h index e8c686553..f25e5da31 100644 --- a/eais/include/alibabacloud/eais/model/GetInstanceMetricsRequest.h +++ b/eais/include/alibabacloud/eais/model/GetInstanceMetricsRequest.h @@ -40,6 +40,8 @@ public: void setStartTime(const std::string &startTime); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); private: std::string metricType_; @@ -47,6 +49,7 @@ private: std::string endTime_; std::string startTime_; std::string instanceId_; + std::string regionId_; }; } // namespace Model } // namespace Eais diff --git a/eais/include/alibabacloud/eais/model/StartEaisEiRequest.h b/eais/include/alibabacloud/eais/model/StartEaisEiRequest.h new file mode 100644 index 000000000..962c3927b --- /dev/null +++ b/eais/include/alibabacloud/eais/model/StartEaisEiRequest.h @@ -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_STARTEAISEIREQUEST_H_ +#define ALIBABACLOUD_EAIS_MODEL_STARTEAISEIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eais { +namespace Model { +class ALIBABACLOUD_EAIS_EXPORT StartEaisEiRequest : public RpcServiceRequest { +public: + StartEaisEiRequest(); + ~StartEaisEiRequest(); + std::string getEiInstanceId() const; + void setEiInstanceId(const std::string &eiInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string eiInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Eais +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAIS_MODEL_STARTEAISEIREQUEST_H_ diff --git a/eais/include/alibabacloud/eais/model/StartEaisEiResult.h b/eais/include/alibabacloud/eais/model/StartEaisEiResult.h new file mode 100644 index 000000000..17b42e7e9 --- /dev/null +++ b/eais/include/alibabacloud/eais/model/StartEaisEiResult.h @@ -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_STARTEAISEIRESULT_H_ +#define ALIBABACLOUD_EAIS_MODEL_STARTEAISEIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eais + { + namespace Model + { + class ALIBABACLOUD_EAIS_EXPORT StartEaisEiResult : public ServiceResult + { + public: + + + StartEaisEiResult(); + explicit StartEaisEiResult(const std::string &payload); + ~StartEaisEiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAIS_MODEL_STARTEAISEIRESULT_H_ \ No newline at end of file diff --git a/eais/include/alibabacloud/eais/model/StopEaisEiRequest.h b/eais/include/alibabacloud/eais/model/StopEaisEiRequest.h new file mode 100644 index 000000000..26ca4e494 --- /dev/null +++ b/eais/include/alibabacloud/eais/model/StopEaisEiRequest.h @@ -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_STOPEAISEIREQUEST_H_ +#define ALIBABACLOUD_EAIS_MODEL_STOPEAISEIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eais { +namespace Model { +class ALIBABACLOUD_EAIS_EXPORT StopEaisEiRequest : public RpcServiceRequest { +public: + StopEaisEiRequest(); + ~StopEaisEiRequest(); + std::string getEiInstanceId() const; + void setEiInstanceId(const std::string &eiInstanceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string eiInstanceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Eais +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAIS_MODEL_STOPEAISEIREQUEST_H_ diff --git a/eais/include/alibabacloud/eais/model/StopEaisEiResult.h b/eais/include/alibabacloud/eais/model/StopEaisEiResult.h new file mode 100644 index 000000000..aa9c4ad1b --- /dev/null +++ b/eais/include/alibabacloud/eais/model/StopEaisEiResult.h @@ -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_STOPEAISEIRESULT_H_ +#define ALIBABACLOUD_EAIS_MODEL_STOPEAISEIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eais + { + namespace Model + { + class ALIBABACLOUD_EAIS_EXPORT StopEaisEiResult : public ServiceResult + { + public: + + + StopEaisEiResult(); + explicit StopEaisEiResult(const std::string &payload); + ~StopEaisEiResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EAIS_MODEL_STOPEAISEIRESULT_H_ \ No newline at end of file diff --git a/eais/src/EaisClient.cc b/eais/src/EaisClient.cc index d5c2b8663..4cd3cd0b9 100644 --- a/eais/src/EaisClient.cc +++ b/eais/src/EaisClient.cc @@ -87,6 +87,42 @@ EaisClient::AttachEaiOutcomeCallable EaisClient::attachEaiCallable(const AttachE return task->get_future(); } +EaisClient::AttachEaisEiOutcome EaisClient::attachEaisEi(const AttachEaisEiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachEaisEiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachEaisEiOutcome(AttachEaisEiResult(outcome.result())); + else + return AttachEaisEiOutcome(outcome.error()); +} + +void EaisClient::attachEaisEiAsync(const AttachEaisEiRequest& request, const AttachEaisEiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachEaisEi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EaisClient::AttachEaisEiOutcomeCallable EaisClient::attachEaisEiCallable(const AttachEaisEiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachEaisEi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EaisClient::ChangeResourceGroupOutcome EaisClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +339,42 @@ EaisClient::CreateEaiJupyterOutcomeCallable EaisClient::createEaiJupyterCallable return task->get_future(); } +EaisClient::CreateEaisEiOutcome EaisClient::createEaisEi(const CreateEaisEiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEaisEiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEaisEiOutcome(CreateEaisEiResult(outcome.result())); + else + return CreateEaisEiOutcome(outcome.error()); +} + +void EaisClient::createEaisEiAsync(const CreateEaisEiRequest& request, const CreateEaisEiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEaisEi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EaisClient::CreateEaisEiOutcomeCallable EaisClient::createEaisEiCallable(const CreateEaisEiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEaisEi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EaisClient::DeleteEaiOutcome EaisClient::deleteEai(const DeleteEaiRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +447,42 @@ EaisClient::DeleteEaiAllOutcomeCallable EaisClient::deleteEaiAllCallable(const D return task->get_future(); } +EaisClient::DeleteEaisEiOutcome EaisClient::deleteEaisEi(const DeleteEaisEiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEaisEiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEaisEiOutcome(DeleteEaisEiResult(outcome.result())); + else + return DeleteEaisEiOutcome(outcome.error()); +} + +void EaisClient::deleteEaisEiAsync(const DeleteEaisEiRequest& request, const DeleteEaisEiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEaisEi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EaisClient::DeleteEaisEiOutcomeCallable EaisClient::deleteEaisEiCallable(const DeleteEaisEiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEaisEi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EaisClient::DescribeEaisOutcome EaisClient::describeEais(const DescribeEaisRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +591,42 @@ EaisClient::DetachEaiOutcomeCallable EaisClient::detachEaiCallable(const DetachE return task->get_future(); } +EaisClient::DetachEaisEiOutcome EaisClient::detachEaisEi(const DetachEaisEiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachEaisEiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachEaisEiOutcome(DetachEaisEiResult(outcome.result())); + else + return DetachEaisEiOutcome(outcome.error()); +} + +void EaisClient::detachEaisEiAsync(const DetachEaisEiRequest& request, const DetachEaisEiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachEaisEi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EaisClient::DetachEaisEiOutcomeCallable EaisClient::detachEaisEiCallable(const DetachEaisEiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachEaisEi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EaisClient::GetInstanceMetricsOutcome EaisClient::getInstanceMetrics(const GetInstanceMetricsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,3 +663,75 @@ EaisClient::GetInstanceMetricsOutcomeCallable EaisClient::getInstanceMetricsCall return task->get_future(); } +EaisClient::StartEaisEiOutcome EaisClient::startEaisEi(const StartEaisEiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartEaisEiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartEaisEiOutcome(StartEaisEiResult(outcome.result())); + else + return StartEaisEiOutcome(outcome.error()); +} + +void EaisClient::startEaisEiAsync(const StartEaisEiRequest& request, const StartEaisEiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startEaisEi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EaisClient::StartEaisEiOutcomeCallable EaisClient::startEaisEiCallable(const StartEaisEiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startEaisEi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EaisClient::StopEaisEiOutcome EaisClient::stopEaisEi(const StopEaisEiRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopEaisEiOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopEaisEiOutcome(StopEaisEiResult(outcome.result())); + else + return StopEaisEiOutcome(outcome.error()); +} + +void EaisClient::stopEaisEiAsync(const StopEaisEiRequest& request, const StopEaisEiAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopEaisEi(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EaisClient::StopEaisEiOutcomeCallable EaisClient::stopEaisEiCallable(const StopEaisEiRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopEaisEi(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/eais/src/model/AttachEaisEiRequest.cc b/eais/src/model/AttachEaisEiRequest.cc new file mode 100644 index 000000000..aa5478f26 --- /dev/null +++ b/eais/src/model/AttachEaisEiRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Eais::Model::AttachEaisEiRequest; + +AttachEaisEiRequest::AttachEaisEiRequest() + : RpcServiceRequest("eais", "2019-06-24", "AttachEaisEi") { + setMethod(HttpRequest::Method::Post); +} + +AttachEaisEiRequest::~AttachEaisEiRequest() {} + +std::string AttachEaisEiRequest::getEiInstanceType() const { + return eiInstanceType_; +} + +void AttachEaisEiRequest::setEiInstanceType(const std::string &eiInstanceType) { + eiInstanceType_ = eiInstanceType; + setParameter(std::string("EiInstanceType"), eiInstanceType); +} + +std::string AttachEaisEiRequest::getClientInstanceId() const { + return clientInstanceId_; +} + +void AttachEaisEiRequest::setClientInstanceId(const std::string &clientInstanceId) { + clientInstanceId_ = clientInstanceId; + setParameter(std::string("ClientInstanceId"), clientInstanceId); +} + +std::string AttachEaisEiRequest::getEiInstanceId() const { + return eiInstanceId_; +} + +void AttachEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) { + eiInstanceId_ = eiInstanceId; + setParameter(std::string("EiInstanceId"), eiInstanceId); +} + +std::string AttachEaisEiRequest::getRegionId() const { + return regionId_; +} + +void AttachEaisEiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/eais/src/model/AttachEaisEiResult.cc b/eais/src/model/AttachEaisEiResult.cc new file mode 100644 index 000000000..21a05fe16 --- /dev/null +++ b/eais/src/model/AttachEaisEiResult.cc @@ -0,0 +1,58 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Eais; +using namespace AlibabaCloud::Eais::Model; + +AttachEaisEiResult::AttachEaisEiResult() : + ServiceResult() +{} + +AttachEaisEiResult::AttachEaisEiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachEaisEiResult::~AttachEaisEiResult() +{} + +void AttachEaisEiResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EiInstanceId"].isNull()) + eiInstanceId_ = value["EiInstanceId"].asString(); + if(!value["ClientInstanceId"].isNull()) + clientInstanceId_ = value["ClientInstanceId"].asString(); + +} + +std::string AttachEaisEiResult::getEiInstanceId()const +{ + return eiInstanceId_; +} + +std::string AttachEaisEiResult::getClientInstanceId()const +{ + return clientInstanceId_; +} + diff --git a/eais/src/model/CreateEaiJupyterRequest.cc b/eais/src/model/CreateEaiJupyterRequest.cc index b36d98460..8502d7714 100644 --- a/eais/src/model/CreateEaiJupyterRequest.cc +++ b/eais/src/model/CreateEaiJupyterRequest.cc @@ -91,3 +91,12 @@ void CreateEaiJupyterRequest::setEnvironmentVar(const std::vector + +using AlibabaCloud::Eais::Model::CreateEaisEiRequest; + +CreateEaisEiRequest::CreateEaisEiRequest() + : RpcServiceRequest("eais", "2019-06-24", "CreateEaisEi") { + setMethod(HttpRequest::Method::Post); +} + +CreateEaisEiRequest::~CreateEaisEiRequest() {} + +std::string CreateEaisEiRequest::getClientToken() const { + return clientToken_; +} + +void CreateEaisEiRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateEaisEiRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void CreateEaisEiRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string CreateEaisEiRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateEaisEiRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateEaisEiRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateEaisEiRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateEaisEiRequest::getInstanceName() const { + return instanceName_; +} + +void CreateEaisEiRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +std::string CreateEaisEiRequest::getRegionId() const { + return regionId_; +} + +void CreateEaisEiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateEaisEiRequest::getInstanceType() const { + return instanceType_; +} + +void CreateEaisEiRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + diff --git a/eais/src/model/CreateEaisEiResult.cc b/eais/src/model/CreateEaisEiResult.cc new file mode 100644 index 000000000..009e8b21d --- /dev/null +++ b/eais/src/model/CreateEaisEiResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eais; +using namespace AlibabaCloud::Eais::Model; + +CreateEaisEiResult::CreateEaisEiResult() : + ServiceResult() +{} + +CreateEaisEiResult::CreateEaisEiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEaisEiResult::~CreateEaisEiResult() +{} + +void CreateEaisEiResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EiInstanceId"].isNull()) + eiInstanceId_ = value["EiInstanceId"].asString(); + +} + +std::string CreateEaisEiResult::getEiInstanceId()const +{ + return eiInstanceId_; +} + diff --git a/eais/src/model/DeleteEaisEiRequest.cc b/eais/src/model/DeleteEaisEiRequest.cc new file mode 100644 index 000000000..bcc95c63e --- /dev/null +++ b/eais/src/model/DeleteEaisEiRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Eais::Model::DeleteEaisEiRequest; + +DeleteEaisEiRequest::DeleteEaisEiRequest() + : RpcServiceRequest("eais", "2019-06-24", "DeleteEaisEi") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEaisEiRequest::~DeleteEaisEiRequest() {} + +std::string DeleteEaisEiRequest::getEiInstanceId() const { + return eiInstanceId_; +} + +void DeleteEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) { + eiInstanceId_ = eiInstanceId; + setParameter(std::string("EiInstanceId"), eiInstanceId); +} + +std::string DeleteEaisEiRequest::getRegionId() const { + return regionId_; +} + +void DeleteEaisEiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeleteEaisEiRequest::getForce() const { + return force_; +} + +void DeleteEaisEiRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); +} + diff --git a/eais/src/model/DeleteEaisEiResult.cc b/eais/src/model/DeleteEaisEiResult.cc new file mode 100644 index 000000000..86ab316fe --- /dev/null +++ b/eais/src/model/DeleteEaisEiResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eais; +using namespace AlibabaCloud::Eais::Model; + +DeleteEaisEiResult::DeleteEaisEiResult() : + ServiceResult() +{} + +DeleteEaisEiResult::DeleteEaisEiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEaisEiResult::~DeleteEaisEiResult() +{} + +void DeleteEaisEiResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eais/src/model/DetachEaisEiRequest.cc b/eais/src/model/DetachEaisEiRequest.cc new file mode 100644 index 000000000..180970217 --- /dev/null +++ b/eais/src/model/DetachEaisEiRequest.cc @@ -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 + +using AlibabaCloud::Eais::Model::DetachEaisEiRequest; + +DetachEaisEiRequest::DetachEaisEiRequest() + : RpcServiceRequest("eais", "2019-06-24", "DetachEaisEi") { + setMethod(HttpRequest::Method::Post); +} + +DetachEaisEiRequest::~DetachEaisEiRequest() {} + +std::string DetachEaisEiRequest::getEiInstanceId() const { + return eiInstanceId_; +} + +void DetachEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) { + eiInstanceId_ = eiInstanceId; + setParameter(std::string("EiInstanceId"), eiInstanceId); +} + +std::string DetachEaisEiRequest::getRegionId() const { + return regionId_; +} + +void DetachEaisEiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/eais/src/model/DetachEaisEiResult.cc b/eais/src/model/DetachEaisEiResult.cc new file mode 100644 index 000000000..291b4e40b --- /dev/null +++ b/eais/src/model/DetachEaisEiResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eais; +using namespace AlibabaCloud::Eais::Model; + +DetachEaisEiResult::DetachEaisEiResult() : + ServiceResult() +{} + +DetachEaisEiResult::DetachEaisEiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachEaisEiResult::~DetachEaisEiResult() +{} + +void DetachEaisEiResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eais/src/model/GetInstanceMetricsRequest.cc b/eais/src/model/GetInstanceMetricsRequest.cc index 989ff6d3c..dad4c9cfc 100644 --- a/eais/src/model/GetInstanceMetricsRequest.cc +++ b/eais/src/model/GetInstanceMetricsRequest.cc @@ -70,3 +70,12 @@ void GetInstanceMetricsRequest::setInstanceId(const std::string &instanceId) { setParameter(std::string("InstanceId"), instanceId); } +std::string GetInstanceMetricsRequest::getRegionId() const { + return regionId_; +} + +void GetInstanceMetricsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/eais/src/model/StartEaisEiRequest.cc b/eais/src/model/StartEaisEiRequest.cc new file mode 100644 index 000000000..2bbb10538 --- /dev/null +++ b/eais/src/model/StartEaisEiRequest.cc @@ -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 + +using AlibabaCloud::Eais::Model::StartEaisEiRequest; + +StartEaisEiRequest::StartEaisEiRequest() + : RpcServiceRequest("eais", "2019-06-24", "StartEaisEi") { + setMethod(HttpRequest::Method::Post); +} + +StartEaisEiRequest::~StartEaisEiRequest() {} + +std::string StartEaisEiRequest::getEiInstanceId() const { + return eiInstanceId_; +} + +void StartEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) { + eiInstanceId_ = eiInstanceId; + setParameter(std::string("EiInstanceId"), eiInstanceId); +} + +std::string StartEaisEiRequest::getRegionId() const { + return regionId_; +} + +void StartEaisEiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/eais/src/model/StartEaisEiResult.cc b/eais/src/model/StartEaisEiResult.cc new file mode 100644 index 000000000..3156836a0 --- /dev/null +++ b/eais/src/model/StartEaisEiResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eais; +using namespace AlibabaCloud::Eais::Model; + +StartEaisEiResult::StartEaisEiResult() : + ServiceResult() +{} + +StartEaisEiResult::StartEaisEiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartEaisEiResult::~StartEaisEiResult() +{} + +void StartEaisEiResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eais/src/model/StopEaisEiRequest.cc b/eais/src/model/StopEaisEiRequest.cc new file mode 100644 index 000000000..ace86f20a --- /dev/null +++ b/eais/src/model/StopEaisEiRequest.cc @@ -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 + +using AlibabaCloud::Eais::Model::StopEaisEiRequest; + +StopEaisEiRequest::StopEaisEiRequest() + : RpcServiceRequest("eais", "2019-06-24", "StopEaisEi") { + setMethod(HttpRequest::Method::Post); +} + +StopEaisEiRequest::~StopEaisEiRequest() {} + +std::string StopEaisEiRequest::getEiInstanceId() const { + return eiInstanceId_; +} + +void StopEaisEiRequest::setEiInstanceId(const std::string &eiInstanceId) { + eiInstanceId_ = eiInstanceId; + setParameter(std::string("EiInstanceId"), eiInstanceId); +} + +std::string StopEaisEiRequest::getRegionId() const { + return regionId_; +} + +void StopEaisEiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/eais/src/model/StopEaisEiResult.cc b/eais/src/model/StopEaisEiResult.cc new file mode 100644 index 000000000..23ff50433 --- /dev/null +++ b/eais/src/model/StopEaisEiResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eais; +using namespace AlibabaCloud::Eais::Model; + +StopEaisEiResult::StopEaisEiResult() : + ServiceResult() +{} + +StopEaisEiResult::StopEaisEiResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopEaisEiResult::~StopEaisEiResult() +{} + +void StopEaisEiResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +