EHPC SDK Auto Released By qianzheng.llc,Version:1.25.0
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
@@ -54,6 +54,8 @@
|
||||
#include "model/StartNodesResult.h"
|
||||
#include "model/GetCloudMetricProfilingRequest.h"
|
||||
#include "model/GetCloudMetricProfilingResult.h"
|
||||
#include "model/DescribeImagePriceRequest.h"
|
||||
#include "model/DescribeImagePriceResult.h"
|
||||
#include "model/GetAutoScaleConfigRequest.h"
|
||||
#include "model/GetAutoScaleConfigResult.h"
|
||||
#include "model/ListNodesRequest.h"
|
||||
@@ -136,6 +138,8 @@
|
||||
#include "model/DescribeAutoScaleConfigResult.h"
|
||||
#include "model/RunCloudMetricProfilingRequest.h"
|
||||
#include "model/RunCloudMetricProfilingResult.h"
|
||||
#include "model/DescribePriceRequest.h"
|
||||
#include "model/DescribePriceResult.h"
|
||||
#include "model/RerunJobsRequest.h"
|
||||
#include "model/RerunJobsResult.h"
|
||||
#include "model/EditJobTemplateRequest.h"
|
||||
@@ -207,6 +211,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCloudMetricProfilingResult> GetCloudMetricProfilingOutcome;
|
||||
typedef std::future<GetCloudMetricProfilingOutcome> GetCloudMetricProfilingOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetCloudMetricProfilingRequest&, const GetCloudMetricProfilingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCloudMetricProfilingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImagePriceResult> DescribeImagePriceOutcome;
|
||||
typedef std::future<DescribeImagePriceOutcome> DescribeImagePriceOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribeImagePriceRequest&, const DescribeImagePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImagePriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAutoScaleConfigResult> GetAutoScaleConfigOutcome;
|
||||
typedef std::future<GetAutoScaleConfigOutcome> GetAutoScaleConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetAutoScaleConfigRequest&, const GetAutoScaleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAutoScaleConfigAsyncHandler;
|
||||
@@ -330,6 +337,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RunCloudMetricProfilingResult> RunCloudMetricProfilingOutcome;
|
||||
typedef std::future<RunCloudMetricProfilingOutcome> RunCloudMetricProfilingOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::RunCloudMetricProfilingRequest&, const RunCloudMetricProfilingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunCloudMetricProfilingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePriceResult> DescribePriceOutcome;
|
||||
typedef std::future<DescribePriceOutcome> DescribePriceOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::DescribePriceRequest&, const DescribePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RerunJobsResult> RerunJobsOutcome;
|
||||
typedef std::future<RerunJobsOutcome> RerunJobsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::RerunJobsRequest&, const RerunJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RerunJobsAsyncHandler;
|
||||
@@ -404,6 +414,9 @@ namespace AlibabaCloud
|
||||
GetCloudMetricProfilingOutcome getCloudMetricProfiling(const Model::GetCloudMetricProfilingRequest &request)const;
|
||||
void getCloudMetricProfilingAsync(const Model::GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCloudMetricProfilingOutcomeCallable getCloudMetricProfilingCallable(const Model::GetCloudMetricProfilingRequest& request) const;
|
||||
DescribeImagePriceOutcome describeImagePrice(const Model::DescribeImagePriceRequest &request)const;
|
||||
void describeImagePriceAsync(const Model::DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImagePriceOutcomeCallable describeImagePriceCallable(const Model::DescribeImagePriceRequest& request) const;
|
||||
GetAutoScaleConfigOutcome getAutoScaleConfig(const Model::GetAutoScaleConfigRequest &request)const;
|
||||
void getAutoScaleConfigAsync(const Model::GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAutoScaleConfigOutcomeCallable getAutoScaleConfigCallable(const Model::GetAutoScaleConfigRequest& request) const;
|
||||
@@ -527,6 +540,9 @@ namespace AlibabaCloud
|
||||
RunCloudMetricProfilingOutcome runCloudMetricProfiling(const Model::RunCloudMetricProfilingRequest &request)const;
|
||||
void runCloudMetricProfilingAsync(const Model::RunCloudMetricProfilingRequest& request, const RunCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunCloudMetricProfilingOutcomeCallable runCloudMetricProfilingCallable(const Model::RunCloudMetricProfilingRequest& request) const;
|
||||
DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const;
|
||||
void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const;
|
||||
RerunJobsOutcome rerunJobs(const Model::RerunJobsRequest &request)const;
|
||||
void rerunJobsAsync(const Model::RerunJobsRequest& request, const RerunJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RerunJobsOutcomeCallable rerunJobsCallable(const Model::RerunJobsRequest& request) const;
|
||||
|
||||
@@ -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_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EHPC_EXPORT DescribeImagePriceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeImagePriceRequest();
|
||||
~DescribeImagePriceRequest();
|
||||
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
int getAmount()const;
|
||||
void setAmount(int amount);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getPriceUnit()const;
|
||||
void setPriceUnit(const std::string& priceUnit);
|
||||
std::string getSkuCode()const;
|
||||
void setSkuCode(const std::string& skuCode);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getOrderType()const;
|
||||
void setOrderType(const std::string& orderType);
|
||||
|
||||
private:
|
||||
int period_;
|
||||
int amount_;
|
||||
std::string imageId_;
|
||||
std::string priceUnit_;
|
||||
std::string skuCode_;
|
||||
std::string accessKeyId_;
|
||||
std::string orderType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_EHPC_MODEL_DESCRIBEIMAGEPRICERESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EHPC_EXPORT DescribeImagePriceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeImagePriceResult();
|
||||
explicit DescribeImagePriceResult(const std::string &payload);
|
||||
~DescribeImagePriceResult();
|
||||
float getOriginalPrice()const;
|
||||
float getDiscountPrice()const;
|
||||
int getAmount()const;
|
||||
std::string getImageId()const;
|
||||
float getTradePrice()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
float originalPrice_;
|
||||
float discountPrice_;
|
||||
int amount_;
|
||||
std::string imageId_;
|
||||
float tradePrice_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICERESULT_H_
|
||||
70
ehpc/include/alibabacloud/ehpc/model/DescribePriceRequest.h
Normal file
70
ehpc/include/alibabacloud/ehpc/model/DescribePriceRequest.h
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EHPC_EXPORT DescribePriceRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Commodities
|
||||
{
|
||||
int amount;
|
||||
int period;
|
||||
std::string nodeType;
|
||||
std::string systemDiskCategory;
|
||||
int systemDiskSize;
|
||||
std::string instanceType;
|
||||
std::string networkType;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribePriceRequest();
|
||||
~DescribePriceRequest();
|
||||
|
||||
std::string getPriceUnit()const;
|
||||
void setPriceUnit(const std::string& priceUnit);
|
||||
std::vector<Commodities> getCommodities()const;
|
||||
void setCommodities(const std::vector<Commodities>& commodities);
|
||||
std::string getChargeType()const;
|
||||
void setChargeType(const std::string& chargeType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getOrderType()const;
|
||||
void setOrderType(const std::string& orderType);
|
||||
|
||||
private:
|
||||
std::string priceUnit_;
|
||||
std::vector<Commodities> commodities_;
|
||||
std::string chargeType_;
|
||||
std::string accessKeyId_;
|
||||
std::string orderType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_
|
||||
60
ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h
Normal file
60
ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICERESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EHPC_EXPORT DescribePriceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PriceInfo
|
||||
{
|
||||
float originalPrice;
|
||||
std::string nodeType;
|
||||
std::string currency;
|
||||
float tradePrice;
|
||||
};
|
||||
|
||||
|
||||
DescribePriceResult();
|
||||
explicit DescribePriceResult(const std::string &payload);
|
||||
~DescribePriceResult();
|
||||
std::vector<PriceInfo> getPrices()const;
|
||||
float getTotalTradePrice()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PriceInfo> prices_;
|
||||
float totalTradePrice_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICERESULT_H_
|
||||
Reference in New Issue
Block a user