Support clouddisk API.
This commit is contained in:
@@ -305,6 +305,10 @@ set(ens_public_header_model
|
||||
include/alibabacloud/ens/model/DescribeUserBandWidthDataResult.h
|
||||
include/alibabacloud/ens/model/DescribeVSwitchesRequest.h
|
||||
include/alibabacloud/ens/model/DescribeVSwitchesResult.h
|
||||
include/alibabacloud/ens/model/DescribeWorkflowRequest.h
|
||||
include/alibabacloud/ens/model/DescribeWorkflowResult.h
|
||||
include/alibabacloud/ens/model/DescribeWorkflowActivityRequest.h
|
||||
include/alibabacloud/ens/model/DescribeWorkflowActivityResult.h
|
||||
include/alibabacloud/ens/model/DetachDiskRequest.h
|
||||
include/alibabacloud/ens/model/DetachDiskResult.h
|
||||
include/alibabacloud/ens/model/DistApplicationDataRequest.h
|
||||
@@ -411,12 +415,18 @@ set(ens_public_header_model
|
||||
include/alibabacloud/ens/model/ResizeDiskResult.h
|
||||
include/alibabacloud/ens/model/RestartDeviceInstanceRequest.h
|
||||
include/alibabacloud/ens/model/RestartDeviceInstanceResult.h
|
||||
include/alibabacloud/ens/model/RestartWorkflowRequest.h
|
||||
include/alibabacloud/ens/model/RestartWorkflowResult.h
|
||||
include/alibabacloud/ens/model/RetryWorkflowRequest.h
|
||||
include/alibabacloud/ens/model/RetryWorkflowResult.h
|
||||
include/alibabacloud/ens/model/RevokeSecurityGroupRequest.h
|
||||
include/alibabacloud/ens/model/RevokeSecurityGroupResult.h
|
||||
include/alibabacloud/ens/model/RevokeSecurityGroupEgressRequest.h
|
||||
include/alibabacloud/ens/model/RevokeSecurityGroupEgressResult.h
|
||||
include/alibabacloud/ens/model/RollbackApplicationRequest.h
|
||||
include/alibabacloud/ens/model/RollbackApplicationResult.h
|
||||
include/alibabacloud/ens/model/RollbackWorkflowRequest.h
|
||||
include/alibabacloud/ens/model/RollbackWorkflowResult.h
|
||||
include/alibabacloud/ens/model/RunInstancesRequest.h
|
||||
include/alibabacloud/ens/model/RunInstancesResult.h
|
||||
include/alibabacloud/ens/model/RunServiceScheduleRequest.h
|
||||
@@ -453,6 +463,8 @@ set(ens_public_header_model
|
||||
include/alibabacloud/ens/model/StopLoadBalancerListenerResult.h
|
||||
include/alibabacloud/ens/model/StopSnatIpForSnatEntryRequest.h
|
||||
include/alibabacloud/ens/model/StopSnatIpForSnatEntryResult.h
|
||||
include/alibabacloud/ens/model/TerminateWorkflowRequest.h
|
||||
include/alibabacloud/ens/model/TerminateWorkflowResult.h
|
||||
include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h
|
||||
include/alibabacloud/ens/model/UnAssociateEnsEipAddressResult.h
|
||||
include/alibabacloud/ens/model/UnassignPrivateIpAddressesRequest.h
|
||||
@@ -752,6 +764,10 @@ set(ens_src
|
||||
src/model/DescribeUserBandWidthDataResult.cc
|
||||
src/model/DescribeVSwitchesRequest.cc
|
||||
src/model/DescribeVSwitchesResult.cc
|
||||
src/model/DescribeWorkflowRequest.cc
|
||||
src/model/DescribeWorkflowResult.cc
|
||||
src/model/DescribeWorkflowActivityRequest.cc
|
||||
src/model/DescribeWorkflowActivityResult.cc
|
||||
src/model/DetachDiskRequest.cc
|
||||
src/model/DetachDiskResult.cc
|
||||
src/model/DistApplicationDataRequest.cc
|
||||
@@ -858,12 +874,18 @@ set(ens_src
|
||||
src/model/ResizeDiskResult.cc
|
||||
src/model/RestartDeviceInstanceRequest.cc
|
||||
src/model/RestartDeviceInstanceResult.cc
|
||||
src/model/RestartWorkflowRequest.cc
|
||||
src/model/RestartWorkflowResult.cc
|
||||
src/model/RetryWorkflowRequest.cc
|
||||
src/model/RetryWorkflowResult.cc
|
||||
src/model/RevokeSecurityGroupRequest.cc
|
||||
src/model/RevokeSecurityGroupResult.cc
|
||||
src/model/RevokeSecurityGroupEgressRequest.cc
|
||||
src/model/RevokeSecurityGroupEgressResult.cc
|
||||
src/model/RollbackApplicationRequest.cc
|
||||
src/model/RollbackApplicationResult.cc
|
||||
src/model/RollbackWorkflowRequest.cc
|
||||
src/model/RollbackWorkflowResult.cc
|
||||
src/model/RunInstancesRequest.cc
|
||||
src/model/RunInstancesResult.cc
|
||||
src/model/RunServiceScheduleRequest.cc
|
||||
@@ -900,6 +922,8 @@ set(ens_src
|
||||
src/model/StopLoadBalancerListenerResult.cc
|
||||
src/model/StopSnatIpForSnatEntryRequest.cc
|
||||
src/model/StopSnatIpForSnatEntryResult.cc
|
||||
src/model/TerminateWorkflowRequest.cc
|
||||
src/model/TerminateWorkflowResult.cc
|
||||
src/model/UnAssociateEnsEipAddressRequest.cc
|
||||
src/model/UnAssociateEnsEipAddressResult.cc
|
||||
src/model/UnassignPrivateIpAddressesRequest.cc
|
||||
|
||||
@@ -306,6 +306,10 @@
|
||||
#include "model/DescribeUserBandWidthDataResult.h"
|
||||
#include "model/DescribeVSwitchesRequest.h"
|
||||
#include "model/DescribeVSwitchesResult.h"
|
||||
#include "model/DescribeWorkflowRequest.h"
|
||||
#include "model/DescribeWorkflowResult.h"
|
||||
#include "model/DescribeWorkflowActivityRequest.h"
|
||||
#include "model/DescribeWorkflowActivityResult.h"
|
||||
#include "model/DetachDiskRequest.h"
|
||||
#include "model/DetachDiskResult.h"
|
||||
#include "model/DistApplicationDataRequest.h"
|
||||
@@ -412,12 +416,18 @@
|
||||
#include "model/ResizeDiskResult.h"
|
||||
#include "model/RestartDeviceInstanceRequest.h"
|
||||
#include "model/RestartDeviceInstanceResult.h"
|
||||
#include "model/RestartWorkflowRequest.h"
|
||||
#include "model/RestartWorkflowResult.h"
|
||||
#include "model/RetryWorkflowRequest.h"
|
||||
#include "model/RetryWorkflowResult.h"
|
||||
#include "model/RevokeSecurityGroupRequest.h"
|
||||
#include "model/RevokeSecurityGroupResult.h"
|
||||
#include "model/RevokeSecurityGroupEgressRequest.h"
|
||||
#include "model/RevokeSecurityGroupEgressResult.h"
|
||||
#include "model/RollbackApplicationRequest.h"
|
||||
#include "model/RollbackApplicationResult.h"
|
||||
#include "model/RollbackWorkflowRequest.h"
|
||||
#include "model/RollbackWorkflowResult.h"
|
||||
#include "model/RunInstancesRequest.h"
|
||||
#include "model/RunInstancesResult.h"
|
||||
#include "model/RunServiceScheduleRequest.h"
|
||||
@@ -454,6 +464,8 @@
|
||||
#include "model/StopLoadBalancerListenerResult.h"
|
||||
#include "model/StopSnatIpForSnatEntryRequest.h"
|
||||
#include "model/StopSnatIpForSnatEntryResult.h"
|
||||
#include "model/TerminateWorkflowRequest.h"
|
||||
#include "model/TerminateWorkflowResult.h"
|
||||
#include "model/UnAssociateEnsEipAddressRequest.h"
|
||||
#include "model/UnAssociateEnsEipAddressResult.h"
|
||||
#include "model/UnassignPrivateIpAddressesRequest.h"
|
||||
@@ -901,6 +913,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeVSwitchesResult> DescribeVSwitchesOutcome;
|
||||
typedef std::future<DescribeVSwitchesOutcome> DescribeVSwitchesOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::DescribeVSwitchesRequest&, const DescribeVSwitchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVSwitchesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeWorkflowResult> DescribeWorkflowOutcome;
|
||||
typedef std::future<DescribeWorkflowOutcome> DescribeWorkflowOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::DescribeWorkflowRequest&, const DescribeWorkflowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWorkflowAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeWorkflowActivityResult> DescribeWorkflowActivityOutcome;
|
||||
typedef std::future<DescribeWorkflowActivityOutcome> DescribeWorkflowActivityOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::DescribeWorkflowActivityRequest&, const DescribeWorkflowActivityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWorkflowActivityAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetachDiskResult> DetachDiskOutcome;
|
||||
typedef std::future<DetachDiskOutcome> DetachDiskOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::DetachDiskRequest&, const DetachDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachDiskAsyncHandler;
|
||||
@@ -1060,6 +1078,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RestartDeviceInstanceResult> RestartDeviceInstanceOutcome;
|
||||
typedef std::future<RestartDeviceInstanceOutcome> RestartDeviceInstanceOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::RestartDeviceInstanceRequest&, const RestartDeviceInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestartDeviceInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RestartWorkflowResult> RestartWorkflowOutcome;
|
||||
typedef std::future<RestartWorkflowOutcome> RestartWorkflowOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::RestartWorkflowRequest&, const RestartWorkflowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestartWorkflowAsyncHandler;
|
||||
typedef Outcome<Error, Model::RetryWorkflowResult> RetryWorkflowOutcome;
|
||||
typedef std::future<RetryWorkflowOutcome> RetryWorkflowOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::RetryWorkflowRequest&, const RetryWorkflowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetryWorkflowAsyncHandler;
|
||||
typedef Outcome<Error, Model::RevokeSecurityGroupResult> RevokeSecurityGroupOutcome;
|
||||
typedef std::future<RevokeSecurityGroupOutcome> RevokeSecurityGroupOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::RevokeSecurityGroupRequest&, const RevokeSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeSecurityGroupAsyncHandler;
|
||||
@@ -1069,6 +1093,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RollbackApplicationResult> RollbackApplicationOutcome;
|
||||
typedef std::future<RollbackApplicationOutcome> RollbackApplicationOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::RollbackApplicationRequest&, const RollbackApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RollbackApplicationAsyncHandler;
|
||||
typedef Outcome<Error, Model::RollbackWorkflowResult> RollbackWorkflowOutcome;
|
||||
typedef std::future<RollbackWorkflowOutcome> RollbackWorkflowOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::RollbackWorkflowRequest&, const RollbackWorkflowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RollbackWorkflowAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunInstancesResult> RunInstancesOutcome;
|
||||
typedef std::future<RunInstancesOutcome> RunInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::RunInstancesRequest&, const RunInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunInstancesAsyncHandler;
|
||||
@@ -1123,6 +1150,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StopSnatIpForSnatEntryResult> StopSnatIpForSnatEntryOutcome;
|
||||
typedef std::future<StopSnatIpForSnatEntryOutcome> StopSnatIpForSnatEntryOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::StopSnatIpForSnatEntryRequest&, const StopSnatIpForSnatEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopSnatIpForSnatEntryAsyncHandler;
|
||||
typedef Outcome<Error, Model::TerminateWorkflowResult> TerminateWorkflowOutcome;
|
||||
typedef std::future<TerminateWorkflowOutcome> TerminateWorkflowOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::TerminateWorkflowRequest&, const TerminateWorkflowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TerminateWorkflowAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnAssociateEnsEipAddressResult> UnAssociateEnsEipAddressOutcome;
|
||||
typedef std::future<UnAssociateEnsEipAddressOutcome> UnAssociateEnsEipAddressOutcomeCallable;
|
||||
typedef std::function<void(const EnsClient*, const Model::UnAssociateEnsEipAddressRequest&, const UnAssociateEnsEipAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnAssociateEnsEipAddressAsyncHandler;
|
||||
@@ -1572,6 +1602,12 @@ namespace AlibabaCloud
|
||||
DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const;
|
||||
void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const;
|
||||
DescribeWorkflowOutcome describeWorkflow(const Model::DescribeWorkflowRequest &request)const;
|
||||
void describeWorkflowAsync(const Model::DescribeWorkflowRequest& request, const DescribeWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWorkflowOutcomeCallable describeWorkflowCallable(const Model::DescribeWorkflowRequest& request) const;
|
||||
DescribeWorkflowActivityOutcome describeWorkflowActivity(const Model::DescribeWorkflowActivityRequest &request)const;
|
||||
void describeWorkflowActivityAsync(const Model::DescribeWorkflowActivityRequest& request, const DescribeWorkflowActivityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWorkflowActivityOutcomeCallable describeWorkflowActivityCallable(const Model::DescribeWorkflowActivityRequest& request) const;
|
||||
DetachDiskOutcome detachDisk(const Model::DetachDiskRequest &request)const;
|
||||
void detachDiskAsync(const Model::DetachDiskRequest& request, const DetachDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetachDiskOutcomeCallable detachDiskCallable(const Model::DetachDiskRequest& request) const;
|
||||
@@ -1731,6 +1767,12 @@ namespace AlibabaCloud
|
||||
RestartDeviceInstanceOutcome restartDeviceInstance(const Model::RestartDeviceInstanceRequest &request)const;
|
||||
void restartDeviceInstanceAsync(const Model::RestartDeviceInstanceRequest& request, const RestartDeviceInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RestartDeviceInstanceOutcomeCallable restartDeviceInstanceCallable(const Model::RestartDeviceInstanceRequest& request) const;
|
||||
RestartWorkflowOutcome restartWorkflow(const Model::RestartWorkflowRequest &request)const;
|
||||
void restartWorkflowAsync(const Model::RestartWorkflowRequest& request, const RestartWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RestartWorkflowOutcomeCallable restartWorkflowCallable(const Model::RestartWorkflowRequest& request) const;
|
||||
RetryWorkflowOutcome retryWorkflow(const Model::RetryWorkflowRequest &request)const;
|
||||
void retryWorkflowAsync(const Model::RetryWorkflowRequest& request, const RetryWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RetryWorkflowOutcomeCallable retryWorkflowCallable(const Model::RetryWorkflowRequest& request) const;
|
||||
RevokeSecurityGroupOutcome revokeSecurityGroup(const Model::RevokeSecurityGroupRequest &request)const;
|
||||
void revokeSecurityGroupAsync(const Model::RevokeSecurityGroupRequest& request, const RevokeSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeSecurityGroupOutcomeCallable revokeSecurityGroupCallable(const Model::RevokeSecurityGroupRequest& request) const;
|
||||
@@ -1740,6 +1782,9 @@ namespace AlibabaCloud
|
||||
RollbackApplicationOutcome rollbackApplication(const Model::RollbackApplicationRequest &request)const;
|
||||
void rollbackApplicationAsync(const Model::RollbackApplicationRequest& request, const RollbackApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RollbackApplicationOutcomeCallable rollbackApplicationCallable(const Model::RollbackApplicationRequest& request) const;
|
||||
RollbackWorkflowOutcome rollbackWorkflow(const Model::RollbackWorkflowRequest &request)const;
|
||||
void rollbackWorkflowAsync(const Model::RollbackWorkflowRequest& request, const RollbackWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RollbackWorkflowOutcomeCallable rollbackWorkflowCallable(const Model::RollbackWorkflowRequest& request) const;
|
||||
RunInstancesOutcome runInstances(const Model::RunInstancesRequest &request)const;
|
||||
void runInstancesAsync(const Model::RunInstancesRequest& request, const RunInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunInstancesOutcomeCallable runInstancesCallable(const Model::RunInstancesRequest& request) const;
|
||||
@@ -1794,6 +1839,9 @@ namespace AlibabaCloud
|
||||
StopSnatIpForSnatEntryOutcome stopSnatIpForSnatEntry(const Model::StopSnatIpForSnatEntryRequest &request)const;
|
||||
void stopSnatIpForSnatEntryAsync(const Model::StopSnatIpForSnatEntryRequest& request, const StopSnatIpForSnatEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopSnatIpForSnatEntryOutcomeCallable stopSnatIpForSnatEntryCallable(const Model::StopSnatIpForSnatEntryRequest& request) const;
|
||||
TerminateWorkflowOutcome terminateWorkflow(const Model::TerminateWorkflowRequest &request)const;
|
||||
void terminateWorkflowAsync(const Model::TerminateWorkflowRequest& request, const TerminateWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TerminateWorkflowOutcomeCallable terminateWorkflowCallable(const Model::TerminateWorkflowRequest& request) const;
|
||||
UnAssociateEnsEipAddressOutcome unAssociateEnsEipAddress(const Model::UnAssociateEnsEipAddressRequest &request)const;
|
||||
void unAssociateEnsEipAddressAsync(const Model::UnAssociateEnsEipAddressRequest& request, const UnAssociateEnsEipAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnAssociateEnsEipAddressOutcomeCallable unAssociateEnsEipAddressCallable(const Model::UnAssociateEnsEipAddressRequest& request) const;
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_ENS_EXPORT AssociateEnsEipAddressRequest : public RpcServiceR
|
||||
public:
|
||||
AssociateEnsEipAddressRequest();
|
||||
~AssociateEnsEipAddressRequest();
|
||||
bool getStandby() const;
|
||||
void setStandby(bool standby);
|
||||
std::string getAllocationId() const;
|
||||
void setAllocationId(const std::string &allocationId);
|
||||
std::string getInstanceType() const;
|
||||
@@ -38,6 +40,7 @@ public:
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
bool standby_;
|
||||
std::string allocationId_;
|
||||
std::string instanceType_;
|
||||
std::string instanceId_;
|
||||
|
||||
@@ -54,6 +54,8 @@ public:
|
||||
void setAmount(int amount);
|
||||
std::string get_NameSpace() const;
|
||||
void set_NameSpace(const std::string &_nameSpace);
|
||||
std::string getServerName() const;
|
||||
void setServerName(const std::string &serverName);
|
||||
std::string getPayType() const;
|
||||
void setPayType(const std::string &payType);
|
||||
|
||||
@@ -70,6 +72,7 @@ private:
|
||||
std::string instanceType_;
|
||||
int amount_;
|
||||
std::string _nameSpace_;
|
||||
std::string serverName_;
|
||||
std::string payType_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
void setHealthCheckPort(int healthCheckPort);
|
||||
std::string getExternalPort() const;
|
||||
void setExternalPort(const std::string &externalPort);
|
||||
std::string getStandbyExternalIp() const;
|
||||
void setStandbyExternalIp(const std::string &standbyExternalIp);
|
||||
std::string getNatGatewayId() const;
|
||||
void setNatGatewayId(const std::string &natGatewayId);
|
||||
std::string getForwardEntryName() const;
|
||||
@@ -53,6 +55,7 @@ private:
|
||||
std::string ipProtocol_;
|
||||
int healthCheckPort_;
|
||||
std::string externalPort_;
|
||||
std::string standbyExternalIp_;
|
||||
std::string natGatewayId_;
|
||||
std::string forwardEntryName_;
|
||||
std::string internalPort_;
|
||||
|
||||
@@ -30,24 +30,27 @@ class ALIBABACLOUD_ENS_EXPORT CreateSnatEntryRequest : public RpcServiceRequest
|
||||
public:
|
||||
CreateSnatEntryRequest();
|
||||
~CreateSnatEntryRequest();
|
||||
std::string getSourceCIDR() const;
|
||||
void setSourceCIDR(const std::string &sourceCIDR);
|
||||
std::string getSnatIp() const;
|
||||
void setSnatIp(const std::string &snatIp);
|
||||
std::string getSourceVSwitchId() const;
|
||||
void setSourceVSwitchId(const std::string &sourceVSwitchId);
|
||||
std::string getSourceNetworkId() const;
|
||||
void setSourceNetworkId(const std::string &sourceNetworkId);
|
||||
std::string getStandbySnatIp() const;
|
||||
void setStandbySnatIp(const std::string &standbySnatIp);
|
||||
std::string getSourceCIDR() const;
|
||||
void setSourceCIDR(const std::string &sourceCIDR);
|
||||
std::string getNatGatewayId() const;
|
||||
void setNatGatewayId(const std::string &natGatewayId);
|
||||
std::string getSnatEntryName() const;
|
||||
void setSnatEntryName(const std::string &snatEntryName);
|
||||
|
||||
private:
|
||||
std::string sourceCIDR_;
|
||||
std::string snatIp_;
|
||||
std::string sourceVSwitchId_;
|
||||
std::string sourceNetworkId_;
|
||||
std::string standbySnatIp_;
|
||||
std::string sourceCIDR_;
|
||||
std::string natGatewayId_;
|
||||
std::string snatEntryName_;
|
||||
};
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace AlibabaCloud
|
||||
std::string snapshotId;
|
||||
std::string type;
|
||||
std::string creationTime;
|
||||
std::string serialId;
|
||||
std::string ensRegionId;
|
||||
std::string diskId;
|
||||
};
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setEnsRegionId(const std::string &ensRegionId);
|
||||
std::string getStatus() const;
|
||||
void setStatus(const std::string &status);
|
||||
std::string getStandby() const;
|
||||
void setStandby(const std::string &standby);
|
||||
std::string getAllocationId() const;
|
||||
void setAllocationId(const std::string &allocationId);
|
||||
int getPageNumber() const;
|
||||
@@ -54,6 +56,7 @@ private:
|
||||
std::string eipAddress_;
|
||||
std::string ensRegionId_;
|
||||
std::string status_;
|
||||
std::string standby_;
|
||||
std::string allocationId_;
|
||||
int pageNumber_;
|
||||
std::string associatedInstanceType_;
|
||||
|
||||
@@ -39,12 +39,14 @@ namespace AlibabaCloud
|
||||
std::string instanceId;
|
||||
std::string allocationId;
|
||||
std::string isp;
|
||||
bool standby;
|
||||
std::string internetChargeType;
|
||||
std::string name;
|
||||
std::string allocationTime;
|
||||
std::string chargeType;
|
||||
int bandwidth;
|
||||
std::string ipAddress;
|
||||
std::string ipStatus;
|
||||
std::string instanceType;
|
||||
std::string ensRegionId;
|
||||
};
|
||||
|
||||
@@ -30,12 +30,15 @@ class ALIBABACLOUD_ENS_EXPORT DescribeEnsSaleControlAvailableResourceRequest : p
|
||||
public:
|
||||
DescribeEnsSaleControlAvailableResourceRequest();
|
||||
~DescribeEnsSaleControlAvailableResourceRequest();
|
||||
std::string getCustomAccount() const;
|
||||
void setCustomAccount(const std::string &customAccount);
|
||||
std::string getCommodityCode() const;
|
||||
void setCommodityCode(const std::string &commodityCode);
|
||||
std::string getOrderType() const;
|
||||
void setOrderType(const std::string &orderType);
|
||||
|
||||
private:
|
||||
std::string customAccount_;
|
||||
std::string commodityCode_;
|
||||
std::string orderType_;
|
||||
};
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_ENS_EXPORT DescribeEnsSaleControlRequest : public RpcServiceR
|
||||
public:
|
||||
DescribeEnsSaleControlRequest();
|
||||
~DescribeEnsSaleControlRequest();
|
||||
std::string getCustomAccount() const;
|
||||
void setCustomAccount(const std::string &customAccount);
|
||||
std::string getCommodityCode() const;
|
||||
void setCommodityCode(const std::string &commodityCode);
|
||||
std::string getModuleCode() const;
|
||||
@@ -40,6 +42,7 @@ public:
|
||||
void setOrderType(const std::string &orderType);
|
||||
|
||||
private:
|
||||
std::string customAccount_;
|
||||
std::string commodityCode_;
|
||||
std::string moduleCode_;
|
||||
std::string aliUidAccount_;
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_ENS_EXPORT DescribeEnsSaleControlStockRequest : public RpcSer
|
||||
public:
|
||||
DescribeEnsSaleControlStockRequest();
|
||||
~DescribeEnsSaleControlStockRequest();
|
||||
std::string getCustomAccount() const;
|
||||
void setCustomAccount(const std::string &customAccount);
|
||||
std::string getCommodityCode() const;
|
||||
void setCommodityCode(const std::string &commodityCode);
|
||||
std::string getModuleCode() const;
|
||||
@@ -40,6 +42,7 @@ public:
|
||||
void setOrderType(const std::string &orderType);
|
||||
|
||||
private:
|
||||
std::string customAccount_;
|
||||
std::string commodityCode_;
|
||||
std::string moduleCode_;
|
||||
std::string aliUidAccount_;
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setIpProtocol(const std::string &ipProtocol);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
bool getShowDetail() const;
|
||||
void setShowDetail(bool showDetail);
|
||||
std::string getForwardEntryId() const;
|
||||
void setForwardEntryId(const std::string &forwardEntryId);
|
||||
int getPageSize() const;
|
||||
@@ -52,6 +54,7 @@ private:
|
||||
std::string externalIp_;
|
||||
std::string ipProtocol_;
|
||||
int pageNumber_;
|
||||
bool showDetail_;
|
||||
std::string forwardEntryId_;
|
||||
int pageSize_;
|
||||
std::string natGatewayId_;
|
||||
|
||||
@@ -36,11 +36,16 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
std::string externalPort;
|
||||
std::string standbyExternalIpIsp;
|
||||
std::string externalIp;
|
||||
std::string forwardEntryId;
|
||||
std::string standbyEnsRegionId;
|
||||
std::string externalIpIsp;
|
||||
std::string ipProtocol;
|
||||
std::string standbyExternalIp;
|
||||
std::string internalPort;
|
||||
std::string healthCheckPort;
|
||||
std::string standbyStatus;
|
||||
std::string natGatewayId;
|
||||
std::string forwardEntryName;
|
||||
std::string internalIp;
|
||||
|
||||
@@ -34,19 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct 带宽配额
|
||||
{
|
||||
struct BandwidthInfo
|
||||
{
|
||||
long monthAverageQuota;
|
||||
long monthMax;
|
||||
long weekAverageQuota;
|
||||
long weekMax;
|
||||
};
|
||||
struct 实例信息
|
||||
{
|
||||
long instanceNumber;
|
||||
std::string instanceSpec;
|
||||
};
|
||||
BandwidthInfo bandwidthInfo;
|
||||
struct 带宽信息
|
||||
{
|
||||
long monthAverageQuota;
|
||||
long monthMax;
|
||||
long weekAverageQuota;
|
||||
std::string isp;
|
||||
long weekMax;
|
||||
};
|
||||
std::vector<带宽配额::带宽信息> bandwidthInfo;
|
||||
std::string regionId;
|
||||
std::vector<带宽配额::实例信息> instanceInfo;
|
||||
std::string date;
|
||||
|
||||
@@ -50,7 +50,9 @@ namespace AlibabaCloud
|
||||
std::vector<Snatip> getSnatIps()const;
|
||||
std::string getSnatEntryId()const;
|
||||
std::string getSnatIp()const;
|
||||
std::string getStandbyStatus()const;
|
||||
std::string getNatGatewayId()const;
|
||||
std::string getStandbySnatIp()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -62,7 +64,9 @@ namespace AlibabaCloud
|
||||
std::vector<Snatip> snatIps_;
|
||||
std::string snatEntryId_;
|
||||
std::string snatIp_;
|
||||
std::string standbyStatus_;
|
||||
std::string natGatewayId_;
|
||||
std::string standbySnatIp_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setSourceCIDR(const std::string &sourceCIDR);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
bool getShowDetail() const;
|
||||
void setShowDetail(bool showDetail);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getNatGatewayId() const;
|
||||
@@ -50,6 +52,7 @@ private:
|
||||
std::string snatEntryId_;
|
||||
std::string sourceCIDR_;
|
||||
int pageNumber_;
|
||||
bool showDetail_;
|
||||
int pageSize_;
|
||||
std::string natGatewayId_;
|
||||
std::string snatEntryName_;
|
||||
|
||||
@@ -34,12 +34,22 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct SnatTableEntry
|
||||
{
|
||||
struct SnatIp
|
||||
{
|
||||
std::string ip;
|
||||
std::string isp;
|
||||
std::string ensRegionId;
|
||||
bool standby;
|
||||
};
|
||||
std::string status;
|
||||
std::string snatEntryName;
|
||||
std::string sourceCIDR;
|
||||
std::vector<SnatTableEntry::SnatIp> snatIps;
|
||||
std::string snatEntryId;
|
||||
std::string snatIp;
|
||||
std::string standbyStatus;
|
||||
std::string natGatewayId;
|
||||
std::string standbySnatIp;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_DESCRIBEWORKFLOWACTIVITYREQUEST_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWACTIVITYREQUEST_H_
|
||||
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Ens {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ENS_EXPORT DescribeWorkflowActivityRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeWorkflowActivityRequest();
|
||||
~DescribeWorkflowActivityRequest();
|
||||
std::string getWorkFlowId() const;
|
||||
void setWorkFlowId(const std::string &workFlowId);
|
||||
|
||||
private:
|
||||
std::string workFlowId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ens
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWACTIVITYREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_DESCRIBEWORKFLOWACTIVITYRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWACTIVITYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT DescribeWorkflowActivityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ActivityInfos
|
||||
{
|
||||
std::string gmtStart;
|
||||
std::string gmtEnd;
|
||||
std::string gmtCreate;
|
||||
std::string input;
|
||||
std::string activityName;
|
||||
std::string state;
|
||||
std::string activityId;
|
||||
std::string output;
|
||||
std::string workerNode;
|
||||
std::string error;
|
||||
std::string duration;
|
||||
std::string method;
|
||||
};
|
||||
|
||||
|
||||
DescribeWorkflowActivityResult();
|
||||
explicit DescribeWorkflowActivityResult(const std::string &payload);
|
||||
~DescribeWorkflowActivityResult();
|
||||
std::vector<ActivityInfos> getActivityInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ActivityInfos> activityInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWACTIVITYRESULT_H_
|
||||
75
ens/include/alibabacloud/ens/model/DescribeWorkflowRequest.h
Normal file
75
ens/include/alibabacloud/ens/model/DescribeWorkflowRequest.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_DESCRIBEWORKFLOWREQUEST_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWREQUEST_H_
|
||||
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Ens {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ENS_EXPORT DescribeWorkflowRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeWorkflowRequest();
|
||||
~DescribeWorkflowRequest();
|
||||
std::string getPageNum() const;
|
||||
void setPageNum(const std::string &pageNum);
|
||||
std::string getStartDate() const;
|
||||
void setStartDate(const std::string &startDate);
|
||||
std::string getEnsRegionId() const;
|
||||
void setEnsRegionId(const std::string &ensRegionId);
|
||||
std::string getId() const;
|
||||
void setId(const std::string &id);
|
||||
std::string getWorkFlowId() const;
|
||||
void setWorkFlowId(const std::string &workFlowId);
|
||||
std::string getBusinessId() const;
|
||||
void setBusinessId(const std::string &businessId);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getEndDate() const;
|
||||
void setEndDate(const std::string &endDate);
|
||||
std::string getStatus() const;
|
||||
void setStatus(const std::string &status);
|
||||
std::string getWorkFlowName() const;
|
||||
void setWorkFlowName(const std::string &workFlowName);
|
||||
std::string getPageSize() const;
|
||||
void setPageSize(const std::string &pageSize);
|
||||
std::string getAliUid() const;
|
||||
void setAliUid(const std::string &aliUid);
|
||||
|
||||
private:
|
||||
std::string pageNum_;
|
||||
std::string startDate_;
|
||||
std::string ensRegionId_;
|
||||
std::string id_;
|
||||
std::string workFlowId_;
|
||||
std::string businessId_;
|
||||
std::string instanceId_;
|
||||
std::string endDate_;
|
||||
std::string status_;
|
||||
std::string workFlowName_;
|
||||
std::string pageSize_;
|
||||
std::string aliUid_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ens
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWREQUEST_H_
|
||||
72
ens/include/alibabacloud/ens/model/DescribeWorkflowResult.h
Normal file
72
ens/include/alibabacloud/ens/model/DescribeWorkflowResult.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_DESCRIBEWORKFLOWRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT DescribeWorkflowResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct WorkFlowInfos
|
||||
{
|
||||
std::string gmtStart;
|
||||
std::string status;
|
||||
std::string instanceId;
|
||||
std::string priority;
|
||||
std::string workerNode;
|
||||
std::string bizType;
|
||||
std::string duration;
|
||||
std::string workflowId;
|
||||
std::string initAttributes;
|
||||
std::string name;
|
||||
std::string gmtEnd;
|
||||
std::string gmtCreate;
|
||||
std::string gmtExpire;
|
||||
std::string gmtModify;
|
||||
std::string id;
|
||||
std::string ensRegionId;
|
||||
std::string bussinessId;
|
||||
std::string aliUid;
|
||||
};
|
||||
|
||||
|
||||
DescribeWorkflowResult();
|
||||
explicit DescribeWorkflowResult(const std::string &payload);
|
||||
~DescribeWorkflowResult();
|
||||
std::vector<WorkFlowInfos> getWorkFlowInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<WorkFlowInfos> workFlowInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEWORKFLOWRESULT_H_
|
||||
42
ens/include/alibabacloud/ens/model/RestartWorkflowRequest.h
Normal file
42
ens/include/alibabacloud/ens/model/RestartWorkflowRequest.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_RESTARTWORKFLOWREQUEST_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_RESTARTWORKFLOWREQUEST_H_
|
||||
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Ens {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ENS_EXPORT RestartWorkflowRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RestartWorkflowRequest();
|
||||
~RestartWorkflowRequest();
|
||||
std::vector<std::string> getWorkflowIds() const;
|
||||
void setWorkflowIds(const std::vector<std::string> &workflowIds);
|
||||
|
||||
private:
|
||||
std::vector<std::string> workflowIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ens
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_RESTARTWORKFLOWREQUEST_H_
|
||||
49
ens/include/alibabacloud/ens/model/RestartWorkflowResult.h
Normal file
49
ens/include/alibabacloud/ens/model/RestartWorkflowResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ENS_MODEL_RESTARTWORKFLOWRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_RESTARTWORKFLOWRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT RestartWorkflowResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RestartWorkflowResult();
|
||||
explicit RestartWorkflowResult(const std::string &payload);
|
||||
~RestartWorkflowResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_RESTARTWORKFLOWRESULT_H_
|
||||
42
ens/include/alibabacloud/ens/model/RetryWorkflowRequest.h
Normal file
42
ens/include/alibabacloud/ens/model/RetryWorkflowRequest.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_RETRYWORKFLOWREQUEST_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_RETRYWORKFLOWREQUEST_H_
|
||||
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Ens {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ENS_EXPORT RetryWorkflowRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RetryWorkflowRequest();
|
||||
~RetryWorkflowRequest();
|
||||
std::vector<std::string> getWorkflowIds() const;
|
||||
void setWorkflowIds(const std::vector<std::string> &workflowIds);
|
||||
|
||||
private:
|
||||
std::vector<std::string> workflowIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ens
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_RETRYWORKFLOWREQUEST_H_
|
||||
49
ens/include/alibabacloud/ens/model/RetryWorkflowResult.h
Normal file
49
ens/include/alibabacloud/ens/model/RetryWorkflowResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ENS_MODEL_RETRYWORKFLOWRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_RETRYWORKFLOWRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT RetryWorkflowResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RetryWorkflowResult();
|
||||
explicit RetryWorkflowResult(const std::string &payload);
|
||||
~RetryWorkflowResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_RETRYWORKFLOWRESULT_H_
|
||||
42
ens/include/alibabacloud/ens/model/RollbackWorkflowRequest.h
Normal file
42
ens/include/alibabacloud/ens/model/RollbackWorkflowRequest.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_ROLLBACKWORKFLOWREQUEST_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_ROLLBACKWORKFLOWREQUEST_H_
|
||||
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Ens {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ENS_EXPORT RollbackWorkflowRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RollbackWorkflowRequest();
|
||||
~RollbackWorkflowRequest();
|
||||
std::vector<std::string> getWorkflowIds() const;
|
||||
void setWorkflowIds(const std::vector<std::string> &workflowIds);
|
||||
|
||||
private:
|
||||
std::vector<std::string> workflowIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ens
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_ROLLBACKWORKFLOWREQUEST_H_
|
||||
49
ens/include/alibabacloud/ens/model/RollbackWorkflowResult.h
Normal file
49
ens/include/alibabacloud/ens/model/RollbackWorkflowResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ENS_MODEL_ROLLBACKWORKFLOWRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_ROLLBACKWORKFLOWRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT RollbackWorkflowResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RollbackWorkflowResult();
|
||||
explicit RollbackWorkflowResult(const std::string &payload);
|
||||
~RollbackWorkflowResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_ROLLBACKWORKFLOWRESULT_H_
|
||||
@@ -30,6 +30,7 @@ class ALIBABACLOUD_ENS_EXPORT RunInstancesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct SystemDisk {
|
||||
long size;
|
||||
std::string category;
|
||||
};
|
||||
struct DataDisk {
|
||||
long size;
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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_ENS_MODEL_TERMINATEWORKFLOWREQUEST_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_TERMINATEWORKFLOWREQUEST_H_
|
||||
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Ens {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ENS_EXPORT TerminateWorkflowRequest : public RpcServiceRequest {
|
||||
public:
|
||||
TerminateWorkflowRequest();
|
||||
~TerminateWorkflowRequest();
|
||||
std::vector<std::string> getWorkflowIds() const;
|
||||
void setWorkflowIds(const std::vector<std::string> &workflowIds);
|
||||
|
||||
private:
|
||||
std::vector<std::string> workflowIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ens
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_TERMINATEWORKFLOWREQUEST_H_
|
||||
49
ens/include/alibabacloud/ens/model/TerminateWorkflowResult.h
Normal file
49
ens/include/alibabacloud/ens/model/TerminateWorkflowResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ENS_MODEL_TERMINATEWORKFLOWRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_TERMINATEWORKFLOWRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ens/EnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT TerminateWorkflowResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TerminateWorkflowResult();
|
||||
explicit TerminateWorkflowResult(const std::string &payload);
|
||||
~TerminateWorkflowResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ENS_MODEL_TERMINATEWORKFLOWRESULT_H_
|
||||
@@ -5163,6 +5163,78 @@ EnsClient::DescribeVSwitchesOutcomeCallable EnsClient::describeVSwitchesCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeWorkflowOutcome EnsClient::describeWorkflow(const DescribeWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWorkflowOutcome(DescribeWorkflowResult(outcome.result()));
|
||||
else
|
||||
return DescribeWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::describeWorkflowAsync(const DescribeWorkflowRequest& request, const DescribeWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DescribeWorkflowOutcomeCallable EnsClient::describeWorkflowCallable(const DescribeWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DescribeWorkflowActivityOutcome EnsClient::describeWorkflowActivity(const DescribeWorkflowActivityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWorkflowActivityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWorkflowActivityOutcome(DescribeWorkflowActivityResult(outcome.result()));
|
||||
else
|
||||
return DescribeWorkflowActivityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::describeWorkflowActivityAsync(const DescribeWorkflowActivityRequest& request, const DescribeWorkflowActivityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWorkflowActivity(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::DescribeWorkflowActivityOutcomeCallable EnsClient::describeWorkflowActivityCallable(const DescribeWorkflowActivityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWorkflowActivityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWorkflowActivity(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::DetachDiskOutcome EnsClient::detachDisk(const DetachDiskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7071,6 +7143,78 @@ EnsClient::RestartDeviceInstanceOutcomeCallable EnsClient::restartDeviceInstance
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::RestartWorkflowOutcome EnsClient::restartWorkflow(const RestartWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RestartWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RestartWorkflowOutcome(RestartWorkflowResult(outcome.result()));
|
||||
else
|
||||
return RestartWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::restartWorkflowAsync(const RestartWorkflowRequest& request, const RestartWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, restartWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::RestartWorkflowOutcomeCallable EnsClient::restartWorkflowCallable(const RestartWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RestartWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->restartWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::RetryWorkflowOutcome EnsClient::retryWorkflow(const RetryWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RetryWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RetryWorkflowOutcome(RetryWorkflowResult(outcome.result()));
|
||||
else
|
||||
return RetryWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::retryWorkflowAsync(const RetryWorkflowRequest& request, const RetryWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, retryWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::RetryWorkflowOutcomeCallable EnsClient::retryWorkflowCallable(const RetryWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RetryWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->retryWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::RevokeSecurityGroupOutcome EnsClient::revokeSecurityGroup(const RevokeSecurityGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7179,6 +7323,42 @@ EnsClient::RollbackApplicationOutcomeCallable EnsClient::rollbackApplicationCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::RollbackWorkflowOutcome EnsClient::rollbackWorkflow(const RollbackWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RollbackWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RollbackWorkflowOutcome(RollbackWorkflowResult(outcome.result()));
|
||||
else
|
||||
return RollbackWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::rollbackWorkflowAsync(const RollbackWorkflowRequest& request, const RollbackWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, rollbackWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::RollbackWorkflowOutcomeCallable EnsClient::rollbackWorkflowCallable(const RollbackWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RollbackWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->rollbackWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::RunInstancesOutcome EnsClient::runInstances(const RunInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7827,6 +8007,42 @@ EnsClient::StopSnatIpForSnatEntryOutcomeCallable EnsClient::stopSnatIpForSnatEnt
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::TerminateWorkflowOutcome EnsClient::terminateWorkflow(const TerminateWorkflowRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TerminateWorkflowOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TerminateWorkflowOutcome(TerminateWorkflowResult(outcome.result()));
|
||||
else
|
||||
return TerminateWorkflowOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EnsClient::terminateWorkflowAsync(const TerminateWorkflowRequest& request, const TerminateWorkflowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, terminateWorkflow(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EnsClient::TerminateWorkflowOutcomeCallable EnsClient::terminateWorkflowCallable(const TerminateWorkflowRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TerminateWorkflowOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->terminateWorkflow(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EnsClient::UnAssociateEnsEipAddressOutcome EnsClient::unAssociateEnsEipAddress(const UnAssociateEnsEipAddressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -25,6 +25,15 @@ AssociateEnsEipAddressRequest::AssociateEnsEipAddressRequest()
|
||||
|
||||
AssociateEnsEipAddressRequest::~AssociateEnsEipAddressRequest() {}
|
||||
|
||||
bool AssociateEnsEipAddressRequest::getStandby() const {
|
||||
return standby_;
|
||||
}
|
||||
|
||||
void AssociateEnsEipAddressRequest::setStandby(bool standby) {
|
||||
standby_ = standby;
|
||||
setParameter(std::string("Standby"), standby ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AssociateEnsEipAddressRequest::getAllocationId() const {
|
||||
return allocationId_;
|
||||
}
|
||||
|
||||
@@ -133,6 +133,15 @@ void CreateARMServerInstancesRequest::set_NameSpace(const std::string &_nameSpac
|
||||
setParameter(std::string("NameSpace"), _nameSpace);
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getServerName() const {
|
||||
return serverName_;
|
||||
}
|
||||
|
||||
void CreateARMServerInstancesRequest::setServerName(const std::string &serverName) {
|
||||
serverName_ = serverName;
|
||||
setParameter(std::string("ServerName"), serverName);
|
||||
}
|
||||
|
||||
std::string CreateARMServerInstancesRequest::getPayType() const {
|
||||
return payType_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,15 @@ void CreateForwardEntryRequest::setExternalPort(const std::string &externalPort)
|
||||
setParameter(std::string("ExternalPort"), externalPort);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getStandbyExternalIp() const {
|
||||
return standbyExternalIp_;
|
||||
}
|
||||
|
||||
void CreateForwardEntryRequest::setStandbyExternalIp(const std::string &standbyExternalIp) {
|
||||
standbyExternalIp_ = standbyExternalIp;
|
||||
setParameter(std::string("StandbyExternalIp"), standbyExternalIp);
|
||||
}
|
||||
|
||||
std::string CreateForwardEntryRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ CreateSnatEntryRequest::CreateSnatEntryRequest()
|
||||
|
||||
CreateSnatEntryRequest::~CreateSnatEntryRequest() {}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSourceCIDR() const {
|
||||
return sourceCIDR_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setSourceCIDR(const std::string &sourceCIDR) {
|
||||
sourceCIDR_ = sourceCIDR;
|
||||
setParameter(std::string("SourceCIDR"), sourceCIDR);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSnatIp() const {
|
||||
return snatIp_;
|
||||
}
|
||||
@@ -61,6 +52,24 @@ void CreateSnatEntryRequest::setSourceNetworkId(const std::string &sourceNetwork
|
||||
setParameter(std::string("SourceNetworkId"), sourceNetworkId);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getStandbySnatIp() const {
|
||||
return standbySnatIp_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setStandbySnatIp(const std::string &standbySnatIp) {
|
||||
standbySnatIp_ = standbySnatIp;
|
||||
setParameter(std::string("StandbySnatIp"), standbySnatIp);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getSourceCIDR() const {
|
||||
return sourceCIDR_;
|
||||
}
|
||||
|
||||
void CreateSnatEntryRequest::setSourceCIDR(const std::string &sourceCIDR) {
|
||||
sourceCIDR_ = sourceCIDR;
|
||||
setParameter(std::string("SourceCIDR"), sourceCIDR);
|
||||
}
|
||||
|
||||
std::string CreateSnatEntryRequest::getNatGatewayId() const {
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,8 @@ void DescribeDisksResult::parse(const std::string &payload)
|
||||
disksObject.portable = valueDisksDisksItem["Portable"].asString() == "true";
|
||||
if(!valueDisksDisksItem["SnapshotId"].isNull())
|
||||
disksObject.snapshotId = valueDisksDisksItem["SnapshotId"].asString();
|
||||
if(!valueDisksDisksItem["SerialId"].isNull())
|
||||
disksObject.serialId = valueDisksDisksItem["SerialId"].asString();
|
||||
disks_.push_back(disksObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -61,6 +61,15 @@ void DescribeEnsEipAddressesRequest::setStatus(const std::string &status) {
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
std::string DescribeEnsEipAddressesRequest::getStandby() const {
|
||||
return standby_;
|
||||
}
|
||||
|
||||
void DescribeEnsEipAddressesRequest::setStandby(const std::string &standby) {
|
||||
standby_ = standby;
|
||||
setParameter(std::string("Standby"), standby);
|
||||
}
|
||||
|
||||
std::string DescribeEnsEipAddressesRequest::getAllocationId() const {
|
||||
return allocationId_;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,10 @@ void DescribeEnsEipAddressesResult::parse(const std::string &payload)
|
||||
eipAddressesObject.status = valueEipAddressesEipAddress["Status"].asString();
|
||||
if(!valueEipAddressesEipAddress["Isp"].isNull())
|
||||
eipAddressesObject.isp = valueEipAddressesEipAddress["Isp"].asString();
|
||||
if(!valueEipAddressesEipAddress["Standby"].isNull())
|
||||
eipAddressesObject.standby = valueEipAddressesEipAddress["Standby"].asString() == "true";
|
||||
if(!valueEipAddressesEipAddress["IpStatus"].isNull())
|
||||
eipAddressesObject.ipStatus = valueEipAddressesEipAddress["IpStatus"].asString();
|
||||
eipAddresses_.push_back(eipAddressesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeEnsSaleControlAvailableResourceRequest::DescribeEnsSaleControlAvailableR
|
||||
|
||||
DescribeEnsSaleControlAvailableResourceRequest::~DescribeEnsSaleControlAvailableResourceRequest() {}
|
||||
|
||||
std::string DescribeEnsSaleControlAvailableResourceRequest::getCustomAccount() const {
|
||||
return customAccount_;
|
||||
}
|
||||
|
||||
void DescribeEnsSaleControlAvailableResourceRequest::setCustomAccount(const std::string &customAccount) {
|
||||
customAccount_ = customAccount;
|
||||
setParameter(std::string("CustomAccount"), customAccount);
|
||||
}
|
||||
|
||||
std::string DescribeEnsSaleControlAvailableResourceRequest::getCommodityCode() const {
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeEnsSaleControlRequest::DescribeEnsSaleControlRequest()
|
||||
|
||||
DescribeEnsSaleControlRequest::~DescribeEnsSaleControlRequest() {}
|
||||
|
||||
std::string DescribeEnsSaleControlRequest::getCustomAccount() const {
|
||||
return customAccount_;
|
||||
}
|
||||
|
||||
void DescribeEnsSaleControlRequest::setCustomAccount(const std::string &customAccount) {
|
||||
customAccount_ = customAccount;
|
||||
setParameter(std::string("CustomAccount"), customAccount);
|
||||
}
|
||||
|
||||
std::string DescribeEnsSaleControlRequest::getCommodityCode() const {
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeEnsSaleControlStockRequest::DescribeEnsSaleControlStockRequest()
|
||||
|
||||
DescribeEnsSaleControlStockRequest::~DescribeEnsSaleControlStockRequest() {}
|
||||
|
||||
std::string DescribeEnsSaleControlStockRequest::getCustomAccount() const {
|
||||
return customAccount_;
|
||||
}
|
||||
|
||||
void DescribeEnsSaleControlStockRequest::setCustomAccount(const std::string &customAccount) {
|
||||
customAccount_ = customAccount;
|
||||
setParameter(std::string("CustomAccount"), customAccount);
|
||||
}
|
||||
|
||||
std::string DescribeEnsSaleControlStockRequest::getCommodityCode() const {
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) {
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool DescribeForwardTableEntriesRequest::getShowDetail() const {
|
||||
return showDetail_;
|
||||
}
|
||||
|
||||
void DescribeForwardTableEntriesRequest::setShowDetail(bool showDetail) {
|
||||
showDetail_ = showDetail;
|
||||
setParameter(std::string("ShowDetail"), showDetail ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeForwardTableEntriesRequest::getForwardEntryId() const {
|
||||
return forwardEntryId_;
|
||||
}
|
||||
|
||||
@@ -63,6 +63,16 @@ void DescribeForwardTableEntriesResult::parse(const std::string &payload)
|
||||
forwardTableEntriesObject.ipProtocol = valueForwardTableEntriesForwardTableEntry["IpProtocol"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["HealthCheckPort"].isNull())
|
||||
forwardTableEntriesObject.healthCheckPort = valueForwardTableEntriesForwardTableEntry["HealthCheckPort"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["StandbyExternalIp"].isNull())
|
||||
forwardTableEntriesObject.standbyExternalIp = valueForwardTableEntriesForwardTableEntry["StandbyExternalIp"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["StandbyStatus"].isNull())
|
||||
forwardTableEntriesObject.standbyStatus = valueForwardTableEntriesForwardTableEntry["StandbyStatus"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["ExternalIpIsp"].isNull())
|
||||
forwardTableEntriesObject.externalIpIsp = valueForwardTableEntriesForwardTableEntry["ExternalIpIsp"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["StandbyExternalIpIsp"].isNull())
|
||||
forwardTableEntriesObject.standbyExternalIpIsp = valueForwardTableEntriesForwardTableEntry["StandbyExternalIpIsp"].asString();
|
||||
if(!valueForwardTableEntriesForwardTableEntry["StandbyEnsRegionId"].isNull())
|
||||
forwardTableEntriesObject.standbyEnsRegionId = valueForwardTableEntriesForwardTableEntry["StandbyEnsRegionId"].asString();
|
||||
forwardTableEntries_.push_back(forwardTableEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
@@ -57,15 +57,22 @@ void DescribeRegionBandwidthQuotaResult::parse(const std::string &payload)
|
||||
instanceInfoObject.instanceNumber = std::stol(valueBandwidthQuota带宽配额InstanceInfo实例信息["InstanceNumber"].asString());
|
||||
bandwidthQuotaObject.instanceInfo.push_back(instanceInfoObject);
|
||||
}
|
||||
auto bandwidthInfoNode = value["BandwidthInfo"];
|
||||
if(!bandwidthInfoNode["MonthMax"].isNull())
|
||||
bandwidthQuotaObject.bandwidthInfo.monthMax = std::stol(bandwidthInfoNode["MonthMax"].asString());
|
||||
if(!bandwidthInfoNode["WeekMax"].isNull())
|
||||
bandwidthQuotaObject.bandwidthInfo.weekMax = std::stol(bandwidthInfoNode["WeekMax"].asString());
|
||||
if(!bandwidthInfoNode["MonthAverageQuota"].isNull())
|
||||
bandwidthQuotaObject.bandwidthInfo.monthAverageQuota = std::stol(bandwidthInfoNode["MonthAverageQuota"].asString());
|
||||
if(!bandwidthInfoNode["WeekAverageQuota"].isNull())
|
||||
bandwidthQuotaObject.bandwidthInfo.weekAverageQuota = std::stol(bandwidthInfoNode["WeekAverageQuota"].asString());
|
||||
auto allBandwidthInfoNode = valueBandwidthQuota带宽配额["BandwidthInfo"]["带宽信息"];
|
||||
for (auto valueBandwidthQuota带宽配额BandwidthInfo带宽信息 : allBandwidthInfoNode)
|
||||
{
|
||||
带宽配额::带宽信息 bandwidthInfoObject;
|
||||
if(!valueBandwidthQuota带宽配额BandwidthInfo带宽信息["MonthMax"].isNull())
|
||||
bandwidthInfoObject.monthMax = std::stol(valueBandwidthQuota带宽配额BandwidthInfo带宽信息["MonthMax"].asString());
|
||||
if(!valueBandwidthQuota带宽配额BandwidthInfo带宽信息["WeekMax"].isNull())
|
||||
bandwidthInfoObject.weekMax = std::stol(valueBandwidthQuota带宽配额BandwidthInfo带宽信息["WeekMax"].asString());
|
||||
if(!valueBandwidthQuota带宽配额BandwidthInfo带宽信息["MonthAverageQuota"].isNull())
|
||||
bandwidthInfoObject.monthAverageQuota = std::stol(valueBandwidthQuota带宽配额BandwidthInfo带宽信息["MonthAverageQuota"].asString());
|
||||
if(!valueBandwidthQuota带宽配额BandwidthInfo带宽信息["WeekAverageQuota"].isNull())
|
||||
bandwidthInfoObject.weekAverageQuota = std::stol(valueBandwidthQuota带宽配额BandwidthInfo带宽信息["WeekAverageQuota"].asString());
|
||||
if(!valueBandwidthQuota带宽配额BandwidthInfo带宽信息["Isp"].isNull())
|
||||
bandwidthInfoObject.isp = valueBandwidthQuota带宽配额BandwidthInfo带宽信息["Isp"].asString();
|
||||
bandwidthQuotaObject.bandwidthInfo.push_back(bandwidthInfoObject);
|
||||
}
|
||||
bandwidthQuota_.push_back(bandwidthQuotaObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Ens::Model::DescribeSnatAttributeRequest;
|
||||
|
||||
DescribeSnatAttributeRequest::DescribeSnatAttributeRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeSnatAttribute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSnatAttributeRequest::~DescribeSnatAttributeRequest() {}
|
||||
|
||||
@@ -65,6 +65,10 @@ void DescribeSnatAttributeResult::parse(const std::string &payload)
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
creationTime_ = value["CreationTime"].asString();
|
||||
if(!value["StandbySnatIp"].isNull())
|
||||
standbySnatIp_ = value["StandbySnatIp"].asString();
|
||||
if(!value["StandbyStatus"].isNull())
|
||||
standbyStatus_ = value["StandbyStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -103,8 +107,18 @@ std::string DescribeSnatAttributeResult::getSnatIp()const
|
||||
return snatIp_;
|
||||
}
|
||||
|
||||
std::string DescribeSnatAttributeResult::getStandbyStatus()const
|
||||
{
|
||||
return standbyStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeSnatAttributeResult::getNatGatewayId()const
|
||||
{
|
||||
return natGatewayId_;
|
||||
}
|
||||
|
||||
std::string DescribeSnatAttributeResult::getStandbySnatIp()const
|
||||
{
|
||||
return standbySnatIp_;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,15 @@ void DescribeSnatTableEntriesRequest::setPageNumber(int pageNumber) {
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
bool DescribeSnatTableEntriesRequest::getShowDetail() const {
|
||||
return showDetail_;
|
||||
}
|
||||
|
||||
void DescribeSnatTableEntriesRequest::setShowDetail(bool showDetail) {
|
||||
showDetail_ = showDetail;
|
||||
setParameter(std::string("ShowDetail"), showDetail ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribeSnatTableEntriesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,24 @@ void DescribeSnatTableEntriesResult::parse(const std::string &payload)
|
||||
snatTableEntriesObject.snatEntryName = valueSnatTableEntriesSnatTableEntry["SnatEntryName"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["Status"].isNull())
|
||||
snatTableEntriesObject.status = valueSnatTableEntriesSnatTableEntry["Status"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["StandbySnatIp"].isNull())
|
||||
snatTableEntriesObject.standbySnatIp = valueSnatTableEntriesSnatTableEntry["StandbySnatIp"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntry["StandbyStatus"].isNull())
|
||||
snatTableEntriesObject.standbyStatus = valueSnatTableEntriesSnatTableEntry["StandbyStatus"].asString();
|
||||
auto allSnatIpsNode = valueSnatTableEntriesSnatTableEntry["SnatIps"]["snatIp"];
|
||||
for (auto valueSnatTableEntriesSnatTableEntrySnatIpssnatIp : allSnatIpsNode)
|
||||
{
|
||||
SnatTableEntry::SnatIp snatIpsObject;
|
||||
if(!valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["Ip"].isNull())
|
||||
snatIpsObject.ip = valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["Ip"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["Isp"].isNull())
|
||||
snatIpsObject.isp = valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["Isp"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["EnsRegionId"].isNull())
|
||||
snatIpsObject.ensRegionId = valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["EnsRegionId"].asString();
|
||||
if(!valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["Standby"].isNull())
|
||||
snatIpsObject.standby = valueSnatTableEntriesSnatTableEntrySnatIpssnatIp["Standby"].asString() == "true";
|
||||
snatTableEntriesObject.snatIps.push_back(snatIpsObject);
|
||||
}
|
||||
snatTableEntries_.push_back(snatTableEntriesObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
|
||||
36
ens/src/model/DescribeWorkflowActivityRequest.cc
Normal file
36
ens/src/model/DescribeWorkflowActivityRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/DescribeWorkflowActivityRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeWorkflowActivityRequest;
|
||||
|
||||
DescribeWorkflowActivityRequest::DescribeWorkflowActivityRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeWorkflowActivity") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeWorkflowActivityRequest::~DescribeWorkflowActivityRequest() {}
|
||||
|
||||
std::string DescribeWorkflowActivityRequest::getWorkFlowId() const {
|
||||
return workFlowId_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowActivityRequest::setWorkFlowId(const std::string &workFlowId) {
|
||||
workFlowId_ = workFlowId;
|
||||
setParameter(std::string("WorkFlowId"), workFlowId);
|
||||
}
|
||||
|
||||
79
ens/src/model/DescribeWorkflowActivityResult.cc
Normal file
79
ens/src/model/DescribeWorkflowActivityResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/DescribeWorkflowActivityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeWorkflowActivityResult::DescribeWorkflowActivityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeWorkflowActivityResult::DescribeWorkflowActivityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeWorkflowActivityResult::~DescribeWorkflowActivityResult()
|
||||
{}
|
||||
|
||||
void DescribeWorkflowActivityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActivityInfoNode = value["ActivityInfo"]["ActivityInfos"];
|
||||
for (auto valueActivityInfoActivityInfos : allActivityInfoNode)
|
||||
{
|
||||
ActivityInfos activityInfoObject;
|
||||
if(!valueActivityInfoActivityInfos["ActivityId"].isNull())
|
||||
activityInfoObject.activityId = valueActivityInfoActivityInfos["ActivityId"].asString();
|
||||
if(!valueActivityInfoActivityInfos["ActivityName"].isNull())
|
||||
activityInfoObject.activityName = valueActivityInfoActivityInfos["ActivityName"].asString();
|
||||
if(!valueActivityInfoActivityInfos["State"].isNull())
|
||||
activityInfoObject.state = valueActivityInfoActivityInfos["State"].asString();
|
||||
if(!valueActivityInfoActivityInfos["GmtStart"].isNull())
|
||||
activityInfoObject.gmtStart = valueActivityInfoActivityInfos["GmtStart"].asString();
|
||||
if(!valueActivityInfoActivityInfos["GmtEnd"].isNull())
|
||||
activityInfoObject.gmtEnd = valueActivityInfoActivityInfos["GmtEnd"].asString();
|
||||
if(!valueActivityInfoActivityInfos["Duration"].isNull())
|
||||
activityInfoObject.duration = valueActivityInfoActivityInfos["Duration"].asString();
|
||||
if(!valueActivityInfoActivityInfos["GmtCreate"].isNull())
|
||||
activityInfoObject.gmtCreate = valueActivityInfoActivityInfos["GmtCreate"].asString();
|
||||
if(!valueActivityInfoActivityInfos["Method"].isNull())
|
||||
activityInfoObject.method = valueActivityInfoActivityInfos["Method"].asString();
|
||||
if(!valueActivityInfoActivityInfos["Input"].isNull())
|
||||
activityInfoObject.input = valueActivityInfoActivityInfos["Input"].asString();
|
||||
if(!valueActivityInfoActivityInfos["Output"].isNull())
|
||||
activityInfoObject.output = valueActivityInfoActivityInfos["Output"].asString();
|
||||
if(!valueActivityInfoActivityInfos["Error"].isNull())
|
||||
activityInfoObject.error = valueActivityInfoActivityInfos["Error"].asString();
|
||||
if(!valueActivityInfoActivityInfos["WorkerNode"].isNull())
|
||||
activityInfoObject.workerNode = valueActivityInfoActivityInfos["WorkerNode"].asString();
|
||||
activityInfo_.push_back(activityInfoObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeWorkflowActivityResult::ActivityInfos> DescribeWorkflowActivityResult::getActivityInfo()const
|
||||
{
|
||||
return activityInfo_;
|
||||
}
|
||||
|
||||
135
ens/src/model/DescribeWorkflowRequest.cc
Normal file
135
ens/src/model/DescribeWorkflowRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/DescribeWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::DescribeWorkflowRequest;
|
||||
|
||||
DescribeWorkflowRequest::DescribeWorkflowRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "DescribeWorkflow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeWorkflowRequest::~DescribeWorkflowRequest() {}
|
||||
|
||||
std::string DescribeWorkflowRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setPageNum(const std::string &pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), pageNum);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getStartDate() const {
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setStartDate(const std::string &startDate) {
|
||||
startDate_ = startDate;
|
||||
setParameter(std::string("StartDate"), startDate);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getEnsRegionId() const {
|
||||
return ensRegionId_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setEnsRegionId(const std::string &ensRegionId) {
|
||||
ensRegionId_ = ensRegionId;
|
||||
setParameter(std::string("EnsRegionId"), ensRegionId);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getWorkFlowId() const {
|
||||
return workFlowId_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setWorkFlowId(const std::string &workFlowId) {
|
||||
workFlowId_ = workFlowId;
|
||||
setParameter(std::string("WorkFlowId"), workFlowId);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getBusinessId() const {
|
||||
return businessId_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setBusinessId(const std::string &businessId) {
|
||||
businessId_ = businessId;
|
||||
setParameter(std::string("BusinessId"), businessId);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getEndDate() const {
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setEndDate(const std::string &endDate) {
|
||||
endDate_ = endDate;
|
||||
setParameter(std::string("EndDate"), endDate);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getWorkFlowName() const {
|
||||
return workFlowName_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setWorkFlowName(const std::string &workFlowName) {
|
||||
workFlowName_ = workFlowName;
|
||||
setParameter(std::string("WorkFlowName"), workFlowName);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeWorkflowRequest::getAliUid() const {
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
void DescribeWorkflowRequest::setAliUid(const std::string &aliUid) {
|
||||
aliUid_ = aliUid;
|
||||
setParameter(std::string("AliUid"), aliUid);
|
||||
}
|
||||
|
||||
91
ens/src/model/DescribeWorkflowResult.cc
Normal file
91
ens/src/model/DescribeWorkflowResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/DescribeWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
DescribeWorkflowResult::DescribeWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeWorkflowResult::DescribeWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeWorkflowResult::~DescribeWorkflowResult()
|
||||
{}
|
||||
|
||||
void DescribeWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allWorkFlowInfoNode = value["WorkFlowInfo"]["WorkFlowInfos"];
|
||||
for (auto valueWorkFlowInfoWorkFlowInfos : allWorkFlowInfoNode)
|
||||
{
|
||||
WorkFlowInfos workFlowInfoObject;
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["GmtCreate"].isNull())
|
||||
workFlowInfoObject.gmtCreate = valueWorkFlowInfoWorkFlowInfos["GmtCreate"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["GmtExpire"].isNull())
|
||||
workFlowInfoObject.gmtExpire = valueWorkFlowInfoWorkFlowInfos["GmtExpire"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["WorkflowId"].isNull())
|
||||
workFlowInfoObject.workflowId = valueWorkFlowInfoWorkFlowInfos["WorkflowId"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["BizType"].isNull())
|
||||
workFlowInfoObject.bizType = valueWorkFlowInfoWorkFlowInfos["BizType"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["InitAttributes"].isNull())
|
||||
workFlowInfoObject.initAttributes = valueWorkFlowInfoWorkFlowInfos["InitAttributes"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["WorkerNode"].isNull())
|
||||
workFlowInfoObject.workerNode = valueWorkFlowInfoWorkFlowInfos["WorkerNode"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["Duration"].isNull())
|
||||
workFlowInfoObject.duration = valueWorkFlowInfoWorkFlowInfos["Duration"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["GmtStart"].isNull())
|
||||
workFlowInfoObject.gmtStart = valueWorkFlowInfoWorkFlowInfos["GmtStart"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["AliUid"].isNull())
|
||||
workFlowInfoObject.aliUid = valueWorkFlowInfoWorkFlowInfos["AliUid"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["EnsRegionId"].isNull())
|
||||
workFlowInfoObject.ensRegionId = valueWorkFlowInfoWorkFlowInfos["EnsRegionId"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["InstanceId"].isNull())
|
||||
workFlowInfoObject.instanceId = valueWorkFlowInfoWorkFlowInfos["InstanceId"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["Name"].isNull())
|
||||
workFlowInfoObject.name = valueWorkFlowInfoWorkFlowInfos["Name"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["GmtModify"].isNull())
|
||||
workFlowInfoObject.gmtModify = valueWorkFlowInfoWorkFlowInfos["GmtModify"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["Id"].isNull())
|
||||
workFlowInfoObject.id = valueWorkFlowInfoWorkFlowInfos["Id"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["GmtEnd"].isNull())
|
||||
workFlowInfoObject.gmtEnd = valueWorkFlowInfoWorkFlowInfos["GmtEnd"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["BussinessId"].isNull())
|
||||
workFlowInfoObject.bussinessId = valueWorkFlowInfoWorkFlowInfos["BussinessId"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["Status"].isNull())
|
||||
workFlowInfoObject.status = valueWorkFlowInfoWorkFlowInfos["Status"].asString();
|
||||
if(!valueWorkFlowInfoWorkFlowInfos["Priority"].isNull())
|
||||
workFlowInfoObject.priority = valueWorkFlowInfoWorkFlowInfos["Priority"].asString();
|
||||
workFlowInfo_.push_back(workFlowInfoObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeWorkflowResult::WorkFlowInfos> DescribeWorkflowResult::getWorkFlowInfo()const
|
||||
{
|
||||
return workFlowInfo_;
|
||||
}
|
||||
|
||||
38
ens/src/model/RestartWorkflowRequest.cc
Normal file
38
ens/src/model/RestartWorkflowRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/RestartWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::RestartWorkflowRequest;
|
||||
|
||||
RestartWorkflowRequest::RestartWorkflowRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "RestartWorkflow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RestartWorkflowRequest::~RestartWorkflowRequest() {}
|
||||
|
||||
std::vector<RestartWorkflowRequest::std::string> RestartWorkflowRequest::getWorkflowIds() const {
|
||||
return workflowIds_;
|
||||
}
|
||||
|
||||
void RestartWorkflowRequest::setWorkflowIds(const std::vector<RestartWorkflowRequest::std::string> &workflowIds) {
|
||||
workflowIds_ = workflowIds;
|
||||
for(int dep1 = 0; dep1 != workflowIds.size(); dep1++) {
|
||||
setParameter(std::string("WorkflowIds") + "." + std::to_string(dep1 + 1), workflowIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
44
ens/src/model/RestartWorkflowResult.cc
Normal file
44
ens/src/model/RestartWorkflowResult.cc
Normal file
@@ -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 <alibabacloud/ens/model/RestartWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
RestartWorkflowResult::RestartWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RestartWorkflowResult::RestartWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RestartWorkflowResult::~RestartWorkflowResult()
|
||||
{}
|
||||
|
||||
void RestartWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
ens/src/model/RetryWorkflowRequest.cc
Normal file
38
ens/src/model/RetryWorkflowRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/RetryWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::RetryWorkflowRequest;
|
||||
|
||||
RetryWorkflowRequest::RetryWorkflowRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "RetryWorkflow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RetryWorkflowRequest::~RetryWorkflowRequest() {}
|
||||
|
||||
std::vector<RetryWorkflowRequest::std::string> RetryWorkflowRequest::getWorkflowIds() const {
|
||||
return workflowIds_;
|
||||
}
|
||||
|
||||
void RetryWorkflowRequest::setWorkflowIds(const std::vector<RetryWorkflowRequest::std::string> &workflowIds) {
|
||||
workflowIds_ = workflowIds;
|
||||
for(int dep1 = 0; dep1 != workflowIds.size(); dep1++) {
|
||||
setParameter(std::string("WorkflowIds") + "." + std::to_string(dep1 + 1), workflowIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
44
ens/src/model/RetryWorkflowResult.cc
Normal file
44
ens/src/model/RetryWorkflowResult.cc
Normal file
@@ -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 <alibabacloud/ens/model/RetryWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
RetryWorkflowResult::RetryWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RetryWorkflowResult::RetryWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RetryWorkflowResult::~RetryWorkflowResult()
|
||||
{}
|
||||
|
||||
void RetryWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
38
ens/src/model/RollbackWorkflowRequest.cc
Normal file
38
ens/src/model/RollbackWorkflowRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/RollbackWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::RollbackWorkflowRequest;
|
||||
|
||||
RollbackWorkflowRequest::RollbackWorkflowRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "RollbackWorkflow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RollbackWorkflowRequest::~RollbackWorkflowRequest() {}
|
||||
|
||||
std::vector<RollbackWorkflowRequest::std::string> RollbackWorkflowRequest::getWorkflowIds() const {
|
||||
return workflowIds_;
|
||||
}
|
||||
|
||||
void RollbackWorkflowRequest::setWorkflowIds(const std::vector<RollbackWorkflowRequest::std::string> &workflowIds) {
|
||||
workflowIds_ = workflowIds;
|
||||
for(int dep1 = 0; dep1 != workflowIds.size(); dep1++) {
|
||||
setParameter(std::string("WorkflowIds") + "." + std::to_string(dep1 + 1), workflowIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
44
ens/src/model/RollbackWorkflowResult.cc
Normal file
44
ens/src/model/RollbackWorkflowResult.cc
Normal file
@@ -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 <alibabacloud/ens/model/RollbackWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
RollbackWorkflowResult::RollbackWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RollbackWorkflowResult::RollbackWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RollbackWorkflowResult::~RollbackWorkflowResult()
|
||||
{}
|
||||
|
||||
void RollbackWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -95,6 +95,7 @@ RunInstancesRequest::SystemDisk RunInstancesRequest::getSystemDisk() const {
|
||||
void RunInstancesRequest::setSystemDisk(const RunInstancesRequest::SystemDisk &systemDisk) {
|
||||
systemDisk_ = systemDisk;
|
||||
setParameter(std::string("SystemDisk") + ".Size", std::to_string(systemDisk.size));
|
||||
setParameter(std::string("SystemDisk") + ".Category", systemDisk.category);
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getNetDistrictCode() const {
|
||||
|
||||
38
ens/src/model/TerminateWorkflowRequest.cc
Normal file
38
ens/src/model/TerminateWorkflowRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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 <alibabacloud/ens/model/TerminateWorkflowRequest.h>
|
||||
|
||||
using AlibabaCloud::Ens::Model::TerminateWorkflowRequest;
|
||||
|
||||
TerminateWorkflowRequest::TerminateWorkflowRequest()
|
||||
: RpcServiceRequest("ens", "2017-11-10", "TerminateWorkflow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TerminateWorkflowRequest::~TerminateWorkflowRequest() {}
|
||||
|
||||
std::vector<TerminateWorkflowRequest::std::string> TerminateWorkflowRequest::getWorkflowIds() const {
|
||||
return workflowIds_;
|
||||
}
|
||||
|
||||
void TerminateWorkflowRequest::setWorkflowIds(const std::vector<TerminateWorkflowRequest::std::string> &workflowIds) {
|
||||
workflowIds_ = workflowIds;
|
||||
for(int dep1 = 0; dep1 != workflowIds.size(); dep1++) {
|
||||
setParameter(std::string("WorkflowIds") + "." + std::to_string(dep1 + 1), workflowIds[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
44
ens/src/model/TerminateWorkflowResult.cc
Normal file
44
ens/src/model/TerminateWorkflowResult.cc
Normal file
@@ -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 <alibabacloud/ens/model/TerminateWorkflowResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ens;
|
||||
using namespace AlibabaCloud::Ens::Model;
|
||||
|
||||
TerminateWorkflowResult::TerminateWorkflowResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TerminateWorkflowResult::TerminateWorkflowResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TerminateWorkflowResult::~TerminateWorkflowResult()
|
||||
{}
|
||||
|
||||
void TerminateWorkflowResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user