Supported ecsDemand CreateDemand, ModifyDemand, DeleteDemand API.
This commit is contained in:
@@ -82,6 +82,8 @@
|
||||
#include "model/CreateAutoSnapshotPolicyResult.h"
|
||||
#include "model/CreateCommandRequest.h"
|
||||
#include "model/CreateCommandResult.h"
|
||||
#include "model/CreateDemandRequest.h"
|
||||
#include "model/CreateDemandResult.h"
|
||||
#include "model/CreateDeploymentSetRequest.h"
|
||||
#include "model/CreateDeploymentSetResult.h"
|
||||
#include "model/CreateDiskRequest.h"
|
||||
@@ -138,6 +140,8 @@
|
||||
#include "model/DeleteBandwidthPackageResult.h"
|
||||
#include "model/DeleteCommandRequest.h"
|
||||
#include "model/DeleteCommandResult.h"
|
||||
#include "model/DeleteDemandRequest.h"
|
||||
#include "model/DeleteDemandResult.h"
|
||||
#include "model/DeleteDeploymentSetRequest.h"
|
||||
#include "model/DeleteDeploymentSetResult.h"
|
||||
#include "model/DeleteDiskRequest.h"
|
||||
@@ -414,6 +418,8 @@
|
||||
#include "model/ModifyDedicatedHostAutoReleaseTimeResult.h"
|
||||
#include "model/ModifyDedicatedHostAutoRenewAttributeRequest.h"
|
||||
#include "model/ModifyDedicatedHostAutoRenewAttributeResult.h"
|
||||
#include "model/ModifyDemandRequest.h"
|
||||
#include "model/ModifyDemandResult.h"
|
||||
#include "model/ModifyDeploymentSetAttributeRequest.h"
|
||||
#include "model/ModifyDeploymentSetAttributeResult.h"
|
||||
#include "model/ModifyDiskAttributeRequest.h"
|
||||
@@ -655,6 +661,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateCommandResult> CreateCommandOutcome;
|
||||
typedef std::future<CreateCommandOutcome> CreateCommandOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateCommandRequest&, const CreateCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCommandAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDemandResult> CreateDemandOutcome;
|
||||
typedef std::future<CreateDemandOutcome> CreateDemandOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateDemandRequest&, const CreateDemandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDemandAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDeploymentSetResult> CreateDeploymentSetOutcome;
|
||||
typedef std::future<CreateDeploymentSetOutcome> CreateDeploymentSetOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateDeploymentSetRequest&, const CreateDeploymentSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeploymentSetAsyncHandler;
|
||||
@@ -739,6 +748,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteCommandResult> DeleteCommandOutcome;
|
||||
typedef std::future<DeleteCommandOutcome> DeleteCommandOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteCommandRequest&, const DeleteCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCommandAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDemandResult> DeleteDemandOutcome;
|
||||
typedef std::future<DeleteDemandOutcome> DeleteDemandOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteDemandRequest&, const DeleteDemandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDemandAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDeploymentSetResult> DeleteDeploymentSetOutcome;
|
||||
typedef std::future<DeleteDeploymentSetOutcome> DeleteDeploymentSetOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteDeploymentSetRequest&, const DeleteDeploymentSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeploymentSetAsyncHandler;
|
||||
@@ -1153,6 +1165,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDedicatedHostAutoRenewAttributeResult> ModifyDedicatedHostAutoRenewAttributeOutcome;
|
||||
typedef std::future<ModifyDedicatedHostAutoRenewAttributeOutcome> ModifyDedicatedHostAutoRenewAttributeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyDedicatedHostAutoRenewAttributeRequest&, const ModifyDedicatedHostAutoRenewAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDedicatedHostAutoRenewAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDemandResult> ModifyDemandOutcome;
|
||||
typedef std::future<ModifyDemandOutcome> ModifyDemandOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyDemandRequest&, const ModifyDemandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDemandAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeploymentSetAttributeResult> ModifyDeploymentSetAttributeOutcome;
|
||||
typedef std::future<ModifyDeploymentSetAttributeOutcome> ModifyDeploymentSetAttributeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyDeploymentSetAttributeRequest&, const ModifyDeploymentSetAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeploymentSetAttributeAsyncHandler;
|
||||
@@ -1461,6 +1476,9 @@ namespace AlibabaCloud
|
||||
CreateCommandOutcome createCommand(const Model::CreateCommandRequest &request)const;
|
||||
void createCommandAsync(const Model::CreateCommandRequest& request, const CreateCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCommandOutcomeCallable createCommandCallable(const Model::CreateCommandRequest& request) const;
|
||||
CreateDemandOutcome createDemand(const Model::CreateDemandRequest &request)const;
|
||||
void createDemandAsync(const Model::CreateDemandRequest& request, const CreateDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDemandOutcomeCallable createDemandCallable(const Model::CreateDemandRequest& request) const;
|
||||
CreateDeploymentSetOutcome createDeploymentSet(const Model::CreateDeploymentSetRequest &request)const;
|
||||
void createDeploymentSetAsync(const Model::CreateDeploymentSetRequest& request, const CreateDeploymentSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDeploymentSetOutcomeCallable createDeploymentSetCallable(const Model::CreateDeploymentSetRequest& request) const;
|
||||
@@ -1545,6 +1563,9 @@ namespace AlibabaCloud
|
||||
DeleteCommandOutcome deleteCommand(const Model::DeleteCommandRequest &request)const;
|
||||
void deleteCommandAsync(const Model::DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCommandOutcomeCallable deleteCommandCallable(const Model::DeleteCommandRequest& request) const;
|
||||
DeleteDemandOutcome deleteDemand(const Model::DeleteDemandRequest &request)const;
|
||||
void deleteDemandAsync(const Model::DeleteDemandRequest& request, const DeleteDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDemandOutcomeCallable deleteDemandCallable(const Model::DeleteDemandRequest& request) const;
|
||||
DeleteDeploymentSetOutcome deleteDeploymentSet(const Model::DeleteDeploymentSetRequest &request)const;
|
||||
void deleteDeploymentSetAsync(const Model::DeleteDeploymentSetRequest& request, const DeleteDeploymentSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDeploymentSetOutcomeCallable deleteDeploymentSetCallable(const Model::DeleteDeploymentSetRequest& request) const;
|
||||
@@ -1959,6 +1980,9 @@ namespace AlibabaCloud
|
||||
ModifyDedicatedHostAutoRenewAttributeOutcome modifyDedicatedHostAutoRenewAttribute(const Model::ModifyDedicatedHostAutoRenewAttributeRequest &request)const;
|
||||
void modifyDedicatedHostAutoRenewAttributeAsync(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request, const ModifyDedicatedHostAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDedicatedHostAutoRenewAttributeOutcomeCallable modifyDedicatedHostAutoRenewAttributeCallable(const Model::ModifyDedicatedHostAutoRenewAttributeRequest& request) const;
|
||||
ModifyDemandOutcome modifyDemand(const Model::ModifyDemandRequest &request)const;
|
||||
void modifyDemandAsync(const Model::ModifyDemandRequest& request, const ModifyDemandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDemandOutcomeCallable modifyDemandCallable(const Model::ModifyDemandRequest& request) const;
|
||||
ModifyDeploymentSetAttributeOutcome modifyDeploymentSetAttribute(const Model::ModifyDeploymentSetAttributeRequest &request)const;
|
||||
void modifyDeploymentSetAttributeAsync(const Model::ModifyDeploymentSetAttributeRequest& request, const ModifyDeploymentSetAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeploymentSetAttributeOutcomeCallable modifyDeploymentSetAttributeCallable(const Model::ModifyDeploymentSetAttributeRequest& request) const;
|
||||
|
||||
93
ecs/include/alibabacloud/ecs/model/CreateDemandRequest.h
Normal file
93
ecs/include/alibabacloud/ecs/model/CreateDemandRequest.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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_CREATEDEMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_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 CreateDemandRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDemandRequest();
|
||||
~CreateDemandRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getDemandDescription()const;
|
||||
void setDemandDescription(const std::string& demandDescription);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
std::string getInstanceChargeType()const;
|
||||
void setInstanceChargeType(const std::string& instanceChargeType);
|
||||
std::string getDemandName()const;
|
||||
void setDemandName(const std::string& demandName);
|
||||
int getAmount()const;
|
||||
void setAmount(int amount);
|
||||
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);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string startTime_;
|
||||
std::string demandDescription_;
|
||||
std::string regionId_;
|
||||
std::string instanceType_;
|
||||
std::string instanceChargeType_;
|
||||
std::string demandName_;
|
||||
int amount_;
|
||||
int period_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string periodUnit_;
|
||||
std::string zoneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_
|
||||
51
ecs/include/alibabacloud/ecs/model/CreateDemandResult.h
Normal file
51
ecs/include/alibabacloud/ecs/model/CreateDemandResult.h
Normal 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_CREATEDEMANDRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_CREATEDEMANDRESULT_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 CreateDemandResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDemandResult();
|
||||
explicit CreateDemandResult(const std::string &payload);
|
||||
~CreateDemandResult();
|
||||
std::string getDemandId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string demandId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEMANDRESULT_H_
|
||||
69
ecs/include/alibabacloud/ecs/model/DeleteDemandRequest.h
Normal file
69
ecs/include/alibabacloud/ecs/model/DeleteDemandRequest.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_DELETEDEMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_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 DeleteDemandRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDemandRequest();
|
||||
~DeleteDemandRequest();
|
||||
|
||||
std::string getReason()const;
|
||||
void setReason(const std::string& reason);
|
||||
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& 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 getDemandId()const;
|
||||
void setDemandId(const std::string& demandId);
|
||||
|
||||
private:
|
||||
std::string reason_;
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string demandId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_
|
||||
49
ecs/include/alibabacloud/ecs/model/DeleteDemandResult.h
Normal file
49
ecs/include/alibabacloud/ecs/model/DeleteDemandResult.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_DELETEDEMANDRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DELETEDEMANDRESULT_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 DeleteDemandResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDemandResult();
|
||||
explicit DeleteDemandResult(const std::string &payload);
|
||||
~DeleteDemandResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEMANDRESULT_H_
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct InstanceCloudAssistantStatus
|
||||
{
|
||||
std::string cloudAssistantVersion;
|
||||
std::string instanceId;
|
||||
std::string cloudAssistantStatus;
|
||||
};
|
||||
|
||||
@@ -66,8 +66,12 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<std::string> getDemandStatus()const;
|
||||
void setDemandStatus(const std::vector<std::string>& demandStatus);
|
||||
std::string getDemandId()const;
|
||||
void setDemandId(const std::string& demandId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getDemandType()const;
|
||||
void setDemandType(const std::string& demandType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -83,7 +87,9 @@ namespace AlibabaCloud
|
||||
std::string instanceTypeFamily_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> demandStatus_;
|
||||
std::string demandId_;
|
||||
std::string zoneId_;
|
||||
std::string demandType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
int amount;
|
||||
std::string supplyEndTime;
|
||||
};
|
||||
std::string demandDescription;
|
||||
std::string zoneId;
|
||||
std::string demandTime;
|
||||
std::string endTime;
|
||||
@@ -48,9 +49,11 @@ namespace AlibabaCloud
|
||||
std::string instanceChargeType;
|
||||
std::vector<Demand::SupplyInfo> supplyInfos;
|
||||
std::string startTime;
|
||||
std::string demandId;
|
||||
int period;
|
||||
int availableAmount;
|
||||
int totalAmount;
|
||||
std::string demandName;
|
||||
int usedAmount;
|
||||
int deliveringAmount;
|
||||
std::string instanceType;
|
||||
|
||||
@@ -57,6 +57,7 @@ namespace AlibabaCloud
|
||||
ExtendedAttribute extendedAttribute;
|
||||
std::string eventId;
|
||||
std::string notBefore;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ namespace AlibabaCloud
|
||||
ExtendedAttribute extendedAttribute;
|
||||
std::string eventId;
|
||||
std::string notBefore;
|
||||
std::string reason;
|
||||
};
|
||||
Status status;
|
||||
std::string instanceId;
|
||||
|
||||
@@ -64,6 +64,12 @@ namespace AlibabaCloud
|
||||
std::string tenancy;
|
||||
std::string affinity;
|
||||
};
|
||||
struct CpuOptions
|
||||
{
|
||||
int threadsPerCore;
|
||||
std::string numa;
|
||||
int coreCount;
|
||||
};
|
||||
struct NetworkInterface
|
||||
{
|
||||
std::string primaryIpAddress;
|
||||
@@ -96,6 +102,7 @@ namespace AlibabaCloud
|
||||
std::string status;
|
||||
std::string instanceId;
|
||||
std::string stoppedMode;
|
||||
CpuOptions cpuOptions;
|
||||
std::string startTime;
|
||||
bool deletionProtection;
|
||||
VpcAttributes vpcAttributes;
|
||||
|
||||
@@ -77,6 +77,8 @@ namespace AlibabaCloud
|
||||
void setSpotStrategy(const std::string& spotStrategy);
|
||||
std::string getPriorityStrategy()const;
|
||||
void setPriorityStrategy(const std::string& priorityStrategy);
|
||||
std::string getInstanceFamilyLevel()const;
|
||||
void setInstanceFamilyLevel(const std::string& instanceFamilyLevel);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
|
||||
@@ -102,6 +104,7 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
std::string spotStrategy_;
|
||||
std::string priorityStrategy_;
|
||||
std::string instanceFamilyLevel_;
|
||||
std::string zoneId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,11 @@ namespace AlibabaCloud
|
||||
std::string key;
|
||||
std::string value;
|
||||
};
|
||||
struct TagFilter
|
||||
{
|
||||
std::string tagKey;
|
||||
std::vector<std::string> tagValues;
|
||||
};
|
||||
|
||||
public:
|
||||
ListTagResourcesRequest();
|
||||
@@ -56,6 +61,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<TagFilter> getTagFilter()const;
|
||||
void setTagFilter(const std::vector<TagFilter>& tagFilter);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
|
||||
@@ -68,6 +75,7 @@ namespace AlibabaCloud
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<TagFilter> tagFilter_;
|
||||
std::string resourceType_;
|
||||
|
||||
};
|
||||
|
||||
96
ecs/include/alibabacloud/ecs/model/ModifyDemandRequest.h
Normal file
96
ecs/include/alibabacloud/ecs/model/ModifyDemandRequest.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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_MODIFYDEMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_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 ModifyDemandRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDemandRequest();
|
||||
~ModifyDemandRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getDemandDescription()const;
|
||||
void setDemandDescription(const std::string& demandDescription);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getInstanceType()const;
|
||||
void setInstanceType(const std::string& instanceType);
|
||||
std::string getInstanceChargeType()const;
|
||||
void setInstanceChargeType(const std::string& instanceChargeType);
|
||||
std::string getDemandName()const;
|
||||
void setDemandName(const std::string& demandName);
|
||||
int getAmount()const;
|
||||
void setAmount(int amount);
|
||||
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);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getDemandId()const;
|
||||
void setDemandId(const std::string& demandId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string startTime_;
|
||||
std::string demandDescription_;
|
||||
std::string regionId_;
|
||||
std::string instanceType_;
|
||||
std::string instanceChargeType_;
|
||||
std::string demandName_;
|
||||
int amount_;
|
||||
int period_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string periodUnit_;
|
||||
std::string demandId_;
|
||||
std::string zoneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_
|
||||
49
ecs/include/alibabacloud/ecs/model/ModifyDemandResult.h
Normal file
49
ecs/include/alibabacloud/ecs/model/ModifyDemandResult.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_MODIFYDEMANDRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDRESULT_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 ModifyDemandResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDemandResult();
|
||||
explicit ModifyDemandResult(const std::string &payload);
|
||||
~ModifyDemandResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDRESULT_H_
|
||||
@@ -94,6 +94,8 @@ namespace AlibabaCloud
|
||||
void setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId);
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getCpuOptionsCore()const;
|
||||
void setCpuOptionsCore(int cpuOptionsCore);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
bool getDryRun()const;
|
||||
@@ -102,6 +104,8 @@ namespace AlibabaCloud
|
||||
void setLaunchTemplateId(const std::string& launchTemplateId);
|
||||
int getIpv6AddressCount()const;
|
||||
void setIpv6AddressCount(int ipv6AddressCount);
|
||||
std::string getCpuOptionsNuma()const;
|
||||
void setCpuOptionsNuma(const std::string& cpuOptionsNuma);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getCapacityReservationPreference()const;
|
||||
@@ -142,6 +146,8 @@ namespace AlibabaCloud
|
||||
void setInternetMaxBandwidthOut(int internetMaxBandwidthOut);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
int getCpuOptionsThreadsPerCore()const;
|
||||
void setCpuOptionsThreadsPerCore(int cpuOptionsThreadsPerCore);
|
||||
std::string getSystemDiskCategory()const;
|
||||
void setSystemDiskCategory(const std::string& systemDiskCategory);
|
||||
std::string getCapacityReservationId()const;
|
||||
@@ -214,10 +220,12 @@ namespace AlibabaCloud
|
||||
std::vector<Tag> tag_;
|
||||
std::string systemDiskAutoSnapshotPolicyId_;
|
||||
int autoRenewPeriod_;
|
||||
int cpuOptionsCore_;
|
||||
int period_;
|
||||
bool dryRun_;
|
||||
std::string launchTemplateId_;
|
||||
int ipv6AddressCount_;
|
||||
std::string cpuOptionsNuma_;
|
||||
long ownerId_;
|
||||
std::string capacityReservationPreference_;
|
||||
std::string vSwitchId_;
|
||||
@@ -238,6 +246,7 @@ namespace AlibabaCloud
|
||||
std::string securityGroupId_;
|
||||
int internetMaxBandwidthOut_;
|
||||
std::string description_;
|
||||
int cpuOptionsThreadsPerCore_;
|
||||
std::string systemDiskCategory_;
|
||||
std::string capacityReservationId_;
|
||||
std::string systemDiskPerformanceLevel_;
|
||||
|
||||
Reference in New Issue
Block a user