Support ResourceGroup.

This commit is contained in:
sdk-team
2023-01-10 06:13:01 +00:00
parent 3951dffc62
commit feb2a1a569
30 changed files with 1315 additions and 3 deletions

View File

@@ -1 +1 @@
1.36.1418
1.36.1419

View File

@@ -23,10 +23,16 @@ set(eais_public_header
set(eais_public_header_model
include/alibabacloud/eais/model/AttachEaiRequest.h
include/alibabacloud/eais/model/AttachEaiResult.h
include/alibabacloud/eais/model/ChangeResourceGroupRequest.h
include/alibabacloud/eais/model/ChangeResourceGroupResult.h
include/alibabacloud/eais/model/CreateEaiRequest.h
include/alibabacloud/eais/model/CreateEaiResult.h
include/alibabacloud/eais/model/CreateEaiAllRequest.h
include/alibabacloud/eais/model/CreateEaiAllResult.h
include/alibabacloud/eais/model/CreateEaiEciRequest.h
include/alibabacloud/eais/model/CreateEaiEciResult.h
include/alibabacloud/eais/model/CreateEaiEcsRequest.h
include/alibabacloud/eais/model/CreateEaiEcsResult.h
include/alibabacloud/eais/model/CreateEaiJupyterRequest.h
include/alibabacloud/eais/model/CreateEaiJupyterResult.h
include/alibabacloud/eais/model/DeleteEaiRequest.h
@@ -38,16 +44,24 @@ set(eais_public_header_model
include/alibabacloud/eais/model/DescribeRegionsRequest.h
include/alibabacloud/eais/model/DescribeRegionsResult.h
include/alibabacloud/eais/model/DetachEaiRequest.h
include/alibabacloud/eais/model/DetachEaiResult.h )
include/alibabacloud/eais/model/DetachEaiResult.h
include/alibabacloud/eais/model/GetInstanceMetricsRequest.h
include/alibabacloud/eais/model/GetInstanceMetricsResult.h )
set(eais_src
src/EaisClient.cc
src/model/AttachEaiRequest.cc
src/model/AttachEaiResult.cc
src/model/ChangeResourceGroupRequest.cc
src/model/ChangeResourceGroupResult.cc
src/model/CreateEaiRequest.cc
src/model/CreateEaiResult.cc
src/model/CreateEaiAllRequest.cc
src/model/CreateEaiAllResult.cc
src/model/CreateEaiEciRequest.cc
src/model/CreateEaiEciResult.cc
src/model/CreateEaiEcsRequest.cc
src/model/CreateEaiEcsResult.cc
src/model/CreateEaiJupyterRequest.cc
src/model/CreateEaiJupyterResult.cc
src/model/DeleteEaiRequest.cc
@@ -59,7 +73,9 @@ set(eais_src
src/model/DescribeRegionsRequest.cc
src/model/DescribeRegionsResult.cc
src/model/DetachEaiRequest.cc
src/model/DetachEaiResult.cc )
src/model/DetachEaiResult.cc
src/model/GetInstanceMetricsRequest.cc
src/model/GetInstanceMetricsResult.cc )
add_library(eais ${LIB_TYPE}
${eais_public_header}

View File

@@ -24,10 +24,16 @@
#include "EaisExport.h"
#include "model/AttachEaiRequest.h"
#include "model/AttachEaiResult.h"
#include "model/ChangeResourceGroupRequest.h"
#include "model/ChangeResourceGroupResult.h"
#include "model/CreateEaiRequest.h"
#include "model/CreateEaiResult.h"
#include "model/CreateEaiAllRequest.h"
#include "model/CreateEaiAllResult.h"
#include "model/CreateEaiEciRequest.h"
#include "model/CreateEaiEciResult.h"
#include "model/CreateEaiEcsRequest.h"
#include "model/CreateEaiEcsResult.h"
#include "model/CreateEaiJupyterRequest.h"
#include "model/CreateEaiJupyterResult.h"
#include "model/DeleteEaiRequest.h"
@@ -40,6 +46,8 @@
#include "model/DescribeRegionsResult.h"
#include "model/DetachEaiRequest.h"
#include "model/DetachEaiResult.h"
#include "model/GetInstanceMetricsRequest.h"
#include "model/GetInstanceMetricsResult.h"
namespace AlibabaCloud
@@ -52,12 +60,21 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AttachEaiResult> AttachEaiOutcome;
typedef std::future<AttachEaiOutcome> AttachEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::AttachEaiRequest&, const AttachEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachEaiAsyncHandler;
typedef Outcome<Error, Model::ChangeResourceGroupResult> ChangeResourceGroupOutcome;
typedef std::future<ChangeResourceGroupOutcome> ChangeResourceGroupOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::ChangeResourceGroupRequest&, const ChangeResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceGroupAsyncHandler;
typedef Outcome<Error, Model::CreateEaiResult> CreateEaiOutcome;
typedef std::future<CreateEaiOutcome> CreateEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiRequest&, const CreateEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAsyncHandler;
typedef Outcome<Error, Model::CreateEaiAllResult> CreateEaiAllOutcome;
typedef std::future<CreateEaiAllOutcome> CreateEaiAllOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiAllRequest&, const CreateEaiAllOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAllAsyncHandler;
typedef Outcome<Error, Model::CreateEaiEciResult> CreateEaiEciOutcome;
typedef std::future<CreateEaiEciOutcome> CreateEaiEciOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiEciRequest&, const CreateEaiEciOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiEciAsyncHandler;
typedef Outcome<Error, Model::CreateEaiEcsResult> CreateEaiEcsOutcome;
typedef std::future<CreateEaiEcsOutcome> CreateEaiEcsOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiEcsRequest&, const CreateEaiEcsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiEcsAsyncHandler;
typedef Outcome<Error, Model::CreateEaiJupyterResult> CreateEaiJupyterOutcome;
typedef std::future<CreateEaiJupyterOutcome> CreateEaiJupyterOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiJupyterRequest&, const CreateEaiJupyterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiJupyterAsyncHandler;
@@ -76,6 +93,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DetachEaiResult> DetachEaiOutcome;
typedef std::future<DetachEaiOutcome> DetachEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::DetachEaiRequest&, const DetachEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachEaiAsyncHandler;
typedef Outcome<Error, Model::GetInstanceMetricsResult> GetInstanceMetricsOutcome;
typedef std::future<GetInstanceMetricsOutcome> GetInstanceMetricsOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::GetInstanceMetricsRequest&, const GetInstanceMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceMetricsAsyncHandler;
EaisClient(const Credentials &credentials, const ClientConfiguration &configuration);
EaisClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -84,12 +104,21 @@ namespace AlibabaCloud
AttachEaiOutcome attachEai(const Model::AttachEaiRequest &request)const;
void attachEaiAsync(const Model::AttachEaiRequest& request, const AttachEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AttachEaiOutcomeCallable attachEaiCallable(const Model::AttachEaiRequest& request) const;
ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const;
void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const;
CreateEaiOutcome createEai(const Model::CreateEaiRequest &request)const;
void createEaiAsync(const Model::CreateEaiRequest& request, const CreateEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiOutcomeCallable createEaiCallable(const Model::CreateEaiRequest& request) const;
CreateEaiAllOutcome createEaiAll(const Model::CreateEaiAllRequest &request)const;
void createEaiAllAsync(const Model::CreateEaiAllRequest& request, const CreateEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiAllOutcomeCallable createEaiAllCallable(const Model::CreateEaiAllRequest& request) const;
CreateEaiEciOutcome createEaiEci(const Model::CreateEaiEciRequest &request)const;
void createEaiEciAsync(const Model::CreateEaiEciRequest& request, const CreateEaiEciAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiEciOutcomeCallable createEaiEciCallable(const Model::CreateEaiEciRequest& request) const;
CreateEaiEcsOutcome createEaiEcs(const Model::CreateEaiEcsRequest &request)const;
void createEaiEcsAsync(const Model::CreateEaiEcsRequest& request, const CreateEaiEcsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiEcsOutcomeCallable createEaiEcsCallable(const Model::CreateEaiEcsRequest& request) const;
CreateEaiJupyterOutcome createEaiJupyter(const Model::CreateEaiJupyterRequest &request)const;
void createEaiJupyterAsync(const Model::CreateEaiJupyterRequest& request, const CreateEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiJupyterOutcomeCallable createEaiJupyterCallable(const Model::CreateEaiJupyterRequest& request) const;
@@ -108,6 +137,9 @@ namespace AlibabaCloud
DetachEaiOutcome detachEai(const Model::DetachEaiRequest &request)const;
void detachEaiAsync(const Model::DetachEaiRequest& request, const DetachEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachEaiOutcomeCallable detachEaiCallable(const Model::DetachEaiRequest& request) const;
GetInstanceMetricsOutcome getInstanceMetrics(const Model::GetInstanceMetricsRequest &request)const;
void getInstanceMetricsAsync(const Model::GetInstanceMetricsRequest& request, const GetInstanceMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInstanceMetricsOutcomeCallable getInstanceMetricsCallable(const Model::GetInstanceMetricsRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,54 @@
/*
* 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_EAIS_MODEL_CHANGERESOURCEGROUPREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_CHANGERESOURCEGROUPREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT ChangeResourceGroupRequest : public RpcServiceRequest {
public:
ChangeResourceGroupRequest();
~ChangeResourceGroupRequest();
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getResourceRegionId() const;
void setResourceRegionId(const std::string &resourceRegionId);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getService() const;
void setService(const std::string &service);
private:
std::string resourceGroupId_;
std::string resourceRegionId_;
std::string resourceId_;
std::string resourceType_;
std::string service_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_CHANGERESOURCEGROUPREQUEST_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_EAIS_MODEL_CHANGERESOURCEGROUPRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_CHANGERESOURCEGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT ChangeResourceGroupResult : public ServiceResult
{
public:
ChangeResourceGroupResult();
explicit ChangeResourceGroupResult(const std::string &payload);
~ChangeResourceGroupResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CHANGERESOURCEGROUPRESULT_H_

View File

@@ -38,6 +38,8 @@ public:
void setClientInternetMaxBandwidthOut(int clientInternetMaxBandwidthOut);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getClientInstanceName() const;
void setClientInstanceName(const std::string &clientInstanceName);
int getClientInternetMaxBandwidthIn() const;
@@ -66,6 +68,7 @@ private:
std::string clientSystemDiskCategory_;
int clientInternetMaxBandwidthOut_;
std::string clientToken_;
std::string resourceGroupId_;
std::string clientInstanceName_;
int clientInternetMaxBandwidthIn_;
std::string regionId_;

View File

@@ -0,0 +1,77 @@
/*
* 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_EAIS_MODEL_CREATEEAIECIREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIECIREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT CreateEaiEciRequest : public RpcServiceRequest {
public:
struct Eci {
struct Container {
std::string image;
std::string arg;
std::string name;
std::string volumes;
std::string command;
};
Container container;
std::string volume;
std::string eipId;
std::string name;
std::string type;
};
CreateEaiEciRequest();
~CreateEaiEciRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getSecurityGroupId() const;
void setSecurityGroupId(const std::string &securityGroupId);
Eci getEci() const;
void setEci(const Eci &eci);
std::string getEaisType() const;
void setEaisType(const std::string &eaisType);
std::string getVSwitchId() const;
void setVSwitchId(const std::string &vSwitchId);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getEaisName() const;
void setEaisName(const std::string &eaisName);
private:
std::string clientToken_;
std::string securityGroupId_;
Eci eci_;
std::string eaisType_;
std::string vSwitchId_;
std::string resourceGroupId_;
std::string regionId_;
std::string eaisName_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIECIREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIECIRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIECIRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiEciResult : public ServiceResult
{
public:
CreateEaiEciResult();
explicit CreateEaiEciResult(const std::string &payload);
~CreateEaiEciResult();
std::string getClientInstanceId()const;
std::string getElasticAcceleratedInstanceId()const;
protected:
void parse(const std::string &payload);
private:
std::string clientInstanceId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIECIRESULT_H_

View File

@@ -0,0 +1,74 @@
/*
* 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_EAIS_MODEL_CREATEEAIECSREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIECSREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT CreateEaiEcsRequest : public RpcServiceRequest {
public:
struct Ecs {
std::string password;
std::string imageId;
std::string systemDiskCategory;
std::string internetMaxBandwidthOut;
std::string name;
long systemDiskSize;
std::string zoneId;
std::string type;
std::string internetMaxBandwidthIn;
};
CreateEaiEcsRequest();
~CreateEaiEcsRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getSecurityGroupId() const;
void setSecurityGroupId(const std::string &securityGroupId);
std::string getEaisType() const;
void setEaisType(const std::string &eaisType);
std::string getVSwitchId() const;
void setVSwitchId(const std::string &vSwitchId);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
Ecs getEcs() const;
void setEcs(const Ecs &ecs);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getEaisName() const;
void setEaisName(const std::string &eaisName);
private:
std::string clientToken_;
std::string securityGroupId_;
std::string eaisType_;
std::string vSwitchId_;
std::string resourceGroupId_;
Ecs ecs_;
std::string regionId_;
std::string eaisName_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIECSREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIECSRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIECSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiEcsResult : public ServiceResult
{
public:
CreateEaiEcsResult();
explicit CreateEaiEcsResult(const std::string &payload);
~CreateEaiEcsResult();
std::string getClientInstanceId()const;
std::string getElasticAcceleratedInstanceId()const;
protected:
void parse(const std::string &payload);
private:
std::string clientInstanceId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIECSRESULT_H_

View File

@@ -42,6 +42,8 @@ public:
void setEaisType(const std::string &eaisType);
std::string getVSwitchId() const;
void setVSwitchId(const std::string &vSwitchId);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<EnvironmentVar> getEnvironmentVar() const;
@@ -52,6 +54,7 @@ private:
std::string securityGroupId_;
std::string eaisType_;
std::string vSwitchId_;
std::string resourceGroupId_;
std::string regionId_;
std::vector<EnvironmentVar> environmentVar_;
};

View File

@@ -36,6 +36,8 @@ public:
void setSecurityGroupId(const std::string &securityGroupId);
std::string getVSwitchId() const;
void setVSwitchId(const std::string &vSwitchId);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
std::string getRegionId() const;
@@ -47,6 +49,7 @@ private:
std::string clientToken_;
std::string securityGroupId_;
std::string vSwitchId_;
std::string resourceGroupId_;
std::string instanceName_;
std::string regionId_;
std::string instanceType_;

View File

@@ -34,6 +34,8 @@ public:
void setElasticAcceleratedInstanceIds(const std::string &elasticAcceleratedInstanceIds);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
std::string getRegionId() const;
@@ -48,6 +50,7 @@ public:
private:
std::string elasticAcceleratedInstanceIds_;
int pageNumber_;
std::string resourceGroupId_;
std::string instanceName_;
std::string regionId_;
int pageSize_;

View File

@@ -44,6 +44,7 @@ namespace AlibabaCloud
std::string description;
std::string category;
std::string zoneId;
std::string resourceGroupId;
std::string vSwitchId;
std::string securityGroupId;
std::string startTime;

View File

@@ -0,0 +1,54 @@
/*
* 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_EAIS_MODEL_GETINSTANCEMETRICSREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_GETINSTANCEMETRICSREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT GetInstanceMetricsRequest : public RpcServiceRequest {
public:
GetInstanceMetricsRequest();
~GetInstanceMetricsRequest();
std::string getMetricType() const;
void setMetricType(const std::string &metricType);
std::string getTimeStep() const;
void setTimeStep(const std::string &timeStep);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
std::string metricType_;
std::string timeStep_;
std::string endTime_;
std::string startTime_;
std::string instanceId_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_GETINSTANCEMETRICSREQUEST_H_

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_EAIS_MODEL_GETINSTANCEMETRICSRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_GETINSTANCEMETRICSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT GetInstanceMetricsResult : public ServiceResult
{
public:
struct PodMetric
{
struct Metric
{
std::string value;
std::string time;
};
std::vector<PodMetric::Metric> metrics;
std::string podId;
};
GetInstanceMetricsResult();
explicit GetInstanceMetricsResult(const std::string &payload);
~GetInstanceMetricsResult();
std::string getInstanceId()const;
std::vector<PodMetric> getPodMetrics()const;
protected:
void parse(const std::string &payload);
private:
std::string instanceId_;
std::vector<PodMetric> podMetrics_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_GETINSTANCEMETRICSRESULT_H_

View File

@@ -87,6 +87,42 @@ EaisClient::AttachEaiOutcomeCallable EaisClient::attachEaiCallable(const AttachE
return task->get_future();
}
EaisClient::ChangeResourceGroupOutcome EaisClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ChangeResourceGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result()));
else
return ChangeResourceGroupOutcome(outcome.error());
}
void EaisClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, changeResourceGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::ChangeResourceGroupOutcomeCallable EaisClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ChangeResourceGroupOutcome()>>(
[this, request]()
{
return this->changeResourceGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::CreateEaiOutcome EaisClient::createEai(const CreateEaiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -159,6 +195,78 @@ EaisClient::CreateEaiAllOutcomeCallable EaisClient::createEaiAllCallable(const C
return task->get_future();
}
EaisClient::CreateEaiEciOutcome EaisClient::createEaiEci(const CreateEaiEciRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateEaiEciOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateEaiEciOutcome(CreateEaiEciResult(outcome.result()));
else
return CreateEaiEciOutcome(outcome.error());
}
void EaisClient::createEaiEciAsync(const CreateEaiEciRequest& request, const CreateEaiEciAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createEaiEci(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::CreateEaiEciOutcomeCallable EaisClient::createEaiEciCallable(const CreateEaiEciRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateEaiEciOutcome()>>(
[this, request]()
{
return this->createEaiEci(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::CreateEaiEcsOutcome EaisClient::createEaiEcs(const CreateEaiEcsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateEaiEcsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateEaiEcsOutcome(CreateEaiEcsResult(outcome.result()));
else
return CreateEaiEcsOutcome(outcome.error());
}
void EaisClient::createEaiEcsAsync(const CreateEaiEcsRequest& request, const CreateEaiEcsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createEaiEcs(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::CreateEaiEcsOutcomeCallable EaisClient::createEaiEcsCallable(const CreateEaiEcsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateEaiEcsOutcome()>>(
[this, request]()
{
return this->createEaiEcs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::CreateEaiJupyterOutcome EaisClient::createEaiJupyter(const CreateEaiJupyterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,3 +483,39 @@ EaisClient::DetachEaiOutcomeCallable EaisClient::detachEaiCallable(const DetachE
return task->get_future();
}
EaisClient::GetInstanceMetricsOutcome EaisClient::getInstanceMetrics(const GetInstanceMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetInstanceMetricsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetInstanceMetricsOutcome(GetInstanceMetricsResult(outcome.result()));
else
return GetInstanceMetricsOutcome(outcome.error());
}
void EaisClient::getInstanceMetricsAsync(const GetInstanceMetricsRequest& request, const GetInstanceMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getInstanceMetrics(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::GetInstanceMetricsOutcomeCallable EaisClient::getInstanceMetricsCallable(const GetInstanceMetricsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetInstanceMetricsOutcome()>>(
[this, request]()
{
return this->getInstanceMetrics(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eais/model/ChangeResourceGroupRequest.h>
using AlibabaCloud::Eais::Model::ChangeResourceGroupRequest;
ChangeResourceGroupRequest::ChangeResourceGroupRequest()
: RpcServiceRequest("eais", "2019-06-24", "ChangeResourceGroup") {
setMethod(HttpRequest::Method::Post);
}
ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {}
std::string ChangeResourceGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void ChangeResourceGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string ChangeResourceGroupRequest::getResourceRegionId() const {
return resourceRegionId_;
}
void ChangeResourceGroupRequest::setResourceRegionId(const std::string &resourceRegionId) {
resourceRegionId_ = resourceRegionId;
setParameter(std::string("ResourceRegionId"), resourceRegionId);
}
std::string ChangeResourceGroupRequest::getResourceId() const {
return resourceId_;
}
void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
std::string ChangeResourceGroupRequest::getResourceType() const {
return resourceType_;
}
void ChangeResourceGroupRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string ChangeResourceGroupRequest::getService() const {
return service_;
}
void ChangeResourceGroupRequest::setService(const std::string &service) {
service_ = service;
setParameter(std::string("Service"), service);
}

View File

@@ -0,0 +1,44 @@
/*
* 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.
*/
#include <alibabacloud/eais/model/ChangeResourceGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
ChangeResourceGroupResult::ChangeResourceGroupResult() :
ServiceResult()
{}
ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeResourceGroupResult::~ChangeResourceGroupResult()
{}
void ChangeResourceGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -61,6 +61,15 @@ void CreateEaiAllRequest::setClientToken(const std::string &clientToken) {
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateEaiAllRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaiAllRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateEaiAllRequest::getClientInstanceName() const {
return clientInstanceName_;
}

View File

@@ -0,0 +1,107 @@
/*
* 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.
*/
#include <alibabacloud/eais/model/CreateEaiEciRequest.h>
using AlibabaCloud::Eais::Model::CreateEaiEciRequest;
CreateEaiEciRequest::CreateEaiEciRequest()
: RpcServiceRequest("eais", "2019-06-24", "CreateEaiEci") {
setMethod(HttpRequest::Method::Post);
}
CreateEaiEciRequest::~CreateEaiEciRequest() {}
std::string CreateEaiEciRequest::getClientToken() const {
return clientToken_;
}
void CreateEaiEciRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateEaiEciRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void CreateEaiEciRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
CreateEaiEciRequest::Eci CreateEaiEciRequest::getEci() const {
return eci_;
}
void CreateEaiEciRequest::setEci(const CreateEaiEciRequest::Eci &eci) {
eci_ = eci;
setParameter(std::string("Eci") + ".Container.Image", eci.container.image);
setParameter(std::string("Eci") + ".Container.Arg", eci.container.arg);
setParameter(std::string("Eci") + ".Container.Name", eci.container.name);
setParameter(std::string("Eci") + ".Container.Volumes", eci.container.volumes);
setParameter(std::string("Eci") + ".Container.Command", eci.container.command);
setParameter(std::string("Eci") + ".Volume", eci.volume);
setParameter(std::string("Eci") + ".EipId", eci.eipId);
setParameter(std::string("Eci") + ".Name", eci.name);
setParameter(std::string("Eci") + ".Type", eci.type);
}
std::string CreateEaiEciRequest::getEaisType() const {
return eaisType_;
}
void CreateEaiEciRequest::setEaisType(const std::string &eaisType) {
eaisType_ = eaisType;
setParameter(std::string("EaisType"), eaisType);
}
std::string CreateEaiEciRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateEaiEciRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateEaiEciRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaiEciRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateEaiEciRequest::getRegionId() const {
return regionId_;
}
void CreateEaiEciRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateEaiEciRequest::getEaisName() const {
return eaisName_;
}
void CreateEaiEciRequest::setEaisName(const std::string &eaisName) {
eaisName_ = eaisName;
setParameter(std::string("EaisName"), eaisName);
}

View File

@@ -0,0 +1,58 @@
/*
* 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.
*/
#include <alibabacloud/eais/model/CreateEaiEciResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
CreateEaiEciResult::CreateEaiEciResult() :
ServiceResult()
{}
CreateEaiEciResult::CreateEaiEciResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEaiEciResult::~CreateEaiEciResult()
{}
void CreateEaiEciResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ElasticAcceleratedInstanceId"].isNull())
elasticAcceleratedInstanceId_ = value["ElasticAcceleratedInstanceId"].asString();
if(!value["ClientInstanceId"].isNull())
clientInstanceId_ = value["ClientInstanceId"].asString();
}
std::string CreateEaiEciResult::getClientInstanceId()const
{
return clientInstanceId_;
}
std::string CreateEaiEciResult::getElasticAcceleratedInstanceId()const
{
return elasticAcceleratedInstanceId_;
}

View File

@@ -0,0 +1,107 @@
/*
* 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.
*/
#include <alibabacloud/eais/model/CreateEaiEcsRequest.h>
using AlibabaCloud::Eais::Model::CreateEaiEcsRequest;
CreateEaiEcsRequest::CreateEaiEcsRequest()
: RpcServiceRequest("eais", "2019-06-24", "CreateEaiEcs") {
setMethod(HttpRequest::Method::Post);
}
CreateEaiEcsRequest::~CreateEaiEcsRequest() {}
std::string CreateEaiEcsRequest::getClientToken() const {
return clientToken_;
}
void CreateEaiEcsRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateEaiEcsRequest::getSecurityGroupId() const {
return securityGroupId_;
}
void CreateEaiEcsRequest::setSecurityGroupId(const std::string &securityGroupId) {
securityGroupId_ = securityGroupId;
setParameter(std::string("SecurityGroupId"), securityGroupId);
}
std::string CreateEaiEcsRequest::getEaisType() const {
return eaisType_;
}
void CreateEaiEcsRequest::setEaisType(const std::string &eaisType) {
eaisType_ = eaisType;
setParameter(std::string("EaisType"), eaisType);
}
std::string CreateEaiEcsRequest::getVSwitchId() const {
return vSwitchId_;
}
void CreateEaiEcsRequest::setVSwitchId(const std::string &vSwitchId) {
vSwitchId_ = vSwitchId;
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateEaiEcsRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaiEcsRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
CreateEaiEcsRequest::Ecs CreateEaiEcsRequest::getEcs() const {
return ecs_;
}
void CreateEaiEcsRequest::setEcs(const CreateEaiEcsRequest::Ecs &ecs) {
ecs_ = ecs;
setParameter(std::string("Ecs") + ".Password", ecs.password);
setParameter(std::string("Ecs") + ".ImageId", ecs.imageId);
setParameter(std::string("Ecs") + ".SystemDiskCategory", ecs.systemDiskCategory);
setParameter(std::string("Ecs") + ".InternetMaxBandwidthOut", ecs.internetMaxBandwidthOut);
setParameter(std::string("Ecs") + ".Name", ecs.name);
setParameter(std::string("Ecs") + ".SystemDiskSize", std::to_string(ecs.systemDiskSize));
setParameter(std::string("Ecs") + ".ZoneId", ecs.zoneId);
setParameter(std::string("Ecs") + ".Type", ecs.type);
setParameter(std::string("Ecs") + ".InternetMaxBandwidthIn", ecs.internetMaxBandwidthIn);
}
std::string CreateEaiEcsRequest::getRegionId() const {
return regionId_;
}
void CreateEaiEcsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateEaiEcsRequest::getEaisName() const {
return eaisName_;
}
void CreateEaiEcsRequest::setEaisName(const std::string &eaisName) {
eaisName_ = eaisName;
setParameter(std::string("EaisName"), eaisName);
}

View File

@@ -0,0 +1,58 @@
/*
* 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.
*/
#include <alibabacloud/eais/model/CreateEaiEcsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
CreateEaiEcsResult::CreateEaiEcsResult() :
ServiceResult()
{}
CreateEaiEcsResult::CreateEaiEcsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEaiEcsResult::~CreateEaiEcsResult()
{}
void CreateEaiEcsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ElasticAcceleratedInstanceId"].isNull())
elasticAcceleratedInstanceId_ = value["ElasticAcceleratedInstanceId"].asString();
if(!value["ClientInstanceId"].isNull())
clientInstanceId_ = value["ClientInstanceId"].asString();
}
std::string CreateEaiEcsResult::getClientInstanceId()const
{
return clientInstanceId_;
}
std::string CreateEaiEcsResult::getElasticAcceleratedInstanceId()const
{
return elasticAcceleratedInstanceId_;
}

View File

@@ -61,6 +61,15 @@ void CreateEaiJupyterRequest::setVSwitchId(const std::string &vSwitchId) {
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateEaiJupyterRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaiJupyterRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateEaiJupyterRequest::getRegionId() const {
return regionId_;
}

View File

@@ -52,6 +52,15 @@ void CreateEaiRequest::setVSwitchId(const std::string &vSwitchId) {
setParameter(std::string("VSwitchId"), vSwitchId);
}
std::string CreateEaiRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaiRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateEaiRequest::getInstanceName() const {
return instanceName_;
}

View File

@@ -43,6 +43,15 @@ void DescribeEaisRequest::setPageNumber(int pageNumber) {
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeEaisRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeEaisRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeEaisRequest::getInstanceName() const {
return instanceName_;
}

View File

@@ -75,6 +75,8 @@ void DescribeEaisResult::parse(const std::string &payload)
instancesObject.securityGroupId = valueInstancesInstance["SecurityGroupId"].asString();
if(!valueInstancesInstance["StartTime"].isNull())
instancesObject.startTime = valueInstancesInstance["StartTime"].asString();
if(!valueInstancesInstance["ResourceGroupId"].isNull())
instancesObject.resourceGroupId = valueInstancesInstance["ResourceGroupId"].asString();
auto allTagsNode = valueInstancesInstance["Tags"]["Tag"];
for (auto valueInstancesInstanceTagsTag : allTagsNode)
{

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/eais/model/GetInstanceMetricsRequest.h>
using AlibabaCloud::Eais::Model::GetInstanceMetricsRequest;
GetInstanceMetricsRequest::GetInstanceMetricsRequest()
: RpcServiceRequest("eais", "2019-06-24", "GetInstanceMetrics") {
setMethod(HttpRequest::Method::Post);
}
GetInstanceMetricsRequest::~GetInstanceMetricsRequest() {}
std::string GetInstanceMetricsRequest::getMetricType() const {
return metricType_;
}
void GetInstanceMetricsRequest::setMetricType(const std::string &metricType) {
metricType_ = metricType;
setParameter(std::string("MetricType"), metricType);
}
std::string GetInstanceMetricsRequest::getTimeStep() const {
return timeStep_;
}
void GetInstanceMetricsRequest::setTimeStep(const std::string &timeStep) {
timeStep_ = timeStep;
setParameter(std::string("TimeStep"), timeStep);
}
std::string GetInstanceMetricsRequest::getEndTime() const {
return endTime_;
}
void GetInstanceMetricsRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string GetInstanceMetricsRequest::getStartTime() const {
return startTime_;
}
void GetInstanceMetricsRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string GetInstanceMetricsRequest::getInstanceId() const {
return instanceId_;
}
void GetInstanceMetricsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,74 @@
/*
* 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.
*/
#include <alibabacloud/eais/model/GetInstanceMetricsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
GetInstanceMetricsResult::GetInstanceMetricsResult() :
ServiceResult()
{}
GetInstanceMetricsResult::GetInstanceMetricsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetInstanceMetricsResult::~GetInstanceMetricsResult()
{}
void GetInstanceMetricsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPodMetricsNode = value["PodMetrics"]["PodMetric"];
for (auto valuePodMetricsPodMetric : allPodMetricsNode)
{
PodMetric podMetricsObject;
if(!valuePodMetricsPodMetric["PodId"].isNull())
podMetricsObject.podId = valuePodMetricsPodMetric["PodId"].asString();
auto allMetricsNode = valuePodMetricsPodMetric["Metrics"]["Metric"];
for (auto valuePodMetricsPodMetricMetricsMetric : allMetricsNode)
{
PodMetric::Metric metricsObject;
if(!valuePodMetricsPodMetricMetricsMetric["Time"].isNull())
metricsObject.time = valuePodMetricsPodMetricMetricsMetric["Time"].asString();
if(!valuePodMetricsPodMetricMetricsMetric["Value"].isNull())
metricsObject.value = valuePodMetricsPodMetricMetricsMetric["Value"].asString();
podMetricsObject.metrics.push_back(metricsObject);
}
podMetrics_.push_back(podMetricsObject);
}
if(!value["InstanceId"].isNull())
instanceId_ = value["InstanceId"].asString();
}
std::string GetInstanceMetricsResult::getInstanceId()const
{
return instanceId_;
}
std::vector<GetInstanceMetricsResult::PodMetric> GetInstanceMetricsResult::getPodMetrics()const
{
return podMetrics_;
}