Add ImageFamily paramters and apis, in Instance creation apis and Image query apis, and add DescribeImageFromFamily.
This commit is contained in:
@@ -242,6 +242,8 @@
|
||||
#include "model/DescribeHaVipsResult.h"
|
||||
#include "model/DescribeHpcClustersRequest.h"
|
||||
#include "model/DescribeHpcClustersResult.h"
|
||||
#include "model/DescribeImageFromFamilyRequest.h"
|
||||
#include "model/DescribeImageFromFamilyResult.h"
|
||||
#include "model/DescribeImageSharePermissionRequest.h"
|
||||
#include "model/DescribeImageSharePermissionResult.h"
|
||||
#include "model/DescribeImageSupportInstanceTypesRequest.h"
|
||||
@@ -510,6 +512,8 @@
|
||||
#include "model/ReInitDiskResult.h"
|
||||
#include "model/RebootInstanceRequest.h"
|
||||
#include "model/RebootInstanceResult.h"
|
||||
#include "model/RebootInstancesRequest.h"
|
||||
#include "model/RebootInstancesResult.h"
|
||||
#include "model/RecoverVirtualBorderRouterRequest.h"
|
||||
#include "model/RecoverVirtualBorderRouterResult.h"
|
||||
#include "model/RedeployDedicatedHostRequest.h"
|
||||
@@ -548,8 +552,12 @@
|
||||
#include "model/RunInstancesResult.h"
|
||||
#include "model/StartInstanceRequest.h"
|
||||
#include "model/StartInstanceResult.h"
|
||||
#include "model/StartInstancesRequest.h"
|
||||
#include "model/StartInstancesResult.h"
|
||||
#include "model/StopInstanceRequest.h"
|
||||
#include "model/StopInstanceResult.h"
|
||||
#include "model/StopInstancesRequest.h"
|
||||
#include "model/StopInstancesResult.h"
|
||||
#include "model/StopInvocationRequest.h"
|
||||
#include "model/StopInvocationResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
@@ -907,6 +915,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeHpcClustersResult> DescribeHpcClustersOutcome;
|
||||
typedef std::future<DescribeHpcClustersOutcome> DescribeHpcClustersOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeHpcClustersRequest&, const DescribeHpcClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHpcClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImageFromFamilyResult> DescribeImageFromFamilyOutcome;
|
||||
typedef std::future<DescribeImageFromFamilyOutcome> DescribeImageFromFamilyOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeImageFromFamilyRequest&, const DescribeImageFromFamilyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageFromFamilyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeImageSharePermissionResult> DescribeImageSharePermissionOutcome;
|
||||
typedef std::future<DescribeImageSharePermissionOutcome> DescribeImageSharePermissionOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeImageSharePermissionRequest&, const DescribeImageSharePermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageSharePermissionAsyncHandler;
|
||||
@@ -1309,6 +1320,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RebootInstanceResult> RebootInstanceOutcome;
|
||||
typedef std::future<RebootInstanceOutcome> RebootInstanceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RebootInstanceRequest&, const RebootInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RebootInstancesResult> RebootInstancesOutcome;
|
||||
typedef std::future<RebootInstancesOutcome> RebootInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RebootInstancesRequest&, const RebootInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecoverVirtualBorderRouterResult> RecoverVirtualBorderRouterOutcome;
|
||||
typedef std::future<RecoverVirtualBorderRouterOutcome> RecoverVirtualBorderRouterOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RecoverVirtualBorderRouterRequest&, const RecoverVirtualBorderRouterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecoverVirtualBorderRouterAsyncHandler;
|
||||
@@ -1366,9 +1380,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartInstanceResult> StartInstanceOutcome;
|
||||
typedef std::future<StartInstanceOutcome> StartInstanceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StartInstanceRequest&, const StartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartInstancesResult> StartInstancesOutcome;
|
||||
typedef std::future<StartInstancesOutcome> StartInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StartInstancesRequest&, const StartInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopInstanceResult> StopInstanceOutcome;
|
||||
typedef std::future<StopInstanceOutcome> StopInstanceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StopInstanceRequest&, const StopInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopInstancesResult> StopInstancesOutcome;
|
||||
typedef std::future<StopInstancesOutcome> StopInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StopInstancesRequest&, const StopInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopInvocationResult> StopInvocationOutcome;
|
||||
typedef std::future<StopInvocationOutcome> StopInvocationOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StopInvocationRequest&, const StopInvocationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopInvocationAsyncHandler;
|
||||
@@ -1731,6 +1751,9 @@ namespace AlibabaCloud
|
||||
DescribeHpcClustersOutcome describeHpcClusters(const Model::DescribeHpcClustersRequest &request)const;
|
||||
void describeHpcClustersAsync(const Model::DescribeHpcClustersRequest& request, const DescribeHpcClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeHpcClustersOutcomeCallable describeHpcClustersCallable(const Model::DescribeHpcClustersRequest& request) const;
|
||||
DescribeImageFromFamilyOutcome describeImageFromFamily(const Model::DescribeImageFromFamilyRequest &request)const;
|
||||
void describeImageFromFamilyAsync(const Model::DescribeImageFromFamilyRequest& request, const DescribeImageFromFamilyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImageFromFamilyOutcomeCallable describeImageFromFamilyCallable(const Model::DescribeImageFromFamilyRequest& request) const;
|
||||
DescribeImageSharePermissionOutcome describeImageSharePermission(const Model::DescribeImageSharePermissionRequest &request)const;
|
||||
void describeImageSharePermissionAsync(const Model::DescribeImageSharePermissionRequest& request, const DescribeImageSharePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeImageSharePermissionOutcomeCallable describeImageSharePermissionCallable(const Model::DescribeImageSharePermissionRequest& request) const;
|
||||
@@ -2133,6 +2156,9 @@ namespace AlibabaCloud
|
||||
RebootInstanceOutcome rebootInstance(const Model::RebootInstanceRequest &request)const;
|
||||
void rebootInstanceAsync(const Model::RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RebootInstanceOutcomeCallable rebootInstanceCallable(const Model::RebootInstanceRequest& request) const;
|
||||
RebootInstancesOutcome rebootInstances(const Model::RebootInstancesRequest &request)const;
|
||||
void rebootInstancesAsync(const Model::RebootInstancesRequest& request, const RebootInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RebootInstancesOutcomeCallable rebootInstancesCallable(const Model::RebootInstancesRequest& request) const;
|
||||
RecoverVirtualBorderRouterOutcome recoverVirtualBorderRouter(const Model::RecoverVirtualBorderRouterRequest &request)const;
|
||||
void recoverVirtualBorderRouterAsync(const Model::RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecoverVirtualBorderRouterOutcomeCallable recoverVirtualBorderRouterCallable(const Model::RecoverVirtualBorderRouterRequest& request) const;
|
||||
@@ -2190,9 +2216,15 @@ namespace AlibabaCloud
|
||||
StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const;
|
||||
void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const;
|
||||
StartInstancesOutcome startInstances(const Model::StartInstancesRequest &request)const;
|
||||
void startInstancesAsync(const Model::StartInstancesRequest& request, const StartInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartInstancesOutcomeCallable startInstancesCallable(const Model::StartInstancesRequest& request) const;
|
||||
StopInstanceOutcome stopInstance(const Model::StopInstanceRequest &request)const;
|
||||
void stopInstanceAsync(const Model::StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopInstanceOutcomeCallable stopInstanceCallable(const Model::StopInstanceRequest& request) const;
|
||||
StopInstancesOutcome stopInstances(const Model::StopInstancesRequest &request)const;
|
||||
void stopInstancesAsync(const Model::StopInstancesRequest& request, const StopInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopInstancesOutcomeCallable stopInstancesCallable(const Model::StopInstancesRequest& request) const;
|
||||
StopInvocationOutcome stopInvocation(const Model::StopInvocationRequest &request)const;
|
||||
void stopInvocationAsync(const Model::StopInvocationRequest& request, const StopInvocationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopInvocationOutcomeCallable stopInvocationCallable(const Model::StopInvocationRequest& request) const;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getEncryptAlgorithm()const;
|
||||
void setEncryptAlgorithm(const std::string& encryptAlgorithm);
|
||||
std::string getDestinationRegionId()const;
|
||||
void setDestinationRegionId(const std::string& destinationRegionId);
|
||||
std::string getRegionId()const;
|
||||
@@ -69,6 +71,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string imageId_;
|
||||
std::string encryptAlgorithm_;
|
||||
std::string destinationRegionId_;
|
||||
std::string regionId_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setSnapshotId(const std::string& snapshotId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getEncryptAlgorithm()const;
|
||||
void setEncryptAlgorithm(const std::string& encryptAlgorithm);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getDiskName()const;
|
||||
@@ -96,6 +98,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string snapshotId_;
|
||||
std::string clientToken_;
|
||||
std::string encryptAlgorithm_;
|
||||
std::string description_;
|
||||
std::string diskName_;
|
||||
std::string resourceGroupId_;
|
||||
|
||||
@@ -78,6 +78,8 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getImageFamily()const;
|
||||
void setImageFamily(const std::string& imageFamily);
|
||||
std::string getImageVersion()const;
|
||||
void setImageVersion(const std::string& imageVersion);
|
||||
|
||||
@@ -97,6 +99,7 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string instanceId_;
|
||||
std::string imageFamily_;
|
||||
std::string imageVersion_;
|
||||
|
||||
};
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace AlibabaCloud
|
||||
int size;
|
||||
bool encrypted;
|
||||
std::string performanceLevel;
|
||||
std::string encryptAlgorithm;
|
||||
std::string description;
|
||||
std::string category;
|
||||
std::string kMSKeyId;
|
||||
@@ -178,6 +179,8 @@ namespace AlibabaCloud
|
||||
void setStorageSetId(const std::string& storageSetId);
|
||||
int getSystemDiskSize()const;
|
||||
void setSystemDiskSize(int systemDiskSize);
|
||||
std::string getImageFamily()const;
|
||||
void setImageFamily(const std::string& imageFamily);
|
||||
std::string getSystemDiskDescription()const;
|
||||
void setSystemDiskDescription(const std::string& systemDiskDescription);
|
||||
|
||||
@@ -241,6 +244,7 @@ namespace AlibabaCloud
|
||||
std::vector<DataDisk> dataDisk_;
|
||||
std::string storageSetId_;
|
||||
int systemDiskSize_;
|
||||
std::string imageFamily_;
|
||||
std::string systemDiskDescription_;
|
||||
|
||||
};
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string instanceChargeType;
|
||||
std::string expiredTime;
|
||||
std::string value;
|
||||
std::string diskCategory;
|
||||
int count;
|
||||
std::string instanceType;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_DESCRIBEIMAGEFROMFAMILYREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_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 DescribeImageFromFamilyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeImageFromFamilyRequest();
|
||||
~DescribeImageFromFamilyRequest();
|
||||
|
||||
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);
|
||||
std::string getImageFamily()const;
|
||||
void setImageFamily(const std::string& imageFamily);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string imageFamily_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_H_
|
||||
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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_DESCRIBEIMAGEFROMFAMILYRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYRESULT_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 DescribeImageFromFamilyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Image
|
||||
{
|
||||
struct DiskDeviceMapping
|
||||
{
|
||||
std::string snapshotId;
|
||||
std::string type;
|
||||
std::string format;
|
||||
std::string size;
|
||||
std::string device;
|
||||
std::string importOSSBucket;
|
||||
std::string importOSSObject;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
std::string tagKey;
|
||||
std::string tagValue;
|
||||
};
|
||||
std::string imageOwnerAlias;
|
||||
std::string status;
|
||||
std::string progress;
|
||||
std::string usage;
|
||||
std::string description;
|
||||
std::string isSelfShared;
|
||||
std::string architecture;
|
||||
std::string platform;
|
||||
std::string productCode;
|
||||
int size;
|
||||
bool isSubscribed;
|
||||
bool isCopied;
|
||||
std::string imageFamily;
|
||||
std::string oSName;
|
||||
bool isSupportIoOptimized;
|
||||
bool isSupportCloudinit;
|
||||
std::string imageName;
|
||||
std::vector<DiskDeviceMapping> diskDeviceMappings;
|
||||
std::string imageVersion;
|
||||
std::string oSType;
|
||||
std::string imageId;
|
||||
std::string creationTime;
|
||||
std::vector<Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
DescribeImageFromFamilyResult();
|
||||
explicit DescribeImageFromFamilyResult(const std::string &payload);
|
||||
~DescribeImageFromFamilyResult();
|
||||
Image getImage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Image image_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYRESULT_H_
|
||||
@@ -92,6 +92,8 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<Filter> getFilter()const;
|
||||
void setFilter(const std::vector<Filter>& filter);
|
||||
std::string getImageFamily()const;
|
||||
void setImageFamily(const std::string& imageFamily);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
@@ -119,6 +121,7 @@ namespace AlibabaCloud
|
||||
std::string oSType_;
|
||||
long ownerId_;
|
||||
std::vector<Filter> filter_;
|
||||
std::string imageFamily_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
|
||||
@@ -52,29 +52,30 @@ namespace AlibabaCloud
|
||||
std::string tagValue;
|
||||
};
|
||||
std::string imageOwnerAlias;
|
||||
std::string description;
|
||||
std::string isSelfShared;
|
||||
std::string platform;
|
||||
std::string resourceGroupId;
|
||||
int size;
|
||||
bool isSubscribed;
|
||||
std::string oSName;
|
||||
std::string imageId;
|
||||
std::vector<Image::Tag> tags;
|
||||
std::string oSNameEn;
|
||||
std::string status;
|
||||
std::string progress;
|
||||
std::string usage;
|
||||
std::string description;
|
||||
std::string isSelfShared;
|
||||
std::string architecture;
|
||||
std::string platform;
|
||||
std::string resourceGroupId;
|
||||
std::string productCode;
|
||||
int size;
|
||||
bool isSubscribed;
|
||||
bool isCopied;
|
||||
std::string oSName;
|
||||
std::string imageFamily;
|
||||
bool isSupportIoOptimized;
|
||||
bool isSupportCloudinit;
|
||||
std::string imageName;
|
||||
std::vector<Image::DiskDeviceMapping> diskDeviceMappings;
|
||||
std::string imageVersion;
|
||||
std::string oSType;
|
||||
std::string imageId;
|
||||
std::string creationTime;
|
||||
std::vector<Image::Tag> tags;
|
||||
std::string oSNameEn;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setClusterId(const std::string& clusterId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<std::string> getInstanceId()const;
|
||||
void setInstanceId(const std::vector<std::string>& instanceId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
|
||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
std::string clusterId_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
std::string zoneId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -76,6 +76,7 @@ namespace AlibabaCloud
|
||||
std::vector<NetworkInterfaceSet::Ipv6Set> ipv6Sets;
|
||||
int queueNumber;
|
||||
std::string vpcId;
|
||||
std::string ownerId;
|
||||
AssociatedPublicIp associatedPublicIp;
|
||||
std::string creationTime;
|
||||
std::vector<NetworkInterfaceSet::Tag> tags;
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace AlibabaCloud
|
||||
std::string sourceDiskSize;
|
||||
std::string creationTime;
|
||||
std::string lastModifiedTime;
|
||||
std::string snapshotType;
|
||||
std::string sourceDiskType;
|
||||
int remainTime;
|
||||
std::vector<Snapshot::Tag> tags;
|
||||
|
||||
@@ -30,6 +30,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT ImportKeyPairRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ImportKeyPairRequest();
|
||||
@@ -39,8 +45,12 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getKeyPairName()const;
|
||||
void setKeyPairName(const std::string& keyPairName);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getPublicKeyBody()const;
|
||||
@@ -51,7 +61,9 @@ namespace AlibabaCloud
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string keyPairName_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string publicKeyBody_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -61,6 +63,7 @@ namespace AlibabaCloud
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
69
ecs/include/alibabacloud/ecs/model/RebootInstancesRequest.h
Normal file
69
ecs/include/alibabacloud/ecs/model/RebootInstancesRequest.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_REBOOTINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_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 RebootInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RebootInstancesRequest();
|
||||
~RebootInstancesRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getDryRun()const;
|
||||
void setDryRun(bool dryRun);
|
||||
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);
|
||||
bool getForceReboot()const;
|
||||
void setForceReboot(bool forceReboot);
|
||||
std::vector<std::string> getInstanceId()const;
|
||||
void setInstanceId(const std::vector<std::string>& instanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
bool forceReboot_;
|
||||
std::vector<std::string> instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_H_
|
||||
49
ecs/include/alibabacloud/ecs/model/RebootInstancesResult.h
Normal file
49
ecs/include/alibabacloud/ecs/model/RebootInstancesResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_REBOOTINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESRESULT_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 RebootInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RebootInstancesResult();
|
||||
explicit RebootInstancesResult(const std::string &payload);
|
||||
~RebootInstancesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESRESULT_H_
|
||||
@@ -58,6 +58,7 @@ namespace AlibabaCloud
|
||||
bool deleteWithInstance;
|
||||
std::string performanceLevel;
|
||||
std::string autoSnapshotPolicyId;
|
||||
std::string encryptAlgorithm;
|
||||
};
|
||||
|
||||
public:
|
||||
@@ -202,6 +203,8 @@ namespace AlibabaCloud
|
||||
void setStorageSetId(const std::string& storageSetId);
|
||||
std::string getSystemDiskSize()const;
|
||||
void setSystemDiskSize(const std::string& systemDiskSize);
|
||||
std::string getImageFamily()const;
|
||||
void setImageFamily(const std::string& imageFamily);
|
||||
std::string getSystemDiskDescription()const;
|
||||
void setSystemDiskDescription(const std::string& systemDiskDescription);
|
||||
|
||||
@@ -275,6 +278,7 @@ namespace AlibabaCloud
|
||||
long launchTemplateVersion_;
|
||||
std::string storageSetId_;
|
||||
std::string systemDiskSize_;
|
||||
std::string imageFamily_;
|
||||
std::string systemDiskDescription_;
|
||||
|
||||
};
|
||||
|
||||
66
ecs/include/alibabacloud/ecs/model/StartInstancesRequest.h
Normal file
66
ecs/include/alibabacloud/ecs/model/StartInstancesRequest.h
Normal 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_STARTINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_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 StartInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartInstancesRequest();
|
||||
~StartInstancesRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getDryRun()const;
|
||||
void setDryRun(bool dryRun);
|
||||
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);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_H_
|
||||
49
ecs/include/alibabacloud/ecs/model/StartInstancesResult.h
Normal file
49
ecs/include/alibabacloud/ecs/model/StartInstancesResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_STARTINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCESRESULT_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 StartInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StartInstancesResult();
|
||||
explicit StartInstancesResult(const std::string &payload);
|
||||
~StartInstancesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCESRESULT_H_
|
||||
72
ecs/include/alibabacloud/ecs/model/StopInstancesRequest.h
Normal file
72
ecs/include/alibabacloud/ecs/model/StopInstancesRequest.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_STOPINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_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 StopInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopInstancesRequest();
|
||||
~StopInstancesRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getStoppedMode()const;
|
||||
void setStoppedMode(const std::string& stoppedMode);
|
||||
bool getForceStop()const;
|
||||
void setForceStop(bool forceStop);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getDryRun()const;
|
||||
void setDryRun(bool dryRun);
|
||||
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);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string stoppedMode_;
|
||||
bool forceStop_;
|
||||
std::string regionId_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_H_
|
||||
49
ecs/include/alibabacloud/ecs/model/StopInstancesResult.h
Normal file
49
ecs/include/alibabacloud/ecs/model/StopInstancesResult.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_STOPINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCESRESULT_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 StopInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopInstancesResult();
|
||||
explicit StopInstancesResult(const std::string &payload);
|
||||
~StopInstancesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCESRESULT_H_
|
||||
Reference in New Issue
Block a user