Support create image with boot mode.
This commit is contained in:
@@ -656,6 +656,8 @@
|
||||
#include "model/RenewDedicatedHostsResult.h"
|
||||
#include "model/RenewInstanceRequest.h"
|
||||
#include "model/RenewInstanceResult.h"
|
||||
#include "model/RenewReservedInstancesRequest.h"
|
||||
#include "model/RenewReservedInstancesResult.h"
|
||||
#include "model/ReplaceSystemDiskRequest.h"
|
||||
#include "model/ReplaceSystemDiskResult.h"
|
||||
#include "model/ReportInstancesStatusRequest.h"
|
||||
@@ -1668,6 +1670,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RenewInstanceResult> RenewInstanceOutcome;
|
||||
typedef std::future<RenewInstanceOutcome> RenewInstanceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RenewInstanceRequest&, const RenewInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewReservedInstancesResult> RenewReservedInstancesOutcome;
|
||||
typedef std::future<RenewReservedInstancesOutcome> RenewReservedInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RenewReservedInstancesRequest&, const RenewReservedInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewReservedInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReplaceSystemDiskResult> ReplaceSystemDiskOutcome;
|
||||
typedef std::future<ReplaceSystemDiskOutcome> ReplaceSystemDiskOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ReplaceSystemDiskRequest&, const ReplaceSystemDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReplaceSystemDiskAsyncHandler;
|
||||
@@ -2702,6 +2707,9 @@ namespace AlibabaCloud
|
||||
RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const;
|
||||
void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const;
|
||||
RenewReservedInstancesOutcome renewReservedInstances(const Model::RenewReservedInstancesRequest &request)const;
|
||||
void renewReservedInstancesAsync(const Model::RenewReservedInstancesRequest& request, const RenewReservedInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewReservedInstancesOutcomeCallable renewReservedInstancesCallable(const Model::RenewReservedInstancesRequest& request) const;
|
||||
ReplaceSystemDiskOutcome replaceSystemDisk(const Model::ReplaceSystemDiskRequest &request)const;
|
||||
void replaceSystemDiskAsync(const Model::ReplaceSystemDiskRequest& request, const ReplaceSystemDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReplaceSystemDiskOutcomeCallable replaceSystemDiskCallable(const Model::ReplaceSystemDiskRequest& request) const;
|
||||
|
||||
@@ -54,6 +54,8 @@ public:
|
||||
void setPlatform(const std::string &platform);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getBootMode() const;
|
||||
void setBootMode(const std::string &bootMode);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getImageName() const;
|
||||
@@ -83,6 +85,7 @@ private:
|
||||
std::string description_;
|
||||
std::string platform_;
|
||||
std::string resourceGroupId_;
|
||||
std::string bootMode_;
|
||||
std::string regionId_;
|
||||
std::string imageName_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
@@ -28,10 +28,6 @@ namespace Ecs {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ECS_EXPORT DeleteImageComponentRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct TemplateTag {
|
||||
std::string key;
|
||||
std::string value;
|
||||
};
|
||||
DeleteImageComponentRequest();
|
||||
~DeleteImageComponentRequest();
|
||||
long getResourceOwnerId() const;
|
||||
@@ -40,8 +36,6 @@ public:
|
||||
void setImageComponentId(const std::string &imageComponentId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::vector<TemplateTag> getTemplateTag() const;
|
||||
void setTemplateTag(const std::vector<TemplateTag> &templateTag);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
@@ -53,7 +47,6 @@ private:
|
||||
long resourceOwnerId_;
|
||||
std::string imageComponentId_;
|
||||
std::string regionId_;
|
||||
std::vector<TemplateTag> templateTag_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -28,10 +28,6 @@ namespace Ecs {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_ECS_EXPORT DeleteImagePipelineRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct TemplateTag {
|
||||
std::string key;
|
||||
std::string value;
|
||||
};
|
||||
DeleteImagePipelineRequest();
|
||||
~DeleteImagePipelineRequest();
|
||||
std::string getImagePipelineId() const;
|
||||
@@ -40,8 +36,6 @@ public:
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::vector<TemplateTag> getTemplateTag() const;
|
||||
void setTemplateTag(const std::vector<TemplateTag> &templateTag);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
@@ -53,7 +47,6 @@ private:
|
||||
std::string imagePipelineId_;
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::vector<TemplateTag> templateTag_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -74,6 +74,7 @@ namespace AlibabaCloud
|
||||
std::string platform;
|
||||
int size;
|
||||
bool isSubscribed;
|
||||
std::string bootMode;
|
||||
std::string oSName;
|
||||
bool isPublic;
|
||||
std::string imageId;
|
||||
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
std::string invokeRecordStatus;
|
||||
std::string finishedTime;
|
||||
std::string username;
|
||||
std::string containerId;
|
||||
std::string output;
|
||||
std::string commandId;
|
||||
std::string errorCode;
|
||||
|
||||
@@ -69,6 +69,7 @@ namespace AlibabaCloud
|
||||
std::string invokeStatus;
|
||||
std::string commandType;
|
||||
std::string username;
|
||||
std::string containerId;
|
||||
std::string creationTime;
|
||||
std::string frequency;
|
||||
std::string commandId;
|
||||
|
||||
@@ -52,6 +52,8 @@ public:
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<std::string> getInstanceId() const;
|
||||
void setInstanceId(const std::vector<std::string> &instanceId);
|
||||
std::string getContainerId() const;
|
||||
void setContainerId(const std::string &containerId);
|
||||
std::map<std::string, std::string> getParameters() const;
|
||||
void setParameters(std::map<std::string, std::string> parameters);
|
||||
std::string getUsername() const;
|
||||
@@ -69,6 +71,7 @@ private:
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
std::string containerId_;
|
||||
std::map<std::string, std::string> parameters_;
|
||||
std::string username_;
|
||||
};
|
||||
|
||||
@@ -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_RENEWRESERVEDINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_RENEWRESERVEDINSTANCESREQUEST_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 RenewReservedInstancesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RenewReservedInstancesRequest();
|
||||
~RenewReservedInstancesRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPeriod() const;
|
||||
void setPeriod(int period);
|
||||
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 getPeriodUnit() const;
|
||||
void setPeriodUnit(const std::string &periodUnit);
|
||||
std::vector<std::string> getReservedInstanceId() const;
|
||||
void setReservedInstanceId(const std::vector<std::string> &reservedInstanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
int period_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string periodUnit_;
|
||||
std::vector<std::string> reservedInstanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Ecs
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_RENEWRESERVEDINSTANCESREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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_RENEWRESERVEDINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_RENEWRESERVEDINSTANCESRESULT_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 RenewReservedInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RenewReservedInstancesResult();
|
||||
explicit RenewReservedInstancesResult(const std::string &payload);
|
||||
~RenewReservedInstancesResult();
|
||||
std::vector<std::string> getReservedInstanceIdSets()const;
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> reservedInstanceIdSets_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_RENEWRESERVEDINSTANCESRESULT_H_
|
||||
@@ -72,6 +72,8 @@ public:
|
||||
void setInstanceId(const std::vector<std::string> &instanceId);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
std::string getContainerId() const;
|
||||
void setContainerId(const std::string &containerId);
|
||||
std::map<std::string, std::string> getParameters() const;
|
||||
void setParameters(std::map<std::string, std::string> parameters);
|
||||
bool getEnableParameter() const;
|
||||
@@ -99,6 +101,7 @@ private:
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
std::string name_;
|
||||
std::string containerId_;
|
||||
std::map<std::string, std::string> parameters_;
|
||||
bool enableParameter_;
|
||||
std::string username_;
|
||||
|
||||
Reference in New Issue
Block a user