Support ecs instance diagnostic features.

This commit is contained in:
sdk-team
2022-08-02 03:05:23 +00:00
parent 192d947607
commit 5e824d55da
55 changed files with 2461 additions and 37 deletions

View File

@@ -1,3 +1,6 @@
2022-08-02 Version: 1.36.1216
- Support ecs instance diagnostic features.
2022-08-01 Version: 1.36.1215
- Update CreateKey and CreateSecret.

View File

@@ -1 +1 @@
1.36.1215
1.36.1216

View File

@@ -97,6 +97,10 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/CreateDemandResult.h
include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h
include/alibabacloud/ecs/model/CreateDeploymentSetResult.h
include/alibabacloud/ecs/model/CreateDiagnosticMetricSetRequest.h
include/alibabacloud/ecs/model/CreateDiagnosticMetricSetResult.h
include/alibabacloud/ecs/model/CreateDiagnosticReportRequest.h
include/alibabacloud/ecs/model/CreateDiagnosticReportResult.h
include/alibabacloud/ecs/model/CreateDiskRequest.h
include/alibabacloud/ecs/model/CreateDiskResult.h
include/alibabacloud/ecs/model/CreateElasticityAssuranceRequest.h
@@ -169,6 +173,10 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DeleteDemandResult.h
include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h
include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h
include/alibabacloud/ecs/model/DeleteDiagnosticMetricSetsRequest.h
include/alibabacloud/ecs/model/DeleteDiagnosticMetricSetsResult.h
include/alibabacloud/ecs/model/DeleteDiagnosticReportsRequest.h
include/alibabacloud/ecs/model/DeleteDiagnosticReportsResult.h
include/alibabacloud/ecs/model/DeleteDiskRequest.h
include/alibabacloud/ecs/model/DeleteDiskResult.h
include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h
@@ -271,6 +279,12 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DescribeDeploymentSetSupportedInstanceTypeFamilyResult.h
include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h
include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h
include/alibabacloud/ecs/model/DescribeDiagnosticMetricSetsRequest.h
include/alibabacloud/ecs/model/DescribeDiagnosticMetricSetsResult.h
include/alibabacloud/ecs/model/DescribeDiagnosticMetricsRequest.h
include/alibabacloud/ecs/model/DescribeDiagnosticMetricsResult.h
include/alibabacloud/ecs/model/DescribeDiagnosticReportsRequest.h
include/alibabacloud/ecs/model/DescribeDiagnosticReportsResult.h
include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h
include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h
include/alibabacloud/ecs/model/DescribeDisksRequest.h
@@ -513,6 +527,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/ModifyDemandResult.h
include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h
include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h
include/alibabacloud/ecs/model/ModifyDiagnosticMetricSetRequest.h
include/alibabacloud/ecs/model/ModifyDiagnosticMetricSetResult.h
include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h
include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h
include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h
@@ -770,6 +786,10 @@ set(ecs_src
src/model/CreateDemandResult.cc
src/model/CreateDeploymentSetRequest.cc
src/model/CreateDeploymentSetResult.cc
src/model/CreateDiagnosticMetricSetRequest.cc
src/model/CreateDiagnosticMetricSetResult.cc
src/model/CreateDiagnosticReportRequest.cc
src/model/CreateDiagnosticReportResult.cc
src/model/CreateDiskRequest.cc
src/model/CreateDiskResult.cc
src/model/CreateElasticityAssuranceRequest.cc
@@ -842,6 +862,10 @@ set(ecs_src
src/model/DeleteDemandResult.cc
src/model/DeleteDeploymentSetRequest.cc
src/model/DeleteDeploymentSetResult.cc
src/model/DeleteDiagnosticMetricSetsRequest.cc
src/model/DeleteDiagnosticMetricSetsResult.cc
src/model/DeleteDiagnosticReportsRequest.cc
src/model/DeleteDiagnosticReportsResult.cc
src/model/DeleteDiskRequest.cc
src/model/DeleteDiskResult.cc
src/model/DeleteForwardEntryRequest.cc
@@ -944,6 +968,12 @@ set(ecs_src
src/model/DescribeDeploymentSetSupportedInstanceTypeFamilyResult.cc
src/model/DescribeDeploymentSetsRequest.cc
src/model/DescribeDeploymentSetsResult.cc
src/model/DescribeDiagnosticMetricSetsRequest.cc
src/model/DescribeDiagnosticMetricSetsResult.cc
src/model/DescribeDiagnosticMetricsRequest.cc
src/model/DescribeDiagnosticMetricsResult.cc
src/model/DescribeDiagnosticReportsRequest.cc
src/model/DescribeDiagnosticReportsResult.cc
src/model/DescribeDiskMonitorDataRequest.cc
src/model/DescribeDiskMonitorDataResult.cc
src/model/DescribeDisksRequest.cc
@@ -1186,6 +1216,8 @@ set(ecs_src
src/model/ModifyDemandResult.cc
src/model/ModifyDeploymentSetAttributeRequest.cc
src/model/ModifyDeploymentSetAttributeResult.cc
src/model/ModifyDiagnosticMetricSetRequest.cc
src/model/ModifyDiagnosticMetricSetResult.cc
src/model/ModifyDiskAttributeRequest.cc
src/model/ModifyDiskAttributeResult.cc
src/model/ModifyDiskChargeTypeRequest.cc

View File

@@ -98,6 +98,10 @@
#include "model/CreateDemandResult.h"
#include "model/CreateDeploymentSetRequest.h"
#include "model/CreateDeploymentSetResult.h"
#include "model/CreateDiagnosticMetricSetRequest.h"
#include "model/CreateDiagnosticMetricSetResult.h"
#include "model/CreateDiagnosticReportRequest.h"
#include "model/CreateDiagnosticReportResult.h"
#include "model/CreateDiskRequest.h"
#include "model/CreateDiskResult.h"
#include "model/CreateElasticityAssuranceRequest.h"
@@ -170,6 +174,10 @@
#include "model/DeleteDemandResult.h"
#include "model/DeleteDeploymentSetRequest.h"
#include "model/DeleteDeploymentSetResult.h"
#include "model/DeleteDiagnosticMetricSetsRequest.h"
#include "model/DeleteDiagnosticMetricSetsResult.h"
#include "model/DeleteDiagnosticReportsRequest.h"
#include "model/DeleteDiagnosticReportsResult.h"
#include "model/DeleteDiskRequest.h"
#include "model/DeleteDiskResult.h"
#include "model/DeleteForwardEntryRequest.h"
@@ -272,6 +280,12 @@
#include "model/DescribeDeploymentSetSupportedInstanceTypeFamilyResult.h"
#include "model/DescribeDeploymentSetsRequest.h"
#include "model/DescribeDeploymentSetsResult.h"
#include "model/DescribeDiagnosticMetricSetsRequest.h"
#include "model/DescribeDiagnosticMetricSetsResult.h"
#include "model/DescribeDiagnosticMetricsRequest.h"
#include "model/DescribeDiagnosticMetricsResult.h"
#include "model/DescribeDiagnosticReportsRequest.h"
#include "model/DescribeDiagnosticReportsResult.h"
#include "model/DescribeDiskMonitorDataRequest.h"
#include "model/DescribeDiskMonitorDataResult.h"
#include "model/DescribeDisksRequest.h"
@@ -514,6 +528,8 @@
#include "model/ModifyDemandResult.h"
#include "model/ModifyDeploymentSetAttributeRequest.h"
#include "model/ModifyDeploymentSetAttributeResult.h"
#include "model/ModifyDiagnosticMetricSetRequest.h"
#include "model/ModifyDiagnosticMetricSetResult.h"
#include "model/ModifyDiskAttributeRequest.h"
#include "model/ModifyDiskAttributeResult.h"
#include "model/ModifyDiskChargeTypeRequest.h"
@@ -815,6 +831,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateDeploymentSetResult> CreateDeploymentSetOutcome;
typedef std::future<CreateDeploymentSetOutcome> CreateDeploymentSetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDeploymentSetRequest&, const CreateDeploymentSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeploymentSetAsyncHandler;
typedef Outcome<Error, Model::CreateDiagnosticMetricSetResult> CreateDiagnosticMetricSetOutcome;
typedef std::future<CreateDiagnosticMetricSetOutcome> CreateDiagnosticMetricSetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDiagnosticMetricSetRequest&, const CreateDiagnosticMetricSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDiagnosticMetricSetAsyncHandler;
typedef Outcome<Error, Model::CreateDiagnosticReportResult> CreateDiagnosticReportOutcome;
typedef std::future<CreateDiagnosticReportOutcome> CreateDiagnosticReportOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDiagnosticReportRequest&, const CreateDiagnosticReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDiagnosticReportAsyncHandler;
typedef Outcome<Error, Model::CreateDiskResult> CreateDiskOutcome;
typedef std::future<CreateDiskOutcome> CreateDiskOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateDiskRequest&, const CreateDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDiskAsyncHandler;
@@ -923,6 +945,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteDeploymentSetResult> DeleteDeploymentSetOutcome;
typedef std::future<DeleteDeploymentSetOutcome> DeleteDeploymentSetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDeploymentSetRequest&, const DeleteDeploymentSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeploymentSetAsyncHandler;
typedef Outcome<Error, Model::DeleteDiagnosticMetricSetsResult> DeleteDiagnosticMetricSetsOutcome;
typedef std::future<DeleteDiagnosticMetricSetsOutcome> DeleteDiagnosticMetricSetsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDiagnosticMetricSetsRequest&, const DeleteDiagnosticMetricSetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiagnosticMetricSetsAsyncHandler;
typedef Outcome<Error, Model::DeleteDiagnosticReportsResult> DeleteDiagnosticReportsOutcome;
typedef std::future<DeleteDiagnosticReportsOutcome> DeleteDiagnosticReportsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDiagnosticReportsRequest&, const DeleteDiagnosticReportsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiagnosticReportsAsyncHandler;
typedef Outcome<Error, Model::DeleteDiskResult> DeleteDiskOutcome;
typedef std::future<DeleteDiskOutcome> DeleteDiskOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteDiskRequest&, const DeleteDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiskAsyncHandler;
@@ -1076,6 +1104,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDeploymentSetsResult> DescribeDeploymentSetsOutcome;
typedef std::future<DescribeDeploymentSetsOutcome> DescribeDeploymentSetsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDeploymentSetsRequest&, const DescribeDeploymentSetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeploymentSetsAsyncHandler;
typedef Outcome<Error, Model::DescribeDiagnosticMetricSetsResult> DescribeDiagnosticMetricSetsOutcome;
typedef std::future<DescribeDiagnosticMetricSetsOutcome> DescribeDiagnosticMetricSetsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDiagnosticMetricSetsRequest&, const DescribeDiagnosticMetricSetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDiagnosticMetricSetsAsyncHandler;
typedef Outcome<Error, Model::DescribeDiagnosticMetricsResult> DescribeDiagnosticMetricsOutcome;
typedef std::future<DescribeDiagnosticMetricsOutcome> DescribeDiagnosticMetricsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDiagnosticMetricsRequest&, const DescribeDiagnosticMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDiagnosticMetricsAsyncHandler;
typedef Outcome<Error, Model::DescribeDiagnosticReportsResult> DescribeDiagnosticReportsOutcome;
typedef std::future<DescribeDiagnosticReportsOutcome> DescribeDiagnosticReportsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDiagnosticReportsRequest&, const DescribeDiagnosticReportsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDiagnosticReportsAsyncHandler;
typedef Outcome<Error, Model::DescribeDiskMonitorDataResult> DescribeDiskMonitorDataOutcome;
typedef std::future<DescribeDiskMonitorDataOutcome> DescribeDiskMonitorDataOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeDiskMonitorDataRequest&, const DescribeDiskMonitorDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDiskMonitorDataAsyncHandler;
@@ -1439,6 +1476,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDeploymentSetAttributeResult> ModifyDeploymentSetAttributeOutcome;
typedef std::future<ModifyDeploymentSetAttributeOutcome> ModifyDeploymentSetAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDeploymentSetAttributeRequest&, const ModifyDeploymentSetAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeploymentSetAttributeAsyncHandler;
typedef Outcome<Error, Model::ModifyDiagnosticMetricSetResult> ModifyDiagnosticMetricSetOutcome;
typedef std::future<ModifyDiagnosticMetricSetOutcome> ModifyDiagnosticMetricSetOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDiagnosticMetricSetRequest&, const ModifyDiagnosticMetricSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDiagnosticMetricSetAsyncHandler;
typedef Outcome<Error, Model::ModifyDiskAttributeResult> ModifyDiskAttributeOutcome;
typedef std::future<ModifyDiskAttributeOutcome> ModifyDiskAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyDiskAttributeRequest&, const ModifyDiskAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDiskAttributeAsyncHandler;
@@ -1825,6 +1865,12 @@ namespace AlibabaCloud
CreateDeploymentSetOutcome createDeploymentSet(const Model::CreateDeploymentSetRequest &request)const;
void createDeploymentSetAsync(const Model::CreateDeploymentSetRequest& request, const CreateDeploymentSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDeploymentSetOutcomeCallable createDeploymentSetCallable(const Model::CreateDeploymentSetRequest& request) const;
CreateDiagnosticMetricSetOutcome createDiagnosticMetricSet(const Model::CreateDiagnosticMetricSetRequest &request)const;
void createDiagnosticMetricSetAsync(const Model::CreateDiagnosticMetricSetRequest& request, const CreateDiagnosticMetricSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDiagnosticMetricSetOutcomeCallable createDiagnosticMetricSetCallable(const Model::CreateDiagnosticMetricSetRequest& request) const;
CreateDiagnosticReportOutcome createDiagnosticReport(const Model::CreateDiagnosticReportRequest &request)const;
void createDiagnosticReportAsync(const Model::CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDiagnosticReportOutcomeCallable createDiagnosticReportCallable(const Model::CreateDiagnosticReportRequest& request) const;
CreateDiskOutcome createDisk(const Model::CreateDiskRequest &request)const;
void createDiskAsync(const Model::CreateDiskRequest& request, const CreateDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDiskOutcomeCallable createDiskCallable(const Model::CreateDiskRequest& request) const;
@@ -1933,6 +1979,12 @@ namespace AlibabaCloud
DeleteDeploymentSetOutcome deleteDeploymentSet(const Model::DeleteDeploymentSetRequest &request)const;
void deleteDeploymentSetAsync(const Model::DeleteDeploymentSetRequest& request, const DeleteDeploymentSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDeploymentSetOutcomeCallable deleteDeploymentSetCallable(const Model::DeleteDeploymentSetRequest& request) const;
DeleteDiagnosticMetricSetsOutcome deleteDiagnosticMetricSets(const Model::DeleteDiagnosticMetricSetsRequest &request)const;
void deleteDiagnosticMetricSetsAsync(const Model::DeleteDiagnosticMetricSetsRequest& request, const DeleteDiagnosticMetricSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDiagnosticMetricSetsOutcomeCallable deleteDiagnosticMetricSetsCallable(const Model::DeleteDiagnosticMetricSetsRequest& request) const;
DeleteDiagnosticReportsOutcome deleteDiagnosticReports(const Model::DeleteDiagnosticReportsRequest &request)const;
void deleteDiagnosticReportsAsync(const Model::DeleteDiagnosticReportsRequest& request, const DeleteDiagnosticReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDiagnosticReportsOutcomeCallable deleteDiagnosticReportsCallable(const Model::DeleteDiagnosticReportsRequest& request) const;
DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const;
void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const;
@@ -2086,6 +2138,15 @@ namespace AlibabaCloud
DescribeDeploymentSetsOutcome describeDeploymentSets(const Model::DescribeDeploymentSetsRequest &request)const;
void describeDeploymentSetsAsync(const Model::DescribeDeploymentSetsRequest& request, const DescribeDeploymentSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDeploymentSetsOutcomeCallable describeDeploymentSetsCallable(const Model::DescribeDeploymentSetsRequest& request) const;
DescribeDiagnosticMetricSetsOutcome describeDiagnosticMetricSets(const Model::DescribeDiagnosticMetricSetsRequest &request)const;
void describeDiagnosticMetricSetsAsync(const Model::DescribeDiagnosticMetricSetsRequest& request, const DescribeDiagnosticMetricSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDiagnosticMetricSetsOutcomeCallable describeDiagnosticMetricSetsCallable(const Model::DescribeDiagnosticMetricSetsRequest& request) const;
DescribeDiagnosticMetricsOutcome describeDiagnosticMetrics(const Model::DescribeDiagnosticMetricsRequest &request)const;
void describeDiagnosticMetricsAsync(const Model::DescribeDiagnosticMetricsRequest& request, const DescribeDiagnosticMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDiagnosticMetricsOutcomeCallable describeDiagnosticMetricsCallable(const Model::DescribeDiagnosticMetricsRequest& request) const;
DescribeDiagnosticReportsOutcome describeDiagnosticReports(const Model::DescribeDiagnosticReportsRequest &request)const;
void describeDiagnosticReportsAsync(const Model::DescribeDiagnosticReportsRequest& request, const DescribeDiagnosticReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDiagnosticReportsOutcomeCallable describeDiagnosticReportsCallable(const Model::DescribeDiagnosticReportsRequest& request) const;
DescribeDiskMonitorDataOutcome describeDiskMonitorData(const Model::DescribeDiskMonitorDataRequest &request)const;
void describeDiskMonitorDataAsync(const Model::DescribeDiskMonitorDataRequest& request, const DescribeDiskMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDiskMonitorDataOutcomeCallable describeDiskMonitorDataCallable(const Model::DescribeDiskMonitorDataRequest& request) const;
@@ -2449,6 +2510,9 @@ namespace AlibabaCloud
ModifyDeploymentSetAttributeOutcome modifyDeploymentSetAttribute(const Model::ModifyDeploymentSetAttributeRequest &request)const;
void modifyDeploymentSetAttributeAsync(const Model::ModifyDeploymentSetAttributeRequest& request, const ModifyDeploymentSetAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeploymentSetAttributeOutcomeCallable modifyDeploymentSetAttributeCallable(const Model::ModifyDeploymentSetAttributeRequest& request) const;
ModifyDiagnosticMetricSetOutcome modifyDiagnosticMetricSet(const Model::ModifyDiagnosticMetricSetRequest &request)const;
void modifyDiagnosticMetricSetAsync(const Model::ModifyDiagnosticMetricSetRequest& request, const ModifyDiagnosticMetricSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDiagnosticMetricSetOutcomeCallable modifyDiagnosticMetricSetCallable(const Model::ModifyDiagnosticMetricSetRequest& request) const;
ModifyDiskAttributeOutcome modifyDiskAttribute(const Model::ModifyDiskAttributeRequest &request)const;
void modifyDiskAttributeAsync(const Model::ModifyDiskAttributeRequest& request, const ModifyDiskAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDiskAttributeOutcomeCallable modifyDiskAttributeCallable(const Model::ModifyDiskAttributeRequest& request) const;

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_ECS_MODEL_CREATEDIAGNOSTICMETRICSETREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICMETRICSETREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT CreateDiagnosticMetricSetRequest : public RpcServiceRequest {
public:
CreateDiagnosticMetricSetRequest();
~CreateDiagnosticMetricSetRequest();
std::vector<std::string> getMetricIds() const;
void setMetricIds(const std::vector<std::string> &metricIds);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getMetricSetName() const;
void setMetricSetName(const std::string &metricSetName);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::vector<std::string> metricIds_;
std::string description_;
std::string metricSetName_;
std::string resourceType_;
std::string regionId_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICMETRICSETREQUEST_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_CREATEDIAGNOSTICMETRICSETRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICMETRICSETRESULT_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 CreateDiagnosticMetricSetResult : public ServiceResult
{
public:
CreateDiagnosticMetricSetResult();
explicit CreateDiagnosticMetricSetResult(const std::string &payload);
~CreateDiagnosticMetricSetResult();
std::string getMetricSetId()const;
protected:
void parse(const std::string &payload);
private:
std::string metricSetId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICMETRICSETRESULT_H_

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_ECS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT CreateDiagnosticReportRequest : public RpcServiceRequest {
public:
CreateDiagnosticReportRequest();
~CreateDiagnosticReportRequest();
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getMetricSetId() const;
void setMetricSetId(const std::string &metricSetId);
std::string getEndTime() const;
void setEndTime(const std::string &endTime);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string resourceId_;
std::string metricSetId_;
std::string endTime_;
std::string startTime_;
std::string regionId_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICREPORTREQUEST_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_CREATEDIAGNOSTICREPORTRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICREPORTRESULT_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 CreateDiagnosticReportResult : public ServiceResult
{
public:
CreateDiagnosticReportResult();
explicit CreateDiagnosticReportResult(const std::string &payload);
~CreateDiagnosticReportResult();
std::string getReportId()const;
protected:
void parse(const std::string &payload);
private:
std::string reportId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDIAGNOSTICREPORTRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* 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_DELETEDIAGNOSTICMETRICSETSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICMETRICSETSREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DeleteDiagnosticMetricSetsRequest : public RpcServiceRequest {
public:
DeleteDiagnosticMetricSetsRequest();
~DeleteDiagnosticMetricSetsRequest();
std::vector<std::string> getMetricSetIds() const;
void setMetricSetIds(const std::vector<std::string> &metricSetIds);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::vector<std::string> metricSetIds_;
std::string regionId_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICMETRICSETSREQUEST_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_DELETEDIAGNOSTICMETRICSETSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICMETRICSETSRESULT_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 DeleteDiagnosticMetricSetsResult : public ServiceResult
{
public:
DeleteDiagnosticMetricSetsResult();
explicit DeleteDiagnosticMetricSetsResult(const std::string &payload);
~DeleteDiagnosticMetricSetsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICMETRICSETSRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* 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_DELETEDIAGNOSTICREPORTSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICREPORTSREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DeleteDiagnosticReportsRequest : public RpcServiceRequest {
public:
DeleteDiagnosticReportsRequest();
~DeleteDiagnosticReportsRequest();
std::vector<std::string> getReportIds() const;
void setReportIds(const std::vector<std::string> &reportIds);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::vector<std::string> reportIds_;
std::string regionId_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICREPORTSREQUEST_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_DELETEDIAGNOSTICREPORTSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICREPORTSRESULT_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 DeleteDiagnosticReportsResult : public ServiceResult
{
public:
DeleteDiagnosticReportsResult();
explicit DeleteDiagnosticReportsResult(const std::string &payload);
~DeleteDiagnosticReportsResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDIAGNOSTICREPORTSRESULT_H_

View File

@@ -28,6 +28,10 @@ namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DescribeCommandsRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
DescribeCommandsRequest();
~DescribeCommandsRequest();
long getResourceOwnerId() const;
@@ -48,6 +52,8 @@ public:
void setContentEncoding(const std::string &contentEncoding);
long getPageSize() const;
void setPageSize(long pageSize);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
bool getLatest() const;
void setLatest(bool latest);
std::string getResourceOwnerAccount() const;
@@ -69,6 +75,7 @@ private:
std::string provider_;
std::string contentEncoding_;
long pageSize_;
std::vector<Tag> tag_;
bool latest_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -42,6 +42,11 @@ namespace AlibabaCloud
std::string parameterName;
std::vector<std::string> possibleValues;
};
struct Tag
{
std::string tagKey;
std::string tagValue;
};
std::vector<Command::ParameterDefinition> parameterDefinitions;
std::string description;
std::string category;
@@ -58,6 +63,7 @@ namespace AlibabaCloud
bool latest;
bool enableParameter;
std::string commandId;
std::vector<Command::Tag> tags;
};

View File

@@ -0,0 +1,57 @@
/*
* 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_DESCRIBEDIAGNOSTICMETRICSETSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSETSREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DescribeDiagnosticMetricSetsRequest : public RpcServiceRequest {
public:
DescribeDiagnosticMetricSetsRequest();
~DescribeDiagnosticMetricSetsRequest();
std::vector<std::string> getMetricSetIds() const;
void setMetricSetIds(const std::vector<std::string> &metricSetIds);
std::string getType() const;
void setType(const std::string &type);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::vector<std::string> metricSetIds_;
std::string type_;
std::string regionId_;
std::string nextToken_;
std::string resourceType_;
int maxResults_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSETSREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* 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_DESCRIBEDIAGNOSTICMETRICSETSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSETSRESULT_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 DescribeDiagnosticMetricSetsResult : public ServiceResult
{
public:
struct MetricSet
{
std::string type;
std::string description;
std::vector<std::string> metricIds;
std::string metricSetId;
std::string resourceType;
std::string metricSetName;
};
DescribeDiagnosticMetricSetsResult();
explicit DescribeDiagnosticMetricSetsResult(const std::string &payload);
~DescribeDiagnosticMetricSetsResult();
std::string getNextToken()const;
std::vector<MetricSet> getMetricSets()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<MetricSet> metricSets_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSETSRESULT_H_

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_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DescribeDiagnosticMetricsRequest : public RpcServiceRequest {
public:
DescribeDiagnosticMetricsRequest();
~DescribeDiagnosticMetricsRequest();
std::vector<std::string> getMetricIds() const;
void setMetricIds(const std::vector<std::string> &metricIds);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::vector<std::string> metricIds_;
std::string resourceType_;
std::string regionId_;
std::string nextToken_;
int maxResults_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSREQUEST_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_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSRESULT_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 DescribeDiagnosticMetricsResult : public ServiceResult
{
public:
struct Metric
{
std::string metricName;
std::string metricId;
std::string description;
std::string resourceType;
bool guestMetric;
std::string supportedOperatingSystem;
std::string metricCategory;
};
DescribeDiagnosticMetricsResult();
explicit DescribeDiagnosticMetricsResult(const std::string &payload);
~DescribeDiagnosticMetricsResult();
std::vector<Metric> getMetrics()const;
std::string getNextToken()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Metric> metrics_;
std::string nextToken_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICMETRICSRESULT_H_

View File

@@ -0,0 +1,60 @@
/*
* 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_DESCRIBEDIAGNOSTICREPORTSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTSREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DescribeDiagnosticReportsRequest : public RpcServiceRequest {
public:
DescribeDiagnosticReportsRequest();
~DescribeDiagnosticReportsRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getSeverity() const;
void setSeverity(const std::string &severity);
std::vector<std::string> getReportIds() const;
void setReportIds(const std::vector<std::string> &reportIds);
int getMaxResults() const;
void setMaxResults(int maxResults);
std::string getStatus() const;
void setStatus(const std::string &status);
std::vector<std::string> getResourceIds() const;
void setResourceIds(const std::vector<std::string> &resourceIds);
private:
std::string regionId_;
std::string nextToken_;
std::string severity_;
std::vector<std::string> reportIds_;
int maxResults_;
std::string status_;
std::vector<std::string> resourceIds_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTSREQUEST_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_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTSRESULT_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 DescribeDiagnosticReportsResult : public ServiceResult
{
public:
struct Report
{
struct Issue
{
std::string metricId;
std::string severity;
std::string issueId;
std::string metricCategory;
};
std::string status;
std::string endTime;
std::string resourceId;
std::vector<Report::Issue> issues;
std::string metricSetId;
std::string startTime;
std::string creationTime;
std::string reportId;
std::string resourceType;
std::string severity;
std::string finishedTime;
};
DescribeDiagnosticReportsResult();
explicit DescribeDiagnosticReportsResult(const std::string &payload);
~DescribeDiagnosticReportsResult();
std::string getNextToken()const;
std::vector<Report> getReports()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<Report> reports_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDIAGNOSTICREPORTSRESULT_H_

View File

@@ -28,6 +28,10 @@ namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
DescribeInvocationResultsRequest();
~DescribeInvocationResultsRequest();
long getResourceOwnerId() const;
@@ -42,6 +46,8 @@ public:
void setContentEncoding(const std::string &contentEncoding);
long getPageSize() const;
void setPageSize(long pageSize);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getInvokeId() const;
void setInvokeId(const std::string &invokeId);
std::string getResourceOwnerAccount() const;
@@ -64,6 +70,7 @@ private:
std::string regionId_;
std::string contentEncoding_;
long pageSize_;
std::vector<Tag> tag_;
std::string invokeId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;

View File

@@ -36,6 +36,11 @@ namespace AlibabaCloud
{
struct InvocationResult
{
struct Tag
{
std::string tagKey;
std::string tagValue;
};
int dropped;
std::string invocationStatus;
std::string instanceId;
@@ -49,6 +54,7 @@ namespace AlibabaCloud
std::string output;
std::string commandId;
std::string errorCode;
std::vector<InvocationResult::Tag> tags;
std::string invokeId;
std::string stopTime;
};

View File

@@ -28,6 +28,10 @@ namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
DescribeInvocationsRequest();
~DescribeInvocationsRequest();
long getResourceOwnerId() const;
@@ -48,6 +52,8 @@ public:
void setRepeatMode(const std::string &repeatMode);
long getPageSize() const;
void setPageSize(long pageSize);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getInvokeId() const;
void setInvokeId(const std::string &invokeId);
bool getTimed() const;
@@ -75,6 +81,7 @@ private:
std::string contentEncoding_;
std::string repeatMode_;
long pageSize_;
std::vector<Tag> tag_;
std::string invokeId_;
bool timed_;
std::string commandName_;

View File

@@ -52,6 +52,11 @@ namespace AlibabaCloud
std::string errorCode;
std::string stopTime;
};
struct Tag
{
std::string tagKey;
std::string tagValue;
};
std::string invocationStatus;
std::string parameters;
bool timed;
@@ -68,6 +73,7 @@ namespace AlibabaCloud
std::string frequency;
std::string commandId;
std::string commandName;
std::vector<Invocation::Tag> tags;
std::string invokeId;
};

View File

@@ -0,0 +1,57 @@
/*
* 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_MODIFYDIAGNOSTICMETRICSETREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYDIAGNOSTICMETRICSETREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT ModifyDiagnosticMetricSetRequest : public RpcServiceRequest {
public:
ModifyDiagnosticMetricSetRequest();
~ModifyDiagnosticMetricSetRequest();
std::vector<std::string> getMetricIds() const;
void setMetricIds(const std::vector<std::string> &metricIds);
std::string getMetricSetId() const;
void setMetricSetId(const std::string &metricSetId);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getMetricSetName() const;
void setMetricSetName(const std::string &metricSetName);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
private:
std::vector<std::string> metricIds_;
std::string metricSetId_;
std::string description_;
std::string metricSetName_;
std::string regionId_;
std::string resourceType_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDIAGNOSTICMETRICSETREQUEST_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_MODIFYDIAGNOSTICMETRICSETRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYDIAGNOSTICMETRICSETRESULT_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 ModifyDiagnosticMetricSetResult : public ServiceResult
{
public:
ModifyDiagnosticMetricSetResult();
explicit ModifyDiagnosticMetricSetResult(const std::string &payload);
~ModifyDiagnosticMetricSetResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDIAGNOSTICMETRICSETRESULT_H_

View File

@@ -46,12 +46,12 @@ public:
void setDescription(const std::string &description);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getPolicy() const;
void setPolicy(const std::string &policy);
std::string getIpv6DestCidrIp() const;
void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
std::string getIpv6SourceCidrIp() const;
void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
std::string getPolicy() const;
void setPolicy(const std::string &policy);
std::string getPortRange() const;
void setPortRange(const std::string &portRange);
std::string getResourceOwnerAccount() const;
@@ -66,10 +66,10 @@ public:
void setDestGroupId(const std::string &destGroupId);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getDestGroupOwnerAccount() const;
void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount);
std::string getPriority() const;
void setPriority(const std::string &priority);
std::string getDestGroupOwnerAccount() const;
void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount);
std::string getDestCidrIp() const;
void setDestCidrIp(const std::string &destCidrIp);
long getDestGroupOwnerId() const;
@@ -84,9 +84,9 @@ private:
std::string securityGroupId_;
std::string description_;
std::string regionId_;
std::string policy_;
std::string ipv6DestCidrIp_;
std::string ipv6SourceCidrIp_;
std::string policy_;
std::string portRange_;
std::string resourceOwnerAccount_;
std::string ipProtocol_;
@@ -94,8 +94,8 @@ private:
std::string sourceCidrIp_;
std::string destGroupId_;
long ownerId_;
std::string destGroupOwnerAccount_;
std::string priority_;
std::string destGroupOwnerAccount_;
std::string destCidrIp_;
long destGroupOwnerId_;
};

View File

@@ -50,12 +50,12 @@ public:
void setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getPolicy() const;
void setPolicy(const std::string &policy);
std::string getIpv6SourceCidrIp() const;
void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp);
std::string getIpv6DestCidrIp() const;
void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp);
std::string getPolicy() const;
void setPolicy(const std::string &policy);
std::string getPortRange() const;
void setPortRange(const std::string &portRange);
std::string getResourceOwnerAccount() const;
@@ -86,9 +86,9 @@ private:
long sourceGroupOwnerId_;
std::string sourceGroupOwnerAccount_;
std::string regionId_;
std::string policy_;
std::string ipv6SourceCidrIp_;
std::string ipv6DestCidrIp_;
std::string policy_;
std::string portRange_;
std::string resourceOwnerAccount_;
std::string ipProtocol_;

View File

@@ -28,6 +28,10 @@ namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT RunCommandRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
RunCommandRequest();
~RunCommandRequest();
long getResourceOwnerId() const;
@@ -52,6 +56,8 @@ public:
void setRepeatMode(const std::string &repeatMode);
std::string getWindowsPasswordName() const;
void setWindowsPasswordName(const std::string &windowsPasswordName);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
bool getKeepCommand() const;
void setKeepCommand(bool keepCommand);
bool getTimed() const;
@@ -85,6 +91,7 @@ private:
std::string contentEncoding_;
std::string repeatMode_;
std::string windowsPasswordName_;
std::vector<Tag> tag_;
bool keepCommand_;
bool timed_;
std::string resourceOwnerAccount_;

View File

@@ -1419,6 +1419,78 @@ EcsClient::CreateDeploymentSetOutcomeCallable EcsClient::createDeploymentSetCall
return task->get_future();
}
EcsClient::CreateDiagnosticMetricSetOutcome EcsClient::createDiagnosticMetricSet(const CreateDiagnosticMetricSetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDiagnosticMetricSetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDiagnosticMetricSetOutcome(CreateDiagnosticMetricSetResult(outcome.result()));
else
return CreateDiagnosticMetricSetOutcome(outcome.error());
}
void EcsClient::createDiagnosticMetricSetAsync(const CreateDiagnosticMetricSetRequest& request, const CreateDiagnosticMetricSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDiagnosticMetricSet(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CreateDiagnosticMetricSetOutcomeCallable EcsClient::createDiagnosticMetricSetCallable(const CreateDiagnosticMetricSetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDiagnosticMetricSetOutcome()>>(
[this, request]()
{
return this->createDiagnosticMetricSet(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateDiagnosticReportOutcome EcsClient::createDiagnosticReport(const CreateDiagnosticReportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDiagnosticReportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDiagnosticReportOutcome(CreateDiagnosticReportResult(outcome.result()));
else
return CreateDiagnosticReportOutcome(outcome.error());
}
void EcsClient::createDiagnosticReportAsync(const CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDiagnosticReport(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CreateDiagnosticReportOutcomeCallable EcsClient::createDiagnosticReportCallable(const CreateDiagnosticReportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDiagnosticReportOutcome()>>(
[this, request]()
{
return this->createDiagnosticReport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateDiskOutcome EcsClient::createDisk(const CreateDiskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2715,6 +2787,78 @@ EcsClient::DeleteDeploymentSetOutcomeCallable EcsClient::deleteDeploymentSetCall
return task->get_future();
}
EcsClient::DeleteDiagnosticMetricSetsOutcome EcsClient::deleteDiagnosticMetricSets(const DeleteDiagnosticMetricSetsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDiagnosticMetricSetsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDiagnosticMetricSetsOutcome(DeleteDiagnosticMetricSetsResult(outcome.result()));
else
return DeleteDiagnosticMetricSetsOutcome(outcome.error());
}
void EcsClient::deleteDiagnosticMetricSetsAsync(const DeleteDiagnosticMetricSetsRequest& request, const DeleteDiagnosticMetricSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDiagnosticMetricSets(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DeleteDiagnosticMetricSetsOutcomeCallable EcsClient::deleteDiagnosticMetricSetsCallable(const DeleteDiagnosticMetricSetsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDiagnosticMetricSetsOutcome()>>(
[this, request]()
{
return this->deleteDiagnosticMetricSets(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteDiagnosticReportsOutcome EcsClient::deleteDiagnosticReports(const DeleteDiagnosticReportsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDiagnosticReportsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDiagnosticReportsOutcome(DeleteDiagnosticReportsResult(outcome.result()));
else
return DeleteDiagnosticReportsOutcome(outcome.error());
}
void EcsClient::deleteDiagnosticReportsAsync(const DeleteDiagnosticReportsRequest& request, const DeleteDiagnosticReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDiagnosticReports(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DeleteDiagnosticReportsOutcomeCallable EcsClient::deleteDiagnosticReportsCallable(const DeleteDiagnosticReportsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDiagnosticReportsOutcome()>>(
[this, request]()
{
return this->deleteDiagnosticReports(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteDiskOutcome EcsClient::deleteDisk(const DeleteDiskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4551,6 +4695,114 @@ EcsClient::DescribeDeploymentSetsOutcomeCallable EcsClient::describeDeploymentSe
return task->get_future();
}
EcsClient::DescribeDiagnosticMetricSetsOutcome EcsClient::describeDiagnosticMetricSets(const DescribeDiagnosticMetricSetsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDiagnosticMetricSetsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDiagnosticMetricSetsOutcome(DescribeDiagnosticMetricSetsResult(outcome.result()));
else
return DescribeDiagnosticMetricSetsOutcome(outcome.error());
}
void EcsClient::describeDiagnosticMetricSetsAsync(const DescribeDiagnosticMetricSetsRequest& request, const DescribeDiagnosticMetricSetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDiagnosticMetricSets(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DescribeDiagnosticMetricSetsOutcomeCallable EcsClient::describeDiagnosticMetricSetsCallable(const DescribeDiagnosticMetricSetsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDiagnosticMetricSetsOutcome()>>(
[this, request]()
{
return this->describeDiagnosticMetricSets(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeDiagnosticMetricsOutcome EcsClient::describeDiagnosticMetrics(const DescribeDiagnosticMetricsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDiagnosticMetricsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDiagnosticMetricsOutcome(DescribeDiagnosticMetricsResult(outcome.result()));
else
return DescribeDiagnosticMetricsOutcome(outcome.error());
}
void EcsClient::describeDiagnosticMetricsAsync(const DescribeDiagnosticMetricsRequest& request, const DescribeDiagnosticMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDiagnosticMetrics(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DescribeDiagnosticMetricsOutcomeCallable EcsClient::describeDiagnosticMetricsCallable(const DescribeDiagnosticMetricsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDiagnosticMetricsOutcome()>>(
[this, request]()
{
return this->describeDiagnosticMetrics(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeDiagnosticReportsOutcome EcsClient::describeDiagnosticReports(const DescribeDiagnosticReportsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDiagnosticReportsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDiagnosticReportsOutcome(DescribeDiagnosticReportsResult(outcome.result()));
else
return DescribeDiagnosticReportsOutcome(outcome.error());
}
void EcsClient::describeDiagnosticReportsAsync(const DescribeDiagnosticReportsRequest& request, const DescribeDiagnosticReportsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDiagnosticReports(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DescribeDiagnosticReportsOutcomeCallable EcsClient::describeDiagnosticReportsCallable(const DescribeDiagnosticReportsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDiagnosticReportsOutcome()>>(
[this, request]()
{
return this->describeDiagnosticReports(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeDiskMonitorDataOutcome EcsClient::describeDiskMonitorData(const DescribeDiskMonitorDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -8907,6 +9159,42 @@ EcsClient::ModifyDeploymentSetAttributeOutcomeCallable EcsClient::modifyDeployme
return task->get_future();
}
EcsClient::ModifyDiagnosticMetricSetOutcome EcsClient::modifyDiagnosticMetricSet(const ModifyDiagnosticMetricSetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDiagnosticMetricSetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDiagnosticMetricSetOutcome(ModifyDiagnosticMetricSetResult(outcome.result()));
else
return ModifyDiagnosticMetricSetOutcome(outcome.error());
}
void EcsClient::modifyDiagnosticMetricSetAsync(const ModifyDiagnosticMetricSetRequest& request, const ModifyDiagnosticMetricSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDiagnosticMetricSet(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ModifyDiagnosticMetricSetOutcomeCallable EcsClient::modifyDiagnosticMetricSetCallable(const ModifyDiagnosticMetricSetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDiagnosticMetricSetOutcome()>>(
[this, request]()
{
return this->modifyDiagnosticMetricSet(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::ModifyDiskAttributeOutcome EcsClient::modifyDiskAttribute(const ModifyDiskAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,71 @@
/*
* 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/ecs/model/CreateDiagnosticMetricSetRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiagnosticMetricSetRequest;
CreateDiagnosticMetricSetRequest::CreateDiagnosticMetricSetRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDiagnosticMetricSet") {
setMethod(HttpRequest::Method::Post);
}
CreateDiagnosticMetricSetRequest::~CreateDiagnosticMetricSetRequest() {}
std::vector<std::string> CreateDiagnosticMetricSetRequest::getMetricIds() const {
return metricIds_;
}
void CreateDiagnosticMetricSetRequest::setMetricIds(const std::vector<std::string> &metricIds) {
metricIds_ = metricIds;
}
std::string CreateDiagnosticMetricSetRequest::getDescription() const {
return description_;
}
void CreateDiagnosticMetricSetRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateDiagnosticMetricSetRequest::getMetricSetName() const {
return metricSetName_;
}
void CreateDiagnosticMetricSetRequest::setMetricSetName(const std::string &metricSetName) {
metricSetName_ = metricSetName;
setParameter(std::string("MetricSetName"), metricSetName);
}
std::string CreateDiagnosticMetricSetRequest::getResourceType() const {
return resourceType_;
}
void CreateDiagnosticMetricSetRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string CreateDiagnosticMetricSetRequest::getRegionId() const {
return regionId_;
}
void CreateDiagnosticMetricSetRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

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.
*/
#include <alibabacloud/ecs/model/CreateDiagnosticMetricSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDiagnosticMetricSetResult::CreateDiagnosticMetricSetResult() :
ServiceResult()
{}
CreateDiagnosticMetricSetResult::CreateDiagnosticMetricSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDiagnosticMetricSetResult::~CreateDiagnosticMetricSetResult()
{}
void CreateDiagnosticMetricSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["MetricSetId"].isNull())
metricSetId_ = value["MetricSetId"].asString();
}
std::string CreateDiagnosticMetricSetResult::getMetricSetId()const
{
return metricSetId_;
}

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/ecs/model/CreateDiagnosticReportRequest.h>
using AlibabaCloud::Ecs::Model::CreateDiagnosticReportRequest;
CreateDiagnosticReportRequest::CreateDiagnosticReportRequest()
: RpcServiceRequest("ecs", "2014-05-26", "CreateDiagnosticReport") {
setMethod(HttpRequest::Method::Post);
}
CreateDiagnosticReportRequest::~CreateDiagnosticReportRequest() {}
std::string CreateDiagnosticReportRequest::getResourceId() const {
return resourceId_;
}
void CreateDiagnosticReportRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
std::string CreateDiagnosticReportRequest::getMetricSetId() const {
return metricSetId_;
}
void CreateDiagnosticReportRequest::setMetricSetId(const std::string &metricSetId) {
metricSetId_ = metricSetId;
setParameter(std::string("MetricSetId"), metricSetId);
}
std::string CreateDiagnosticReportRequest::getEndTime() const {
return endTime_;
}
void CreateDiagnosticReportRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string CreateDiagnosticReportRequest::getStartTime() const {
return startTime_;
}
void CreateDiagnosticReportRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string CreateDiagnosticReportRequest::getRegionId() const {
return regionId_;
}
void CreateDiagnosticReportRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

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.
*/
#include <alibabacloud/ecs/model/CreateDiagnosticReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
CreateDiagnosticReportResult::CreateDiagnosticReportResult() :
ServiceResult()
{}
CreateDiagnosticReportResult::CreateDiagnosticReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDiagnosticReportResult::~CreateDiagnosticReportResult()
{}
void CreateDiagnosticReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ReportId"].isNull())
reportId_ = value["ReportId"].asString();
}
std::string CreateDiagnosticReportResult::getReportId()const
{
return reportId_;
}

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/ecs/model/DeleteDiagnosticMetricSetsRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDiagnosticMetricSetsRequest;
DeleteDiagnosticMetricSetsRequest::DeleteDiagnosticMetricSetsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteDiagnosticMetricSets") {
setMethod(HttpRequest::Method::Post);
}
DeleteDiagnosticMetricSetsRequest::~DeleteDiagnosticMetricSetsRequest() {}
std::vector<std::string> DeleteDiagnosticMetricSetsRequest::getMetricSetIds() const {
return metricSetIds_;
}
void DeleteDiagnosticMetricSetsRequest::setMetricSetIds(const std::vector<std::string> &metricSetIds) {
metricSetIds_ = metricSetIds;
}
std::string DeleteDiagnosticMetricSetsRequest::getRegionId() const {
return regionId_;
}
void DeleteDiagnosticMetricSetsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

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/ecs/model/DeleteDiagnosticMetricSetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DeleteDiagnosticMetricSetsResult::DeleteDiagnosticMetricSetsResult() :
ServiceResult()
{}
DeleteDiagnosticMetricSetsResult::DeleteDiagnosticMetricSetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDiagnosticMetricSetsResult::~DeleteDiagnosticMetricSetsResult()
{}
void DeleteDiagnosticMetricSetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/ecs/model/DeleteDiagnosticReportsRequest.h>
using AlibabaCloud::Ecs::Model::DeleteDiagnosticReportsRequest;
DeleteDiagnosticReportsRequest::DeleteDiagnosticReportsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DeleteDiagnosticReports") {
setMethod(HttpRequest::Method::Post);
}
DeleteDiagnosticReportsRequest::~DeleteDiagnosticReportsRequest() {}
std::vector<std::string> DeleteDiagnosticReportsRequest::getReportIds() const {
return reportIds_;
}
void DeleteDiagnosticReportsRequest::setReportIds(const std::vector<std::string> &reportIds) {
reportIds_ = reportIds;
}
std::string DeleteDiagnosticReportsRequest::getRegionId() const {
return regionId_;
}
void DeleteDiagnosticReportsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

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/ecs/model/DeleteDiagnosticReportsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DeleteDiagnosticReportsResult::DeleteDiagnosticReportsResult() :
ServiceResult()
{}
DeleteDiagnosticReportsResult::DeleteDiagnosticReportsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDiagnosticReportsResult::~DeleteDiagnosticReportsResult()
{}
void DeleteDiagnosticReportsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -106,6 +106,20 @@ void DescribeCommandsRequest::setPageSize(long pageSize) {
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<DescribeCommandsRequest::Tag> DescribeCommandsRequest::getTag() const {
return tag_;
}
void DescribeCommandsRequest::setTag(const std::vector<DescribeCommandsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
bool DescribeCommandsRequest::getLatest() const {
return latest_;
}

View File

@@ -88,6 +88,16 @@ void DescribeCommandsResult::parse(const std::string &payload)
parameterDefinitionsObject.possibleValues.push_back(value.asString());
commandsObject.parameterDefinitions.push_back(parameterDefinitionsObject);
}
auto allTagsNode = valueCommandsCommand["Tags"]["Tag"];
for (auto valueCommandsCommandTagsTag : allTagsNode)
{
Command::Tag tagsObject;
if(!valueCommandsCommandTagsTag["TagKey"].isNull())
tagsObject.tagKey = valueCommandsCommandTagsTag["TagKey"].asString();
if(!valueCommandsCommandTagsTag["TagValue"].isNull())
tagsObject.tagValue = valueCommandsCommandTagsTag["TagValue"].asString();
commandsObject.tags.push_back(tagsObject);
}
auto allParameterNames = value["ParameterNames"]["ParameterName"];
for (auto value : allParameterNames)
commandsObject.parameterNames.push_back(value.asString());

View File

@@ -0,0 +1,80 @@
/*
* 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/ecs/model/DescribeDiagnosticMetricSetsRequest.h>
using AlibabaCloud::Ecs::Model::DescribeDiagnosticMetricSetsRequest;
DescribeDiagnosticMetricSetsRequest::DescribeDiagnosticMetricSetsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DescribeDiagnosticMetricSets") {
setMethod(HttpRequest::Method::Post);
}
DescribeDiagnosticMetricSetsRequest::~DescribeDiagnosticMetricSetsRequest() {}
std::vector<std::string> DescribeDiagnosticMetricSetsRequest::getMetricSetIds() const {
return metricSetIds_;
}
void DescribeDiagnosticMetricSetsRequest::setMetricSetIds(const std::vector<std::string> &metricSetIds) {
metricSetIds_ = metricSetIds;
}
std::string DescribeDiagnosticMetricSetsRequest::getType() const {
return type_;
}
void DescribeDiagnosticMetricSetsRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string DescribeDiagnosticMetricSetsRequest::getRegionId() const {
return regionId_;
}
void DescribeDiagnosticMetricSetsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeDiagnosticMetricSetsRequest::getNextToken() const {
return nextToken_;
}
void DescribeDiagnosticMetricSetsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string DescribeDiagnosticMetricSetsRequest::getResourceType() const {
return resourceType_;
}
void DescribeDiagnosticMetricSetsRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
int DescribeDiagnosticMetricSetsRequest::getMaxResults() const {
return maxResults_;
}
void DescribeDiagnosticMetricSetsRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

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.
*/
#include <alibabacloud/ecs/model/DescribeDiagnosticMetricSetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DescribeDiagnosticMetricSetsResult::DescribeDiagnosticMetricSetsResult() :
ServiceResult()
{}
DescribeDiagnosticMetricSetsResult::DescribeDiagnosticMetricSetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDiagnosticMetricSetsResult::~DescribeDiagnosticMetricSetsResult()
{}
void DescribeDiagnosticMetricSetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMetricSetsNode = value["MetricSets"]["MetricSet"];
for (auto valueMetricSetsMetricSet : allMetricSetsNode)
{
MetricSet metricSetsObject;
if(!valueMetricSetsMetricSet["MetricSetId"].isNull())
metricSetsObject.metricSetId = valueMetricSetsMetricSet["MetricSetId"].asString();
if(!valueMetricSetsMetricSet["MetricSetName"].isNull())
metricSetsObject.metricSetName = valueMetricSetsMetricSet["MetricSetName"].asString();
if(!valueMetricSetsMetricSet["Description"].isNull())
metricSetsObject.description = valueMetricSetsMetricSet["Description"].asString();
if(!valueMetricSetsMetricSet["Type"].isNull())
metricSetsObject.type = valueMetricSetsMetricSet["Type"].asString();
if(!valueMetricSetsMetricSet["ResourceType"].isNull())
metricSetsObject.resourceType = valueMetricSetsMetricSet["ResourceType"].asString();
auto allMetricIds = value["MetricIds"]["MetricId"];
for (auto value : allMetricIds)
metricSetsObject.metricIds.push_back(value.asString());
metricSets_.push_back(metricSetsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string DescribeDiagnosticMetricSetsResult::getNextToken()const
{
return nextToken_;
}
std::vector<DescribeDiagnosticMetricSetsResult::MetricSet> DescribeDiagnosticMetricSetsResult::getMetricSets()const
{
return metricSets_;
}

View File

@@ -0,0 +1,71 @@
/*
* 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/ecs/model/DescribeDiagnosticMetricsRequest.h>
using AlibabaCloud::Ecs::Model::DescribeDiagnosticMetricsRequest;
DescribeDiagnosticMetricsRequest::DescribeDiagnosticMetricsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DescribeDiagnosticMetrics") {
setMethod(HttpRequest::Method::Post);
}
DescribeDiagnosticMetricsRequest::~DescribeDiagnosticMetricsRequest() {}
std::vector<std::string> DescribeDiagnosticMetricsRequest::getMetricIds() const {
return metricIds_;
}
void DescribeDiagnosticMetricsRequest::setMetricIds(const std::vector<std::string> &metricIds) {
metricIds_ = metricIds;
}
std::string DescribeDiagnosticMetricsRequest::getResourceType() const {
return resourceType_;
}
void DescribeDiagnosticMetricsRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string DescribeDiagnosticMetricsRequest::getRegionId() const {
return regionId_;
}
void DescribeDiagnosticMetricsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeDiagnosticMetricsRequest::getNextToken() const {
return nextToken_;
}
void DescribeDiagnosticMetricsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
int DescribeDiagnosticMetricsRequest::getMaxResults() const {
return maxResults_;
}
void DescribeDiagnosticMetricsRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

View File

@@ -0,0 +1,76 @@
/*
* 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/ecs/model/DescribeDiagnosticMetricsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DescribeDiagnosticMetricsResult::DescribeDiagnosticMetricsResult() :
ServiceResult()
{}
DescribeDiagnosticMetricsResult::DescribeDiagnosticMetricsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDiagnosticMetricsResult::~DescribeDiagnosticMetricsResult()
{}
void DescribeDiagnosticMetricsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMetricsNode = value["Metrics"]["Metric"];
for (auto valueMetricsMetric : allMetricsNode)
{
Metric metricsObject;
if(!valueMetricsMetric["MetricId"].isNull())
metricsObject.metricId = valueMetricsMetric["MetricId"].asString();
if(!valueMetricsMetric["MetricName"].isNull())
metricsObject.metricName = valueMetricsMetric["MetricName"].asString();
if(!valueMetricsMetric["MetricCategory"].isNull())
metricsObject.metricCategory = valueMetricsMetric["MetricCategory"].asString();
if(!valueMetricsMetric["Description"].isNull())
metricsObject.description = valueMetricsMetric["Description"].asString();
if(!valueMetricsMetric["ResourceType"].isNull())
metricsObject.resourceType = valueMetricsMetric["ResourceType"].asString();
if(!valueMetricsMetric["GuestMetric"].isNull())
metricsObject.guestMetric = valueMetricsMetric["GuestMetric"].asString() == "true";
if(!valueMetricsMetric["SupportedOperatingSystem"].isNull())
metricsObject.supportedOperatingSystem = valueMetricsMetric["SupportedOperatingSystem"].asString();
metrics_.push_back(metricsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::vector<DescribeDiagnosticMetricsResult::Metric> DescribeDiagnosticMetricsResult::getMetrics()const
{
return metrics_;
}
std::string DescribeDiagnosticMetricsResult::getNextToken()const
{
return nextToken_;
}

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.
*/
#include <alibabacloud/ecs/model/DescribeDiagnosticReportsRequest.h>
using AlibabaCloud::Ecs::Model::DescribeDiagnosticReportsRequest;
DescribeDiagnosticReportsRequest::DescribeDiagnosticReportsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "DescribeDiagnosticReports") {
setMethod(HttpRequest::Method::Post);
}
DescribeDiagnosticReportsRequest::~DescribeDiagnosticReportsRequest() {}
std::string DescribeDiagnosticReportsRequest::getRegionId() const {
return regionId_;
}
void DescribeDiagnosticReportsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeDiagnosticReportsRequest::getNextToken() const {
return nextToken_;
}
void DescribeDiagnosticReportsRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string DescribeDiagnosticReportsRequest::getSeverity() const {
return severity_;
}
void DescribeDiagnosticReportsRequest::setSeverity(const std::string &severity) {
severity_ = severity;
setParameter(std::string("Severity"), severity);
}
std::vector<std::string> DescribeDiagnosticReportsRequest::getReportIds() const {
return reportIds_;
}
void DescribeDiagnosticReportsRequest::setReportIds(const std::vector<std::string> &reportIds) {
reportIds_ = reportIds;
}
int DescribeDiagnosticReportsRequest::getMaxResults() const {
return maxResults_;
}
void DescribeDiagnosticReportsRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}
std::string DescribeDiagnosticReportsRequest::getStatus() const {
return status_;
}
void DescribeDiagnosticReportsRequest::setStatus(const std::string &status) {
status_ = status;
setParameter(std::string("Status"), status);
}
std::vector<std::string> DescribeDiagnosticReportsRequest::getResourceIds() const {
return resourceIds_;
}
void DescribeDiagnosticReportsRequest::setResourceIds(const std::vector<std::string> &resourceIds) {
resourceIds_ = resourceIds;
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/DescribeDiagnosticReportsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DescribeDiagnosticReportsResult::DescribeDiagnosticReportsResult() :
ServiceResult()
{}
DescribeDiagnosticReportsResult::DescribeDiagnosticReportsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDiagnosticReportsResult::~DescribeDiagnosticReportsResult()
{}
void DescribeDiagnosticReportsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allReportsNode = value["Reports"]["Report"];
for (auto valueReportsReport : allReportsNode)
{
Report reportsObject;
if(!valueReportsReport["ResourceId"].isNull())
reportsObject.resourceId = valueReportsReport["ResourceId"].asString();
if(!valueReportsReport["ResourceType"].isNull())
reportsObject.resourceType = valueReportsReport["ResourceType"].asString();
if(!valueReportsReport["MetricSetId"].isNull())
reportsObject.metricSetId = valueReportsReport["MetricSetId"].asString();
if(!valueReportsReport["StartTime"].isNull())
reportsObject.startTime = valueReportsReport["StartTime"].asString();
if(!valueReportsReport["EndTime"].isNull())
reportsObject.endTime = valueReportsReport["EndTime"].asString();
if(!valueReportsReport["ReportId"].isNull())
reportsObject.reportId = valueReportsReport["ReportId"].asString();
if(!valueReportsReport["Status"].isNull())
reportsObject.status = valueReportsReport["Status"].asString();
if(!valueReportsReport["CreationTime"].isNull())
reportsObject.creationTime = valueReportsReport["CreationTime"].asString();
if(!valueReportsReport["FinishedTime"].isNull())
reportsObject.finishedTime = valueReportsReport["FinishedTime"].asString();
if(!valueReportsReport["Severity"].isNull())
reportsObject.severity = valueReportsReport["Severity"].asString();
auto allIssuesNode = valueReportsReport["Issues"]["Issue"];
for (auto valueReportsReportIssuesIssue : allIssuesNode)
{
Report::Issue issuesObject;
if(!valueReportsReportIssuesIssue["MetricId"].isNull())
issuesObject.metricId = valueReportsReportIssuesIssue["MetricId"].asString();
if(!valueReportsReportIssuesIssue["MetricCategory"].isNull())
issuesObject.metricCategory = valueReportsReportIssuesIssue["MetricCategory"].asString();
if(!valueReportsReportIssuesIssue["IssueId"].isNull())
issuesObject.issueId = valueReportsReportIssuesIssue["IssueId"].asString();
if(!valueReportsReportIssuesIssue["Severity"].isNull())
issuesObject.severity = valueReportsReportIssuesIssue["Severity"].asString();
reportsObject.issues.push_back(issuesObject);
}
reports_.push_back(reportsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string DescribeDiagnosticReportsResult::getNextToken()const
{
return nextToken_;
}
std::vector<DescribeDiagnosticReportsResult::Report> DescribeDiagnosticReportsResult::getReports()const
{
return reports_;
}

View File

@@ -79,6 +79,20 @@ void DescribeInvocationResultsRequest::setPageSize(long pageSize) {
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<DescribeInvocationResultsRequest::Tag> DescribeInvocationResultsRequest::getTag() const {
return tag_;
}
void DescribeInvocationResultsRequest::setTag(const std::vector<DescribeInvocationResultsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
std::string DescribeInvocationResultsRequest::getInvokeId() const {
return invokeId_;
}

View File

@@ -80,6 +80,16 @@ void DescribeInvocationResultsResult::parse(const std::string &payload)
invocationResultObject.invokeRecordStatus = invocationNodeInvocationResultsInvocationResult["InvokeRecordStatus"].asString();
if(!invocationNodeInvocationResultsInvocationResult["Username"].isNull())
invocationResultObject.username = invocationNodeInvocationResultsInvocationResult["Username"].asString();
auto allTagsNode = invocationNodeInvocationResultsInvocationResult["Tags"]["Tag"];
for (auto invocationNodeInvocationResultsInvocationResultTagsTag : allTagsNode)
{
Invocation::InvocationResult::Tag tagsObject;
if(!invocationNodeInvocationResultsInvocationResultTagsTag["TagKey"].isNull())
tagsObject.tagKey = invocationNodeInvocationResultsInvocationResultTagsTag["TagKey"].asString();
if(!invocationNodeInvocationResultsInvocationResultTagsTag["TagValue"].isNull())
tagsObject.tagValue = invocationNodeInvocationResultsInvocationResultTagsTag["TagValue"].asString();
invocationResultObject.tags.push_back(tagsObject);
}
invocation_.invocationResults.push_back(invocationResultObject);
}

View File

@@ -106,6 +106,20 @@ void DescribeInvocationsRequest::setPageSize(long pageSize) {
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::vector<DescribeInvocationsRequest::Tag> DescribeInvocationsRequest::getTag() const {
return tag_;
}
void DescribeInvocationsRequest::setTag(const std::vector<DescribeInvocationsRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
std::string DescribeInvocationsRequest::getInvokeId() const {
return invokeId_;
}

View File

@@ -111,6 +111,16 @@ void DescribeInvocationsResult::parse(const std::string &payload)
invokeInstancesObject.instanceInvokeStatus = valueInvocationsInvocationInvokeInstancesInvokeInstance["InstanceInvokeStatus"].asString();
invocationsObject.invokeInstances.push_back(invokeInstancesObject);
}
auto allTagsNode = valueInvocationsInvocation["Tags"]["Tag"];
for (auto valueInvocationsInvocationTagsTag : allTagsNode)
{
Invocation::Tag tagsObject;
if(!valueInvocationsInvocationTagsTag["TagKey"].isNull())
tagsObject.tagKey = valueInvocationsInvocationTagsTag["TagKey"].asString();
if(!valueInvocationsInvocationTagsTag["TagValue"].isNull())
tagsObject.tagValue = valueInvocationsInvocationTagsTag["TagValue"].asString();
invocationsObject.tags.push_back(tagsObject);
}
invocations_.push_back(invocationsObject);
}
if(!value["PageSize"].isNull())

View File

@@ -0,0 +1,80 @@
/*
* 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/ecs/model/ModifyDiagnosticMetricSetRequest.h>
using AlibabaCloud::Ecs::Model::ModifyDiagnosticMetricSetRequest;
ModifyDiagnosticMetricSetRequest::ModifyDiagnosticMetricSetRequest()
: RpcServiceRequest("ecs", "2014-05-26", "ModifyDiagnosticMetricSet") {
setMethod(HttpRequest::Method::Post);
}
ModifyDiagnosticMetricSetRequest::~ModifyDiagnosticMetricSetRequest() {}
std::vector<std::string> ModifyDiagnosticMetricSetRequest::getMetricIds() const {
return metricIds_;
}
void ModifyDiagnosticMetricSetRequest::setMetricIds(const std::vector<std::string> &metricIds) {
metricIds_ = metricIds;
}
std::string ModifyDiagnosticMetricSetRequest::getMetricSetId() const {
return metricSetId_;
}
void ModifyDiagnosticMetricSetRequest::setMetricSetId(const std::string &metricSetId) {
metricSetId_ = metricSetId;
setParameter(std::string("MetricSetId"), metricSetId);
}
std::string ModifyDiagnosticMetricSetRequest::getDescription() const {
return description_;
}
void ModifyDiagnosticMetricSetRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string ModifyDiagnosticMetricSetRequest::getMetricSetName() const {
return metricSetName_;
}
void ModifyDiagnosticMetricSetRequest::setMetricSetName(const std::string &metricSetName) {
metricSetName_ = metricSetName;
setParameter(std::string("MetricSetName"), metricSetName);
}
std::string ModifyDiagnosticMetricSetRequest::getRegionId() const {
return regionId_;
}
void ModifyDiagnosticMetricSetRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ModifyDiagnosticMetricSetRequest::getResourceType() const {
return resourceType_;
}
void ModifyDiagnosticMetricSetRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

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/ecs/model/ModifyDiagnosticMetricSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
ModifyDiagnosticMetricSetResult::ModifyDiagnosticMetricSetResult() :
ServiceResult()
{}
ModifyDiagnosticMetricSetResult::ModifyDiagnosticMetricSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDiagnosticMetricSetResult::~ModifyDiagnosticMetricSetResult()
{}
void ModifyDiagnosticMetricSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -97,6 +97,15 @@ void ModifySecurityGroupEgressRuleRequest::setRegionId(const std::string &region
setParameter(std::string("RegionId"), regionId);
}
std::string ModifySecurityGroupEgressRuleRequest::getPolicy() const {
return policy_;
}
void ModifySecurityGroupEgressRuleRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}
std::string ModifySecurityGroupEgressRuleRequest::getIpv6DestCidrIp() const {
return ipv6DestCidrIp_;
}
@@ -115,15 +124,6 @@ void ModifySecurityGroupEgressRuleRequest::setIpv6SourceCidrIp(const std::string
setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp);
}
std::string ModifySecurityGroupEgressRuleRequest::getPolicy() const {
return policy_;
}
void ModifySecurityGroupEgressRuleRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}
std::string ModifySecurityGroupEgressRuleRequest::getPortRange() const {
return portRange_;
}
@@ -187,15 +187,6 @@ void ModifySecurityGroupEgressRuleRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerAccount() const {
return destGroupOwnerAccount_;
}
void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) {
destGroupOwnerAccount_ = destGroupOwnerAccount;
setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount);
}
std::string ModifySecurityGroupEgressRuleRequest::getPriority() const {
return priority_;
}
@@ -205,6 +196,15 @@ void ModifySecurityGroupEgressRuleRequest::setPriority(const std::string &priori
setParameter(std::string("Priority"), priority);
}
std::string ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerAccount() const {
return destGroupOwnerAccount_;
}
void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) {
destGroupOwnerAccount_ = destGroupOwnerAccount;
setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount);
}
std::string ModifySecurityGroupEgressRuleRequest::getDestCidrIp() const {
return destCidrIp_;
}

View File

@@ -115,6 +115,15 @@ void ModifySecurityGroupRuleRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::string ModifySecurityGroupRuleRequest::getPolicy() const {
return policy_;
}
void ModifySecurityGroupRuleRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}
std::string ModifySecurityGroupRuleRequest::getIpv6SourceCidrIp() const {
return ipv6SourceCidrIp_;
}
@@ -133,15 +142,6 @@ void ModifySecurityGroupRuleRequest::setIpv6DestCidrIp(const std::string &ipv6De
setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp);
}
std::string ModifySecurityGroupRuleRequest::getPolicy() const {
return policy_;
}
void ModifySecurityGroupRuleRequest::setPolicy(const std::string &policy) {
policy_ = policy;
setParameter(std::string("Policy"), policy);
}
std::string ModifySecurityGroupRuleRequest::getPortRange() const {
return portRange_;
}

View File

@@ -124,6 +124,20 @@ void RunCommandRequest::setWindowsPasswordName(const std::string &windowsPasswor
setParameter(std::string("WindowsPasswordName"), windowsPasswordName);
}
std::vector<RunCommandRequest::Tag> RunCommandRequest::getTag() const {
return tag_;
}
void RunCommandRequest::setTag(const std::vector<RunCommandRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Key", tagObj.key);
setParameter(tagObjStr + ".Value", tagObj.value);
}
}
bool RunCommandRequest::getKeepCommand() const {
return keepCommand_;
}