Add StartTerminalSession.
This commit is contained in:
@@ -676,6 +676,8 @@
|
||||
#include "model/StartInstanceResult.h"
|
||||
#include "model/StartInstancesRequest.h"
|
||||
#include "model/StartInstancesResult.h"
|
||||
#include "model/StartTerminalSessionRequest.h"
|
||||
#include "model/StartTerminalSessionResult.h"
|
||||
#include "model/StopDiskReplicaPairRequest.h"
|
||||
#include "model/StopDiskReplicaPairResult.h"
|
||||
#include "model/StopInstanceRequest.h"
|
||||
@@ -1690,6 +1692,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartInstancesResult> StartInstancesOutcome;
|
||||
typedef std::future<StartInstancesOutcome> StartInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StartInstancesRequest&, const StartInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartTerminalSessionResult> StartTerminalSessionOutcome;
|
||||
typedef std::future<StartTerminalSessionOutcome> StartTerminalSessionOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StartTerminalSessionRequest&, const StartTerminalSessionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartTerminalSessionAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopDiskReplicaPairResult> StopDiskReplicaPairOutcome;
|
||||
typedef std::future<StopDiskReplicaPairOutcome> StopDiskReplicaPairOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::StopDiskReplicaPairRequest&, const StopDiskReplicaPairOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopDiskReplicaPairAsyncHandler;
|
||||
@@ -2712,6 +2717,9 @@ namespace AlibabaCloud
|
||||
StartInstancesOutcome startInstances(const Model::StartInstancesRequest &request)const;
|
||||
void startInstancesAsync(const Model::StartInstancesRequest& request, const StartInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartInstancesOutcomeCallable startInstancesCallable(const Model::StartInstancesRequest& request) const;
|
||||
StartTerminalSessionOutcome startTerminalSession(const Model::StartTerminalSessionRequest &request)const;
|
||||
void startTerminalSessionAsync(const Model::StartTerminalSessionRequest& request, const StartTerminalSessionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartTerminalSessionOutcomeCallable startTerminalSessionCallable(const Model::StartTerminalSessionRequest& request) const;
|
||||
StopDiskReplicaPairOutcome stopDiskReplicaPair(const Model::StopDiskReplicaPairRequest &request)const;
|
||||
void stopDiskReplicaPairAsync(const Model::StopDiskReplicaPairRequest& request, const StopDiskReplicaPairAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopDiskReplicaPairOutcomeCallable stopDiskReplicaPairCallable(const Model::StopDiskReplicaPairRequest& request) const;
|
||||
|
||||
@@ -48,6 +48,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getActionType()const;
|
||||
void setActionType(const std::string& actionType);
|
||||
long getImageOwnerId()const;
|
||||
void setImageOwnerId(long imageOwnerId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getImageId()const;
|
||||
@@ -70,6 +72,8 @@ namespace AlibabaCloud
|
||||
void setImageName(const std::string& imageName);
|
||||
bool getIsSupportCloudinit()const;
|
||||
void setIsSupportCloudinit(bool isSupportCloudinit);
|
||||
bool getIsPublic()const;
|
||||
void setIsPublic(bool isPublic);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getInstanceType()const;
|
||||
@@ -99,6 +103,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string actionType_;
|
||||
long imageOwnerId_;
|
||||
long resourceOwnerId_;
|
||||
std::string imageId_;
|
||||
std::string snapshotId_;
|
||||
@@ -110,6 +115,7 @@ namespace AlibabaCloud
|
||||
std::string regionId_;
|
||||
std::string imageName_;
|
||||
bool isSupportCloudinit_;
|
||||
bool isPublic_;
|
||||
int pageSize_;
|
||||
std::string instanceType_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
@@ -59,6 +59,7 @@ namespace AlibabaCloud
|
||||
int size;
|
||||
bool isSubscribed;
|
||||
std::string oSName;
|
||||
bool isPublic;
|
||||
std::string imageId;
|
||||
std::vector<Image::Tag> tags;
|
||||
std::string oSNameEn;
|
||||
@@ -67,6 +68,7 @@ namespace AlibabaCloud
|
||||
std::string usage;
|
||||
std::string architecture;
|
||||
std::string productCode;
|
||||
long imageOwnerId;
|
||||
bool isCopied;
|
||||
std::string imageFamily;
|
||||
bool isSupportIoOptimized;
|
||||
|
||||
@@ -33,9 +33,9 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct DataDisk
|
||||
{
|
||||
std::string performanceLevel;
|
||||
int size;
|
||||
std::string category;
|
||||
std::string performanceLevel;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getIsPublic()const;
|
||||
void setIsPublic(bool isPublic);
|
||||
std::string getLaunchPermission()const;
|
||||
void setLaunchPermission(const std::string& launchPermission);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -58,6 +60,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string imageId_;
|
||||
std::string regionId_;
|
||||
bool isPublic_;
|
||||
std::string launchPermission_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -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_STARTTERMINALSESSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_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 StartTerminalSessionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartTerminalSessionRequest();
|
||||
~StartTerminalSessionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<std::string> getInstanceId()const;
|
||||
void setInstanceId(const std::vector<std::string>& instanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_STARTTERMINALSESSIONRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONRESULT_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 StartTerminalSessionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StartTerminalSessionResult();
|
||||
explicit StartTerminalSessionResult(const std::string &payload);
|
||||
~StartTerminalSessionResult();
|
||||
std::string getSecurityToken()const;
|
||||
std::string getWebSocketUrl()const;
|
||||
std::string getSessionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string securityToken_;
|
||||
std::string webSocketUrl_;
|
||||
std::string sessionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONRESULT_H_
|
||||
Reference in New Issue
Block a user