Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc8404e573 | ||
|
|
59a99f2145 | ||
|
|
f0ad440f3d |
12
CHANGELOG
12
CHANGELOG
@@ -1,3 +1,15 @@
|
||||
2018-10-16 Version: 1.28.1
|
||||
1, This version add MetricQuery interface to support retcode and apm metric query.
|
||||
|
||||
2018-10-16 Version: 1.28.0
|
||||
1, Delete deprecated and unusable apis : AddIpRange, UnbindIpRange, BindIpRange, DescribeIntranetAttributeKb, DescribeIpRanges, ModifyIntranetBandwidthKb, DescribeEventDetail, CheckAutoSnapshotPolicy, CheckDiskEnableAutoSnapshotValidation, DescribeAutoSnapshotPolicy
|
||||
2, Add instance topology api DescribeInstanceTopology
|
||||
3, Add mount point in DescribeDisksFullStatus
|
||||
|
||||
|
||||
2018-10-16 Version: 1.27.11
|
||||
1, remove set group tags API.
|
||||
|
||||
2018-10-13 Version: 1.27.10
|
||||
1, Add device group related APIs.
|
||||
|
||||
|
||||
@@ -89,4 +89,5 @@ add_subdirectory(ots)
|
||||
add_subdirectory(smartag)
|
||||
add_subdirectory(vod)
|
||||
add_subdirectory(ccs)
|
||||
add_subdirectory(saf)
|
||||
add_subdirectory(saf)
|
||||
add_subdirectory(arms)
|
||||
90
arms/CMakeLists.txt
Normal file
90
arms/CMakeLists.txt
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(arms_public_header
|
||||
include/alibabacloud/arms/ARMSClient.h
|
||||
include/alibabacloud/arms/ARMSExport.h )
|
||||
|
||||
set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h
|
||||
include/alibabacloud/arms/model/ARMSQueryDataSetResult.h
|
||||
include/alibabacloud/arms/model/MetricQueryRequest.h
|
||||
include/alibabacloud/arms/model/MetricQueryResult.h )
|
||||
|
||||
set(arms_src
|
||||
src/ARMSClient.cc
|
||||
src/model/ARMSQueryDataSetRequest.cc
|
||||
src/model/ARMSQueryDataSetResult.cc
|
||||
src/model/MetricQueryRequest.cc
|
||||
src/model/MetricQueryResult.cc )
|
||||
|
||||
add_library(arms ${LIB_TYPE}
|
||||
${arms_public_header}
|
||||
${arms_public_header_model}
|
||||
${arms_src})
|
||||
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}arms
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_ARMS_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(arms
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(arms
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(arms
|
||||
jsoncpp)
|
||||
target_include_directories(arms
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(arms
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(arms
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(arms
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(arms
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${arms_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms)
|
||||
install(FILES ${arms_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/arms/model)
|
||||
install(TARGETS arms
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
62
arms/include/alibabacloud/arms/ARMSClient.h
Normal file
62
arms/include/alibabacloud/arms/ARMSClient.h
Normal 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_ARMS_ARMSCLIENT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "ARMSExport.h"
|
||||
#include "model/ARMSQueryDataSetRequest.h"
|
||||
#include "model/ARMSQueryDataSetResult.h"
|
||||
#include "model/MetricQueryRequest.h"
|
||||
#include "model/MetricQueryResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::ARMSQueryDataSetResult> ARMSQueryDataSetOutcome;
|
||||
typedef std::future<ARMSQueryDataSetOutcome> ARMSQueryDataSetOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ARMSQueryDataSetRequest&, const ARMSQueryDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ARMSQueryDataSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::MetricQueryResult> MetricQueryOutcome;
|
||||
typedef std::future<MetricQueryOutcome> MetricQueryOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::MetricQueryRequest&, const MetricQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MetricQueryAsyncHandler;
|
||||
|
||||
ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~ARMSClient();
|
||||
ARMSQueryDataSetOutcome aRMSQueryDataSet(const Model::ARMSQueryDataSetRequest &request)const;
|
||||
void aRMSQueryDataSetAsync(const Model::ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ARMSQueryDataSetOutcomeCallable aRMSQueryDataSetCallable(const Model::ARMSQueryDataSetRequest& request) const;
|
||||
MetricQueryOutcome metricQuery(const Model::MetricQueryRequest &request)const;
|
||||
void metricQueryAsync(const Model::MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MetricQueryOutcomeCallable metricQueryCallable(const Model::MetricQueryRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ARMS_ARMSCLIENT_H_
|
||||
@@ -14,32 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/UnbindIpRangeResult.h>
|
||||
#include <json/json.h>
|
||||
#ifndef ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
#define ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
UnbindIpRangeResult::UnbindIpRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindIpRangeResult::UnbindIpRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindIpRangeResult::~UnbindIpRangeResult()
|
||||
{}
|
||||
|
||||
void UnbindIpRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_ARMS_LIBRARY)
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_ARMS_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_ARMS_ARMSEXPORT_H_
|
||||
114
arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h
Normal file
114
arms/include/alibabacloud/arms/model/ARMSQueryDataSetRequest.h
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetRequest : public RpcServiceRequest
|
||||
{
|
||||
struct OptionalDims
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct RequiredDims
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct Dimensions
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ARMSQueryDataSetRequest();
|
||||
~ARMSQueryDataSetRequest();
|
||||
|
||||
std::string getDateStr()const;
|
||||
void setDateStr(const std::string& dateStr);
|
||||
long getMinTime()const;
|
||||
void setMinTime(long minTime);
|
||||
bool getReduceTail()const;
|
||||
void setReduceTail(bool reduceTail);
|
||||
long getMaxTime()const;
|
||||
void setMaxTime(long maxTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::vector<OptionalDims> getOptionalDims()const;
|
||||
void setOptionalDims(const std::vector<OptionalDims>& optionalDims);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
void setMeasures(const std::vector<std::string>& measures);
|
||||
int getIntervalInSec()const;
|
||||
void setIntervalInSec(int intervalInSec);
|
||||
bool getIsDrillDown()const;
|
||||
void setIsDrillDown(bool isDrillDown);
|
||||
bool getHungryMode()const;
|
||||
void setHungryMode(bool hungryMode);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOrderByKey()const;
|
||||
void setOrderByKey(const std::string& orderByKey);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
std::vector<RequiredDims> getRequiredDims()const;
|
||||
void setRequiredDims(const std::vector<RequiredDims>& requiredDims);
|
||||
long getDatasetId()const;
|
||||
void setDatasetId(long datasetId);
|
||||
std::vector<Dimensions> getDimensions()const;
|
||||
void setDimensions(const std::vector<Dimensions>& dimensions);
|
||||
|
||||
private:
|
||||
std::string dateStr_;
|
||||
long minTime_;
|
||||
bool reduceTail_;
|
||||
long maxTime_;
|
||||
std::string accessKeyId_;
|
||||
std::vector<OptionalDims> optionalDims_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
bool isDrillDown_;
|
||||
bool hungryMode_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string orderByKey_;
|
||||
int limit_;
|
||||
std::vector<RequiredDims> requiredDims_;
|
||||
long datasetId_;
|
||||
std::vector<Dimensions> dimensions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_ADDIPRANGERESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_ADDIPRANGERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT AddIpRangeResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT ARMSQueryDataSetResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddIpRangeResult();
|
||||
explicit AddIpRangeResult(const std::string &payload);
|
||||
~AddIpRangeResult();
|
||||
ARMSQueryDataSetResult();
|
||||
explicit ARMSQueryDataSetResult(const std::string &payload);
|
||||
~ARMSQueryDataSetResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_ADDIPRANGERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_ARMSQUERYDATASETRESULT_H_
|
||||
86
arms/include/alibabacloud/arms/model/MetricQueryRequest.h
Normal file
86
arms/include/alibabacloud/arms/model/MetricQueryRequest.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Filters
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
MetricQueryRequest();
|
||||
~MetricQueryRequest();
|
||||
|
||||
int getIintervalInSec()const;
|
||||
void setIintervalInSec(int iintervalInSec);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
void setMeasures(const std::vector<std::string>& measures);
|
||||
std::string getMetric()const;
|
||||
void setMetric(const std::string& metric);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
void setOrderBy(const std::string& orderBy);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::vector<std::string> getDimensions()const;
|
||||
void setDimensions(const std::vector<std::string>& dimensions);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
int iintervalInSec_;
|
||||
std::vector<std::string> measures_;
|
||||
std::string metric_;
|
||||
std::string securityToken_;
|
||||
int limit_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::vector<std::string> dimensions_;
|
||||
std::string order_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGERESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT UnbindIpRangeResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT MetricQueryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UnbindIpRangeResult();
|
||||
explicit UnbindIpRangeResult(const std::string &payload);
|
||||
~UnbindIpRangeResult();
|
||||
MetricQueryResult();
|
||||
explicit MetricQueryResult(const std::string &payload);
|
||||
~MetricQueryResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_METRICQUERYRESULT_H_
|
||||
125
arms/src/ARMSClient.cc
Normal file
125
arms/src/ARMSClient.cc
Normal file
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
* 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/arms/ARMSClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "ARMS";
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ARMSClient::ARMSClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
ARMSClient::~ARMSClient()
|
||||
{}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcome ARMSClient::aRMSQueryDataSet(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ARMSQueryDataSetOutcome(ARMSQueryDataSetResult(outcome.result()));
|
||||
else
|
||||
return ARMSQueryDataSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::aRMSQueryDataSetAsync(const ARMSQueryDataSetRequest& request, const ARMSQueryDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, aRMSQueryDataSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ARMSQueryDataSetOutcomeCallable ARMSClient::aRMSQueryDataSetCallable(const ARMSQueryDataSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ARMSQueryDataSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->aRMSQueryDataSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::MetricQueryOutcome ARMSClient::metricQuery(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MetricQueryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return MetricQueryOutcome(MetricQueryResult(outcome.result()));
|
||||
else
|
||||
return MetricQueryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::metricQueryAsync(const MetricQueryRequest& request, const MetricQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, metricQuery(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::MetricQueryOutcomeCallable ARMSClient::metricQueryCallable(const MetricQueryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<MetricQueryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->metricQuery(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
236
arms/src/model/ARMSQueryDataSetRequest.cc
Normal file
236
arms/src/model/ARMSQueryDataSetRequest.cc
Normal file
@@ -0,0 +1,236 @@
|
||||
/*
|
||||
* 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/arms/model/ARMSQueryDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ARMSQueryDataSetRequest;
|
||||
|
||||
ARMSQueryDataSetRequest::ARMSQueryDataSetRequest() :
|
||||
RpcServiceRequest("arms", "2018-10-15", "ARMSQueryDataSet")
|
||||
{}
|
||||
|
||||
ARMSQueryDataSetRequest::~ARMSQueryDataSetRequest()
|
||||
{}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getDateStr()const
|
||||
{
|
||||
return dateStr_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setDateStr(const std::string& dateStr)
|
||||
{
|
||||
dateStr_ = dateStr;
|
||||
setParameter("DateStr", dateStr);
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getMinTime()const
|
||||
{
|
||||
return minTime_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setMinTime(long minTime)
|
||||
{
|
||||
minTime_ = minTime;
|
||||
setParameter("MinTime", std::to_string(minTime));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getReduceTail()const
|
||||
{
|
||||
return reduceTail_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setReduceTail(bool reduceTail)
|
||||
{
|
||||
reduceTail_ = reduceTail;
|
||||
setParameter("ReduceTail", std::to_string(reduceTail));
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getMaxTime()const
|
||||
{
|
||||
return maxTime_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setMaxTime(long maxTime)
|
||||
{
|
||||
maxTime_ = maxTime;
|
||||
setParameter("MaxTime", std::to_string(maxTime));
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::OptionalDims> ARMSQueryDataSetRequest::getOptionalDims()const
|
||||
{
|
||||
return optionalDims_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setOptionalDims(const std::vector<OptionalDims>& optionalDims)
|
||||
{
|
||||
optionalDims_ = optionalDims;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= optionalDims.size(); i++) {
|
||||
auto obj = optionalDims.at(i);
|
||||
std::string str ="OptionalDims."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ARMSQueryDataSetRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
}
|
||||
|
||||
int ARMSQueryDataSetRequest::getIntervalInSec()const
|
||||
{
|
||||
return intervalInSec_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setIntervalInSec(int intervalInSec)
|
||||
{
|
||||
intervalInSec_ = intervalInSec;
|
||||
setParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getIsDrillDown()const
|
||||
{
|
||||
return isDrillDown_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setIsDrillDown(bool isDrillDown)
|
||||
{
|
||||
isDrillDown_ = isDrillDown;
|
||||
setParameter("IsDrillDown", std::to_string(isDrillDown));
|
||||
}
|
||||
|
||||
bool ARMSQueryDataSetRequest::getHungryMode()const
|
||||
{
|
||||
return hungryMode_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setHungryMode(bool hungryMode)
|
||||
{
|
||||
hungryMode_ = hungryMode;
|
||||
setParameter("HungryMode", std::to_string(hungryMode));
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetRequest::getOrderByKey()const
|
||||
{
|
||||
return orderByKey_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setOrderByKey(const std::string& orderByKey)
|
||||
{
|
||||
orderByKey_ = orderByKey;
|
||||
setParameter("OrderByKey", orderByKey);
|
||||
}
|
||||
|
||||
int ARMSQueryDataSetRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::RequiredDims> ARMSQueryDataSetRequest::getRequiredDims()const
|
||||
{
|
||||
return requiredDims_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setRequiredDims(const std::vector<RequiredDims>& requiredDims)
|
||||
{
|
||||
requiredDims_ = requiredDims;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= requiredDims.size(); i++) {
|
||||
auto obj = requiredDims.at(i);
|
||||
std::string str ="RequiredDims."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long ARMSQueryDataSetRequest::getDatasetId()const
|
||||
{
|
||||
return datasetId_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setDatasetId(long datasetId)
|
||||
{
|
||||
datasetId_ = datasetId;
|
||||
setParameter("DatasetId", std::to_string(datasetId));
|
||||
}
|
||||
|
||||
std::vector<ARMSQueryDataSetRequest::Dimensions> ARMSQueryDataSetRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void ARMSQueryDataSetRequest::setDimensions(const std::vector<Dimensions>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= dimensions.size(); i++) {
|
||||
auto obj = dimensions.at(i);
|
||||
std::string str ="Dimensions."+ std::to_string(i);
|
||||
setParameter(str + ".Type", obj.type);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,32 +14,39 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/AddIpRangeResult.h>
|
||||
#include <alibabacloud/arms/model/ARMSQueryDataSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
AddIpRangeResult::AddIpRangeResult() :
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddIpRangeResult::AddIpRangeResult(const std::string &payload) :
|
||||
ARMSQueryDataSetResult::ARMSQueryDataSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddIpRangeResult::~AddIpRangeResult()
|
||||
ARMSQueryDataSetResult::~ARMSQueryDataSetResult()
|
||||
{}
|
||||
|
||||
void AddIpRangeResult::parse(const std::string &payload)
|
||||
void ARMSQueryDataSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ARMSQueryDataSetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
167
arms/src/model/MetricQueryRequest.cc
Normal file
167
arms/src/model/MetricQueryRequest.cc
Normal file
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
* 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/arms/model/MetricQueryRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::MetricQueryRequest;
|
||||
|
||||
MetricQueryRequest::MetricQueryRequest() :
|
||||
RpcServiceRequest("arms", "2018-10-15", "MetricQuery")
|
||||
{}
|
||||
|
||||
MetricQueryRequest::~MetricQueryRequest()
|
||||
{}
|
||||
|
||||
int MetricQueryRequest::getIintervalInSec()const
|
||||
{
|
||||
return iintervalInSec_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setIintervalInSec(int iintervalInSec)
|
||||
{
|
||||
iintervalInSec_ = iintervalInSec;
|
||||
setParameter("IintervalInSec", std::to_string(iintervalInSec));
|
||||
}
|
||||
|
||||
std::vector<std::string> MetricQueryRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getMetric()const
|
||||
{
|
||||
return metric_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setParameter("Metric", metric);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
int MetricQueryRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
long MetricQueryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
long MetricQueryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<MetricQueryRequest::Filters> MetricQueryRequest::getFilters()const
|
||||
{
|
||||
return filters_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= filters.size(); i++) {
|
||||
auto obj = filters.at(i);
|
||||
std::string str ="Filters."+ std::to_string(i);
|
||||
setParameter(str + ".Value", obj.value);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> MetricQueryRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setDimensions(const std::vector<std::string>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
for(int i = 0; i!= dimensions.size(); i++)
|
||||
setParameter("Dimensions."+ std::to_string(i), dimensions.at(i));
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
std::string MetricQueryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void MetricQueryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -14,32 +14,39 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/BindIpRangeResult.h>
|
||||
#include <alibabacloud/arms/model/MetricQueryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
BindIpRangeResult::BindIpRangeResult() :
|
||||
MetricQueryResult::MetricQueryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindIpRangeResult::BindIpRangeResult(const std::string &payload) :
|
||||
MetricQueryResult::MetricQueryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindIpRangeResult::~BindIpRangeResult()
|
||||
MetricQueryResult::~MetricQueryResult()
|
||||
{}
|
||||
|
||||
void BindIpRangeResult::parse(const std::string &payload)
|
||||
void MetricQueryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string MetricQueryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -61,12 +61,12 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/StopInstanceResult.h
|
||||
include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h
|
||||
include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeInstanceTopologyResult.h
|
||||
include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h
|
||||
include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h
|
||||
include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h
|
||||
include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h
|
||||
include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h
|
||||
include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h
|
||||
include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h
|
||||
include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h
|
||||
@@ -113,8 +113,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h
|
||||
include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h
|
||||
include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h
|
||||
include/alibabacloud/ecs/model/AddIpRangeRequest.h
|
||||
include/alibabacloud/ecs/model/AddIpRangeResult.h
|
||||
include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h
|
||||
include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h
|
||||
include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h
|
||||
@@ -145,8 +143,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/AttachKeyPairResult.h
|
||||
include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h
|
||||
include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h
|
||||
include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h
|
||||
include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h
|
||||
include/alibabacloud/ecs/model/RunInstancesRequest.h
|
||||
include/alibabacloud/ecs/model/RunInstancesResult.h
|
||||
include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h
|
||||
@@ -223,8 +219,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h
|
||||
include/alibabacloud/ecs/model/RebootInstanceRequest.h
|
||||
include/alibabacloud/ecs/model/RebootInstanceResult.h
|
||||
include/alibabacloud/ecs/model/BindIpRangeRequest.h
|
||||
include/alibabacloud/ecs/model/BindIpRangeResult.h
|
||||
include/alibabacloud/ecs/model/InvokeCommandRequest.h
|
||||
include/alibabacloud/ecs/model/InvokeCommandResult.h
|
||||
include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h
|
||||
@@ -343,8 +337,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h
|
||||
include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h
|
||||
include/alibabacloud/ecs/model/UnbindIpRangeRequest.h
|
||||
include/alibabacloud/ecs/model/UnbindIpRangeResult.h
|
||||
include/alibabacloud/ecs/model/DeleteRecycleBinRequest.h
|
||||
include/alibabacloud/ecs/model/DeleteRecycleBinResult.h
|
||||
include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h
|
||||
@@ -371,8 +363,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/ResetDiskResult.h
|
||||
include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h
|
||||
include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h
|
||||
include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h
|
||||
include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h
|
||||
include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h
|
||||
include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h
|
||||
@@ -381,8 +371,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/CreateSecurityGroupResult.h
|
||||
include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h
|
||||
include/alibabacloud/ecs/model/DescribeEventDetailRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeEventDetailResult.h
|
||||
include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h
|
||||
include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h
|
||||
@@ -395,8 +383,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DeleteInstanceResult.h
|
||||
include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h
|
||||
include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h
|
||||
include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h
|
||||
include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h
|
||||
include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h
|
||||
include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h
|
||||
@@ -461,8 +447,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DescribeCloudAssistantStatusResult.h
|
||||
include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h
|
||||
include/alibabacloud/ecs/model/ValidateSecurityGroupRequest.h
|
||||
include/alibabacloud/ecs/model/ValidateSecurityGroupResult.h
|
||||
include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h
|
||||
include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h
|
||||
include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h
|
||||
@@ -485,16 +469,12 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h
|
||||
include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h
|
||||
include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h
|
||||
include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h
|
||||
include/alibabacloud/ecs/model/DescribeRecycleBinRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeRecycleBinResult.h
|
||||
include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h
|
||||
include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h
|
||||
include/alibabacloud/ecs/model/DescribeIpRangesRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeIpRangesResult.h
|
||||
include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h
|
||||
include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionResult.h
|
||||
include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h
|
||||
@@ -574,12 +554,12 @@ set(ecs_src
|
||||
src/model/StopInstanceResult.cc
|
||||
src/model/DescribeInstanceHistoryEventsRequest.cc
|
||||
src/model/DescribeInstanceHistoryEventsResult.cc
|
||||
src/model/DescribeInstanceTopologyRequest.cc
|
||||
src/model/DescribeInstanceTopologyResult.cc
|
||||
src/model/DeletePhysicalConnectionRequest.cc
|
||||
src/model/DeletePhysicalConnectionResult.cc
|
||||
src/model/RevokeSecurityGroupRequest.cc
|
||||
src/model/RevokeSecurityGroupResult.cc
|
||||
src/model/CheckAutoSnapshotPolicyRequest.cc
|
||||
src/model/CheckAutoSnapshotPolicyResult.cc
|
||||
src/model/DescribeTaskAttributeRequest.cc
|
||||
src/model/DescribeTaskAttributeResult.cc
|
||||
src/model/CreateAutoSnapshotPolicyRequest.cc
|
||||
@@ -626,8 +606,6 @@ set(ecs_src
|
||||
src/model/DescribeSnapshotMonitorDataResult.cc
|
||||
src/model/ConnectRouterInterfaceRequest.cc
|
||||
src/model/ConnectRouterInterfaceResult.cc
|
||||
src/model/AddIpRangeRequest.cc
|
||||
src/model/AddIpRangeResult.cc
|
||||
src/model/GetInstanceConsoleOutputRequest.cc
|
||||
src/model/GetInstanceConsoleOutputResult.cc
|
||||
src/model/CreateSimulatedSystemEventsRequest.cc
|
||||
@@ -658,8 +636,6 @@ set(ecs_src
|
||||
src/model/AttachKeyPairResult.cc
|
||||
src/model/CreateRouterInterfaceRequest.cc
|
||||
src/model/CreateRouterInterfaceResult.cc
|
||||
src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc
|
||||
src/model/CheckDiskEnableAutoSnapshotValidationResult.cc
|
||||
src/model/RunInstancesRequest.cc
|
||||
src/model/RunInstancesResult.cc
|
||||
src/model/ModifyLaunchTemplateDefaultVersionRequest.cc
|
||||
@@ -736,8 +712,6 @@ set(ecs_src
|
||||
src/model/DescribeSnapshotPackageResult.cc
|
||||
src/model/RebootInstanceRequest.cc
|
||||
src/model/RebootInstanceResult.cc
|
||||
src/model/BindIpRangeRequest.cc
|
||||
src/model/BindIpRangeResult.cc
|
||||
src/model/InvokeCommandRequest.cc
|
||||
src/model/InvokeCommandResult.cc
|
||||
src/model/ModifyUserBusinessBehaviorRequest.cc
|
||||
@@ -856,8 +830,6 @@ set(ecs_src
|
||||
src/model/DeleteLaunchTemplateResult.cc
|
||||
src/model/DescribeNewProjectEipMonitorDataRequest.cc
|
||||
src/model/DescribeNewProjectEipMonitorDataResult.cc
|
||||
src/model/UnbindIpRangeRequest.cc
|
||||
src/model/UnbindIpRangeResult.cc
|
||||
src/model/DeleteRecycleBinRequest.cc
|
||||
src/model/DeleteRecycleBinResult.cc
|
||||
src/model/DescribeInstanceRamRoleRequest.cc
|
||||
@@ -884,8 +856,6 @@ set(ecs_src
|
||||
src/model/ResetDiskResult.cc
|
||||
src/model/ModifyDiskChargeTypeRequest.cc
|
||||
src/model/ModifyDiskChargeTypeResult.cc
|
||||
src/model/ModifyIntranetBandwidthKbRequest.cc
|
||||
src/model/ModifyIntranetBandwidthKbResult.cc
|
||||
src/model/DescribeBandwidthPackagesRequest.cc
|
||||
src/model/DescribeBandwidthPackagesResult.cc
|
||||
src/model/ApplyAutoSnapshotPolicyRequest.cc
|
||||
@@ -894,8 +864,6 @@ set(ecs_src
|
||||
src/model/CreateSecurityGroupResult.cc
|
||||
src/model/DescribeSnapshotLinksRequest.cc
|
||||
src/model/DescribeSnapshotLinksResult.cc
|
||||
src/model/DescribeEventDetailRequest.cc
|
||||
src/model/DescribeEventDetailResult.cc
|
||||
src/model/DescribeInvocationResultsRequest.cc
|
||||
src/model/DescribeInvocationResultsResult.cc
|
||||
src/model/DescribeRecommendInstanceTypeRequest.cc
|
||||
@@ -908,8 +876,6 @@ set(ecs_src
|
||||
src/model/DeleteInstanceResult.cc
|
||||
src/model/CreateLaunchTemplateRequest.cc
|
||||
src/model/CreateLaunchTemplateResult.cc
|
||||
src/model/DescribeIntranetAttributeKbRequest.cc
|
||||
src/model/DescribeIntranetAttributeKbResult.cc
|
||||
src/model/CreateNetworkInterfacePermissionRequest.cc
|
||||
src/model/CreateNetworkInterfacePermissionResult.cc
|
||||
src/model/RemoveBandwidthPackageIpsRequest.cc
|
||||
@@ -974,8 +940,6 @@ set(ecs_src
|
||||
src/model/DescribeCloudAssistantStatusResult.cc
|
||||
src/model/DescribeInstancePhysicalAttributeRequest.cc
|
||||
src/model/DescribeInstancePhysicalAttributeResult.cc
|
||||
src/model/ValidateSecurityGroupRequest.cc
|
||||
src/model/ValidateSecurityGroupResult.cc
|
||||
src/model/TerminatePhysicalConnectionRequest.cc
|
||||
src/model/TerminatePhysicalConnectionResult.cc
|
||||
src/model/AttachNetworkInterfaceRequest.cc
|
||||
@@ -998,16 +962,12 @@ set(ecs_src
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeClassicLinkInstancesRequest.cc
|
||||
src/model/DescribeClassicLinkInstancesResult.cc
|
||||
src/model/DescribeAutoSnapshotPolicyRequest.cc
|
||||
src/model/DescribeAutoSnapshotPolicyResult.cc
|
||||
src/model/DescribePhysicalConnectionsRequest.cc
|
||||
src/model/DescribePhysicalConnectionsResult.cc
|
||||
src/model/DescribeRecycleBinRequest.cc
|
||||
src/model/DescribeRecycleBinResult.cc
|
||||
src/model/CreateNetworkInterfaceRequest.cc
|
||||
src/model/CreateNetworkInterfaceResult.cc
|
||||
src/model/DescribeIpRangesRequest.cc
|
||||
src/model/DescribeIpRangesResult.cc
|
||||
src/model/DeleteNetworkInterfacePermissionRequest.cc
|
||||
src/model/DeleteNetworkInterfacePermissionResult.cc
|
||||
src/model/CancelPhysicalConnectionRequest.cc
|
||||
|
||||
@@ -62,12 +62,12 @@
|
||||
#include "model/StopInstanceResult.h"
|
||||
#include "model/DescribeInstanceHistoryEventsRequest.h"
|
||||
#include "model/DescribeInstanceHistoryEventsResult.h"
|
||||
#include "model/DescribeInstanceTopologyRequest.h"
|
||||
#include "model/DescribeInstanceTopologyResult.h"
|
||||
#include "model/DeletePhysicalConnectionRequest.h"
|
||||
#include "model/DeletePhysicalConnectionResult.h"
|
||||
#include "model/RevokeSecurityGroupRequest.h"
|
||||
#include "model/RevokeSecurityGroupResult.h"
|
||||
#include "model/CheckAutoSnapshotPolicyRequest.h"
|
||||
#include "model/CheckAutoSnapshotPolicyResult.h"
|
||||
#include "model/DescribeTaskAttributeRequest.h"
|
||||
#include "model/DescribeTaskAttributeResult.h"
|
||||
#include "model/CreateAutoSnapshotPolicyRequest.h"
|
||||
@@ -114,8 +114,6 @@
|
||||
#include "model/DescribeSnapshotMonitorDataResult.h"
|
||||
#include "model/ConnectRouterInterfaceRequest.h"
|
||||
#include "model/ConnectRouterInterfaceResult.h"
|
||||
#include "model/AddIpRangeRequest.h"
|
||||
#include "model/AddIpRangeResult.h"
|
||||
#include "model/GetInstanceConsoleOutputRequest.h"
|
||||
#include "model/GetInstanceConsoleOutputResult.h"
|
||||
#include "model/CreateSimulatedSystemEventsRequest.h"
|
||||
@@ -146,8 +144,6 @@
|
||||
#include "model/AttachKeyPairResult.h"
|
||||
#include "model/CreateRouterInterfaceRequest.h"
|
||||
#include "model/CreateRouterInterfaceResult.h"
|
||||
#include "model/CheckDiskEnableAutoSnapshotValidationRequest.h"
|
||||
#include "model/CheckDiskEnableAutoSnapshotValidationResult.h"
|
||||
#include "model/RunInstancesRequest.h"
|
||||
#include "model/RunInstancesResult.h"
|
||||
#include "model/ModifyLaunchTemplateDefaultVersionRequest.h"
|
||||
@@ -224,8 +220,6 @@
|
||||
#include "model/DescribeSnapshotPackageResult.h"
|
||||
#include "model/RebootInstanceRequest.h"
|
||||
#include "model/RebootInstanceResult.h"
|
||||
#include "model/BindIpRangeRequest.h"
|
||||
#include "model/BindIpRangeResult.h"
|
||||
#include "model/InvokeCommandRequest.h"
|
||||
#include "model/InvokeCommandResult.h"
|
||||
#include "model/ModifyUserBusinessBehaviorRequest.h"
|
||||
@@ -344,8 +338,6 @@
|
||||
#include "model/DeleteLaunchTemplateResult.h"
|
||||
#include "model/DescribeNewProjectEipMonitorDataRequest.h"
|
||||
#include "model/DescribeNewProjectEipMonitorDataResult.h"
|
||||
#include "model/UnbindIpRangeRequest.h"
|
||||
#include "model/UnbindIpRangeResult.h"
|
||||
#include "model/DeleteRecycleBinRequest.h"
|
||||
#include "model/DeleteRecycleBinResult.h"
|
||||
#include "model/DescribeInstanceRamRoleRequest.h"
|
||||
@@ -372,8 +364,6 @@
|
||||
#include "model/ResetDiskResult.h"
|
||||
#include "model/ModifyDiskChargeTypeRequest.h"
|
||||
#include "model/ModifyDiskChargeTypeResult.h"
|
||||
#include "model/ModifyIntranetBandwidthKbRequest.h"
|
||||
#include "model/ModifyIntranetBandwidthKbResult.h"
|
||||
#include "model/DescribeBandwidthPackagesRequest.h"
|
||||
#include "model/DescribeBandwidthPackagesResult.h"
|
||||
#include "model/ApplyAutoSnapshotPolicyRequest.h"
|
||||
@@ -382,8 +372,6 @@
|
||||
#include "model/CreateSecurityGroupResult.h"
|
||||
#include "model/DescribeSnapshotLinksRequest.h"
|
||||
#include "model/DescribeSnapshotLinksResult.h"
|
||||
#include "model/DescribeEventDetailRequest.h"
|
||||
#include "model/DescribeEventDetailResult.h"
|
||||
#include "model/DescribeInvocationResultsRequest.h"
|
||||
#include "model/DescribeInvocationResultsResult.h"
|
||||
#include "model/DescribeRecommendInstanceTypeRequest.h"
|
||||
@@ -396,8 +384,6 @@
|
||||
#include "model/DeleteInstanceResult.h"
|
||||
#include "model/CreateLaunchTemplateRequest.h"
|
||||
#include "model/CreateLaunchTemplateResult.h"
|
||||
#include "model/DescribeIntranetAttributeKbRequest.h"
|
||||
#include "model/DescribeIntranetAttributeKbResult.h"
|
||||
#include "model/CreateNetworkInterfacePermissionRequest.h"
|
||||
#include "model/CreateNetworkInterfacePermissionResult.h"
|
||||
#include "model/RemoveBandwidthPackageIpsRequest.h"
|
||||
@@ -462,8 +448,6 @@
|
||||
#include "model/DescribeCloudAssistantStatusResult.h"
|
||||
#include "model/DescribeInstancePhysicalAttributeRequest.h"
|
||||
#include "model/DescribeInstancePhysicalAttributeResult.h"
|
||||
#include "model/ValidateSecurityGroupRequest.h"
|
||||
#include "model/ValidateSecurityGroupResult.h"
|
||||
#include "model/TerminatePhysicalConnectionRequest.h"
|
||||
#include "model/TerminatePhysicalConnectionResult.h"
|
||||
#include "model/AttachNetworkInterfaceRequest.h"
|
||||
@@ -486,16 +470,12 @@
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeClassicLinkInstancesRequest.h"
|
||||
#include "model/DescribeClassicLinkInstancesResult.h"
|
||||
#include "model/DescribeAutoSnapshotPolicyRequest.h"
|
||||
#include "model/DescribeAutoSnapshotPolicyResult.h"
|
||||
#include "model/DescribePhysicalConnectionsRequest.h"
|
||||
#include "model/DescribePhysicalConnectionsResult.h"
|
||||
#include "model/DescribeRecycleBinRequest.h"
|
||||
#include "model/DescribeRecycleBinResult.h"
|
||||
#include "model/CreateNetworkInterfaceRequest.h"
|
||||
#include "model/CreateNetworkInterfaceResult.h"
|
||||
#include "model/DescribeIpRangesRequest.h"
|
||||
#include "model/DescribeIpRangesResult.h"
|
||||
#include "model/DeleteNetworkInterfacePermissionRequest.h"
|
||||
#include "model/DeleteNetworkInterfacePermissionResult.h"
|
||||
#include "model/CancelPhysicalConnectionRequest.h"
|
||||
@@ -601,15 +581,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeInstanceHistoryEventsResult> DescribeInstanceHistoryEventsOutcome;
|
||||
typedef std::future<DescribeInstanceHistoryEventsOutcome> DescribeInstanceHistoryEventsOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeInstanceHistoryEventsRequest&, const DescribeInstanceHistoryEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceHistoryEventsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceTopologyResult> DescribeInstanceTopologyOutcome;
|
||||
typedef std::future<DescribeInstanceTopologyOutcome> DescribeInstanceTopologyOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeInstanceTopologyRequest&, const DescribeInstanceTopologyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceTopologyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePhysicalConnectionResult> DeletePhysicalConnectionOutcome;
|
||||
typedef std::future<DeletePhysicalConnectionOutcome> DeletePhysicalConnectionOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeletePhysicalConnectionRequest&, const DeletePhysicalConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePhysicalConnectionAsyncHandler;
|
||||
typedef Outcome<Error, Model::RevokeSecurityGroupResult> RevokeSecurityGroupOutcome;
|
||||
typedef std::future<RevokeSecurityGroupOutcome> RevokeSecurityGroupOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RevokeSecurityGroupRequest&, const RevokeSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeSecurityGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckAutoSnapshotPolicyResult> CheckAutoSnapshotPolicyOutcome;
|
||||
typedef std::future<CheckAutoSnapshotPolicyOutcome> CheckAutoSnapshotPolicyOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CheckAutoSnapshotPolicyRequest&, const CheckAutoSnapshotPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckAutoSnapshotPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTaskAttributeResult> DescribeTaskAttributeOutcome;
|
||||
typedef std::future<DescribeTaskAttributeOutcome> DescribeTaskAttributeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeTaskAttributeRequest&, const DescribeTaskAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTaskAttributeAsyncHandler;
|
||||
@@ -679,9 +659,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ConnectRouterInterfaceResult> ConnectRouterInterfaceOutcome;
|
||||
typedef std::future<ConnectRouterInterfaceOutcome> ConnectRouterInterfaceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ConnectRouterInterfaceRequest&, const ConnectRouterInterfaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConnectRouterInterfaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddIpRangeResult> AddIpRangeOutcome;
|
||||
typedef std::future<AddIpRangeOutcome> AddIpRangeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::AddIpRangeRequest&, const AddIpRangeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddIpRangeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetInstanceConsoleOutputResult> GetInstanceConsoleOutputOutcome;
|
||||
typedef std::future<GetInstanceConsoleOutputOutcome> GetInstanceConsoleOutputOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::GetInstanceConsoleOutputRequest&, const GetInstanceConsoleOutputOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceConsoleOutputAsyncHandler;
|
||||
@@ -727,9 +704,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateRouterInterfaceResult> CreateRouterInterfaceOutcome;
|
||||
typedef std::future<CreateRouterInterfaceOutcome> CreateRouterInterfaceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateRouterInterfaceRequest&, const CreateRouterInterfaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRouterInterfaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckDiskEnableAutoSnapshotValidationResult> CheckDiskEnableAutoSnapshotValidationOutcome;
|
||||
typedef std::future<CheckDiskEnableAutoSnapshotValidationOutcome> CheckDiskEnableAutoSnapshotValidationOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CheckDiskEnableAutoSnapshotValidationRequest&, const CheckDiskEnableAutoSnapshotValidationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDiskEnableAutoSnapshotValidationAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunInstancesResult> RunInstancesOutcome;
|
||||
typedef std::future<RunInstancesOutcome> RunInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RunInstancesRequest&, const RunInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunInstancesAsyncHandler;
|
||||
@@ -844,9 +818,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RebootInstanceResult> RebootInstanceOutcome;
|
||||
typedef std::future<RebootInstanceOutcome> RebootInstanceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::RebootInstanceRequest&, const RebootInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RebootInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindIpRangeResult> BindIpRangeOutcome;
|
||||
typedef std::future<BindIpRangeOutcome> BindIpRangeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::BindIpRangeRequest&, const BindIpRangeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindIpRangeAsyncHandler;
|
||||
typedef Outcome<Error, Model::InvokeCommandResult> InvokeCommandOutcome;
|
||||
typedef std::future<InvokeCommandOutcome> InvokeCommandOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::InvokeCommandRequest&, const InvokeCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InvokeCommandAsyncHandler;
|
||||
@@ -1024,9 +995,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeNewProjectEipMonitorDataResult> DescribeNewProjectEipMonitorDataOutcome;
|
||||
typedef std::future<DescribeNewProjectEipMonitorDataOutcome> DescribeNewProjectEipMonitorDataOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeNewProjectEipMonitorDataRequest&, const DescribeNewProjectEipMonitorDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNewProjectEipMonitorDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindIpRangeResult> UnbindIpRangeOutcome;
|
||||
typedef std::future<UnbindIpRangeOutcome> UnbindIpRangeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::UnbindIpRangeRequest&, const UnbindIpRangeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindIpRangeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRecycleBinResult> DeleteRecycleBinOutcome;
|
||||
typedef std::future<DeleteRecycleBinOutcome> DeleteRecycleBinOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteRecycleBinRequest&, const DeleteRecycleBinOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRecycleBinAsyncHandler;
|
||||
@@ -1066,9 +1034,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDiskChargeTypeResult> ModifyDiskChargeTypeOutcome;
|
||||
typedef std::future<ModifyDiskChargeTypeOutcome> ModifyDiskChargeTypeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyDiskChargeTypeRequest&, const ModifyDiskChargeTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDiskChargeTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyIntranetBandwidthKbResult> ModifyIntranetBandwidthKbOutcome;
|
||||
typedef std::future<ModifyIntranetBandwidthKbOutcome> ModifyIntranetBandwidthKbOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyIntranetBandwidthKbRequest&, const ModifyIntranetBandwidthKbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyIntranetBandwidthKbAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBandwidthPackagesResult> DescribeBandwidthPackagesOutcome;
|
||||
typedef std::future<DescribeBandwidthPackagesOutcome> DescribeBandwidthPackagesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeBandwidthPackagesRequest&, const DescribeBandwidthPackagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBandwidthPackagesAsyncHandler;
|
||||
@@ -1081,9 +1046,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSnapshotLinksResult> DescribeSnapshotLinksOutcome;
|
||||
typedef std::future<DescribeSnapshotLinksOutcome> DescribeSnapshotLinksOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeSnapshotLinksRequest&, const DescribeSnapshotLinksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSnapshotLinksAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeEventDetailResult> DescribeEventDetailOutcome;
|
||||
typedef std::future<DescribeEventDetailOutcome> DescribeEventDetailOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeEventDetailRequest&, const DescribeEventDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEventDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInvocationResultsResult> DescribeInvocationResultsOutcome;
|
||||
typedef std::future<DescribeInvocationResultsOutcome> DescribeInvocationResultsOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeInvocationResultsRequest&, const DescribeInvocationResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInvocationResultsAsyncHandler;
|
||||
@@ -1102,9 +1064,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateLaunchTemplateResult> CreateLaunchTemplateOutcome;
|
||||
typedef std::future<CreateLaunchTemplateOutcome> CreateLaunchTemplateOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateLaunchTemplateRequest&, const CreateLaunchTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLaunchTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIntranetAttributeKbResult> DescribeIntranetAttributeKbOutcome;
|
||||
typedef std::future<DescribeIntranetAttributeKbOutcome> DescribeIntranetAttributeKbOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeIntranetAttributeKbRequest&, const DescribeIntranetAttributeKbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIntranetAttributeKbAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateNetworkInterfacePermissionResult> CreateNetworkInterfacePermissionOutcome;
|
||||
typedef std::future<CreateNetworkInterfacePermissionOutcome> CreateNetworkInterfacePermissionOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateNetworkInterfacePermissionRequest&, const CreateNetworkInterfacePermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNetworkInterfacePermissionAsyncHandler;
|
||||
@@ -1201,9 +1160,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeInstancePhysicalAttributeResult> DescribeInstancePhysicalAttributeOutcome;
|
||||
typedef std::future<DescribeInstancePhysicalAttributeOutcome> DescribeInstancePhysicalAttributeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeInstancePhysicalAttributeRequest&, const DescribeInstancePhysicalAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstancePhysicalAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ValidateSecurityGroupResult> ValidateSecurityGroupOutcome;
|
||||
typedef std::future<ValidateSecurityGroupOutcome> ValidateSecurityGroupOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ValidateSecurityGroupRequest&, const ValidateSecurityGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ValidateSecurityGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::TerminatePhysicalConnectionResult> TerminatePhysicalConnectionOutcome;
|
||||
typedef std::future<TerminatePhysicalConnectionOutcome> TerminatePhysicalConnectionOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::TerminatePhysicalConnectionRequest&, const TerminatePhysicalConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TerminatePhysicalConnectionAsyncHandler;
|
||||
@@ -1237,9 +1193,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeClassicLinkInstancesResult> DescribeClassicLinkInstancesOutcome;
|
||||
typedef std::future<DescribeClassicLinkInstancesOutcome> DescribeClassicLinkInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeClassicLinkInstancesRequest&, const DescribeClassicLinkInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClassicLinkInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAutoSnapshotPolicyResult> DescribeAutoSnapshotPolicyOutcome;
|
||||
typedef std::future<DescribeAutoSnapshotPolicyOutcome> DescribeAutoSnapshotPolicyOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeAutoSnapshotPolicyRequest&, const DescribeAutoSnapshotPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoSnapshotPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePhysicalConnectionsResult> DescribePhysicalConnectionsOutcome;
|
||||
typedef std::future<DescribePhysicalConnectionsOutcome> DescribePhysicalConnectionsOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribePhysicalConnectionsRequest&, const DescribePhysicalConnectionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePhysicalConnectionsAsyncHandler;
|
||||
@@ -1249,9 +1202,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateNetworkInterfaceResult> CreateNetworkInterfaceOutcome;
|
||||
typedef std::future<CreateNetworkInterfaceOutcome> CreateNetworkInterfaceOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateNetworkInterfaceRequest&, const CreateNetworkInterfaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNetworkInterfaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeIpRangesResult> DescribeIpRangesOutcome;
|
||||
typedef std::future<DescribeIpRangesOutcome> DescribeIpRangesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeIpRangesRequest&, const DescribeIpRangesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpRangesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteNetworkInterfacePermissionResult> DeleteNetworkInterfacePermissionOutcome;
|
||||
typedef std::future<DeleteNetworkInterfacePermissionOutcome> DeleteNetworkInterfacePermissionOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteNetworkInterfacePermissionRequest&, const DeleteNetworkInterfacePermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNetworkInterfacePermissionAsyncHandler;
|
||||
@@ -1371,15 +1321,15 @@ namespace AlibabaCloud
|
||||
DescribeInstanceHistoryEventsOutcome describeInstanceHistoryEvents(const Model::DescribeInstanceHistoryEventsRequest &request)const;
|
||||
void describeInstanceHistoryEventsAsync(const Model::DescribeInstanceHistoryEventsRequest& request, const DescribeInstanceHistoryEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceHistoryEventsOutcomeCallable describeInstanceHistoryEventsCallable(const Model::DescribeInstanceHistoryEventsRequest& request) const;
|
||||
DescribeInstanceTopologyOutcome describeInstanceTopology(const Model::DescribeInstanceTopologyRequest &request)const;
|
||||
void describeInstanceTopologyAsync(const Model::DescribeInstanceTopologyRequest& request, const DescribeInstanceTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceTopologyOutcomeCallable describeInstanceTopologyCallable(const Model::DescribeInstanceTopologyRequest& request) const;
|
||||
DeletePhysicalConnectionOutcome deletePhysicalConnection(const Model::DeletePhysicalConnectionRequest &request)const;
|
||||
void deletePhysicalConnectionAsync(const Model::DeletePhysicalConnectionRequest& request, const DeletePhysicalConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePhysicalConnectionOutcomeCallable deletePhysicalConnectionCallable(const Model::DeletePhysicalConnectionRequest& request) const;
|
||||
RevokeSecurityGroupOutcome revokeSecurityGroup(const Model::RevokeSecurityGroupRequest &request)const;
|
||||
void revokeSecurityGroupAsync(const Model::RevokeSecurityGroupRequest& request, const RevokeSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeSecurityGroupOutcomeCallable revokeSecurityGroupCallable(const Model::RevokeSecurityGroupRequest& request) const;
|
||||
CheckAutoSnapshotPolicyOutcome checkAutoSnapshotPolicy(const Model::CheckAutoSnapshotPolicyRequest &request)const;
|
||||
void checkAutoSnapshotPolicyAsync(const Model::CheckAutoSnapshotPolicyRequest& request, const CheckAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckAutoSnapshotPolicyOutcomeCallable checkAutoSnapshotPolicyCallable(const Model::CheckAutoSnapshotPolicyRequest& request) const;
|
||||
DescribeTaskAttributeOutcome describeTaskAttribute(const Model::DescribeTaskAttributeRequest &request)const;
|
||||
void describeTaskAttributeAsync(const Model::DescribeTaskAttributeRequest& request, const DescribeTaskAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTaskAttributeOutcomeCallable describeTaskAttributeCallable(const Model::DescribeTaskAttributeRequest& request) const;
|
||||
@@ -1449,9 +1399,6 @@ namespace AlibabaCloud
|
||||
ConnectRouterInterfaceOutcome connectRouterInterface(const Model::ConnectRouterInterfaceRequest &request)const;
|
||||
void connectRouterInterfaceAsync(const Model::ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConnectRouterInterfaceOutcomeCallable connectRouterInterfaceCallable(const Model::ConnectRouterInterfaceRequest& request) const;
|
||||
AddIpRangeOutcome addIpRange(const Model::AddIpRangeRequest &request)const;
|
||||
void addIpRangeAsync(const Model::AddIpRangeRequest& request, const AddIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddIpRangeOutcomeCallable addIpRangeCallable(const Model::AddIpRangeRequest& request) const;
|
||||
GetInstanceConsoleOutputOutcome getInstanceConsoleOutput(const Model::GetInstanceConsoleOutputRequest &request)const;
|
||||
void getInstanceConsoleOutputAsync(const Model::GetInstanceConsoleOutputRequest& request, const GetInstanceConsoleOutputAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInstanceConsoleOutputOutcomeCallable getInstanceConsoleOutputCallable(const Model::GetInstanceConsoleOutputRequest& request) const;
|
||||
@@ -1497,9 +1444,6 @@ namespace AlibabaCloud
|
||||
CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const;
|
||||
void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRouterInterfaceOutcomeCallable createRouterInterfaceCallable(const Model::CreateRouterInterfaceRequest& request) const;
|
||||
CheckDiskEnableAutoSnapshotValidationOutcome checkDiskEnableAutoSnapshotValidation(const Model::CheckDiskEnableAutoSnapshotValidationRequest &request)const;
|
||||
void checkDiskEnableAutoSnapshotValidationAsync(const Model::CheckDiskEnableAutoSnapshotValidationRequest& request, const CheckDiskEnableAutoSnapshotValidationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckDiskEnableAutoSnapshotValidationOutcomeCallable checkDiskEnableAutoSnapshotValidationCallable(const Model::CheckDiskEnableAutoSnapshotValidationRequest& request) const;
|
||||
RunInstancesOutcome runInstances(const Model::RunInstancesRequest &request)const;
|
||||
void runInstancesAsync(const Model::RunInstancesRequest& request, const RunInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunInstancesOutcomeCallable runInstancesCallable(const Model::RunInstancesRequest& request) const;
|
||||
@@ -1614,9 +1558,6 @@ namespace AlibabaCloud
|
||||
RebootInstanceOutcome rebootInstance(const Model::RebootInstanceRequest &request)const;
|
||||
void rebootInstanceAsync(const Model::RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RebootInstanceOutcomeCallable rebootInstanceCallable(const Model::RebootInstanceRequest& request) const;
|
||||
BindIpRangeOutcome bindIpRange(const Model::BindIpRangeRequest &request)const;
|
||||
void bindIpRangeAsync(const Model::BindIpRangeRequest& request, const BindIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindIpRangeOutcomeCallable bindIpRangeCallable(const Model::BindIpRangeRequest& request) const;
|
||||
InvokeCommandOutcome invokeCommand(const Model::InvokeCommandRequest &request)const;
|
||||
void invokeCommandAsync(const Model::InvokeCommandRequest& request, const InvokeCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InvokeCommandOutcomeCallable invokeCommandCallable(const Model::InvokeCommandRequest& request) const;
|
||||
@@ -1794,9 +1735,6 @@ namespace AlibabaCloud
|
||||
DescribeNewProjectEipMonitorDataOutcome describeNewProjectEipMonitorData(const Model::DescribeNewProjectEipMonitorDataRequest &request)const;
|
||||
void describeNewProjectEipMonitorDataAsync(const Model::DescribeNewProjectEipMonitorDataRequest& request, const DescribeNewProjectEipMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeNewProjectEipMonitorDataOutcomeCallable describeNewProjectEipMonitorDataCallable(const Model::DescribeNewProjectEipMonitorDataRequest& request) const;
|
||||
UnbindIpRangeOutcome unbindIpRange(const Model::UnbindIpRangeRequest &request)const;
|
||||
void unbindIpRangeAsync(const Model::UnbindIpRangeRequest& request, const UnbindIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindIpRangeOutcomeCallable unbindIpRangeCallable(const Model::UnbindIpRangeRequest& request) const;
|
||||
DeleteRecycleBinOutcome deleteRecycleBin(const Model::DeleteRecycleBinRequest &request)const;
|
||||
void deleteRecycleBinAsync(const Model::DeleteRecycleBinRequest& request, const DeleteRecycleBinAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRecycleBinOutcomeCallable deleteRecycleBinCallable(const Model::DeleteRecycleBinRequest& request) const;
|
||||
@@ -1836,9 +1774,6 @@ namespace AlibabaCloud
|
||||
ModifyDiskChargeTypeOutcome modifyDiskChargeType(const Model::ModifyDiskChargeTypeRequest &request)const;
|
||||
void modifyDiskChargeTypeAsync(const Model::ModifyDiskChargeTypeRequest& request, const ModifyDiskChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDiskChargeTypeOutcomeCallable modifyDiskChargeTypeCallable(const Model::ModifyDiskChargeTypeRequest& request) const;
|
||||
ModifyIntranetBandwidthKbOutcome modifyIntranetBandwidthKb(const Model::ModifyIntranetBandwidthKbRequest &request)const;
|
||||
void modifyIntranetBandwidthKbAsync(const Model::ModifyIntranetBandwidthKbRequest& request, const ModifyIntranetBandwidthKbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyIntranetBandwidthKbOutcomeCallable modifyIntranetBandwidthKbCallable(const Model::ModifyIntranetBandwidthKbRequest& request) const;
|
||||
DescribeBandwidthPackagesOutcome describeBandwidthPackages(const Model::DescribeBandwidthPackagesRequest &request)const;
|
||||
void describeBandwidthPackagesAsync(const Model::DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBandwidthPackagesOutcomeCallable describeBandwidthPackagesCallable(const Model::DescribeBandwidthPackagesRequest& request) const;
|
||||
@@ -1851,9 +1786,6 @@ namespace AlibabaCloud
|
||||
DescribeSnapshotLinksOutcome describeSnapshotLinks(const Model::DescribeSnapshotLinksRequest &request)const;
|
||||
void describeSnapshotLinksAsync(const Model::DescribeSnapshotLinksRequest& request, const DescribeSnapshotLinksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSnapshotLinksOutcomeCallable describeSnapshotLinksCallable(const Model::DescribeSnapshotLinksRequest& request) const;
|
||||
DescribeEventDetailOutcome describeEventDetail(const Model::DescribeEventDetailRequest &request)const;
|
||||
void describeEventDetailAsync(const Model::DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEventDetailOutcomeCallable describeEventDetailCallable(const Model::DescribeEventDetailRequest& request) const;
|
||||
DescribeInvocationResultsOutcome describeInvocationResults(const Model::DescribeInvocationResultsRequest &request)const;
|
||||
void describeInvocationResultsAsync(const Model::DescribeInvocationResultsRequest& request, const DescribeInvocationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInvocationResultsOutcomeCallable describeInvocationResultsCallable(const Model::DescribeInvocationResultsRequest& request) const;
|
||||
@@ -1872,9 +1804,6 @@ namespace AlibabaCloud
|
||||
CreateLaunchTemplateOutcome createLaunchTemplate(const Model::CreateLaunchTemplateRequest &request)const;
|
||||
void createLaunchTemplateAsync(const Model::CreateLaunchTemplateRequest& request, const CreateLaunchTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateLaunchTemplateOutcomeCallable createLaunchTemplateCallable(const Model::CreateLaunchTemplateRequest& request) const;
|
||||
DescribeIntranetAttributeKbOutcome describeIntranetAttributeKb(const Model::DescribeIntranetAttributeKbRequest &request)const;
|
||||
void describeIntranetAttributeKbAsync(const Model::DescribeIntranetAttributeKbRequest& request, const DescribeIntranetAttributeKbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIntranetAttributeKbOutcomeCallable describeIntranetAttributeKbCallable(const Model::DescribeIntranetAttributeKbRequest& request) const;
|
||||
CreateNetworkInterfacePermissionOutcome createNetworkInterfacePermission(const Model::CreateNetworkInterfacePermissionRequest &request)const;
|
||||
void createNetworkInterfacePermissionAsync(const Model::CreateNetworkInterfacePermissionRequest& request, const CreateNetworkInterfacePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateNetworkInterfacePermissionOutcomeCallable createNetworkInterfacePermissionCallable(const Model::CreateNetworkInterfacePermissionRequest& request) const;
|
||||
@@ -1971,9 +1900,6 @@ namespace AlibabaCloud
|
||||
DescribeInstancePhysicalAttributeOutcome describeInstancePhysicalAttribute(const Model::DescribeInstancePhysicalAttributeRequest &request)const;
|
||||
void describeInstancePhysicalAttributeAsync(const Model::DescribeInstancePhysicalAttributeRequest& request, const DescribeInstancePhysicalAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstancePhysicalAttributeOutcomeCallable describeInstancePhysicalAttributeCallable(const Model::DescribeInstancePhysicalAttributeRequest& request) const;
|
||||
ValidateSecurityGroupOutcome validateSecurityGroup(const Model::ValidateSecurityGroupRequest &request)const;
|
||||
void validateSecurityGroupAsync(const Model::ValidateSecurityGroupRequest& request, const ValidateSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ValidateSecurityGroupOutcomeCallable validateSecurityGroupCallable(const Model::ValidateSecurityGroupRequest& request) const;
|
||||
TerminatePhysicalConnectionOutcome terminatePhysicalConnection(const Model::TerminatePhysicalConnectionRequest &request)const;
|
||||
void terminatePhysicalConnectionAsync(const Model::TerminatePhysicalConnectionRequest& request, const TerminatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TerminatePhysicalConnectionOutcomeCallable terminatePhysicalConnectionCallable(const Model::TerminatePhysicalConnectionRequest& request) const;
|
||||
@@ -2007,9 +1933,6 @@ namespace AlibabaCloud
|
||||
DescribeClassicLinkInstancesOutcome describeClassicLinkInstances(const Model::DescribeClassicLinkInstancesRequest &request)const;
|
||||
void describeClassicLinkInstancesAsync(const Model::DescribeClassicLinkInstancesRequest& request, const DescribeClassicLinkInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeClassicLinkInstancesOutcomeCallable describeClassicLinkInstancesCallable(const Model::DescribeClassicLinkInstancesRequest& request) const;
|
||||
DescribeAutoSnapshotPolicyOutcome describeAutoSnapshotPolicy(const Model::DescribeAutoSnapshotPolicyRequest &request)const;
|
||||
void describeAutoSnapshotPolicyAsync(const Model::DescribeAutoSnapshotPolicyRequest& request, const DescribeAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAutoSnapshotPolicyOutcomeCallable describeAutoSnapshotPolicyCallable(const Model::DescribeAutoSnapshotPolicyRequest& request) const;
|
||||
DescribePhysicalConnectionsOutcome describePhysicalConnections(const Model::DescribePhysicalConnectionsRequest &request)const;
|
||||
void describePhysicalConnectionsAsync(const Model::DescribePhysicalConnectionsRequest& request, const DescribePhysicalConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePhysicalConnectionsOutcomeCallable describePhysicalConnectionsCallable(const Model::DescribePhysicalConnectionsRequest& request) const;
|
||||
@@ -2019,9 +1942,6 @@ namespace AlibabaCloud
|
||||
CreateNetworkInterfaceOutcome createNetworkInterface(const Model::CreateNetworkInterfaceRequest &request)const;
|
||||
void createNetworkInterfaceAsync(const Model::CreateNetworkInterfaceRequest& request, const CreateNetworkInterfaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateNetworkInterfaceOutcomeCallable createNetworkInterfaceCallable(const Model::CreateNetworkInterfaceRequest& request) const;
|
||||
DescribeIpRangesOutcome describeIpRanges(const Model::DescribeIpRangesRequest &request)const;
|
||||
void describeIpRangesAsync(const Model::DescribeIpRangesRequest& request, const DescribeIpRangesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeIpRangesOutcomeCallable describeIpRangesCallable(const Model::DescribeIpRangesRequest& request) const;
|
||||
DeleteNetworkInterfacePermissionOutcome deleteNetworkInterfacePermission(const Model::DeleteNetworkInterfacePermissionRequest &request)const;
|
||||
void deleteNetworkInterfacePermissionAsync(const Model::DeleteNetworkInterfacePermissionRequest& request, const DeleteNetworkInterfacePermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteNetworkInterfacePermissionOutcomeCallable deleteNetworkInterfacePermissionCallable(const Model::DeleteNetworkInterfacePermissionRequest& request) const;
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* 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_BINDIPRANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_BINDIPRANGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT BindIpRangeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BindIpRangeRequest();
|
||||
~BindIpRangeRequest();
|
||||
|
||||
std::string getIpAddress()const;
|
||||
void setIpAddress(const std::string& ipAddress);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string ipAddress_;
|
||||
long resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_BINDIPRANGEREQUEST_H_
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* 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_BINDIPRANGERESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_BINDIPRANGERESULT_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 BindIpRangeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BindIpRangeResult();
|
||||
explicit BindIpRangeResult(const std::string &payload);
|
||||
~BindIpRangeResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_BINDIPRANGERESULT_H_
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* 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_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT CheckAutoSnapshotPolicyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckAutoSnapshotPolicyRequest();
|
||||
~CheckAutoSnapshotPolicyRequest();
|
||||
|
||||
bool getDataDiskPolicyEnabled()const;
|
||||
void setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getDataDiskPolicyRetentionDays()const;
|
||||
void setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
bool getSystemDiskPolicyRetentionLastWeek()const;
|
||||
void setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
int getSystemDiskPolicyTimePeriod()const;
|
||||
void setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
bool getDataDiskPolicyRetentionLastWeek()const;
|
||||
void setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek);
|
||||
int getSystemDiskPolicyRetentionDays()const;
|
||||
void setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays);
|
||||
int getDataDiskPolicyTimePeriod()const;
|
||||
void setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod);
|
||||
bool getSystemDiskPolicyEnabled()const;
|
||||
void setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled);
|
||||
|
||||
private:
|
||||
bool dataDiskPolicyEnabled_;
|
||||
long resourceOwnerId_;
|
||||
int dataDiskPolicyRetentionDays_;
|
||||
std::string resourceOwnerAccount_;
|
||||
bool systemDiskPolicyRetentionLastWeek_;
|
||||
std::string ownerAccount_;
|
||||
int systemDiskPolicyTimePeriod_;
|
||||
long ownerId_;
|
||||
bool dataDiskPolicyRetentionLastWeek_;
|
||||
int systemDiskPolicyRetentionDays_;
|
||||
int dataDiskPolicyTimePeriod_;
|
||||
bool systemDiskPolicyEnabled_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT CheckDiskEnableAutoSnapshotValidationRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckDiskEnableAutoSnapshotValidationRequest();
|
||||
~CheckDiskEnableAutoSnapshotValidationRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getDiskIds()const;
|
||||
void setDiskIds(const std::string& diskIds);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string diskIds_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* 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_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_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 CheckDiskEnableAutoSnapshotValidationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult();
|
||||
explicit CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload);
|
||||
~CheckDiskEnableAutoSnapshotValidationResult();
|
||||
int getAutoSnapshotOccupation()const;
|
||||
std::string getIsPermitted()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int autoSnapshotOccupation_;
|
||||
std::string isPermitted_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_
|
||||
@@ -51,12 +51,12 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOnUnableToRedeployFailedInstance()const;
|
||||
void setOnUnableToRedeployFailedInstance(const std::string& onUnableToRedeployFailedInstance);
|
||||
std::string getGranularity()const;
|
||||
void setGranularity(const std::string& granularity);
|
||||
std::string getDomain()const;
|
||||
void setDomain(const std::string& domain);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getStrategy()const;
|
||||
void setStrategy(const std::string& strategy);
|
||||
|
||||
@@ -69,9 +69,9 @@ namespace AlibabaCloud
|
||||
std::string deploymentSetName_;
|
||||
long ownerId_;
|
||||
std::string regionId_;
|
||||
std::string onUnableToRedeployFailedInstance_;
|
||||
std::string granularity_;
|
||||
std::string domain_;
|
||||
std::string zoneId_;
|
||||
std::string strategy_;
|
||||
|
||||
};
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAutoSnapshotPolicyRequest();
|
||||
~DescribeAutoSnapshotPolicyRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_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 DescribeAutoSnapshotPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AutoSnapshotPolicy
|
||||
{
|
||||
std::string systemDiskPolicyTimePeriod;
|
||||
std::string systemDiskPolicyEnabled;
|
||||
std::string dataDiskPolicyTimePeriod;
|
||||
std::string systemDiskPolicyRetentionLastWeek;
|
||||
std::string systemDiskPolicyRetentionDays;
|
||||
std::string dataDiskPolicyRetentionDays;
|
||||
std::string dataDiskPolicyRetentionLastWeek;
|
||||
std::string dataDiskPolicyEnabled;
|
||||
};
|
||||
struct AutoSnapshotExcutionStatus
|
||||
{
|
||||
std::string systemDiskExcutionStatus;
|
||||
std::string dataDiskExcutionStatus;
|
||||
};
|
||||
|
||||
|
||||
DescribeAutoSnapshotPolicyResult();
|
||||
explicit DescribeAutoSnapshotPolicyResult(const std::string &payload);
|
||||
~DescribeAutoSnapshotPolicyResult();
|
||||
int getAutoSnapshotOccupation()const;
|
||||
AutoSnapshotExcutionStatus getAutoSnapshotExcutionStatus()const;
|
||||
AutoSnapshotPolicy getAutoSnapshotPolicy()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int autoSnapshotOccupation_;
|
||||
AutoSnapshotExcutionStatus autoSnapshotExcutionStatus_;
|
||||
AutoSnapshotPolicy autoSnapshotPolicy_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
@@ -42,6 +42,8 @@ namespace AlibabaCloud
|
||||
std::string deploymentSetName;
|
||||
std::string domain;
|
||||
std::string granularity;
|
||||
std::vector<std::string> instanceIds;
|
||||
std::string deploymentStrategy;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -57,7 +57,9 @@ namespace AlibabaCloud
|
||||
std::string eventEndTime;
|
||||
};
|
||||
Status status;
|
||||
std::string instanceId;
|
||||
std::vector<DiskFullStatusType::DiskEventType> diskEventSet;
|
||||
std::string device;
|
||||
HealthStatus healthStatus;
|
||||
std::string diskId;
|
||||
};
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEEVENTDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeEventDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeEventDetailRequest();
|
||||
~DescribeEventDetailRequest();
|
||||
|
||||
std::string getApp_ip()const;
|
||||
void setApp_ip(const std::string& app_ip);
|
||||
std::string getEventId()const;
|
||||
void setEventId(const std::string& eventId);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
bool getProxy_original_security_transport()const;
|
||||
void setProxy_original_security_transport(bool proxy_original_security_transport);
|
||||
std::string getCallerBid()const;
|
||||
void setCallerBid(const std::string& callerBid);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getProxy_original_source_ip()const;
|
||||
void setProxy_original_source_ip(const std::string& proxy_original_source_ip);
|
||||
std::string getOwnerIdLoginEmail()const;
|
||||
void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
bool getProxy_trust_transport_info()const;
|
||||
void setProxy_trust_transport_info(bool proxy_trust_transport_info);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
bool getEnable()const;
|
||||
void setEnable(bool enable);
|
||||
std::string getRequestContent()const;
|
||||
void setRequestContent(const std::string& requestContent);
|
||||
std::string getCallerBidEmail()const;
|
||||
void setCallerBidEmail(const std::string& callerBidEmail);
|
||||
std::string getCallerUidEmail()const;
|
||||
void setCallerUidEmail(const std::string& callerUidEmail);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
|
||||
private:
|
||||
std::string app_ip_;
|
||||
std::string eventId_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long callerParentId_;
|
||||
bool proxy_original_security_transport_;
|
||||
std::string callerBid_;
|
||||
long ownerId_;
|
||||
std::string proxy_original_source_ip_;
|
||||
std::string ownerIdLoginEmail_;
|
||||
std::string callerType_;
|
||||
bool proxy_trust_transport_info_;
|
||||
bool ak_mfa_present_;
|
||||
std::string accessKeyId_;
|
||||
bool security_transport_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string requestId_;
|
||||
bool enable_;
|
||||
std::string requestContent_;
|
||||
std::string callerBidEmail_;
|
||||
std::string callerUidEmail_;
|
||||
long callerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILREQUEST_H_
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEEVENTDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILRESULT_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 DescribeEventDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeEventDetailResult();
|
||||
explicit DescribeEventDetailResult(const std::string &payload);
|
||||
~DescribeEventDetailResult();
|
||||
std::string getStatus()const;
|
||||
std::string getLimitTime()const;
|
||||
std::string getEventCategory()const;
|
||||
std::string getEndTime()const;
|
||||
std::string getEventType()const;
|
||||
std::string getStartTime()const;
|
||||
std::string getEffectTime()const;
|
||||
std::string getMark()const;
|
||||
std::string getPlanTime()const;
|
||||
std::string getResourceId()const;
|
||||
std::string getSupportModify()const;
|
||||
std::string getEventId()const;
|
||||
std::string getExpireTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string limitTime_;
|
||||
std::string eventCategory_;
|
||||
std::string endTime_;
|
||||
std::string eventType_;
|
||||
std::string startTime_;
|
||||
std::string effectTime_;
|
||||
std::string mark_;
|
||||
std::string planTime_;
|
||||
std::string resourceId_;
|
||||
std::string supportModify_;
|
||||
std::string eventId_;
|
||||
std::string expireTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEVENTDETAILRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_ADDIPRANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_ADDIPRANGEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,39 +28,33 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT AddIpRangeRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddIpRangeRequest();
|
||||
~AddIpRangeRequest();
|
||||
DescribeInstanceTopologyRequest();
|
||||
~DescribeInstanceTopologyRequest();
|
||||
|
||||
std::string getIpAddress()const;
|
||||
void setIpAddress(const std::string& ipAddress);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getInstanceIds()const;
|
||||
void setInstanceIds(const std::string& instanceIds);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string ipAddress_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string regionId_;
|
||||
std::string ownerAccount_;
|
||||
std::string zoneId_;
|
||||
std::string instanceIds_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_ADDIPRANGEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,25 +29,28 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT CheckAutoSnapshotPolicyResult : public ServiceResult
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Topology
|
||||
{
|
||||
std::string instanceId;
|
||||
std::string hostId;
|
||||
};
|
||||
|
||||
|
||||
CheckAutoSnapshotPolicyResult();
|
||||
explicit CheckAutoSnapshotPolicyResult(const std::string &payload);
|
||||
~CheckAutoSnapshotPolicyResult();
|
||||
int getAutoSnapshotOccupation()const;
|
||||
std::string getIsPermittedModify()const;
|
||||
DescribeInstanceTopologyResult();
|
||||
explicit DescribeInstanceTopologyResult(const std::string &payload);
|
||||
~DescribeInstanceTopologyResult();
|
||||
std::vector<Topology> getTopologys()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int autoSnapshotOccupation_;
|
||||
std::string isPermittedModify_;
|
||||
std::vector<Topology> topologys_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYRESULT_H_
|
||||
@@ -98,6 +98,8 @@ namespace AlibabaCloud
|
||||
void setInstanceTypeFamily(const std::string& instanceTypeFamily);
|
||||
std::string getFilter1Value()const;
|
||||
void setFilter1Value(const std::string& filter1Value);
|
||||
bool getNeedSaleCycle()const;
|
||||
void setNeedSaleCycle(bool needSaleCycle);
|
||||
std::string getFilter2Key()const;
|
||||
void setFilter2Key(const std::string& filter2Key);
|
||||
long getOwnerId()const;
|
||||
@@ -153,6 +155,7 @@ namespace AlibabaCloud
|
||||
std::string ownerAccount_;
|
||||
std::string instanceTypeFamily_;
|
||||
std::string filter1Value_;
|
||||
bool needSaleCycle_;
|
||||
std::string filter2Key_;
|
||||
long ownerId_;
|
||||
std::string vSwitchId_;
|
||||
|
||||
@@ -91,6 +91,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> securityGroupIds;
|
||||
std::string internetChargeType;
|
||||
std::string instanceName;
|
||||
std::string deploymentSetId;
|
||||
int internetMaxBandwidthOut;
|
||||
std::string serialNumber;
|
||||
std::string oSType;
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeIntranetAttributeKbRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeIntranetAttributeKbRequest();
|
||||
~DescribeIntranetAttributeKbRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBRESULT_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 DescribeIntranetAttributeKbResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeIntranetAttributeKbResult();
|
||||
explicit DescribeIntranetAttributeKbResult(const std::string &payload);
|
||||
~DescribeIntranetAttributeKbResult();
|
||||
std::string getInstanceId()const;
|
||||
int getIntranetMaxBandwidthOut()const;
|
||||
std::string getVlanId()const;
|
||||
std::string getIntranetIpAddress()const;
|
||||
int getIntranetMaxBandwidthIn()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string instanceId_;
|
||||
int intranetMaxBandwidthOut_;
|
||||
std::string vlanId_;
|
||||
std::string intranetIpAddress_;
|
||||
int intranetMaxBandwidthIn_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEIPRANGESREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeIpRangesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeIpRangesRequest();
|
||||
~DescribeIpRangesRequest();
|
||||
|
||||
std::string getNicType()const;
|
||||
void setNicType(const std::string& nicType);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
|
||||
private:
|
||||
std::string nicType_;
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string regionId_;
|
||||
std::string ownerAccount_;
|
||||
int pageSize_;
|
||||
std::string clusterId_;
|
||||
long ownerId_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* 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_DESCRIBEIPRANGESRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESRESULT_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 DescribeIpRangesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct IpRange
|
||||
{
|
||||
std::string ipAddress;
|
||||
std::string nicType;
|
||||
};
|
||||
|
||||
|
||||
DescribeIpRangesResult();
|
||||
explicit DescribeIpRangesResult(const std::string &payload);
|
||||
~DescribeIpRangesResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
std::string getClusterId()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<IpRange> getIpRanges()const;
|
||||
std::string getRegionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
std::vector<IpRange> ipRanges_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESRESULT_H_
|
||||
@@ -35,86 +35,32 @@ namespace AlibabaCloud
|
||||
ModifyImageSharePermissionRequest();
|
||||
~ModifyImageSharePermissionRequest();
|
||||
|
||||
std::string getAddAccount1()const;
|
||||
void setAddAccount1(const std::string& addAccount1);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAddAccount9()const;
|
||||
void setAddAccount9(const std::string& addAccount9);
|
||||
std::string getAddAccount8()const;
|
||||
void setAddAccount8(const std::string& addAccount8);
|
||||
std::string getAddAccount7()const;
|
||||
void setAddAccount7(const std::string& addAccount7);
|
||||
std::string getAddAccount6()const;
|
||||
void setAddAccount6(const std::string& addAccount6);
|
||||
std::string getAddAccount5()const;
|
||||
void setAddAccount5(const std::string& addAccount5);
|
||||
std::string getAddAccount10()const;
|
||||
void setAddAccount10(const std::string& addAccount10);
|
||||
std::string getAddAccount4()const;
|
||||
void setAddAccount4(const std::string& addAccount4);
|
||||
std::string getAddAccount3()const;
|
||||
void setAddAccount3(const std::string& addAccount3);
|
||||
std::string getAddAccount2()const;
|
||||
void setAddAccount2(const std::string& addAccount2);
|
||||
std::vector<std::string> getAddAccount()const;
|
||||
void setAddAccount(const std::vector<std::string>& addAccount);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<std::string> getRemoveAccount()const;
|
||||
void setRemoveAccount(const std::vector<std::string>& removeAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getRemoveAccount1()const;
|
||||
void setRemoveAccount1(const std::string& removeAccount1);
|
||||
std::string getRemoveAccount2()const;
|
||||
void setRemoveAccount2(const std::string& removeAccount2);
|
||||
std::string getRemoveAccount3()const;
|
||||
void setRemoveAccount3(const std::string& removeAccount3);
|
||||
std::string getRemoveAccount4()const;
|
||||
void setRemoveAccount4(const std::string& removeAccount4);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getRemoveAccount9()const;
|
||||
void setRemoveAccount9(const std::string& removeAccount9);
|
||||
std::string getRemoveAccount5()const;
|
||||
void setRemoveAccount5(const std::string& removeAccount5);
|
||||
std::string getRemoveAccount6()const;
|
||||
void setRemoveAccount6(const std::string& removeAccount6);
|
||||
std::string getRemoveAccount7()const;
|
||||
void setRemoveAccount7(const std::string& removeAccount7);
|
||||
std::string getRemoveAccount8()const;
|
||||
void setRemoveAccount8(const std::string& removeAccount8);
|
||||
std::string getRemoveAccount10()const;
|
||||
void setRemoveAccount10(const std::string& removeAccount10);
|
||||
|
||||
private:
|
||||
std::string addAccount1_;
|
||||
long resourceOwnerId_;
|
||||
std::string imageId_;
|
||||
std::string regionId_;
|
||||
std::string addAccount9_;
|
||||
std::string addAccount8_;
|
||||
std::string addAccount7_;
|
||||
std::string addAccount6_;
|
||||
std::string addAccount5_;
|
||||
std::string addAccount10_;
|
||||
std::string addAccount4_;
|
||||
std::string addAccount3_;
|
||||
std::string addAccount2_;
|
||||
std::vector<std::string> addAccount_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string regionId_;
|
||||
std::vector<std::string> removeAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string removeAccount1_;
|
||||
std::string removeAccount2_;
|
||||
std::string removeAccount3_;
|
||||
std::string removeAccount4_;
|
||||
long ownerId_;
|
||||
std::string removeAccount9_;
|
||||
std::string removeAccount5_;
|
||||
std::string removeAccount6_;
|
||||
std::string removeAccount7_;
|
||||
std::string removeAccount8_;
|
||||
std::string removeAccount10_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -63,6 +63,8 @@ namespace AlibabaCloud
|
||||
void setCallerUidEmail(const std::string& callerUidEmail);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getDeploymentSetId()const;
|
||||
void setDeploymentSetId(const std::string& deploymentSetId);
|
||||
std::string getApp_ip()const;
|
||||
void setApp_ip(const std::string& app_ip);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -85,6 +87,8 @@ namespace AlibabaCloud
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
bool getForce()const;
|
||||
void setForce(bool force);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -101,6 +105,7 @@ namespace AlibabaCloud
|
||||
std::string callerBidEmail_;
|
||||
std::string callerUidEmail_;
|
||||
long callerUid_;
|
||||
std::string deploymentSetId_;
|
||||
std::string app_ip_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
@@ -112,6 +117,7 @@ namespace AlibabaCloud
|
||||
bool security_transport_;
|
||||
std::string instanceId_;
|
||||
std::string requestId_;
|
||||
bool force_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* 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_MODIFYINTRANETBANDWIDTHKBREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT ModifyIntranetBandwidthKbRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyIntranetBandwidthKbRequest();
|
||||
~ModifyIntranetBandwidthKbRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getIntranetMaxBandwidthOut()const;
|
||||
void setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
int getIntranetMaxBandwidthIn()const;
|
||||
void setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int intranetMaxBandwidthOut_;
|
||||
std::string instanceId_;
|
||||
int intranetMaxBandwidthIn_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBREQUEST_H_
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* 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_MODIFYINTRANETBANDWIDTHKBRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBRESULT_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 ModifyIntranetBandwidthKbResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyIntranetBandwidthKbResult();
|
||||
explicit ModifyIntranetBandwidthKbResult(const std::string &payload);
|
||||
~ModifyIntranetBandwidthKbResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBRESULT_H_
|
||||
@@ -49,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setDiskId(const std::string& diskId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
@@ -58,6 +60,7 @@ namespace AlibabaCloud
|
||||
int newSize_;
|
||||
std::string diskId_;
|
||||
long ownerId_;
|
||||
std::string type_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -167,6 +167,8 @@ namespace AlibabaCloud
|
||||
void setCallerUidEmail(const std::string& callerUidEmail);
|
||||
std::vector<NetworkInterface> getNetworkInterface()const;
|
||||
void setNetworkInterface(const std::vector<NetworkInterface>& networkInterface);
|
||||
std::string getDeploymentSetId()const;
|
||||
void setDeploymentSetId(const std::string& deploymentSetId);
|
||||
std::string getApp_ip()const;
|
||||
void setApp_ip(const std::string& app_ip);
|
||||
int getAmount()const;
|
||||
@@ -253,6 +255,7 @@ namespace AlibabaCloud
|
||||
std::string instanceChargeType_;
|
||||
std::string callerUidEmail_;
|
||||
std::vector<NetworkInterface> networkInterface_;
|
||||
std::string deploymentSetId_;
|
||||
std::string app_ip_;
|
||||
int amount_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* 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_UNBINDIPRANGEREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT UnbindIpRangeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UnbindIpRangeRequest();
|
||||
~UnbindIpRangeRequest();
|
||||
|
||||
std::string getIpAddress()const;
|
||||
void setIpAddress(const std::string& ipAddress);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string ipAddress_;
|
||||
long resourceOwnerId_;
|
||||
std::string instanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGEREQUEST_H_
|
||||
@@ -1,138 +0,0 @@
|
||||
/*
|
||||
* 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_VALIDATESECURITYGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT ValidateSecurityGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ValidateSecurityGroupRequest();
|
||||
~ValidateSecurityGroupRequest();
|
||||
|
||||
std::string getNicType()const;
|
||||
void setNicType(const std::string& nicType);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
long getCallerParentId()const;
|
||||
void setCallerParentId(long callerParentId);
|
||||
bool getProxy_original_security_transport()const;
|
||||
void setProxy_original_security_transport(bool proxy_original_security_transport);
|
||||
std::string getProxy_original_source_ip()const;
|
||||
void setProxy_original_source_ip(const std::string& proxy_original_source_ip);
|
||||
std::string getOwnerIdLoginEmail()const;
|
||||
void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail);
|
||||
std::string getCallerType()const;
|
||||
void setCallerType(const std::string& callerType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getSourcePort()const;
|
||||
void setSourcePort(int sourcePort);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getEnable()const;
|
||||
void setEnable(bool enable);
|
||||
std::string getRequestContent()const;
|
||||
void setRequestContent(const std::string& requestContent);
|
||||
std::string getCallerBidEmail()const;
|
||||
void setCallerBidEmail(const std::string& callerBidEmail);
|
||||
std::string getCallerUidEmail()const;
|
||||
void setCallerUidEmail(const std::string& callerUidEmail);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
std::string getDirection()const;
|
||||
void setDirection(const std::string& direction);
|
||||
std::string getDestIp()const;
|
||||
void setDestIp(const std::string& destIp);
|
||||
std::string getApp_ip()const;
|
||||
void setApp_ip(const std::string& app_ip);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getIpProtocol()const;
|
||||
void setIpProtocol(const std::string& ipProtocol);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getCallerBid()const;
|
||||
void setCallerBid(const std::string& callerBid);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
bool getProxy_trust_transport_info()const;
|
||||
void setProxy_trust_transport_info(bool proxy_trust_transport_info);
|
||||
bool getAk_mfa_present()const;
|
||||
void setAk_mfa_present(bool ak_mfa_present);
|
||||
bool getSecurity_transport()const;
|
||||
void setSecurity_transport(bool security_transport);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
int getDestPort()const;
|
||||
void setDestPort(int destPort);
|
||||
|
||||
private:
|
||||
std::string nicType_;
|
||||
long resourceOwnerId_;
|
||||
long callerParentId_;
|
||||
bool proxy_original_security_transport_;
|
||||
std::string proxy_original_source_ip_;
|
||||
std::string ownerIdLoginEmail_;
|
||||
std::string callerType_;
|
||||
std::string accessKeyId_;
|
||||
int sourcePort_;
|
||||
std::string sourceIp_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
bool enable_;
|
||||
std::string requestContent_;
|
||||
std::string callerBidEmail_;
|
||||
std::string callerUidEmail_;
|
||||
long callerUid_;
|
||||
std::string direction_;
|
||||
std::string destIp_;
|
||||
std::string app_ip_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ipProtocol_;
|
||||
std::string ownerAccount_;
|
||||
std::string callerBid_;
|
||||
long ownerId_;
|
||||
bool proxy_trust_transport_info_;
|
||||
bool ak_mfa_present_;
|
||||
bool security_transport_;
|
||||
std::string instanceId_;
|
||||
std::string requestId_;
|
||||
int destPort_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPREQUEST_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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_VALIDATESECURITYGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPRESULT_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 ValidateSecurityGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TriggeredGroupRule
|
||||
{
|
||||
std::string sourceGroupId;
|
||||
std::string policy;
|
||||
std::string description;
|
||||
std::string priority;
|
||||
std::string createTime;
|
||||
std::string nicType;
|
||||
std::string destGroupId;
|
||||
std::string direction;
|
||||
std::string sourceGroupName;
|
||||
std::string portRange;
|
||||
std::string destGroupOwnerAccount;
|
||||
std::string sourceCidrIp;
|
||||
std::string ipProtocol;
|
||||
std::string destGroupName;
|
||||
std::string destCidrIp;
|
||||
std::string sourceGroupOwnerAccount;
|
||||
};
|
||||
|
||||
|
||||
ValidateSecurityGroupResult();
|
||||
explicit ValidateSecurityGroupResult(const std::string &payload);
|
||||
~ValidateSecurityGroupResult();
|
||||
std::string getPolicy()const;
|
||||
TriggeredGroupRule getTriggeredGroupRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string policy_;
|
||||
TriggeredGroupRule triggeredGroupRule_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_VALIDATESECURITYGROUPRESULT_H_
|
||||
@@ -771,6 +771,42 @@ EcsClient::DescribeInstanceHistoryEventsOutcomeCallable EcsClient::describeInsta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeInstanceTopologyOutcome EcsClient::describeInstanceTopology(const DescribeInstanceTopologyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceTopologyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceTopologyOutcome(DescribeInstanceTopologyResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceTopologyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeInstanceTopologyAsync(const DescribeInstanceTopologyRequest& request, const DescribeInstanceTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstanceTopology(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeInstanceTopologyOutcomeCallable EcsClient::describeInstanceTopologyCallable(const DescribeInstanceTopologyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceTopologyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstanceTopology(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeletePhysicalConnectionOutcome EcsClient::deletePhysicalConnection(const DeletePhysicalConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,42 +879,6 @@ EcsClient::RevokeSecurityGroupOutcomeCallable EcsClient::revokeSecurityGroupCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CheckAutoSnapshotPolicyOutcome EcsClient::checkAutoSnapshotPolicy(const CheckAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckAutoSnapshotPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckAutoSnapshotPolicyOutcome(CheckAutoSnapshotPolicyResult(outcome.result()));
|
||||
else
|
||||
return CheckAutoSnapshotPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::checkAutoSnapshotPolicyAsync(const CheckAutoSnapshotPolicyRequest& request, const CheckAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkAutoSnapshotPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::CheckAutoSnapshotPolicyOutcomeCallable EcsClient::checkAutoSnapshotPolicyCallable(const CheckAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckAutoSnapshotPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkAutoSnapshotPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeTaskAttributeOutcome EcsClient::describeTaskAttribute(const DescribeTaskAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,42 +1707,6 @@ EcsClient::ConnectRouterInterfaceOutcomeCallable EcsClient::connectRouterInterfa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::AddIpRangeOutcome EcsClient::addIpRange(const AddIpRangeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddIpRangeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddIpRangeOutcome(AddIpRangeResult(outcome.result()));
|
||||
else
|
||||
return AddIpRangeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::addIpRangeAsync(const AddIpRangeRequest& request, const AddIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addIpRange(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::AddIpRangeOutcomeCallable EcsClient::addIpRangeCallable(const AddIpRangeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddIpRangeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addIpRange(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::GetInstanceConsoleOutputOutcome EcsClient::getInstanceConsoleOutput(const GetInstanceConsoleOutputRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,42 +2247,6 @@ EcsClient::CreateRouterInterfaceOutcomeCallable EcsClient::createRouterInterface
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CheckDiskEnableAutoSnapshotValidationOutcome EcsClient::checkDiskEnableAutoSnapshotValidation(const CheckDiskEnableAutoSnapshotValidationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckDiskEnableAutoSnapshotValidationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckDiskEnableAutoSnapshotValidationOutcome(CheckDiskEnableAutoSnapshotValidationResult(outcome.result()));
|
||||
else
|
||||
return CheckDiskEnableAutoSnapshotValidationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::checkDiskEnableAutoSnapshotValidationAsync(const CheckDiskEnableAutoSnapshotValidationRequest& request, const CheckDiskEnableAutoSnapshotValidationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkDiskEnableAutoSnapshotValidation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::CheckDiskEnableAutoSnapshotValidationOutcomeCallable EcsClient::checkDiskEnableAutoSnapshotValidationCallable(const CheckDiskEnableAutoSnapshotValidationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckDiskEnableAutoSnapshotValidationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkDiskEnableAutoSnapshotValidation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::RunInstancesOutcome EcsClient::runInstances(const RunInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3687,42 +3615,6 @@ EcsClient::RebootInstanceOutcomeCallable EcsClient::rebootInstanceCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::BindIpRangeOutcome EcsClient::bindIpRange(const BindIpRangeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindIpRangeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindIpRangeOutcome(BindIpRangeResult(outcome.result()));
|
||||
else
|
||||
return BindIpRangeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::bindIpRangeAsync(const BindIpRangeRequest& request, const BindIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindIpRange(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::BindIpRangeOutcomeCallable EcsClient::bindIpRangeCallable(const BindIpRangeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindIpRangeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindIpRange(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::InvokeCommandOutcome EcsClient::invokeCommand(const InvokeCommandRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5847,42 +5739,6 @@ EcsClient::DescribeNewProjectEipMonitorDataOutcomeCallable EcsClient::describeNe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::UnbindIpRangeOutcome EcsClient::unbindIpRange(const UnbindIpRangeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnbindIpRangeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnbindIpRangeOutcome(UnbindIpRangeResult(outcome.result()));
|
||||
else
|
||||
return UnbindIpRangeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::unbindIpRangeAsync(const UnbindIpRangeRequest& request, const UnbindIpRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unbindIpRange(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::UnbindIpRangeOutcomeCallable EcsClient::unbindIpRangeCallable(const UnbindIpRangeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnbindIpRangeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unbindIpRange(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeleteRecycleBinOutcome EcsClient::deleteRecycleBin(const DeleteRecycleBinRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6351,42 +6207,6 @@ EcsClient::ModifyDiskChargeTypeOutcomeCallable EcsClient::modifyDiskChargeTypeCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyIntranetBandwidthKbOutcome EcsClient::modifyIntranetBandwidthKb(const ModifyIntranetBandwidthKbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyIntranetBandwidthKbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyIntranetBandwidthKbOutcome(ModifyIntranetBandwidthKbResult(outcome.result()));
|
||||
else
|
||||
return ModifyIntranetBandwidthKbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::modifyIntranetBandwidthKbAsync(const ModifyIntranetBandwidthKbRequest& request, const ModifyIntranetBandwidthKbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyIntranetBandwidthKb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ModifyIntranetBandwidthKbOutcomeCallable EcsClient::modifyIntranetBandwidthKbCallable(const ModifyIntranetBandwidthKbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyIntranetBandwidthKbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyIntranetBandwidthKb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeBandwidthPackagesOutcome EcsClient::describeBandwidthPackages(const DescribeBandwidthPackagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6531,42 +6351,6 @@ EcsClient::DescribeSnapshotLinksOutcomeCallable EcsClient::describeSnapshotLinks
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeEventDetailOutcome EcsClient::describeEventDetail(const DescribeEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeEventDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeEventDetailOutcome(DescribeEventDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeEventDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeEventDetailAsync(const DescribeEventDetailRequest& request, const DescribeEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeEventDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeEventDetailOutcomeCallable EcsClient::describeEventDetailCallable(const DescribeEventDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeEventDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeEventDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeInvocationResultsOutcome EcsClient::describeInvocationResults(const DescribeInvocationResultsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6783,42 +6567,6 @@ EcsClient::CreateLaunchTemplateOutcomeCallable EcsClient::createLaunchTemplateCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeIntranetAttributeKbOutcome EcsClient::describeIntranetAttributeKb(const DescribeIntranetAttributeKbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIntranetAttributeKbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIntranetAttributeKbOutcome(DescribeIntranetAttributeKbResult(outcome.result()));
|
||||
else
|
||||
return DescribeIntranetAttributeKbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeIntranetAttributeKbAsync(const DescribeIntranetAttributeKbRequest& request, const DescribeIntranetAttributeKbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIntranetAttributeKb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeIntranetAttributeKbOutcomeCallable EcsClient::describeIntranetAttributeKbCallable(const DescribeIntranetAttributeKbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIntranetAttributeKbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIntranetAttributeKb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CreateNetworkInterfacePermissionOutcome EcsClient::createNetworkInterfacePermission(const CreateNetworkInterfacePermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7971,42 +7719,6 @@ EcsClient::DescribeInstancePhysicalAttributeOutcomeCallable EcsClient::describeI
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ValidateSecurityGroupOutcome EcsClient::validateSecurityGroup(const ValidateSecurityGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ValidateSecurityGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ValidateSecurityGroupOutcome(ValidateSecurityGroupResult(outcome.result()));
|
||||
else
|
||||
return ValidateSecurityGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::validateSecurityGroupAsync(const ValidateSecurityGroupRequest& request, const ValidateSecurityGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, validateSecurityGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ValidateSecurityGroupOutcomeCallable EcsClient::validateSecurityGroupCallable(const ValidateSecurityGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ValidateSecurityGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->validateSecurityGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::TerminatePhysicalConnectionOutcome EcsClient::terminatePhysicalConnection(const TerminatePhysicalConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8403,42 +8115,6 @@ EcsClient::DescribeClassicLinkInstancesOutcomeCallable EcsClient::describeClassi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeAutoSnapshotPolicyOutcome EcsClient::describeAutoSnapshotPolicy(const DescribeAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAutoSnapshotPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAutoSnapshotPolicyOutcome(DescribeAutoSnapshotPolicyResult(outcome.result()));
|
||||
else
|
||||
return DescribeAutoSnapshotPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeAutoSnapshotPolicyAsync(const DescribeAutoSnapshotPolicyRequest& request, const DescribeAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAutoSnapshotPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeAutoSnapshotPolicyOutcomeCallable EcsClient::describeAutoSnapshotPolicyCallable(const DescribeAutoSnapshotPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAutoSnapshotPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAutoSnapshotPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribePhysicalConnectionsOutcome EcsClient::describePhysicalConnections(const DescribePhysicalConnectionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8547,42 +8223,6 @@ EcsClient::CreateNetworkInterfaceOutcomeCallable EcsClient::createNetworkInterfa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeIpRangesOutcome EcsClient::describeIpRanges(const DescribeIpRangesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeIpRangesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeIpRangesOutcome(DescribeIpRangesResult(outcome.result()));
|
||||
else
|
||||
return DescribeIpRangesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeIpRangesAsync(const DescribeIpRangesRequest& request, const DescribeIpRangesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeIpRanges(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeIpRangesOutcomeCallable EcsClient::describeIpRangesCallable(const DescribeIpRangesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeIpRangesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeIpRanges(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeleteNetworkInterfacePermissionOutcome EcsClient::deleteNetworkInterfacePermission(const DeleteNetworkInterfacePermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/AddIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::AddIpRangeRequest;
|
||||
|
||||
AddIpRangeRequest::AddIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "AddIpRange")
|
||||
{}
|
||||
|
||||
AddIpRangeRequest::~AddIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string AddIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long AddIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string AddIpRangeRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
long AddIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/BindIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::BindIpRangeRequest;
|
||||
|
||||
BindIpRangeRequest::BindIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "BindIpRange")
|
||||
{}
|
||||
|
||||
BindIpRangeRequest::~BindIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string BindIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long BindIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BindIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long BindIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BindIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
/*
|
||||
* 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/CheckAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CheckAutoSnapshotPolicyRequest;
|
||||
|
||||
CheckAutoSnapshotPolicyRequest::CheckAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CheckAutoSnapshotPolicy")
|
||||
{}
|
||||
|
||||
CheckAutoSnapshotPolicyRequest::~CheckAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const
|
||||
{
|
||||
return dataDiskPolicyEnabled_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled)
|
||||
{
|
||||
dataDiskPolicyEnabled_ = dataDiskPolicyEnabled;
|
||||
setParameter("DataDiskPolicyEnabled", std::to_string(dataDiskPolicyEnabled));
|
||||
}
|
||||
|
||||
long CheckAutoSnapshotPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const
|
||||
{
|
||||
return dataDiskPolicyRetentionDays_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays)
|
||||
{
|
||||
dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays;
|
||||
setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays));
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const
|
||||
{
|
||||
return systemDiskPolicyRetentionLastWeek_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek)
|
||||
{
|
||||
systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek;
|
||||
setParameter("SystemDiskPolicyRetentionLastWeek", std::to_string(systemDiskPolicyRetentionLastWeek));
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const
|
||||
{
|
||||
return systemDiskPolicyTimePeriod_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod)
|
||||
{
|
||||
systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod;
|
||||
setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod));
|
||||
}
|
||||
|
||||
long CheckAutoSnapshotPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const
|
||||
{
|
||||
return dataDiskPolicyRetentionLastWeek_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek)
|
||||
{
|
||||
dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek;
|
||||
setParameter("DataDiskPolicyRetentionLastWeek", std::to_string(dataDiskPolicyRetentionLastWeek));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const
|
||||
{
|
||||
return systemDiskPolicyRetentionDays_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays)
|
||||
{
|
||||
systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays;
|
||||
setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays));
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const
|
||||
{
|
||||
return dataDiskPolicyTimePeriod_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod)
|
||||
{
|
||||
dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod;
|
||||
setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod));
|
||||
}
|
||||
|
||||
bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const
|
||||
{
|
||||
return systemDiskPolicyEnabled_;
|
||||
}
|
||||
|
||||
void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled)
|
||||
{
|
||||
systemDiskPolicyEnabled_ = systemDiskPolicyEnabled;
|
||||
setParameter("SystemDiskPolicyEnabled", std::to_string(systemDiskPolicyEnabled));
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/CheckDiskEnableAutoSnapshotValidationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CheckDiskEnableAutoSnapshotValidationRequest;
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationRequest::CheckDiskEnableAutoSnapshotValidationRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CheckDiskEnableAutoSnapshotValidation")
|
||||
{}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationRequest::~CheckDiskEnableAutoSnapshotValidationRequest()
|
||||
{}
|
||||
|
||||
long CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationRequest::getDiskIds()const
|
||||
{
|
||||
return diskIds_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setDiskIds(const std::string& diskIds)
|
||||
{
|
||||
diskIds_ = diskIds;
|
||||
setParameter("DiskIds", diskIds);
|
||||
}
|
||||
|
||||
long CheckDiskEnableAutoSnapshotValidationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* 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/CheckDiskEnableAutoSnapshotValidationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDiskEnableAutoSnapshotValidationResult::~CheckDiskEnableAutoSnapshotValidationResult()
|
||||
{}
|
||||
|
||||
void CheckDiskEnableAutoSnapshotValidationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsPermitted"].isNull())
|
||||
isPermitted_ = value["IsPermitted"].asString();
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CheckDiskEnableAutoSnapshotValidationResult::getAutoSnapshotOccupation()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
std::string CheckDiskEnableAutoSnapshotValidationResult::getIsPermitted()const
|
||||
{
|
||||
return isPermitted_;
|
||||
}
|
||||
|
||||
@@ -113,6 +113,17 @@ void CreateDeploymentSetRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getOnUnableToRedeployFailedInstance()const
|
||||
{
|
||||
return onUnableToRedeployFailedInstance_;
|
||||
}
|
||||
|
||||
void CreateDeploymentSetRequest::setOnUnableToRedeployFailedInstance(const std::string& onUnableToRedeployFailedInstance)
|
||||
{
|
||||
onUnableToRedeployFailedInstance_ = onUnableToRedeployFailedInstance;
|
||||
setParameter("OnUnableToRedeployFailedInstance", onUnableToRedeployFailedInstance);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
@@ -135,17 +146,6 @@ void CreateDeploymentSetRequest::setDomain(const std::string& domain)
|
||||
setParameter("Domain", domain);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateDeploymentSetRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateDeploymentSetRequest::getStrategy()const
|
||||
{
|
||||
return strategy_;
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeAutoSnapshotPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeAutoSnapshotPolicyRequest;
|
||||
|
||||
DescribeAutoSnapshotPolicyRequest::DescribeAutoSnapshotPolicyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicy")
|
||||
{}
|
||||
|
||||
DescribeAutoSnapshotPolicyRequest::~DescribeAutoSnapshotPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeAutoSnapshotPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAutoSnapshotPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAutoSnapshotPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAutoSnapshotPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeAutoSnapshotPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::~DescribeAutoSnapshotPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeAutoSnapshotPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto autoSnapshotPolicyNode = value["AutoSnapshotPolicy"];
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyEnabled = autoSnapshotPolicyNode["SystemDiskPolicyEnabled"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyTimePeriod = autoSnapshotPolicyNode["SystemDiskPolicyTimePeriod"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyRetentionDays = autoSnapshotPolicyNode["SystemDiskPolicyRetentionDays"].asString();
|
||||
if(!autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].isNull())
|
||||
autoSnapshotPolicy_.systemDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["SystemDiskPolicyRetentionLastWeek"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyEnabled"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyEnabled = autoSnapshotPolicyNode["DataDiskPolicyEnabled"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyTimePeriod = autoSnapshotPolicyNode["DataDiskPolicyTimePeriod"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyRetentionDays = autoSnapshotPolicyNode["DataDiskPolicyRetentionDays"].asString();
|
||||
if(!autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].isNull())
|
||||
autoSnapshotPolicy_.dataDiskPolicyRetentionLastWeek = autoSnapshotPolicyNode["DataDiskPolicyRetentionLastWeek"].asString();
|
||||
auto autoSnapshotExcutionStatusNode = value["AutoSnapshotExcutionStatus"];
|
||||
if(!autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].isNull())
|
||||
autoSnapshotExcutionStatus_.systemDiskExcutionStatus = autoSnapshotExcutionStatusNode["SystemDiskExcutionStatus"].asString();
|
||||
if(!autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].isNull())
|
||||
autoSnapshotExcutionStatus_.dataDiskExcutionStatus = autoSnapshotExcutionStatusNode["DataDiskExcutionStatus"].asString();
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::AutoSnapshotExcutionStatus DescribeAutoSnapshotPolicyResult::getAutoSnapshotExcutionStatus()const
|
||||
{
|
||||
return autoSnapshotExcutionStatus_;
|
||||
}
|
||||
|
||||
DescribeAutoSnapshotPolicyResult::AutoSnapshotPolicy DescribeAutoSnapshotPolicyResult::getAutoSnapshotPolicy()const
|
||||
{
|
||||
return autoSnapshotPolicy_;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,8 @@ void DescribeDeploymentSetsResult::parse(const std::string &payload)
|
||||
deploymentSetsObject.deploymentSetName = value["DeploymentSetName"].asString();
|
||||
if(!value["Strategy"].isNull())
|
||||
deploymentSetsObject.strategy = value["Strategy"].asString();
|
||||
if(!value["DeploymentStrategy"].isNull())
|
||||
deploymentSetsObject.deploymentStrategy = value["DeploymentStrategy"].asString();
|
||||
if(!value["Domain"].isNull())
|
||||
deploymentSetsObject.domain = value["Domain"].asString();
|
||||
if(!value["Granularity"].isNull())
|
||||
@@ -60,6 +62,9 @@ void DescribeDeploymentSetsResult::parse(const std::string &payload)
|
||||
deploymentSetsObject.instanceAmount = std::stoi(value["InstanceAmount"].asString());
|
||||
if(!value["CreationTime"].isNull())
|
||||
deploymentSetsObject.creationTime = value["CreationTime"].asString();
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (auto value : allInstanceIds)
|
||||
deploymentSetsObject.instanceIds.push_back(value.asString());
|
||||
deploymentSets_.push_back(deploymentSetsObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
|
||||
@@ -46,6 +46,10 @@ void DescribeDisksFullStatusResult::parse(const std::string &payload)
|
||||
DiskFullStatusType diskFullStatusSetObject;
|
||||
if(!value["DiskId"].isNull())
|
||||
diskFullStatusSetObject.diskId = value["DiskId"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
diskFullStatusSetObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["Device"].isNull())
|
||||
diskFullStatusSetObject.device = value["Device"].asString();
|
||||
auto allDiskEventSet = value["DiskEventSet"]["DiskEventType"];
|
||||
for (auto value : allDiskEventSet)
|
||||
{
|
||||
|
||||
@@ -1,280 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeEventDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeEventDetailRequest;
|
||||
|
||||
DescribeEventDetailRequest::DescribeEventDetailRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeEventDetail")
|
||||
{}
|
||||
|
||||
DescribeEventDetailRequest::~DescribeEventDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventDetailRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool DescribeEventDetailRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeEventDetailRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeEventDetailRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
@@ -1,136 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeEventDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventDetailResult::DescribeEventDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventDetailResult::~DescribeEventDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeEventDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResourceId"].isNull())
|
||||
resourceId_ = value["ResourceId"].asString();
|
||||
if(!value["EventType"].isNull())
|
||||
eventType_ = value["EventType"].asString();
|
||||
if(!value["EventCategory"].isNull())
|
||||
eventCategory_ = value["EventCategory"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["SupportModify"].isNull())
|
||||
supportModify_ = value["SupportModify"].asString();
|
||||
if(!value["PlanTime"].isNull())
|
||||
planTime_ = value["PlanTime"].asString();
|
||||
if(!value["ExpireTime"].isNull())
|
||||
expireTime_ = value["ExpireTime"].asString();
|
||||
if(!value["EventId"].isNull())
|
||||
eventId_ = value["EventId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["EffectTime"].isNull())
|
||||
effectTime_ = value["EffectTime"].asString();
|
||||
if(!value["LimitTime"].isNull())
|
||||
limitTime_ = value["LimitTime"].asString();
|
||||
if(!value["Mark"].isNull())
|
||||
mark_ = value["Mark"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getLimitTime()const
|
||||
{
|
||||
return limitTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventCategory()const
|
||||
{
|
||||
return eventCategory_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEffectTime()const
|
||||
{
|
||||
return effectTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getMark()const
|
||||
{
|
||||
return mark_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getPlanTime()const
|
||||
{
|
||||
return planTime_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getSupportModify()const
|
||||
{
|
||||
return supportModify_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getEventId()const
|
||||
{
|
||||
return eventId_;
|
||||
}
|
||||
|
||||
std::string DescribeEventDetailResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
82
ecs/src/model/DescribeInstanceTopologyRequest.cc
Normal file
82
ecs/src/model/DescribeInstanceTopologyRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/DescribeInstanceTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeInstanceTopologyRequest;
|
||||
|
||||
DescribeInstanceTopologyRequest::DescribeInstanceTopologyRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTopology")
|
||||
{}
|
||||
|
||||
DescribeInstanceTopologyRequest::~DescribeInstanceTopologyRequest()
|
||||
{}
|
||||
|
||||
long DescribeInstanceTopologyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceTopologyRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setInstanceIds(const std::string& instanceIds)
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter("InstanceIds", instanceIds);
|
||||
}
|
||||
|
||||
long DescribeInstanceTopologyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceTopologyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -14,46 +14,47 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h>
|
||||
#include <alibabacloud/ecs/model/DescribeInstanceTopologyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult() :
|
||||
DescribeInstanceTopologyResult::DescribeInstanceTopologyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult(const std::string &payload) :
|
||||
DescribeInstanceTopologyResult::DescribeInstanceTopologyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckAutoSnapshotPolicyResult::~CheckAutoSnapshotPolicyResult()
|
||||
DescribeInstanceTopologyResult::~DescribeInstanceTopologyResult()
|
||||
{}
|
||||
|
||||
void CheckAutoSnapshotPolicyResult::parse(const std::string &payload)
|
||||
void DescribeInstanceTopologyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AutoSnapshotOccupation"].isNull())
|
||||
autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString());
|
||||
if(!value["IsPermittedModify"].isNull())
|
||||
isPermittedModify_ = value["IsPermittedModify"].asString();
|
||||
auto allTopologys = value["Topologys"]["Topology"];
|
||||
for (auto value : allTopologys)
|
||||
{
|
||||
Topology topologysObject;
|
||||
if(!value["InstanceId"].isNull())
|
||||
topologysObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["HostId"].isNull())
|
||||
topologysObject.hostId = value["HostId"].asString();
|
||||
topologys_.push_back(topologysObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int CheckAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const
|
||||
std::vector<DescribeInstanceTopologyResult::Topology> DescribeInstanceTopologyResult::getTopologys()const
|
||||
{
|
||||
return autoSnapshotOccupation_;
|
||||
}
|
||||
|
||||
std::string CheckAutoSnapshotPolicyResult::getIsPermittedModify()const
|
||||
{
|
||||
return isPermittedModify_;
|
||||
return topologys_;
|
||||
}
|
||||
|
||||
@@ -350,6 +350,17 @@ void DescribeInstancesRequest::setFilter1Value(const std::string& filter1Value)
|
||||
setParameter("Filter1Value", filter1Value);
|
||||
}
|
||||
|
||||
bool DescribeInstancesRequest::getNeedSaleCycle()const
|
||||
{
|
||||
return needSaleCycle_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setNeedSaleCycle(bool needSaleCycle)
|
||||
{
|
||||
needSaleCycle_ = needSaleCycle;
|
||||
setParameter("NeedSaleCycle", std::to_string(needSaleCycle));
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getFilter2Key()const
|
||||
{
|
||||
return filter2Key_;
|
||||
|
||||
@@ -70,6 +70,8 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["HostName"].isNull())
|
||||
instancesObject.hostName = value["HostName"].asString();
|
||||
if(!value["DeploymentSetId"].isNull())
|
||||
instancesObject.deploymentSetId = value["DeploymentSetId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
instancesObject.status = value["Status"].asString();
|
||||
if(!value["SerialNumber"].isNull())
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeIntranetAttributeKbRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeIntranetAttributeKbRequest;
|
||||
|
||||
DescribeIntranetAttributeKbRequest::DescribeIntranetAttributeKbRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeIntranetAttributeKb")
|
||||
{}
|
||||
|
||||
DescribeIntranetAttributeKbRequest::~DescribeIntranetAttributeKbRequest()
|
||||
{}
|
||||
|
||||
long DescribeIntranetAttributeKbRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeIntranetAttributeKbRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIntranetAttributeKbRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeIntranetAttributeKbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIntranetAttributeKbResult::~DescribeIntranetAttributeKbResult()
|
||||
{}
|
||||
|
||||
void DescribeIntranetAttributeKbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["VlanId"].isNull())
|
||||
vlanId_ = value["VlanId"].asString();
|
||||
if(!value["IntranetIpAddress"].isNull())
|
||||
intranetIpAddress_ = value["IntranetIpAddress"].asString();
|
||||
if(!value["IntranetMaxBandwidthIn"].isNull())
|
||||
intranetMaxBandwidthIn_ = std::stoi(value["IntranetMaxBandwidthIn"].asString());
|
||||
if(!value["IntranetMaxBandwidthOut"].isNull())
|
||||
intranetMaxBandwidthOut_ = std::stoi(value["IntranetMaxBandwidthOut"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthOut()const
|
||||
{
|
||||
return intranetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getVlanId()const
|
||||
{
|
||||
return vlanId_;
|
||||
}
|
||||
|
||||
std::string DescribeIntranetAttributeKbResult::getIntranetIpAddress()const
|
||||
{
|
||||
return intranetIpAddress_;
|
||||
}
|
||||
|
||||
int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthIn()const
|
||||
{
|
||||
return intranetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeIpRangesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeIpRangesRequest;
|
||||
|
||||
DescribeIpRangesRequest::DescribeIpRangesRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeIpRanges")
|
||||
{}
|
||||
|
||||
DescribeIpRangesRequest::~DescribeIpRangesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIpRangesRequest::getNicType()const
|
||||
{
|
||||
return nicType_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setNicType(const std::string& nicType)
|
||||
{
|
||||
nicType_ = nicType;
|
||||
setParameter("NicType", nicType);
|
||||
}
|
||||
|
||||
long DescribeIpRangesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int DescribeIpRangesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
long DescribeIpRangesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeIpRangesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeIpRangesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* 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/DescribeIpRangesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeIpRangesResult::DescribeIpRangesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIpRangesResult::DescribeIpRangesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIpRangesResult::~DescribeIpRangesResult()
|
||||
{}
|
||||
|
||||
void DescribeIpRangesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpRanges = value["IpRanges"]["IpRange"];
|
||||
for (auto value : allIpRanges)
|
||||
{
|
||||
IpRange ipRangesObject;
|
||||
if(!value["IpAddress"].isNull())
|
||||
ipRangesObject.ipAddress = value["IpAddress"].asString();
|
||||
if(!value["NicType"].isNull())
|
||||
ipRangesObject.nicType = value["NicType"].asString();
|
||||
ipRanges_.push_back(ipRangesObject);
|
||||
}
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int DescribeIpRangesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeIpRangesResult::IpRange> DescribeIpRangesResult::getIpRanges()const
|
||||
{
|
||||
return ipRanges_;
|
||||
}
|
||||
|
||||
std::string DescribeIpRangesResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -25,17 +25,6 @@ ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() :
|
||||
ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount1()const
|
||||
{
|
||||
return addAccount1_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount1(const std::string& addAccount1)
|
||||
{
|
||||
addAccount1_ = addAccount1;
|
||||
setParameter("AddAccount1", addAccount1);
|
||||
}
|
||||
|
||||
long ModifyImageSharePermissionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -58,114 +47,16 @@ void ModifyImageSharePermissionRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRegionId()const
|
||||
std::vector<std::string> ModifyImageSharePermissionRequest::getAddAccount()const
|
||||
{
|
||||
return regionId_;
|
||||
return addAccount_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId)
|
||||
void ModifyImageSharePermissionRequest::setAddAccount(const std::vector<std::string>& addAccount)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount9()const
|
||||
{
|
||||
return addAccount9_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount9(const std::string& addAccount9)
|
||||
{
|
||||
addAccount9_ = addAccount9;
|
||||
setParameter("AddAccount9", addAccount9);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount8()const
|
||||
{
|
||||
return addAccount8_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount8(const std::string& addAccount8)
|
||||
{
|
||||
addAccount8_ = addAccount8;
|
||||
setParameter("AddAccount8", addAccount8);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount7()const
|
||||
{
|
||||
return addAccount7_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount7(const std::string& addAccount7)
|
||||
{
|
||||
addAccount7_ = addAccount7;
|
||||
setParameter("AddAccount7", addAccount7);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount6()const
|
||||
{
|
||||
return addAccount6_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount6(const std::string& addAccount6)
|
||||
{
|
||||
addAccount6_ = addAccount6;
|
||||
setParameter("AddAccount6", addAccount6);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount5()const
|
||||
{
|
||||
return addAccount5_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount5(const std::string& addAccount5)
|
||||
{
|
||||
addAccount5_ = addAccount5;
|
||||
setParameter("AddAccount5", addAccount5);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount10()const
|
||||
{
|
||||
return addAccount10_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount10(const std::string& addAccount10)
|
||||
{
|
||||
addAccount10_ = addAccount10;
|
||||
setParameter("AddAccount10", addAccount10);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount4()const
|
||||
{
|
||||
return addAccount4_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount4(const std::string& addAccount4)
|
||||
{
|
||||
addAccount4_ = addAccount4;
|
||||
setParameter("AddAccount4", addAccount4);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount3()const
|
||||
{
|
||||
return addAccount3_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount3(const std::string& addAccount3)
|
||||
{
|
||||
addAccount3_ = addAccount3;
|
||||
setParameter("AddAccount3", addAccount3);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getAddAccount2()const
|
||||
{
|
||||
return addAccount2_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setAddAccount2(const std::string& addAccount2)
|
||||
{
|
||||
addAccount2_ = addAccount2;
|
||||
setParameter("AddAccount2", addAccount2);
|
||||
addAccount_ = addAccount;
|
||||
for(int i = 0; i!= addAccount.size(); i++)
|
||||
setParameter("AddAccount."+ std::to_string(i), addAccount.at(i));
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getResourceOwnerAccount()const
|
||||
@@ -179,6 +70,29 @@ void ModifyImageSharePermissionRequest::setResourceOwnerAccount(const std::strin
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyImageSharePermissionRequest::getRemoveAccount()const
|
||||
{
|
||||
return removeAccount_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount(const std::vector<std::string>& removeAccount)
|
||||
{
|
||||
removeAccount_ = removeAccount;
|
||||
for(int i = 0; i!= removeAccount.size(); i++)
|
||||
setParameter("RemoveAccount."+ std::to_string(i), removeAccount.at(i));
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
@@ -190,50 +104,6 @@ void ModifyImageSharePermissionRequest::setOwnerAccount(const std::string& owner
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount1()const
|
||||
{
|
||||
return removeAccount1_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount1(const std::string& removeAccount1)
|
||||
{
|
||||
removeAccount1_ = removeAccount1;
|
||||
setParameter("RemoveAccount1", removeAccount1);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount2()const
|
||||
{
|
||||
return removeAccount2_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount2(const std::string& removeAccount2)
|
||||
{
|
||||
removeAccount2_ = removeAccount2;
|
||||
setParameter("RemoveAccount2", removeAccount2);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount3()const
|
||||
{
|
||||
return removeAccount3_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount3(const std::string& removeAccount3)
|
||||
{
|
||||
removeAccount3_ = removeAccount3;
|
||||
setParameter("RemoveAccount3", removeAccount3);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount4()const
|
||||
{
|
||||
return removeAccount4_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount4(const std::string& removeAccount4)
|
||||
{
|
||||
removeAccount4_ = removeAccount4;
|
||||
setParameter("RemoveAccount4", removeAccount4);
|
||||
}
|
||||
|
||||
long ModifyImageSharePermissionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -245,69 +115,3 @@ void ModifyImageSharePermissionRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount9()const
|
||||
{
|
||||
return removeAccount9_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount9(const std::string& removeAccount9)
|
||||
{
|
||||
removeAccount9_ = removeAccount9;
|
||||
setParameter("RemoveAccount9", removeAccount9);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount5()const
|
||||
{
|
||||
return removeAccount5_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount5(const std::string& removeAccount5)
|
||||
{
|
||||
removeAccount5_ = removeAccount5;
|
||||
setParameter("RemoveAccount5", removeAccount5);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount6()const
|
||||
{
|
||||
return removeAccount6_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount6(const std::string& removeAccount6)
|
||||
{
|
||||
removeAccount6_ = removeAccount6;
|
||||
setParameter("RemoveAccount6", removeAccount6);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount7()const
|
||||
{
|
||||
return removeAccount7_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount7(const std::string& removeAccount7)
|
||||
{
|
||||
removeAccount7_ = removeAccount7;
|
||||
setParameter("RemoveAccount7", removeAccount7);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount8()const
|
||||
{
|
||||
return removeAccount8_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount8(const std::string& removeAccount8)
|
||||
{
|
||||
removeAccount8_ = removeAccount8;
|
||||
setParameter("RemoveAccount8", removeAccount8);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getRemoveAccount10()const
|
||||
{
|
||||
return removeAccount10_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setRemoveAccount10(const std::string& removeAccount10)
|
||||
{
|
||||
removeAccount10_ = removeAccount10;
|
||||
setParameter("RemoveAccount10", removeAccount10);
|
||||
}
|
||||
|
||||
|
||||
@@ -179,6 +179,17 @@ void ModifyInstanceDeploymentRequest::setCallerUid(long callerUid)
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyInstanceDeploymentRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceDeploymentRequest::setDeploymentSetId(const std::string& deploymentSetId)
|
||||
{
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter("DeploymentSetId", deploymentSetId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceDeploymentRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
@@ -300,3 +311,14 @@ void ModifyInstanceDeploymentRequest::setRequestId(const std::string& requestId)
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
bool ModifyInstanceDeploymentRequest::getForce()const
|
||||
{
|
||||
return force_;
|
||||
}
|
||||
|
||||
void ModifyInstanceDeploymentRequest::setForce(bool force)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", std::to_string(force));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* 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/ModifyIntranetBandwidthKbRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ModifyIntranetBandwidthKbRequest;
|
||||
|
||||
ModifyIntranetBandwidthKbRequest::ModifyIntranetBandwidthKbRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ModifyIntranetBandwidthKb")
|
||||
{}
|
||||
|
||||
ModifyIntranetBandwidthKbRequest::~ModifyIntranetBandwidthKbRequest()
|
||||
{}
|
||||
|
||||
long ModifyIntranetBandwidthKbRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthOut()const
|
||||
{
|
||||
return intranetMaxBandwidthOut_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut)
|
||||
{
|
||||
intranetMaxBandwidthOut_ = intranetMaxBandwidthOut;
|
||||
setParameter("IntranetMaxBandwidthOut", std::to_string(intranetMaxBandwidthOut));
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthIn()const
|
||||
{
|
||||
return intranetMaxBandwidthIn_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn)
|
||||
{
|
||||
intranetMaxBandwidthIn_ = intranetMaxBandwidthIn;
|
||||
setParameter("IntranetMaxBandwidthIn", std::to_string(intranetMaxBandwidthIn));
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyIntranetBandwidthKbRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyIntranetBandwidthKbRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyIntranetBandwidthKbRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
* 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/ModifyIntranetBandwidthKbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyIntranetBandwidthKbResult::~ModifyIntranetBandwidthKbResult()
|
||||
{}
|
||||
|
||||
void ModifyIntranetBandwidthKbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -102,3 +102,14 @@ void ResizeDiskRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ResizeDiskRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ResizeDiskRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
|
||||
@@ -634,6 +634,17 @@ void RunInstancesRequest::setNetworkInterface(const std::vector<NetworkInterface
|
||||
}
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void RunInstancesRequest::setDeploymentSetId(const std::string& deploymentSetId)
|
||||
{
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter("DeploymentSetId", deploymentSetId);
|
||||
}
|
||||
|
||||
std::string RunInstancesRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* 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/UnbindIpRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::UnbindIpRangeRequest;
|
||||
|
||||
UnbindIpRangeRequest::UnbindIpRangeRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "UnbindIpRange")
|
||||
{}
|
||||
|
||||
UnbindIpRangeRequest::~UnbindIpRangeRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindIpRangeRequest::getIpAddress()const
|
||||
{
|
||||
return ipAddress_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setIpAddress(const std::string& ipAddress)
|
||||
{
|
||||
ipAddress_ = ipAddress;
|
||||
setParameter("IpAddress", ipAddress);
|
||||
}
|
||||
|
||||
long UnbindIpRangeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UnbindIpRangeRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UnbindIpRangeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UnbindIpRangeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,368 +0,0 @@
|
||||
/*
|
||||
* 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/ValidateSecurityGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::ValidateSecurityGroupRequest;
|
||||
|
||||
ValidateSecurityGroupRequest::ValidateSecurityGroupRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "ValidateSecurityGroup")
|
||||
{}
|
||||
|
||||
ValidateSecurityGroupRequest::~ValidateSecurityGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getNicType()const
|
||||
{
|
||||
return nicType_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setNicType(const std::string& nicType)
|
||||
{
|
||||
nicType_ = nicType;
|
||||
setParameter("NicType", nicType);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ValidateSecurityGroupRequest::getSourcePort()const
|
||||
{
|
||||
return sourcePort_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSourcePort(int sourcePort)
|
||||
{
|
||||
sourcePort_ = sourcePort;
|
||||
setParameter("SourcePort", std::to_string(sourcePort));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", std::to_string(enable));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getDirection()const
|
||||
{
|
||||
return direction_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDirection(const std::string& direction)
|
||||
{
|
||||
direction_ = direction;
|
||||
setParameter("Direction", direction);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getDestIp()const
|
||||
{
|
||||
return destIp_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDestIp(const std::string& destIp)
|
||||
{
|
||||
destIp_ = destIp;
|
||||
setParameter("DestIp", destIp);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getIpProtocol()const
|
||||
{
|
||||
return ipProtocol_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol)
|
||||
{
|
||||
ipProtocol_ = ipProtocol;
|
||||
setParameter("IpProtocol", ipProtocol);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ValidateSecurityGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool ValidateSecurityGroupRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int ValidateSecurityGroupRequest::getDestPort()const
|
||||
{
|
||||
return destPort_;
|
||||
}
|
||||
|
||||
void ValidateSecurityGroupRequest::setDestPort(int destPort)
|
||||
{
|
||||
destPort_ = destPort;
|
||||
setParameter("DestPort", std::to_string(destPort));
|
||||
}
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* 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/ValidateSecurityGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
ValidateSecurityGroupResult::ValidateSecurityGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateSecurityGroupResult::ValidateSecurityGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateSecurityGroupResult::~ValidateSecurityGroupResult()
|
||||
{}
|
||||
|
||||
void ValidateSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto triggeredGroupRuleNode = value["TriggeredGroupRule"];
|
||||
if(!triggeredGroupRuleNode["IpProtocol"].isNull())
|
||||
triggeredGroupRule_.ipProtocol = triggeredGroupRuleNode["IpProtocol"].asString();
|
||||
if(!triggeredGroupRuleNode["PortRange"].isNull())
|
||||
triggeredGroupRule_.portRange = triggeredGroupRuleNode["PortRange"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupId"].isNull())
|
||||
triggeredGroupRule_.sourceGroupId = triggeredGroupRuleNode["SourceGroupId"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupName"].isNull())
|
||||
triggeredGroupRule_.sourceGroupName = triggeredGroupRuleNode["SourceGroupName"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceCidrIp"].isNull())
|
||||
triggeredGroupRule_.sourceCidrIp = triggeredGroupRuleNode["SourceCidrIp"].asString();
|
||||
if(!triggeredGroupRuleNode["Policy"].isNull())
|
||||
triggeredGroupRule_.policy = triggeredGroupRuleNode["Policy"].asString();
|
||||
if(!triggeredGroupRuleNode["NicType"].isNull())
|
||||
triggeredGroupRule_.nicType = triggeredGroupRuleNode["NicType"].asString();
|
||||
if(!triggeredGroupRuleNode["SourceGroupOwnerAccount"].isNull())
|
||||
triggeredGroupRule_.sourceGroupOwnerAccount = triggeredGroupRuleNode["SourceGroupOwnerAccount"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupId"].isNull())
|
||||
triggeredGroupRule_.destGroupId = triggeredGroupRuleNode["DestGroupId"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupName"].isNull())
|
||||
triggeredGroupRule_.destGroupName = triggeredGroupRuleNode["DestGroupName"].asString();
|
||||
if(!triggeredGroupRuleNode["DestCidrIp"].isNull())
|
||||
triggeredGroupRule_.destCidrIp = triggeredGroupRuleNode["DestCidrIp"].asString();
|
||||
if(!triggeredGroupRuleNode["DestGroupOwnerAccount"].isNull())
|
||||
triggeredGroupRule_.destGroupOwnerAccount = triggeredGroupRuleNode["DestGroupOwnerAccount"].asString();
|
||||
if(!triggeredGroupRuleNode["Priority"].isNull())
|
||||
triggeredGroupRule_.priority = triggeredGroupRuleNode["Priority"].asString();
|
||||
if(!triggeredGroupRuleNode["Direction"].isNull())
|
||||
triggeredGroupRule_.direction = triggeredGroupRuleNode["Direction"].asString();
|
||||
if(!triggeredGroupRuleNode["Description"].isNull())
|
||||
triggeredGroupRule_.description = triggeredGroupRuleNode["Description"].asString();
|
||||
if(!triggeredGroupRuleNode["CreateTime"].isNull())
|
||||
triggeredGroupRule_.createTime = triggeredGroupRuleNode["CreateTime"].asString();
|
||||
if(!value["Policy"].isNull())
|
||||
policy_ = value["Policy"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ValidateSecurityGroupResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
ValidateSecurityGroupResult::TriggeredGroupRule ValidateSecurityGroupResult::getTriggeredGroupRule()const
|
||||
{
|
||||
return triggeredGroupRule_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user