Add GPUMemorySize to DescribeInstanceTypes api.

This commit is contained in:
sdk-team
2022-10-14 11:36:37 +00:00
parent b0e8e978fc
commit 894262087a
26 changed files with 472 additions and 1 deletions

View File

@@ -500,6 +500,8 @@
#include "model/JoinSecurityGroupResult.h"
#include "model/LeaveSecurityGroupRequest.h"
#include "model/LeaveSecurityGroupResult.h"
#include "model/ListPluginStatusRequest.h"
#include "model/ListPluginStatusResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/ModifyAutoProvisioningGroupRequest.h"
@@ -1436,6 +1438,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::LeaveSecurityGroupResult> LeaveSecurityGroupOutcome;
typedef std::future<LeaveSecurityGroupOutcome> LeaveSecurityGroupOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::LeaveSecurityGroupRequest&, const LeaveSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LeaveSecurityGroupAsyncHandler;
typedef Outcome<Error, Model::ListPluginStatusResult> ListPluginStatusOutcome;
typedef std::future<ListPluginStatusOutcome> ListPluginStatusOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ListPluginStatusRequest&, const ListPluginStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPluginStatusAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
@@ -2473,6 +2478,9 @@ namespace AlibabaCloud
LeaveSecurityGroupOutcome leaveSecurityGroup(const Model::LeaveSecurityGroupRequest &request)const;
void leaveSecurityGroupAsync(const Model::LeaveSecurityGroupRequest& request, const LeaveSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LeaveSecurityGroupOutcomeCallable leaveSecurityGroupCallable(const Model::LeaveSecurityGroupRequest& request) const;
ListPluginStatusOutcome listPluginStatus(const Model::ListPluginStatusRequest &request)const;
void listPluginStatusAsync(const Model::ListPluginStatusRequest& request, const ListPluginStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPluginStatusOutcomeCallable listPluginStatusCallable(const Model::ListPluginStatusRequest& request) const;
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;

View File

@@ -179,6 +179,8 @@ public:
void setLaunchConfigurationIoOptimized(const std::string &launchConfigurationIoOptimized);
std::string getPayAsYouGoTargetCapacity() const;
void setPayAsYouGoTargetCapacity(const std::string &payAsYouGoTargetCapacity);
bool getHibernationOptionsConfigured() const;
void setHibernationOptionsConfigured(bool hibernationOptionsConfigured);
std::string getTotalTargetCapacity() const;
void setTotalTargetCapacity(const std::string &totalTargetCapacity);
std::string getSpotTargetCapacity() const;
@@ -244,6 +246,7 @@ private:
std::string launchTemplateVersion_;
std::string launchConfigurationIoOptimized_;
std::string payAsYouGoTargetCapacity_;
bool hibernationOptionsConfigured_;
std::string totalTargetCapacity_;
std::string spotTargetCapacity_;
std::string validFrom_;

View File

@@ -57,9 +57,11 @@ namespace AlibabaCloud
std::string startTimeType;
std::string privatePoolOptionsMatchCriteria;
std::string timeSlot;
std::string savingPlanId;
std::vector<CapacityReservationItem::AllocatedResource> allocatedResources;
std::string privatePoolOptionsId;
std::string endTimeType;
std::string reservedInstanceId;
std::string regionId;
std::vector<CapacityReservationItem::Tag> tags;
};

View File

@@ -56,6 +56,7 @@ namespace AlibabaCloud
float memorySize;
int maximumQueueNumberPerEni;
int eniIpv6AddressQuantity;
float gPUMemorySize;
int eniTotalQuantity;
int cpuCoreCount;
int initialCredit;

View File

@@ -52,6 +52,7 @@ namespace AlibabaCloud
std::string finishedTime;
std::string username;
std::string containerId;
std::string containerName;
std::string output;
std::string commandId;
std::string errorCode;

View File

@@ -70,6 +70,7 @@ namespace AlibabaCloud
std::string commandType;
std::string username;
std::string containerId;
std::string containerName;
std::string creationTime;
std::string frequency;
std::string commandId;

View File

@@ -28,6 +28,11 @@ namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DescribePriceRequest : public RpcServiceRequest {
public:
struct DataDisk {
long size;
std::string performanceLevel;
std::string category;
};
DescribePriceRequest();
~DescribePriceRequest();
int getDataDisk3Size() const;
@@ -108,6 +113,8 @@ public:
void setSpotDuration(int spotDuration);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::vector<DataDisk> getDataDisk() const;
void setDataDisk(const std::vector<DataDisk> &dataDisk);
std::string getDataDisk1Category() const;
void setDataDisk1Category(const std::string &dataDisk1Category);
std::string getDataDisk2PerformanceLevel() const;
@@ -157,6 +164,7 @@ private:
int dataDisk2Size_;
int spotDuration_;
std::string resourceType_;
std::vector<DataDisk> dataDisk_;
std::string dataDisk1Category_;
std::string dataDisk2PerformanceLevel_;
int systemDiskSize_;

View File

@@ -54,6 +54,8 @@ public:
void setOwnerId(long ownerId);
std::string getDestinationResource() const;
void setDestinationResource(const std::string &destinationResource);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
private:
long resourceOwnerId_;
@@ -68,6 +70,7 @@ private:
std::string operationType_;
long ownerId_;
std::string destinationResource_;
std::string zoneId_;
};
} // namespace Model
} // namespace Ecs

View File

@@ -32,6 +32,8 @@ public:
~InvokeCommandRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getContainerName() const;
void setContainerName(const std::string &containerName);
std::string getCommandId() const;
void setCommandId(const std::string &commandId);
std::string getFrequency() const;
@@ -61,6 +63,7 @@ public:
private:
long resourceOwnerId_;
std::string containerName_;
std::string commandId_;
std::string frequency_;
std::string regionId_;

View File

@@ -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_ECS_MODEL_LISTPLUGINSTATUSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_LISTPLUGINSTATUSREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT ListPluginStatusRequest : public RpcServiceRequest {
public:
ListPluginStatusRequest();
~ListPluginStatusRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
long getPageNumber() const;
void setPageNumber(long pageNumber);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
long getPageSize() const;
void setPageSize(long pageSize);
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);
private:
long resourceOwnerId_;
long pageNumber_;
std::string regionId_;
long pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<std::string> instanceId_;
std::string name_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_LISTPLUGINSTATUSREQUEST_H_

View 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_ECS_MODEL_LISTPLUGINSTATUSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_LISTPLUGINSTATUSRESULT_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 ListPluginStatusResult : public ServiceResult
{
public:
struct InstancePluginStatus
{
struct PluginStatus
{
std::string pluginStatus;
std::string pluginVersion;
std::string pluginName;
std::string firstHeartbeatTime;
std::string lastHeartbeatTime;
};
std::string instanceId;
std::vector<InstancePluginStatus::PluginStatus> pluginStatusSet;
};
ListPluginStatusResult();
explicit ListPluginStatusResult(const std::string &payload);
~ListPluginStatusResult();
std::vector<InstancePluginStatus> getInstancePluginStatusSet()const;
long getTotalCount()const;
long getPageSize()const;
long getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<InstancePluginStatus> instancePluginStatusSet_;
long totalCount_;
long pageSize_;
long pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_LISTPLUGINSTATUSRESULT_H_

View File

@@ -36,6 +36,8 @@ public:
~RunCommandRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getContainerName() const;
void setContainerName(const std::string &containerName);
std::string getWorkingDir() const;
void setWorkingDir(const std::string &workingDir);
std::string getDescription() const;
@@ -83,6 +85,7 @@ public:
private:
long resourceOwnerId_;
std::string containerName_;
std::string workingDir_;
std::string description_;
std::string type_;