Supported sync create eni and assign private ip.

This commit is contained in:
sdk-team
2020-06-17 18:04:12 +08:00
parent 2df6079b2d
commit 57416bd581
29 changed files with 566 additions and 1 deletions

View File

@@ -224,6 +224,8 @@
#include "model/DescribeDedicatedHostsResult.h"
#include "model/DescribeDemandsRequest.h"
#include "model/DescribeDemandsResult.h"
#include "model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.h"
#include "model/DescribeDeploymentSetSupportedInstanceTypeFamilyResult.h"
#include "model/DescribeDeploymentSetsRequest.h"
#include "model/DescribeDeploymentSetsResult.h"
#include "model/DescribeDiskMonitorDataRequest.h"
@@ -902,6 +904,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDemandsResult> DescribeDemandsOutcome;
typedef std::future<DescribeDemandsOutcome> DescribeDemandsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDemandsRequest&, const DescribeDemandsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDemandsAsyncHandler;
typedef Outcome<Error, Model::DescribeDeploymentSetSupportedInstanceTypeFamilyResult> DescribeDeploymentSetSupportedInstanceTypeFamilyOutcome;
typedef std::future<DescribeDeploymentSetSupportedInstanceTypeFamilyOutcome> DescribeDeploymentSetSupportedInstanceTypeFamilyOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest&, const DescribeDeploymentSetSupportedInstanceTypeFamilyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeploymentSetSupportedInstanceTypeFamilyAsyncHandler;
typedef Outcome<Error, Model::DescribeDeploymentSetsResult> DescribeDeploymentSetsOutcome;
typedef std::future<DescribeDeploymentSetsOutcome> DescribeDeploymentSetsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDeploymentSetsRequest&, const DescribeDeploymentSetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeploymentSetsAsyncHandler;
@@ -1759,6 +1764,9 @@ namespace AlibabaCloud
DescribeDemandsOutcome describeDemands(const Model::DescribeDemandsRequest &request)const;
void describeDemandsAsync(const Model::DescribeDemandsRequest& request, const DescribeDemandsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDemandsOutcomeCallable describeDemandsCallable(const Model::DescribeDemandsRequest& request) const;
DescribeDeploymentSetSupportedInstanceTypeFamilyOutcome describeDeploymentSetSupportedInstanceTypeFamily(const Model::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest &request)const;
void describeDeploymentSetSupportedInstanceTypeFamilyAsync(const Model::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest& request, const DescribeDeploymentSetSupportedInstanceTypeFamilyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDeploymentSetSupportedInstanceTypeFamilyOutcomeCallable describeDeploymentSetSupportedInstanceTypeFamilyCallable(const Model::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest& request) const;
DescribeDeploymentSetsOutcome describeDeploymentSets(const Model::DescribeDeploymentSetsRequest &request)const;
void describeDeploymentSetsAsync(const Model::DescribeDeploymentSetsRequest& request, const DescribeDeploymentSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDeploymentSetsOutcomeCallable describeDeploymentSetsCallable(const Model::DescribeDeploymentSetsRequest& request) const;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
int getSecondaryPrivateIpAddressCount()const;
void setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount);
std::string getRegionId()const;
@@ -54,6 +56,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string clientToken_;
int secondaryPrivateIpAddressCount_;
std::string regionId_;
std::string resourceOwnerAccount_;

View File

@@ -32,15 +32,22 @@ namespace AlibabaCloud
class ALIBABACLOUD_ECS_EXPORT AssignPrivateIpAddressesResult : public ServiceResult
{
public:
struct AssignedPrivateIpAddressesSet
{
std::vector<std::string> privateIpSet;
std::string networkInterfaceId;
};
AssignPrivateIpAddressesResult();
explicit AssignPrivateIpAddressesResult(const std::string &payload);
~AssignPrivateIpAddressesResult();
AssignedPrivateIpAddressesSet getAssignedPrivateIpAddressesSet()const;
protected:
void parse(const std::string &payload);
private:
AssignedPrivateIpAddressesSet assignedPrivateIpAddressesSet_;
};
}

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setDescription(const std::string& description);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
long getGroupCount()const;
void setGroupCount(long groupCount);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -65,6 +67,7 @@ namespace AlibabaCloud
std::string clientToken_;
std::string description_;
std::string regionId_;
long groupCount_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string deploymentSetName_;

View File

@@ -81,6 +81,8 @@ namespace AlibabaCloud
void setHostName(const std::string& hostName);
std::string getPassword()const;
void setPassword(const std::string& password);
int getDeploymentSetGroupNo()const;
void setDeploymentSetGroupNo(int deploymentSetGroupNo);
int getStorageSetPartitionNumber()const;
void setStorageSetPartitionNumber(int storageSetPartitionNumber);
std::vector<Tag> getTag()const;
@@ -201,6 +203,7 @@ namespace AlibabaCloud
std::string resourceGroupId_;
std::string hostName_;
std::string password_;
int deploymentSetGroupNo_;
int storageSetPartitionNumber_;
std::vector<Tag> tag_;
int autoRenewPeriod_;

View File

@@ -32,17 +32,59 @@ namespace AlibabaCloud
class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceResult : public ServiceResult
{
public:
struct PrivateIpSet
{
std::string privateIpAddress;
bool primary;
};
struct Tag
{
std::string tagKey;
std::string tagValue;
};
CreateNetworkInterfaceResult();
explicit CreateNetworkInterfaceResult(const std::string &payload);
~CreateNetworkInterfaceResult();
std::string getStatus()const;
std::string getPrivateIpAddress()const;
std::string getDescription()const;
std::string getZoneId()const;
std::string getResourceGroupId()const;
bool getServiceManaged()const;
std::string getVSwitchId()const;
std::string getNetworkInterfaceName()const;
std::string getNetworkInterfaceId()const;
std::string getMacAddress()const;
std::vector<std::string> getSecurityGroupIds()const;
long getServiceID()const;
std::string getType()const;
std::string getVpcId()const;
std::string getOwnerId()const;
std::vector<Tag> getTags()const;
std::vector<PrivateIpSet> getPrivateIpSets()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
std::string privateIpAddress_;
std::string description_;
std::string zoneId_;
std::string resourceGroupId_;
bool serviceManaged_;
std::string vSwitchId_;
std::string networkInterfaceName_;
std::string networkInterfaceId_;
std::string macAddress_;
std::vector<std::string> securityGroupIds_;
long serviceID_;
std::string type_;
std::string vpcId_;
std::string ownerId_;
std::vector<Tag> tags_;
std::vector<PrivateIpSet> privateIpSets_;
};
}

