ReportInstancesStatus OpenAPI supports IssueCategory parameter.
This commit is contained in:
@@ -362,6 +362,8 @@
|
||||
#include "model/DescribeSnapshotsResult.h"
|
||||
#include "model/DescribeSnapshotsUsageRequest.h"
|
||||
#include "model/DescribeSnapshotsUsageResult.h"
|
||||
#include "model/DescribeSpotAdviceRequest.h"
|
||||
#include "model/DescribeSpotAdviceResult.h"
|
||||
#include "model/DescribeSpotPriceHistoryRequest.h"
|
||||
#include "model/DescribeSpotPriceHistoryResult.h"
|
||||
#include "model/DescribeStorageCapacityUnitsRequest.h"
|
||||
@@ -1143,6 +1145,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSnapshotsUsageResult> DescribeSnapshotsUsageOutcome;
|
||||
typedef std::future<DescribeSnapshotsUsageOutcome> DescribeSnapshotsUsageOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeSnapshotsUsageRequest&, const DescribeSnapshotsUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSnapshotsUsageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSpotAdviceResult> DescribeSpotAdviceOutcome;
|
||||
typedef std::future<DescribeSpotAdviceOutcome> DescribeSpotAdviceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeSpotAdviceRequest&, const DescribeSpotAdviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSpotAdviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSpotPriceHistoryResult> DescribeSpotPriceHistoryOutcome;
|
||||
typedef std::future<DescribeSpotPriceHistoryOutcome> DescribeSpotPriceHistoryOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeSpotPriceHistoryRequest&, const DescribeSpotPriceHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSpotPriceHistoryAsyncHandler;
|
||||
@@ -2051,6 +2056,9 @@ namespace AlibabaCloud
|
||||
DescribeSnapshotsUsageOutcome describeSnapshotsUsage(const Model::DescribeSnapshotsUsageRequest &request)const;
|
||||
void describeSnapshotsUsageAsync(const Model::DescribeSnapshotsUsageRequest& request, const DescribeSnapshotsUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSnapshotsUsageOutcomeCallable describeSnapshotsUsageCallable(const Model::DescribeSnapshotsUsageRequest& request) const;
|
||||
DescribeSpotAdviceOutcome describeSpotAdvice(const Model::DescribeSpotAdviceRequest &request)const;
|
||||
void describeSpotAdviceAsync(const Model::DescribeSpotAdviceRequest& request, const DescribeSpotAdviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSpotAdviceOutcomeCallable describeSpotAdviceCallable(const Model::DescribeSpotAdviceRequest& request) const;
|
||||
DescribeSpotPriceHistoryOutcome describeSpotPriceHistory(const Model::DescribeSpotPriceHistoryRequest &request)const;
|
||||
void describeSpotPriceHistoryAsync(const Model::DescribeSpotPriceHistoryRequest& request, const DescribeSpotPriceHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSpotPriceHistoryOutcomeCallable describeSpotPriceHistoryCallable(const Model::DescribeSpotPriceHistoryRequest& request) const;
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace AlibabaCloud
|
||||
int repeats;
|
||||
std::string invokeRecordStatus;
|
||||
std::string finishedTime;
|
||||
std::string username;
|
||||
std::string output;
|
||||
std::string commandId;
|
||||
std::string errorCode;
|
||||
|
||||
@@ -51,17 +51,18 @@ namespace AlibabaCloud
|
||||
std::string errorCode;
|
||||
std::string stopTime;
|
||||
};
|
||||
std::string commandContent;
|
||||
std::string invocationStatus;
|
||||
std::string invokeStatus;
|
||||
std::string parameters;
|
||||
std::string commandType;
|
||||
bool timed;
|
||||
std::vector<Invocation::InvokeInstance> invokeInstances;
|
||||
std::string commandContent;
|
||||
std::string invokeStatus;
|
||||
std::string commandType;
|
||||
std::string username;
|
||||
std::string creationTime;
|
||||
std::string frequency;
|
||||
std::string commandId;
|
||||
std::string commandName;
|
||||
std::vector<Invocation::InvokeInstance> invokeInstances;
|
||||
std::string invokeId;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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_DESCRIBESPOTADVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_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 DescribeSpotAdviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeSpotAdviceRequest();
|
||||
~DescribeSpotAdviceRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
float getMemory()const;
|
||||
void setMemory(float memory);
|
||||
std::string getIoOptimized()const;
|
||||
void setIoOptimized(const std::string& ioOptimized);
|
||||
int getMinCores()const;
|
||||
void setMinCores(int minCores);
|
||||
std::string getNetworkType()const;
|
||||
void setNetworkType(const std::string& networkType);
|
||||
int getCores()const;
|
||||
void setCores(int cores);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
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::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
float getMinMemory()const;
|
||||
void setMinMemory(float minMemory);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
float memory_;
|
||||
std::string ioOptimized_;
|
||||
int minCores_;
|
||||
std::string networkType_;
|
||||
int cores_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string zoneId_;
|
||||
float minMemory_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_DESCRIBESPOTADVICERESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICERESULT_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 DescribeSpotAdviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AvailableSpotZone
|
||||
{
|
||||
struct AvailableSpotResource
|
||||
{
|
||||
std::string interruptRateDesc;
|
||||
std::string instanceType;
|
||||
float interruptionRate;
|
||||
int averageSpotDiscount;
|
||||
};
|
||||
std::string zoneId;
|
||||
std::vector<AvailableSpotZone::AvailableSpotResource> availableSpotResources;
|
||||
};
|
||||
|
||||
|
||||
DescribeSpotAdviceResult();
|
||||
explicit DescribeSpotAdviceResult(const std::string &payload);
|
||||
~DescribeSpotAdviceResult();
|
||||
std::vector<AvailableSpotZone> getAvailableSpotZones()const;
|
||||
std::string getRegionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AvailableSpotZone> availableSpotZones_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICERESULT_H_
|
||||
@@ -55,6 +55,8 @@ namespace AlibabaCloud
|
||||
void setInstanceId(const std::vector<std::string>& instanceId);
|
||||
std::map<std::string, std::string> getParameters()const;
|
||||
void setParameters(const std::map<std::string, std::string>& parameters);
|
||||
std::string getUsername()const;
|
||||
void setUsername(const std::string& username);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -67,6 +69,7 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
std::map<std::string, std::string> parameters_;
|
||||
std::string username_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setDescription(const std::string& description);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getIssueCategory()const;
|
||||
void setIssueCategory(const std::string& issueCategory);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<std::string> getDiskId()const;
|
||||
@@ -65,6 +67,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string description_;
|
||||
std::string startTime_;
|
||||
std::string issueCategory_;
|
||||
std::string regionId_;
|
||||
std::vector<std::string> diskId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -71,6 +71,8 @@ namespace AlibabaCloud
|
||||
void setParameters(const std::map<std::string, std::string>& parameters);
|
||||
bool getEnableParameter()const;
|
||||
void setEnableParameter(bool enableParameter);
|
||||
std::string getUsername()const;
|
||||
void setUsername(const std::string& username);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -91,6 +93,7 @@ namespace AlibabaCloud
|
||||
std::string name_;
|
||||
std::map<std::string, std::string> parameters_;
|
||||
bool enableParameter_;
|
||||
std::string username_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user