Add param, DescribePrice supprot ReservedInstance.
This commit is contained in:
@@ -542,6 +542,8 @@
|
||||
#include "model/RevokeSecurityGroupResult.h"
|
||||
#include "model/RevokeSecurityGroupEgressRequest.h"
|
||||
#include "model/RevokeSecurityGroupEgressResult.h"
|
||||
#include "model/RunCommandRequest.h"
|
||||
#include "model/RunCommandResult.h"
|
||||
#include "model/RunInstancesRequest.h"
|
||||
#include "model/RunInstancesResult.h"
|
||||
#include "model/StartInstanceRequest.h"
|
||||
@@ -1355,6 +1357,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RevokeSecurityGroupEgressResult> RevokeSecurityGroupEgressOutcome;
|
||||
typedef std::future<RevokeSecurityGroupEgressOutcome> RevokeSecurityGroupEgressOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RevokeSecurityGroupEgressRequest&, const RevokeSecurityGroupEgressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeSecurityGroupEgressAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunCommandResult> RunCommandOutcome;
|
||||
typedef std::future<RunCommandOutcome> RunCommandOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RunCommandRequest&, const RunCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunCommandAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunInstancesResult> RunInstancesOutcome;
|
||||
typedef std::future<RunInstancesOutcome> RunInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RunInstancesRequest&, const RunInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunInstancesAsyncHandler;
|
||||
@@ -2176,6 +2181,9 @@ namespace AlibabaCloud
|
||||
RevokeSecurityGroupEgressOutcome revokeSecurityGroupEgress(const Model::RevokeSecurityGroupEgressRequest &request)const;
|
||||
void revokeSecurityGroupEgressAsync(const Model::RevokeSecurityGroupEgressRequest& request, const RevokeSecurityGroupEgressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeSecurityGroupEgressOutcomeCallable revokeSecurityGroupEgressCallable(const Model::RevokeSecurityGroupEgressRequest& request) const;
|
||||
RunCommandOutcome runCommand(const Model::RunCommandRequest &request)const;
|
||||
void runCommandAsync(const Model::RunCommandRequest& request, const RunCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunCommandOutcomeCallable runCommandCallable(const Model::RunCommandRequest& 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;
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContentEncoding()const;
|
||||
void setContentEncoding(const std::string& contentEncoding);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -65,6 +67,7 @@ namespace AlibabaCloud
|
||||
std::string commandId_;
|
||||
long pageNumber_;
|
||||
std::string regionId_;
|
||||
std::string contentEncoding_;
|
||||
long pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(long pageNumber);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContentEncoding()const;
|
||||
void setContentEncoding(const std::string& contentEncoding);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getInvokeId()const;
|
||||
@@ -70,6 +72,7 @@ namespace AlibabaCloud
|
||||
std::string commandId_;
|
||||
long pageNumber_;
|
||||
std::string regionId_;
|
||||
std::string contentEncoding_;
|
||||
long pageSize_;
|
||||
std::string invokeId_;
|
||||
bool timed_;
|
||||
|
||||
@@ -55,6 +55,8 @@ namespace AlibabaCloud
|
||||
void setInternetChargeType(const std::string& internetChargeType);
|
||||
std::string getInstanceNetworkType()const;
|
||||
void setInstanceNetworkType(const std::string& instanceNetworkType);
|
||||
int getInstanceAmount()const;
|
||||
void setInstanceAmount(int instanceAmount);
|
||||
std::string getDataDisk3PerformanceLevel()const;
|
||||
void setDataDisk3PerformanceLevel(const std::string& dataDisk3PerformanceLevel);
|
||||
std::string getImageId()const;
|
||||
@@ -65,6 +67,8 @@ namespace AlibabaCloud
|
||||
void setInternetMaxBandwidthOut(int internetMaxBandwidthOut);
|
||||
std::string getSystemDiskCategory()const;
|
||||
void setSystemDiskCategory(const std::string& systemDiskCategory);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getSystemDiskPerformanceLevel()const;
|
||||
void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel);
|
||||
std::string getDataDisk4Category()const;
|
||||
@@ -73,6 +77,8 @@ namespace AlibabaCloud
|
||||
void setDataDisk4PerformanceLevel(const std::string& dataDisk4PerformanceLevel);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getScope()const;
|
||||
void setScope(const std::string& scope);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
std::string getDataDisk2Category()const;
|
||||
@@ -95,6 +101,8 @@ namespace AlibabaCloud
|
||||
void setDataDisk2PerformanceLevel(const std::string& dataDisk2PerformanceLevel);
|
||||
int getSystemDiskSize()const;
|
||||
void setSystemDiskSize(int systemDiskSize);
|
||||
std::string getOfferingType()const;
|
||||
void setOfferingType(const std::string& offeringType);
|
||||
|
||||
private:
|
||||
int dataDisk3Size_;
|
||||
@@ -107,15 +115,18 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
std::string internetChargeType_;
|
||||
std::string instanceNetworkType_;
|
||||
int instanceAmount_;
|
||||
std::string dataDisk3PerformanceLevel_;
|
||||
std::string imageId_;
|
||||
std::string ioOptimized_;
|
||||
int internetMaxBandwidthOut_;
|
||||
std::string systemDiskCategory_;
|
||||
std::string platform_;
|
||||
std::string systemDiskPerformanceLevel_;
|
||||
std::string dataDisk4Category_;
|
||||
std::string dataDisk4PerformanceLevel_;
|
||||
std::string regionId_;
|
||||
std::string scope_;
|
||||
std::string instanceType_;
|
||||
std::string dataDisk2Category_;
|
||||
int dataDisk1Size_;
|
||||
@@ -127,6 +138,7 @@ namespace AlibabaCloud
|
||||
std::string dataDisk1Category_;
|
||||
std::string dataDisk2PerformanceLevel_;
|
||||
int systemDiskSize_;
|
||||
std::string offeringType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
||||
float tradePrice;
|
||||
};
|
||||
float originalPrice;
|
||||
float reservedInstanceHourPrice;
|
||||
float discountPrice;
|
||||
std::string currency;
|
||||
std::vector<ResourcePriceModel> detailInfos;
|
||||
|
||||
99
ecs/include/alibabacloud/ecs/model/RunCommandRequest.h
Normal file
99
ecs/include/alibabacloud/ecs/model/RunCommandRequest.h
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT RunCommandRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RunCommandRequest();
|
||||
~RunCommandRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getWorkingDir()const;
|
||||
void setWorkingDir(const std::string& workingDir);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getCommandContent()const;
|
||||
void setCommandContent(const std::string& commandContent);
|
||||
long getTimeout()const;
|
||||
void setTimeout(long timeout);
|
||||
std::string getFrequency()const;
|
||||
void setFrequency(const std::string& frequency);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContentEncoding()const;
|
||||
void setContentEncoding(const std::string& contentEncoding);
|
||||
bool getKeepCommand()const;
|
||||
void setKeepCommand(bool keepCommand);
|
||||
bool getTimed()const;
|
||||
void setTimed(bool timed);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<std::string> getInstanceId()const;
|
||||
void setInstanceId(const std::vector<std::string>& instanceId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::map<std::string, std::string> getParameters()const;
|
||||
void setParameters(const std::map<std::string, std::string>& parameters);
|
||||
bool getEnableParameter()const;
|
||||
void setEnableParameter(bool enableParameter);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string workingDir_;
|
||||
std::string description_;
|
||||
std::string type_;
|
||||
std::string commandContent_;
|
||||
long timeout_;
|
||||
std::string frequency_;
|
||||
std::string regionId_;
|
||||
std::string contentEncoding_;
|
||||
bool keepCommand_;
|
||||
bool timed_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
std::string name_;
|
||||
std::map<std::string, std::string> parameters_;
|
||||
bool enableParameter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_
|
||||
53
ecs/include/alibabacloud/ecs/model/RunCommandResult.h
Normal file
53
ecs/include/alibabacloud/ecs/model/RunCommandResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_RUNCOMMANDRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_RUNCOMMANDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT RunCommandResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RunCommandResult();
|
||||
explicit RunCommandResult(const std::string &payload);
|
||||
~RunCommandResult();
|
||||
std::string getCommandId()const;
|
||||
std::string getInvokeId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string commandId_;
|
||||
std::string invokeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_RUNCOMMANDRESULT_H_
|
||||
Reference in New Issue
Block a user