View 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_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_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 DescribeDeploymentSetSupportedInstanceTypeFamilyRequest : public RpcServiceRequest
{
public:
DescribeDeploymentSetSupportedInstanceTypeFamilyRequest();
~DescribeDeploymentSetSupportedInstanceTypeFamilyRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
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);
private:
long resourceOwnerId_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYRESULT_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 DescribeDeploymentSetSupportedInstanceTypeFamilyResult : public ServiceResult
{
public:
DescribeDeploymentSetSupportedInstanceTypeFamilyResult();
explicit DescribeDeploymentSetSupportedInstanceTypeFamilyResult(const std::string &payload);
~DescribeDeploymentSetSupportedInstanceTypeFamilyResult();
std::string getInstanceTypeFamilies()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceTypeFamilies_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYRESULT_H_

View File

@@ -37,6 +37,7 @@ namespace AlibabaCloud
std::string deploymentSetId;
std::string deploymentSetDescription;
int instanceAmount;
int groupCount;
std::string creationTime;
std::string strategy;
std::string deploymentSetName;

View File

@@ -84,6 +84,7 @@ namespace AlibabaCloud
bool portable;
std::string type;
int mountInstanceNum;
std::string serialNumber;
std::vector<Disk::MountInstance> mountInstances;
std::string creationTime;
std::string regionId;

View File

@@ -141,6 +141,7 @@ namespace AlibabaCloud
std::string zoneId;
std::string clusterId;
std::string hpcClusterId;
int deploymentSetGroupNo;
EcsCapacityReservationAttr ecsCapacityReservationAttr;
DedicatedHostAttribute dedicatedHostAttribute;
int gPUAmount;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getDeploymentSetGroupNo()const;
void setDeploymentSetGroupNo(int deploymentSetGroupNo);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::string getDeploymentSetId()const;
@@ -65,6 +67,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string regionId_;
int deploymentSetGroupNo_;
std::string instanceType_;
std::string deploymentSetId_;
std::string resourceOwnerAccount_;

View File

@@ -91,6 +91,8 @@ namespace AlibabaCloud
void setHostName(const std::string& hostName);
std::string getPassword()const;
void setPassword(const std::string& password);
int getDeploymentSetGroupNo()const;
void setDeploymentSetGroupNo(int deploymentSetGroupNo);
int getStorageSetPartitionNumber()const;
void setStorageSetPartitionNumber(int storageSetPartitionNumber);
std::vector<Tag> getTag()const;
@@ -228,6 +230,7 @@ namespace AlibabaCloud
std::string resourceGroupId_;
std::string hostName_;
std::string password_;
int deploymentSetGroupNo_;
int storageSetPartitionNumber_;
std::vector<Tag> tag_;
std::string systemDiskAutoSnapshotPolicyId_;