Add spotDuration support.

This commit is contained in:
sdk-team
2020-09-23 09:45:22 +00:00
parent 9290117d12
commit f014392806
62 changed files with 2761 additions and 8 deletions

View File

@@ -84,6 +84,8 @@
#include "model/CreateAutoSnapshotPolicyResult.h"
#include "model/CreateCommandRequest.h"
#include "model/CreateCommandResult.h"
#include "model/CreateDedicatedHostClusterRequest.h"
#include "model/CreateDedicatedHostClusterResult.h"
#include "model/CreateDemandRequest.h"
#include "model/CreateDemandResult.h"
#include "model/CreateDeploymentSetRequest.h"
@@ -142,6 +144,8 @@
#include "model/DeleteBandwidthPackageResult.h"
#include "model/DeleteCommandRequest.h"
#include "model/DeleteCommandResult.h"
#include "model/DeleteDedicatedHostClusterRequest.h"
#include "model/DeleteDedicatedHostClusterResult.h"
#include "model/DeleteDemandRequest.h"
#include "model/DeleteDemandResult.h"
#include "model/DeleteDeploymentSetRequest.h"
@@ -218,6 +222,8 @@
#include "model/DescribeCommandsResult.h"
#include "model/DescribeDedicatedHostAutoRenewRequest.h"
#include "model/DescribeDedicatedHostAutoRenewResult.h"
#include "model/DescribeDedicatedHostClustersRequest.h"
#include "model/DescribeDedicatedHostClustersResult.h"
#include "model/DescribeDedicatedHostTypesRequest.h"
#include "model/DescribeDedicatedHostTypesResult.h"
#include "model/DescribeDedicatedHostsRequest.h"
@@ -330,6 +336,8 @@
#include "model/DescribeSecurityGroupReferencesResult.h"
#include "model/DescribeSecurityGroupsRequest.h"
#include "model/DescribeSecurityGroupsResult.h"
#include "model/DescribeSendFileResultsRequest.h"
#include "model/DescribeSendFileResultsResult.h"
#include "model/DescribeSnapshotLinksRequest.h"
#include "model/DescribeSnapshotLinksResult.h"
#include "model/DescribeSnapshotMonitorDataRequest.h"
@@ -430,6 +438,8 @@
#include "model/ModifyDedicatedHostAutoReleaseTimeResult.h"
#include "model/ModifyDedicatedHostAutoRenewAttributeRequest.h"
#include "model/ModifyDedicatedHostAutoRenewAttributeResult.h"
#include "model/ModifyDedicatedHostClusterAttributeRequest.h"
#include "model/ModifyDedicatedHostClusterAttributeResult.h"
#include "model/ModifyDedicatedHostsChargeTypeRequest.h"
#include "model/ModifyDedicatedHostsChargeTypeResult.h"
#include "model/ModifyDemandRequest.h"
@@ -566,6 +576,8 @@
#include "model/RunCommandResult.h"
#include "model/RunInstancesRequest.h"
#include "model/RunInstancesResult.h"
#include "model/SendFileRequest.h"
#include "model/SendFileResult.h"
#include "model/StartInstanceRequest.h"
#include "model/StartInstanceResult.h"
#include "model/StartInstancesRequest.h"
@@ -694,6 +706,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::CreateDedicatedHostClusterResult> CreateDedicatedHostClusterOutcome;
typedef std::future<CreateDedicatedHostClusterOutcome> CreateDedicatedHostClusterOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDedicatedHostClusterRequest&, const CreateDedicatedHostClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDedicatedHostClusterAsyncHandler;
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;
@@ -781,6 +796,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::DeleteDedicatedHostClusterResult> DeleteDedicatedHostClusterOutcome;
typedef std::future<DeleteDedicatedHostClusterOutcome> DeleteDedicatedHostClusterOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDedicatedHostClusterRequest&, const DeleteDedicatedHostClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDedicatedHostClusterAsyncHandler;
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;
@@ -895,6 +913,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDedicatedHostAutoRenewResult> DescribeDedicatedHostAutoRenewOutcome;
typedef std::future<DescribeDedicatedHostAutoRenewOutcome> DescribeDedicatedHostAutoRenewOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDedicatedHostAutoRenewRequest&, const DescribeDedicatedHostAutoRenewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDedicatedHostAutoRenewAsyncHandler;
typedef Outcome<Error, Model::DescribeDedicatedHostClustersResult> DescribeDedicatedHostClustersOutcome;
typedef std::future<DescribeDedicatedHostClustersOutcome> DescribeDedicatedHostClustersOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDedicatedHostClustersRequest&, const DescribeDedicatedHostClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDedicatedHostClustersAsyncHandler;
typedef Outcome<Error, Model::DescribeDedicatedHostTypesResult> DescribeDedicatedHostTypesOutcome;
typedef std::future<DescribeDedicatedHostTypesOutcome> DescribeDedicatedHostTypesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDedicatedHostTypesRequest&, const DescribeDedicatedHostTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDedicatedHostTypesAsyncHandler;
@@ -1063,6 +1084,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSecurityGroupsResult> DescribeSecurityGroupsOutcome;
typedef std::future<DescribeSecurityGroupsOutcome> DescribeSecurityGroupsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeSecurityGroupsRequest&, const DescribeSecurityGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSecurityGroupsAsyncHandler;
typedef Outcome<Error, Model::DescribeSendFileResultsResult> DescribeSendFileResultsOutcome;
typedef std::future<DescribeSendFileResultsOutcome> DescribeSendFileResultsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeSendFileResultsRequest&, const DescribeSendFileResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSendFileResultsAsyncHandler;
typedef Outcome<Error, Model::DescribeSnapshotLinksResult> DescribeSnapshotLinksOutcome;
typedef std::future<DescribeSnapshotLinksOutcome> DescribeSnapshotLinksOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeSnapshotLinksRequest&, const DescribeSnapshotLinksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSnapshotLinksAsyncHandler;
@@ -1213,6 +1237,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::ModifyDedicatedHostClusterAttributeResult> ModifyDedicatedHostClusterAttributeOutcome;
typedef std::future<ModifyDedicatedHostClusterAttributeOutcome> ModifyDedicatedHostClusterAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDedicatedHostClusterAttributeRequest&, const ModifyDedicatedHostClusterAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDedicatedHostClusterAttributeAsyncHandler;
typedef Outcome<Error, Model::ModifyDedicatedHostsChargeTypeResult> ModifyDedicatedHostsChargeTypeOutcome;
typedef std::future<ModifyDedicatedHostsChargeTypeOutcome> ModifyDedicatedHostsChargeTypeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDedicatedHostsChargeTypeRequest&, const ModifyDedicatedHostsChargeTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDedicatedHostsChargeTypeAsyncHandler;
@@ -1417,6 +1444,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::RunInstancesResult> RunInstancesOutcome;
typedef std::future<RunInstancesOutcome> RunInstancesOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::RunInstancesRequest&, const RunInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunInstancesAsyncHandler;
typedef Outcome<Error, Model::SendFileResult> SendFileOutcome;
typedef std::future<SendFileOutcome> SendFileOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::SendFileRequest&, const SendFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendFileAsyncHandler;
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;
@@ -1554,6 +1584,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;
CreateDedicatedHostClusterOutcome createDedicatedHostCluster(const Model::CreateDedicatedHostClusterRequest &request)const;
void createDedicatedHostClusterAsync(const Model::CreateDedicatedHostClusterRequest& request, const CreateDedicatedHostClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDedicatedHostClusterOutcomeCallable createDedicatedHostClusterCallable(const Model::CreateDedicatedHostClusterRequest& 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;
@@ -1641,6 +1674,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;
DeleteDedicatedHostClusterOutcome deleteDedicatedHostCluster(const Model::DeleteDedicatedHostClusterRequest &request)const;
void deleteDedicatedHostClusterAsync(const Model::DeleteDedicatedHostClusterRequest& request, const DeleteDedicatedHostClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDedicatedHostClusterOutcomeCallable deleteDedicatedHostClusterCallable(const Model::DeleteDedicatedHostClusterRequest& 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;
@@ -1755,6 +1791,9 @@ namespace AlibabaCloud
DescribeDedicatedHostAutoRenewOutcome describeDedicatedHostAutoRenew(const Model::DescribeDedicatedHostAutoRenewRequest &request)const;
void describeDedicatedHostAutoRenewAsync(const Model::DescribeDedicatedHostAutoRenewRequest& request, const DescribeDedicatedHostAutoRenewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDedicatedHostAutoRenewOutcomeCallable describeDedicatedHostAutoRenewCallable(const Model::DescribeDedicatedHostAutoRenewRequest& request) const;
DescribeDedicatedHostClustersOutcome describeDedicatedHostClusters(const Model::DescribeDedicatedHostClustersRequest &request)const;
void describeDedicatedHostClustersAsync(const Model::DescribeDedicatedHostClustersRequest& request, const DescribeDedicatedHostClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDedicatedHostClustersOutcomeCallable describeDedicatedHostClustersCallable(const Model::DescribeDedicatedHostClustersRequest& request) const;
DescribeDedicatedHostTypesOutcome describeDedicatedHostTypes(const Model::DescribeDedicatedHostTypesRequest &request)const;
void describeDedicatedHostTypesAsync(const Model::DescribeDedicatedHostTypesRequest& request, const DescribeDedicatedHostTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDedicatedHostTypesOutcomeCallable describeDedicatedHostTypesCallable(const Model::DescribeDedicatedHostTypesRequest& request) const;
@@ -1923,6 +1962,9 @@ namespace AlibabaCloud
DescribeSecurityGroupsOutcome describeSecurityGroups(const Model::DescribeSecurityGroupsRequest &request)const;
void describeSecurityGroupsAsync(const Model::DescribeSecurityGroupsRequest& request, const DescribeSecurityGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSecurityGroupsOutcomeCallable describeSecurityGroupsCallable(const Model::DescribeSecurityGroupsRequest& request) const;
DescribeSendFileResultsOutcome describeSendFileResults(const Model::DescribeSendFileResultsRequest &request)const;
void describeSendFileResultsAsync(const Model::DescribeSendFileResultsRequest& request, const DescribeSendFileResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSendFileResultsOutcomeCallable describeSendFileResultsCallable(const Model::DescribeSendFileResultsRequest& request) const;
DescribeSnapshotLinksOutcome describeSnapshotLinks(const Model::DescribeSnapshotLinksRequest &request)const;
void describeSnapshotLinksAsync(const Model::DescribeSnapshotLinksRequest& request, const DescribeSnapshotLinksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSnapshotLinksOutcomeCallable describeSnapshotLinksCallable(const Model::DescribeSnapshotLinksRequest& request) const;
@@ -2073,6 +2115,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;
ModifyDedicatedHostClusterAttributeOutcome modifyDedicatedHostClusterAttribute(const Model::ModifyDedicatedHostClusterAttributeRequest &request)const;
void modifyDedicatedHostClusterAttributeAsync(const Model::ModifyDedicatedHostClusterAttributeRequest& request, const ModifyDedicatedHostClusterAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDedicatedHostClusterAttributeOutcomeCallable modifyDedicatedHostClusterAttributeCallable(const Model::ModifyDedicatedHostClusterAttributeRequest& request) const;
ModifyDedicatedHostsChargeTypeOutcome modifyDedicatedHostsChargeType(const Model::ModifyDedicatedHostsChargeTypeRequest &request)const;
void modifyDedicatedHostsChargeTypeAsync(const Model::ModifyDedicatedHostsChargeTypeRequest& request, const ModifyDedicatedHostsChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDedicatedHostsChargeTypeOutcomeCallable modifyDedicatedHostsChargeTypeCallable(const Model::ModifyDedicatedHostsChargeTypeRequest& request) const;
@@ -2277,6 +2322,9 @@ namespace AlibabaCloud
RunInstancesOutcome runInstances(const Model::RunInstancesRequest &request)const;
void runInstancesAsync(const Model::RunInstancesRequest& request, const RunInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RunInstancesOutcomeCallable runInstancesCallable(const Model::RunInstancesRequest& request) const;
SendFileOutcome sendFile(const Model::SendFileRequest &request)const;
void sendFileAsync(const Model::SendFileRequest& request, const SendFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendFileOutcomeCallable sendFileCallable(const Model::SendFileRequest& request) const;
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;

View File

@@ -47,12 +47,16 @@ namespace AlibabaCloud
void setClientToken(const std::string& clientToken);
std::string getDescription()const;
void setDescription(const std::string& description);
float getCpuOverCommitRatio()const;
void setCpuOverCommitRatio(float cpuOverCommitRatio);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getActionOnMaintenance()const;
void setActionOnMaintenance(const std::string& actionOnMaintenance);
std::string getDedicatedHostClusterId()const;
void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getDedicatedHostType()const;
@@ -92,9 +96,11 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string clientToken_;
std::string description_;
float cpuOverCommitRatio_;
std::string resourceGroupId_;
std::string regionId_;
std::string actionOnMaintenance_;
std::string dedicatedHostClusterId_;
std::vector<Tag> tag_;
std::string dedicatedHostType_;
int autoRenewPeriod_;

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
bool getWaitForNetworkConfigurationReady()const;
void setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInstanceId()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
std::string trunkNetworkInstanceId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
bool waitForNetworkConfigurationReady_;
long ownerId_;
std::string instanceId_;
std::string networkInterfaceId_;

View File

@@ -0,0 +1,84 @@
/*
* 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_CREATEDEDICATEDHOSTCLUSTERREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_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 CreateDedicatedHostClusterRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string key;
std::string value;
};
public:
CreateDedicatedHostClusterRequest();
~CreateDedicatedHostClusterRequest();
std::string getDedicatedHostClusterName()const;
void setDedicatedHostClusterName(const std::string& dedicatedHostClusterName);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getDescription()const;
void setDescription(const std::string& description);
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);
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::string getZoneId()const;
void setZoneId(const std::string& zoneId);
private:
std::string dedicatedHostClusterName_;
long resourceOwnerId_;
std::string description_;
std::string resourceGroupId_;
std::string regionId_;
std::vector<Tag> tag_;
bool dryRun_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string zoneId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_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_CREATEDEDICATEDHOSTCLUSTERRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERRESULT_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 CreateDedicatedHostClusterResult : public ServiceResult
{
public:
CreateDedicatedHostClusterResult();
explicit CreateDedicatedHostClusterResult(const std::string &payload);
~CreateDedicatedHostClusterResult();
std::string getDedicatedHostClusterId()const;
protected:
void parse(const std::string &payload);
private:
std::string dedicatedHostClusterId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERRESULT_H_

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
CreateNetworkInterfaceRequest();
~CreateNetworkInterfaceRequest();
int getQueueNumber()const;
void setQueueNumber(int queueNumber);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken()const;
@@ -81,6 +83,7 @@ namespace AlibabaCloud
void setPrimaryIpAddress(const std::string& primaryIpAddress);
private:
int queueNumber_;
long resourceOwnerId_;
std::string clientToken_;
std::string securityGroupId_;

View File

@@ -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_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_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 DeleteDedicatedHostClusterRequest : public RpcServiceRequest
{
public:
DeleteDedicatedHostClusterRequest();
~DeleteDedicatedHostClusterRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getDedicatedHostClusterId()const;
void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId);
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 dedicatedHostClusterId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_

View 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_DELETEDEDICATEDHOSTCLUSTERRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERRESULT_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 DeleteDedicatedHostClusterResult : public ServiceResult
{
public:
DeleteDedicatedHostClusterResult();
explicit DeleteDedicatedHostClusterResult(const std::string &payload);
~DeleteDedicatedHostClusterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERRESULT_H_

View 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_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_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 DescribeDedicatedHostClustersRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string key;
std::string value;
};
public:
DescribeDedicatedHostClustersRequest();
~DescribeDedicatedHostClustersRequest();
std::string getDedicatedHostClusterName()const;
void setDedicatedHostClusterName(const std::string& dedicatedHostClusterName);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getDedicatedHostClusterIds()const;
void setDedicatedHostClusterIds(const std::string& dedicatedHostClusterIds);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getLockReason()const;
void setLockReason(const std::string& lockReason);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
int getPageSize()const;
void setPageSize(int pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
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 getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string dedicatedHostClusterName_;
long resourceOwnerId_;
std::string dedicatedHostClusterIds_;
int pageNumber_;
std::string resourceGroupId_;
std::string lockReason_;
std::string regionId_;
int pageSize_;
std::vector<Tag> tag_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string zoneId_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_

View File

@@ -0,0 +1,88 @@
/*
* 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_DESCRIBEDEDICATEDHOSTCLUSTERSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSRESULT_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 DescribeDedicatedHostClustersResult : public ServiceResult
{
public:
struct DedicatedHostCluster
{
struct DedicatedHostClusterCapacity
{
struct LocalStorageCapacity
{
int totalDisk;
int availableDisk;
std::string dataDiskCategory;
};
int totalMemory;
int availableMemory;
int availableVcpus;
int totalVcpus;
std::vector<LocalStorageCapacity> localStorageCapacities;
};
struct Tag
{
std::string tagKey;
std::string tagValue;
};
std::string description;
std::string zoneId;
std::string dedicatedHostClusterName;
std::string resourceGroupId;
DedicatedHostClusterCapacity dedicatedHostClusterCapacity;
std::string regionId;
std::vector<std::string> dedicatedHostIds;
std::vector<DedicatedHostCluster::Tag> tags;
std::string dedicatedHostClusterId;
};
DescribeDedicatedHostClustersResult();
explicit DescribeDedicatedHostClustersResult(const std::string &payload);
~DescribeDedicatedHostClustersResult();
std::vector<DedicatedHostCluster> getDedicatedHostClusters()const;
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DedicatedHostCluster> dedicatedHostClusters_;
int totalCount_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSRESULT_H_

View File

@@ -45,7 +45,9 @@ namespace AlibabaCloud
std::string gPUSpec;
std::vector<std::string> supportedInstanceTypeFamilies;
int totalVgpus;
std::string cpuOverCommitRatioRange;
std::vector<std::string> supportedInstanceTypesList;
bool supportCpuOverCommitRatio;
int totalVcpus;
};

View File

@@ -76,6 +76,7 @@ namespace AlibabaCloud
Capacity capacity;
std::string dedicatedHostName;
std::string expiredTime;
float cpuOverCommitRatio;
std::string saleCycle;
std::vector<DedicatedHost::Tag> tags;
std::string status;
@@ -92,6 +93,7 @@ namespace AlibabaCloud
std::string creationTime;
std::string regionId;
std::vector<std::string> supportedInstanceTypesList;
std::string dedicatedHostClusterId;
std::string autoReleaseTime;
};

View File

@@ -77,6 +77,8 @@ namespace AlibabaCloud
void setInstanceId(const std::string& instanceId);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
int getMaxResults()const;
void setMaxResults(int maxResults);
std::string getStatus()const;
void setStatus(const std::string& status);
std::string getSnapshotId()const;
@@ -85,6 +87,8 @@ namespace AlibabaCloud
void setPageNumber(int pageNumber);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getDiskIds()const;
@@ -129,10 +133,12 @@ namespace AlibabaCloud
std::vector<std::string> additionalAttributes_;
std::string instanceId_;
std::string zoneId_;
int maxResults_;
std::string status_;
std::string snapshotId_;
int pageNumber_;
std::string regionId_;
std::string nextToken_;
int pageSize_;
std::string diskIds_;
bool deleteWithInstance_;

View File

@@ -97,6 +97,7 @@ namespace AlibabaCloud
~DescribeDisksResult();
int getTotalCount()const;
int getPageSize()const;
std::string getNextToken()const;
int getPageNumber()const;
std::vector<Disk> getDisks()const;
@@ -105,6 +106,7 @@ namespace AlibabaCloud
private:
int totalCount_;
int pageSize_;
std::string nextToken_;
int pageNumber_;
std::vector<Disk> disks_;

View File

@@ -34,27 +34,30 @@ namespace AlibabaCloud
public:
struct InstanceType
{
float memorySize;
long instancePpsTx;
int eniIpv6AddressQuantity;
int cpuCoreCount;
int primaryEniQueueNumber;
long localStorageCapacity;
int totalEniQueueQuantity;
int eniTotalQuantity;
bool eniTrunkSupported;
std::string instanceTypeFamily;
long instancePpsRx;
int initialCredit;
int eniQuantity;
int instanceBandwidthRx;
int gPUAmount;
int instanceBandwidthTx;
int localStorageAmount;
int secondaryEniQueueNumber;
std::string localStorageCategory;
std::string gPUSpec;
std::string instanceTypeId;
float memorySize;
int maximumQueueNumberPerEni;
int eniIpv6AddressQuantity;
int cpuCoreCount;
int eniTotalQuantity;
int initialCredit;
int eniQuantity;
int gPUAmount;
int baselineCredit;
std::string instanceFamilyLevel;
std::string instanceTypeId;
int eniPrivateIpAddressQuantity;
};

View File

@@ -53,6 +53,7 @@ namespace AlibabaCloud
{
std::string dedicatedHostId;
std::string dedicatedHostName;
std::string dedicatedHostClusterId;
};
struct EcsCapacityReservationAttr
{
@@ -126,6 +127,7 @@ namespace AlibabaCloud
long localStorageCapacity;
std::string instanceTypeFamily;
DedicatedInstanceAttribute dedicatedInstanceAttribute;
int spotDuration;
int localStorageAmount;
std::vector<std::string> publicIpAddress;
std::string gPUSpec;

View File

@@ -30,6 +30,12 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_ECS_EXPORT DescribeReservedInstancesRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string key;
std::string value;
};
public:
DescribeReservedInstancesRequest();
@@ -49,6 +55,8 @@ namespace AlibabaCloud
void setPageSize(int pageSize);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -78,6 +86,7 @@ namespace AlibabaCloud
std::string scope_;
int pageSize_;
std::string instanceType_;
std::vector<Tag> tag_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string instanceTypeFamily_;

View File

@@ -38,6 +38,11 @@ namespace AlibabaCloud
{
std::string lockReason;
};
struct Tag
{
std::string tagKey;
std::string tagValue;
};
std::string status;
std::string description;
std::string allocationStatus;
@@ -55,6 +60,7 @@ namespace AlibabaCloud
std::string regionId;
std::string reservedInstanceName;
std::string instanceType;
std::vector<ReservedInstance::Tag> tags;
};

View File

@@ -0,0 +1,75 @@
/*
* 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_DESCRIBESENDFILERESULTSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_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 DescribeSendFileResultsRequest : public RpcServiceRequest
{
public:
DescribeSendFileResultsRequest();
~DescribeSendFileResultsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getInvokeId()const;
void setInvokeId(const std::string& invokeId);
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 getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getName()const;
void setName(const std::string& name);
private:
long resourceOwnerId_;
long pageNumber_;
std::string regionId_;
long pageSize_;
std::string invokeId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_H_

View File

@@ -0,0 +1,85 @@
/*
* 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_DESCRIBESENDFILERESULTSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSRESULT_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 DescribeSendFileResultsResult : public ServiceResult
{
public:
struct Invocation
{
struct InvokeInstance
{
std::string invocationStatus;
std::string finishTime;
std::string instanceId;
std::string errorInfo;
std::string creationTime;
std::string startTime;
std::string updateTime;
std::string errorCode;
};
std::string fileMode;
std::string overwrite;
std::string invocationStatus;
std::string description;
std::string contentType;
int vmCount;
std::string targetDir;
std::string fileGroup;
std::string fileOwner;
std::vector<Invocation::InvokeInstance> invokeInstances;
std::string name;
std::string content;
std::string creationTime;
std::string invokeId;
};
DescribeSendFileResultsResult();
explicit DescribeSendFileResultsResult(const std::string &payload);
~DescribeSendFileResultsResult();
long getTotalCount()const;
long getPageSize()const;
std::vector<Invocation> getInvocations()const;
long getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
long pageSize_;
std::vector<Invocation> invocations_;
long pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSRESULT_H_

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
int eni;
int keyPair;
int snapshotPolicy;
int reservedInstance;
int instance;
int volume;
int launchTemplate;

View File

@@ -39,10 +39,14 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getDescription()const;
void setDescription(const std::string& description);
float getCpuOverCommitRatio()const;
void setCpuOverCommitRatio(float cpuOverCommitRatio);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getActionOnMaintenance()const;
void setActionOnMaintenance(const std::string& actionOnMaintenance);
std::string getDedicatedHostClusterId()const;
void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId);
std::string getDedicatedHostName()const;
void setDedicatedHostName(const std::string& dedicatedHostName);
std::string getResourceOwnerAccount()const;
@@ -63,8 +67,10 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string description_;
float cpuOverCommitRatio_;
std::string regionId_;
std::string actionOnMaintenance_;
std::string dedicatedHostClusterId_;
std::string dedicatedHostName_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View 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_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_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 ModifyDedicatedHostClusterAttributeRequest : public RpcServiceRequest
{
public:
ModifyDedicatedHostClusterAttributeRequest();
~ModifyDedicatedHostClusterAttributeRequest();
std::string getDedicatedHostClusterName()const;
void setDedicatedHostClusterName(const std::string& dedicatedHostClusterName);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getDedicatedHostClusterId()const;
void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId);
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:
std::string dedicatedHostClusterName_;
long resourceOwnerId_;
std::string description_;
std::string regionId_;
std::string dedicatedHostClusterId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_

View 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_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTERESULT_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTERESULT_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 ModifyDedicatedHostClusterAttributeResult : public ServiceResult
{
public:
ModifyDedicatedHostClusterAttributeResult();
explicit ModifyDedicatedHostClusterAttributeResult(const std::string &payload);
~ModifyDedicatedHostClusterAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTERESULT_H_

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
bool getRecyclable()const;
void setRecyclable(bool recyclable);
int getNetworkInterfaceQueueNumber()const;
void setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber);
std::string getDescription()const;
void setDescription(const std::string& description);
bool getDeletionProtection()const;
@@ -67,6 +69,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
bool recyclable_;
int networkInterfaceQueueNumber_;
std::string description_;
bool deletionProtection_;
std::string userData_;

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setRegionId(const std::string& regionId);
int getDeploymentSetGroupNo()const;
void setDeploymentSetGroupNo(int deploymentSetGroupNo);
std::string getDedicatedHostClusterId()const;
void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::string getDeploymentSetId()const;
@@ -68,6 +70,7 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string regionId_;
int deploymentSetGroupNo_;
std::string dedicatedHostClusterId_;
std::string instanceType_;
std::string deploymentSetId_;
std::string resourceOwnerAccount_;

View File

@@ -30,6 +30,12 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_ECS_EXPORT PurchaseReservedInstancesOfferingRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string key;
std::string value;
};
public:
PurchaseReservedInstancesOfferingRequest();
@@ -51,6 +57,8 @@ namespace AlibabaCloud
void setScope(const std::string& scope);
std::string getInstanceType()const;
void setInstanceType(const std::string& instanceType);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
int getPeriod()const;
void setPeriod(int period);
std::string getResourceOwnerAccount()const;
@@ -79,6 +87,7 @@ namespace AlibabaCloud
std::string regionId_;
std::string scope_;
std::string instanceType_;
std::vector<Tag> tag_;
int period_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -50,6 +50,7 @@ namespace AlibabaCloud
std::vector<std::string> securityGroupIds;
std::string networkInterfaceName;
std::string description;
int queueNumber;
};
struct DataDisk
{
@@ -117,6 +118,8 @@ namespace AlibabaCloud
void setImageId(const std::string& imageId);
std::string getSpotInterruptionBehavior()const;
void setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior);
int getNetworkInterfaceQueueNumber()const;
void setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber);
std::string getIoOptimized()const;
void setIoOptimized(const std::string& ioOptimized);
std::string getSecurityGroupId()const;
@@ -131,6 +134,8 @@ namespace AlibabaCloud
void setHibernationConfigured(bool hibernationConfigured);
std::vector<Arn> getArn()const;
void setArn(const std::vector<Arn>& arn);
std::string getSchedulerOptions()const;
void setSchedulerOptions(const std::string& schedulerOptions);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getSystemDiskDiskName()const;
@@ -248,6 +253,7 @@ namespace AlibabaCloud
std::string affinity_;
std::string imageId_;
std::string spotInterruptionBehavior_;
int networkInterfaceQueueNumber_;
std::string ioOptimized_;
std::string securityGroupId_;
std::string systemDiskPerformanceLevel_;
@@ -255,6 +261,7 @@ namespace AlibabaCloud
std::string instanceType_;
bool hibernationConfigured_;
std::vector<Arn> arn_;
std::string schedulerOptions_;
std::string resourceOwnerAccount_;
std::string systemDiskDiskName_;
std::string dedicatedHostId_;

View 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_SENDFILEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_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 SendFileRequest : public RpcServiceRequest
{
public:
SendFileRequest();
~SendFileRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getDescription()const;
void setDescription(const std::string& description);
long getTimeout()const;
void setTimeout(long timeout);
std::string getContent()const;
void setContent(const std::string& content);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getFileOwner()const;
void setFileOwner(const std::string& fileOwner);
bool getOverwrite()const;
void setOverwrite(bool overwrite);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getFileMode()const;
void setFileMode(const std::string& fileMode);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getContentType()const;
void setContentType(const std::string& contentType);
std::vector<std::string> getInstanceId()const;
void setInstanceId(const std::vector<std::string>& instanceId);
std::string getName()const;
void setName(const std::string& name);
std::string getFileGroup()const;
void setFileGroup(const std::string& fileGroup);
std::string getTargetDir()const;
void setTargetDir(const std::string& targetDir);
private:
long resourceOwnerId_;
std::string description_;
long timeout_;
std::string content_;
std::string regionId_;
std::string fileOwner_;
bool overwrite_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string fileMode_;
long ownerId_;
std::string contentType_;
std::vector<std::string> instanceId_;
std::string name_;
std::string fileGroup_;
std::string targetDir_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_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_SENDFILERESULT_H_
#define ALIBABACLOUD_ECS_MODEL_SENDFILERESULT_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 SendFileResult : public ServiceResult
{
public:
SendFileResult();
explicit SendFileResult(const std::string &payload);
~SendFileResult();
std::string getInvokeId()const;
protected:
void parse(const std::string &payload);
private:
std::string invokeId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_SENDFILERESULT_H_