From 1911aed20959ef78277d5488874b3e1ac14a9e3e Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Wed, 2 May 2018 15:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E5=8E=9A=E5=8B=87=E5=8F=91=E8=B5=B7?= =?UTF-8?q?=E7=9A=84ECS=20SDK=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83,=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=9A1.8.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 4 + VERSION | 2 +- ecs/CMakeLists.txt | 8 + ecs/include/alibabacloud/ecs/EcsClient.h | 16 + .../DescribeCloudAssistantStatusRequest.h | 120 +++++++ .../DescribeCloudAssistantStatusResult.h | 56 ++++ .../model/DescribeInstanceMonitorDataResult.h | 2 + .../ecs/model/InstallCloudAssistantRequest.h | 120 +++++++ .../ecs/model/InstallCloudAssistantResult.h | 49 +++ ecs/src/EcsClient.cc | 72 +++++ .../DescribeCloudAssistantStatusRequest.cc | 303 ++++++++++++++++++ .../DescribeCloudAssistantStatusResult.cc | 60 ++++ .../DescribeInstanceMonitorDataResult.cc | 4 + ecs/src/model/InstallCloudAssistantRequest.cc | 303 ++++++++++++++++++ ecs/src/model/InstallCloudAssistantResult.cc | 45 +++ 15 files changed, 1163 insertions(+), 1 deletion(-) create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.h create mode 100644 ecs/src/model/DescribeCloudAssistantStatusRequest.cc create mode 100644 ecs/src/model/DescribeCloudAssistantStatusResult.cc create mode 100644 ecs/src/model/InstallCloudAssistantRequest.cc create mode 100644 ecs/src/model/InstallCloudAssistantResult.cc diff --git a/CHANGELOG b/CHANGELOG index bfcd51b60..29a5d1b15 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2018-05-02 Version: 1.8.0 +1, Add new interface InstallCloudAssistant, support Cloud Assistant client installation. +2, Add new interface DescribeCloudAssistantStatus, support Cloud Assistant client status detection. + 2018-04-28 Version: 1.7.3 1, Add dcdn domain interface,Support add、modify、delete、query dcdn domain. 2, Add dcdn config interface,Support set、delete、query domain config. diff --git a/VERSION b/VERSION index bbf649f61..afa2b3515 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.7.3 \ No newline at end of file +1.8.0 \ No newline at end of file diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt index c894b5b9e..ed09f75a8 100644 --- a/ecs/CMakeLists.txt +++ b/ecs/CMakeLists.txt @@ -439,6 +439,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/DeleteRouteEntryResult.h include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h + include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h @@ -507,6 +509,8 @@ set(ecs_public_header_model include/alibabacloud/ecs/model/GetInstanceScreenshotResult.h include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h + include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h + include/alibabacloud/ecs/model/InstallCloudAssistantResult.h include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h ) @@ -930,6 +934,8 @@ set(ecs_src src/model/DeleteRouteEntryResult.cc src/model/DeleteVirtualBorderRouterRequest.cc src/model/DeleteVirtualBorderRouterResult.cc + src/model/DescribeCloudAssistantStatusRequest.cc + src/model/DescribeCloudAssistantStatusResult.cc src/model/DescribeInstancePhysicalAttributeRequest.cc src/model/DescribeInstancePhysicalAttributeResult.cc src/model/TerminatePhysicalConnectionRequest.cc @@ -998,6 +1004,8 @@ set(ecs_src src/model/GetInstanceScreenshotResult.cc src/model/AttachInstanceRamRoleRequest.cc src/model/AttachInstanceRamRoleResult.cc + src/model/InstallCloudAssistantRequest.cc + src/model/InstallCloudAssistantResult.cc src/model/ModifyVRouterAttributeRequest.cc src/model/ModifyVRouterAttributeResult.cc ) diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h index a00e460c1..dd5f16830 100644 --- a/ecs/include/alibabacloud/ecs/EcsClient.h +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -440,6 +440,8 @@ #include "model/DeleteRouteEntryResult.h" #include "model/DeleteVirtualBorderRouterRequest.h" #include "model/DeleteVirtualBorderRouterResult.h" +#include "model/DescribeCloudAssistantStatusRequest.h" +#include "model/DescribeCloudAssistantStatusResult.h" #include "model/DescribeInstancePhysicalAttributeRequest.h" #include "model/DescribeInstancePhysicalAttributeResult.h" #include "model/TerminatePhysicalConnectionRequest.h" @@ -508,6 +510,8 @@ #include "model/GetInstanceScreenshotResult.h" #include "model/AttachInstanceRamRoleRequest.h" #include "model/AttachInstanceRamRoleResult.h" +#include "model/InstallCloudAssistantRequest.h" +#include "model/InstallCloudAssistantResult.h" #include "model/ModifyVRouterAttributeRequest.h" #include "model/ModifyVRouterAttributeResult.h" @@ -1146,6 +1150,9 @@ namespace AlibabaCloud typedef Outcome DeleteVirtualBorderRouterOutcome; typedef std::future DeleteVirtualBorderRouterOutcomeCallable; typedef std::function&)> DeleteVirtualBorderRouterAsyncHandler; + typedef Outcome DescribeCloudAssistantStatusOutcome; + typedef std::future DescribeCloudAssistantStatusOutcomeCallable; + typedef std::function&)> DescribeCloudAssistantStatusAsyncHandler; typedef Outcome DescribeInstancePhysicalAttributeOutcome; typedef std::future DescribeInstancePhysicalAttributeOutcomeCallable; typedef std::function&)> DescribeInstancePhysicalAttributeAsyncHandler; @@ -1248,6 +1255,9 @@ namespace AlibabaCloud typedef Outcome AttachInstanceRamRoleOutcome; typedef std::future AttachInstanceRamRoleOutcomeCallable; typedef std::function&)> AttachInstanceRamRoleAsyncHandler; + typedef Outcome InstallCloudAssistantOutcome; + typedef std::future InstallCloudAssistantOutcomeCallable; + typedef std::function&)> InstallCloudAssistantAsyncHandler; typedef Outcome ModifyVRouterAttributeOutcome; typedef std::future ModifyVRouterAttributeOutcomeCallable; typedef std::function&)> ModifyVRouterAttributeAsyncHandler; @@ -1883,6 +1893,9 @@ namespace AlibabaCloud DeleteVirtualBorderRouterOutcome deleteVirtualBorderRouter(const Model::DeleteVirtualBorderRouterRequest &request)const; void deleteVirtualBorderRouterAsync(const Model::DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVirtualBorderRouterOutcomeCallable deleteVirtualBorderRouterCallable(const Model::DeleteVirtualBorderRouterRequest& request) const; + DescribeCloudAssistantStatusOutcome describeCloudAssistantStatus(const Model::DescribeCloudAssistantStatusRequest &request)const; + void describeCloudAssistantStatusAsync(const Model::DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudAssistantStatusOutcomeCallable describeCloudAssistantStatusCallable(const Model::DescribeCloudAssistantStatusRequest& request) const; DescribeInstancePhysicalAttributeOutcome describeInstancePhysicalAttribute(const Model::DescribeInstancePhysicalAttributeRequest &request)const; void describeInstancePhysicalAttributeAsync(const Model::DescribeInstancePhysicalAttributeRequest& request, const DescribeInstancePhysicalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstancePhysicalAttributeOutcomeCallable describeInstancePhysicalAttributeCallable(const Model::DescribeInstancePhysicalAttributeRequest& request) const; @@ -1985,6 +1998,9 @@ namespace AlibabaCloud AttachInstanceRamRoleOutcome attachInstanceRamRole(const Model::AttachInstanceRamRoleRequest &request)const; void attachInstanceRamRoleAsync(const Model::AttachInstanceRamRoleRequest& request, const AttachInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AttachInstanceRamRoleOutcomeCallable attachInstanceRamRoleCallable(const Model::AttachInstanceRamRoleRequest& request) const; + InstallCloudAssistantOutcome installCloudAssistant(const Model::InstallCloudAssistantRequest &request)const; + void installCloudAssistantAsync(const Model::InstallCloudAssistantRequest& request, const InstallCloudAssistantAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InstallCloudAssistantOutcomeCallable installCloudAssistantCallable(const Model::InstallCloudAssistantRequest& request) const; ModifyVRouterAttributeOutcome modifyVRouterAttribute(const Model::ModifyVRouterAttributeRequest &request)const; void modifyVRouterAttributeAsync(const Model::ModifyVRouterAttributeRequest& request, const ModifyVRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVRouterAttributeOutcomeCallable modifyVRouterAttributeCallable(const Model::ModifyVRouterAttributeRequest& request) const; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h new file mode 100644 index 000000000..4525e8182 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h @@ -0,0 +1,120 @@ +/* + * 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_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusRequest : public RpcServiceRequest + { + + public: + DescribeCloudAssistantStatusRequest(); + ~DescribeCloudAssistantStatusRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::vector getInstanceId()const; + void setInstanceId(const std::vector& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::vector instanceId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h new file mode 100644 index 000000000..35f7c0d37 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h @@ -0,0 +1,56 @@ +/* + * 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_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusResult : public ServiceResult + { + public: + struct InstanceCloudAssistantStatus + { + std::string instanceId; + std::string cloudAssistantStatus; + }; + + + DescribeCloudAssistantStatusResult(); + explicit DescribeCloudAssistantStatusResult(const std::string &payload); + ~DescribeCloudAssistantStatusResult(); + std::vector getInstanceCloudAssistantStatusSet()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceCloudAssistantStatusSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h index b580f19d4..714c6e7f6 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h @@ -41,10 +41,12 @@ namespace AlibabaCloud std::string instanceId; int intranetTX; int cPU; + float cPUAdvanceCreditBalance; int bPSRead; int intranetRX; std::string timeStamp; int internetBandwidth; + float cPUNotpaidSurplusCreditUsage; float cPUCreditBalance; int internetTX; int internetRX; diff --git a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h new file mode 100644 index 000000000..7b3ddd40a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h @@ -0,0 +1,120 @@ +/* + * 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_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantRequest : public RpcServiceRequest + { + + public: + InstallCloudAssistantRequest(); + ~InstallCloudAssistantRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::vector getInstanceId()const; + void setInstanceId(const std::vector& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::vector instanceId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.h b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.h new file mode 100644 index 000000000..0e108361c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantResult.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_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantResult : public ServiceResult + { + public: + + + InstallCloudAssistantResult(); + explicit InstallCloudAssistantResult(const std::string &payload); + ~InstallCloudAssistantResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTRESULT_H_ \ No newline at end of file diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc index 631a57c2c..17a50c7e9 100644 --- a/ecs/src/EcsClient.cc +++ b/ecs/src/EcsClient.cc @@ -7575,6 +7575,42 @@ EcsClient::DeleteVirtualBorderRouterOutcomeCallable EcsClient::deleteVirtualBord return task->get_future(); } +EcsClient::DescribeCloudAssistantStatusOutcome EcsClient::describeCloudAssistantStatus(const DescribeCloudAssistantStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudAssistantStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudAssistantStatusOutcome(DescribeCloudAssistantStatusResult(outcome.result())); + else + return DescribeCloudAssistantStatusOutcome(outcome.error()); +} + +void EcsClient::describeCloudAssistantStatusAsync(const DescribeCloudAssistantStatusRequest& request, const DescribeCloudAssistantStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudAssistantStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeCloudAssistantStatusOutcomeCallable EcsClient::describeCloudAssistantStatusCallable(const DescribeCloudAssistantStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudAssistantStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::DescribeInstancePhysicalAttributeOutcome EcsClient::describeInstancePhysicalAttribute(const DescribeInstancePhysicalAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8799,6 +8835,42 @@ EcsClient::AttachInstanceRamRoleOutcomeCallable EcsClient::attachInstanceRamRole return task->get_future(); } +EcsClient::InstallCloudAssistantOutcome EcsClient::installCloudAssistant(const InstallCloudAssistantRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InstallCloudAssistantOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InstallCloudAssistantOutcome(InstallCloudAssistantResult(outcome.result())); + else + return InstallCloudAssistantOutcome(outcome.error()); +} + +void EcsClient::installCloudAssistantAsync(const InstallCloudAssistantRequest& request, const InstallCloudAssistantAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, installCloudAssistant(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::InstallCloudAssistantOutcomeCallable EcsClient::installCloudAssistantCallable(const InstallCloudAssistantRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->installCloudAssistant(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EcsClient::ModifyVRouterAttributeOutcome EcsClient::modifyVRouterAttribute(const ModifyVRouterAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ecs/src/model/DescribeCloudAssistantStatusRequest.cc b/ecs/src/model/DescribeCloudAssistantStatusRequest.cc new file mode 100644 index 000000000..b761fdcff --- /dev/null +++ b/ecs/src/model/DescribeCloudAssistantStatusRequest.cc @@ -0,0 +1,303 @@ +/* + * 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::Ecs::Model::DescribeCloudAssistantStatusRequest; + +DescribeCloudAssistantStatusRequest::DescribeCloudAssistantStatusRequest() : + RpcServiceRequest("ecs", "2014-05-26", "DescribeCloudAssistantStatus") +{} + +DescribeCloudAssistantStatusRequest::~DescribeCloudAssistantStatusRequest() +{} + +long DescribeCloudAssistantStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCloudAssistantStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeCloudAssistantStatusRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeCloudAssistantStatusRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeCloudAssistantStatusRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeCloudAssistantStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeCloudAssistantStatusRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeCloudAssistantStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeCloudAssistantStatusRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeCloudAssistantStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeCloudAssistantStatusRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeCloudAssistantStatusRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeCloudAssistantStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeCloudAssistantStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeCloudAssistantStatusRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeCloudAssistantStatusRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeCloudAssistantStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeCloudAssistantStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeCloudAssistantStatusRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCloudAssistantStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeCloudAssistantStatusRequest::getEnable()const +{ + return enable_; +} + +void DescribeCloudAssistantStatusRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeCloudAssistantStatusRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeCloudAssistantStatusRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeCloudAssistantStatusRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeCloudAssistantStatusRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeCloudAssistantStatusRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeCloudAssistantStatusRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeCloudAssistantStatusRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeCloudAssistantStatusRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeCloudAssistantStatusRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeCloudAssistantStatusRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeCloudAssistantStatusRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCloudAssistantStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCloudAssistantStatusRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCloudAssistantStatusRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeCloudAssistantStatusRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeCloudAssistantStatusRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeCloudAssistantStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCloudAssistantStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeCloudAssistantStatusRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeCloudAssistantStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeCloudAssistantStatusRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeCloudAssistantStatusRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeCloudAssistantStatusRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeCloudAssistantStatusRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::vector DescribeCloudAssistantStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeCloudAssistantStatusRequest::setInstanceId(const std::vector& instanceId) +{ + instanceId_ = instanceId; + for(int i = 0; i!= instanceId.size(); i++) + setParameter("InstanceId."+ std::to_string(i), instanceId.at(i)); +} + +std::string DescribeCloudAssistantStatusRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeCloudAssistantStatusRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/DescribeCloudAssistantStatusResult.cc b/ecs/src/model/DescribeCloudAssistantStatusResult.cc new file mode 100644 index 000000000..f76901e88 --- /dev/null +++ b/ecs/src/model/DescribeCloudAssistantStatusResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult() : + ServiceResult() +{} + +DescribeCloudAssistantStatusResult::DescribeCloudAssistantStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudAssistantStatusResult::~DescribeCloudAssistantStatusResult() +{} + +void DescribeCloudAssistantStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceCloudAssistantStatusSet = value["InstanceCloudAssistantStatusSet"]["InstanceCloudAssistantStatus"]; + for (auto value : allInstanceCloudAssistantStatusSet) + { + InstanceCloudAssistantStatus instanceCloudAssistantStatusSetObject; + if(!value["InstanceId"].isNull()) + instanceCloudAssistantStatusSetObject.instanceId = value["InstanceId"].asString(); + if(!value["CloudAssistantStatus"].isNull()) + instanceCloudAssistantStatusSetObject.cloudAssistantStatus = value["CloudAssistantStatus"].asString(); + instanceCloudAssistantStatusSet_.push_back(instanceCloudAssistantStatusSetObject); + } + +} + +std::vector DescribeCloudAssistantStatusResult::getInstanceCloudAssistantStatusSet()const +{ + return instanceCloudAssistantStatusSet_; +} + diff --git a/ecs/src/model/DescribeInstanceMonitorDataResult.cc b/ecs/src/model/DescribeInstanceMonitorDataResult.cc index ea63108be..12fa1a34c 100644 --- a/ecs/src/model/DescribeInstanceMonitorDataResult.cc +++ b/ecs/src/model/DescribeInstanceMonitorDataResult.cc @@ -72,6 +72,10 @@ void DescribeInstanceMonitorDataResult::parse(const std::string &payload) monitorDataObject.cPUCreditUsage = std::stof(value["CPUCreditUsage"].asString()); if(!value["CPUCreditBalance"].isNull()) monitorDataObject.cPUCreditBalance = std::stof(value["CPUCreditBalance"].asString()); + if(!value["CPUAdvanceCreditBalance"].isNull()) + monitorDataObject.cPUAdvanceCreditBalance = std::stof(value["CPUAdvanceCreditBalance"].asString()); + if(!value["CPUNotpaidSurplusCreditUsage"].isNull()) + monitorDataObject.cPUNotpaidSurplusCreditUsage = std::stof(value["CPUNotpaidSurplusCreditUsage"].asString()); if(!value["TimeStamp"].isNull()) monitorDataObject.timeStamp = value["TimeStamp"].asString(); monitorData_.push_back(monitorDataObject); diff --git a/ecs/src/model/InstallCloudAssistantRequest.cc b/ecs/src/model/InstallCloudAssistantRequest.cc new file mode 100644 index 000000000..ccf0c97b4 --- /dev/null +++ b/ecs/src/model/InstallCloudAssistantRequest.cc @@ -0,0 +1,303 @@ +/* + * 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::Ecs::Model::InstallCloudAssistantRequest; + +InstallCloudAssistantRequest::InstallCloudAssistantRequest() : + RpcServiceRequest("ecs", "2014-05-26", "InstallCloudAssistant") +{} + +InstallCloudAssistantRequest::~InstallCloudAssistantRequest() +{} + +long InstallCloudAssistantRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void InstallCloudAssistantRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long InstallCloudAssistantRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void InstallCloudAssistantRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool InstallCloudAssistantRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void InstallCloudAssistantRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string InstallCloudAssistantRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void InstallCloudAssistantRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string InstallCloudAssistantRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void InstallCloudAssistantRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string InstallCloudAssistantRequest::getCallerType()const +{ + return callerType_; +} + +void InstallCloudAssistantRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string InstallCloudAssistantRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void InstallCloudAssistantRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string InstallCloudAssistantRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void InstallCloudAssistantRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string InstallCloudAssistantRequest::getSecurityToken()const +{ + return securityToken_; +} + +void InstallCloudAssistantRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string InstallCloudAssistantRequest::getRegionId()const +{ + return regionId_; +} + +void InstallCloudAssistantRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool InstallCloudAssistantRequest::getEnable()const +{ + return enable_; +} + +void InstallCloudAssistantRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string InstallCloudAssistantRequest::getRequestContent()const +{ + return requestContent_; +} + +void InstallCloudAssistantRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string InstallCloudAssistantRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void InstallCloudAssistantRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string InstallCloudAssistantRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void InstallCloudAssistantRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long InstallCloudAssistantRequest::getCallerUid()const +{ + return callerUid_; +} + +void InstallCloudAssistantRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string InstallCloudAssistantRequest::getApp_ip()const +{ + return app_ip_; +} + +void InstallCloudAssistantRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string InstallCloudAssistantRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void InstallCloudAssistantRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string InstallCloudAssistantRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void InstallCloudAssistantRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string InstallCloudAssistantRequest::getCallerBid()const +{ + return callerBid_; +} + +void InstallCloudAssistantRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long InstallCloudAssistantRequest::getOwnerId()const +{ + return ownerId_; +} + +void InstallCloudAssistantRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool InstallCloudAssistantRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void InstallCloudAssistantRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool InstallCloudAssistantRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void InstallCloudAssistantRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool InstallCloudAssistantRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void InstallCloudAssistantRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::vector InstallCloudAssistantRequest::getInstanceId()const +{ + return instanceId_; +} + +void InstallCloudAssistantRequest::setInstanceId(const std::vector& instanceId) +{ + instanceId_ = instanceId; + for(int i = 0; i!= instanceId.size(); i++) + setParameter("InstanceId."+ std::to_string(i), instanceId.at(i)); +} + +std::string InstallCloudAssistantRequest::getRequestId()const +{ + return requestId_; +} + +void InstallCloudAssistantRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/InstallCloudAssistantResult.cc b/ecs/src/model/InstallCloudAssistantResult.cc new file mode 100644 index 000000000..5170b0b98 --- /dev/null +++ b/ecs/src/model/InstallCloudAssistantResult.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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +InstallCloudAssistantResult::InstallCloudAssistantResult() : + ServiceResult() +{} + +InstallCloudAssistantResult::InstallCloudAssistantResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InstallCloudAssistantResult::~InstallCloudAssistantResult() +{} + +void InstallCloudAssistantResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +